1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5778],{83127:function(e,t,n){n.d(t,{ij:function(){return r}});function r(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}},34054:function(e,t,n){n.d(t,{Me:function(){return S},oo:function(){return L},US:function(){return E},RR:function(){return P},cv:function(){return T},uY:function(){return k},dp:function(){return F}});var r=n(4029);function o(e,t,n){let o,{reference:i,floating:l}=e,u=(0,r.Qq)(t),a=(0,r.Wh)(t),s=(0,r.I4)(a),c=(0,r.k3)(t),f="y"===u,d=i.x+i.width/2-l.width/2,p=i.y+i.height/2-l.height/2,h=i[s]/2-l[s]/2;switch(c){case"top":o={x:d,y:i.y-l.height};break;case"bottom":o={x:d,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-l.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":o[a]-=h*(n&&f?-1:1);break;case"end":o[a]+=h*(n&&f?-1:1)}return o}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:u}=n,a=l.filter(Boolean),s=await (null==u.isRTL?void 0:u.isRTL(t)),c=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=o(c,r,s),p=r,h={},g=0;for(let n=0;n<a.length;n++){let{name:l,fn:v}=a[n],{x:m,y:b,data:x,reset:y}=await v({x:f,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:u,elements:{reference:e,floating:t}});f=null!=m?m:f,d=null!=b?b:d,h={...h,[l]:{...h[l],...x}},y&&g<=50&&(g++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await u.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:f,y:d}=o(c,p,s)),n=-1)}return{x:f,y:d,placement:p,strategy:i,middlewareData:h}};async function l(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:l,rects:u,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=(0,r.ku)(t,e),g=(0,r.yd)(h),v=a[p?"floating"===d?"reference":"floating":d],m=(0,r.JB)(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(v)))||n?v:v.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),b="floating"===d?{x:o,y:i,width:u.floating.width,height:u.floating.height}:u.reference,x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),y=await (null==l.isElement?void 0:l.isElement(x))&&await (null==l.getScale?void 0:l.getScale(x))||{x:1,y:1},w=(0,r.JB)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:s}):b);return{top:(m.top-w.top+g.top)/y.y,bottom:(w.bottom-m.bottom+g.bottom)/y.y,left:(m.left-w.left+g.left)/y.x,right:(w.right-m.right+g.right)/y.x}}async function u(e,t){let{placement:n,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),u=(0,r.k3)(n),a=(0,r.hp)(n),s="y"===(0,r.Qq)(n),c=["left","top"].includes(u)?-1:1,f=l&&s?-1:1,d=(0,r.ku)(t,e),{mainAxis:p,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof g&&(h="end"===a?-1*g:g),s?{x:h*f,y:p*c}:{x:p*c,y:h*f}}var a=n(10712);function s(e){let t=(0,a.Dx)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=(0,a.Re)(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:o,s=(0,r.NM)(n)!==l||(0,r.NM)(o)!==u;return s&&(n=l,o=u),{width:n,height:o,$:s}}function c(e){return(0,a.kK)(e)?e:e.contextElement}function f(e){let t=c(e);if(!(0,a.Re)(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:l}=s(t),u=(l?(0,r.NM)(n.width):n.width)/o,f=(l?(0,r.NM)(n.height):n.height)/i;return u&&Number.isFinite(u)||(u=1),f&&Number.isFinite(f)||(f=1),{x:u,y:f}}let d=(0,r.ze)(0);function p(e){let t=(0,a.Jj)(e);return(0,a.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:d}function h(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),u=c(e),s=(0,r.ze)(1);t&&(o?(0,a.kK)(o)&&(s=f(o)):s=f(e));let d=(void 0===(i=n)&&(i=!1),o&&(!i||o===(0,a.Jj)(u))&&i)?p(u):(0,r.ze)(0),h=(l.left+d.x)/s.x,g=(l.top+d.y)/s.y,v=l.width/s.x,m=l.height/s.y;if(u){let e=(0,a.Jj)(u),t=o&&(0,a.kK)(o)?(0,a.Jj)(o):o,n=e,r=(0,a.wK)(n);for(;r&&o&&t!==n;){let e=f(r),t=r.getBoundingClientRect(),o=(0,a.Dx)(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;
1h*=e.x,g*=e.y,v*=e.x,m*=e.y,h+=i,g+=l,n=(0,a.Jj)(r),r=(0,a.wK)(n)}}return(0,r.JB)({width:v,height:m,x:h,y:g})}function g(e,t){let n=(0,a.Lw)(e).scrollLeft;return t?t.left+n:h((0,a.tF)(e)).left+n}function v(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:g(e,r)),y:r.top+t.scrollTop}}function m(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,a.Jj)(e),r=(0,a.tF)(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,u=0,s=0;if(o){i=o.width,l=o.height;let e=(0,a.Pf)();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:u,y:s}}(e,n);else if("document"===t)o=function(e){let t=(0,a.tF)(e),n=(0,a.Lw)(e),o=e.ownerDocument.body,i=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),u=-n.scrollLeft+g(e),s=-n.scrollTop;return"rtl"===(0,a.Dx)(o).direction&&(u+=(0,r.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:u,y:s}}((0,a.tF)(e));else if((0,a.kK)(t))o=function(e,t){let n=h(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=(0,a.Re)(e)?f(e):(0,r.ze)(1),u=e.clientWidth*l.x;return{width:u,height:e.clientHeight*l.y,x:i*l.x,y:o*l.y}}(t,n);else{let n=p(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.JB)(o)}function b(e){return"static"===(0,a.Dx)(e).position}function x(e,t){if(!(0,a.Re)(e)||"fixed"===(0,a.Dx)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,a.tF)(e)===n&&(n=n.ownerDocument.body),n}function y(e,t){let n=(0,a.Jj)(e);if((0,a.tR)(e))return n;if(!(0,a.Re)(e)){let t=(0,a.Ow)(e);for(;t&&!(0,a.Py)(t);){if((0,a.kK)(t)&&!b(t))return t;t=(0,a.Ow)(t)}return n}let r=x(e,t);for(;r&&(0,a.Ze)(r)&&b(r);)r=x(r,t);return r&&(0,a.Py)(r)&&b(r)&&!(0,a.hT)(r)?n:r||(0,a.gQ)(e)||n}let w=async function(e){let t=this.getOffsetParent||y,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=(0,a.Re)(t),i=(0,a.tF)(t),l="fixed"===n,u=h(e,!0,l,t),s={scrollLeft:0,scrollTop:0},c=(0,r.ze)(0);if(o||!o&&!l){if(("body"!==(0,a.wk)(t)||(0,a.ao)(i))&&(s=(0,a.Lw)(t)),o){let e=h(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=g(i))}l&&!o&&i&&(c.x=g(i));let f=!i||o||l?(0,r.ze)(0):v(i,s);return{x:u.left+s.scrollLeft-c.x-f.x,y:u.top+s.scrollTop-c.y-f.y,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},R={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e,l="fixed"===i,u=(0,a.tF)(o),s=!!t&&(0,a.tR)(t.floating);if(o===u||s&&l)return n;let c={scrollLeft:0,scrollTop:0},d=(0,r.ze)(1),p=(0,r.ze)(0),g=(0,a.Re)(o);if((g||!g&&!l)&&(("body"!==(0,a.wk)(o)||(0,a.ao)(u))&&(c=(0,a.Lw)(o)),(0,a.Re)(o))){let e=h(o);d=f(o),p.x=e.x+o.clientLeft,p.y=e.y+o.clientTop}let m=!u||g||l?(0,r.ze)(0):v(u,c,!0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x+m.x,y:n.y*d.y-c.scrollTop*d.y+p.y+m.y}},getDocumentElement:a.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,l=[..."clippingAncestors"===n?(0,a.tR)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,a.Kx)(e,[],!1).filter(e=>(0,a.kK)(e)&&"body"!==(0,a.wk)(e)),o=null,i="fixed"===(0,a.Dx)(e).position,l=i?(0,a.Ow)(e):e;for(;(0,a.kK)(l)&&!(0,a.Py)(l);){let t=(0,a.Dx)(l),n=(0,a.hT)(l);
1n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,a.ao)(l)&&!n&&function e(t,n){let r=(0,a.Ow)(t);return!(r===n||!(0,a.kK)(r)||(0,a.Py)(r))&&("fixed"===(0,a.Dx)(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=(0,a.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],u=l[0],s=l.reduce((e,n)=>{let o=m(t,n,i);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e},m(t,u,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:y,getElementRects:w,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=s(e);return{width:t,height:n}},getScale:f,isElement:a.kK,isRTL:function(e){return"rtl"===(0,a.Dx)(e).direction}};function O(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function S(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,p=c(e),g=l||u?[...p?(0,a.Kx)(p):[],...(0,a.Kx)(t)]:[];g.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let v=p&&f?function(e,t){let n,o=null,i=(0,a.tF)(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function u(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),l();let c=e.getBoundingClientRect(),{left:f,top:d,width:p,height:h}=c;if(a||t(),!p||!h)return;let g=(0,r.GW)(d),v=(0,r.GW)(i.clientWidth-(f+p)),m={rootMargin:-g+"px "+-v+"px "+-(0,r.GW)(i.clientHeight-(d+h))+"px "+-(0,r.GW)(f)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,s))||1},b=!0;function x(t){let r=t[0].intersectionRatio;if(r!==s){if(!b)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||O(c,e.getBoundingClientRect())||u(),b=!1}try{o=new IntersectionObserver(x,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(x,m)}o.observe(e)}(!0),l}(p,n):null,m=-1,b=null;s&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),p&&!d&&b.observe(p),b.observe(t));let x=d?h(e):null;return d&&function t(){let r=h(e);x&&!O(x,r)&&n(),x=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;g.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=b)||e.disconnect(),b=null,d&&cancelAnimationFrame(i)}}let E=l,T=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,s=await u(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},k=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:u=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r.ku)(e,t),f={x:n,y:o},d=await l(t,c),p=(0,r.Qq)((0,r.k3)(i)),h=(0,r.Rn)(p),g=f[h],v=f[p];if(u){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=g+d[e],o=g-d[t];g=(0,r.uZ)(n,g,o)}
1if(a){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=v+d[e],o=v-d[t];v=(0,r.uZ)(n,v,o)}let m=s.fn({...t,[h]:g,[p]:v});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:u,[p]:a}}}}}},P=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,u,a;let{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:p,elements:h}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,...w}=(0,r.ku)(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let R=(0,r.k3)(s),O=(0,r.Qq)(d),S=(0,r.k3)(d)===d,E=await (null==p.isRTL?void 0:p.isRTL(h.floating)),T=m||(S||!y?[(0,r.pw)(d)]:(0,r.gy)(d)),k="none"!==x;!m&&k&&T.push(...(0,r.KX)(d,y,x,E));let P=[d,...T],F=await l(t,w),L=[],C=(null==(o=c.flip)?void 0:o.overflows)||[];if(g&&L.push(F[R]),v){let e=(0,r.i8)(s,f,E);L.push(F[e[0]],F[e[1]])}if(C=[...C,{placement:s,overflows:L}],!L.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=P[e];if(t&&(!("alignment"===v&&O!==(0,r.Qq)(t))||C.every(e=>e.overflows[0]>0&&(0,r.Qq)(e.placement)===O)))return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(u=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:u.placement;if(!n)switch(b){case"bestFit":{let e=null==(a=C.filter(e=>{if(k){let t=(0,r.Qq)(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=d}if(s!==n)return{reset:{placement:n}}}return{}}}},F=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let i,u;let{placement:a,rects:s,platform:c,elements:f}=t,{apply:d=()=>{},...p}=(0,r.ku)(e,t),h=await l(t,p),g=(0,r.k3)(a),v=(0,r.hp)(a),m="y"===(0,r.Qq)(a),{width:b,height:x}=s.floating;"top"===g||"bottom"===g?(i=g,u=v===(await (null==c.isRTL?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(u=g,i="end"===v?"top":"bottom");let y=x-h.top-h.bottom,w=b-h.left-h.right,R=(0,r.VV)(x-h[i],y),O=(0,r.VV)(b-h[u],w),S=!t.middlewareData.shift,E=R,T=O;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=w),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(E=y),S&&!v){let e=(0,r.Fp)(h.left,0),t=(0,r.Fp)(h.right,0),n=(0,r.Fp)(h.top,0),o=(0,r.Fp)(h.bottom,0);m?T=b-2*(0!==e||0!==t?e+t:(0,r.Fp)(h.left,h.right)):E=x-2*(0!==n||0!==o?n+o:(0,r.Fp)(h.top,h.bottom))}await d({...t,availableWidth:T,availableHeight:E});let k=await c.getDimensions(f.floating);return b!==k.width||x!==k.height?{reset:{rects:!0}}:{}}}},L=(e,t,n)=>{let r=new Map,o={platform:R,...n},l={...o.platform,_c:r};return i(e,t,{...o,platform:l})}},56921:function(e,t,n){n.d(t,{RR:function(){return h},YF:function(){return f},cv:function(){return d},dp:function(){return g},uY:function(){return p}});var r=n(34054),o=n(2784),i=n(28316),l="undefined"!=typeof document?o.useLayoutEffect:function(){};function u(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!u(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!u(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function a(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=a(e);return Math.round(t*n)/n}function c(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:h}={},transform:g=!0,whileElementsMounted:v,open:m}=e,[b,x]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,w]=o.useState(f);u(y,f)||w(f);let[R,O]=o.useState(null),[S,E]=o.useState(null),T=o.useCallback(e=>{e!==L.current&&(L.current=e,O(e))},[]),k=o.useCallback(e=>
1{e!==C.current&&(C.current=e,E(e))},[]),P=p||R,F=h||S,L=o.useRef(null),C=o.useRef(null),M=o.useRef(b),I=null!=v,D=c(v),A=c(d),z=c(m),N=o.useCallback(()=>{if(!L.current||!C.current)return;let e={placement:t,strategy:n,middleware:y};A.current&&(e.platform=A.current),(0,r.oo)(L.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==z.current};V.current&&!u(M.current,t)&&(M.current=t,i.flushSync(()=>{x(t)}))})},[y,t,n,A,z]);l(()=>{!1===m&&M.current.isPositioned&&(M.current.isPositioned=!1,x(e=>({...e,isPositioned:!1})))},[m]);let V=o.useRef(!1);l(()=>(V.current=!0,()=>{V.current=!1}),[]),l(()=>{if(P&&(L.current=P),F&&(C.current=F),P&&F){if(D.current)return D.current(P,F,N);N()}},[P,F,N,D,I]);let _=o.useMemo(()=>({reference:L,floating:C,setReference:T,setFloating:k}),[T,k]),B=o.useMemo(()=>({reference:P,floating:F}),[P,F]),j=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=s(B.floating,b.x),r=s(B.floating,b.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...a(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,g,B.floating,b.x,b.y]);return o.useMemo(()=>({...b,update:N,refs:_,elements:B,floatingStyles:j}),[b,N,_,B,j])}let d=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),p=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),g=(e,t)=>({...(0,r.dp)(e),options:[e,t]})},10712:function(e,t,n){function r(){return"undefined"!=typeof window}function o(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function a(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function c(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=b(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(o(e))}function p(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function h(e){let t=v(),n=a(e)?b(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function g(e){let t=y(e);for(;s(t)&&!m(t);){if(h(t))return t;if(p(t))break;t=y(t)}return null}function v(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function m(e){return["html","body","#document"].includes(o(e))}function b(e){return i(e).getComputedStyle(e)}function x(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function y(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||l(e);return c(t)?t.host:t}function w(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{Dx:function(){return b},Jj:function(){return i},Kx:function(){return function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=y(t);return m(n)?t.ownerDocument?t.ownerDocument.body:t.body:s(n)&&f(n)?n:e(n)}(t),u=l===(null==(o=t.ownerDocument)?void 0:o.body),a=i(l);if(u){let t=w(a);return n.concat(a,a.visualViewport||[],f(l)?l:[],t&&r?e(t):[])}return n.concat(l,e(l,[],r))}},Lw:function(){return x},Ow:function(){return y},Pf:function(){return v},Py:function(){return m},Re:function(){return s},Ze:function(){return d},ao:function(){return f},gQ:function(){return g},hT:function(){return h},kK:function(){return a},tF:function(){return l},tR:function(){return p},wK:function(){return w},wk:function(){return o}})},4029:function(e,t,n){n.d(t,{Fp:function(){return o},GW:function(){return l},I4:function(){return g},JB:function(){return S},KX:function(){return w},NM:function(){return i},Qq:function(){return v},Rn:function(){return h},VV:function(){return r},Wh:function(){return m},gy:function(){return x},hp:function(){return p},i8:function(){return b},k3:function(){return d},ku:function(){return f},pw:function(){return R},uZ:function(){return c},yd:function(){return O},ze:function(){return u}});let r=Math.min,o=Math.max,i=Math.round,l=Math.floor,u=e=>({x:e,y:e}
1),a={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t,n){return o(e,r(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(d(e))?"y":"x"}function m(e){return h(v(e))}function b(e,t,n){void 0===n&&(n=!1);let r=p(e),o=m(e),i=g(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=R(l)),[l,R(l)]}function x(e){let t=R(e);return[y(e),t,y(t)]}function y(e){return e.replace(/start|end/g,e=>s[e])}function w(e,t,n,r){let o=p(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(d(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}function R(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function O(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function S(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},66979:function(e,t,n){n.d(t,{__:function(){return v},bE:function(){return g},t0:function(){return p},wp:function(){return h}});var r=n(2784),o=n(19120),i=n(18105),l=n(251),u=n(84635),a=n(79278),s=n(94992),c=n(91568),f=n(11038);let d=(0,r.createContext)(null);function p(){let e=(0,r.useContext)(d);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,p),e}return e}function h(e){var t,n,o;let i=null!=(n=null==(t=(0,r.useContext)(d))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}function g(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=h(),[n,i]=(0,r.useState)([]),l=e?[t,...n].filter(Boolean):n;return[l.length>0?l.join(" "):void 0,(0,r.useMemo)(()=>function(e){let t=(0,o.z)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,r.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return r.createElement(d.Provider,{value:n},e.children)},[i])]}d.displayName="LabelContext";let v=Object.assign((0,f.yV)(function(e,t){var n;
1let d=(0,r.useId)(),h=p(),g=(0,s.Q)(),v=(0,a.B)(),{id:m="headlessui-label-".concat(d),htmlFor:b=null!=g?g:null==(n=h.props)?void 0:n.htmlFor,passive:x=!1,...y}=e,w=(0,u.T)(t);(0,i.e)(()=>h.register(m),[m,h.register]);let R=(0,o.z)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&c.jF(e.target))&&(c.dz(t)&&e.preventDefault(),h.props&&"onClick"in h.props&&"function"==typeof h.props.onClick&&h.props.onClick(e),c.dz(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(c.LL(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),O=(0,l.x)({...h.slot,disabled:v||!1}),S={ref:w,...h.props,id:m,htmlFor:b,onClick:R};return x&&("onClick"in S&&(delete S.htmlFor,delete S.onClick),"onClick"in y&&delete y.onClick),(0,f.L6)()({ourProps:S,theirProps:y,slot:O,defaultTag:b?"label":"div",name:h.name||"Label"})}),{})},7174:function(e,t,n){let r,o,i,l;n.d(t,{Ri:function(){return ek},Y4:function(){return eR},xX:function(){return eO},wt:function(){return eE},O_:function(){return eS},Xe:function(){return eT}});var u=n(91604),a=n(80958),s=n(2784),c=n(28316),f=n(5207),d=n(52178),p=n(4459),h=n(31127),g=n(64706),v=n(93183),m=n(19120),b=n(80531),x=n(79620),y=n(18105),w=n(50224),R=n(40878),O=n(39826),S=n(96792),E=n(69352),T=n(91122),k=n(33977),P=n(251),F=n(84635),L=n(65472),C=n(64221),M=n(61503),I=n(79278),D=n(69951),A=n(5960),z=n(95555),N=n(94992),V=n(52112),_=n(60117),B=n(44839),j=n(67485),H=n(78682),K=n(91568),Q=n(6656),q=n(39509),W=n(98237),J=n(39530),G=n(11038),U=n(39246),Y=n(84282),Z=n(66979),X=n(82930),$=n(58402),ee=n(21543),et=Object.defineProperty,en=(e,t,n)=>t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,er=(e,t,n)=>(en(e,"symbol"!=typeof t?t+"":t,n),n),eo=((r=eo||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),ei=((o=ei||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),el=((i=el||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),eu=((l=eu||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.SelectOption=5]="SelectOption",l[l.RegisterOptions=6]="RegisterOptions",l[l.UnregisterOptions=7]="UnregisterOptions",l[l.SetButtonElement=8]="SetButtonElement",l[l.SetOptionsElement=9]="SetOptionsElement",l[l.SortOptions=10]="SortOptions",l[l.MarkButtonAsMoved=11]="MarkButtonAsMoved",l);function ea(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,Q.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let es={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?ee.On.Tracked((0,ee.kn)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:j.T.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==o&&(n=o),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:ee.On.Idle}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let u={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===j.T.Nothing)return{...u,activeOptionIndex:null};if(t.focus===j.T.Specific)return{...u,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===j.T.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=(0,j.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...u,activeOptionIndex:l}}}}else if(t.focus===j.T.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=(0,j.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...u,activeOptionIndex:o}}}}let a=ea(e),s=(0,j.d)(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...u,...a,activeOptionIndex:s}},3:(e,t)=>
1{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==j.T.Nothing&&(r=(0,j.d)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:j.T.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...ea(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:ee.On.Moved}};class ec extends $.J{static new(e){let{id:t,__demoMode:n=!1}=e;return new ec({id:t,dataRef:{current:{}},listboxState:n?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:j.T.Nothing},frozenValue:!1,__demoMode:n,buttonPositionState:ee.On.Idle})}reduce(e,t){return(0,W.E)(t.type,es,e,t)}constructor(e){super(e),er(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return(0,W.E)(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex(t=>n(t,e));return -1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:(0,$.dC)(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,$.dC)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,$.dC)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),er(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=_.n.get(null);this.disposables.add(t.on(_.M.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>
1{t.buttonElement&&(e.dispose(),e.add((0,ee.hS)(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}}var ef=n(24305);let ed=(0,s.createContext)(null);function ep(e){let t=(0,s.useContext)(ed);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eh),t}return t}function eh(e){let{id:t,__demoMode:n=!1}=e,r=(0,s.useMemo)(()=>ec.new({id:t,__demoMode:n}),[]);return(0,ef.L)(()=>r.dispose()),r}let eg=(0,s.createContext)(null);function ev(e){let t=(0,s.useContext)(eg);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ev),t}return t}eg.displayName="ListboxDataContext";let em=s.Fragment,eb=(0,s.createContext)(!1),ex=G.VN.RenderStrategy|G.VN.Static,ey=s.Fragment,ew=(0,G.yV)(function(e,t){let n=(0,s.useId)(),r=(0,I.B)(),{value:o,defaultValue:i,form:l,name:u,onChange:a,by:c,invalid:f=!1,disabled:g=r||!1,horizontal:v=!1,multiple:m=!1,__demoMode:b=!1,...x}=e,w=(0,F.T)(t),R=(0,h.L)(i),[S=m?[]:void 0,E]=(0,p.q)(o,a,R),T=eh({id:n,__demoMode:b}),k=(0,s.useRef)({static:!1,hold:!1}),L=(0,s.useRef)(new Map),C=(0,d.J)(c),M=(0,s.useCallback)(e=>(0,W.E)(z.mode,{[ei.Multi]:()=>S.some(t=>C(t,e)),[ei.Single]:()=>C(S,e)}),[S]),z=(0,P.x)({value:S,disabled:g,invalid:f,mode:m?ei.Multi:ei.Single,orientation:v?"horizontal":"vertical",onChange:E,compare:C,isSelected:M,optionsPropsRef:k,listRef:L});(0,y.e)(()=>{T.state.dataRef.current=z},[z]);let N=(0,B.M)(T,e=>e.listboxState),j=_.n.get(null),H=(0,B.M)(j,(0,s.useCallback)(e=>j.selectors.isTop(e,n),[j,n])),[K,q]=(0,B.M)(T,e=>[e.buttonElement,e.optionsElement]);(0,O.O)(H,[K,q],(e,t)=>{T.send({type:eu.CloseListbox}),(0,Q.sP)(t,Q.tJ.Loose)||(e.preventDefault(),null==K||K.focus())});let J=(0,P.x)({open:N===eo.Open,disabled:g,invalid:f,value:S}),[U,Y]=(0,Z.bE)({inherit:!0}),X=(0,s.useCallback)(()=>{if(void 0!==R)return null==E?void 0:E(R)},[E,R]),$=(0,G.L6)();return s.createElement(Y,{value:U,props:{htmlFor:null==K?void 0:K.id},slot:{open:N===eo.Open,disabled:g}},s.createElement(D.HO,null,s.createElement(ed.Provider,{value:T},s.createElement(eg.Provider,{value:z},s.createElement(V.up,{value:(0,W.E)(N,{[eo.Open]:V.ZM.Open,[eo.Closed]:V.ZM.Closed})},null!=u&&null!=S&&s.createElement(A.Mt,{disabled:g,data:{[u]:S},form:l,onReset:X}),$({ourProps:{ref:w},theirProps:x,slot:J,defaultTag:em,name:"Listbox"}))))))}),eR=(0,G.yV)(function(e,t){let n=(0,s.useId)(),r=(0,N.Q)(),o=ev("Listbox.Button"),i=ep("Listbox.Button"),{id:l=r||"headlessui-listbox-button-".concat(n),disabled:d=o.disabled||!1,autoFocus:p=!1,...h}=e,g=(0,F.T)(t,(0,D.AZ)(),i.actions.setButtonElement),v=(0,D.L)(),[x,y,w]=(0,B.M)(i,e=>[e.listboxState,e.buttonElement,e.optionsElement]),R=x===eo.Open;(0,E.G)(R,{trigger:y,action:(0,s.useCallback)(e=>{if(null!=y&&y.contains(e.target))return E.a.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return K.Re(t)?E.a.Select(t):null!=w&&w.contains(e.target)?E.a.Ignore:E.a.Close},[y,w]),close:i.actions.closeListbox,select:i.actions.selectActiveOption});let O=(0,m.z)(e=>{switch(e.key){case Y.R.Enter:(0,q.g)(e.currentTarget);break;case Y.R.Space:case Y.R.ArrowDown:e.preventDefault(),i.actions.openListbox({focus:o.value?j.T.Nothing:j.T.First});break;case Y.R.ArrowUp:e.preventDefault(),i.actions.openListbox({focus:o.value?j.T.Nothing:j.T.Last})}}),S=(0,m.z)(e=>{e.key===Y.R.Space&&e.preventDefault()}),k=(0,b.a)(e=>{var t;i.state.listboxState===eo.Open?((0,c.flushSync)(()=>i.actions.closeListbox()),null==(t=i.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),i.actions.openListbox({focus:j.T.Nothing}))}),L=(0,m.z)(e=>e.preventDefault()),C=(0,Z.wp)([l]),M=(0,U.zH)(),{isFocusVisible:I,focusProps:A}=(0,u.F)({autoFocus:p}),{isHovered:z,hoverProps:V}=(0,a.X)({isDisabled:d}),{pressed:_,pressProps:H}=(0,f.x)({disabled:d}),Q=(0,P.x)({open:x===eo.Open,active:_||x===eo.Open,disabled:d,invalid:o.invalid,value:o.value,hover:z,focus:I,autofocus:p}),W=(0,B.M)(i,e=>e.listboxState===eo.Open),J=(0,G.dG)(v(),{ref:g,id:l,type:(0,T.f)(e,y),"aria-haspopup":"listbox","aria-controls":null==w?void 0:w.id,"aria-expanded":W,"aria-labelledby":C,"aria-describedby":M,disabled:d||void 0,autoFocus:p,onKeyDown:O,onKeyUp:S,onKeyPress:L},k,A,V,H);return(0,G.L6)()({ourProps:J,theirProps:h,slot:Q,defaultTag:"button",name:"Listbox.Button"})}),eO=Z.__,eS=(0,G.yV)(function(e,t){let n=(0,s.useId)(),{id:r="headlessui-listbox-options-".concat(n),anchor:o,portal:i=!1,modal:l=!0,transition:u=!1,...a}
1=e,f=(0,D.Vy)(o),[d,p]=(0,s.useState)(null);f&&(i=!0);let h=ev("Listbox.Options"),b=ep("Listbox.Options"),[y,w,O,E]=(0,B.M)(b,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),T=(0,S.i)(w),L=(0,S.i)(O),C=(0,V.oJ)(),[I,A]=(0,M.Y)(u,d,null!==C?(C&V.ZM.Open)===V.ZM.Open:y===eo.Open);(0,R.m)(I,w,b.actions.closeListbox);let N=!E&&l&&y===eo.Open;(0,k.P)(N,L);let _=!E&&l&&y===eo.Open;(0,x.s)(_,{allowed:(0,s.useCallback)(()=>[w,O],[w,O])});let H=!(0,B.M)(b,b.selectors.didButtonMove)&&I,K=(0,B.M)(b,b.selectors.hasFrozenValue)&&!e.static,q=(0,z._)(K,h.value),U=(0,s.useCallback)(e=>h.compare(q,e),[h.compare,q]),Z=(0,B.M)(b,e=>{var t;if(null==f||!(null!=(t=null==f?void 0:f.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>U(e.dataRef.current.value));return -1===n&&(n=0),n}),$=(()=>{if(null==f)return;if(null===Z)return{...f,inner:void 0};let e=Array.from(h.listRef.current.values());return{...f,inner:{listRef:{current:e},index:Z}}})(),[ee,et]=(0,D.ES)($),en=(0,D.U8)(),er=(0,F.T)(t,f?ee:null,b.actions.setOptionsElement,p),el=(0,g.G)();(0,s.useEffect)(()=>{O&&y===eo.Open&&((0,J.H9)(O)||null==O||O.focus({preventScroll:!0}))},[y,O]);let eu=(0,m.z)(e=>{var t;switch(el.dispose(),e.key){case Y.R.Space:if(""!==b.state.searchQuery)return e.preventDefault(),e.stopPropagation(),b.actions.search(e.key);case Y.R.Enter:e.preventDefault(),e.stopPropagation(),b.actions.selectActiveOption();break;case(0,W.E)(h.orientation,{vertical:Y.R.ArrowDown,horizontal:Y.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:j.T.Next});case(0,W.E)(h.orientation,{vertical:Y.R.ArrowUp,horizontal:Y.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:j.T.Previous});case Y.R.Home:case Y.R.PageUp:return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:j.T.First});case Y.R.End:case Y.R.PageDown:return e.preventDefault(),e.stopPropagation(),b.actions.goToOption({focus:j.T.Last});case Y.R.Escape:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>b.actions.closeListbox()),null==(t=b.state.buttonElement)||t.focus({preventScroll:!0});return;case Y.R.Tab:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>b.actions.closeListbox()),(0,Q.EO)(b.state.buttonElement,e.shiftKey?Q.TO.Previous:Q.TO.Next);break;default:1===e.key.length&&(b.actions.search(e.key),el.setTimeout(()=>b.actions.clearSearch(),350))}}),ea=(0,B.M)(b,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),es=(0,P.x)({open:y===eo.Open}),ec=(0,G.dG)(f?en():{},{id:r,ref:er,"aria-activedescendant":(0,B.M)(b,b.selectors.activeDescendantId),"aria-multiselectable":h.mode===ei.Multi||void 0,"aria-labelledby":ea,"aria-orientation":h.orientation,onKeyDown:eu,role:"listbox",tabIndex:y===eo.Open?0:void 0,style:{...a.style,...et,"--button-width":(0,v.h)(I,w,!0).width},...(0,M.X)(A)}),ef=(0,G.L6)(),ed=(0,s.useMemo)(()=>h.mode===ei.Multi?h:{...h,isSelected:U},[h,U]);return s.createElement(X.h_,{enabled:!!i&&(e.static||I),ownerDocument:T},s.createElement(eg.Provider,{value:ed},ef({ourProps:ec,theirProps:a,slot:es,defaultTag:"div",features:ex,visible:H,name:"Listbox.Options"}
1)))}),eE=(0,G.yV)(function(e,t){let n=(0,s.useId)(),{id:r="headlessui-listbox-option-".concat(n),disabled:o=!1,value:i,...l}=e,u=!0===(0,s.useContext)(eb),a=ev("Listbox.Option"),c=ep("Listbox.Option"),f=(0,B.M)(c,e=>c.selectors.isActive(e,r)),d=a.isSelected(i),p=(0,s.useRef)(null),h=(0,L.x)(p),g=(0,w.E)({disabled:o,value:i,domRef:p,get textValue(){return h()}}),v=(0,F.T)(t,p,e=>{e?a.listRef.current.set(r,e):a.listRef.current.delete(r)}),b=(0,B.M)(c,e=>c.selectors.shouldScrollIntoView(e,r));(0,y.e)(()=>{if(b)return(0,H.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[b,p]),(0,y.e)(()=>{if(!u)return c.actions.registerOption(r,g),()=>c.actions.unregisterOption(r)},[g,r,u]);let x=(0,m.z)(e=>{if(o)return e.preventDefault();c.actions.selectOption(i)}),R=(0,m.z)(()=>{if(o)return c.actions.goToOption({focus:j.T.Nothing});c.actions.goToOption({focus:j.T.Specific,id:r})}),O=(0,C.g)(),S=(0,m.z)(e=>O.update(e)),E=(0,m.z)(e=>{O.wasMoved(e)&&(o||f&&c.state.activationTrigger===el.Pointer||c.actions.goToOption({focus:j.T.Specific,id:r},el.Pointer))}),T=(0,m.z)(e=>{O.wasMoved(e)&&(o||f&&c.state.activationTrigger===el.Pointer&&c.actions.goToOption({focus:j.T.Nothing}))}),k=(0,P.x)({active:f,focus:f,selected:d,disabled:o,selectedOption:d&&u}),M=u?{}:{id:r,ref:v,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":d,disabled:void 0,onClick:x,onFocus:R,onPointerEnter:S,onMouseEnter:S,onPointerMove:E,onMouseMove:E,onPointerLeave:T,onMouseLeave:T},I=(0,G.L6)();return!d&&u?null:I({ourProps:M,theirProps:l,slot:k,defaultTag:"div",name:"Listbox.Option"})}),eT=(0,G.yV)(function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:(0,F.T)(t)},l=ev("ListboxSelectedOption"),u=(0,P.x)({}),a=void 0===l.value||null===l.value||l.mode===ei.Multi&&Array.isArray(l.value)&&0===l.value.length,c=(0,G.L6)();return s.createElement(eb.Provider,{value:!0},c({ourProps:i,theirProps:{...o,children:s.createElement(s.Fragment,null,r&&a?r:n)},slot:u,defaultTag:ey,name:"ListboxSelectedOption"}))}),ek=Object.assign(ew,{Button:eR,Label:eO,Options:eS,Option:eE,SelectedOption:eT})},76496:function(e,t,n){let r;n.d(t,{t:function(){return o}});var o=((r=o||{})[r.Left=0]="Left",r[r.Right=2]="Right",r)},52178:function(e,t,n){n.d(t,{J:function(){return i}});var r=n(2784);function o(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}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,r.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}},4459:function(e,t,n){n.d(t,{q:function(){return l}});var r=n(2784),o=n(28316),i=n(19120);function l(e,t,n){let[l,u]=(0,r.useState)(n),a=void 0!==e,s=(0,r.useRef)(a),c=(0,r.useRef)(!1),f=(0,r.useRef)(!1);return!a||s.current||c.current?a||!s.current||f.current||(f.current=!0,s.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,s.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:l,(0,i.z)(e=>(a||(0,o.flushSync)(()=>u(e)),null==t?void 0:t(e)))]}},31127:function(e,t,n){n.d(t,{L:function(){return o}});var r=n(2784);function o(e){let[t]=(0,r.useState)(e);return t}},93183:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(2784),o=n(78682),i=n(18105);function l(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[u,a]=(0,r.useState)(()=>l(t));return(0,i.e)(()=>{if(!t||!e)return;let n=(0,o.k)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),a(e=>{let n=l(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:"".concat(u.width,"px"),height:"".concat(u.height,"px")}:u}},80531:function(e,t,n){n.d(t,{a:function(){return u}});var r=n(2784),o=n(76496),i=n(7464),l=n(19120);function u(e){let t=(0,r.useRef)(null);return{onPointerDown:(0,l.z)(n=>{t.current=n.pointerType,(0,i.P)(n.currentTarget)||"mouse"!==n.pointerType||n.button!==o.t.Left||(n.preventDefault(),e(n))}),onClick:(0,l.z)(n=>{"mouse"!==t.current&&((0,i.P)(n.currentTarget)||e(n))})}}},69352:function(e,t,n){let r;n.d(t,{G:function(){return s},a:function(){return a}});var o=n(2784),i=n(91568),l=n(33586),u=((r=u||{})[r.Ignore=0]="Ignore",r[r.Select=1]="Select",r[r.Close=2]="Close",r);let a={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function s(e,t){let{trigger:n,action:r,close:u,select:a}=t,s=(0,o.useRef)(null),c=(0,o.useRef)(null),f=(0,o.useRef)(null);(0,l.I)(e&&null!==n,"pointerdown",e=>{i.UG(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(c.current=e.x,f.current=e.y,s.current=e.timeStamp)}),(0,l.I)(e&&null!==n,"pointerup",e=>{var t,n;let o=s.current;if(null===o||(s.current=null,!i.sP(e.target))||5>Math.abs(e.x-(null!=(t=c.current)?t:e.x))&&5>
1Math.abs(e.y-(null!=(n=f.current)?n:e.y)))return;let l=r(e);switch(l.kind){case 0:return;case 1:e.timeStamp-o>200&&(a(l.target),u());break;case 2:u()}},{capture:!0})}},65472:function(e,t,n){n.d(t,{x:function(){return a}});var r=n(2784),o=n(91568);let i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function l(e){var t,n;let r=null!=(t=e.innerText)?t:"",l=e.cloneNode(!0);if(!o.Re(l))return r;let u=!1;for(let e of l.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),u=!0;let a=u?null!=(n=l.innerText)?n:"":r;return i.test(a)&&(a=a.replace(i,"")),a}var u=n(19120);function a(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return(0,u.z)(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():l(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return l(e).trim()})(r).trim().toLowerCase();return t.current=o,n.current=i,i})}},64221:function(e,t,n){n.d(t,{g:function(){return i}});var r=n(2784);function o(e){return[e.screenX,e.screenY]}function i(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=o(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=o(t)}}}},69951:function(e,t,n){n.d(t,{AZ:function(){return h},ES:function(){return m},HO:function(){return b},L:function(){return g},U8:function(){return v},Vy:function(){return p}});var r=n(87578),o=n(56921),i=n(34054),l=n(2784),u=n(64706),a=n(19120),s=n(18105),c=n(91568);let f=(0,l.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});f.displayName="FloatingContext";let d=(0,l.createContext)(null);function p(e){return(0,l.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function h(){return(0,l.useContext)(f).setReference}function g(){return(0,l.useContext)(f).getReferenceProps}function v(){let{getFloatingProps:e,slot:t}=(0,l.useContext)(f);return(0,l.useCallback)(function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object.assign({},e(...r),{"data-anchor":t.anchor})},[e,t])}function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,l.useContext)(d),n=(0,l.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,s.e)(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,l.useContext)(f);return(0,l.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}function b(e){var t,n,u;let p,h,g,{children:v,enabled:m=!0}=e,[b,y]=(0,l.useState)(null),[w,R]=(0,l.useState)(0),O=(0,l.useRef)(null),[S,E]=(0,l.useState)(null);(0,s.e)(()=>{if(!S)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(S).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(S.style.maxHeight="".concat(Math.ceil(t),"px"))});return e.observe(S,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[S]);let T=m&&null!==b&&null!==S,{to:k="bottom",gap:P=0,offset:F=0,padding:L=0,inner:C}=(p=x(null!=(t=null==b?void 0:b.gap)?t:"var(--anchor-gap, 0)",S),h=x(null!=(n=null==b?void 0:b.offset)?n:"var(--anchor-offset, 0)",S),g=x(null!=(u=null==b?void 0:b.padding)?u:"var(--anchor-padding, 0)",S),{...b,gap:p,offset:h,padding:g}),[M,I="center"]=k.split(" ");(0,s.e)(()=>{T&&R(0)},[T]);let{refs:D,floatingStyles:A,context:z}=(0,r.YF)({open:T,placement:"selection"===M?"center"===I?"bottom":"bottom-".concat(I):"center"===I?"".concat(M):"".concat(M,"-").concat(I),strategy:"absolute",transform:!1,middleware:[(0,o.cv)({mainAxis:"selection"===M?0:P,crossAxis:F}),(0,o.uY)({padding:L}),"selection"!==M&&(0,o.RR)({padding:L}),"selection"===M&&C?(0,r.aN)({...C,padding:L,overflowRef:O,offset:w,minItemsVisible:4,referenceOverflowThreshold:L,onFallbackChange(e){var t,n;if(!e)return;let r=z.elements.floating;if(!r)return;
1let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,u=0;for(let e of null!=(n=null==(t=z.elements.floating)?void 0:t.childNodes)?n:[])if(c.Re(e)){let t=e.offsetTop,n=t+e.clientHeight+o,a=r.scrollTop,s=a+r.clientHeight;if(t>=a&&n<=s)i--;else{u=Math.max(0,Math.min(n,s)-Math.max(t,a)),l=e.clientHeight;break}}i>=1&&R(e=>{let t=l*i-u+o;return e>=t?e:t})}}):null,(0,o.dp)({padding:L,apply(e){let{availableWidth:t,availableHeight:n,elements:r}=e;Object.assign(r.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}})].filter(Boolean),whileElementsMounted:i.Me}),[N=M,V=I]=z.placement.split("-");"selection"===M&&(N="selection");let _=(0,l.useMemo)(()=>({anchor:[N,V].filter(Boolean).join(" ")}),[N,V]),B=(0,r.Rz)(z,{overflowRef:O,onChange:R}),{getReferenceProps:j,getFloatingProps:H}=(0,r.NI)([B]),K=(0,a.z)(e=>{E(e),D.setFloating(e)});return l.createElement(d.Provider,{value:y},l.createElement(f.Provider,{value:{setFloating:K,setReference:D.setReference,styles:A,getReferenceProps:j,getFloatingProps:H,slot:_}},v))}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=(0,u.G)(),o=(0,a.z)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=y(e,t);return[o,n=>{let i=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),o=n[1].slice(t+1).trim();return o?[r,...e(o)]:[r]}return[]}(e);{let l=i.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function u(){r.nextFrame(u);let a=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(l[e]!==r){l[e]=r,a=!0;break}}if(!a)return;let s=y(e,t);o!==s&&(n(s),o=s)})}return r.dispose}]}return[n,null]}),i=(0,l.useMemo)(()=>o(e,t)[0],[e,t]),[c=i,f]=(0,l.useState)();return(0,s.e)(()=>{let[n,r]=o(e,t);if(f(n),r)return r(f)},[e,t]),c}function y(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}d.displayName="PlacementContext"},5960:function(e,t,n){n.d(t,{Mt:function(){return d},wR:function(){return c}});var r=n(2784),o=n(28316),i=n(64706),l=n(39509),u=n(11038),a=n(15085);let s=(0,r.createContext)(null);function c(e){let[t,n]=(0,r.useState)(null);return r.createElement(s.Provider,{value:{target:t}},e.children,r.createElement(a._,{features:a.x.Hidden,ref:n}))}function f(e){let{children:t}=e,n=(0,r.useContext)(s);if(!n)return r.createElement(r.Fragment,null,t);let{target:i}=n;return i?(0,o.createPortal)(r.createElement(r.Fragment,null,t),i):null}function d(e){let{data:t,form:n,disabled:o,onReset:s,overrides:c}=e,[d,h]=(0,r.useState)(null),g=(0,i.G)();return(0,r.useEffect)(()=>{if(s&&d)return g.addEventListener(d,"reset",s)},[d,n,s]),r.createElement(f,null,r.createElement(p,{setForm:h,formId:n}),(0,l.t)(t).map(e=>{let[t,i]=e;return r.createElement(a._,{features:a.x.Hidden,...(0,u.oA)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:o,name:t,value:i,...c})})}))}function p(e){let{setForm:t,formId:n}=e;return(0,r.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:r.createElement(a._,{features:a.x.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}},95555:function(e,t,n){n.d(t,{F:function(){return o},_:function(){return i}});var r=n(2784);let o=r.forwardRef(function(e,t){let{children:n,freeze:o}=e,l=i(o,n);return(0,r.isValidElement)(l)?(0,r.cloneElement)(l,{ref:t}):r.createElement(r.Fragment,null,l)});function i(e,t){let[n,o]=(0,r.useState)(t);return e||n===t||o(t),e?n:t}},94992:function(e,t,n){n.d(t,{Q:function(){return i},v:function(){return l}});var r=n(2784);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}function l(e){let{id:t,children:n}=e;return r.createElement(o.Provider,{value:t},n)}},67485:function(e,t,n){let r;n.d(t,{T:function(){return o},d:function(){return i}});var o=((r=o||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r);function i(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}}},21543:function(e,t,n){n.d(t,{On:function(){return o},hS:function(){return l},kn:function(){return i}});var r=n(78682);let o={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function i(e){let t=e.getBoundingClientRect();
1return"".concat(t.x,",").concat(t.y)}function l(e,t,n){let o=(0,r.k)();if("Tracked"===t.kind){let r=function(){l!==i(e)&&(o.dispose(),n())},{position:l}=t,u=new ResizeObserver(r);u.observe(e),o.add(()=>u.disconnect()),o.addEventListener(window,"scroll",r,{passive:!0}),o.addEventListener(window,"resize",r)}return()=>o.dispose()}},39509:function(e,t,n){n.d(t,{g:function(){return i},t:function(){return function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[l,u]of Object.entries(t))!function t(n,i,l){if(Array.isArray(l))for(let[e,r]of l.entries())t(n,o(i,e.toString()),r);else l instanceof Date?n.push([i,l.toISOString()]):"boolean"==typeof l?n.push([i,l?"1":"0"]):"string"==typeof l?n.push([i,l]):"number"==typeof l?n.push([i,"".concat(l)]):null==l?n.push([i,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(l)&&!(0,r.isValidElement)(l)&&e(l,i,n)}(i,o(n,l),u);return i}}});var r=n(2784);function o(e,t){return e?e+"["+t+"]":t}function i(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type)){t.click();return}null==(n=r.requestSubmit)||n.call(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.