PageSourceSearch

https://www.zoppi.co.uk/_next/static/chunks/5304-c06c746b90c69977.js

js zoppi.co.uk collected 2026-10-07 08:25:06 UTC 52,410 bytes, 4 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5304],{90239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let o=n(57437),r=n(2265);t.default=function(e){let{html:t,height:n=null,width:i=null,children:a,dataNtpc:s=""}=e;return(0,r.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(s)}})},[s]),(0,o.jsxs)(o.Fragment,{children:[a,t?(0,o.jsx)("div",{style:{height:null!=n?"".concat(n,"px"):"auto",width:null!=i?"".concat(i,"px"):"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:t}}):null]})}},64404:function(e,t,n){"use strict";var o;let r;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let i=n(57437),a=n(2265),s=(o=n(31877))&&o.__esModule?o:{default:o};t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:n="dataLayer"}=e;return void 0===r&&(r=n),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n          window['".concat(n,"'] = window['").concat(n,"'] || [];\n          function gtag(){window['").concat(n,"'].push(arguments);}\n          gtag('js', new Date());\n\n          gtag('config', '").concat(t,"');")}}),(0,i.jsx)(s.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t)})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0===r){console.warn("@next/third-parties: GA has not been initialized");return}window[r]?window[r].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(r," does not exist"))}},27640:function(e,t,n){"use strict";var o;let r;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let i=n(57437),a=n(2265),s=(o=n(31877))&&o.__esModule?o:{default:o};t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:n="dataLayer",auth:o,preview:l,dataLayer:u}=e;void 0===r&&(r=n);let c="dataLayer"!==n?"&l=".concat(n):"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n      (function(w,l){\n        w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n        ".concat(u?"w[l].push(".concat(JSON.stringify(u),")"):"","\n      })(window,'").concat(n,"');")}}),(0,i.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:"https://www.googletagmanager.com/gtm.js?id=".concat(t).concat(c).concat(o?"&gtm_auth=".concat(o):"").concat(l?"&gtm_preview=".concat(l,"&gtm_cookies_win=x"):"")})]})},t.sendGTMEvent=e=>{if(void 0===r){console.warn("@next/third-parties: GTM has not been initialized");return}window[r]?window[r].push(e):console.warn("@next/third-parties: GTM dataLayer ".concat(r," does not exist"))}},17252:function(e){var t;t=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function t(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach(function(e){var n;n=o[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}
1(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);var a=o(),s=r&&r.miss||function(){return Promise.resolve()};return a.then(function(e){return s(e)}).then(function(){return a})},set:function(n,o){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(o):o,Promise.resolve(o)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function i(e,t){return t&&Object.keys(t).forEach(function(n){e[n]=t[n](e)}),e}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0;return e.replace(/%s/g,function(){return encodeURIComponent(n[r++])})}var s={WithinQueryParameters:0,WithinHeaders:1};function l(e,t){var n=e||{},o=n.data||{};return Object.keys(n).forEach(function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(o[e]=n[e])}),{data:Object.entries(o).length>0?o:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var u={Read:1,Write:2,Any:3};function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t(t({},e),{},{status:n,lastUpdate:Date.now()})}function d(e){return"string"==typeof e?{protocol:"https",url:e,accept:u.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||u.Any}}var f="POST";function p(e,n,r,i){var a,s,l,u=[],f=function(e,n){if("GET"!==e.method&&(void 0!==e.data||void 0!==n.data))return JSON.stringify(Array.isArray(e.data)?e.data:t(t({},e.data),n.data))}(r,i),p=(a=t(t({},e.headers),i.headers),s={},Object.keys(a).forEach(function(e){var t=a[e];s[e.toLowerCase()]=t}),s),g=r.method,b="GET"!==r.method?{}:t(t({},r.data),i.data),x=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),b),i.queryParameters),O=0,y=function t(n,o){var a,s,l,d=n.pop();if(void 0===d)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact [email protected].",transporterStackTrace:m(u)};var b={data:f,headers:p,method:g,url:(a=r.path,s=h(x),l="".concat(d.protocol,"://").concat(d.url,"/").concat("/"===a.charAt(0)?a.substr(1):a),s.length&&(l+="?".concat(s)),l),connectTimeout:o(O,e.timeouts.connect),responseTimeout:o(O,i.timeout)},y=function(e){var t={request:b,response:e,host:d,triesLeft:n.length};return u.push(t),t},S={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw{name:"DeserializationError",message:t.message,response:e}}}(e)},onRetry:function(r){var i=y(r);return r.isTimedOut&&O++,Promise.all([e.logger.info("Retryable failure",v(i)),e.hostsCache.set(d,c(d,r.isTimedOut?3:2))]).then(function(){return t(n,o)})},onFail:function(e){throw y(e),function(e,t){var n=e.content,o=e.status,r=n;try{r=JSON.parse(n).message}catch(e){}return{name:"ApiError",message:r,status:o,transporterStackTrace:t}}(e,m(u))}};return e.requester.send(b).then(function(e){var t,n,o;return(t=e.status,e.isTimedOut||(n=e.isTimedOut,o=e.status,!n&&0==~~o)||2!=~~(t/100)&&4!=~~(t/100))?S.onRetry(e):2==~~(e.status/100)?S.onSuccess(e):S.onFail(e)})};return(l=e.hostsCache,Promise.all(n.map(function(e){return l.get(e,function(){return Promise.resolve(c(e))})})).then(function(e){var t=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),r=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),i=[].concat(o(t),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map(function(e){return d(e)}):n}})).then(function(e){return y(o(e.statelessHosts).reverse(),e.getTimeout)})}function h(e){return Object.keys(e).map(function(t){var n;return a("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]))}).join("&")}function m(e){return e.map(function(e){return v(e)})}function v(e){var n=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};
1return t(t({},e),{},{request:t(t({},e.request),{},{headers:t(t({},e.request.headers),n)})})}var g=function(e){var o,r,a,c,f,h,m,v,g,b,x,O,y,S=e.appId,w=(o=void 0!==e.authMode?e.authMode:s.WithinHeaders,r={"x-algolia-api-key":e.apiKey,"x-algolia-application-id":S},{headers:function(){return o===s.WithinHeaders?r:{}},queryParameters:function(){return o===s.WithinQueryParameters?r:{}}}),R=(c=(a=t(t({hosts:[{url:"".concat(S,"-dsn.algolia.net"),accept:u.Read},{url:"".concat(S,".algolia.net"),accept:u.Write}].concat(function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}return e}([{url:"".concat(S,"-1.algolianet.com")},{url:"".concat(S,"-2.algolianet.com")},{url:"".concat(S,"-3.algolianet.com")}]))},e),{},{headers:t(t(t({},w.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:t(t({},w.queryParameters()),e.queryParameters)})).hostsCache,f=a.logger,h=a.requester,m=a.requestsCache,v=a.responsesCache,g=a.timeouts,b=a.userAgent,x=a.hosts,O=a.queryParameters,y={hostsCache:c,logger:f,requester:h,requestsCache:m,responsesCache:v,timeouts:g,userAgent:b,headers:a.headers,queryParameters:O,hosts:x.map(function(e){return d(e)}),read:function(e,t){var o=l(t,y.timeouts.read),r=function(){return p(y,y.hosts.filter(function(e){return 0!=(e.accept&u.Read)}),e,o)};if(!0!==(void 0!==o.cacheable?o.cacheable:e.cacheable))return r();var i={request:e,mappedRequestOptions:o,transporter:{queryParameters:y.queryParameters,headers:y.headers}};return y.responsesCache.get(i,function(){return y.requestsCache.get(i,function(){return y.requestsCache.set(i,r()).then(function(e){return Promise.all([y.requestsCache.delete(i),e])},function(e){return Promise.all([y.requestsCache.delete(i),Promise.reject(e)])}).then(function(e){var t=n(e,2);return t[0],t[1]})})},{miss:function(e){return y.responsesCache.set(i,e)}})},write:function(e,t){return p(y,y.hosts.filter(function(e){return 0!=(e.accept&u.Write)}),e,l(t,y.timeouts.write))}});return i({transporter:R,appId:S,addAlgoliaAgent:function(e,t){R.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([R.requestsCache.clear(),R.responsesCache.clear()]).then(function(){})}},e.methods)},b=function(e){return function(t,n){return"GET"===t.method?e.transporter.read(t,n):e.transporter.write(t,n)}},x=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},O=function(e){return function(n,o){var r=n.map(function(e){return t(t({},e),{},{params:h(e.params||{})})});return e.transporter.read({method:f,path:"1/indexes/*/queries",data:{requests:r},cacheable:!0},o)}},y=function(e){return function(n,o){return Promise.all(n.map(function(n){var r=n.params,i=r.facetName,a=r.facetQuery,s=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(r,["facetName","facetQuery"]);return x(e)(n.indexName,{methods:{searchForFacetValues:R}}).searchForFacetValues(i,a,t(t({},o),s))}))}},S=function(e){return function(t,n,o){return e.transporter.read({method:f,path:a("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},o)}},w=function(e){return function(t,n){return e.transporter.read({method:f,path:a("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},R=function(e){return function(t,n,o){return e.transporter.read({method:f,path:a("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},o)}};function E(e,i,a){var l,u,c,d,f,p,h,m;return g(t(t(t({},{appId:e,apiKey:i,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(t){return n.setRequestHeader(t,e.headers[t])});var o,r=function(e,o){return setTimeout(function(){n.abort(),t({status:0,content:o,isTimedOut:!0})},1e3*e)},i=r(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>
1n.OPENED&&void 0===o&&(clearTimeout(i),o=r(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(i),clearTimeout(o),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(i),clearTimeout(o),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)})}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:r(),requestsCache:r({serializable:!1}),hostsCache:function e(t){var r=o(t.caches),i=r.shift();return void 0===i?{get:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,o.miss(e)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return i.get(t,n,o).catch(function(){return e({caches:r}).get(t,n,o)})},set:function(t,n){return i.set(t,n).catch(function(){return e({caches:r}).set(t,n)})},delete:function(t){return i.delete(t).catch(function(){return e({caches:r}).delete(t)})},clear:function(){return i.clear().catch(function(){return e({caches:r}).clear()})}}}({caches:[(l={key:"".concat("4.20.0","-").concat(e)},c="algoliasearch-client-js-".concat(l.key),d=function(){return void 0===u&&(u=l.localStorage||window.localStorage),u},f=function(){return JSON.parse(d().getItem(c)||"{}")},p=function(e){d().setItem(c,JSON.stringify(e))},h=function(){var e=l.timeToLive?1e3*l.timeToLive:null,t=Object.fromEntries(Object.entries(f()).filter(function(e){return void 0!==n(e,2)[1].timestamp}));p(t),e&&p(Object.fromEntries(Object.entries(t).filter(function(t){var o=n(t,2)[1],r=(new Date).getTime();return!(o.timestamp+e<r)})))},{get:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){h();var t=JSON.stringify(e);return f()[t]}).then(function(e){return Promise.all([e?e.value:t(),void 0!==e])}).then(function(e){var t=n(e,2),r=t[0];return Promise.all([r,t[1]||o.miss(r)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve().then(function(){var n=f();return n[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},d().setItem(c,JSON.stringify(n)),t})},delete:function(e){return Promise.resolve().then(function(){var t=f();delete t[JSON.stringify(e)],d().setItem(c,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){d().removeItem(c)})}}),r()]}),userAgent:(m={value:"Algolia for JavaScript (".concat("4.20.0",")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===m.value.indexOf(t)&&(m.value="".concat(m.value).concat(t)),m}}).add({segment:"Browser",version:"lite"}),authMode:s.WithinQueryParameters}),a),{},{methods:{search:O,searchForFacetValues:y,multipleQueries:O,multipleSearchForFacetValues:y,customRequest:b,initIndex:function(e){return function(t){return x(e)(t,{methods:{search:w,searchForFacetValues:R,findAnswers:S}})}}}}))}return E.version="4.20.0",E},e.exports=t()},28931:function(e){e.exports={style:{fontFamily:"'__fonts_043856', '__fonts_Fallback_043856'"},className:"__className_043856"}},1368:function(e,t,n){"use strict";let o,r,i,a,s,l;n.d(t,{hQ:function(){return e_}});var u=n(96117),c=n(83892),d=n(2265),f=n(54887);function p(e,t,n){let o,r=n.initialDeps??[];return()=>{var i,a,s,l;let u,c;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(u=Date.now());let d=e();if(!(d.length!==r.length||d.some((e,t)=>r[t]!==e)))return o;if(r=d,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(c=Date.now()),o=t(...d),n.key&&(null==(s=n.debug)?void 0:s.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,o=t/16,r=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${r(t,5)} /${r(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==(l=null==n?void 0:n.onChange)||l.call(n,o),o}}function h(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let m=(e,t)=>
41>Math.abs(e-t),v=(e,t)=>{let n;return function(...o){clearTimeout(n),n=setTimeout(()=>e.apply(this,o),t)}},g=e=>e,b=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},x=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=e=>{let{width:n,height:o}=e;t({width:Math.round(n),height:Math.round(o)})};if(o(n.getBoundingClientRect()),"undefined"==typeof ResizeObserver)return()=>{};let r=new ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e){o({width:e.inlineSize,height:e.blockSize});return}}o(n.getBoundingClientRect())});return r.observe(n,{box:"border-box"}),()=>{r.unobserve(n)}},O={passive:!0},y="undefined"==typeof window||"onscrollend"in window,S=(e,t)=>{let n=e.scrollElement;if(!n)return;let o=0,r=y?()=>void 0:v(()=>{t(o,!1)},e.options.isScrollingResetDelay),i=i=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],r(),t(o,i)},a=i(!0),s=i(!1);return s(),n.addEventListener("scroll",a,O),n.addEventListener("scrollend",s,O),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",s)}},w=(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 Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},R=(e,{adjustments:t=0,behavior:n},o)=>{var r,i;null==(i=null==(r=o.scrollElement)?void 0:r.scrollTo)||i.call(r,{[o.options.horizontal?"left":"top"]:e+t,behavior:n})};class E{constructor(e){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let e=null,t=()=>e||("undefined"!=typeof ResizeObserver?e=new ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var e;return null==(e=t())?void 0:e.disconnect()},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:g,rangeExtractor:b,onChange:()=>{},measureElement:w,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...e}},this.notify=(e,t)=>{var n,o;let{startIndex:r,endIndex:i}=this.range??{startIndex:void 0,endIndex:void 0},a=this.calculateRange();(e||r!==(null==a?void 0:a.startIndex)||i!==(null==a?void 0:a.endIndex))&&(null==(o=(n=this.options).onChange)||o.call(n,this,t))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{let e=this.options.getScrollElement();this.scrollElement!==e&&(this.cleanup(),this.scrollElement=e,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.scrollOffset<e?"forward":"backward":null,this.scrollOffset=e;let n=this.isScrolling;this.isScrolling=t,this.notify(n!==t,t)})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.getMeasurementOptions=p(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(e,t,n,o)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:o}),{key:!1}),this.getFurthestMeasurement=(e,t)=>{let n=new Map,o=new Map;for(let r=t-1;r>=0;r--){let t=e[r];if(n.has(t.lane))continue;let i=o.get(t.lane);if(null==i||t.end>i.end?o.set(t.lane,t):t.end<i.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)=>
4e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurements=p(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:o},r)=>{let i=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let a=this.measurementsCache.slice(0,i);for(let s=i;s<e;s++){let e=o(s),i=1===this.options.lanes?a[s-1]:this.getFurthestMeasurement(a,s),l=i?i.end+this.options.gap:t+n,u=r.get(e),c="number"==typeof u?u:this.options.estimateSize(s),d=l+c,f=i?i.lane:s%this.options.lanes;a[s]={index:s,start:l,size:c,end:d,key:e,lane:f}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=p(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(e,t,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n}){let o=e.length-1,r=I(0,o,t=>e[t].start,n),i=r;for(;i<o&&e[i].end<n+t;)i++;return{startIndex:r,endIndex:i}}({measurements:e,outerSize:t,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=p(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,n,o)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:n,count:o}),{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.measurementsCache[this.indexFromElement(e)];if(!n||!e.isConnected){this.measureElementCache.forEach((t,n)=>{t===e&&(this.observer.unobserve(e),this.measureElementCache.delete(n))});return}let o=this.measureElementCache.get(n.key);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.measureElementCache.set(n.key,e));let r=this.options.measureElement(e,t,this);this.resizeItem(n,r)},this.resizeItem=(e,t)=>{let n=t-(this.itemSizeCache.get(e.key)??e.size);0!==n&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(e,n,this):e.start<this.scrollOffset+this.scrollAdjustments)&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(e.index),this.itemSizeCache=new Map(this.itemSizeCache.set(e.key,t)),this.notify(!0,!1))},this.measureElement=e=>{e&&this._measureElement(e,void 0)},this.getVirtualItems=p(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let o=0,r=e.length;o<r;o++){let r=t[e[o]];n.push(r)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();return h(t[I(0,t.length-1,e=>h(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let n=this.getSize();"auto"===t&&(t=e<=this.scrollOffset?"start":e>=this.scrollOffset+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));let o=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-this.getSize(),e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=h(this.getMeasurements()[e]);if("auto"===t){if(n.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=this.scrollOffset+this.options.scrollPaddingStart))return[this.scrollOffset,t];t="start"}}let o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t),t]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"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}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let[o,r]=this.getOffsetForIndex(e,t);this._scrollToOffset(o,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(e))){let[t]=this.getOffsetForIndex(e,r);m(t,this.scrollOffset)||this.scrollToIndex(e,{align:r,behavior:n})}else this.scrollToIndex(e,{align:r,behavior:n})}
4))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return(0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{var e,t;this.itemSizeCache=new Map,null==(t=(e=this.options).onChange)||t.call(e,this,!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset="function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}),this.notify(!1,!1)}}let I=(e,t,n,o)=>{for(;e<=t;){let r=(e+t)/2|0,i=n(r);if(i<o)e=r+1;else{if(!(i>o))return r;t=r-1}}return e>0?e-1:0},T="undefined"!=typeof document?d.useLayoutEffect:d.useEffect;var C=n(54079);function P(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}var M=n(93169),_=n(99299),z=n(98267),k=n(6584),j=n(64524),A=n(61463),F=n(88703),D=n(58371),q=n(39110),N=n(62707),L=n(20635);function V(e){let t=(0,d.useRef)({value:"",selectionStart:null,selectionEnd:null});return(0,L.O)(e.current,"blur",e=>{let n=e.target;n instanceof HTMLInputElement&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})}),(0,k.z)(()=>{let n=e.current;if(document.activeElement!==n&&n instanceof HTMLInputElement&&n.isConnected){if(n.focus({preventScroll:!0}),n.value!==t.current.value)n.setSelectionRange(n.value.length,n.value.length);else{let{selectionStart:e,selectionEnd:o}=t.current;null!==e&&null!==o&&n.setSelectionRange(e,o)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}var G=n(75180),B=n(8459),J=n(41469);function H(e){return[e.screenX,e.screenY]}var U=n(91498),W=n(22270),K=n(83040),Q=n(8655),Z=n(76935),Y=n(21495),$=n(53509),X=n(47359),ee=n(47986),et=((o=et||{})[o.First=0]="First",o[o.Previous=1]="Previous",o[o.Next=2]="Next",o[o.Last=3]="Last",o[o.Specific=4]="Specific",o[o.Nothing=5]="Nothing",o);function en(e,t){let n=t.resolveItems();if(n.length<=0)return null;let o=t.resolveActiveIndex(),r=null!=o?o:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 1:-1===r&&(r=n.length);for(let e=r-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 2:for(let e=r+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 4:for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return o;case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}}var eo=n(70777),er=n(19309),ei=n(5583),ea=n(31555),es=n(3600),el=n(83184),eu=n(7551),ec=n(43003),ed=((r=ed||{})[r.Left=0]="Left",r[r.Right=2]="Right",r),ef=n(22934),ep=n(25566),eh=((i=eh||{})[i.Open=0]="Open",i[i.Closed=1]="Closed",i),em=((a=em||{})[a.Single=0]="Single",a[a.Multi=1]="Multi",a),ev=((s=ev||{})[s.Pointer=0]="Pointer",s[s.Focus=1]="Focus",s[s.Other=2]="Other",s),eg=((l=eg||{})[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.SetActivationTrigger=5]="SetActivationTrigger",l[l.UpdateVirtualOptions=6]="UpdateVirtualOptions",l);function eb(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()),r=o.length>0&&null!==o[0].dataRef.current.order?o.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):(0,er.z2)(o,e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{options:r,activeOptionIndex:i}}let ex={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1,activationTrigger:2,__demoMode:!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,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},2(e,t){var n,o,r,i,a;if(null!=(n=e.dataRef.current)&&n.disabled||null!=(o=e.dataRef.current)&&o.optionsRef.current&&!(null!=(r=e.dataRef.current)&&r.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let n=t.focus===et.Specific?t.idx:en(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var t,n;
4return 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!=(i=t.trigger)?i:2;return e.activeOptionIndex===n&&e.activationTrigger===o?e:{...e,activeOptionIndex:n,activationTrigger:o,__demoMode:!1}}let s=eb(e);if(null===s.activeOptionIndex){let e=s.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(s.activeOptionIndex=e)}let l=t.focus===et.Specific?t.idx:en(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),u=null!=(a=t.trigger)?a:2;return e.activeOptionIndex===l&&e.activationTrigger===u?e:{...e,...s,activeOptionIndex:l,activationTrigger:u,__demoMode:!1}},3:(e,t)=>{var n,o,r;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let i=t.payload,a=eb(e,e=>(e.push(i),e));null===e.activeOptionIndex&&null!=(o=e.dataRef.current)&&o.isSelected(t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(i));let s={...e,...a,activationTrigger:2};return null!=(r=e.dataRef.current)&&r.__demoMode&&void 0===e.dataRef.current.value&&(s.activeOptionIndex=0),s},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=eb(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.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},6:(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})}}},eO=(0,d.createContext)(null);function ey(e){let t=(0,d.useContext)(eO);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ey),t}return t}eO.displayName="ComboboxActionsContext";let eS=(0,d.createContext)(null);function ew(e){var t;let n=eE("VirtualProvider"),[o,r]=(0,d.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]),i=function(e){let t=d.useReducer(()=>({}),{})[1],n={...e,onChange:(n,o)=>{var r;o?(0,f.flushSync)(t):t(),null==(r=e.onChange)||r.call(e,n,o)}},[o]=d.useState(()=>new E(n));return o.setOptions(n),d.useEffect(()=>o._didMount(),[]),T(()=>o._willUpdate()),o}({observeElementRect:x,observeElementOffset:S,scrollToFn:R,scrollPaddingStart:o,scrollPaddingEnd:r,count:n.virtual.options.length,estimateSize:()=>40,getScrollElement(){var e;return null!=(e=n.optionsRef.current)?e:null},overscan:12}),[a,s]=(0,d.useState)(0);(0,A.e)(()=>{s(e=>e+1)},[null==(t=n.virtual)?void 0:t.options]);let l=i.getVirtualItems();return 0===l.length?null:d.createElement(eS.Provider,{value:i},d.createElement("div",{style:{position:"relative",width:"100%",height:"".concat(i.getTotalSize(),"px")},ref:e=>{e&&(void 0===ep||void 0===ep.env.JEST_WORKER_ID)&&0!==n.activationTrigger&&null!==n.activeOptionIndex&&n.virtual.options.length>n.activeOptionIndex&&i.scrollToIndex(n.activeOptionIndex)}},l.map(t=>{var o;return d.createElement(d.Fragment,{key:t.key},d.cloneElement(null==(o=e.children)?void 0:o.call(e,{option:n.virtual.options[t.index],open:0===n.comboboxState}),{key:"".concat(a,"-").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 eR=(0,d.createContext)(null);function eE(e){let t=(0,d.useContext)(eR);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Combobox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eE),t}return t}function eI(e,t){return(0,ei.E)(t.type,ex,e,t)}eR.displayName="ComboboxDataContext";let eT=d.Fragment,eC=es.VN.RenderStrategy|es.VN.Static,eP=(0,es.yV)(function(e,t){var n,o;let r=(0,K.B)(),{value:i,defaultValue:a,onChange:s,form:l,name:u,by:c,disabled:f=r||!1,onClose:p,__demoMode:h=!1,multiple:m=!1,immediate:v=!1,virtual:g=null,nullable:b,...x}=e,[O=m?[]:void 0,y]=(0,M.q)(i,s,a),[S,w]=(0,d.useReducer)(eI,{dataRef:(0,d.createRef)(),comboboxState:h?0:1,options:[],virtual:g?{options:g.options,disabled:null!=(n=g.disabled)?n:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,__demoMode:h}),R=(0,d.useRef)(!1),E=(0,d.useRef)({static:!1,hold:!1}),I=(0,d.useRef)(null),T=(0,d.useRef)(null),C=(0,d.useRef)(null),_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P;return(0,d.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(c),z=(0,k.z)(e=>g?null===c?g.options.indexOf(e):g.options.findIndex(t=>_(t,e)):S.options.findIndex(t=>_(t.dataRef.current.value,e))),j=(0,d.useCallback)(e=>(0,ei.E)(D.mode,{1:()=>O.some(t=>_(t,e)),0:()=>_(O,e)}),[O]),F=(0,k.z)(e=>S.activeOptionIndex===z(e)),D=(0,d.useMemo)(()=>({...S,immediate:v,optionsPropsRef:E,inputRef:I,buttonRef:T,optionsRef:C,value:O,defaultValue:a,disabled:f,mode:m?1:0,virtual:S.virtual,get activeOptionIndex(){if(R.current&&null===S.activeOptionIndex&&(g?g.options.length>0:S.options.length>0)){if(g){let e=g.options.findIndex(e=>{var t,n;return!(null!=(n=null==(t=null==g?void 0:g.disabled)?void 0:t.call(g,e))&&n)});if(-1!==e)return e}let e=S.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return S.activeOptionIndex},calculateIndex:z,compare:_,isSelected:j,isActive:F}),[O,a,f,m,h,S,g]);(0,A.e)(()=>{g&&w({type:6,options:g.options})},[g,null==g?void 0:g.options]),(0,A.e)(()=>{S.dataRef.current=D},[D]),(0,q.O)([D.buttonRef,D.inputRef,D.optionsRef],()=>W.closeCombobox(),0===D.comboboxState);let N=(0,d.useMemo)(()=>{var e,t,n;return{open:0===D.comboboxState,disabled:f,activeIndex:D.activeOptionIndex,activeOption:null===D.activeOptionIndex?null:D.virtual?D.virtual.options[null!=(e=D.activeOptionIndex)?e:0]:null!=(n=null==(t=D.options[D.activeOptionIndex])?void 0:t.dataRef.current.value)?n:null,value:O}},[D,f,O]),L=(0,k.z)(()=>
4{if(null!==D.activeOptionIndex){if(D.virtual)H(D.virtual.options[D.activeOptionIndex]);else{let{dataRef:e}=D.options[D.activeOptionIndex];H(e.current.value)}W.goToOption(et.Specific,D.activeOptionIndex)}}),V=(0,k.z)(()=>{w({type:0}),R.current=!0}),G=(0,k.z)(()=>{w({type:1}),R.current=!1,null==p||p()}),B=(0,k.z)((e,t,n)=>(R.current=!1,e===et.Specific?w({type:2,focus:et.Specific,idx:t,trigger:n}):w({type:2,focus:e,trigger:n}))),J=(0,k.z)((e,t)=>(w({type:3,payload:{id:e,dataRef:t}}),()=>{D.isActive(t.current.value)&&(R.current=!0),w({type:4,id:e})})),H=(0,k.z)(e=>(0,ei.E)(D.mode,{0:()=>null==y?void 0:y(e),1(){let t=D.value.slice(),n=t.findIndex(t=>_(t,e));return -1===n?t.push(e):t.splice(n,1),null==y?void 0:y(t)}})),U=(0,k.z)(e=>{w({type:5,trigger:e})}),W=(0,d.useMemo)(()=>({onChange:H,registerOption:J,goToOption:B,closeCombobox:G,openCombobox:V,setActivationTrigger:U,selectActiveOption:L}),[]),[Y,X]=(0,ec.bE)(),ee=(0,d.useCallback)(()=>null==y?void 0:y(a),[y]);return d.createElement(X,{value:Y,props:{htmlFor:null==(o=D.inputRef.current)?void 0:o.id},slot:{open:0===D.comboboxState,disabled:f}},d.createElement(Q.HO,null,d.createElement(eO.Provider,{value:W},d.createElement(eR.Provider,{value:D},d.createElement($.up,{value:(0,ei.E)(D.comboboxState,{0:$.ZM.Open,1:$.ZM.Closed})},null!=u&&d.createElement(Z.Mt,{disabled:f,data:null!=O?{[u]:O}:{},form:l,onReset:ee}),(0,es.sY)({ourProps:null===t?{}:{ref:t},theirProps:x,slot:N,defaultTag:eT,name:"Combobox"}))))))}),eM=(0,es.yV)(function(e,t){var n;let o=eE("Combobox.Button"),r=ey("Combobox.Button"),i=(0,J.T)(o.buttonRef,t),a=(0,d.useId)(),{id:s="headlessui-combobox-button-".concat(a),disabled:l=o.disabled||!1,autoFocus:f=!1,...p}=e,h=(0,_.G)(),m=V(o.inputRef),v=(0,k.z)(e=>{switch(e.key){case eu.R.Space:case eu.R.Enter:return e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&r.openCombobox(),h.nextFrame(()=>m());case eu.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&(r.openCombobox(),h.nextFrame(()=>{o.value||r.goToOption(et.First)})),h.nextFrame(()=>m());case eu.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===o.comboboxState&&(r.openCombobox(),h.nextFrame(()=>{o.value||r.goToOption(et.Last)})),h.nextFrame(()=>m());case eu.R.Escape:return 0!==o.comboboxState?void 0:(e.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&e.stopPropagation(),r.closeCombobox(),h.nextFrame(()=>m()));default:return}}),g=(0,k.z)(e=>{e.preventDefault(),(0,ee.P)(e.currentTarget)||(e.button===ed.Left&&(0===o.comboboxState?r.closeCombobox():r.openCombobox()),m())}),b=(0,ec.wp)([s]),{isFocusVisible:x,focusProps:O}=(0,u.F)({autoFocus:f}),{isHovered:y,hoverProps:S}=(0,c.X)({isDisabled:l}),{pressed:w,pressProps:R}=(0,C.x)({disabled:l}),E=(0,d.useMemo)(()=>({open:0===o.comboboxState,active:w||0===o.comboboxState,disabled:l,value:o.value,hover:y,focus:x}),[o,y,x,w,l]),I=(0,es.dG)({ref:i,id:s,type:(0,G.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":b,disabled:l||void 0,autoFocus:f,onMouseDown:g,onKeyDown:v},O,S,R);return(0,es.sY)({ourProps:I,theirProps:p,slot:E,defaultTag:"button",name:"Combobox.Button"})}),e_=Object.assign(eP,{Input:(0,es.yV)(function(e,t){var n,o,r,i,a;let s;let l=eE("Combobox.Input"),f=ey("Combobox.Input"),p=(0,d.useId)(),h=(0,Y.Q)(),{id:m=h||"headlessui-combobox-input-".concat(p),onChange:v,displayValue:g,disabled:b=l.disabled||!1,autoFocus:x=!1,type:O="text",...y}=e,S=(0,J.T)(l.inputRef,t,(0,Q.AZ)()),w=(0,N.i)(l.inputRef),R=(0,d.useRef)(!1),E=(0,_.G)(),I=(0,k.z)(()=>{f.onChange(null),l.optionsRef.current&&(l.optionsRef.current.scrollTop=0),f.goToOption(et.Nothing)}),T=(0,d.useMemo)(()=>{var e;return"function"==typeof g&&void 0!==l.value?null!=(e=g(l.value))?e:"":"string"==typeof l.value?l.value:""},[l.value,g]);(0,W.q)((e,t)=>{let[n,o]=e,[r,i]=t;if(R.current)return;let a=l.inputRef.current;a&&((0===i&&1===o||n!==r)&&(a.value=n),requestAnimationFrame(()=>{if(R.current||!a||(null==w?void 0:w.activeElement)!==a)return;let{selectionStart:e,selectionEnd:t}=a;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&a.setSelectionRange(a.value.length,a.value.length)}))},[T,l.comboboxState,w]),(0,W.q)((e,t)=>
4{let[n]=e,[o]=t;if(0===n&&1===o){if(R.current)return;let e=l.inputRef.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:o,selectionDirection:r}=e;e.value="",e.value=t,null!==r?e.setSelectionRange(n,o,r):e.setSelectionRange(n,o)}},[l.comboboxState]);let C=(0,d.useRef)(!1),P=(0,k.z)(()=>{C.current=!0}),M=(0,k.z)(()=>{E.nextFrame(()=>{C.current=!1})}),z=(s=(0,_.G)(),(0,k.z)(e=>{s.dispose(),s.nextFrame(e)})),j=(0,k.z)(e=>{switch(R.current=!0,z(()=>{R.current=!1}),e.key){case eu.R.Enter:if(R.current=!1,0!==l.comboboxState||C.current)return;if(e.preventDefault(),e.stopPropagation(),null===l.activeOptionIndex){f.closeCombobox();return}f.selectActiveOption(),0===l.mode&&f.closeCombobox();break;case eu.R.ArrowDown:return R.current=!1,e.preventDefault(),e.stopPropagation(),(0,ei.E)(l.comboboxState,{0:()=>f.goToOption(et.Next),1:()=>f.openCombobox()});case eu.R.ArrowUp:return R.current=!1,e.preventDefault(),e.stopPropagation(),(0,ei.E)(l.comboboxState,{0:()=>f.goToOption(et.Previous),1:()=>{f.openCombobox(),E.nextFrame(()=>{l.value||f.goToOption(et.Last)})}});case eu.R.Home:if(e.shiftKey)break;return R.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(et.First);case eu.R.PageUp:return R.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(et.First);case eu.R.End:if(e.shiftKey)break;return R.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(et.Last);case eu.R.PageDown:return R.current=!1,e.preventDefault(),e.stopPropagation(),f.goToOption(et.Last);case eu.R.Escape:return R.current=!1,0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),0===l.mode&&null===l.value&&I(),f.closeCombobox());case eu.R.Tab:if(R.current=!1,0!==l.comboboxState)return;0===l.mode&&1!==l.activationTrigger&&f.selectActiveOption(),f.closeCombobox()}}),A=(0,k.z)(e=>{null==v||v(e),0===l.mode&&""===e.target.value&&I(),f.openCombobox()}),F=(0,k.z)(e=>{var t,n,o;let r=null!=(t=e.relatedTarget)?t:X.m.find(t=>t!==e.currentTarget);if(R.current=!1,!(null!=(n=l.optionsRef.current)&&n.contains(r))&&!(null!=(o=l.buttonRef.current)&&o.contains(r))&&0===l.comboboxState)return e.preventDefault(),0===l.mode&&null===l.value&&I(),f.closeCombobox()}),D=(0,k.z)(e=>{var t,n,o;let r=null!=(t=e.relatedTarget)?t:X.m.find(t=>t!==e.currentTarget);null!=(n=l.buttonRef.current)&&n.contains(r)||null!=(o=l.optionsRef.current)&&o.contains(r)||l.disabled||l.immediate&&0!==l.comboboxState&&(f.openCombobox(),E.nextFrame(()=>{f.setActivationTrigger(1)}))}),q=(0,ec.wp)(),L=(0,el.zH)(),{isFocused:V,focusProps:G}=(0,u.F)({autoFocus:x}),{isHovered:B,hoverProps:H}=(0,c.X)({isDisabled:b}),U=(0,d.useMemo)(()=>({open:0===l.comboboxState,disabled:b,hover:B,focus:V,autofocus:x}),[l,B,V,x,b]),K=(0,es.dG)({ref:S,id:m,role:"combobox",type:O,"aria-controls":null==(n=l.optionsRef.current)?void 0:n.id,"aria-expanded":0===l.comboboxState,"aria-activedescendant":null===l.activeOptionIndex?void 0:l.virtual?null==(o=l.options.find(e=>!e.dataRef.current.disabled&&l.compare(e.dataRef.current.value,l.virtual.options[l.activeOptionIndex])))?void 0:o.id:null==(r=l.options[l.activeOptionIndex])?void 0:r.id,"aria-labelledby":q,"aria-describedby":L,"aria-autocomplete":"list",defaultValue:null!=(a=null!=(i=e.defaultValue)?i:void 0!==l.defaultValue?null==g?void 0:g(l.defaultValue):null)?a:l.defaultValue,disabled:b||void 0,autoFocus:x,onCompositionStart:P,onCompositionEnd:M,onKeyDown:j,onChange:A,onFocus:D,onBlur:F},G,H);return(0,es.sY)({ourProps:K,theirProps:y,slot:U,defaultTag:"input",name:"Combobox.Input"})}),Button:eM,Label:ec.__,Options:(0,es.yV)(function(e,t){var n;let o=(0,d.useId)(),{id:r="headlessui-combobox-options-".concat(o),hold:i=!1,anchor:a,portal:s=!1,modal:l=!0,...u}=e,c=eE("Combobox.Options"),f=ey("Combobox.Options"),p=(0,Q.Vy)(a);p&&(s=!0);let[h,m]=(0,Q.ES)(p),v=(0,Q.U8)(),g=(0,J.T)(c.optionsRef,t,p?h:null),b=(0,N.i)(c.optionsRef),x=(0,$.oJ)(),O=null!==x?(x&$.ZM.Open)===$.ZM.Open:0===c.comboboxState;(0,D.m)(c.inputRef,f.closeCombobox,O),(0,B.P)(b,!c.__demoMode&&l&&0===c.comboboxState),(0,j.s)({allowed:(0,k.z)(()=>[c.inputRef.current,c.buttonRef.current,c.optionsRef.current])},!c.__demoMode&&l&&0===c.comboboxState),(0,A.e)(()=>{var t;c.optionsPropsRef.current.static=null!=(t=e.static)&&t},[c.optionsPropsRef,e.static]),(0,A.e)(()=>{c.optionsPropsRef.current.hold=i}
4,[c.optionsPropsRef,i]),function(e){let{container:t,accept:n,walk:o,enabled:r=!0}=e,i=(0,d.useRef)(n),a=(0,d.useRef)(o);(0,d.useEffect)(()=>{i.current=n,a.current=o},[n,o]),(0,A.e)(()=>{if(!t||!r)return;let e=(0,U.r)(t);if(!e)return;let n=i.current,o=a.current,s=Object.assign(e=>n(e),{acceptNode:n}),l=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)o(l.currentNode)},[t,r,i,a])}({container:c.optionsRef.current,enabled:0===c.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 y=(0,ec.wp)([null==(n=c.buttonRef.current)?void 0:n.id]),S=(0,d.useMemo)(()=>({open:0===c.comboboxState,option:void 0}),[c]),w=(0,k.z)(()=>{f.setActivationTrigger(0)}),R=(0,es.dG)(p?v():{},{"aria-labelledby":y,role:"listbox","aria-multiselectable":1===c.mode||void 0,id:r,ref:g,style:{...m,"--input-width":(0,z.h)(c.inputRef,!0).width,"--button-width":(0,z.h)(c.buttonRef,!0).width},onWheel:w});c.virtual&&O&&Object.assign(u,{children:d.createElement(ew,null,u.children)});let[E,I]=(0,d.useState)(c.value);c.value!==E&&0===c.comboboxState&&1!==c.mode&&I(c.value);let T=(0,k.z)(e=>c.compare(E,e));return d.createElement(ef.h_,{enabled:!!s&&(e.static||O)},d.createElement(eR.Provider,{value:1===c.mode?c:{...c,isSelected:T}},(0,es.sY)({ourProps:R,theirProps:u,slot:S,defaultTag:"div",features:eC,visible:O,name:"Combobox.Options"}
4)))}),Option:(0,es.yV)(function(e,t){var n,o,r;let i;let a=eE("Combobox.Option"),s=ey("Combobox.Option"),l=(0,d.useId)(),{id:u="headlessui-combobox-option-".concat(l),value:c,disabled:f=null!=(o=null==(n=a.virtual)?void 0:n.disabled(c))&&o,order:p=null,...h}=e,m=V(a.inputRef),v=a.virtual?a.activeOptionIndex===a.calculateIndex(c):null!==a.activeOptionIndex&&(null==(r=a.options[a.activeOptionIndex])?void 0:r.id)===u,g=a.isSelected(c),b=(0,d.useRef)(null),x=(0,F.E)({disabled:f,value:c,domRef:b,order:p}),O=(0,d.useContext)(eS),y=(0,J.T)(t,b,O?O.measureElement:null),S=(0,k.z)(()=>s.onChange(c));(0,A.e)(()=>s.registerOption(u,x),[x,u]);let w=(0,d.useRef)(!(a.virtual||a.__demoMode));(0,A.e)(()=>{if(!a.virtual&&!a.__demoMode)return(0,eo.k)().requestAnimationFrame(()=>{w.current=!0})},[a.virtual,a.__demoMode]),(0,A.e)(()=>{if(w.current&&0===a.comboboxState&&v&&0!==a.activationTrigger)return(0,eo.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=b.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[b,v,a.comboboxState,a.activationTrigger,a.activeOptionIndex]);let R=(0,k.z)(e=>{e.preventDefault(),e.button===ed.Left&&(f||(S(),(0,ea.tq)()||requestAnimationFrame(()=>m()),0===a.mode&&s.closeCombobox()))}),E=(0,k.z)(()=>{if(f)return s.goToOption(et.Nothing);let e=a.calculateIndex(c);s.goToOption(et.Specific,e)}),I=(i=(0,d.useRef)([-1,-1]),{wasMoved(e){let t=H(e);return(i.current[0]!==t[0]||i.current[1]!==t[1])&&(i.current=t,!0)},update(e){i.current=H(e)}}),T=(0,k.z)(e=>I.update(e)),C=(0,k.z)(e=>{if(!I.wasMoved(e)||f||v)return;let t=a.calculateIndex(c);s.goToOption(et.Specific,t,0)}),P=(0,k.z)(e=>{I.wasMoved(e)&&(f||v&&(a.optionsPropsRef.current.hold||s.goToOption(et.Nothing)))}),M=(0,d.useMemo)(()=>({active:v,focus:v,selected:g,disabled:f}),[v,g,f]);return(0,es.sY)({ourProps:{id:u,ref:y,role:"option",tabIndex:!0===f?void 0:-1,"aria-disabled":!0===f||void 0,"aria-selected":g,disabled:void 0,onMouseDown:R,onFocus:E,onPointerEnter:T,onMouseEnter:T,onPointerMove:C,onMouseMove:C,onPointerLeave:P,onMouseLeave:P},theirProps:h,slot:M,defaultTag:"div",name:"Combobox.Option"})})})},64167:function(e,t,n){"use strict";var o=n(2265);let r=o.forwardRef(function(e,t){let{title:n,titleId:r,...i}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,o.createElement("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"}))});t.Z=r},74589:function(e,t,n){"use strict";var o=n(2265);let r=o.forwardRef(function(e,t){let{title:n,titleId:r,...i}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});t.Z=r},84380:function(e,t,n){"use strict";var o=n(2265);let r=o.forwardRef(function(e,t){let{title:n,titleId:r,...i}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}))});t.Z=r},84573:function(e,t,n){"use strict";var o=n(2265);let r=o.forwardRef(function(e,t){let{title:n,titleId:r,...i}=e;return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:t,"aria-labelledby":r},i),n?o.createElement("title",{id:r},n):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))});t.Z=r}}]);

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.