PageSourceSearch

https://hedingroup.com/_next/static/chunks/1845.91822505549563a4.js

js hedingroup.com collected 2026-10-08 00:23:55 UTC 25,983 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1845],{4172:(e,t,n)=>{n.d(t,{K:()=>o});var r=n(36439);function o(e){let[t]=(0,r.useState)(e);return t}},6007:(e,t,n)=>{n.d(t,{J:()=>l,q:()=>i});var r=n(36439);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}function l({id:e,children:t}){return r.createElement(o.Provider,{value:e},t)}},9815:(e,t,n)=>{n.d(t,{J:()=>i});var r=n(36439);function o(e){return[e.screenX,e.screenY]}function i(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=o(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=o(t)}}}},12414:(e,t,n)=>{let r;n.d(t,{B:()=>o,X:()=>i});var o=((r=o||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r);function i(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:throw Error("Unexpected object: "+e)}}},12464:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(36439),o=n(17797);function i(e,t,n){let[i,l]=(0,r.useState)(n),a=void 0!==e,u=(0,r.useRef)(a),s=(0,r.useRef)(!1),d=(0,r.useRef)(!1);return!a||u.current||s.current?a||!u.current||d.current||(d.current=!0,u.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.")):(s.current=!0,u.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?e:i,(0,o._)(e=>(a||l(e),null==t?void 0:t(e)))]}},16370:(e,t,n)=>{n.d(t,{S:()=>l,_:()=>i});var r=n(36439);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}function l({value:e,children:t}){return r.createElement(o.Provider,{value:e},t)}},20606:(e,t,n)=>{let r;n.d(t,{j:()=>l,u:()=>i});var o=n(7580),i=((r=i||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let l=(0,o.FX)(function(e,t){var n;let{features:r=1,...i}=e,l={ref:t,"aria-hidden":(2&r)==2||(null!=(n=i["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.Ci)()({ourProps:l,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})})},31541:(e,t,n)=>{n.d(t,{Y:()=>i});var r=n(36439),o=n(93395);function i(e,t){let n=(0,r.useRef)({left:0,top:0});if((0,o.s)(()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)},[e,t]),null==t||!e||t===document.activeElement)return!1;let i=t.getBoundingClientRect();return i.top!==n.current.top||i.left!==n.current.left}},34934:(e,t,n)=>{n.d(t,{q:()=>a});var r=n(36439);let o=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function i(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let l=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),l=!0;let a=l?null!=(n=i.innerText)?n:"":r;return o.test(a)&&(a=a.replace(o,"")),a}var l=n(17797);function a(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return(0,l._)(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let l=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():i(t).trim()}return null}
1).filter(Boolean);if(e.length>0)return e.join(", ")}return i(e).trim()})(r).trim().toLowerCase();return t.current=o,n.current=l,l})}},41845:(e,t,n)=>{let r,o,i,l;n.d(t,{WF:()=>ef,go:()=>es,h7:()=>ep,wh:()=>ec});var a=n(57935),u=n(35533),s=n(36439),d=n(72354),c=n(72523),p=n(12464),f=n(4172),v=n(31541),m=n(26478),b=n(78005),h=n(17797),x=n(80915),g=n(93395),S=n(53476),E=n(44046),O=n(73355),y=n(95282),I=n(93995),C=n(16728),D=n(75385),P=n(34934),R=n(9815),L=n(18533),T=n(16370),_=n(23880),F=n(97290),w=n(6007),M=n(84973),k=n(75029),B=n(12414),A=n(58853),N=n(55670),U=n(79080),j=n(60147),X=n(11657),Y=n(7580),H=n(81548),q=n(79900),Q=n(93028),K=n(19739),$=((r=$||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),V=((o=V||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),z=((i=z||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),J=((l=J||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.RegisterOption=5]="RegisterOption",l[l.UnregisterOption=6]="UnregisterOption",l[l.SetButtonElement=7]="SetButtonElement",l[l.SetOptionsElement=8]="SetOptionsElement",l);function G(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,N.wl)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let W={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===B.B.Nothing)return{...a,activeOptionIndex:null};if(t.focus===B.B.Specific)return{...a,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===B.B.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=(0,B.X)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...a,activeOptionIndex:l}}}}else if(t.focus===B.B.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=(0,B.X)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...a,activeOptionIndex:o}}}}let u=G(e),s=(0,B.X)(t,{resolveItems:()=>u.options,resolveActiveIndex:()=>u.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...u,activeOptionIndex:s}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=G(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=G(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>
1e.optionsElement===t.element?e:{...e,optionsElement:t.element}},Z=(0,s.createContext)(null);function ee(e){let t=(0,s.useContext)(Z);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ee),t}return t}Z.displayName="ListboxActionsContext";let et=(0,s.createContext)(null);function en(e){let t=(0,s.useContext)(et);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,en),t}return t}function er(e,t){return(0,j.Y)(t.type,W,e,t)}et.displayName="ListboxDataContext";let eo=s.Fragment,ei=(0,s.createContext)(!1),el=Y.Ac.RenderStrategy|Y.Ac.Static,ea=s.Fragment,eu=(0,Y.FX)(function(e,t){var n;let r=(0,T._)(),{value:o,defaultValue:i,form:l,name:a,onChange:u,by:d,invalid:c=!1,disabled:v=r||!1,horizontal:b=!1,multiple:x=!1,__demoMode:S=!1,...E}=e,y=b?"horizontal":"vertical",I=(0,D.P)(t),C=(0,f.K)(i),[P=x?[]:void 0,R]=(0,p.P)(o,u,C),[L,w]=(0,s.useReducer)(er,{dataRef:(0,s.createRef)(),listboxState:+!S,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:S}),k=(0,s.useRef)({static:!1,hold:!1}),A=(0,s.useRef)(new Map),U=function(e=function(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}){return(0,s.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(d),X=(0,s.useCallback)(e=>(0,j.Y)(H.mode,{1:()=>P.some(t=>U(t,e)),0:()=>U(P,e)}),[P]),H=(0,s.useMemo)(()=>({...L,value:P,disabled:v,invalid:c,mode:+!!x,orientation:y,compare:U,isSelected:X,optionsPropsRef:k,listRef:A}),[P,v,c,x,L,A]);(0,g.s)(()=>{L.dataRef.current=H},[H]);let q=0===H.listboxState;(0,O.j)(q,[H.buttonElement,H.optionsElement],(e,t)=>{var n;w({type:1}),(0,N.Bm)(t,N.MZ.Loose)||(e.preventDefault(),null==(n=H.buttonElement)||n.focus())});let K=(0,s.useMemo)(()=>({open:0===H.listboxState,disabled:v,invalid:c,value:P}),[H,v,P,c]),$=(0,h._)(e=>{let t=H.options.find(t=>t.id===e);t&&en(t.dataRef.current.value)}),V=(0,h._)(()=>{if(null!==H.activeOptionIndex){let{dataRef:e,id:t}=H.options[H.activeOptionIndex];en(e.current.value),w({type:2,focus:B.B.Specific,id:t})}}),z=(0,h._)(()=>w({type:0})),J=(0,h._)(()=>w({type:1})),G=(0,m.L)(),W=(0,h._)((e,t,n)=>{G.dispose(),G.microTask(()=>e===B.B.Specific?w({type:2,focus:B.B.Specific,id:t,trigger:n}):w({type:2,focus:e,trigger:n}))}),ee=(0,h._)((e,t)=>(w({type:5,id:e,dataRef:t}),()=>w({type:6,id:e}))),en=(0,h._)(e=>(0,j.Y)(H.mode,{0:()=>null==R?void 0:R(e),1(){let t=H.value.slice(),n=t.findIndex(t=>U(t,e));return -1===n?t.push(e):t.splice(n,1),null==R?void 0:R(t)}})),ei=(0,h._)(e=>w({type:3,value:e})),el=(0,h._)(()=>w({type:4})),ea=(0,h._)(e=>{w({type:7,element:e})}),eu=(0,h._)(e=>{w({type:8,element:e})}),es=(0,s.useMemo)(()=>({onChange:en,registerOption:ee,goToOption:W,closeListbox:J,openListbox:z,selectActiveOption:V,selectOption:$,search:ei,clearSearch:el,setButtonElement:ea,setOptionsElement:eu}),[]),[ed,ec]=(0,Q.b0)({inherit:!0}),ep=(0,s.useCallback)(()=>{if(void 0!==C)return null==R?void 0:R(C)},[R,C]),ef=(0,Y.Ci)();return s.createElement(ec,{value:ed,props:{htmlFor:null==(n=H.buttonElement)?void 0:n.id},slot:{open:0===H.listboxState,disabled:v}},s.createElement(_.St,null,s.createElement(Z.Provider,{value:es},s.createElement(et.Provider,{value:H},s.createElement(M.El,{value:(0,j.Y)(H.listboxState,{0:M.Uw.Open,1:M.Uw.Closed})},null!=a&&null!=P&&s.createElement(F.CL,{disabled:v,data:{[a]:P},form:l,onReset:ep}),ef({ourProps:{ref:I},theirProps:E,slot:K,defaultTag:eo,name:"Listbox"}))))))}),es=(0,Y.FX)(function(e,t){var n;let r=en("Listbox.Button"),o=ee("Listbox.Button"),i=(0,s.useId)(),l=(0,w.q)(),{id:p=l||`headlessui-listbox-button-${i}`,disabled:f=r.disabled||!1,autoFocus:v=!1,...m}=e,b=(0,D.P)(t,(0,_.Xc)(),o.setButtonElement),x=(0,_.TI)(),g=(0,h._)(e=>{switch(e.key){case q.D.Enter:(0,U.q)(e.currentTarget);break;case q.D.Space:case q.D.ArrowDown:e.preventDefault(),(0,d.flushSync)(()=>o.openListbox()),r.value||o.goToOption(B.B.First);break;case q.D.ArrowUp:e.preventDefault(),(0,d.flushSync)(()=>o.openListbox()),r.value||o.goToOption(B.B.Last)}}),S=(0,h._)(e=>{e.key===q.D.Space&&e.preventDefault()}),E=(0,h._)(e=>{var t;if((0,k.l)(e.currentTarget))return e.preventDefault();0===r.listboxState?((0,d.flushSync)(()=>
1o.closeListbox()),null==(t=r.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),o.openListbox())}),O=(0,h._)(e=>e.preventDefault()),y=(0,Q.o2)([p]),C=(0,H.MM)(),{isFocusVisible:P,focusProps:R}=(0,a.o)({autoFocus:v}),{isHovered:L,hoverProps:T}=(0,u.M)({isDisabled:f}),{pressed:F,pressProps:M}=(0,c.Z)({disabled:f}),A=(0,s.useMemo)(()=>({open:0===r.listboxState,active:F||0===r.listboxState,disabled:f,invalid:r.invalid,value:r.value,hover:L,focus:P,autofocus:v}),[r.listboxState,r.value,f,L,P,F,r.invalid,v]),N=(0,Y.v6)(x(),{ref:b,id:p,type:(0,I.c)(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsElement)?void 0:n.id,"aria-expanded":0===r.listboxState,"aria-labelledby":y,"aria-describedby":C,disabled:f||void 0,autoFocus:v,onKeyDown:g,onKeyUp:S,onKeyPress:O,onClick:E},R,T,M);return(0,Y.Ci)()({ourProps:N,theirProps:m,slot:A,defaultTag:"button",name:"Listbox.Button"})}),ed=Q.JU,ec=(0,Y.FX)(function(e,t){var n,r;let o=(0,s.useId)(),{id:i=`headlessui-listbox-options-${o}`,anchor:l,portal:a=!1,modal:u=!0,transition:c=!1,...p}=e,f=(0,_.zn)(l),[g,S]=(0,s.useState)(null);f&&(a=!0);let O=en("Listbox.Options"),I=ee("Listbox.Options"),P=(0,y.g)(O.optionsElement),R=(0,M.O_)(),[T,F]=(0,L.p)(c,g,null!==R?(R&M.Uw.Open)===M.Uw.Open:0===O.listboxState);(0,E.O)(T,O.buttonElement,I.closeListbox);let w=!O.__demoMode&&u&&0===O.listboxState;(0,C.K)(w,P);let k=!O.__demoMode&&u&&0===O.listboxState;(0,x.v)(k,{allowed:(0,s.useCallback)(()=>[O.buttonElement,O.optionsElement],[O.buttonElement,O.optionsElement])});let A=0!==O.listboxState,U=!(0,v.Y)(A,O.buttonElement)&&T,H=function(e,t){let[n,r]=(0,s.useState)(t);return e||n===t||r(t),e?n:t}(T&&1===O.listboxState,O.value),Q=(0,h._)(e=>O.compare(H,e)),$=(0,s.useMemo)(()=>{var e;if(null==f||!(null!=(e=null==f?void 0:f.to)&&e.includes("selection")))return null;let t=O.options.findIndex(e=>Q(e.dataRef.current.value));return -1===t&&(t=0),t},[f,O.options]),V=(()=>{if(null==f)return;if(null===$)return{...f,inner:void 0};let e=Array.from(O.listRef.current.values());return{...f,inner:{listRef:{current:e},index:$}}})(),[z,J]=(0,_.UF)(V),G=(0,_.G3)(),W=(0,D.P)(t,f?z:null,I.setOptionsElement,S),Z=(0,m.L)();(0,s.useEffect)(()=>{var e;let t=O.optionsElement;t&&0===O.listboxState&&t!==(null==(e=(0,X.T)(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))},[O.listboxState,O.optionsElement]);let er=(0,h._)(e=>{var t,n;switch(Z.dispose(),e.key){case q.D.Space:if(""!==O.searchQuery)return e.preventDefault(),e.stopPropagation(),I.search(e.key);case q.D.Enter:if(e.preventDefault(),e.stopPropagation(),null!==O.activeOptionIndex){let{dataRef:e}=O.options[O.activeOptionIndex];I.onChange(e.current.value)}0===O.mode&&((0,d.flushSync)(()=>I.closeListbox()),null==(t=O.buttonElement)||t.focus({preventScroll:!0}));break;case(0,j.Y)(O.orientation,{vertical:q.D.ArrowDown,horizontal:q.D.ArrowRight}):return e.preventDefault(),e.stopPropagation(),I.goToOption(B.B.Next);case(0,j.Y)(O.orientation,{vertical:q.D.ArrowUp,horizontal:q.D.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),I.goToOption(B.B.Previous);case q.D.Home:case q.D.PageUp:return e.preventDefault(),e.stopPropagation(),I.goToOption(B.B.First);case q.D.End:case q.D.PageDown:return e.preventDefault(),e.stopPropagation(),I.goToOption(B.B.Last);case q.D.Escape:e.preventDefault(),e.stopPropagation(),(0,d.flushSync)(()=>I.closeListbox()),null==(n=O.buttonElement)||n.focus({preventScroll:!0});return;case q.D.Tab:e.preventDefault(),e.stopPropagation(),(0,d.flushSync)(()=>I.closeListbox()),(0,N.p9)(O.buttonElement,e.shiftKey?N.BD.Previous:N.BD.Next);break;default:1===e.key.length&&(I.search(e.key),Z.setTimeout(()=>I.clearSearch(),350))}}),eo=null==(n=O.buttonElement)?void 0:n.id,ei=(0,s.useMemo)(()=>({open:0===O.listboxState}),[O.listboxState]),ea=(0,Y.v6)(f?G():{},{id:i,ref:W,"aria-activedescendant":null===O.activeOptionIndex||null==(r=O.options[O.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===O.mode||void 0,"aria-labelledby":eo,"aria-orientation":O.orientation,onKeyDown:er,role:"listbox",tabIndex:0===O.listboxState?0:void 0,style:{...p.style,...J,"--button-width":(0,b.L)(O.buttonElement,!0).width},...(0,L.B)(F)}),eu=(0,Y.Ci)();return s.createElement(K.ZL,{enabled:!!a&&(e.static||T)},s.createElement(et.Provider,{value:1===O.mode?O:{...O,isSelected:Q}},eu({ourProps:ea,theirProps:p,slot:ei,defaultTag:"div",features:el,visible:U,name:"Listbox.Options"}
1)))}),ep=(0,Y.FX)(function(e,t){let n=(0,s.useId)(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...l}=e,a=!0===(0,s.useContext)(ei),u=en("Listbox.Option"),c=ee("Listbox.Option"),p=null!==u.activeOptionIndex&&u.options[u.activeOptionIndex].id===r,f=u.isSelected(i),v=(0,s.useRef)(null),m=(0,P.q)(v),b=(0,S.Y)({disabled:o,value:i,domRef:v,get textValue(){return m()}}),x=(0,D.P)(t,v,e=>{e?u.listRef.current.set(r,e):u.listRef.current.delete(r)});(0,g.s)(()=>{if(!u.__demoMode&&0===u.listboxState&&p&&0!==u.activationTrigger)return(0,A.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[v,p,u.__demoMode,u.listboxState,u.activationTrigger,u.activeOptionIndex]),(0,g.s)(()=>{if(!a)return c.registerOption(r,b)},[b,r,a]);let E=(0,h._)(e=>{var t;if(o)return e.preventDefault();c.onChange(i),0===u.mode&&((0,d.flushSync)(()=>c.closeListbox()),null==(t=u.buttonElement)||t.focus({preventScroll:!0}))}),O=(0,h._)(()=>{if(o)return c.goToOption(B.B.Nothing);c.goToOption(B.B.Specific,r)}),y=(0,R.J)(),I=(0,h._)(e=>{y.update(e),!o&&(p||c.goToOption(B.B.Specific,r,0))}),C=(0,h._)(e=>{y.wasMoved(e)&&(o||p||c.goToOption(B.B.Specific,r,0))}),L=(0,h._)(e=>{y.wasMoved(e)&&(o||p&&c.goToOption(B.B.Nothing))}),T=(0,s.useMemo)(()=>({active:p,focus:p,selected:f,disabled:o,selectedOption:f&&a}),[p,f,o,a]),_=a?{}:{id:r,ref:x,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":f,disabled:void 0,onClick:E,onFocus:O,onPointerEnter:I,onMouseEnter:I,onPointerMove:C,onMouseMove:C,onPointerLeave:L,onMouseLeave:L},F=(0,Y.Ci)();return!f&&a?null:F({ourProps:_,theirProps:l,slot:T,defaultTag:"div",name:"Listbox.Option"})}),ef=Object.assign(eu,{Button:es,Label:ed,Options:ec,Option:ep,SelectedOption:(0,Y.FX)(function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:(0,D.P)(t)},l=en("ListboxSelectedOption"),a=(0,s.useMemo)(()=>({}),[]),u=void 0===l.value||null===l.value||1===l.mode&&Array.isArray(l.value)&&0===l.value.length,d=(0,Y.Ci)();return s.createElement(ei.Provider,{value:!0},d({ourProps:i,theirProps:{...o,children:s.createElement(s.Fragment,null,r&&u?r:n)},slot:a,defaultTag:ea,name:"ListboxSelectedOption"}))})})},79080:(e,t,n)=>{function r(e,t){return e?e+"["+t+"]":t}function o(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}n.d(t,{h:()=>function e(t={},n=null,o=[]){for(let[i,l]of Object.entries(t))!function t(n,o,i){if(Array.isArray(i))for(let[e,l]of i.entries())t(n,r(o,e.toString()),l);else i instanceof Date?n.push([o,i.toISOString()]):"boolean"==typeof i?n.push([o,i?"1":"0"]):"string"==typeof i?n.push([o,i]):"number"==typeof i?n.push([o,`${i}`]):null==i?n.push([o,""]):e(i,o,n)}(o,r(n,i),l);return o},q:()=>o})},80915:(e,t,n)=>{n.d(t,{v:()=>c});var r=n(58853),o=n(11657),i=n(50009),l=n(93395);let a=new Map,u=new Map;function s(e){var t;let n=null!=(t=u.get(e))?t:0;return u.set(e,n+1),0!==n?()=>d(e):(a.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>d(e))}function d(e){var t;let n=null!=(t=u.get(e))?t:1;if(1===n?u.delete(e):u.set(e,n-1),1!==n)return;let r=a.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,a.delete(e))}function c(e,{allowed:t,disallowed:n}={}){let a=(0,i.S)(e,"inert-others");(0,l.s)(()=>{var e,i;if(!a)return;let l=(0,r.e)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&l.add(s(t));let u=null!=(i=null==t?void 0:t())?i:[];for(let e of u){if(!e)continue;let t=(0,o.T)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)u.some(t=>e.contains(t))||l.add(s(e));n=n.parentElement}}return l.dispose},[a,t,n])}},81548:(e,t,n)=>{n.d(t,{MM:()=>d,VY:()=>p,rU:()=>c});var r=n(36439),o=n(17797),i=n(93395),l=n(75385),a=n(16370),u=n(7580);let s=(0,r.createContext)(null);function d(){var e,t;return null!=(t=null==(e=(0,r.useContext)(s))?void 0:e.value)?t:void 0}function c(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o._)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),i=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(s.Provider,{value:i},e.children)},[t])]}s.displayName="DescriptionContext";let p=Object.assign((0,u.FX)(function(e,t){let n=(0,r.useId)(),o=(0,a._)(),{id:d=`headlessui-description-${n}`,...c}=e,p=function e(){let t=(0,r.useContext)(s);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),f=(0,l.P)(t);(0,i.s)(()=>p.register(d),[d,p.register]);let v=o||!1,m=(0,r.useMemo)(()=>({...p.slot,disabled:v}),[p.slot,v]),b={ref:f,...p.props,id:d};return(0,u.Ci)()({ourProps:b,theirProps:c,slot:m,defaultTag:"p",name:p.name||"Description"})}),{})}
1,93028:(e,t,n)=>{n.d(t,{JU:()=>v,b0:()=>f,o2:()=>p,vd:()=>c});var r=n(36439),o=n(17797),i=n(93395),l=n(75385),a=n(16370),u=n(6007),s=n(7580);let d=(0,r.createContext)(null);function c(){let e=(0,r.useContext)(d);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,c),e}return e}function p(e){var t,n,o;let i=null!=(n=null==(t=(0,r.useContext)(d))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}function f({inherit:e=!1}={}){let t=p(),[n,i]=(0,r.useState)([]),l=e?[t,...n].filter(Boolean):n;return[l.length>0?l.join(" "):void 0,(0,r.useMemo)(()=>function(e){let t=(0,o._)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,r.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 r.createElement(d.Provider,{value:n},e.children)},[i])]}d.displayName="LabelContext";let v=Object.assign((0,s.FX)(function(e,t){var n;let d=(0,r.useId)(),p=c(),f=(0,u.q)(),v=(0,a._)(),{id:m=`headlessui-label-${d}`,htmlFor:b=null!=f?f:null==(n=p.props)?void 0:n.htmlFor,passive:h=!1,...x}=e,g=(0,l.P)(t);(0,i.s)(()=>p.register(m),[m,p.register]);let S=(0,o._)(e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),p.props&&"onClick"in p.props&&"function"==typeof p.props.onClick&&p.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),E=v||!1,O=(0,r.useMemo)(()=>({...p.slot,disabled:E}),[p.slot,E]),y={ref:g,...p.props,id:m,htmlFor:b,onClick:S};return h&&("onClick"in y&&(delete y.htmlFor,delete y.onClick),"onClick"in x&&delete x.onClick),(0,s.Ci)()({ourProps:y,theirProps:x,slot:O,defaultTag:b?"label":"div",name:p.name||"Label"})}),{})},97290:(e,t,n)=>{n.d(t,{CL:()=>p,PC:()=>d});var r=n(36439),o=n(72354),i=n(26478),l=n(79080),a=n(7580),u=n(20606);let s=(0,r.createContext)(null);function d(e){let[t,n]=(0,r.useState)(null);return r.createElement(s.Provider,{value:{target:t}},e.children,r.createElement(u.j,{features:u.u.Hidden,ref:n}))}function c({children:e}){let t=(0,r.useContext)(s);if(!t)return r.createElement(r.Fragment,null,e);let{target:n}=t;return n?(0,o.createPortal)(r.createElement(r.Fragment,null,e),n):null}function p({data:e,form:t,disabled:n,onReset:o,overrides:s}){let[d,v]=(0,r.useState)(null),m=(0,i.L)();return(0,r.useEffect)(()=>{if(o&&d)return m.addEventListener(d,"reset",o)},[d,t,o]),r.createElement(c,null,r.createElement(f,{setForm:v,formId:t}),(0,l.h)(e).map(([e,o])=>r.createElement(u.j,{features:u.u.Hidden,...(0,a.oE)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:o,...s})})))}function f({setForm:e,formId:t}){return(0,r.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:r.createElement(u.j,{features:u.u.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}}}]);

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.