vendor: 4,098 bytes, line 1
1import{o as e,t}from"./react-BehimFKy.js";import{$ as n,G as r,J as i,K as a,Q as o,U as s,W as c,Y as l,_t as u,ct as d,et as f,ft as ee,it as p,lt as te,nt as ne,ot as m,pt as h,ut as g}from"./classNames-aGOiiX1-.js";var _=e=>e?.ownerDocument??document,v=e=>e&&`window`in e&&e.window===e?e:_(e).defaultView||window;function re(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function y(e){return re(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}var ie=!1;function b(){return ie}function x(e,t){if(!b())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:y(n)?n.host:n.parentNode}return!1}var S=(e=document)=>{if(!b())return e.activeElement;let t=e.activeElement;for(;t&&`shadowRoot`in t&&t.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t};function C(e){if(b()&&e.target instanceof Element&&e.target.shadowRoot){if(`composedPath`in e)return e.composedPath()[0]??null;if(`composedPath`in e.nativeEvent)return e.nativeEvent.composedPath()[0]??null}return e.target}function ae(e){if(oe())e.focus({preventScroll:!0});else{let t=se(e);e.focus(),ce(t)}}var w=null;function oe(){if(w==null){w=!1;try{document.createElement(`div`).focus({get preventScroll(){return w=!0,!0}})}catch{}}return w}function se(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function ce(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var T=e(t(),1),le=typeof document<`u`?T.useLayoutEffect:()=>{};function E(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function ue(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function D(e){let t=(0,T.useRef)({isFocused:!1,observer:null});return le(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]),(0,T.useCallback)(n=>{let r=C(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r;n.addEventListener(`focusout`,r=>{if(t.current.isFocused=!1,n.disabled){let t=E(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===S()?null:S();n.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:e})),n.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:[`disabled`]})}},[e])}var O=!1;function k(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function A(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function j(e){let t=null;return()=>(t??=e(),t)}var M=j(function(){return A(/^Mac/i)}),de=j(function(){return A(/^iPad/i)||M()&&navigator.maxTouchPoints>1}),fe=j(function(){return k(/AppleWebKit/i)&&!pe()}),pe=j(function(){return k(/Chrome/i)}),me=j(function(){return k(/Android/i)}),he=j(function(){return k(/Firefox/i)});function ge(e){return e.pointerType===``&&e.isTrusted?!0:me()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function N(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}=t;he()&&window.event?.type?.startsWith(`key`)&&e.target===`_blank`&&(M()?r=!0:i=!0);let s=fe()&&M()&&!de()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:r,ctrlKey:i,altKey:a,shiftKey:o}
1):new MouseEvent(`click`,{metaKey:r,ctrlKey:i,altKey:a,shiftKey:o,detail:1,bubbles:!0,cancelable:!0});N.isOpening=n,ae(e),e.dispatchEvent(s),N.isOpening=!1}N.isOpening=!1;var P=null,F=new Set,I=new Map,L=!1,R=!1,_e={Tab:!0,Escape:!0};function z(e,t){for(let n of F)n(e,t)}function ve(e){return!(e.metaKey||!M()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function B(e){L=!0,!N.isOpening&&ve(e)&&(P=`keyboard`,z(`keyboard`,e))}function V(e){P=`pointer`,`pointerType`in e&&e.pointerType,(e.type===`mousedown`||e.type===`pointerdown`)&&(L=!0,z(`pointer`,e))}function H(e){!N.isOpening&&ge(e)&&(L=!0,P=`virtual`)}function U(e){let t=v(C(e)),n=_(C(e));C(e)===t||C(e)===n||O||!e.isTrusted||(!L&&!R&&(P=`virtual`,z(`virtual`,e)),L=!1,R=!1)}function W(){O||(L=!1,R=!0)}function G(e){if(typeof window>`u`||typeof document>`u`)return;let t=v(e),n=_(e);if(I.get(t))return;let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){L=!0,r.apply(this,arguments)},n.addEventListener(`keydown`,B,!0),n.addEventListener(`keyup`,B,!0),n.addEventListener(`click`,H,!0),t.addEventListener(`focus`,U,!0),t.addEventListener(`blur`,W,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,V,!0),n.addEventListener(`pointermove`,V,!0),n.addEventListener(`pointerup`,V,!0)),t.addEventListener(`beforeunload`,()=>{K(e)},{once:!0}),I.set(t,{focus:r})}var K=(e,t)=>{let n=v(e),r=_(e);t&&r.removeEventListener(`DOMContentLoaded`,t),I.has(n)&&(n.HTMLElement.prototype.focus=I.get(n).focus,r.removeEventListener(`keydown`,B,!0),r.removeEventListener(`keyup`,B,!0),r.removeEventListener(`click`,H,!0),n.removeEventListener(`focus`,U,!0),n.removeEventListener(`blur`,W,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,V,!0),r.removeEventListener(`pointermove`,V,!0),r.removeEventListener(`pointerup`,V,!0)),I.delete(n))};function ye(e){let t=_(e),n;return t.readyState===`loading`?(n=()=>{G(e)},t.addEventListener(`DOMContentLoaded`,n)):G(e),()=>K(e,n)}typeof document<`u`&&ye();function q(){return P!==`pointer`}var be=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function xe(e,t,n){let r=n?C(n):void 0,i=_(r),a=v(r),o=a===void 0?HTMLInputElement:a.HTMLInputElement,s=a===void 0?HTMLTextAreaElement:a.HTMLTextAreaElement,c=a===void 0?HTMLElement:a.HTMLElement,l=a===void 0?KeyboardEvent:a.KeyboardEvent,u=S(i);return e=e||u instanceof o&&!be.has(u.type)||u instanceof s||u instanceof c&&u.isContentEditable,!(e&&t===`keyboard`&&n instanceof l&&!_e[n.key])}function Se(e,t,n){G(),(0,T.useEffect)(()=>{if(n?.enabled===!1)return;let t=(t,r)=>{xe(!!n?.isTextInput,t,r)&&e(q())};return F.add(t),()=>{F.delete(t)}},t)}function Ce(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,a=(0,T.useCallback)(e=>{if(C(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),o=D(a),s=(0,T.useCallback)(e=>{let t=C(e),r=_(t),a=r?S(r):S();t===e.currentTarget&&t===a&&(n&&n(e),i&&i(!0),o(e))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function J(){let e=(0,T.useRef)(new Map),t=(0,T.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,T.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,T.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,T.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function we(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=(0,T.useRef)({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=J(),c=(0,T.useCallback)(e=>{x(e.currentTarget,C(e))&&a.current.isFocusWithin&&!x(e.currentTarget,e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,a,s]),l=D(c),u=(0,T.useCallback)(e=>{if(!x(e.currentTarget,C(e)))return;let t=C(e),n=_(t),s=S(n);if(!a.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),a.current.isFocusWithin=!0,l(e);let t=e.currentTarget;o(n,`focus`,e=>{let r=C(e);if(a.current.isFocusWithin&&!x(t,r)){let e=new n.defaultView.FocusEvent(`blur`,{relatedTarget:r});ue(e,t),c(E(e))}},{capture:!0})}},[r,i,l,o,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}
1:{focusWithinProps:{onFocus:u,onBlur:c}}}function Te(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,T.useRef)({isFocused:!1,isFocusVisible:t||q()}),[a,o]=(0,T.useState)(!1),[s,c]=(0,T.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),l=(0,T.useCallback)(()=>c(i.current.isFocused&&i.current.isFocusVisible),[]),u=(0,T.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=q(),o(e),l()},[l]);Se(e=>{i.current.isFocusVisible=e,l()},[n,a],{enabled:a,isTextInput:n});let{focusProps:d}=Ce({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=we({isDisabled:!r,onFocusWithinChange:u});return{isFocused:a,isFocusVisible:s,focusProps:r?f:d}}var Y=!1,X=0;function Ee(){Y=!0,setTimeout(()=>{Y=!1},500)}function De(e){e.pointerType===`touch`&&Ee()}function Oe(){let e=_(null);if(e!==void 0)return X===0&&typeof PointerEvent<`u`&&e.addEventListener(`pointerup`,De),X++,()=>{X--,!(X>0)&&typeof PointerEvent<`u`&&e.removeEventListener(`pointerup`,De)}}function ke(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=(0,T.useState)(!1),s=(0,T.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:``,target:null}).current;(0,T.useEffect)(Oe,[]);let{addGlobalListener:c,removeAllGlobalListeners:l}=J(),{hoverProps:u,triggerHoverEnd:d}=(0,T.useMemo)(()=>{let e=(e,r)=>{if(s.pointerType=r,i||r===`touch`||s.isHovered||!x(e.currentTarget,C(e)))return;s.isHovered=!0;let l=e.currentTarget;s.target=l,c(_(C(e)),`pointerover`,e=>{s.isHovered&&s.target&&!x(s.target,C(e))&&a(e,e.pointerType)},{capture:!0}),t&&t({type:`hoverstart`,target:l,pointerType:r}),n&&n(!0),o(!0)},a=(e,t)=>{let i=s.target;s.pointerType=``,s.target=null,!(t===`touch`||!s.isHovered||!i)&&(s.isHovered=!1,l(),r&&r({type:`hoverend`,target:i,pointerType:t}),n&&n(!1),o(!1))},u={};return typeof PointerEvent<`u`&&(u.onPointerEnter=t=>{Y&&t.pointerType===`mouse`||e(t,t.pointerType)},u.onPointerLeave=e=>{!i&&x(e.currentTarget,C(e))&&a(e,e.pointerType)}),{hoverProps:u,triggerHoverEnd:a}},[t,n,r,i,s,c,l]);return(0,T.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:a}}var Ae=e(u(),1);function je(e,t,n){let[r,i]=(0,T.useState)(n),a=e!==void 0,o=(0,T.useRef)(a),s=(0,T.useRef)(!1),c=(0,T.useRef)(!1);return a&&!o.current&&!s.current?(s.current=!0,o.current=a,console.error(`A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.`)):!a&&o.current&&!c.current&&(c.current=!0,o.current=a,console.error(`A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.`)),[a?e:r,g(e=>(a||(0,Ae.flushSync)(()=>i(e)),t?.(e)))]}function Me(e){let[t]=(0,T.useState)(e);return t}function Ne(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))Fe(n,Pe(t,r),i);return n}function Pe(e,t){return e?e+`[`+t+`]`:t}function Fe(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())Fe(e,Pe(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n==`boolean`?e.push([t,n?`1`:`0`]):typeof n==`string`?e.push([t,n]):typeof n==`number`?e.push([t,`${n}`]):n==null?e.push([t,``]):Le(n)&&!(0,T.isValidElement)(n)&&Ne(n,t,e)}function Ie(e){var t;let n=e?.form??e.closest(`form`);if(n){for(let t of n.elements)if(t!==e&&(t.tagName===`INPUT`&&t.type===`submit`||t.tagName===`BUTTON`&&t.type===`submit`||t.nodeName===`INPUT`&&t.type===`image`)){t.click();return}(t=n.requestSubmit)==null||t.call(n)}}function Le(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var Re=(0,T.createContext)(null);function ze({children:e}){let t=(0,T.useContext)(Re);if(!t)return T.createElement(T.Fragment,null,e);let{target:n}=t;return n?(0,Ae.createPortal)(T.createElement(T.Fragment,null,e),n):null}function Be({data:e,form:t,disabled:r,onReset:i,overrides:a}){let[s,c]=(0,T.useState)(null),l=h();return(0,T.useEffect)(()=>{if(i&&s)return l.addEventListener(s,`reset`,i)},[s,t,i]),T.createElement(ze,null,T.createElement(Ve,{setForm:c,formId:t}),Ne(e).map(([e,i])=>T.createElement(o,{features:n.Hidden,...m({key:e,as:`input`,type:`hidden`,hidden:!0,readOnly:!0,form:t,disabled:r,name:e,value:i,...a})})))}function Ve({setForm:e,formId:t}){return(0,T.useEffect)(()=>
1{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:T.createElement(o,{features:n.Hidden,as:`input`,type:`hidden`,hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest(`form`);n&&e(n)}})}var He=(0,T.createContext)(void 0);function Ue(){return(0,T.useContext)(He)}function We(e){let t=e.parentElement,n=null;for(;t&&!a(t);)c(t)&&(n=t),t=t.parentElement;let r=t?.getAttribute(`disabled`)===``;return r&&Ge(n)?!1:r}function Ge(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(c(t))return!1;t=t.previousElementSibling}return!0}var Z=(0,T.createContext)(null);Z.displayName=`LabelContext`;function Q(){let e=(0,T.useContext)(Z);if(e===null){let e=Error(`You used a <Label /> component, but it is not inside a relevant parent.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Q),e}return e}function $(e){let t=(0,T.useContext)(Z)?.value??void 0;return(e?.length??0)>0?[t,...e].filter(Boolean).join(` `):t}function Ke({inherit:e=!1}={}){let t=$(),[n,r]=(0,T.useState)([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(` `):void 0,(0,T.useMemo)(()=>function(e){let t=g(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}))),n=(0,T.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return T.createElement(Z.Provider,{value:n},e.children)},[r])]}var qe=`label`;function Je(e,t){let n=(0,f.useId)(),a=Q(),o=Ue(),c=d(),{id:u=`headlessui-label-${n}`,htmlFor:p=o??a.props?.htmlFor,passive:m=!1,...h}=e,_=s(t);ee(()=>a.register(u),[u,a.register]);let v=g(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&r(e.target))&&(l(t)&&e.preventDefault(),a.props&&`onClick`in a.props&&typeof a.props.onClick==`function`&&a.props.onClick(e),l(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute(`disabled`);if(t===`true`||t===``)return;let n=e.getAttribute(`aria-disabled`);if(n===`true`||n===``)return;(i(e)&&(e.type===`file`||e.type===`radio`||e.type===`checkbox`)||e.role===`radio`||e.role===`checkbox`||e.role===`switch`)&&e.click(),e.focus({preventScroll:!0})}}}),re=te({...a.slot,disabled:c||!1}),y={ref:_,...a.props,id:u,htmlFor:p,onClick:v};return m&&(`onClick`in y&&(delete y.htmlFor,delete y.onClick),`onClick`in h&&delete h.onClick),ne()({ourProps:y,theirProps:h,slot:re,defaultTag:p?qe:`div`,name:a.name||`Label`})}var Ye=p(Je),Xe=Object.assign(Ye,{});function Ze(e,t){return e!==null&&t!==null&&typeof e==`object`&&typeof t==`object`&&`id`in e&&`id`in t?e.id===t.id:e===t}function Qe(e=Ze){return(0,T.useCallback)((t,n)=>{if(typeof e==`string`){let r=e;return t?.[r]===n?.[r]}return e(t,n)},[e])}export{Xe as a,Be as c,je as d,ke as f,Ke as i,Ie as l,Q as n,We as o,Te as p,$ as r,Ue as s,Qe as t,Me as u};
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.