PageSourceSearch

https://www.thestagchorleywood.co.uk/assets/useBaseUiId-DLerUUiv.js

js thestagchorleywood.co.uk collected 2026-10-08 20:33:08 UTC 29,664 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a10ce4-e714-75d2-8888-65fbbf1a981b")}catch(e){}}();import{H as e,K as t,V as n,t as r}from"./jsx-runtime-FYwKsWlz.js";import{t as i}from"./react-dom-Dztd4l-D.js";import{a,f as o,g as s,h as c,m as l,v as u,y as d}from"./button-BCTuyLRa.js";var f=t(n()),p=[];function m(e){f.useEffect(e,p)}var h=Symbol(`NOT_FOUND`);function g(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function _(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function v(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var y=e=>Array.isArray(e)?e:[e];function b(e){let t=Array.isArray(e[0])?e[0]:e;return v(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function ee(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function te(e){let t;return{get(n){return t&&e(t.key,n)?t.value:h},put(e,n){t={key:e,value:n}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function ne(e,t){let n=[];function r(e){let r=n.findIndex(n=>t(e,n.key));if(r>-1){let e=n[r];return r>0&&(n.splice(r,1),n.unshift(e)),e.value}return h}function i(t,i){r(t)===h&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var re=(e,t)=>e===t;function ie(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;let{length:r}=t;for(let i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}}function ae(e,t){let{equalityCheck:n=re,maxSize:r=1,resultEqualityCheck:i}=typeof t==`object`?t:{equalityCheck:t},a=ie(n),o=0,s=r<=1?te(a):ne(r,a);function c(){let t=s.get(arguments);if(t===h){if(t=e.apply(null,arguments),o++,i){let e=s.getEntries().find(e=>i(e.value,t));e&&(t=e.value,o!==0&&o--)}s.put(arguments,t)}return t}return c.clearCache=()=>{s.clear(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}var oe=class{constructor(e){this.value=e}deref(){return this.value}},se=typeof WeakRef<`u`?WeakRef:oe,ce=0,le=1;function x(){return{s:ce,v:void 0,o:null,p:null}}function ue(e,t={}){let n=x(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=x(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=x(),e.set(n,t)):t=r}}let s=t,c;if(t.s===le)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new se(c):c}return s.s=le,s.v=c,c}return o.clearCache=()=>{n=x(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function de(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),g(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=ue,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=y(c),p=y(u),m=b(e),h=s(function(){return t++,o.apply(null,arguments)},...f),_=l(function(){r++;let e=ee(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(_,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var fe=de(ue),pe=Object.assign((e,t=fe)=>{_(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>pe}),me=de({memoize:ae,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),he=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(d(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);
1else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},ge=(...e)=>{let t=new WeakMap,n=1,r=e[e.length-1],i=e.length-1||1,a=r.length-i;if(a>3)throw Error(d(2));return(i,o,s,c)=>{let l=i.__cacheKey__;l||(l={id:n},i.__cacheKey__=l,n+=1);let u=t.get(l);if(!u){let n=e,i=[void 0,void 0,void 0];switch(a){case 0:break;case 1:n=[...e.slice(0,-1),()=>i[0],r];break;case 2:n=[...e.slice(0,-1),()=>i[0],()=>i[1],r];break;case 3:n=[...e.slice(0,-1),()=>i[0],()=>i[1],()=>i[2],r];break;default:throw Error(d(2))}u=me(...n),u.selectorArgs=i,t.set(l,u)}switch(u.selectorArgs[0]=o,u.selectorArgs[1]=s,u.selectorArgs[2]=c,a){case 0:return u(i);case 1:return u(i,o);case 2:return u(i,o,s);case 3:return u(i,o,s,c);default:throw Error(`unreachable`)}}},_e=e((e=>{var t=n();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),ve=e(((e,t)=>{t.exports=_e()})),ye=e((e=>{var t=n(),r=ve();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),be=e(((e,t)=>{t.exports=ye()})),xe=[],Se=void 0;function Ce(){return Se}function we(e){xe.push(e)}function Te(e){let t=(t,n)=>{let r=u(De).current,i;try{Se=r;for(let e of xe)e.before(r);i=e(t,n);for(let e of xe)e.after(r);r.didInitialize=!0}finally{Se=void 0}return i};return t.displayName=e.displayName||e.name,t}function Ee(e){return f.forwardRef(Te(e))}function De(){return{didInitialize:!1}}var Oe=ve(),ke=be(),Ae=s(19)?Me:Ne;function S(e,t,n,r,i){return Ae(e,t,n,r,i)}function je(e,t,n,r,i){let a=f.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Oe.useSyncExternalStore)(e.subscribe,a,a)}we({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Oe.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Me(e,t,n,r,i){let a=Ce();if(!a)return je(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Ne(e,t,n,r,i){return(0,ke.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Pe=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}
1subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return S(this,e,t,n,r)}},C=f[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Fe=C&&C!==f.useLayoutEffect?C:e=>e();function w(e){let t=u(Ie).current;return t.next=e,Fe(t.effect),t.trampoline}function Ie(){let e={next:void 0,callback:Le,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Le(){}var T=typeof document<`u`?f.useLayoutEffect:()=>{},Re=class extends Pe{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){f.useDebugValue(e),T(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;T(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;T(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){f.useDebugValue(e);let n=t!==void 0;T(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return f.useDebugValue(e),S(this,this.selectors[e],t,n,r)}useContextCallback(e,t){f.useDebugValue(e);let n=w(t??c);this.context[e]=n}useStateSetter(e){let t=f.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},E=null;globalThis.requestAnimationFrame;var D=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},O=class e{static create(){return new e}static request(e){return D.request(e)}static cancel(e){return D.cancel(e)}currentId=E;request(e){this.cancel(),this.currentId=D.request(()=>{this.currentId=E,e()})}cancel=()=>{this.currentId!==E&&(D.cancel(this.currentId),this.currentId=E)};disposeEffect=()=>this.cancel};function ze(){let e=u(O.create).current;return m(e.disposeEffect),e}var k=0,Be=class e{static create(){return new e}currentId=k;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=k,t()},e)}isStarted(){return this.currentId!==k}clear=()=>{this.currentId!==k&&(clearTimeout(this.currentId),this.currentId=k)};disposeEffect=()=>this.clear};function Ve(){let e=u(Be.create).current;return m(e.disposeEffect),e}function A(){return typeof window<`u`}function j(e){return N(e)?(e.nodeName||``).toLowerCase():`#document`}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function He(e){return((N(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function N(e){return A()?e instanceof Node||e instanceof M(e).Node:!1}function P(e){return A()?e instanceof Element||e instanceof M(e).Element:!1}function F(e){return A()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function I(e){return!A()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function Ue(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function We(e){return/^(table|td|th)$/.test(j(e))}function Ge(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ke=/transform|translate|scale|rotate|perspective|filter/,qe=/paint|layout|strict|content/,L=e=>!!e&&e!==`none`,Je;function Ye(e){let t=P(e)?$e(e):e;return L(t.transform)||L(t.translate)||L(t.scale)||L(t.rotate)||L(t.perspective)||!Ze()&&(L(t.backdropFilter)||L(t.filter))||Ke.test(t.willChange||``)||qe.test(t.contain||``)}function Xe(e){let t=R(e);for(;F(t)&&!Qe(t);){if(Ye(t))return t;if(Ge(t))return null;t=R(t)}return null}function Ze(){return Je??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Je}function Qe(e){return/^(html|body|#document)$/.test(j(e))}function $e(e){return M(e).getComputedStyle(e)}function et(e){return P(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if(j(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||I(e)&&e.host||He(e);return I(t)?t.host:t}function tt(e){let t=R(e);return Qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:F(t)&&Ue(t)?t:tt(t)}function nt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=tt(e),i=r===e.ownerDocument?.body,a=M(r);if(i){let e=rt(a);
1return t.concat(a,a.visualViewport||[],Ue(r)?r:[],e&&n?nt(e):[])}else return t.concat(r,nt(r,[],n))}function rt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function z(e){return e?.ownerDocument||document}var B=typeof navigator<`u`,it=ft(),at=mt(),V=pt(),ot=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),st=it.platform===`MacIntel`&&it.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(it.platform);B&&/firefox/i.test(V);var ct=B&&/apple/i.test(navigator.vendor);B&&/Edg/i.test(V);var lt=B&&/android/i.test(at)||/android/i.test(V),ut=B&&at.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,dt=V.includes(`jsdom/`);function ft(){if(!B)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function pt(){if(!B)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function mt(){if(!B)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var ht=`data-base-ui-focusable`,gt=`active`,_t=`selected`,vt=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,yt=`ArrowLeft`,bt=`ArrowRight`,xt=`ArrowUp`,St=`ArrowDown`;function Ct(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function H(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&I(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function wt(e,t){if(!P(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(H(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Tt(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Et(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Dt(e){return e.matches(`html,body`)}function Ot(e){return F(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function kt(e){return e?e.getAttribute(`role`)===`combobox`&&Ot(e):!1}function At(e){if(!e||dt)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function jt(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}var U=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`].join(`,`),Mt=typeof Element>`u`,W=Mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,G=!Mt&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},K=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):K(e.parentNode))},Nt=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},Pt=function(e,t,n){if(K(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(U));return t&&W.call(e,U)&&r.unshift(e),r=r.filter(n),r},q=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!K(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=q(o.length?o:a.children,!0,n);
1n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{W.call(a,U)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!K(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=q(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},Ft=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},It=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Nt(e))&&!Ft(e)?0:e.tabIndex},Lt=function(e,t){var n=It(e);return n<0&&t&&!Ft(e)?0:n},Rt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},zt=function(e){return e.tagName===`INPUT`},Bt=function(e){return zt(e)&&e.type===`hidden`},Vt=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Ht=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ut=function(e){if(!e.name)return!0;var t=e.form||G(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Ht(r,e.form);return!i||i===e},Wt=function(e){return zt(e)&&e.type===`radio`},Gt=function(e){return Wt(e)&&!Ut(e)},Kt=function(e){var t=e&&G(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=G(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},qt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Jt=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=W.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(W.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=G(e);if(o&&!o.shadowRoot&&r(o)===!0)return qt(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(Kt(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return qt(e);return!1},Yt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return W.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Xt=function(e,t){return!(t.disabled||Bt(t)||Jt(t,e)||Vt(t)||Yt(t))},Zt=function(e,t){return!(Gt(t)||It(t)<0||!Xt(e,t))},Qt=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},$t=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Lt(a,i),s=i?$t(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Rt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},J=function(e,t){return t||={},$t(t.getShadowRoot?q([e],t.includeContainer,{filter:Zt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Qt}):Pt(e,t.includeContainer,Zt.bind(null,t)))},en=function(e,t){return t||={},t.getShadowRoot?q([e],t.includeContainer,{filter:Xt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Pt(e,t.includeContainer,Xt.bind(null,t))},tn=function(e,t){if(t||={},!e)throw Error(`No node provided`);return W.call(e,U)===!1?!1:Zt(t,e)},Y=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver==`function`&&ResizeObserver.toString().includes(`[native code]`)?`full`:`none`});function nn(e,t){let n=J(e,Y()),r=n.length;if(r===0)return;let i=Ct(z(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function rn(e){return nn(z(e).body,1)||e}function an(e){return nn(z(e).body,-1)||e}function on(e,t){if(!e)return null;let n=J(z(e).body,Y()),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function sn(e){return on(e,1)}function cn(e){return on(e,-1)}function X(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!H(n,r)}
1function ln(e){J(e,Y()).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function un(e){e.querySelectorAll(`[data-tabindex]`).forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var dn={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},fn={...dn,position:`fixed`,top:0,left:0},pn={...dn,position:`absolute`},Z=r(),mn=f.forwardRef(function(e,t){let[n,r]=f.useState();T(()=>{ct&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,Z.jsx)(`span`,{...e,ref:t,style:fn,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function hn(e){return s(19)?e:e?`true`:void 0}var Q=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),gn={[Q.startingStyle]:``},_n={[Q.endingStyle]:``},vn={transitionStatus(e){return e===`starting`?gn:e===`ending`?_n:null}};function yn(e){return e==null?e:`current`in e?e.current:e}var $=t(i());function bn(e,t=!1,n=!0){let r=ze();return w((i,a=null)=>{r.cancel();function o(){$.flushSync(i)}let s=yn(e);if(s==null)return;let c=s;if(typeof c.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED)i();else{function e(){let e=Q.startingStyle;if(!c.hasAttribute(e)){r.request(i);return}let t=new MutationObserver(()=>{c.hasAttribute(e)||(t.disconnect(),i())});t.observe(c,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}function i(){Promise.all(c.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||o()}).catch(()=>{let e=c.getAnimations();if(n){if(a?.aborted)return;o()}else e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&i()})}if(t){e();return}r.request(i)}})}function xn(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=w(i),o=bn(r,n,!1);f.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var Sn={...f},Cn=0;function wn(e,t=`mui`){let[n,r]=f.useState(e),i=e||n;return f.useEffect(()=>{n??(Cn+=1,r(`${t}-${Cn}`))},[n,t]),i}var Tn=Sn.useId;function En(e,t){if(Tn!==void 0){let n=Tn();return e??(t?`${t}-${n}`:n)}return wn(e,t)}var Dn=`none`,On=`trigger-press`,kn=`trigger-hover`,An=`trigger-focus`,jn=`outside-press`,Mn=`item-press`,Nn=`close-press`,Pn=`track-press`,Fn=`input-change`,In=`focus-out`,Ln=`escape-key`,Rn=`close-watcher`,zn=`list-navigation`,Bn=`keyboard`,Vn=`drag`,Hn=`cancel-open`,Un=`sibling-open`,Wn=`disabled`,Gn=`imperative-action`,Kn=`swipe`,qn=`window-resize`;function Jn(e,t,n,r){let i=!1,a=!1,o=r??l;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Yn(e,t,n){let r=n??l;return{reason:e,event:t??new Event(`base-ui`),...r}}function Xn(e){return`data-base-ui-${e}`}var Zn=f.createContext(null),Qn=()=>f.useContext(Zn),$n=Xn(`portal`);function er(e={}){let{ref:t,container:n,componentProps:r=l,elementProps:i}=e,o=En(),s=Qn()?.portalNode,[c,u]=f.useState(null),[d,p]=f.useState(null),m=w(e=>{e!==null&&p(e)}),h=f.useRef(null);T(()=>{if(n===null){h.current&&(h.current=null,p(null),u(null));return}if(o==null)return;let e=(n&&(N(n)?n:n.current))??s??document.body;if(e==null){h.current&&(h.current=null,p(null),u(null));return}h.current!==e&&(h.current=e,p(null),u(e))}
1,[n,s,o]);let g=a(`div`,r,{ref:[t,m],props:[{id:o,[$n]:``},i]});return{portalNode:d,portalSubtree:c&&g?$.createPortal(g,c):null}}var tr=f.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=er({container:r,ref:t,componentProps:e,elementProps:c}),d=f.useRef(null),p=f.useRef(null),m=f.useRef(null),h=f.useRef(null),[g,_]=f.useState(null),v=g?.modal,y=g?.open,b=typeof s==`boolean`?s:!!g&&!g.modal&&g.open&&!!l;f.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&X(e)&&(e.type===`focusin`?un:ln)(l)}return l.addEventListener(`focusin`,e,!0),l.addEventListener(`focusout`,e,!0),()=>{l.removeEventListener(`focusin`,e,!0),l.removeEventListener(`focusout`,e,!0)}},[l,v]),f.useEffect(()=>{!l||y||un(l)},[y,l]);let ee=f.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,Z.jsxs)(f.Fragment,{children:[u,(0,Z.jsxs)(Zn.Provider,{value:ee,children:[b&&l&&(0,Z.jsx)(mn,{"data-type":`outside`,ref:d,onFocus:e=>{X(e,l)?m.current?.focus():an(g?g.domReference:null)?.focus()}}),b&&l&&(0,Z.jsx)(`span`,{"aria-owns":l.id,style:o}),l&&$.createPortal(n,l),b&&l&&(0,Z.jsx)(mn,{"data-type":`outside`,ref:p,onFocus:e=>{X(e,l)?h.current?.focus():(rn(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Jn(`focus-out`,e.nativeEvent)))}})]})]})});function nr(e,t=!1,n=!1){let[r,i]=f.useState(e&&t?`idle`:void 0),[a,o]=f.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),T(()=>{if(!e&&a&&r!==`ending`&&n){let e=O.request(()=>{i(`ending`)});return()=>{O.cancel(e)}}},[e,a,r,n]),T(()=>{if(!e||t)return;let n=O.request(()=>{i(void 0)});return()=>{O.cancel(n)}},[t,e]),T(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=O.request(()=>{i(`idle`)});return()=>{O.cancel(n)}},[t,e,a,i,r]),f.useMemo(()=>({mounted:a,setMounted:o,transitionStatus:r}),[a,r])}var rr=f.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,...o}=e,{portalNode:s,portalSubtree:c}=er({container:r,ref:t,componentProps:e,elementProps:o});return!c&&!s?null:(0,Z.jsxs)(f.Fragment,{children:[c,s&&$.createPortal(n,s)]})});function ir(e){return En(e,`base-ui`)}export{Et as $,fe as $t,En as A,P as At,rn as B,O as Bt,Un as C,rt as Ct,kn as D,R as Dt,An as E,nt as Et,vn as F,We as Ft,X as G,Pe as Gt,sn as H,Re as Ht,hn as I,Ge as It,J,Ee as Jt,en as K,S as Kt,mn as L,Ze as Lt,bn as M,Qe as Mt,yn as N,Ue as Nt,On as O,M as Ot,Q as P,I as Pt,Tt as Q,ge as Qt,fn as R,Be as Rt,jn as S,He as St,Pn as T,et as Tt,cn as U,T as Ut,an as V,ze as Vt,Y as W,w as Wt,H as X,ve as Xt,Ct as Y,be as Yt,jt as Z,he as Zt,Fn as _,ct as _t,Qn as a,gt as at,zn as b,$e as bt,Yn as c,bt as ct,Rn as d,_t as dt,m as en,Dt as et,Wn as f,vt as ft,Gn as g,ut as gt,In as h,dt as ht,tr as i,At as it,xn as j,F as 
1jt,qn as k,Ye as kt,Hn as l,xt as lt,Ln as m,st as mt,rr as n,kt as nt,Xn as o,St as ot,Vn as p,lt as pt,tn as q,Te as qt,nr as r,Ot as rt,Jn as s,yt as st,ir as t,wt as tt,Nn as u,ht as ut,Mn as v,ot as vt,Kn as w,j as wt,Dn as x,Xe as xt,Bn as y,z as yt,pn as z,Ve as zt};
2//# chunkId=01a10ce4-e714-75d2-8888-65fbbf1a981b

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.