var ct=Object.create;var oe=Object.defineProperty;var gt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var yt=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty;var u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var wt=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ht(t))!_t.call(e,o)&&o!==a&&oe(e,o,{get:()=>t[o],enumerable:!(r=gt(t,o))||r.enumerable});return e};var d=(e,t,a)=>(a=e!=null?ct(yt(e)):{},wt(t||!e||!e.__esModule?oe(a,"default",{value:e,enumerable:!0}):a,e));var fe=u((da,se)=>{se.exports=window.wp.i18n});var S=u((la,ie)=>{ie.exports=window.wp.element});var b=u((na,le)=>{le.exports=window.React});var R=u((pa,pe)=>{pe.exports=window.ReactJSXRuntime});var Oe=u((Wa,Pe)=>{Pe.exports=window.wp.primitives});var Be=u((Za,Ue)=>{Ue.exports=window.wp.compose});var He=u((Ja,Me)=>{Me.exports=window.wp.privateApis});var L=u((ar,Ge)=>{Ge.exports=window.wp.components});var te=u((cr,tt)=>{tt.exports=window.wp.editor});var rt=u((gr,at)=>{at.exports=window.wp.data});var st=u((hr,ot)=>{ot.exports=window.wp.coreData});import{useNavigate as Gt,useSearch as Zt}from"@wordpress/route";function de(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=de(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function bt(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=de(e))&&(r&&(r+=" "),r+=t);return r}var c=bt;var ue=d(b(),1),ne={};function O(e,t){let a=ue.useRef(ne);return a.current===ne&&(a.current=e(t)),a}function vt(e,t){return function(r,...o){let s=new URL(e);return s.searchParams.set("code",r.toString()),o.forEach(f=>s.searchParams.append("args[]",f)),`${t} error #${r}; visit ${s} for the full message.`}}var xt=vt("https://base-ui.com/production-error","Base UI"),me=xt;var h=d(b(),1);function U(e,t,a,r){let o=O(ge).current;return St(o,e,t,a,r)&&he(o,[e,t,a,r]),o.callback}function ce(e){let t=O(ge).current;return Rt(t,e)&&he(t,e),t.callback}function ge(){return{callback:null,cleanup:null,refs:[]}}function St(e,t,a,r,o){return e.refs[0]!==t||e.refs[1]!==a||e.refs[2]!==r||e.refs[3]!==o}function Rt(e,t){return e.refs.length!==t.length||e.refs.some((a,r)=>a!==t[r])}function he(e,t){if(e.refs=t,t.every(a=>a==null)){e.callback=null;return}e.callback=a=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),a!=null){let r=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){let s=t[o];if(s!=null)switch(typeof s){case"function":{let f=s(a);typeof f=="function"&&(r[o]=f);break}case"object":{s.current=a;break}default:}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){let s=t[o];if(s!=null)switch(typeof s){case"function":{let f=r[o];typeof f=="function"?f():s(null);break}case"object":{s.current=null;break}default:}}}}}}var we=d(b(),1);var ye=d(b(),1),Ct=parseInt(ye.version,10);function _e(e){return Ct>=e}function B(e){if(!we.isValidElement(e))return null;let t=e,a=t.props;return(_e(19)?a?.ref:t.ref)??null}function C(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var ba=Object.freeze([]),v=Object.freeze({});function be(e,t){let a={};for(let r in e){let o=e[r];if(t?.hasOwnProperty(r)){let s=t[r](o);s!=null&&Object.assign(a,s);continue}o===!0?a[`data-${r.toLowerCase()}`]="":o&&(a[`data-${r.toLowerCase()}`]=o.toString())}return a}function ve(e,t){return typeof e=="function"?e(t):e}function xe(e,t){return typeof e=="function"?e(t):e}var M={};function g(e,t,a,r,o){if(!a&&!r&&!o&&!e)return E(t);let s=E(e);return t&&(s=k(s,t)),a&&(s=k(s,a)),r&&(s=k(s,r)),o&&(s=k(s,o)),s}function Se(e){if(e.length===0)return M;if(e.length===1)return E(e[0]);let t=E(e[0]);for(let a=1;a<e.length;a+=1)t=k(t,e[a]);return t}function E(e){return H(e)?{...Ce(e,M)}:kt(e)}function k(e,t){return H(t)?Ce(t,e):zt(e,t)}function kt(e){let t={...e};for(let a in t){let r=t[a];Re(a,r)&&(t[a]=ke(r))}return t}function zt(e,t){if(!t)return e;for(let a in t){let r=t[a];switch(a){case"style":{e[a]=C(e.style,r);break}case"className":{e[a]=V(e.className,r);break}default:Re(a,r)?e[a]=Et(e[a],r):e[a]=r}}return e}function Re(e,t){let a=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return a===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function H(e){return typeof e=="function"}function Ce(e,t){return H(e)?e(t):e??M}function Et(e,t){return t?e?(...a)=>{let r=a[0];if(Ee(r)){let s=r;ze(s);let f=t(...a);return s.baseUIHandlerPrevented||e?.(...a),f}let o=t(...a);return e?.(...a),o}:ke(t):e}function ke(e){return e&&((...t)=>{let a=t[0];return Ee(a)&&ze(a),e(...t)})}function ze(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function V(e,t){return t?e?t+" "+e:t:e}function Ee(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var F=d(b(),1);function Ne(e,t,a={}){let r=t.render,o=Nt(t,a);if(a.enabled===!1)return null;let s=a.state??v;return Lt(e,r,o,s)}function Nt(e,t={}){let{className:a,style:r,render:o}=e,{state:s=v,ref:f,props:p,stateAttributesMapping:n,enabled:i=!0}=t,_=i?ve(a,s):void 0,w=i?xe(r,s):void 0,P=i?be(s,n):v,re=i&&p?Tt(p):void 0,m=i?C(P,re)??{}:v;return typeof document<"u"&&(i?Array.isArray(f)?m.ref=ce([m.ref,B(o),...f]):m.ref=U(m.ref,B(o),f):U(null,null)),i?(_!==void 0&&(m.className=V(m.className,_)),w!==void 0&&(m.style=C(m.style,w)),m):v}function Tt(e){return Array.isArray(e)?Se(e):g(void 0,e)}var At=Symbol.for("react.lazy");function Lt(e,t,a,r){if(t){if(typeof t=="function")return t(a,r);let o=g(a,t.props);o.ref=a.ref;let s=t;return s?.$$typeof===At&&(s=h.Children.toArray(t)[0]),h.cloneElement(s,o)}if(e&&typeof e=="string")return jt(e,a);throw new Error(me(8))}function jt(e,t){return e==="button"?(0,F.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,F.createElement)("img",{alt:"",...t,key:t.key}):h.createElement(e,t)}function N(e){return Ne(e.defaultTagName??"div",e,e)}var Le=d(S(),1),$="data-wp-hash";function W(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Pt(document)),e.__wpStyleRuntime}function It(e,t){if(!e.head)return!1;for(let a of e.head.querySelectorAll(`style[${$}]`))if(a.getAttribute($)===t)return!0;return!1}function je(e,t,a){if(!e.head)return;let r=W(),o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(It(e,t)){o.add(t);return}let s=e.createElement("style");s.setAttribute($,t),s.appendChild(e.createTextNode(a)),e.head.appendChild(s),o.add(t)}function Pt(e){let t=W();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[a,r]of t.styles)je(e,a,r);return()=>{let a=t.documents.get(e);if(a!==void 0){if(a<=1){t.documents.delete(e);return}t.documents.set(e,a-1)}}}function Ie(e,t){let a=W();a.styles.set(e,t);for(let r of a.documents.keys())je(r,e,t)}typeof process>"u",Ie("0c8601dd83",'@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-medium,499);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}');var Te={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",Ie("1fb29d3a3c","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid #0000)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-fg-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-medium,499));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid #0000);transition:var(--_gcd-a-transition,none)}");var Ae={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a"},T=(0,Le.forwardRef)(function({variant:t="body-md",render:a,className:r,...o},s){return N({render:a,defaultTagName:"span",ref:s,props:g(o,{className:c(Te.text,Ae.heading,Ae.p,Te[t],r)})})});var A=d(Oe(),1),q=d(R(),1),Y=(0,q.jsx)(A.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q.jsx)(A.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"})});var Ve=d(S(),1),G="data-wp-hash";function Z(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Ut(document)),e.__wpStyleRuntime}function Ot(e,t){if(!e.head)return!1;for(let a of e.head.querySelectorAll(`style[${G}]`))if(a.getAttribute(G)===t)return!0;return!1}function Fe(e,t,a){if(!e.head)return;let r=Z(),o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(Ot(e,t)){o.add(t);return}let s=e.createElement("style");s.setAttribute(G,t),s.appendChild(e.createTextNode(a)),e.head.appendChild(s),o.add(t)}function Ut(e){let t=Z();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[a,r]of t.styles)Fe(e,a,r);return()=>{let a=t.documents.get(e);if(a!==void 0){if(a<=1){t.documents.delete(e);return}t.documents.set(e,a-1)}}}function Bt(e,t){let a=Z();a.styles.set(e,t);for(let r of a.documents.keys())Fe(r,e,t)}typeof process>"u",Bt("b51ff41489","@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}");var Mt={stack:"_19ce0419607e1896__stack"},Ht={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},x=(0,Ve.forwardRef)(function({direction:t,gap:a,align:r,justify:o,wrap:s,render:f,...p},n){let i={gap:a&&Ht[a],alignItems:r,justifyContent:o,flexDirection:t,flexWrap:s};return N({render:f,ref:n,props:g(p,{style:i,className:Mt.stack})})});var $e=d(S(),1),We=d(R(),1),qe=(0,$e.forwardRef)(({children:e,className:t,ariaLabel:a,as:r="div",...o},s)=>(0,We.jsx)(r,{ref:s,className:c("admin-ui-navigable-region",t),"aria-label":a,role:"region",tabIndex:"-1",...o,children:e}));qe.displayName="NavigableRegion";var Ye=qe;var Ze=d(L(),1),{Fill:Je,Slot:Xe}=(0,Ze.createSlotFill)("SidebarToggle");var l=d(R(),1),J="data-wp-hash";function X(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Ft(document)),e.__wpStyleRuntime}function Vt(e,t){if(!e.head)return!1;for(let a of e.head.querySelectorAll(`style[${J}]`))if(a.getAttribute(J)===t)return!0;return!1}function Ke(e,t,a){if(!e.head)return;let r=X(),o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(Vt(e,t)){o.add(t);return}let s=e.createElement("style");s.setAttribute(J,t),s.appendChild(e.createTextNode(a)),e.head.appendChild(s),o.add(t)}function Ft(e){let t=X();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[a,r]of t.styles)Ke(e,a,r);return()=>{let a=t.documents.get(e);if(a!==void 0){if(a<=1){t.documents.delete(e);return}t.documents.set(e,a-1)}}}function $t(e,t){let a=X();a.styles.set(e,t);for(let r of a.documents.keys())Ke(r,e,t)}typeof process>"u",$t("aa9c241ccc","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-bg-surface-neutral,#fcfcfc);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-bg-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:calc(var(--wpds-dimension-base, 4px)*8)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:calc(var(--wpds-dimension-base, 4px)*6);width:calc(var(--wpds-dimension-base, 4px)*6);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-fg-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var y={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function Qe({headingLevel:e=1,breadcrumbs:t,badges:a,visual:r,title:o,subTitle:s,actions:f,showSidebarToggle:p=!0}){let n=`h${e}`;return(0,l.jsxs)(x,{direction:"column",className:y.header,children:[(0,l.jsxs)(x,{className:y["header-content"],direction:"row",gap:"sm",justify:"space-between",children:[(0,l.jsxs)(x,{direction:"row",gap:"sm",align:"center",justify:"start",children:[p&&(0,l.jsx)(Xe,{bubblesVirtually:!0,className:y["sidebar-toggle-slot"]}),r&&(0,l.jsx)("div",{className:y["header-visual"],"aria-hidden":"true",children:r}),o&&(0,l.jsx)(T,{className:y["header-title"],render:(0,l.jsx)(n,{}),variant:"heading-lg",children:o}),t,a]}),f&&(0,l.jsx)(x,{align:"center",className:y["header-actions"],direction:"row",gap:"sm",children:f})]}),s&&(0,l.jsx)(T,{render:(0,l.jsx)("p",{}),variant:"body-md",className:y["header-subtitle"],children:s})]})}var z=d(R(),1),Q="data-wp-hash";function D(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&qt(document)),e.__wpStyleRuntime}function Wt(e,t){if(!e.head)return!1;for(let a of e.head.querySelectorAll(`style[${Q}]`))if(a.getAttribute(Q)===t)return!0;return!1}function De(e,t,a){if(!e.head)return;let r=D(),o=r.injectedStyles.get(e);if(o||(o=new Set,r.injectedStyles.set(e,o)),o.has(t))return;if(Wt(e,t)){o.add(t);return}let s=e.createElement("style");s.setAttribute(Q,t),s.appendChild(e.createTextNode(a)),e.head.appendChild(s),o.add(t)}function qt(e){let t=D();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[a,r]of t.styles)De(e,a,r);return()=>{let a=t.documents.get(e);if(a!==void 0){if(a<=1){t.documents.delete(e);return}t.documents.set(e,a-1)}}}function Yt(e,t){let a=D();a.styles.set(e,t);for(let r of a.documents.keys())De(r,e,t)}typeof process>"u",Yt("aa9c241ccc","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-bg-surface-neutral,#fcfcfc);color:var(--wpds-color-fg-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-bg-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#e4e4e4);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:calc(var(--wpds-dimension-base, 4px)*8)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8113be94e7caf73c__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:calc(var(--wpds-dimension-base, 4px)*6);width:calc(var(--wpds-dimension-base, 4px)*6);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-fg-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var K={page:"_956b6df0898efed0__page",header:"_0625b55e82a0d93d__header","header-content":"a43c44d5ae28b2e8__header-content","header-actions":"b7cb5b9daf3a3b25__header-actions","header-title":"_8113be94e7caf73c__header-title","header-visual":"_9a776c7f70996f61__header-visual","sidebar-toggle-slot":"d5e0920cd15d35bc__sidebar-toggle-slot","header-subtitle":"_60fea2f6bf5319cd__header-subtitle",content:"be5e57d029ec4036__content","has-padding":"_128806d0b26e3a50__has-padding"};function et({headingLevel:e,breadcrumbs:t,badges:a,visual:r,title:o,subTitle:s,children:f,className:p,actions:n,ariaLabel:i,hasPadding:_=!1,showSidebarToggle:w=!0}){let P=c(K.page,p);return(0,z.jsxs)(Ye,{className:P,ariaLabel:i??(typeof o=="string"?o:""),children:[(o||t||a||n||r)&&(0,z.jsx)(Qe,{headingLevel:e,breadcrumbs:t,badges:a,visual:r,title:o,subTitle:s,actions:n,showSidebarToggle:w}),_?(0,z.jsx)("div",{className:c(K.content,K["has-padding"]),children:f}):f]})}et.SidebarToggleFill=Je;var ee=et;var ae=d(fe()),dt=d(te()),it=d(Be()),lt=d(rt()),nt=d(st()),I=d(L());var ut=d(S());import{useEditorSettings as Jt}from"@wordpress/lazy-editor";if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='1153641d9c']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","1153641d9c"),e.appendChild(document.createTextNode(".routes-styles__page .global-styles-ui-screen-root{box-shadow:none}.routes-styles__page .global-styles-ui-screen-root>div>hr{display:none}.routes-styles__page .global-styles-ui-sidebar__navigator-provider .components-tools-panel{border-top:none}.routes-styles__page .global-styles-ui-sidebar__navigator-provider{overflow-y:auto;padding-inline:0}")),document.head.appendChild(e)}var ft=d(He()),{lock:yr,unlock:j}=(0,ft.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/routes");var{GlobalStylesUIWrapper:Xt,GlobalStylesActionMenu:Kt}=j(dt.privateApis);function Qt(){let e=Gt(),t=Zt({strict:!1}),a=(0,it.useViewportMatch)("medium","<"),r=(0,lt.useSelect)(i=>i(nt.store).__experimentalGetCurrentGlobalStylesId(),[]),{editorSettings:o}=Jt({stylesId:r}),s=t.section??"/",[f,p]=(0,ut.useState)(t.preview==="stylebook"),n=i=>{e({search:{...t,section:i}})};return React.createElement(ee,{headingLevel:2,actions:a?null:React.createElement(I.__experimentalHStack,null,React.createElement(I.Button,{size:"compact",isPressed:f,icon:Y,label:(0,ae.__)("Style Book"),onClick:()=>{let i=!f;p(i),e({search:i?{...t,preview:"stylebook"}:(()=>{let{preview:_,...w}=t;return w})()})}}),React.createElement(Kt,{hideWelcomeGuide:!0,onChangePath:n})),className:"routes-styles__page",title:(0,ae.__)("Styles")},React.createElement(Xt,{path:s,onPathChange:n,settings:o}))}var Dt=Qt;var pt=d(te()),mt=d(L());import{useNavigate as ea,useSearch as ta}from"@wordpress/route";import{useEditorAssets as aa}from"@wordpress/lazy-editor";var{StyleBookPreview:ra}=j(pt.privateApis);function oa(){let{isReady:e}=aa(),t=ea(),a=ta({strict:!1}),r=a.section??"/",o=s=>{t({search:{...a,section:s}})};return e?React.createElement(ra,{path:r,onPathChange:o}):React.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}},React.createElement(mt.Spinner,null))}var sa=oa;export{sa as canvas,Dt as stage};