PageSourceSearch

https://datafa.st/_next/static/chunks/1504.95862f5557c0d511.js

js datafa.st collected 2026-10-02 10:01:20 UTC 13,254 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1504],{41217:function(e,t,n){n.d(t,{Z:function(){return o}});let o=(0,n(79205).Z)("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]])},49470:function(e,t,n){let o,r,i,a;n.d(t,{R:function(){return Y}});var l=n(2265),s=n(64518),u=n(31948);function c(e,t){let[n,o]=(0,l.useState)(e),r=(0,u.E)(e);return(0,s.e)(()=>o(r.current),[r,o,...t]),n}var d=n(13323),p=n(90945),f=n(17684),v=n(32539),b=n(80004),x=n(93689),g=n(4301),h=n(15518),R=n(38198),O=n(37863),y=n(47634),m=n(34778),S=n(16015),T=n(37105);function L(e,t){return e?e+"["+t+"]":t}var I=n(24536),k=n(40293),P=n(27847),E=n(37388),z=((o=z||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),w=((r=w||{})[r.Single=0]="Single",r[r.Multi=1]="Multi",r),C=((i=C||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),M=((a=M||{})[a.OpenListbox=0]="OpenListbox",a[a.CloseListbox=1]="CloseListbox",a[a.GoToOption=2]="GoToOption",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterOption=5]="RegisterOption",a[a.UnregisterOption=6]="UnregisterOption",a[a.RegisterLabel=7]="RegisterLabel",a);function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=(0,T.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),r=n?o.indexOf(n):null;return -1===r&&(r=null),{options:o,activeOptionIndex:r}}let A={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,o=e.options.findIndex(e=>n(e.dataRef.current.value));return -1!==o&&(t=o),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let o=D(e),r=(0,m.d)(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...o,searchQuery:"",activeOptionIndex:r,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,o=e.searchQuery+t.value.toLowerCase(),r=(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(o))}),i=r?e.options.indexOf(r):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:o}:{...e,searchQuery:o,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},o=D(e,e=>[...e,n]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(n)),{...e,...o}},6:(e,t)=>{let n=D(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,labelId:t.id})},F=(0,l.createContext)(null);function N(e){let t=(0,l.useContext)(F);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,N),t}return t}F.displayName="ListboxActionsContext";let Q=(0,l.createContext)(null);function V(e){let t=(0,l.useContext)(Q);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,V),t}return t}function G(e,t){return(0,I.E)(t.type,A,e,t)}Q.displayName="ListboxDataContext";let U=l.Fragment,Z=P.AN.RenderStrategy|P.AN.Static,Y=Object.assign((0,P.yV)(function(e,t){let{value:n,defaultValue:o,form:r,name:i,onChange:a,by:u=(e,t)=>e===t,disabled:c=!1,horizontal:f=!1,multiple:b=!1,...g}=e,h=f?"horizontal":"vertical",y=(0,x.T)(t),[S=b?[]:void 0,k]=function(e,t,n){let[o,r]=(0,l.useState)(n),i=void 0!==e,a=(0,l.useRef)(i),s=(0,l.useRef)(!1),u=(0,l.useRef)(!1);
1return!i||a.current||s.current?i||!a.current||u.current||(u.current=!0,a.current=i,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,a.current=i,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.")),[i?e:o,(0,d.z)(e=>(i||r(e),null==t?void 0:t(e)))]}(n,a,o),[E,z]=(0,l.useReducer)(G,{dataRef:(0,l.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),w=(0,l.useRef)({static:!1,hold:!1}),C=(0,l.useRef)(null),M=(0,l.useRef)(null),D=(0,l.useRef)(null),A=(0,d.z)("string"==typeof u?(e,t)=>(null==e?void 0:e[u])===(null==t?void 0:t[u]):u),N=(0,l.useCallback)(e=>(0,I.E)(V.mode,{1:()=>S.some(t=>A(t,e)),0:()=>A(S,e)}),[S]),V=(0,l.useMemo)(()=>({...E,value:S,disabled:c,mode:b?1:0,orientation:h,compare:A,isSelected:N,optionsPropsRef:w,labelRef:C,buttonRef:M,optionsRef:D}),[S,c,b,E]);(0,s.e)(()=>{E.dataRef.current=V},[V]),(0,v.O)([V.buttonRef,V.optionsRef],(e,t)=>{var n;z({type:1}),(0,T.sP)(t,T.tJ.Loose)||(e.preventDefault(),null==(n=V.buttonRef.current)||n.focus())},0===V.listboxState);let Z=(0,l.useMemo)(()=>({open:0===V.listboxState,disabled:c,value:S}),[V,c,S]),Y=(0,d.z)(e=>{let t=V.options.find(t=>t.id===e);t&&q(t.dataRef.current.value)}),_=(0,d.z)(()=>{if(null!==V.activeOptionIndex){let{dataRef:e,id:t}=V.options[V.activeOptionIndex];q(e.current.value),z({type:2,focus:m.T.Specific,id:t})}}),B=(0,d.z)(()=>z({type:0})),j=(0,d.z)(()=>z({type:1})),H=(0,d.z)((e,t,n)=>e===m.T.Specific?z({type:2,focus:m.T.Specific,id:t,trigger:n}):z({type:2,focus:e,trigger:n})),K=(0,d.z)((e,t)=>(z({type:5,id:e,dataRef:t}),()=>z({type:6,id:e}))),J=(0,d.z)(e=>(z({type:7,id:e}),()=>z({type:7,id:null}))),q=(0,d.z)(e=>(0,I.E)(V.mode,{0:()=>null==k?void 0:k(e),1(){let t=V.value.slice(),n=t.findIndex(t=>A(t,e));return -1===n?t.push(e):t.splice(n,1),null==k?void 0:k(t)}})),W=(0,d.z)(e=>z({type:3,value:e})),X=(0,d.z)(()=>z({type:4})),$=(0,l.useMemo)(()=>({onChange:q,registerOption:K,registerLabel:J,goToOption:H,closeListbox:j,openListbox:B,selectActiveOption:_,selectOption:Y,search:W,clearSearch:X}),[]),ee=(0,l.useRef)(null),et=(0,p.G)();return(0,l.useEffect)(()=>{ee.current&&void 0!==o&&et.addEventListener(ee.current,"reset",()=>{null==k||k(o)})},[ee,k]),l.createElement(F.Provider,{value:$},l.createElement(Q.Provider,{value:V},l.createElement(O.up,{value:(0,I.E)(V.listboxState,{0:O.ZM.Open,1:O.ZM.Closed})},null!=i&&null!=S&&(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[r,i]of Object.entries(t))!function t(n,o,r){if(Array.isArray(r))for(let[e,i]of r.entries())t(n,L(o,e.toString()),i);else r instanceof Date?n.push([o,r.toISOString()]):"boolean"==typeof r?n.push([o,r?"1":"0"]):"string"==typeof r?n.push([o,r]):"number"==typeof r?n.push([o,"".concat(r)]):null==r?n.push([o,""]):e(r,o,n)}(o,L(n,r),i);return o})({[i]:S}).map((e,t)=>{let[n,o]=e;return l.createElement(R._,{features:R.A.Hidden,ref:0===t?e=>{var t;ee.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,P.oA)({key:n,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,disabled:c,name:n,value:o})})}),(0,P.sY)({ourProps:{ref:y},theirProps:g,slot:Z,defaultTag:U,name:"Listbox"}))))}),{Button:(0,P.yV)(function(e,t){var n;let o=(0,f.M)(),{id:r="headlessui-listbox-button-".concat(o),...i}=e,a=V("Listbox.Button"),s=N("Listbox.Button"),u=(0,x.T)(a.buttonRef,t),v=(0,p.G)(),g=(0,d.z)(e=>{switch(e.key){case E.R.Space:case E.R.Enter:case E.R.ArrowDown:e.preventDefault(),s.openListbox(),v.nextFrame(()=>{a.value||s.goToOption(m.T.First)});break;case E.R.ArrowUp:e.preventDefault(),s.openListbox(),v.nextFrame(()=>{a.value||s.goToOption(m.T.Last)})}}),h=(0,d.z)(e=>{e.key===E.R.Space&&e.preventDefault()}),R=(0,d.z)(e=>{if((0,y.P)(e.currentTarget))return e.preventDefault();0===a.listboxState?(s.closeListbox(),v.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)):(e.preventDefault(),s.openListbox())}),O=c(()=>{if(a.labelId)return[a.labelId,r].join(" ")},[a.labelId,r]),S=(0,l.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value}),[a]),T={ref:u,id:r,type:(0,b.f)(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":0===a.listboxState,"aria-labelledby":O,disabled:a.disabled,onKeyDown:g,onKeyUp:h,onClick:R};return(0,P.sY)({ourProps:T,theirProps:i,slot:S,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,P.yV)(function(e,t){let n=(0,f.M)(),{id:o="headlessui-listbox-label-".concat(n),...r}=e,i=V("Listbox.Label"),a=N("Listbox.Label"),u=(0,x.T)(i.labelRef,t);(0,s.e)(()=>a.registerLabel(o),[o]);let c=(0,d.z)(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),p=(0,l.useMemo)(()=>({open:0===i.listboxState,disabled:i.disabled}),[i]);return(0,P.sY)({ourProps:{ref:u,id:o,onClick:c},theirProps:r,slot:p,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,P.yV)(function(e,t){var n;let o=(0,f.M)(),{id:r="headlessui-listbox-options-".concat(o),...i}=e,a=V("Listbox.Options"),s=N("Listbox.Options"),u=(0,x.T)(a.optionsRef,t),v=(0,p.G)(),b=(0,p.G)(),g=(0,O.oJ)(),h=null!==g?(g&O.ZM.Open)===O.ZM.Open:0===a.listboxState;(0,l.useEffect)(()=>{var e;let t=a.optionsRef.current;t&&0===a.listboxState&&t!==(null==(e=(0,k.r)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let R=(0,d.z)(e=>{switch(b.dispose(),e.key){case E.R.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case E.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];s.onChange(e.current.value)}0===a.mode&&(s.closeListbox(),(0,S.k)().nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1));break;case(0,I.E)(a.orientation,{vertical:E.R.ArrowDown,horizontal:E.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(m.T.Next);case(0,I.E)(a.orientation,{vertical:E.R.ArrowUp,horizontal:E.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(m.T.Previous);case E.R.Home:case E.R.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(m.T.First);case E.R.End:case E.R.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(m.T.Last);case E.R.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),v.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case E.R.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),b.setTimeout(()=>s.clearSearch(),350))}}),y=c(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.id},[a.buttonRef.current]),T=(0,l.useMemo)(()=>({open:0===a.listboxState}),[a]),L={"aria-activedescendant":null===a.activeOptionIndex||null==(n=a.options[a.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":y,"aria-orientation":a.orientation,id:r,onKeyDown:R,role:"listbox",tabIndex:0,ref:u};return(0,P.sY)({ourProps:L,theirProps:i,slot:T,defaultTag:"ul",features:Z,visible:h,name:"Listbox.Options"})}),Option:(0,P.yV)(function(e,t){let n=(0,f.M)(),{id:o="headlessui-listbox-option-".concat(n),disabled:r=!1,value:i,...a}=e,c=V("Listbox.Option"),p=N("Listbox.Option"),v=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===o,b=c.isSelected(i),R=(0,l.useRef)(null),O=(0,g.x)(R),y=(0,u.E)({disabled:r,value:i,domRef:R,get textValue(){return O()}}),T=(0,x.T)(t,R);(0,s.e)(()=>{if(0!==c.listboxState||!v||0===c.activationTrigger)return;let e=(0,S.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=R.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[R,v,c.listboxState,c.activationTrigger,c.activeOptionIndex]),(0,s.e)(()=>p.registerOption(o,y),[y,o]);let L=(0,d.z)(e=>{if(r)return e.preventDefault();p.onChange(i),0===c.mode&&(p.closeListbox(),(0,S.k)().nextFrame(()=>{var e;return null==(e=c.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1))}),I=(0,d.z)(()=>{if(r)return p.goToOption(m.T.Nothing);p.goToOption(m.T.Specific,o)}),k=(0,h.g)(),E=(0,d.z)(e=>k.update(e)),z=(0,d.z)(e=>{k.wasMoved(e)&&(r||v||p.goToOption(m.T.Specific,o,0))}),w=(0,d.z)(e=>{k.wasMoved(e)&&(r||v&&p.goToOption(m.T.Nothing))}),C=(0,l.useMemo)(()=>({active:v,selected:b,disabled:r}),[v,b,r]);return(0,P.sY)({ourProps:{id:o,ref:T,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":b,disabled:void 0,onClick:L,onFocus:I,onPointerEnter:E,onMouseEnter:E,onPointerMove:z,onMouseMove:z,onPointerLeave:w,onMouseLeave:w},theirProps:a,slot:C,defaultTag:"li",name:"Listbox.Option"})})})}}]);

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.