PageSourceSearch

https://www.linkhbtotomasuk.com/_next/static/chunks/48751-cdae86c4127f0266.js

js linkhbtotomasuk.com collected 2026-10-09 22:27:17 UTC 36,057 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[48751],{97930:function(e,t,n){n.r(t),n.d(t,{default:function(){return l}});var o=n(63024),i=n(66381),r=n(50568);function l(e,t){(0,r.Z)(2,arguments);var n=(0,i.Z)(e),l=(0,o.Z)(t);if(isNaN(l))return new Date(NaN);if(!l)return n;var a=n.getDate(),s=new Date(n.getTime());return(s.setMonth(n.getMonth()+l+1,0),a>=s.getDate())?s:(n.setFullYear(s.getFullYear(),s.getMonth(),a),n)}},39359:function(e,t,n){n.r(t),n.d(t,{default:function(){return l}});var o=n(63024),i=n(97930),r=n(50568);function l(e,t){(0,r.Z)(2,arguments);var n=(0,o.Z)(t);return(0,i.default)(e,-n)}},24697:function(e,t,n){n.d(t,{Nr:function(){return a},y1:function(){return i}});var o=n(67294);function i(e,t,n){var i=this,r=(0,o.useRef)(null),l=(0,o.useRef)(0),a=(0,o.useRef)(null),s=(0,o.useRef)([]),u=(0,o.useRef)(),c=(0,o.useRef)(),d=(0,o.useRef)(e),f=(0,o.useRef)(!0);(0,o.useEffect)(function(){d.current=e},[e]);var p=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,m="maxWait"in n,b=m?Math.max(+n.maxWait||0,t):null;return(0,o.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,o.useMemo)(function(){var e=function(e){var t=s.current,n=u.current;return s.current=u.current=null,l.current=e,c.current=d.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!f.current)return!1;var n=e-r.current;return!r.current||n>=t||n<0||m&&e-l.current>=b},g=function(t){return a.current=null,v&&s.current?e(t):(s.current=u.current=null,c.current)},x=function e(){var i=Date.now();if(o(i))return g(i);if(f.current){var a=t-(i-r.current);n(e,m?Math.min(a,b-(i-l.current)):a)}},O=function(){var d=Date.now(),p=o(d);if(s.current=[].slice.call(arguments),u.current=i,r.current=d,p){if(!a.current&&f.current)return l.current=r.current,n(x,t),h?e(r.current):c.current;if(m)return n(x,t),e(r.current)}return a.current||n(x,t),c.current};return O.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),l.current=0,s.current=r.current=u.current=a.current=null},O.isPending=function(){return!!a.current},O.flush=function(){return a.current?g(Date.now()):c.current},O},[h,m,t,b,v,p])}function r(e,t){return e===t}function l(e){return"function"==typeof e?function(){return e}:e}function a(e,t,n){var a,s,u=n&&n.equalityFn||r,c=(s=(a=(0,o.useState)(l(e)))[1],[a[0],(0,o.useCallback)(function(e){return s(l(e))},[])]),d=c[0],f=c[1],p=i((0,o.useCallback)(function(e){return f(e)},[f]),t,n),h=(0,o.useRef)(e);return u(h.current,e)||(p(e),h.current=e),[d,p]}},25743:function(e,t,n){let o,i,r,l;n.d(t,{h:function(){return ev}});var a=n(67294),s=n(73935);function u(e,t,n){let o,i=n.initialDeps??[];function r(){var r,l,a,s;let u,c;n.key&&(null==(r=n.debug)?void 0:r.call(n))&&(u=Date.now());let d=e();if(!(d.length!==i.length||d.some((e,t)=>i[t]!==e)))return o;if(i=d,n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(c=Date.now()),o=t(...d),n.key&&(null==(a=n.debug)?void 0:a.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,o=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(s=null==n?void 0:n.onChange)||s.call(n,o),o}return r.updateDeps=e=>{i=e},r}function c(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let d=(e,t)=>1.01>Math.abs(e-t),f=(e,t,n)=>{let o;return function(...i){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,i),n)}},p=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},h=e=>e,v=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let e=t;e<=n;e++)o.push(e);return o},m=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e.targetWindow;if(!o)return;let i=e=>{let{width:n,height:o}=e;t({width:Math.round(n),height:Math.round(o)})};if(i(p(n)),!o.ResizeObserver)return()=>{};let r=new o.ResizeObserver(t=>{let o=()=>{let e=t[0];if(null==e?void 0:e.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(p(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return r.observe(n,{box:"border-box"}),()=>{r.unobserve(n)}},b={passive:!0},g="undefined"==typeof window||"onscrollend"in window,x=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e.targetWindow;if(!o)return;let i=0,r=e.options.useScrollendEvent&&g?()=>
4void 0:f(o,()=>{t(i,!1)},e.options.isScrollingResetDelay),l=o=>()=>{let{horizontal:l,isRtl:a}=e.options;i=l?n.scrollLeft*(a&&-1||1):n.scrollTop,r(),t(i,o)},a=l(!0),s=l(!1);s(),n.addEventListener("scroll",a,b);let u=e.options.useScrollendEvent&&g;return u&&n.addEventListener("scrollend",s,b),()=>{n.removeEventListener("scroll",a),u&&n.removeEventListener("scrollend",s)}},O=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},R=(e,{adjustments:t=0,behavior:n},o)=>{var i,r;null==(r=null==(i=o.scrollElement)?void 0:i.scrollTo)||r.call(i,{[o.options.horizontal?"left":"top"]:e+t,behavior:n})};class S{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:h,rangeExtractor:v,onChange:()=>{},measureElement:O,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=u(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.maybeNotify();return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}}
4,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,o=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let r=o.get(t.lane);if(null==r||t.end>r.end?o.set(t.lane,t):t.end<r.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=u(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:i}),{key:!1}),this.getMeasurements=u(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:o,enabled:i},r)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let a=this.measurementsCache.slice(0,l);for(let i=l;i<e;i++){let e=o(i),l=1===this.options.lanes?a[i-1]:this.getFurthestMeasurement(a,i),s=l?l.end+this.options.gap:t+n,u=r.get(e),c="number"==typeof u?u:this.options.estimateSize(i),d=s+c,f=l?l.lane:i%this.options.lanes;a[i]={index:i,start:s,size:c,end:d,key:e,lane:f}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=u(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,o)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:o}){let i=e.length-1;if(e.length<=o)return{startIndex:0,endIndex:i};let r=C(0,i,t=>e[t].start,n),l=r;if(1===o)for(;l<i&&e[l].end<n+t;)l++;else if(o>1){let a=Array(o).fill(0);for(;l<i&&a.some(e=>e<n+t);){let t=e[l];a[t.lane]=t.end,l++}let s=Array(o).fill(n+t);for(;r>=0&&s.some(e=>e>=n);){let t=e[r];s[t.lane]=t.start,r--}r=Math.max(0,r-r%o),l=Math.min(i,l+(o-1-l%o))}return{startIndex:r,endIndex:l}}({measurements:e,outerSize:t,scrollOffset:n,lanes:o}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=u(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,o,i)=>null===o||null===i?[]:e({startIndex:o,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),o=this.measurementsCache[n];if(!o)return;let i=o.key,r=this.elementsCache.get(i);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let o=t-(this.itemSizeCache.get(n.key)??n.size);0!==o&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,o,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=u(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let o=0,i=e.length;o<i;o++){let i=t[e[o]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return c(t[C(0,t.length-1,e=>c(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{let o=this.getSize(),i=this.getScrollOffset();return"auto"===t&&(t=e>=i+o?"end":"start"),"center"===t?e+=(n-o)/2:"end"===t&&(e-=o),Math.max(Math.min(this.getTotalSize()+this.options.scrollMargin-o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let o=this.getSize(),i=this.getScrollOffset();if("auto"===t){if(n.end>=i+o-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}}let r="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1));let o=0,i=t=>{if(!this.targetWindow)return;let o=this.getOffsetForIndex(e,t);if(!o){console.warn("Failed to get offset for index:",e);return}let[i,l]=o;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,l);if(!n){console.warn("Failed to get offset for index:",e);return}d(n[0],t)||r(l)})},r=t=>{this.targetWindow&&(++o<10?this.targetWindow.requestAnimationFrame(()=>i(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};i(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t;let n=this.getMeasurements();if(0===n.length)t=this.options.paddingStart;else if(1===this.options.lanes)t=(null==(e=n[n.length-1])?void 0:e.end)??0;else{let e=Array(this.options.lanes).fill(null),o=n.length-1;for(;o>=0&&e.some(e=>null===e);){let t=n[o];null===e[t.lane]&&(e[t.lane]=t.end),o--}t=Math.max(...e.filter(e=>null!==e))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let C=(e,t,n,o)=>{for(;e<=t;){let i=(e+t)/2|0,r=n(i);if(r<o)e=i+1;else{if(!(r>o))return i;t=i-1}}return e>0?e-1:0},I="undefined"!=typeof document?a.useLayoutEffect:a.useEffect;var y=n(25234),E=n(89327),T=n(5655),M=n(68354),w=n(59656),z=n(57110),F=n(39438),P=n(382),A=n(99523),D=n(91034),k=n(40947),L=n(42970),_=n(57526);function V(e,t){let n=(0,a.useRef)([]),o=(0,M.z)(e);(0,a.useEffect)(()=>{let e=[...n.current];for(let[i,r]of t.entries())if(n.current[i]!==r){let i=o(t,e);return n.current=t,i}},[o,...t])}var N=n(51228),W=n(1365);let j=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&j[0]!==e.target&&(j.unshift(e.target),(j=j.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var B=n(67257),q=n(19540),U=n(47122),Y=n(58766),Z=n(22983),K=n(16116),$=n(66061),G=n(83619),H=n(71237),J=n(83454),Q=((o=Q||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),X=((i=X||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),ee=((r=ee||{})[r.Pointer=0]="Pointer",r[r.Focus=1]="Focus",r[r.Other=2]="Other",r),et=((l=et||{})[l.OpenCombobox=0]="OpenCombobox",l[l.CloseCombobox=1]="CloseCombobox",l[l.GoToOption=2]="GoToOption",l[l.RegisterOption=3]="RegisterOption",l[l.UnregisterOption=4]="UnregisterOption",l[l.RegisterLabel=5]="RegisterLabel",l[l.SetActivationTrigger=6]="SetActivationTrigger",l[l.UpdateVirtualOptions=7]="UpdateVirtualOptions",l);function en(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=t(e.options.slice()),i=o.length>0&&null!==o[0].dataRef.current.order?o.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,Y.z2)(o,e=>e.dataRef.current.domRef.current),r=n?i.indexOf(n):null;return -1===r&&(r=null),{options:i,activeOptionIndex:r}}let eo={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var n,o,i,r,l;if(null!=(n=e.dataRef.current)&&n.disabled||null!=(o=e.dataRef.current)&&o.optionsRef.current&&!(null!=(i=e.dataRef.current)&&i.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let n=t.focus===q.T.Specific?t.idx:(0,q.d)(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var t,n;return null!=(n=null!=(t=e.activeOptionIndex)?t:e.virtual.options.findIndex(t=>!e.virtual.disabled(t)))?n:null},resolveDisabled:e.virtual.disabled,resolveId(){throw Error("Function not implemented.")}}),o=null!=(r=t.trigger)?r:2;return e.activeOptionIndex===n&&e.activationTrigger===o?e:{...e,activeOptionIndex:n,activationTrigger:o}}let a=en(e);if(null===a.activeOptionIndex){let e=a.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(a.activeOptionIndex=e)}let s=t.focus===q.T.Specific?t.idx:(0,q.d)(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),u=null!=(l=t.trigger)?l:2;return e.activeOptionIndex===s&&e.activationTrigger===u?e:{...e,...a,activeOptionIndex:s,activationTrigger:u}},3:(e,t)=>
4{var n,o,i;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let r=t.payload,l=en(e,e=>(e.push(r),e));null===e.activeOptionIndex&&null!=(o=e.dataRef.current)&&o.isSelected(t.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(r));let a={...e,...l,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(a.activeOptionIndex=0),a},4:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let o=en(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...o,activationTrigger:2}},5:(e,t)=>e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var n;if((null==(n=e.virtual)?void 0:n.options)===t.options)return e;let o=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o=-1!==n?n:null}return{...e,activeOptionIndex:o,virtual:Object.assign({},e.virtual,{options:t.options})}}},ei=(0,a.createContext)(null);function er(e){let t=(0,a.useContext)(ei);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,er),t}return t}ei.displayName="ComboboxActionsContext";let el=(0,a.createContext)(null);function ea(e){var t;let n=eu("VirtualProvider"),[o,i]=(0,a.useMemo)(()=>{let e=n.optionsRef.current;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]},[n.optionsRef.current]),r=function(e){let t=a.useReducer(()=>({}),{})[1],n={...e,onChange:(n,o)=>{var i;o?(0,s.flushSync)(t):t(),null==(i=e.onChange)||i.call(e,n,o)}},[o]=a.useState(()=>new S(n));return o.setOptions(n),I(()=>o._didMount(),[]),I(()=>o._willUpdate()),o}({observeElementRect:m,observeElementOffset:x,scrollToFn:R,scrollPaddingStart:o,scrollPaddingEnd:i,count:n.virtual.options.length,estimateSize:()=>40,getScrollElement(){var e;return null!=(e=n.optionsRef.current)?e:null},overscan:12}),[l,u]=(0,a.useState)(0);return(0,z.e)(()=>{u(e=>e+1)},[null==(t=n.virtual)?void 0:t.options]),a.createElement(el.Provider,{value:r},a.createElement("div",{style:{position:"relative",width:"100%",height:"".concat(r.getTotalSize(),"px")},ref:e=>{e&&(void 0===J||void 0===J.env.JEST_WORKER_ID)&&0!==n.activationTrigger&&null!==n.activeOptionIndex&&n.virtual.options.length>n.activeOptionIndex&&r.scrollToIndex(n.activeOptionIndex)}},r.getVirtualItems().map(t=>{var o;return a.createElement(a.Fragment,{key:t.key},a.cloneElement(null==(o=e.children)?void 0:o.call(e,{option:n.virtual.options[t.index],open:0===n.comboboxState}),{key:"".concat(l,"-").concat(t.key),"data-index":t.index,"aria-setsize":n.virtual.options.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:"translateY(".concat(t.start,"px)"),overflowAnchor:"none"}}))})))}let es=(0,a.createContext)(null);function eu(e){let t=(0,a.useContext)(es);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eu),t}return t}function ec(e,t){return(0,K.E)(t.type,eo,e,t)}es.displayName="ComboboxDataContext";let ed=a.Fragment,ef=G.AN.RenderStrategy|G.AN.Static,ep=(0,G.yV)(function(e,t){let{value:n,defaultValue:o,onChange:i,form:r,name:l,by:s=null,disabled:u=!1,__demoMode:c=!1,nullable:d=!1,multiple:f=!1,immediate:p=!1,virtual:h=null,...v}=e,[m=f?[]:void 0,b]=(0,E.q)(n,i,o),[g,x]=(0,a.useReducer)(ec,{dataRef:(0,a.createRef)(),comboboxState:c?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),O=(0,a.useRef)(!1),R=(0,a.useRef)({static:!1,hold:!1}),S=(0,a.useRef)(null),C=(0,a.useRef)(null),I=(0,a.useRef)(null),y=(0,a.useRef)(null),w=(0,M.z)("string"==typeof s?(e,t)=>(null==e?void 0:e[s])===(null==t?void 0:t[s]):null!=s?s:(e,t)=>e===t),F=(0,M.z)(e=>g.options.findIndex(t=>w(t.dataRef.current.value,e))),A=(0,a.useCallback)(e=>(0,K.E)(k.mode,{1:()=>m.some(t=>w(t,e)),0:()=>w(m,e)}),[m]),D=(0,M.z)(e=>g.activeOptionIndex===F(e)),k=(0,a.useMemo)(()=>({...g,immediate:!1,optionsPropsRef:R,labelRef:S,inputRef:C,buttonRef:I,optionsRef:y,value:m,defaultValue:o,disabled:u,mode:f?1:0,virtual:g.virtual,get activeOptionIndex(){if(O.current&&null===g.activeOptionIndex&&g.options.length>0){let e=g.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return g.activeOptionIndex},calculateIndex:F,compare:w,isSelected:A,isActive:D,nullable:d,__demoMode:c}),[m,o,u,f,d,c,g,null]);(0,z.e)(()=>{},[null,void 0]),(0,z.e)(()=>{g.dataRef.current=k}
4,[k]),(0,P.O)([k.buttonRef,k.inputRef,k.optionsRef],()=>J.closeCombobox(),0===k.comboboxState);let L=(0,a.useMemo)(()=>{var e,t,n;return{open:0===k.comboboxState,disabled:u,activeIndex:k.activeOptionIndex,activeOption:null===k.activeOptionIndex?null:k.virtual?k.virtual.options[null!=(e=k.activeOptionIndex)?e:0]:null!=(n=null==(t=k.options[k.activeOptionIndex])?void 0:t.dataRef.current.value)?n:null,value:m}},[k,u,m]),_=(0,M.z)(()=>{if(null!==k.activeOptionIndex){if(k.virtual)$(k.virtual.options[k.activeOptionIndex]);else{let{dataRef:e}=k.options[k.activeOptionIndex];$(e.current.value)}J.goToOption(q.T.Specific,k.activeOptionIndex)}}),V=(0,M.z)(()=>{x({type:0}),O.current=!0}),j=(0,M.z)(()=>{x({type:1}),O.current=!1}),B=(0,M.z)((e,t,n)=>(O.current=!1,e===q.T.Specific?x({type:2,focus:q.T.Specific,idx:t,trigger:n}):x({type:2,focus:e,trigger:n}))),U=(0,M.z)((e,t)=>(x({type:3,payload:{id:e,dataRef:t}}),()=>{k.isActive(t.current.value)&&(O.current=!0),x({type:4,id:e})})),Y=(0,M.z)(e=>(x({type:5,id:e}),()=>x({type:5,id:null}))),$=(0,M.z)(e=>(0,K.E)(k.mode,{0:()=>null==b?void 0:b(e),1(){let t=k.value.slice(),n=t.findIndex(t=>w(t,e));return -1===n?t.push(e):t.splice(n,1),null==b?void 0:b(t)}})),H=(0,M.z)(e=>{x({type:6,trigger:e})}),J=(0,a.useMemo)(()=>({onChange:$,registerOption:U,registerLabel:Y,goToOption:B,closeCombobox:j,openCombobox:V,setActivationTrigger:H,selectActiveOption:_}),[]),Q=(0,a.useRef)(null),X=(0,T.G)();return(0,a.useEffect)(()=>{Q.current&&void 0!==o&&X.addEventListener(Q.current,"reset",()=>{null==b||b(o)})},[Q,b]),a.createElement(ei.Provider,{value:J},a.createElement(es.Provider,{value:k},a.createElement(W.up,{value:(0,K.E)(k.comboboxState,{0:W.ZM.Open,1:W.ZM.Closed})},null!=l&&null!=m&&(0,Z.t)({[l]:m}).map((e,t)=>{let[n,o]=e;return a.createElement(N._,{features:N.A.Hidden,ref:0===t?e=>{var t;Q.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,G.oA)({key:n,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,disabled:u,name:n,value:o})})}),(0,G.sY)({ourProps:null===t?{}:{ref:t},theirProps:v,slot:L,defaultTag:ed,name:"Combobox"}))))}),eh=(0,G.yV)(function(e,t){var n;let o=eu("Combobox.Button"),i=er("Combobox.Button"),r=(0,k.T)(o.buttonRef,t),l=(0,w.M)(),{id:s="headlessui-combobox-button-".concat(l),...u}=e,c=(0,T.G)(),d=(0,M.z)(e=>{switch(e.key){case H.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&i.openCombobox(),c.nextFrame(()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})});case H.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&(i.openCombobox(),c.nextFrame(()=>{o.value||i.goToOption(q.T.Last)})),c.nextFrame(()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})});case H.R.Escape:return 0!==o.comboboxState?void 0:(e.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&e.stopPropagation(),i.closeCombobox(),c.nextFrame(()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}
4));default:return}}),f=(0,M.z)(e=>{if((0,B.P)(e.currentTarget))return e.preventDefault();0===o.comboboxState?i.closeCombobox():(e.preventDefault(),i.openCombobox()),c.nextFrame(()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})})}),p=(0,y.v)(()=>{if(o.labelId)return[o.labelId,s].join(" ")},[o.labelId,s]),h=(0,a.useMemo)(()=>({open:0===o.comboboxState,disabled:o.disabled,value:o.value}),[o]),v={ref:r,id:s,type:(0,D.f)(e,o.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=o.optionsRef.current)?void 0:n.id,"aria-expanded":0===o.comboboxState,"aria-labelledby":p,disabled:o.disabled,onClick:f,onKeyDown:d};return(0,G.sY)({ourProps:v,theirProps:u,slot:h,defaultTag:"button",name:"Combobox.Button"})}),ev=Object.assign(ep,{Input:(0,G.yV)(function(e,t){var n,o,i,r,l,s;let u=(0,w.M)(),{id:c="headlessui-combobox-input-".concat(u),onChange:d,displayValue:f,type:p="text",...h}=e,v=eu("Combobox.Input"),m=er("Combobox.Input"),b=(0,k.T)(v.inputRef,t),g=(0,A.i)(v.inputRef),x=(0,a.useRef)(!1),O=(0,T.G)(),R=(0,M.z)(()=>{m.onChange(null),v.optionsRef.current&&(v.optionsRef.current.scrollTop=0),m.goToOption(q.T.Nothing)});V((e,t)=>{let[n,o]=e,[i,r]=t;if(x.current)return;let l=v.inputRef.current;l&&((0===r&&1===o||n!==i)&&(l.value=n),requestAnimationFrame(()=>{if(x.current||!l||(null==g?void 0:g.activeElement)!==l)return;let{selectionStart:e,selectionEnd:t}=l;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&l.setSelectionRange(l.value.length,l.value.length)}))},["function"==typeof f&&void 0!==v.value?null!=(s=f(v.value))?s:"":"string"==typeof v.value?v.value:"",v.comboboxState,g]),V((e,t)=>{let[n]=e,[o]=t;if(0===n&&1===o){if(x.current)return;let e=v.inputRef.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:o,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,o,i):e.setSelectionRange(n,o)}},[v.comboboxState]);let S=(0,a.useRef)(!1),C=(0,M.z)(()=>{S.current=!0}),I=(0,M.z)(()=>{O.nextFrame(()=>{S.current=!1})}),E=(0,M.z)(e=>{switch(x.current=!0,e.key){case H.R.Enter:if(x.current=!1,0!==v.comboboxState||S.current)return;if(e.preventDefault(),e.stopPropagation(),null===v.activeOptionIndex){m.closeCombobox();return}m.selectActiveOption(),0===v.mode&&m.closeCombobox();break;case H.R.ArrowDown:return x.current=!1,e.preventDefault(),e.stopPropagation(),(0,K.E)(v.comboboxState,{0:()=>m.goToOption(q.T.Next),1:()=>m.openCombobox()});case H.R.ArrowUp:return x.current=!1,e.preventDefault(),e.stopPropagation(),(0,K.E)(v.comboboxState,{0:()=>m.goToOption(q.T.Previous),1:()=>{m.openCombobox(),O.nextFrame(()=>{v.value||m.goToOption(q.T.Last)})}});case H.R.Home:if(e.shiftKey)break;return x.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(q.T.First);case H.R.PageUp:return x.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(q.T.First);case H.R.End:if(e.shiftKey)break;return x.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(q.T.Last);case H.R.PageDown:return x.current=!1,e.preventDefault(),e.stopPropagation(),m.goToOption(q.T.Last);case H.R.Escape:return x.current=!1,0!==v.comboboxState?void 0:(e.preventDefault(),v.optionsRef.current&&!v.optionsPropsRef.current.static&&e.stopPropagation(),v.nullable&&0===v.mode&&null===v.value&&R(),m.closeCombobox());case H.R.Tab:if(x.current=!1,0!==v.comboboxState)return;0===v.mode&&1!==v.activationTrigger&&m.selectActiveOption(),m.closeCombobox()}}),z=(0,M.z)(e=>{null==d||d(e),v.nullable&&0===v.mode&&""===e.target.value&&R(),m.openCombobox()}),F=(0,M.z)(e=>{var t,n,o;let i=null!=(t=e.relatedTarget)?t:j.find(t=>t!==e.currentTarget);if(x.current=!1,!(null!=(n=v.optionsRef.current)&&n.contains(i))&&!(null!=(o=v.buttonRef.current)&&o.contains(i))&&0===v.comboboxState)return e.preventDefault(),0===v.mode&&(v.nullable&&null===v.value?R():1!==v.activationTrigger&&m.selectActiveOption()),m.closeCombobox()}),P=(0,M.z)(e=>{var t,n,o;let i=null!=(t=e.relatedTarget)?t:j.find(t=>t!==e.currentTarget);null!=(n=v.buttonRef.current)&&n.contains(i)||null!=(o=v.optionsRef.current)&&o.contains(i)||v.disabled||v.immediate&&0!==v.comboboxState&&(m.openCombobox(),O.nextFrame(()=>{m.setActivationTrigger(1)}))}),D=(0,y.v)(()=>
4{if(v.labelId)return[v.labelId].join(" ")},[v.labelId]),L=(0,a.useMemo)(()=>({open:0===v.comboboxState,disabled:v.disabled}),[v]),_={ref:b,id:c,role:"combobox",type:p,"aria-controls":null==(n=v.optionsRef.current)?void 0:n.id,"aria-expanded":0===v.comboboxState,"aria-activedescendant":null===v.activeOptionIndex?void 0:v.virtual?null==(o=v.options.find(e=>{var t;return!(null!=(t=v.virtual)&&t.disabled(e.dataRef.current.value))&&v.compare(e.dataRef.current.value,v.virtual.options[v.activeOptionIndex])}))?void 0:o.id:null==(i=v.options[v.activeOptionIndex])?void 0:i.id,"aria-labelledby":D,"aria-autocomplete":"list",defaultValue:null!=(l=null!=(r=e.defaultValue)?r:void 0!==v.defaultValue?null==f?void 0:f(v.defaultValue):null)?l:v.defaultValue,disabled:v.disabled,onCompositionStart:C,onCompositionEnd:I,onKeyDown:E,onChange:z,onFocus:P,onBlur:F};return(0,G.sY)({ourProps:_,theirProps:h,slot:L,defaultTag:"input",name:"Combobox.Input"})}),Button:eh,Label:(0,G.yV)(function(e,t){let n=(0,w.M)(),{id:o="headlessui-combobox-label-".concat(n),...i}=e,r=eu("Combobox.Label"),l=er("Combobox.Label"),s=(0,k.T)(r.labelRef,t);(0,z.e)(()=>l.registerLabel(o),[o]);let u=(0,M.z)(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}),c=(0,a.useMemo)(()=>({open:0===r.comboboxState,disabled:r.disabled}),[r]);return(0,G.sY)({ourProps:{ref:s,id:o,onClick:u},theirProps:i,slot:c,defaultTag:"label",name:"Combobox.Label"})}),Options:(0,G.yV)(function(e,t){let n=(0,w.M)(),{id:o="headlessui-combobox-options-".concat(n),hold:i=!1,...r}=e,l=eu("Combobox.Options"),s=(0,k.T)(l.optionsRef,t),u=(0,W.oJ)(),c=null!==u?(u&W.ZM.Open)===W.ZM.Open:0===l.comboboxState;(0,z.e)(()=>{var t;l.optionsPropsRef.current.static=null!=(t=e.static)&&t},[l.optionsPropsRef,e.static]),(0,z.e)(()=>{l.optionsPropsRef.current.hold=i},[l.optionsPropsRef,i]),(0,_.B)({container:l.optionsRef.current,enabled:0===l.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let d=(0,y.v)(()=>{var e,t;return null!=(t=l.labelId)?t:null==(e=l.buttonRef.current)?void 0:e.id},[l.labelId,l.buttonRef.current]),f=(0,a.useMemo)(()=>({open:0===l.comboboxState,option:void 0}),[l]),p={"aria-labelledby":d,role:"listbox","aria-multiselectable":1===l.mode||void 0,id:o,ref:s};return l.virtual&&0===l.comboboxState&&Object.assign(r,{children:a.createElement(ea,null,r.children)}),(0,G.sY)({ourProps:p,theirProps:r,slot:f,defaultTag:"ul",features:ef,visible:c,name:"Combobox.Options"})}),Option:(0,G.yV)(function(e,t){var n;let o=(0,w.M)(),{id:i="headlessui-combobox-option-".concat(o),disabled:r=!1,value:l,order:s=null,...u}=e,c=eu("Combobox.Option"),d=er("Combobox.Option"),f=c.virtual?c.activeOptionIndex===c.calculateIndex(l):null!==c.activeOptionIndex&&(null==(n=c.options[c.activeOptionIndex])?void 0:n.id)===i,p=c.isSelected(l),h=(0,a.useRef)(null),v=(0,F.E)({disabled:r,value:l,domRef:h,order:s}),m=(0,a.useContext)(el),b=(0,k.T)(t,h,m?m.measureElement:null),g=(0,M.z)(()=>d.onChange(l));(0,z.e)(()=>d.registerOption(i,v),[v,i]);let x=(0,a.useRef)(!(c.virtual||c.__demoMode));(0,z.e)(()=>{if(!c.virtual||!c.__demoMode)return;let e=(0,U.k)();return e.requestAnimationFrame(()=>{x.current=!0}),e.dispose},[c.virtual,c.__demoMode]),(0,z.e)(()=>{if(!x.current||0!==c.comboboxState||!f||0===c.activationTrigger)return;let e=(0,U.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[h,f,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let O=(0,M.z)(e=>{var t;if(r||null!=(t=c.virtual)&&t.disabled(l))return e.preventDefault();g(),(0,$.tq)()||requestAnimationFrame(()=>{var e;return null==(e=c.inputRef.current)?void 0:e.focus({preventScroll:!0})}),0===c.mode&&requestAnimationFrame(()=>d.closeCombobox())}),R=(0,M.z)(()=>{var e;if(r||null!=(e=c.virtual)&&e.disabled(l))return d.goToOption(q.T.Nothing);let t=c.calculateIndex(l);d.goToOption(q.T.Specific,t)}),S=(0,L.g)(),C=(0,M.z)(e=>S.update(e)),I=(0,M.z)(e=>{var t;if(!S.wasMoved(e)||r||null!=(t=c.virtual)&&t.disabled(l)||f)return;let n=c.calculateIndex(l);d.goToOption(q.T.Specific,n,0)}),y=(0,M.z)(e=>{var t;S.wasMoved(e)&&(r||null!=(t=c.virtual)&&t.disabled(l)||f&&(c.optionsPropsRef.current.hold||d.goToOption(q.T.Nothing)))}),E=(0,a.useMemo)(()=>({active:f,selected:p,disabled:r}),[f,p,r]);return(0,G.sY)({ourProps:{id:i,ref:b,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":p,disabled:void 0,onClick:O,onFocus:R,onPointerEnter:C,onMouseEnter:C,onPointerMove:I,onMouseMove:I,onPointerLeave:y,onMouseLeave:y},theirProps:u,slot:E,defaultTag:"li",name:"Combobox.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.