PageSourceSearch

https://www.bristoldockyards.org/_next/static/chunks/0dl16t80jo~27.js?dpl=dpl_89C5DLqNPjmCkAWkFKJsikGZgrcE

js bristoldockyards.org collected 2026-09-25 04:35:08 UTC 244,342 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49124,e=>{"use strict";e.s(["default",0,function(e){if("string"==typeof e)return e?.toLowerCase()?.trim()?.replace(/[^\w\s-]/g,"")?.replace(/[\s_-]+/g,"-")?.replace(/^-+|-+$/g,"")}])},3546,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(9072),i=e.i(21160),l=e.i(49124),o=e.i(83183),a=e.i(29785),s=e.i(38951),c=e.i(52542),u=e.i(6722),d=e.i(19534);let f=({item:e})=>{let l=e?.title,c=e?.text,u=e?.link,f=e?.image,[h,g]=(0,n.useState)(!1);return(0,t.jsxs)("div",{className:"border-b first:border-t",children:[(0,t.jsxs)("button",{onClick:()=>g(!h),className:"flex w-full items-center justify-between gap-x-4 py-4 text-left md:py-6",children:[(0,t.jsx)("span",{className:(0,i.cn)(d.heading4Styles),children:l}),(0,t.jsxs)("div",{className:"grid",children:[(0,t.jsx)(p,{isExpanded:h}),(0,t.jsx)(m,{})]})]}),(0,t.jsx)(r.default,{duration:500,height:h?"auto":0,children:(0,t.jsxs)("div",{className:"flex flex-col gap-x-6 gap-y-6 pt-3 pb-8 md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-8 md:gap-y-20",children:[(0,t.jsx)(s.default,{field:c}),(0,t.jsx)(o.default,{link:u,type:"secondary"})]}),(0,t.jsx)(a.default,{field:f,className:"h-auto max-w-[400px] shrink-0 rounded-[8px] md:w-[40%] md:max-w-[300px]"})]})})]})},p=({isExpanded:e})=>(0,t.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,i.cn)("row-start-1 size-6 shrink-0 transition md:size-12",e&&"opacity-0"),children:(0,t.jsx)("path",{d:"M25.9077 21.0652C25.9077 21.639 26.3729 22.1042 26.9467 22.1042H43.1848V25.9224H26.9467C26.3729 25.9224 25.9077 26.3875 25.9077 26.9613V43.1994H22.0895V26.9613C22.0895 26.3875 21.6244 25.9224 21.0506 25.9224H4.8125V22.1042H21.0506C21.6244 22.1042 22.0895 21.639 22.0895 21.0652V4.82715H25.9077V21.0652Z",fill:"#3C3021"})}),m=()=>(0,t.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"row-start-1 size-6 shrink-0 md:size-12",children:(0,t.jsx)("path",{d:"M25.9077 22.1043H43.1848V25.9225H25.9077H22.0895H4.8125V22.1043H22.0895H25.9077Z",fill:"#3C3021"})});e.s(["default",0,({slice:e})=>{let n=e?.primary?.title,r=e?.primary?.items,s=e?.primary?.link,p=e?.primary?.sticker,m=(0,l.default)(e?.primary?.anchorId)||(0,l.default)(n);return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,c.backgroundStyles)(),...m?{id:m}:{},children:(0,t.jsxs)("div",{className:(0,i.cn)(u.containerStyles,"relative"),children:[n&&(0,t.jsx)("h2",{className:(0,i.cn)(d.heading4Styles,"md:col-span-4"),children:n}),(0,t.jsxs)("div",{className:"mt-12 md:col-span-8 md:mt-0",children:[r?.map((e,n)=>(0,t.jsx)(f,{item:e},n)),(0,t.jsx)(o.default,{link:s,type:"secondary",className:"mt-12 md:mt-[60px]"})]}),(0,t.jsx)(a.default,{field:p,className:(0,i.cn)("absolute bottom-[100px] -left-16 hidden size-[200px] lg:block",s?.text&&"bottom-40")})]})})}])},30013,e=>{"use strict";var t=e.i(71645);function n(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function r(e,t){let i=Object.keys(e),l=Object.keys(t);return i.length===l.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&i.every(i=>{let l=e[i],o=t[i];return"function"==typeof l?`${l}`==`${o}`:n(l)&&n(o)?r(l,o):l===o})}function i(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function l(e){return"number"==typeof e}function o(e){return"string"==typeof e}function a(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return Math.abs(e)}function u(e){return Math.sign(e)}function d(e){return h(e).map(Number)}function f(e){return e[p(e)]}function p(e){return Math.max(0,e.length-1)}function m(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function h(e){return Object.keys(e)}function g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function v(){let e=[],t={add:function(n,r,i,l={passive:!0}){let o;return"addEventListener"in n?(n.addEventListener(r,i,l),o=()=>n.removeEventListener(r,i,l)):(n.addListener(i),o=()=>n.removeListener(i)),e.push(o),t},clear:function(){e=e.filter(e=>e())}};return t}function y(e=0,t=0){let n=c(e-t);function r(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return r(n)?n<e?e:t:n},reachedAny:r,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e}
1,removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function x(e){let t=e;function n(e){return l(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function b(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},r=t.style,i=null,l=!1;return{clear:function(){!l&&(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(l)return;let o=Math.round(100*e.direction(t))/100;o!==i&&(r.transform=n(o),i=o)},toggleActive:function(e){l=!e}}}let w={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function j(e,t,n){let r,i,S,C,N,E,k,R,M=e.ownerDocument,A=M.defaultView,I=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>(h(n).forEach(r=>{let i=t[r],l=n[r],o=s(i)&&s(l);t[r]=o?e(i,l):l}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},i=h(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,i)},optionsMediaQueries:function(t){return t.map(e=>h(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(A),P=(R=[],{init:function(e,t){return(R=t.filter(({options:e})=>!1!==I.optionsAtMedia(e).active)).forEach(t=>t.init(e,I)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){R=R.filter(e=>e.destroy())}}),T=v(),L=(i={},S={init:function(e){r=e},emit:function(e){return(i[e]||[]).forEach(t=>t(r,e)),S},off:function(e,t){return i[e]=(i[e]||[]).filter(e=>e!==t),S},on:function(e,t){return i[e]=(i[e]||[]).concat([t]),S},clear:function(){i={}}}),{mergeOptions:O,optionsAtMedia:V,optionsMediaQueries:_}=I,{on:H,off:D,emit:$}=L,F=!1,W=O(w,j.globalOptions),B=O(W),U=[];function z(t,n){F||(B=V(W=O(W,t)),U=n||U,function(){let{container:t,slides:n}=B;E=(o(t)?e.querySelector(t):t)||e.children[0];let r=o(n)?E.querySelectorAll(n):n;k=[].slice.call(r||E.children)}(),C=function t(n){let r=function(e,t,n,r,i,s,w){var j,S;let C,N,E,k,R,M,A,I,P,T,L,O,V,_,{align:H,axis:D,direction:$,startIndex:F,loop:W,duration:B,dragFree:U,dragThreshold:z,inViewThreshold:q,slidesToScroll:Y,skipSnaps:X,containScroll:Z,watchResize:G,watchSlides:K,watchDrag:J,watchFocus:Q}=s,ee={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}},et=ee.measure(t),en=n.map(ee.measure),er=(N="rtl"===$,k=(E="y"===D)||!N?1:-1,R=E?"top":N?"right":"left",M=E?"bottom":N?"left":"right",{scroll:E?"y":"x",cross:E?"x":"y",startEdge:R,endEdge:M,measureSize:function(e){let{height:t,width:n}=e;return E?t:n},direction:function(e){return e*k}}),ei=er.measureSize(et),el={measure:function(e){return e/100*ei}},eo=(j=H,S=ei,C={start:function(){return 0},center:function(e){return(S-e)/2},end:function(e){return S-e}},{measure:function(e,t){return o(j)?C[j](e):j(S,e,t)}}),ea=!W&&!!Z,{slideSizes:es,slideSizesWithGaps:ec,startGap:eu,endGap:ed}=function(e,t,n,r,i,l){let{measureSize:o,startEdge:a,endEdge:s}=e,u=n[0]&&i,d=function(){if(!u)return 0;let e=n[0];return c(t[a]-e[a])}(),m=u?parseFloat(l.getComputedStyle(f(r)).getPropertyValue(`margin-${s}`)):0,h=n.map(o),g=n.map((e,t,n)=>{let r=t===p(n);return t?r?h[t]+m:n[t+1][a]-e[a]:h[t]+d}).map(c);return{slideSizes:h,slideSizesWithGaps:g,startGap:d,endGap:m}}(er,et,en,n,W||!!Z,i),ef=function(e,t,n,r,i,o,a,s){let{startEdge:u,endEdge:m,direction:h}=e,g=l(n);return{groupSlides:function(e){return g?d(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?d(e).reduce((n,l,d)=>{let g=f(n)||0,v=l===p(e),y=i[u]-o[g][u],x=i[u]-o[l][m],b=r||0!==g?0:h(a),w=c(x-(!r&&v?h(s):0)-(y+b));return d&&w>t+2&&n.push(l),v&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}}}(er,ei,Y,W,et,en,eu,ed),{snaps:ep,snapsAligned:em}=function(e,t,n,r,i){let{startEdge:l,endEdge:o}=e,{groupSlides:a}=i,s=a(r).map(e=>f(e)[o]-e[0][l]).map(c).map(t.measure),u=r.map(e=>n[l]-e[l]).map(e=>-c(e)),d=a(u).map(e=>e[0]).map((e,t)=>e+s[t]);return{snaps:u,snapsAligned:d}}
1(er,eo,et,en,ef),eh=-f(ep)+f(ec),{snapsContained:eg,scrollContainLimit:ev}=function(e,t,n,r){let i,l,o=y(-t+e,0),a=n.map((e,t)=>{let{min:r,max:i}=o,l=o.constrain(e),a=t===p(n);return t?a||function(e,t){return 1>=c(e-t)}(r,l)?r:function(e,t){return 1>=c(e-t)}(i,l)?i:l:i}).map(e=>parseFloat(e.toFixed(3))),s=(i=a[0],l=f(a),y(a.lastIndexOf(i),a.indexOf(l)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===r)return a;let{min:n,max:i}=s;return a.slice(n,i)}(),scrollContainLimit:s}}(ei,eh,em,Z),ey=ea?eg:em,{limit:ex}=(A=ey[0],{limit:y(W?A-eh:f(ey),A)}),eb=function e(t,n,r){let{constrain:i}=y(0,t),l=t+1,o=a(n);function a(e){return r?c((l+e)%l):i(e)}function s(){return e(t,o,r)}let u={get:function(){return o},set:function(e){return o=a(e),u},add:function(e){return s().set(o+e)},clone:s};return u}(p(ey),F,W),ew=eb.clone(),ej=d(n),eS=function(e,t,n,r){let i=v(),l=1e3/60,o=null,a=0,s=0;function c(e){if(!s)return;o||(o=e,n(),n());let i=e-o;for(o=e,a+=i;a>=l;)n(),a-=l;r(a/l),s&&(s=t.requestAnimationFrame(c))}function u(){t.cancelAnimationFrame(s),o=null,a=0,s=0}
1return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(o=null,a=0)})},destroy:function(){u(),i.clear()},start:function(){s||(s=t.requestAnimationFrame(c))},stop:u,update:n,render:r}}(r,i,()=>(({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()})(e_),e=>(({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:l,slideLooper:o,dragHandler:a,animation:s,eventHandler:c,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!a.pointerDown();g&&s.stop();let v=n.get()*f+i.get()*(1-f);r.set(v),d&&(l.loop(e.direction()),o.loop()),t.to(r.get()),g&&c.emit("settle"),h||c.emit("scroll")})(e_,e)),eC=ey[eb.get()],eN=x(eC),eE=x(eC),ek=x(eC),eR=x(eC),eM=function(e,t,n,r,i){let l=0,o=0,a=i,s=.68,d=e.get(),f=0;function p(e){return a=e,h}function m(e){return s=e,h}let h={direction:function(){return o},duration:function(){return a},velocity:function(){return l},seek:function(){let t=r.get()-e.get(),i=0;return a?(n.set(e),l+=t/a,l*=s,d+=l,e.add(l),i=d-f):(l=0,n.set(r),e.set(r),i=t),o=u(i),f=d,h},settled:function(){return .001>c(r.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(i)},useFriction:m,useDuration:p};return h}(eN,ek,eE,eR,B),eA=function(e,t,n,r,i){let{reachedAny:l,removeOffset:o,constrain:a}=r;function s(e){return e.concat().sort((e,t)=>c(e)-c(t))[0]}function d(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return s(i);let l=i.filter(e=>u(e)===r);return l.length?s(l):f(i)-n}return{byDistance:function(n,r){let s=i.get()+n,{index:u,distance:f}=function(n){let r=e?o(n):a(n),{index:i}=t.map((e,t)=>({diff:d(e-r,0),index:t})).sort((e,t)=>c(e.diff)-c(t.diff))[0];return{index:i,distance:r}}(s),p=!e&&l(s);if(!r||p)return{index:u,distance:n};let m=n+d(t[u]-f,0);return{index:u,distance:m}},byIndex:function(e,n){let r=d(t[e]-i.get(),n);return{index:e,distance:r}},shortcut:d}}(W,ey,eh,ex,eR),eI=function(e,t,n,r,i,l,o){function a(i){let a=i.distance,s=i.index!==t.get();
1l.add(a),a&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),s&&(n.set(t.get()),t.set(i.index),o.emit("select"))}return{distance:function(e,t){a(i.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);a(i.byIndex(r.get(),n))}}}(eS,eb,ew,eM,eA,eR,w),eP=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ex),eT=v(),eL=(P={},T=null,L=null,O=!1,{init:function(){I=new IntersectionObserver(e=>{O||(e.forEach(e=>{P[n.indexOf(e.target)]=e}),T=null,L=null,w.emit("slidesInView"))},{root:t.parentElement,threshold:q}),n.forEach(e=>I.observe(e))},destroy:function(){I&&I.disconnect(),O=!0},get:function(e=!0){if(e&&T)return T;if(!e&&L)return L;let t=h(P).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:i}=P[r];return(e&&i||!e&&!i)&&t.push(r),t},[]);return e&&(T=t),e||(L=t),t}}),{slideRegistry:eO}=function(e,t,n,r,i,l){let o,{groupSlides:a}=i,{min:s,max:c}=r;return{slideRegistry:(o=a(l),1===n.length?[l]:e&&"keepSnaps"!==t?o.slice(s,c).map((e,t,n)=>{let r=t===p(n);return t?r?m(p(l)-f(n)[0]+1,f(n)[0]):e:m(f(n[0])+1)}):o)}}(ea,Z,ey,ev,ef,ej),eV=function(e,t,n,r,i,o,s,c){let u={passive:!0,capture:!0},d=0;function f(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(p){c&&(o.add(document,"keydown",f,!1),t.forEach((t,f)=>{o.add(t,"focus",t=>{(a(c)||c(p,t))&&function(t){if(new Date().getTime()-d>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));l(o)&&(i.useDuration(0),r.index(o,0),s.emit("slideFocus"))}(f)},u)}))}}}(e,n,eO,eI,eM,eT,w,Q),e_={ownerDocument:r,ownerWindow:i,eventHandler:w,containerRect:et,slideRects:en,animation:eS,axis:er,dragHandler:function(e,t,n,r,i,l,o,s,d,f,p,m,h,x,b,w,j,S){let{cross:C,direction:N}=e,E=["INPUT","SELECT","TEXTAREA"],k={passive:!1},R=v(),M=v(),A=y(50,225).constrain(x.measure(20)),I={mouse:300,touch:400},P={mouse:500,touch:600},T=b?43:25,L=!1,O=0,V=0,_=!1,H=!1,D=!1,$=!1;function F(e){if(!g(e,r)&&e.touches.length>=2)return W(e);let t=l.readPoint(e),n=l.readPoint(e,C),o=c(t-O),a=c(n-V);if(!H&&!$&&(!e.cancelable||!(H=o>a)))return W(e);let u=l.pointerMove(e);o>w&&(D=!0),f.useFriction(.3).useDuration(.75),s.start(),i.add(N(u)),e.preventDefault()}function W(e){var t;let n,r,i=p.byDistance(0,!1).index!==m.get(),o=l.pointerUp(e)*(b?P:I)[$?"mouse":"touch"],a=(t=N(o),n=m.add(-1*u(t)),r=p.byDistance(t,!b).distance,b||c(t)<A?r:j&&i?.5*r:p.byIndex(n.get(),0).distance),s=function(e,t){var n,r;if(0===e||0===t||c(e)<=c(t))return 0;let i=(n=c(e),r=c(t),c(n-r));return c(i/e)}(o,a);H=!1,_=!1,M.clear(),f.useDuration(T-10*s).useFriction(.68+s/50),d.distance(a,!b),$=!1,h.emit("pointerUp")}function B(e){D&&(e.stopPropagation(),e.preventDefault(),D=!1)}return{init:function(e){S&&R.add(t,"dragstart",e=>e.preventDefault(),k).add(t,"touchmove",()=>void 0,k).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",W).add(t,"contextmenu",W).add(t,"click",B,!0);function s(s){(a(S)||S(e,s))&&function(e){let a,s=g(e,r);if(($=s,D=b&&s&&!e.buttons&&L,L=c(i.get()-o.get())>=2,!s||0===e.button)&&(a=e.target.nodeName||"",!E.includes(a))){let r;_=!0,l.pointerDown(e),f.useFriction(0).useDuration(0),i.set(o),r=$?n:t,M.add(r,"touchmove",F,k).add(r,"touchend",W).add(r,"mousemove",F,k).add(r,"mouseup",W),O=l.readPoint(e),V=l.readPoint(e,C),h.emit("pointerDown")}}(s)}},destroy:function(){R.clear(),M.clear()},pointerDown:function(){return _}}}(er,e,r,i,eR,function(e,t){let n,r;function i(e){return e.timeStamp}function l(n,r){let i=r||e.scroll,l=`client${"x"===i?"X":"Y"}`;return(g(n,t)?n:n.touches[0])[l]}return{pointerDown:function(e){return n=e,r=e,l(e)},pointerMove:function(e){let t=l(e)-l(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=l(r)-l(n),o=i(e)-i(n),a=i(e)-i(r)>170,s=t/o;return o&&!a&&c(s)>.1?s:0},readPoint:l}}(er,i),eN,eS,eI,eM,eA,eb,w,el,U,z,X,J),eventStore:eT,percentOfView:el,index:eb,indexPrevious:ew,limit:ex,location:eN,offsetLocation:ek,previousLocation:eE,options:s,resizeHandler:function(e,t,n,r,i,l,o){let s,u,d=[e].concat(r),f=[],p=!1;function m(e){return i.measureSize(o.measure(e))}return{init:function(i){l&&(u=m(e),f=r.map(m),s=new ResizeObserver(n=>{(a(l)||l(i,n))&&function(n){for(let l of n){if(p)return;let n=l.target===e,o=r.indexOf(l.target),a=n?u:f[o];if(c(m(n?e:r[o])-a)>=.5){i.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>
1{d.forEach(e=>s.observe(e))}))},destroy:function(){p=!0,s&&s.disconnect()}}}(t,w,i,n,er,G,ee),scrollBody:eM,scrollBounds:function(e,t,n,r,i){let l=i.measure(10),o=i.measure(50),a=y(.1,.99),s=!1;function u(){return!s&&!!e.reachedAny(n.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(i){if(!u())return;let s=e.reachedMin(t.get())?"min":"max",d=c(e[s]-t.get()),f=n.get()-t.get(),p=a.constrain(d/o);n.subtract(f*p),!i&&c(f)<l&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())},toggleActive:function(e){s=!e}}}(ex,ek,eR,eM,el),scrollLooper:function(e,t,n,r){let{reachedMin:i,reachedMax:l}=y(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?l(n.get()):-1===t&&i(n.get())))return;let o=-1*t*e;r.forEach(e=>e.add(o))}}}(eh,ex,ek,[eN,ek,eE,eR]),scrollProgress:eP,scrollSnapList:ey.map(eP.get),scrollSnaps:ey,scrollTarget:eA,scrollTo:eI,slideLooper:function(e,t,n,r,i,l,o,a,s){let c=d(i),u=d(i).reverse(),f=h(m(u,o[0]),n,!1).concat(h(m(c,t-o[0]-1),-n,!0));function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(i,o,c){let u=l.map((e,n)=>({start:e-r[n]+.5+o,end:e+t-.5+o}));return i.map(t=>{let r=c?0:-n,i=c?n:0,l=u[t][c?"end":"start"];return{index:t,loopPoint:l,slideLocation:x(-1),translate:b(e,s[t]),target:()=>a.get()>l?r:i}})}return{canLoop:function(){return f.every(({index:e})=>.1>=p(c.filter(t=>t!==e),t))},clear:function(){f.forEach(e=>e.translate.clear())},loop:function(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})},loopPoints:f}}(er,ei,eh,es,ec,ep,ey,ek,n),slideFocus:eV,slidesHandler:(_=!1,{init:function(e){K&&(V=new MutationObserver(t=>{!_&&(a(K)||K(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),w.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){V&&V.disconnect(),_=!0}}),slidesInView:eL,slideIndexes:ej,slideRegistry:eO,slidesToScroll:ef,target:eR,translate:b(er,t)};return e_}(e,E,k,M,A,n,L);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(B),_([W,...U.map(({options:e})=>e)]).forEach(e=>T.add(e,"change",q)),B.active&&(C.translate.to(C.location.get()),C.animation.init(),C.slidesInView.init(),C.slideFocus.init(G),C.eventHandler.init(G),C.resizeHandler.init(G),C.slidesHandler.init(G),C.options.loop&&C.slideLooper.loop(),E.offsetParent&&k.length&&C.dragHandler.init(G),N=P.init(G,U)))}function q(e,t){let n=Z();Y(),z(O({startIndex:n},e),t),L.emit("reInit")}function Y(){C.dragHandler.destroy(),C.eventStore.clear(),C.translate.clear(),C.slideLooper.clear(),C.resizeHandler.destroy(),C.slidesHandler.destroy(),C.slidesInView.destroy(),C.animation.destroy(),P.destroy(),T.clear()}function X(e,t,n){B.active&&!F&&(C.scrollBody.useBaseFriction().useDuration(!0===t?0:B.duration),C.scrollTo.index(e,n||0))}function Z(){return C.index.get()}let G={canScrollNext:function(){return C.index.add(1).get()!==Z()},canScrollPrev:function(){return C.index.add(-1).get()!==Z()},containerNode:function(){return E},internalEngine:function(){return C},destroy:function(){F||(F=!0,T.clear(),Y(),L.emit("destroy"),L.clear())},off:D,on:H,emit:$,plugins:function(){return N},previousScrollSnap:function(){return C.indexPrevious.get()},reInit:q,rootNode:function(){return e},scrollNext:function(e){X(C.index.add(1).get(),e,-1)},scrollPrev:function(e){X(C.index.add(-1).get(),e,1)},scrollProgress:function(){return C.scrollProgress.get(C.offsetLocation.get())},scrollSnapList:function(){return C.scrollSnapList},scrollTo:X,selectedScrollSnap:Z,slideNodes:function(){return k},slidesInView:function(){return C.slidesInView.get()},slidesNotInView:function(){return C.slidesInView.get(!1)}};return z(t,n),setTimeout(()=>L.emit("init"),0),G}function S(e={},n=[]){let l=(0,t.useRef)(e),o=(0,t.useRef)(n),[a,s]=(0,t.useState)(),[c,u]=(0,t.useState)(),d=(0,t.useCallback)(()=>{a&&a.reInit(l.current,o.current)},[a]);return(0,t.useEffect)(()=>{r(l.current,e)||(l.current=e,d())},[e,d]),(0,t.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=i(e),l=i(t);return n.every((e,t)=>r(e,l[t]))}(o.current,n)&&(o.current=n,d())},[n,d]),(0,t.useEffect)(()=>
1{if("u">typeof window&&window.document&&window.document.createElement&&c){j.globalOptions=S.globalOptions;let e=j(c,l.current,o.current);return s(e),()=>e.destroy()}s(void 0)},[c,s]),[u,a]}j.globalOptions=void 0,S.globalOptions=void 0,e.s(["default",0,S],30013)},97815,e=>{"use strict";var t=e.i(71645),n=e.i(30013);e.s(["default",0,function(e,r=[]){let[i,l]=(0,t.useState)(0),[o,a]=(0,n.default)(e,r),s=(0,t.useCallback)(()=>{a&&l(a.selectedScrollSnap())},[a]);(0,t.useEffect)(()=>{a&&(s(),a.on("select",s))},[a,s]);let c=(0,t.useCallback)(e=>{a&&a.scrollTo(e)},[a]),u=(0,t.useCallback)(()=>{a&&a.scrollNext()},[a]),d=(0,t.useCallback)(()=>{a&&a.scrollPrev()},[a]);return{emblaRef:o,emblaApi:a,selectedIndex:i,scrollTo:c,scrollNext:u,scrollPrev:d}}])},9408,e=>{"use strict";var t=e.i(43476),n=e.i(21160);e.s(["default",0,function({selectedIndex:e,items:r,scrollTo:i,theme:l="dark"}){return(0,t.jsx)("div",{className:"mt-12 flex items-center justify-center gap-x-[10px] md:hidden",children:r?.map((r,o)=>(0,t.jsx)("button",{onClick:()=>i(o),className:(0,n.cn)("bg-mainMastBrown size-[6px] rotate-45 opacity-25","light"===l&&"bg-breakerWhite",e===o&&"opacity-100"),"aria-label":`Go to slide ${o+1}`},o))})}])},57561,e=>{"use strict";var t=e.i(43476),n=e.i(19160),r=e.i(97815),i=e.i(21160),l=e.i(29785),o=e.i(9408),a=e.i(14028),s=e.i(6722),c=e.i(19534);e.s(["default",0,function({slice:e,articles:u}){let d=e?.primary?.title,f=e?.primary?.text,{emblaRef:p,selectedIndex:m,scrollNext:h,scrollPrev:g,scrollTo:v}=(0,r.default)();return(0,t.jsxs)("div",{className:(0,i.cn)(s.containerStyles),children:[(0,t.jsx)(a.default,{title:d,text:f,titleLayout:"left",showArrows:!0,scrollNext:h,scrollPrev:g,selectedIndex:m,items:u}),(0,t.jsxs)("div",{className:"mt-12 lg:mt-[60px]",ref:p,children:[(0,t.jsx)("div",{className:"-ml-4 flex lg:-ml-6",children:u?.map((e,r)=>{let o=e?.data?.heroImage,a=e?.data?.title,s=e?.data?.description,u=e?.data?.categories?.[0]?.category?.data?.name;return(0,t.jsx)("div",{className:"flex-[0_0_87%] pl-4 lg:flex-[0_0_29%] lg:pl-6",children:(0,t.jsxs)(n.PrismicNextLink,{field:e,className:"group/card block",children:[(0,t.jsx)("div",{className:"mb-4 overflow-hidden rounded-[8px]",children:(0,t.jsx)(l.default,{field:o,className:"aspect-[5/4] object-cover transition duration-300 lg:group-hover/card:scale-105"})}),u&&(0,t.jsx)("div",{className:(0,i.cn)(c.labelStyles,"mb-4"),children:u}),(0,t.jsx)("div",{className:(0,i.cn)(c.heading5Styles),children:a}),s&&(0,t.jsx)("div",{className:"mt-4",children:s})]})},r)})}),(0,t.jsx)(o.default,{items:u,scrollTo:v,selectedIndex:m})]})]})}])},55838,(e,t,n)=>{"use strict";var r=e.r(71645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=r.useState,o=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=l({inst:{value:n,getSnapshot:t}}),i=r[0].inst,u=r[1];return a(function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})},[e,n,t]),o(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),s(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},2239,(e,t,n)=>{"use strict";t.exports=e.r(55838)},52822,(e,t,n)=>{"use strict";var r=e.r(71645),i=e.r(2239),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,a=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=c(function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return a=t}return a=e}if(t=a,l(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(o=e,t):(o=e,a=n)}var o,a,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},30224,(e,t,n)=>{"use strict";
1t.exports=e.r(52822)},5220,e=>{"use strict";let t,n;var r,i,l,o,a,s=e.i(43476);e.s([],74157),e.i(74157);var c=e.i(71645);let u={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},d={...u,position:"fixed",top:0,left:0},f={...u,position:"absolute"},p={};function m(e,t){let n=c.useRef(p);return n.current===p&&(n.current=e(t)),n}function h(e,t,n,r){var i,l,o,a,s;let c=m(g).current;return i=c,l=e,o=t,a=n,s=r,(i.refs[0]!==l||i.refs[1]!==o||i.refs[2]!==a||i.refs[3]!==s)&&v(c,[e,t,n,r]),c.callback}function g(){return{callback:null,cleanup:null,refs:[]}}function v(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(null!=i)switch(typeof i){case"function":{let t=i(n);"function"==typeof t&&(r[e]=t);break}case"object":i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}function y({controlled:e,default:t,name:n,state:r="value"}){let{current:i}=c.useRef(void 0!==e),[l,o]=c.useState(t),a=c.useCallback(e=>{i||o(e)},[]);return[i?e:l,a]}e.i(47167);let x="u">typeof document?c.useLayoutEffect:()=>{},b=c[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],w=b&&b!==c.useLayoutEffect?b:e=>e();function j(e){let t=m(S).current;return t.next=e,w(t.effect),t.trampoline}function S(){let e={next:void 0,callback:C,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function C(){}function N(e){let t=m(E,e).current;return t.next=e,x(t.effect),t}function E(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var k=e.i(2239),R=e.i(30224);let M=parseInt(c.version,10),A=M>=19?function(e,t,r,i,l){let o;if(!n){let n;return n=c.useCallback(()=>t(e.getSnapshot(),r,i,l),[e,t,r,i,l]),(0,k.useSyncExternalStore)(e.subscribe,n,n)}let a=n.syncIndex;return n.syncIndex+=1,n.didInitialize?(o=n.syncHooks[a]).store===e&&o.selector===t&&Object.is(o.a1,r)&&Object.is(o.a2,i)&&Object.is(o.a3,l)||(o.store!==e&&(n.didChangeStore=!0),o.store=e,o.selector=t,o.a1=r,o.a2=i,o.a3=l,o.didChange=!0):(o={store:e,selector:t,a1:r,a2:i,a3:l,value:t(e.getSnapshot(),r,i,l),didChange:!1},n.syncHooks.push(o)),o.value}:function(e,t,n,r,i){return(0,R.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))};[].push({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,k.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});class I{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return A(this,e,t,n,r)}}function P(){}let T=Object.freeze([]),L=Object.freeze({}),O=[];function V(e){c.useEffect(e,O)}let _=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class H{static create(){return new H}static request(e){return _.request(e)}static cancel(e){return _.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=_.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(_.cancel(this.currentId),this.currentId=null)};
1disposeEffect=()=>this.cancel}function D(){let e=m(H.create).current;return V(e.disposeEffect),e}class ${static create(){return new $}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function F(){let e=m($.create).current;return V(e.disposeEffect),e}function W(){return"u">typeof window}function B(e){return q(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function z(e){var t;return null==(t=(q(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function q(e){return!!W()&&(e instanceof Node||e instanceof U(e).Node)}function Y(e){return!!W()&&(e instanceof Element||e instanceof U(e).Element)}function X(e){return!!W()&&(e instanceof HTMLElement||e instanceof U(e).HTMLElement)}function Z(e){return!(!W()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof U(e).ShadowRoot)}function G(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ei(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function K(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let J=/transform|translate|scale|rotate|perspective|filter/,Q=/paint|layout|strict|content/,ee=e=>!!e&&"none"!==e;function et(e){let t=Y(e)?ei(e):e;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||!en()&&(ee(t.backdropFilter)||ee(t.filter))||J.test(t.willChange||"")||Q.test(t.contain||"")}function en(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function er(e){return/^(html|body|#document)$/.test(B(e))}function ei(e){return U(e).getComputedStyle(e)}function el(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eo(e){if("html"===B(e))return e;let t=e.assignedSlot||e.parentNode||Z(e)&&e.host||z(e);return Z(t)?t.host:t}function ea(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=eo(t);return er(n)?t.ownerDocument?t.ownerDocument.body:t.body:X(n)&&G(n)?n:e(n)}(e),l=i===(null==(r=e.ownerDocument)?void 0:r.body),o=U(i);if(!l)return t.concat(i,ea(i,[],n));{let e=es(o);return t.concat(o,o.visualViewport||[],G(i)?i:[],e&&n?ea(e):[])}}function es(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ec(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function eu(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Z(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ed(e){return"composedPath"in e?e.composedPath()[0]:e.target}let ef="data-base-ui-focusable",ep="active",em="selected",eh="ArrowLeft",eg="ArrowRight",ev="ArrowUp",ey="ArrowDown";function ex(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function eb(e){return X(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function ew(e){return!!e&&"combobox"===e.getAttribute("role")&&eb(e)}function ej(e){return e?e.hasAttribute(ef)?e:e.querySelector(`[${ef}]`)||e:null}let eS="u">typeof navigator,eC=function(){if(!eS)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),eN=function(){if(!eS)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),eE=function(){if(!eS)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),ek="u">typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),eR="MacIntel"===eC.platform&&eC.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(eC.platform);eS&&/firefox/i.test(eE);let eM=eS&&/apple/i.test(navigator.vendor);eS&&/Edg/i.test(eE);let eA=eS&&/android/i.test(eN)||/android/i.test(eE);eS&&eN.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;let eI=eE.includes("jsdom/");function eP(e){e.preventDefault(),e.stopPropagation()}function eT(e){return""===e.pointerType&&!!e.isTrusted||(eA&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function eL(e){return!eI&&(!eA&&0===e.width&&0===e.height||eA&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function eO(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function eV(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}function e_(e,t,n,r){let i=!1,l=!1,o=r??L;return{reason:e,event:t??new Event("base-ui"),cancel(){i=!0},allowPropagation(){l=!0},get isCanceled(){return i},get isPropagationAllowed(){return l},trigger:n,...o}}e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","
1inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],24791);var eH=e.i(24791),eH=eH;function eD(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function e$(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function eF(e){return e?.ownerDocument||document}function eW(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...eW(e,t.id,n)])}function eB(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}let eU=c.createContext(null),ez=c.createContext(null),eq=()=>c.useContext(eU)?.id||null,eY=e=>{let t=c.useContext(ez);return e??t};var eH=eH;function eX(e){return`data-base-ui-${e}`}let eZ={intentional:"onClick",sloppy:"onPointerDown"};function eG(){return!1}let eK={...c},eJ=0,eQ=eK.useId;function e0(e,t){if(void 0!==eQ){let n=eQ();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){let[n,r]=c.useState(e),i=e||n;return c.useEffect(()=>{null==n&&(eJ+=1,r(`${t}-${eJ}`))},[n,t]),i}(e,t)}let e1=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`},e2=(e,t,n,r,i,l,...o)=>{let a;if(o.length>0)throw Error(e1(1));if(e&&t&&n&&r&&i&&l)a=(o,a,s,c)=>
1l(e(o,a,s,c),t(o,a,s,c),n(o,a,s,c),r(o,a,s,c),i(o,a,s,c),a,s,c);else if(e&&t&&n&&r&&i)a=(l,o,a,s)=>i(e(l,o,a,s),t(l,o,a,s),n(l,o,a,s),r(l,o,a,s),o,a,s);else if(e&&t&&n&&r)a=(i,l,o,a)=>r(e(i,l,o,a),t(i,l,o,a),n(i,l,o,a),l,o,a);else if(e&&t&&n)a=(r,i,l,o)=>n(e(r,i,l,o),t(r,i,l,o),i,l,o);else if(e&&t)a=(n,r,i,l)=>t(e(n,r,i,l),r,i,l);else if(e)a=e;else throw Error("Missing arguments");return a};class e4 extends I{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){c.useDebugValue(e),x(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;x(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;x(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){c.useDebugValue(e);let n=void 0!==t;x(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,r){return c.useDebugValue(e),A(this,this.selectors[e],t,n,r)}useContextCallback(e,t){c.useDebugValue(e);let n=j(t??P);this.context[e]=n}useStateSetter(e){let t=c.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}}let e5={open:e2(e=>e.open),transitionStatus:e2(e=>e.transitionStatus),domReferenceElement:e2(e=>e.domReferenceElement),referenceElement:e2(e=>e.positionReference??e.referenceElement),floatingElement:e2(e=>e.floatingElement),floatingId:e2(e=>e.floatingId)};class e3 extends e4{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...l}=e;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:function(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}(),nested:n,triggerElements:i},e5),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&eV(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
1{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}class e9{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function e6(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=e0(),l=null!=eq(),o=m(()=>new e3({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new e9,floatingId:i,syncOnly:!1,nested:l})).current;return x(()=>{let e={open:t,floatingId:i};void 0!==r.reference&&(e.referenceElement=r.reference,e.domReferenceElement=Y(r.reference)?r.reference:null),void 0!==r.floating&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=l,o}function e8(e,t,n){let r=new Map,i="item"===n,l={};for(let t in"floating"===n&&(l.tabIndex=-1,l[ef]=""),e)i&&e&&(t===ep||t===em)||(l[t]=e[t]);for(let o=0;o<t.length;o+=1){let a,s=t[o]?.[n];(a="function"==typeof s?e?s(e):null:s)&&e7(l,a,i,r)}return e7(l,e,i,r),l}function e7(e,t,n,r){for(let i in t){let l=t[i];n&&(i===ep||i===em)||(i.startsWith("on")?(r.has(i)||r.set(i,[]),"function"==typeof l&&(r.get(i)?.push(l),e[i]=(...e)=>r.get(i)?.map(t=>t(...e)).find(e=>void 0!==e))):e[i]=l)}}let te=["top","right","bottom","left"],tt=Math.min,tn=Math.max,tr=Math.round,ti=Math.floor,tl=e=>({x:e,y:e}),to={left:"right",right:"left",bottom:"top",top:"bottom"};function ta(e,t){return"function"==typeof e?e(t):e}function ts(e){return e.split("-")[0]}function tc(e){return e.split("-")[1]}function tu(e){return"x"===e?"y":"x"}function td(e){return"y"===e?"height":"width"}function tf(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function tp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let tm=["left","right"],th=["right","left"],tg=["top","bottom"],tv=["bottom","top"];function ty(e){let t=ts(e);return to[t]+e.slice(t.length)}function tx(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function tb(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function tw(e,t,n){return Math.floor(e/t)!==n}function tj(e,t){return t<0||t>=e.length}function tS(e,t){return tN(e.current,{disabledIndices:t})}function tC(e,t){return tN(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function tN(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let l=t;do l+=n?-i:i;while(l>=0&&l<=e.length-1&&tE(e,l,r))return l}function tE(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!tk(r)||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function tk(e,t=e?ei(e):null){var n;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(n=t).visibility&&"collapse"!==n.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}var eH=eH;let tR=0;function tM(e,t={}){let{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(tR);let l=()=>e?.focus({preventScroll:n});if(i)return l(),P;let o=requestAnimationFrame(l);return tR=o,()=>{tR===o&&(cancelAnimationFrame(o),tR=0)}}function tA(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function tI(e,t){return tA(t,e===ev||e===ey,e===eh||e===eg)}function tP(e,t,n){return tA(t,e===ey,n?e===eh:e===eg)||"Enter"===e||" "===e||""===e}let tT=c.createContext(null),tL=c.createContext(null);function tO(){let e=c.useContext(tT);if(null===e)throw Error(e1(60));return e}function tV(){let e=c.useContext(tL);if(null===e)throw Error(e1(61));return e}let t_=((r={}).disabled="data-disabled",r.valid="data-valid",r.invalid="data-invalid",r.touched="data-touched",r.dirty="data-dirty",r.filled="data-filled",r.focused="data-focused",r),tH={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},tD={disabled:!1,...tH},t$={valid:e=>null===e?null:e?{[t_.valid]:""}
1:{[t_.invalid]:""}},tF=c.createContext({invalid:void 0,name:void 0,validityData:{state:{badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},errors:[],error:"",value:"",initialValue:null},setValidityData:P,disabled:void 0,touched:tH.touched,setTouched:P,dirty:tH.dirty,setDirty:P,filled:tH.filled,setFilled:P,focused:tH.focused,setFocused:P,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:tD,markedDirtyRef:{current:!1},registerFieldControl:P,validation:{getValidationProps:(e=L)=>e,getInputValidationProps:(e=L)=>e,inputRef:{current:null},commit:async()=>{}}});function tW(e=!0){let t=c.useContext(tF);if(t.setValidityData===P&&!e)throw Error(e1(28));return t}function tB(e){return e0(e,"base-ui")}let tU=c.createContext({controlId:void 0,registerControlId:P,labelId:void 0,setLabelId:P,messageIds:[],setMessageIds:P,getDescriptionProps:e=>e});function tz(){return c.useContext(tU)}function tq(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:l}=tz(),o=tB(t),a=n?i:void 0,s=m(()=>Symbol("labelable-control")),u=c.useRef(!1),d=c.useRef(null!=t),f=j(()=>{u.current&&l!==P&&(u.current=!1,l(s.current,void 0))});return x(()=>{let e;if(l!==P){if(n){let n=r?.current;e=Y(n)&&null!=n.closest("label")?t??null:a??o}else if(null!=t)d.current=!0,e=t;else{if(!d.current)return void f();e=o}if(void 0===e)return void f();u.current=!0,l(s.current,e)}},[t,r,a,l,n,o,s,f]),c.useEffect(()=>f,[f]),i??o}function tY(e,t=!1,n=!1){let[r,i]=c.useState(e&&t?"idle":void 0),[l,o]=c.useState(e);return e&&!l&&(o(!0),i("starting")),e||!l||"ending"===r||n||i("ending"),e||l||"ending"!==r||i(void 0),x(()=>{if(!e&&l&&"ending"!==r&&n){let e=H.request(()=>{i("ending")});return()=>{H.cancel(e)}}},[e,l,r,n]),x(()=>{if(!e||t)return;let n=H.request(()=>{i(void 0)});return()=>{H.cancel(n)}},[t,e]),x(()=>{if(!e||!t)return;e&&l&&"idle"!==r&&i("starting");let n=H.request(()=>{i("idle")});return()=>{H.cancel(n)}},[t,e,l,r]),{mounted:l,setMounted:o,transitionStatus:r}}let tX=(e,t)=>Object.is(e,t);function tZ(e,t,n){return null==e||null==t?Object.is(e,t):n(e,t)}function tG(e,t,n){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&tZ(e,t,n)):-1}function tK(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function tJ(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function tQ(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return tK(e)}function t0(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?tK(e.value):tK(e)}function t1(e,t,n){if(n&&null!=e)return n(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return t[e]??tQ(e,n);if(Array.isArray(t)){let r=tJ(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=r.find(t=>t.value===e);return t&&null!=t.label?t.label:tQ(e,n)}if("value"in e){let t=r.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return tQ(e,n)}let t2={id:e2(e=>e.id),labelId:e2(e=>e.labelId),modal:e2(e=>e.modal),multiple:e2(e=>e.multiple),items:e2(e=>e.items),itemToStringLabel:e2(e=>e.itemToStringLabel),itemToStringValue:e2(e=>e.itemToStringValue),isItemEqualToValue:e2(e=>e.isItemEqualToValue),value:e2(e=>e.value),hasSelectedValue:e2(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return null!=t&&(n&&Array.isArray(t)?t.length>0:""!==t0(t,r))}),hasNullItemLabel:e2((e,t)=>
1!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(tJ(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}(e.items)),open:e2(e=>e.open),mounted:e2(e=>e.mounted),forceMount:e2(e=>e.forceMount),transitionStatus:e2(e=>e.transitionStatus),openMethod:e2(e=>e.openMethod),activeIndex:e2(e=>e.activeIndex),selectedIndex:e2(e=>e.selectedIndex),isActive:e2((e,t)=>e.activeIndex===t),isSelected:e2((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>tZ(n,e,r)):e.selectedIndex===t&&null!==e.selectedIndex||tZ(n,i,r)}),isSelectedByFocus:e2((e,t)=>e.selectedIndex===t),popupProps:e2(e=>e.popupProps),triggerProps:e2(e=>e.triggerProps),triggerElement:e2(e=>e.triggerElement),positionerElement:e2(e=>e.positionerElement),listElement:e2(e=>e.listElement),scrollUpArrowVisible:e2(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:e2(e=>e.scrollDownArrowVisible),hasScrollArrows:e2(e=>e.hasScrollArrows)};var eH=eH,t4=e.i(74080);function t5(e){return null==e?e:"current"in e?e.current:e}let t3=((i={}).startingStyle="data-starting-style",i.endingStyle="data-ending-style",i),t9={[t3.startingStyle]:""},t6={[t3.endingStyle]:""},t8={transitionStatus:e=>"starting"===e?t9:"ending"===e?t6:null};function t7(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,l=j(i),o=function(e,t=!1,n=!0){let r=D();return j((i,l=null)=>{r.cancel();let o=t5(e);if(null==o)return;let a=()=>{t4.flushSync(i)};if("function"!=typeof o.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function s(){Promise.all(o.getAnimations().map(e=>e.finished)).then(()=>{l?.aborted||a()}).catch(()=>{if(n){l?.aborted||a();return}let e=o.getAnimations();!l?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&s()})}if(t){let e=t3.startingStyle;if(!o.hasAttribute(e))return void r.request(s);let t=new MutationObserver(()=>{o.hasAttribute(e)||(t.disconnect(),s())});return t.observe(o,{attributes:!0,attributeFilter:[e]}),void l?.addEventListener("abort",()=>t.disconnect(),{once:!0})}r.request(s)})}(r,n,!1);c.useEffect(()=>{if(!t)return;let e=new AbortController;return o(l,e.signal),()=>{e.abort()}},[t,n,l,o])}let ne=c.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:P,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function nt(e,t){let n=c.useRef(e),r=j(t);x(()=>{n.current!==e&&r(n.current)},[e,r]),x(()=>{n.current=e},[e])}function nn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function nr(e,t){return Math.max(0,e-t)}function ni(e,t){if(t<=0)return 0;let n=nn(e,0,t),r=t-n,i=n<=1,l=r<=1;return i&&l?n<=r?0:t:i?0:l?t:n}function nl(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}let no={};function na(e,t,n,r,i){if(!n&&!r&&!i&&!e)return ns(t);let l=ns(e);return t&&(l=nc(l,t)),n&&(l=nc(l,n)),r&&(l=nc(l,r)),i&&(l=nc(l,i)),l}function ns(e){return nd(e)?{...nf(e,no)}:function(e){let t={...e};for(let e in t){let n=t[e];nu(e,n)&&(t[e]=np(n))}return t}(e)}function nc(e,t){return nd(t)?nf(t,e):function(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case"style":e[n]=nl(e.style,r);break;case"className":e[n]=nh(e.className,r);break;default:nu(n,r)?e[n]=function(e,t){return t?e?(...n)=>{let r=n[0];if(ng(r)){nm(r);let i=t(...n);return r.baseUIHandlerPrevented||e?.(...n),i}let i=t(...n);return e?.(...n),i}:np(t):e}(e[n],r):e[n]=r}}return e}(e,t)}function nu(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return 111===n&&110===r&&i>=65&&i<=90&&("function"==typeof t||void 0===t)}function nd(e){return"function"==typeof e}function nf(e,t){return nd(e)?e(t):e??no}function np(e){return e?(...t)=>{let n=t[0];return ng(n)&&nm(n),e(...t)}:e}function nm(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function nh(e,t){return t?e?t+" "+e:t:e}function ng(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}function nv(e){if(!c.isValidElement(e))return null;let t=e.props;return(M>=19?t?.ref:e.ref)??null}function ny(e,t,n={}){let r=t.render,i=function(e,t={}){var n,r,i;let{className:l,style:o,render:a}=e,{state:s=L,ref:c,props:u,stateAttributesMapping:d,enabled:f=!0}=t,p=f?"function"==typeof l?l(s):l:void 0,y=f?"function"==typeof o?o(s):o:void 0,x=f?function(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);null!=e&&Object.assign(n,e);continue}!0===i?n[`data-${r.toLowerCase()}`]="":i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}(s,d):L,b=f&&u?function(e){if(Array.isArray(e)){if(0===e.length)return no;if(1===e.length)return ns(e[0]);let t=ns(e[0]);for(let n=1;n<e.length;n+=1)t=nc(t,e[n]);return t}return na(void 0,e)}(u):void 0,w=f?nl(x,b)??{}:L;if("u">typeof document)if(f)if(Array.isArray(c)){let e;n=[w.ref,nv(a),...c],r=e=m(g).current,i=n,(r.refs.length!==i.length||r.refs.some((e,t)=>e!==i[t]))&&v(e,n),w.ref=e.callback}else w.ref=h(w.ref,nv(a),c);else h(null,null);return f?(void 0!==p&&(w.className=nh(w.className,p)),void 0!==y&&(w.style=nl(w.style,y)),w):L}(t,n);return!1===n.enabled?null:function(e,t,n,r){if(t){if("function"==typeof t)return t(n,r);let e=na(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===nx&&(i=c.Children.toArray(t)[0]),c.cloneElement(i,e)}if(e&&"string"==typeof e){var i,l;return i=e,l=n,"button"===i?(0,c.createElement)("button",{type:"button",...l,key:l.key}):"img"===i?(0,c.createElement)("img",{alt:"",...l,key:l.key}):c.createElement(i,l)}throw Error(e1(8))}(e,r,i,n.state??L)}let nx=Symbol.for("react.lazy"),nb=c.forwardRef(function(e,t){let{render:n,className:r,style:i,...l}=e;delete l.id;let o=tW(),{store:a}=tO(),s=A(a,t2.triggerElement,void 0,void 0,void 0),c=A(a,t2.id,void 0,void 0,void 0),u=function(e={}){let t,{id:n,fallbackControlId:r,native:i=!1,setLabelId:l,focusControl:o}=e,{controlId:a,setLabelId:s}=tz(),c=j(e=>{s(e),l?.(e)}),u=(x(()=>(c(t),()=>{c(void 0)}),[t=tB(n),c]),t),d=a??r;function f(e){let t=ed(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),i||function(e){if(o)return o(e,d);if(!d)return;let t=eF(e.currentTarget).getElementById(d);
1X(t)&&t.focus({focusVisible:!0})}(e))}return i?{id:u,htmlFor:d??void 0,onMouseDown:f}:{id:u,onClick:f,onPointerDown(e){e.preventDefault()}}}({id:null==c?void 0:`${c}-label`,fallbackControlId:s?.id??c,setLabelId(e){a.set("labelId",e)}});return ny("div",e,{ref:t,state:o.state,props:[u,l],stateAttributesMapping:t$})}),nw=((l={}).open="data-open",l.closed="data-closed",l[l.startingStyle=t3.startingStyle]="startingStyle",l[l.endingStyle=t3.endingStyle]="endingStyle",l.anchorHidden="data-anchor-hidden",l.side="data-side",l.align="data-align",l),nj=((o={}).popupOpen="data-popup-open",o.pressed="data-pressed",o),nS={[nj.popupOpen]:""},nC={[nj.popupOpen]:"",[nj.pressed]:""},nN={[nw.open]:""},nE={[nw.closed]:""},nk={[nw.anchorHidden]:""},nR={open:e=>e?nS:null},nM={open:e=>e?nN:nE,anchorHidden:e=>e?nk:null},nA=c.createContext(void 0);function nI(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:l}=e,o=c.useRef(null),a=function(e=!1){let t=c.useContext(nA);if(void 0===t&&!e)throw Error(e1(16));return t}(!0),s=l??void 0!==a,{props:u}=function(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:l}=e,o=r&&!1!==t,a=r&&!1===t;return{props:c.useMemo(()=>{let e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=i,!l&&n&&(e.tabIndex=t?i:-1)),(l&&(t||o)||!l&&n)&&(e["aria-disabled"]=n),l&&(!t||a)&&(e.disabled=n),e},[r,n,t,o,a,l,i])}}({focusableWhenDisabled:n,disabled:t,composite:s,tabIndex:r,isNativeButton:i}),d=c.useCallback(()=>{let e=o.current;nP(e)&&s&&t&&void 0===u.disabled&&e.disabled&&(e.disabled=!1)},[t,u.disabled,s]);return x(d,[d]),{getButtonProps:c.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:l,onKeyDown:o,onPointerDown:a,...c}=e;return na({type:i?"button":void 0,onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){var r;if(t||(nm(e),o?.(e),e.baseUIHandlerPrevented))return;let l=e.target===e.currentTarget,a=e.currentTarget,c=nP(a),u=!i&&(r=a,!!(r?.tagName==="A"&&r?.href)),d=l&&(i?c:!u),f="Enter"===e.key,p=" "===e.key,m=a.getAttribute("role"),h=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(l&&s&&p){if(e.defaultPrevented&&h)return;e.preventDefault(),u||i&&c?(a.click(),e.preventBaseUIHandler()):d&&(n?.(e),e.preventBaseUIHandler());return}d&&(!i&&(p||f)&&e.preventDefault(),!i&&f&&n?.(e))},onKeyUp(e){t||((nm(e),l?.(e),e.target===e.currentTarget&&i&&s&&nP(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||i||s||" "!==e.key||n?.(e)))},onPointerDown(e){t?e.preventDefault():a?.(e)}},i?void 0:{role:"button"},u,c)},[t,u,s,i]),buttonRef:j(e=>{o.current=e,d()})}}function nP(e){return X(e)&&"BUTTON"===e.tagName}var eH=eH;let nT={open:e=>e?nC:null,...t$,value:()=>null},nL=c.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:l=!1,nativeButton:o=!0,style:a,...s}=e,{setTouched:u,setFocused:d,validationMode:f,state:p,disabled:m}=tW(),{labelId:g}=tz(),{store:v,setOpen:y,selectionRef:x,validation:b,readOnly:w,required:S,alignItemWithTriggerActiveRef:C,disabled:E,keyboardActiveRef:k}=tO(),R=m||E||l,M=A(v,t2.open,void 0,void 0,void 0),I=A(v,t2.value,void 0,void 0,void 0),P=A(v,t2.triggerProps,void 0,void 0,void 0),T=A(v,t2.positionerElement,void 0,void 0,void 0),L=A(v,t2.listElement,void 0,void 0,void 0),O=A(v,t2.id,void 0,void 0,void 0),V=A(v,t2.labelId,void 0,void 0,void 0),_=A(v,t2.hasSelectedValue,void 0,void 0,void 0),H=!_&&M,D=A(v,t2.hasNullItemLabel,H,void 0,void 0),$=i??O;tq({id:$});let W=N(T),B=c.useRef(null),{getButtonProps:z,buttonRef:q}=nI({disabled:R,native:o}),Y=h(t,B,q,j(e=>{v.set("triggerElement",e)})),X=F(),Z=F(),G=F(),K=F();c.useEffect(()=>{if(M)return _||D?K.start(200,()=>{x.current.allowUnselectedMouseUp=!0,G.start(200,()=>{x.current.allowSelectedMouseUp=!0})}):G.start(400,()=>{x.current.allowUnselectedMouseUp=!0,x.current.allowSelectedMouseUp=!0}),()=>{G.clear(),K.clear()};x.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},Z.clear()},[M,_,D,x,Z,G,K]);let J=c.useMemo(()=>L?.id??ej(T)?.id,[L,T]),Q=na(P,{id:$,role:"combobox","aria-expanded":M?"true":"false","aria-haspopup":"listbox","aria-controls":M?J:void 0,"aria-labelledby":g??V,"aria-readonly":w||void 0,"aria-required":S||void 0,tabIndex:R?-1:0,ref:Y,onFocus(e){d(!0),M&&C.current&&y(!1,e_(eH.none,e.nativeEvent)),X.start(0,()=>{v.set("forceMount",!0)})},onBlur(e){eu(T,e.relatedTarget)||(u(!0),d(!1),"onBlur"===f&&b.commit(I))},onPointerMove(){k.current=!1},onKeyDown(){k.current=!0},onMouseDown(e){if(M)return;let t=eF(e.currentTarget);function n(e){if(!B.current)return;let t=e.target;if(eu(B.current,t)||eu(W.current,t)||t===B.current)return;let n=function(e){let t=e.getBoundingClientRect(),n=U(e),r=n.getComputedStyle(e,"::before"),i=n.getComputedStyle(e,"::after");if("none"===r.content&&"none"===i.content)return t;let l=parseFloat(r.width)||0,o=parseFloat(r.height)||0,a=parseFloat(i.width)||0,s=parseFloat(i.height)||0,c=Math.max(t.width,l,a),u=Math.max(t.height,o,s),d=c-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}(B.current);e.clientX>=n.left-2&&e.clientX<=n.right+2&&e.clientY>
1=n.top-2&&e.clientY<=n.bottom+2||y(!1,e_(eH.cancelOpen,e))}Z.start(0,()=>{t.addEventListener("mouseup",n,{once:!0})})}},b.getValidationProps,s,z);return Q.role="combobox",ny("button",e,{ref:[t,B],state:{...p,open:M,disabled:R,value:I,readOnly:w,placeholder:!_},stateAttributesMapping:nT,props:Q})}),nO={value:()=>null},nV=c.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:l,style:o,...a}=e,{store:u,valueRef:d}=tO(),f=A(u,t2.value,void 0,void 0,void 0),p=A(u,t2.items,void 0,void 0,void 0),m=A(u,t2.itemToStringLabel,void 0,void 0,void 0),h=A(u,t2.hasSelectedValue,void 0,void 0,void 0),g=A(u,t2.hasNullItemLabel,!h&&null!=l&&null==i,void 0,void 0),v=null;return v="function"==typeof i?i(f):null!=i?i:h||null==l||g?Array.isArray(f)?f.reduce((e,t,n)=>(n>0&&e.push(", "),e.push((0,s.jsx)(c.Fragment,{children:t1(t,p,m)},n)),e),[]):t1(f,p,m):l,ny("span",e,{state:{value:f,placeholder:!h},ref:[t,d],props:[{children:v},a],stateAttributesMapping:nO})}),n_=c.forwardRef(function(e,t){let{className:n,render:r,style:i,...l}=e,{store:o}=tO();return ny("span",e,{state:{open:A(o,t2.open,void 0,void 0,void 0)},ref:t,props:[{"aria-hidden":!0,children:"▼"},l],stateAttributesMapping:nR})}),nH=c.forwardRef(function(e,t){let[n,r]=c.useState();return x(()=>{eM&&r("button")},[]),(0,s.jsx)("span",{...e,ref:t,style:d,"aria-hidden":!n||void 0,tabIndex:0,role:n,"data-base-ui-focus-guard":""})});function nD(e){for(let t of Array.from(e.children))if("summary"===B(t))return t;return null}function n$(e){let t=e?B(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===B(e.parentElement)&&nD(e.parentElement)===e)&&("details"!==t||null==nD(e))&&("input"!==t||"hidden"!==e.type)}function nF(e){if(!n$(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Z(n)?n.host:null}(t)){let n=t!==e,r="slot"===B(t);if(t.hasAttribute("inert")||n&&"details"===B(t)&&!t.open&&!function(e,t){let n=nD(t);return!!n&&(e===n||eu(n,e))}(e,t)||t.hasAttribute("hidden")||!r&&!function(e,t){let n=ei(e);return t?"none"!==n.display:tk(e,n)}(t,n))return!1}return!0}function nW(e){let t=e.tabIndex;if(t<0){let t=B(e);if("details"===t||"audio"===t||"video"===t||X(e)&&e.isContentEditable)return 0}return t}function nB(e){return"input"!==B(e)?null:"radio"===e.type&&""!==e.name?e:null}function nU(e){if(X(e)&&"slot"===B(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return X(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function nz(e){return nF(e)&&nW(e)>=0}function nq(e){let t=[];return!function e(t,n){nU(t).forEach(t=>{n$(t)&&n.push(t),e(t,n)})}(e,t),t.filter(nF)}function nY(e){let t=nq(e);return t.filter(e=>nW(e)>=0&&function(e,t){let n=nB(e);if(!n)return!0;let r=t.find(e=>{let t=nB(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=nB(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function nX(e,t){let n=nY(e),r=n.length;if(0===r)return;let i=ec(eF(e)),l=n.indexOf(i);return n[-1===l?1===t?0:r-1:l+t]}function nZ(e){return nX(eF(e).body,1)||e}function nG(e){return nX(eF(e).body,-1)||e}function nK(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!eu(n,r)}function nJ(e){let t=[];!function e(t,n,r){nU(t).forEach(t=>{X(t)&&t.matches(n)&&r.push(t),e(t,n,r)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var eH=eH;let nQ={style:{transition:"none"}},n0={fallbackAxisSide:"none"},n1={clipPath:"inset(50%)",position:"fixed",top:0,left:0},n2=c.createContext(null),n4=eX("portal"),n5=c.forwardRef(function(e,t){let{children:n,container:r,className:i,render:l,renderGuards:o,style:a,...u}=e,{portalNode:d,portalSubtree:f}=function(e={}){let{ref:t,container:n,componentProps:r=L,elementProps:i}=e,l=e0(),o=c.useContext(n2),a=o?.portalNode,[s,u]=c.useState(null),[d,f]=c.useState(null),p=j(e=>{null!==e&&f(e)}),m=c.useRef(null);x(()=>
1{if(null===n){m.current&&(m.current=null,f(null),u(null));return}if(null==l)return;let e=(n&&(q(n)?n:n.current))??a??document.body;if(null==e){m.current&&(m.current=null,f(null),u(null));return}m.current!==e&&(m.current=e,f(null),u(e))},[n,a,l]);let h=ny("div",r,{ref:[t,p],props:[{id:l,[n4]:""},i]});return{portalNode:d,portalSubtree:s&&h?t4.createPortal(h,s):null}}({container:r,ref:t,componentProps:e,elementProps:u}),p=c.useRef(null),m=c.useRef(null),h=c.useRef(null),g=c.useRef(null),[v,y]=c.useState(null),b=c.useRef(!1),w=v?.modal,S=v?.open,C="boolean"==typeof o?o:!!v&&!v.modal&&v.open&&!!d;c.useEffect(()=>{if(d&&!w)return e$(eD(d,"focusin",e,!0),eD(d,"focusout",e,!0));function e(e){d&&e.relatedTarget&&nK(e)&&("focusin"===e.type?b.current&&(nJ(d),b.current=!1):(nY(d).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),b.current=!0))}},[d,w]),c.useEffect(()=>{d&&!1===S&&(nJ(d),b.current=!1)},[S,d]);let N=c.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:g,portalNode:d,setFocusManagerState:y}),[d]);return(0,s.jsxs)(c.Fragment,{children:[f,(0,s.jsxs)(n2.Provider,{value:N,children:[C&&d&&(0,s.jsx)(nH,{"data-type":"outside",ref:p,onFocus:e=>{if(nK(e,d))h.current?.focus();else{let e=nG(v?v.domReference:null);e?.focus()}}}),C&&d&&(0,s.jsx)("span",{"aria-owns":d.id,style:n1}),d&&t4.createPortal(n,d),C&&d&&(0,s.jsx)(nH,{"data-type":"outside",ref:m,onFocus:e=>{if(nK(e,d))g.current?.focus();else{let t=nZ(v?v.domReference:null);t?.focus(),v?.closeOnFocusOut&&v?.onOpenChange(!1,e_(eH.focusOut,e.nativeEvent))}}})]})]})}),n3=c.createContext(void 0),n9=c.forwardRef(function(e,t){let{store:n}=tO(),r=A(n,t2.mounted,void 0,void 0,void 0),i=A(n,t2.forceMount,void 0,void 0,void 0);return r||i?(0,s.jsx)(n3.Provider,{value:!0,children:(0,s.jsx)(n5,{ref:t,...e})}):null}),n6={...nM,...t8},n8=c.forwardRef(function(e,t){let{className:n,render:r,style:i,...l}=e,{store:o}=tO(),a=A(o,t2.open,void 0,void 0,void 0),s=A(o,t2.mounted,void 0,void 0,void 0);return ny("div",e,{state:{open:a,transitionStatus:A(o,t2.transitionStatus,void 0,void 0,void 0)},ref:t,props:[{role:"presentation",hidden:!s,style:{userSelect:"none",WebkitUserSelect:"none"}},l],stateAttributesMapping:n6})}),n7=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function re(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,l=j(i),o=c.useRef(0),a=m(rn).current,u=m(rt).current,[d,f]=c.useState(0),p=c.useRef(d),h=j((e,t)=>{u.set(e,t??null),p.current+=1,f(p.current)}),g=j(e=>{u.delete(e),p.current+=1,f(p.current)}),v=c.useMemo(()=>{let e=new Map;return Array.from(u.keys()).filter(e=>e.isConnected).sort(rr).forEach((t,n)=>{let r=u.get(t)??{};e.set(t,{...r,index:n})}),e},[u,d]);x(()=>{if("function"!=typeof MutationObserver||0===v.size)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),0===t.size&&(p.current+=1,f(p.current))});return v.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[v]),x(()=>{p.current===d&&(n.current.length!==v.size&&(n.current.length=v.size),r&&r.current.length!==v.size&&(r.current.length=v.size),o.current=v.size),l(v)},[l,v,n,r,d]),x(()=>()=>{n.current=[]},[n]),x(()=>()=>{r&&(r.current=[])},[r]);let y=j(e=>(a.add(e),()=>{a.delete(e)}));x(()=>{a.forEach(e=>e(v))},[a,v]);let b=c.useMemo(()=>({register:h,unregister:g,subscribeMapChange:y,elementsRef:n,labelsRef:r,nextIndexRef:o}),[h,g,y,n,r,o]);return(0,s.jsx)(n7.Provider,{value:b,children:t})}function rt(){return new Map}function rn(){return new Set}function rr(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function ri(e,t,n){let r,{reference:i,floating:l}=e,o=tf(t),a=tu(tf(t)),s=td(a),c=ts(t),u="y"===o,d=i.x+i.width/2-l.width/2,f=i.y+i.height/2-l.height/2,p=i[s]/2-l[s]/2;switch(c){case"top":r={x:d,y:i.y-l.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-l.width,y:f};break;default:r={x:i.x,y:i.y}}switch(tc(t)){case"start":r[a]-=p*(n&&u?-1:1);break;case"end":r[a]+=p*(n&&u?-1:1)}return r}async function rl(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:l,rects:o,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ta(t,e),m=tx(p),h=a[f?"floating"===d?"reference":"floating":d],g=tb(await l.getClippingRect
1({element:null==(n=await (null==l.isElement?void 0:l.isElement(h)))||n?h:h.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===d?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),x=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},b=tb(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-b.top+m.top)/x.y,bottom:(b.bottom-g.bottom+m.bottom)/x.y,left:(g.left-b.left+m.left)/x.x,right:(b.right-g.right+m.right)/x.x}}let ro=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:rl},s=await (null==o.isRTL?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ri(c,r,s),f=r,p=0,m={};for(let n=0;n<l.length;n++){let h=l[n];if(!h)continue;let{name:g,fn:v}=h,{x:y,y:x,data:b,reset:w}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=x?x:d,m[g]={...m[g],...b},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:d}=ri(c,f,s)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}};function ra(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rs(e){return te.some(t=>e[t]>=0)}let rc=new Set(["left","top"]);async function ru(e,t){let{placement:n,platform:r,elements:i}=e,l=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=ts(n),a=tc(n),s="y"===tf(n),c=rc.has(o)?-1:1,u=l&&s?-1:1,d=ta(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}function rd(e){let t=ei(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=X(e),l=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=tr(n)!==l||tr(r)!==o;return a&&(n=l,r=o),{width:n,height:r,$:a}}function rf(e){return Y(e)?e:e.contextElement}function rp(e){let t=rf(e);if(!X(t))return tl(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=rd(t),o=(l?tr(n.width):n.width)/r,a=(l?tr(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}let rm=tl(0);function rh(e){let t=U(e);return en()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rm}function rg(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),o=rf(e),a=tl(1);t&&(r?Y(r)&&(a=rp(r)):a=rp(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===U(o))&&i)?rh(o):tl(0),c=(l.left+s.x)/a.x,u=(l.top+s.y)/a.y,d=l.width/a.x,f=l.height/a.y;if(o){let e=U(o),t=r&&Y(r)?U(r):r,n=e,i=es(n);for(;i&&r&&t!==n;){let e=rp(i),t=i.getBoundingClientRect(),r=ei(i),l=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=l,u+=o,i=es(n=U(i))}}return tb({width:d,height:f,x:c,y:u})}function rv(e,t){let n=el(e).scrollLeft;return t?t.left+n:rg(z(e)).left+n}function ry(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-rv(e,n),y:n.top+t.scrollTop}}function rx(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=U(e),r=z(e),i=n.visualViewport,l=r.clientWidth,o=r.clientHeight,a=0,s=0;if(i){l=i.width,o=i.height;let e=en();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let c=rv(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(l-=o)}else c<=25&&(l+=c);return{width:l,height:o,x:a,y:s}}
1(e,n);else if("document"===t){let t,n,l,o,a,s,c;r=z(e),t=z(r),n=el(r),l=r.ownerDocument.body,o=tn(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),a=tn(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),s=-n.scrollLeft+rv(r),c=-n.scrollTop,"rtl"===ei(l).direction&&(s+=tn(t.clientWidth,l.clientWidth)-o),i={width:o,height:a,x:s,y:c}}else if(Y(t)){let e,r,l,o,a,s;r=(e=rg(t,!0,"fixed"===n)).top+t.clientTop,l=e.left+t.clientLeft,o=X(t)?rp(t):tl(1),a=t.clientWidth*o.x,s=t.clientHeight*o.y,i={width:a,height:s,x:l*o.x,y:r*o.y}}else{let n=rh(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return tb(i)}function rb(e){return"static"===ei(e).position}function rw(e,t){if(!X(e)||"fixed"===ei(e).position)return null;if(t)return t(e);let n=e.offsetParent;return z(e)===n&&(n=n.ownerDocument.body),n}function rj(e,t){var n;let r=U(e);if(K(e))return r;if(!X(e)){let t=eo(e);for(;t&&!er(t);){if(Y(t)&&!rb(t))return t;t=eo(t)}return r}let i=rw(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(B(n)))&&rb(i);)i=rw(i,t);return i&&er(i)&&rb(i)&&!et(i)?r:i||function(e){let t=eo(e);for(;X(t)&&!er(t);){if(et(t))return t;if(K(t))break;t=eo(t)}return null}(e)||r}let rS=async function(e){let t=this.getOffsetParent||rj,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=X(t),i=z(t),l="fixed"===n,o=rg(e,!0,l,t),a={scrollLeft:0,scrollTop:0},s=tl(0);if(r||!r&&!l)if(("body"!==B(t)||G(i))&&(a=el(t)),r){let e=rg(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=rv(i));l&&!r&&i&&(s.x=rv(i));let c=!i||r||l?tl(0):ry(i,a);return{x:o.left+a.scrollLeft-s.x-c.x,y:o.top+a.scrollTop-s.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},rC={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,l="fixed"===i,o=z(r),a=!!t&&K(t.floating);if(r===o||a&&l)return n;let s={scrollLeft:0,scrollTop:0},c=tl(1),u=tl(0),d=X(r);if((d||!d&&!l)&&(("body"!==B(r)||G(o))&&(s=el(r)),d)){let e=rg(r);c=rp(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!o||d||l?tl(0):ry(o,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:z,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,l=[..."clippingAncestors"===n?K(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ea(e,[],!1).filter(e=>Y(e)&&"body"!==B(e)),i=null,l="fixed"===ei(e).position,o=l?eo(e):e;for(;Y(o)&&!er(o);){let t=ei(o),n=et(o);n||"fixed"!==t.position||(i=null),(l?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||G(o)&&!n&&function e(t,n){let r=eo(t);return!(r===n||!Y(r)||er(r))&&("fixed"===ei(r).position||e(r,n))}(e,o)))?i=t:r=r.filter(e=>e!==o),o=eo(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=rx(t,l[0],i),a=o.top,s=o.right,c=o.bottom,u=o.left;for(let e=1;e<l.length;e++){let n=rx(t,l[e],i);a=tn(n.top,a),s=tt(n.right,s),c=tt(n.bottom,c),u=tn(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:rj,getElementRects:rS,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=rd(e);return{width:t,height:n}},getScale:rp,isElement:Y,isRTL:function(e){return"rtl"===ei(e).direction}};function rN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rE(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=rf(e),d=l||o?[...u?ea(u):[],...t?ea(t):[]]:[];d.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let f=u&&s?function(e,t){let n,r=null,i=z(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function o(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),l();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;let m={rootMargin:-ti(d)+"px "+-ti(i.clientWidth-(u+f))+"px "+-ti(i.clientHeight-(d+p))+"px "+-ti(u)+"px",threshold:tn(0,tt(1,s))||1},h=!0;function g(t){let r=t[0].intersectionRatio;
1if(r!==s){if(!h)return o();r?o(!1,r):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==r||rN(c,e.getBoundingClientRect())||o(),h=!1}try{r=new IntersectionObserver(g,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),l}(u,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),u&&!c&&m.observe(u),t&&m.observe(t));let h=c?rg(e):null;return c&&function t(){let r=rg(e);h&&!rN(h,r)&&n(),h=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{l&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(i)}}var rk="u">typeof document?c.useLayoutEffect:function(){};function rR(e,t){let n,r,i;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(!rR(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!rR(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function rM(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rA(e,t){let n=rM(e);return Math.round(t*n)/n}function rI(e){let t=c.useRef(e);return rk(()=>{t.current=e}),t}let rP=c.createContext(void 0);function rT(){let e=c.useContext(rP);return e?.direction??"ltr"}let rL={name:"hide",async fn(e){var t;let n,{width:r,height:i,x:l,y:o}=e.rects.reference,a=await (t=void 0,{name:(n={name:"hide",options:t={},async fn(e){let{rects:n,platform:r}=e,{strategy:i="referenceHidden",...l}=ta(t,e);switch(i){case"referenceHidden":{let t=ra(await r.detectOverflow(e,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:rs(t)}}}case"escaped":{let t=ra(await r.detectOverflow(e,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:rs(t)}}}default:return{}}}}).name,fn:n.fn,options:[void 0,void 0]}).fn(e);return{data:{referenceHidden:a.data?.referenceHidden||0===r&&0===i&&0===l&&0===o}}}},rO={sideX:"left",sideY:"top"};function rV(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function r_(e,t,n){let{rects:r,placement:i}=e;return{side:rV(t,ts(i),n),align:tc(i)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function rH(e){return null!=e&&"current"in e}let rD=c.createContext(void 0);function r$(){let e=c.useContext(rD);if(!e)throw Error(e1(59));return e}let rF=c.forwardRef(function(e,t){let n,{cutout:r,...i}=e;if(r){let e=r.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,s.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})});function rW(e,t){e&&Object.assign(e.style,t)}let rB={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var eH=eH;function rU(e){return"starting"===e?nQ:L}let rz={},rq={},rY="";class rX{lockCount=0;restore=null;timeoutLock=$.create();timeoutUnlock=$.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let t,n,r,i,l;if(0===this.lockCount||null!==this.restore)return;let o=eF(e).documentElement,a=U(o).getComputedStyle(o).overflowY;if("hidden"===a||"clip"===a){this.restore=P;return}let s=eR||!function(e){if("u"<typeof document)return!1;let t=eF(e);return U(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=s?(n=(t=eF(e)).documentElement,r=t.body,l={overflowY:(i=G(n)?n:r).style.overflowY,overflowX:i.style.overflowX},Object.assign(i.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(i.style,l)}):function(e){let t=eF(e),n=t.documentElement,r=t.body,i=U(n),l=0,o=0,a=!1,s=H.create();
1if(ek&&(i.visualViewport?.scale??1)!==1)return()=>{};function c(){let t=i.getComputedStyle(n),s=i.getComputedStyle(r),c=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";l=n.scrollTop,o=n.scrollLeft,rz={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},rY=n.style.scrollBehavior,rq={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f="scroll"===t.overflowY||"scroll"===s.overflowY,p="scroll"===t.overflowX||"scroll"===s.overflowX,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(s.marginTop)+parseFloat(s.marginBottom),v=parseFloat(s.marginLeft)+parseFloat(s.marginRight),y=G(n)?n:r;if(a=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let t=eF(e),n=t.documentElement,r=t.body,i=G(n)?n:r,l=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",i.style.overflowY="scroll";let a=i.offsetWidth;i.style.overflowY="hidden";let s=i.offsetWidth;return i.style.overflowY=l,n.style.scrollbarGutter=o,a===s}(e)){n.style.scrollbarGutter=c,y.style.overflowY="hidden",y.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:c,overflowY:"hidden",overflowX:"hidden"}),(u||f)&&(n.style.overflowY="scroll"),(d||p)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:g||h?`calc(100dvh - ${g+h}px)`:"100dvh",width:v||m?`calc(100vw - ${v+m}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=l,r.scrollLeft=o,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function u(){Object.assign(n.style,rz),Object.assign(r.style,rq),a||(n.scrollTop=l,n.scrollLeft=o,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=rY)}c();let d=eD(i,"resize",function(){u(),s.request(c)});return()=>{s.cancel(),u(),"function"==typeof i.removeEventListener&&d()}}(e)}}let rZ=new rX,rG={position:"fixed"},rK=c.forwardRef(function(e,t){var n;let{anchor:r,positionMethod:i="absolute",className:l,render:o,side:a="bottom",align:u="center",sideOffset:d=0,alignOffset:f=0,collisionBoundary:p="clipping-ancestors",collisionPadding:m,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:v,alignItemWithTrigger:y=!0,collisionAvoidance:b=n0,style:w,...S}=e,{store:C,listRef:E,labelsRef:k,alignItemWithTriggerActiveRef:R,selectedItemTextRef:I,valuesRef:P,initialValueRef:T,popupRef:L,setValue:O}=tO(),V=tV(),_=A(C,t2.open,void 0,void 0,void 0),H=A(C,t2.mounted,void 0,void 0,void 0),D=A(C,t2.modal,void 0,void 0,void 0),$=A(C,t2.value,void 0,void 0,void 0),F=A(C,t2.openMethod,void 0,void 0,void 0),W=A(C,t2.positionerElement,void 0,void 0,void 0),B=A(C,t2.triggerElement,void 0,void 0,void 0),z=A(C,t2.isItemEqualToValue,void 0,void 0,void 0),q=A(C,t2.transitionStatus,void 0,void 0,void 0),X=c.useRef(null),Z=c.useRef(null),[G,K]=c.useState(y),J=H&&G&&"touch"!==F;H||G===y||K(y),x(()=>{!H&&(t2.scrollUpArrowVisible(C.state)&&C.set("scrollUpArrowVisible",!1),t2.scrollDownArrowVisible(C.state)&&C.set("scrollDownArrowVisible",!1))},[C,H]),c.useImperativeHandle(R,()=>J),function(e,t,n,r){let[i,l]=c.useState(!1);x(()=>
1{if(!e||!t||null==n)return void l(!1);let r=eF(n).documentElement.clientWidth,i=n.offsetWidth;l(r>0&&i>0&&i>=r-20)},[e,t,n]),function(e=!0,t=null){x(()=>{if(e)return rZ.acquire(t)},[e,t])}(e&&(!t||i),r)}((J||D)&&_,"touch"===F,W,B);let Q=function(e){var t,n,r,i,l,o,a,s,u,d,f,p;let m,h,g,v,{anchor:y,positionMethod:b="absolute",side:w="bottom",sideOffset:S=0,align:C="center",alignOffset:E=0,collisionBoundary:k,collisionPadding:R=5,sticky:M=!1,arrowPadding:A=5,disableAnchorTracking:I=!1,keepMounted:P=!1,floatingRootContext:T,mounted:L,collisionAvoidance:O,shiftCrossAxis:V=!1,nodeId:_,adaptiveOrigin:H,lazyFlip:D=!1,externalTree:$}=e,[F,W]=c.useState(null);L||null===F||W(null);let B=O.side||"flip",z=O.align||"flip",q=O.fallbackAxisSide||"end",X="function"==typeof y?y:void 0,Z=j(X),G=X?Z:y,K=N(y),J=N(L),Q="rtl"===rT(),ee=F||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":Q?"left":"right","inline-start":Q?"right":"left"})[w],et="center"===C?ee:`${ee}-${C}`,en=R,er=+("bottom"===w),ei=+("top"===w),el=+("right"===w),eo=+("left"===w);"number"==typeof en?en={top:en+er,right:en+eo,bottom:en+ei,left:en+el}:en&&(en={top:(en.top||0)+er,right:(en.right||0)+eo,bottom:(en.bottom||0)+ei,left:(en.left||0)+el});let ea={boundary:"clipping-ancestors"===k?"clippingAncestors":k,padding:en},es=c.useRef(null),ec=N(S),eu=N(E),ed=[(t=e=>{let t=r_(e,w,Q),n="function"==typeof ec.current?ec.current(t):ec.current,r="function"==typeof eu.current?eu.current(t):eu.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},n=["function"!=typeof S?S:0,"function"!=typeof E?E:0,Q,w],void 0===(r=t)&&(r=0),{name:(m={name:"offset",options:r,async fn(e){var t,n;let{x:i,y:l,placement:o,middlewareData:a}=e,s=await ru(e,r);return o===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:i+s.x,y:l+s.y,data:{...s,placement:o}}}}).name,fn:m.fn,options:[t,n]})],ef="none"===z&&"shift"!==B,ep=!ef&&(M||V||"shift"===B),em="none"===B?null:{name:(h={name:"flip",options:l=i={...ea,padding:{top:en.top+1,right:en.right+1,bottom:en.bottom+1,left:en.left+1},mainAxis:!V&&"flip"===B,crossAxis:"flip"===z&&"alignment",fallbackAxisSideDirection:q},async fn(e){var t,n,r,i,o,a,s,c;let u,d,f,{placement:p,middlewareData:m,rects:h,initialPlacement:g,platform:v,elements:y}=e,{mainAxis:x=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:C=!0,...N}=ta(l,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let E=ts(p),k=tf(g),R=ts(g)===g,M=await (null==v.isRTL?void 0:v.isRTL(y.floating)),A=w||(R||!C?[ty(g)]:(u=ty(g),[tp(g),u,tp(u)])),I="none"!==S;!w&&I&&A.push(...(d=tc(g),f=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?th:tm;return t?tm:th;case"left":case"right":return t?tg:tv;default:return[]}}(ts(g),"start"===S,M),d&&(f=f.map(e=>e+"-"+d),C&&(f=f.concat(f.map(tp)))),f));let P=[g,...A],T=await v.detectOverflow(e,N),L=[],O=(null==(n=m.flip)?void 0:n.overflows)||[];if(x&&L.push(T[E]),b){let e,t,n,r,i=(a=p,s=h,void 0===(c=M)&&(c=!1),e=tc(a),n=td(t=tu(tf(a))),r="x"===t?e===(c?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[n]>s.floating[n]&&(r=ty(r)),[r,ty(r)]);L.push(T[i[0]],T[i[1]])}if(O=[...O,{placement:p,overflows:L}],!L.every(e=>e<=0)){let e=((null==(r=m.flip)?void 0:r.index)||0)+1,t=P[e];if(t&&("alignment"!==b||k===tf(t)||O.every(e=>tf(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(i=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(j){case"bestFit":{let e=null==(o=O.filter(e=>{if(I){let t=tf(e.placement);return t===k||"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:o[0];e&&(n=e);break}case"initialPlacement":n=g}if(p!==n)return{reset:{placement:n}}}return{}}}).name,fn:h.fn,options:[i,void 0]},eh=ef?null:(o=e=>{var t,n;let r=eF(e.elements.floating).documentElement;return{...ea,rootBoundary:V?{x:0,y:0,width:r.clientWidth,height:r.clientHeight}:void 0,mainAxis:"none"!==z,crossAxis:ep,limiter:M||V?void 0:{fn:(void 0===(n=t=e=>{if(!es.current)return{};let{width:t,height:n}=es.current.getBoundingClientRect(),r=tf(ts(e.placement)),i="y"===r?en.left+en.right:en.top+en.bottom;return{offset:("y"===r?t:n)/2+i/2}})&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:i,rects:l,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=ta(n,e),u={x:t,y:r},d=tf(i),f=tu(d),p=u[f],m=u[d],h=ta(a,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===f?"height":"width",t=l.reference[f]-l.floating[e]+g.mainAxis,n=l.reference[f]+l.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,y;let e="y"===f?"width":"height",t=rc.has(ts(i)),n=l.reference[d]-l.floating[e]+(t&&(null==(v=o.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=l.reference[d]+l.reference[e]+(t?0:(null==(y=o.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}).fn,options:[t,void 0]}}},a=[ea,M,V,en,z],void 0===(s=o)&&(s={}),{name:(g={name:"shift",options:s,async fn(e){let{x:t,y:n,placement:r,platform:i}=e,{mainAxis:l=!0,crossAxis:o=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ta(s,e),u={x:t,y:n},d=await i.detectOverflow(e,c),f=tf(ts(r)),p=tu(f),m=u[p],h=u[f];
1if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+d[e],r=m-d[t];m=tn(n,tt(m,r))}if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+d[e],r=h-d[t];h=tn(n,tt(h,r))}let g=a.fn({...e,[p]:m,[f]:h});return{...g,data:{x:g.x-t,y:g.y-n,enabled:{[p]:l,[f]:o}}}}}).name,fn:g.fn,options:[o,a]});"shift"===B||"shift"===z||"center"===C?ed.push(eh,em):ed.push(em,eh),ed.push({name:(v={name:"size",options:d=u={...ea,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!J.current)return;let i=e.style;i.setProperty("--available-width",`${t}px`),i.setProperty("--available-height",`${n}px`);let l=U(e).devicePixelRatio||1,{x:o,y:a,width:s,height:c}=r.reference,u=(Math.round((o+s)*l)-Math.round(o*l))/l,d=(Math.round((a+c)*l)-Math.round(a*l))/l;i.setProperty("--anchor-width",`${u}px`),i.setProperty("--anchor-height",`${d}px`)}},async fn(e){var t,n;let r,i,{placement:l,rects:o,platform:a,elements:s}=e,{apply:c=()=>{},...u}=ta(d,e),f=await a.detectOverflow(e,u),p=ts(l),m=tc(l),h="y"===tf(l),{width:g,height:v}=o.floating;"top"===p||"bottom"===p?(r=p,i=m===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,r="end"===m?"top":"bottom");let y=v-f.top-f.bottom,x=g-f.left-f.right,b=tt(v-f[r],y),w=tt(g-f[i],x),j=!e.middlewareData.shift,S=b,C=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(C=x),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(S=y),j&&!m){let e=tn(f.left,0),t=tn(f.right,0),n=tn(f.top,0),r=tn(f.bottom,0);h?C=g-2*(0!==e||0!==t?e+t:tn(f.left,f.right)):S=v-2*(0!==n||0!==r?n+r:tn(f.top,f.bottom))}await c({...e,availableWidth:C,availableHeight:S});let N=await a.getDimensions(s.floating);return g!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}).name,fn:v.fn,options:[u,void 0]},(f=()=>({element:es.current||eF(es.current).createElement("div"),padding:A,offsetParent:"floating"}),p=[A],{name:"arrow",options:f,async fn(e){let{x:t,y:n,placement:r,rects:i,platform:l,elements:o,middlewareData:a}=e,{element:s,padding:c=0,offsetParent:u="real"}=ta(f,e)||{};if(null==s)return{};let d=tx(c),p={x:t,y:n},m=tu(tf(r)),h=td(m),g=await l.getDimensions(s),v="y"===m,y=v?"clientHeight":"clientWidth",x=i.reference[h]+i.reference[m]-p[m]-i.floating[h],b=p[m]-i.reference[m],w="real"===u?await l.getOffsetParent?.(s):o.floating,j=o.floating[y]||i.floating[h];j&&await l.isElement?.(w)||(j=o.floating[y]||i.floating[h]);let S=j/2-g[h]/2-1,C=Math.min(d[v?"top":"left"],S),N=Math.min(d[v?"bottom":"right"],S),E=j-g[h]-N,k=j/2-g[h]/2+(x/2-b/2),R=tn(C,tt(k,E)),M=!a.arrow&&null!=tc(r)&&k!==R&&i.reference[h]/2-(k<C?C:N)-g[h]/2<0,A=M?k<C?k-C:k-E:0;return{[m]:p[m]+A,data:{[m]:R,centerOffset:k-R-A,...M&&{alignmentOffset:A}},reset:M}},options:[f,p]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:n,placement:r,rects:i,y:l}=e,o=ts(r),a=tf(o),s=es.current,c=n.arrow?.x||0,u=n.arrow?.y||0,d=s?.clientWidth||0,f=s?.clientHeight||0,p=c+d/2,m=u+f/2,h=Math.abs(n.shift?.y||0),g=i.reference.height/2,v="function"==typeof S?S(r_(e,w,Q)):S,y=h>v,x={top:`${p}px calc(100% + ${v}px)`,bottom:`${p}px ${-v}px`,left:`calc(100% + ${v}px) ${m}px`,right:`${-v}px ${m}px`}[o],b=`${p}px ${i.reference.y+g-l}px`;return t.floating.style.setProperty("--transform-origin",ep&&"y"===a&&y?b:x),{}}},rL,H),x(()=>{!L&&T&&T.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[L,T]);let eg=c.useMemo(()=>({elementResize:!I&&"u">typeof ResizeObserver,layoutShift:!I&&"u">typeof IntersectionObserver}),[I]),{refs:ev,elements:ey,x:ex,y:eb,middlewareData:ew,update:ej,placement:eS,context:eC,isPositioned:eN,floatingStyles:eE}=function(e={}){let{nodeId:t,externalTree:n}=e,r=e6(e),i=e.rootContext||r,l={reference:i.useState("referenceElement"),floating:i.useState("floatingElement"),domReference:i.useState("domReferenceElement")},[o,a]=c.useState(null),s=c.useRef(null),u=eY(n);x(()=>{l.domReference&&(s.current=l.domReference)},[l.domReference]);let d=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:o}={},transform:a=!0,whileElementsMounted:s,open:u}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=c.useState(r);rR(p,r)||m(r);let[h,g]=c.useState(null),[v,y]=c.useState(null),x=c.useCallback(e=>
1{e!==S.current&&(S.current=e,g(e))},[]),b=c.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),w=l||h,j=o||v,S=c.useRef(null),C=c.useRef(null),N=c.useRef(d),E=null!=s,k=rI(s),R=rI(i),M=rI(u),A=c.useCallback(()=>{var e,r;let i,l,o;if(!S.current||!C.current)return;let a={placement:t,strategy:n,middleware:p};R.current&&(a.platform=R.current),(e=S.current,r=C.current,i=new Map,o={...(l={platform:rC,...a}).platform,_c:i},ro(e,r,{...l,platform:o})).then(e=>{let t={...e,isPositioned:!1!==M.current};I.current&&!rR(N.current,t)&&(N.current=t,t4.flushSync(()=>{f(t)}))})},[p,t,n,R,M]);rk(()=>{!1===u&&N.current.isPositioned&&(N.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let I=c.useRef(!1);rk(()=>(I.current=!0,()=>{I.current=!1}),[]),rk(()=>{if(w&&(S.current=w),j&&(C.current=j),w&&j){if(k.current)return k.current(w,j,A);A()}},[w,j,A,k,E]);let P=c.useMemo(()=>({reference:S,floating:C,setReference:x,setFloating:b}),[x,b]),T=c.useMemo(()=>({reference:w,floating:j}),[w,j]),L=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=rA(T.floating,d.x),r=rA(T.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...rM(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,T.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:A,refs:P,elements:T,floatingStyles:L}),[d,A,P,T,L])}({...e,elements:{...l,...o&&{reference:o}}}),f=c.useCallback(e=>{let t=Y(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;a(t),d.refs.setReference(t)},[d.refs]),[p,m]=c.useState(void 0),[h,g]=c.useState(null);i.useSyncedValue("referenceElement",p??null);let v=Y(p)?p:null;i.useSyncedValue("domReferenceElement",void 0===p?l.domReference:v),i.useSyncedValue("floatingElement",h);let y=c.useCallback(e=>{(Y(e)||null===e)&&(s.current=e,m(e)),(Y(d.refs.reference.current)||null===d.refs.reference.current||null!==e&&!Y(e))&&d.refs.setReference(e)},[d.refs,m]),b=c.useCallback(e=>{g(e),d.refs.setFloating(e)},[d.refs]),w=c.useMemo(()=>({...d.refs,setReference:y,setFloating:b,setPositionReference:f,domReference:s}),[d.refs,y,b,f]),j=c.useMemo(()=>({...d.elements,domReference:l.domReference}),[d.elements,l.domReference]),S=i.useState("open"),C=i.useState("floatingId"),N=c.useMemo(()=>({...d,dataRef:i.context.dataRef,open:S,onOpenChange:i.setOpen,events:i.context.events,floatingId:C,refs:w,elements:j,nodeId:t,rootStore:i}),[d,w,j,t,i,S,C]);return x(()=>{i.context.dataRef.current.floatingContext=N;let e=u?.nodesRef.current.find(e=>e.id===t);e&&(e.context=N)}),c.useMemo(()=>({...d,context:N,refs:w,elements:j,rootStore:i}),[d,w,j,N,i])}({rootContext:T,open:P?L:void 0,placement:et,middleware:ed,strategy:b,whileElementsMounted:P?void 0:(...e)=>rE(...e,eg),nodeId:_,externalTree:$}),{sideX:ek,sideY:eR}=ew.adaptiveOrigin||rO,eM=eN?b:"fixed",eA=c.useMemo(()=>{let e=H?{position:eM,[ek]:ex,[eR]:eb}:{position:eM,...eE};return eN||(e.opacity=0),e},[H,eM,ek,ex,eR,eb,eE,eN]),eI=c.useRef(null);x(()=>{if(!L)return;let e=K.current,t="function"==typeof e?e():e,n=(rH(t)?t.current:t)||null;n!==eI.current&&(ev.setPositionReference(n),eI.current=n)},[L,ev,G,K]),c.useEffect(()=>{if(!L)return;let e=K.current;"function"!=typeof e&&rH(e)&&e.current!==eI.current&&(ev.setPositionReference(e.current),eI.current=e.current)},[L,ev,G,K]),c.useEffect(()=>{if(P&&L&&ey.domReference&&ey.floating)return rE(ey.domReference,ey.floating,ej,eg)},[P,L,ey,ej,eg]);let eP=ts(eS),eT=rV(w,eP,Q),eL=tc(eS)||"center",eO=!!ew.hide?.referenceHidden;x(()=>{D&&L&&eN&&W(eP)},[D,L,eN,eP]);let eV=c.useMemo(()=>({position:"absolute",top:ew.arrow?.y,left:ew.arrow?.x}),[ew.arrow]),e_=ew.arrow?.centerOffset!==0;return c.useMemo(()=>({positionerStyles:eA,arrowStyles:eV,arrowRef:es,arrowUncentered:e_,side:eT,align:eL,physicalSide:eP,anchorHidden:eO,refs:ev,context:eC,isPositioned:eN,update:ej}),[eA,eV,es,e_,eT,eL,eP,eO,ev,eC,eN,ej])}({anchor:r,floatingRootContext:V,positionMethod:i,mounted:H,side:a,sideOffset:d,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:p,collisionPadding:m,sticky:g,disableAnchorTracking:v??J,collisionAvoidance:b,keepMounted:!0}),ee=J?"none":Q.side,et=J?rG:Q.positionerStyles,en=function(e,t,{styles:n,transitionStatus:r,props:i,refs:l,hidden:o,inert:a=!1}){let s={...n};return a&&(s.pointerEvents="none"),ny("div",e,{state:t,ref:l,props:[{role:"presentation",hidden:o,style:s},rU(r),i],stateAttributesMapping:nM})}(e,{open:_,side:ee,align:Q.align,anchorHidden:Q.anchorHidden},{styles:et,transitionStatus:q,props:S,refs:[t,j(e=>{C.set("positionerElement",e)})],hidden:!H,inert:!_}),er=c.useRef(0),ei=j(e=>{if(0===e.size&&0===er.current||0===P.current.length)return;let t=er.current;if(er.current=e.size,e.size===t)return;let n=e_(eH.none);if(0!==t&&!C.state.multiple&&null!==$&&-1===tG(P.current,$,z)){let e=T.current,t=null!=e&&-1!==tG(P.current,e,z)?e:null;O(t,n),null===t&&(C.set("selectedIndex",null),I.current=null)}if(0!==t&&C.state.multiple&&Array.isArray($)){let e=$.filter(e=>-1!==tG(P.current,e,z));(e.length!==$.length||e.some(e=>!($&&0!==$.length&&$.some(t=>
1void 0!==t&&tZ(e,t,z)))))&&(O(e,n),0===e.length&&(C.set("selectedIndex",null),I.current=null))}if(_&&J){C.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};rW(W,e),rW(L.current,e)}}),el=c.useMemo(()=>({...Q,side:ee,alignItemWithTriggerActive:J,setControlledAlignItemWithTrigger:K,scrollUpArrowRef:X,scrollDownArrowRef:Z}),[Q,ee,J,K]);return(0,s.jsx)(re,{elementsRef:E,labelsRef:k,onMapChange:ei,children:(0,s.jsxs)(rD.Provider,{value:el,children:[H&&D&&(0,s.jsx)(rF,{inert:(n=!_,M>=19?n:n?"true":void 0),cutout:B}),en]})})});var eH=eH;let rJ={inert:new WeakMap,"aria-hidden":new WeakMap},rQ="data-base-ui-inert",r0={inert:new WeakSet,"aria-hidden":new WeakSet},r1=new WeakMap,r2=0,r4=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?Z(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),r5=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},r3=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==B(e)&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function r9(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:l=[]}=t,o=eF(e[0]).body;return function(e,t,n,r,{mark:i=!0,markerIgnoreElements:l=[]}){let o=r?"inert":n?"aria-hidden":null,a=null,s=null,c=r4(t,e),u=new Set(i?r4(t,l):[]),d=i?r3(t,r5(c),new Set(c)).filter(e=>!u.has(e)):[],f=[],p=[];if(o){let e=rJ[o],n=r0[o];s=n,a=e;let r=r4(t,Array.from(t.querySelectorAll("[aria-live]"))),i=c.concat(r);r3(t,r5(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=null!==r&&"false"!==r,l=(e.get(t)||0)+1;e.set(t,l),f.push(t),1===l&&i&&n.add(t),i||t.setAttribute(o,"inert"===o?"":"true")})}return i&&d.forEach(e=>{let t=(r1.get(e)||0)+1;r1.set(e,t),p.push(e),1===t&&e.setAttribute(rQ,"")}),r2+=1,()=>{a&&f.forEach(e=>{let t=(a.get(e)||0)-1;a.set(e,t),t||(!s?.has(e)&&o&&e.removeAttribute(o),s?.delete(e))}),i&&p.forEach(e=>{let t=(r1.get(e)||0)-1;r1.set(e,t),t||e.removeAttribute(rQ)}),(r2-=1)||(rJ.inert=new WeakMap,rJ["aria-hidden"]=new WeakMap,r0.inert=new WeakSet,r0["aria-hidden"]=new WeakSet,r1=new WeakMap)}}(e,o,n,r,{mark:i,markerIgnoreElements:l})}let r6=[];function r8(){r6=r6.filter(e=>e.deref()?.isConnected)}function r7(){return r8(),r6[r6.length-1]?.deref()}function ie(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;let n=nq(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return nz(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");t.current.includes("floating")||0===n.length?"0"!==r&&e.setAttribute("tabindex","0"):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}
1function it(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:l=!0,restoreFocus:o=!1,modal:a=!0,closeOnFocusOut:u=!0,openInteractionType:d="",nextFocusableElement:f,previousFocusableElement:p,beforeContentFocusGuardRef:m,externalTree:g,getInsideElements:v}=e,y="rootStore"in t?t.rootStore:t,b=y.useState("open"),w=y.useState("domReferenceElement"),S=y.useState("floatingElement"),{events:C,dataRef:E}=y.context,k=j(()=>E.current.floatingContext?.nodeId),R=!1===i,M=ew(w)&&R,A=c.useRef(["content"]),I=N(i),P=N(l),T=N(d),L=eY(g),O=c.useContext(n2),V=c.useRef(!1),_=c.useRef(!1),H=c.useRef(!1),$=c.useRef(null),W=c.useRef(""),z=c.useRef(""),q=c.useRef(null),Y=c.useRef(null),Z=h(q,m,O?.beforeInsideRef),G=h(Y,O?.afterInsideRef),K=F(),J=F(),Q=D(),ee=null!=O,et=ej(S),en=j((e=et)=>e?nY(e):[]),er=j(()=>v?.().filter(e=>null!=e)??[]);c.useEffect(()=>{if(!r&&a)return eD(eF(et),"keydown",function(e){"Tab"===e.key&&eu(et,ec(eF(et)))&&0===en().length&&!M&&eP(e)})},[r,w,et,a,A,M,en]),c.useEffect(()=>{if(r||!b)return;let e=eF(et);function t(){H.current=!1}return e$(eD(e,"pointerdown",function(e){let t=ed(e),n=er();H.current=!(eu(S,t)||eu(w,t)||eu(O?.portalNode,t)||n.some(e=>e===t||eu(e,t))),z.current=e.pointerType||"keyboard",t?.closest("[data-base-ui-click-trigger]")&&(_.current=!0)},!0),eD(e,"pointerup",t,!0),eD(e,"pointercancel",t,!0),eD(e,"keydown",function(){z.current="keyboard"},!0))},[r,S,w,et,b,O,er]),c.useEffect(()=>{if(r||!u)return;let e=eF(et);function t(t){let n=t.relatedTarget,r=t.currentTarget,i=ed(t);queueMicrotask(()=>{let l=k(),s=y.context.triggerElements,c=er(),u=n?.hasAttribute(eX("focus-guard"))&&[q.current,Y.current,O?.beforeInsideRef.current,O?.afterInsideRef.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,t5(p),t5(f)].includes(n),d=!(eu(w,n)||eu(S,n)||eu(n,S)||eu(O?.portalNode,n)||c.some(e=>e===n||eu(e,n))||null!=n&&s.hasElement(n)||s.hasMatchingElement(e=>eu(e,n))||u||L&&(eW(L.nodesRef.current,l).find(e=>eu(e.context?.elements.floating,n)||eu(e.context?.elements.domReference,n))||eB(L.nodesRef.current,l).find(e=>[e.context?.elements.floating,ej(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===w&&et&&ie(et,A),o&&r!==w&&!tk(i)&&ec(e)===e.body){if(X(et)&&(et.focus(),"popup"===o))return void Q.request(()=>{et.focus()});let e=en(),t=$.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||et;X(n)&&n.focus()}if(E.current.insideReactTree){E.current.insideReactTree=!1;return}(M||!a)&&n&&d&&!_.current&&(M||n!==r7())&&(V.current=!0,y.setOpen(!1,e_(eH.focusOut,t)))})}let n=X(w)?w:null;if(S||n)return e$(n&&eD(n,"focusout",t),n&&eD(n,"pointerdown",function(){_.current=!0,J.start(0,()=>{_.current=!1})}),S&&eD(S,"focusin",function(e){let t=ed(e);nz(t)&&($.current=t)}),S&&eD(S,"focusout",t),S&&O&&eD(S,"focusout",function(){H.current||(E.current.insideReactTree=!0,K.start(0,()=>{E.current.insideReactTree=!1}))},!0))},[r,w,S,et,a,L,O,y,u,o,en,M,k,A,E,K,J,Q,f,p,er]),c.useEffect(()=>{if(r||!S||!b)return;let e=Array.from(O?.portalNode?.querySelectorAll(`[${eX("portal")}]`)||[]),t=L?eB(L.nodesRef.current,k()):[],n=t.find(e=>ew(e.context?.elements.domReference||null))?.context?.elements.domReference,i=r9([S,...e,q.current,Y.current,O?.beforeOutsideRef.current,O?.afterOutsideRef.current,...er(),n,t5(p),t5(f),M?w:null].filter(e=>null!=e),{ariaHidden:a||M,mark:!1}),l=r9([S,...e].filter(e=>null!=e));return()=>{l(),i()}},[b,r,w,S,a,A,O,M,L,k,f,p,er]),x(()=>{if(!b||r||!X(et))return;let e=ec(eF(et));queueMicrotask(()=>{let t,n=I.current,r="function"==typeof n?n(T.current||""):n;if(void 0===r||!1===r||eu(et,e))return;let i=null,l=()=>(null==i&&(i=en(et)),i[0]||et);tM(t=(t=!0===r||null===r?l():t5(r))||l(),{preventScroll:t===et})})},[r,b,et,R,en,I,T]),x(()=>{var e;if(r||!et)return;let t=eF(et);function n(e){var t,n;let r;if(e.open||(t=e.nativeEvent,n=z.current,r=U(ed(t)),W.current=t instanceof r.KeyboardEvent?"keyboard":t instanceof r.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof r.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===eH.triggerHover&&"mouseleave"===e.nativeEvent.type&&(V.current=!0),e.reason===eH.outsidePress)if(e.nested)V.current=!1;else if(eT(e.nativeEvent)||eL(e.nativeEvent))V.current=!1;else{let e=!1;eF(et).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?V.current=!1:V.current=!0}}return e=ec(t),r8(),e&&"body"!==B(e)&&(r6.push(new WeakRef(e)),r6.length>
120&&(r6=r6.slice(-20))),C.on("openchange",n),()=>{C.off("openchange",n);let e=ec(t),r=er(),i=eu(S,e)||r.some(t=>t===e||eu(t,e))||L&&eW(L.nodesRef.current,k(),!1).some(t=>eu(t.context?.elements.floating,e)),l=P.current,o=function(){let e=P.current,t="function"==typeof e?e(W.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t){let e=w||r7();return e&&e.isConnected?e:null}let n=w||r7();return t5(t)||n||null}();queueMicrotask(()=>{let n=o?nz(o)?o:nY(o)[0]||o:null;l&&!V.current&&X(n)&&("boolean"!=typeof l||n===e||e===t.body||i)&&n.focus({preventScroll:!0}),V.current=!1})}},[r,S,et,P,E,C,L,w,k,er]),x(()=>{if(!ek||b||!S)return;let e=ec(eF(S));X(e)&&eb(e)&&eu(S,e)&&e.blur()},[b,S]),x(()=>{if(!r&&O)return O.setFocusManagerState({modal:a,closeOnFocusOut:u,open:b,onOpenChange:y.setOpen,domReference:w}),()=>{O.setFocusManagerState(null)}},[r,O,a,b,y,u,w]),x(()=>{if(!r&&et)return ie(et,A),()=>{queueMicrotask(r8)}},[r,et,A]);let ei=!r&&(!a||!M)&&(ee||a);return(0,s.jsxs)(c.Fragment,{children:[ei&&(0,s.jsx)(nH,{"data-type":"inside",ref:Z,onFocus:e=>{if(a){let e=en();tM(e[e.length-1])}else if(O?.portalNode)if(V.current=!1,nK(e,O.portalNode)){let e=nZ(w);e?.focus()}else t5(p??O.beforeOutsideRef)?.focus()}}),n,ei&&(0,s.jsx)(nH,{"data-type":"inside",ref:G,onFocus:e=>{if(a)tM(en()[0]);else if(O?.portalNode)if(u&&(V.current=!0),nK(e,O.portalNode)){let e=nG(w);e?.focus()}else t5(f??O.afterOutsideRef)?.focus()}})]})}let ir="base-ui-disable-scrollbar";var eH=eH;let ii=c.createContext(void 0),il="ArrowUp",io="ArrowDown",ia="ArrowLeft",is="ArrowRight";[...new Set([...new Set([ia,is]),...new Set([il,io])])];let ic=new Set([il,io,ia,is,"Home","End"]),iu=c.createContext(void 0),id={disableStyleElements:!1},ip={...nM,...t8},im=c.forwardRef(function(e,t){let n,{render:r,className:i,style:l,finalFocus:o,...a}=e,{store:u,popupRef:d,onOpenChangeComplete:f,setOpen:p,valueRef:m,selectedItemTextRef:h,keyboardActiveRef:g,multiple:v,handleScrollArrowVisibility:y,scrollHandlerRef:b,listRef:w,highlightItemOnHover:S}=tO(),{side:C,align:N,alignItemWithTriggerActive:E,isPositioned:k,setControlledAlignItemWithTrigger:R,scrollDownArrowRef:M,scrollUpArrowRef:I}=r$(),P=null!=function(e){let t=c.useContext(ii);if(void 0===t&&!e)throw Error(e1(69));return t}(!0),T=tV(),L=rT(),{nonce:O,disableStyleElements:V}=c.useContext(iu)??id,_=A(u,t2.id,void 0,void 0,void 0),H=A(u,t2.open,void 0,void 0,void 0),$=A(u,t2.mounted,void 0,void 0,void 0),F=A(u,t2.popupProps,void 0,void 0,void 0),W=A(u,t2.transitionStatus,void 0,void 0,void 0),B=A(u,t2.triggerElement,void 0,void 0,void 0),z=A(u,t2.positionerElement,void 0,void 0,void 0),q=A(u,t2.listElement,void 0,void 0,void 0),Y=c.useRef(!1),X=c.useRef(!1),Z=c.useRef({}),G=D(),K=j(e=>{var t;if(!z||!d.current||!X.current)return;if(Y.current||!E)return void y();let n="0px"===z.style.top,r="0px"===z.style.bottom;if(!n&&!r)return void y();let i=iv(z),l=(t=z.getBoundingClientRect().height,t/i.y),o=eF(z),a=getComputedStyle(z),s=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),u=ih(getComputedStyle(d.current)),f=Math.min(o.documentElement.clientHeight-s-c,u),p=e.scrollTop,m=ig(e),h=0,g=null,v=!1,x=!1,b=e=>{z.style.height=`${e}px`},w=n?m-p:p,j=Math.min(l+w,f);if(h=j,w<=1){let t;return void((t=nn(w,0,f-l))>0&&b(l+t),e.scrollTop=n?m:0,f-(l+t)<=1&&(Y.current=!0),y())}if(f-j>1)n?x=!0:g=0;else if(v=!0,r&&p<m){let e=l+w-f;g=p-(w-e)}if(0!==(h=Math.ceil(h))&&b(h),x||null!=g){let t=ig(e),n=x?t:nn(g,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(v||h>=f-1)&&(Y.current=!0),y()});c.useImperativeHandle(b,()=>K,[K]),t7({open:H,ref:d,onComplete(){H&&f?.(!0)}}),x(()=>{z&&d.current&&!Object.keys(Z.current).length&&(Z.current={top:z.style.top||"0",left:z.style.left||"0",right:z.style.right,height:z.style.height,bottom:z.style.bottom,minHeight:z.style.minHeight,maxHeight:z.style.maxHeight,marginTop:z.style.marginTop,marginBottom:z.style.marginBottom})},[d,z]),x(()=>{H||E||(X.current=!1,Y.current=!1,rW(z,Z.current))},[H,E,z,d]),x(()=>{let e=d.current;if(!H||!B||!z||!e||E&&!k||"ending"===u.state.transitionStatus)return;if(!E){X.current=!0,G.request(y),e.style.removeProperty("--transform-origin");return}let t=function(e){let{style:t}=e,n={};for(let[e,r]of ix)n[e]=t.getPropertyValue(e),t.setProperty(e,r,"important");return()=>{for(let[e]of ix){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}(e);e.style.removeProperty("--transform-origin");try{let t,n=h.current,r=m.current,i=getComputedStyle(z),l=getComputedStyle(e),o=eF(B),a=U(z),s=iv(B),c=iy(B.getBoundingClientRect(),s),d=iy(z.getBoundingClientRect(),s),f=c.height,p=q||e,g=p.scrollHeight,v=parseFloat(l.borderBottomWidth),x=parseFloat(i.marginTop)||10,b=parseFloat(i.marginBottom)||10,j=parseFloat(i.minHeight)||100,C=ih(l),N=o.documentElement.clientHeight-x-b,E=o.documentElement.clientWidth,k=N-c.bottom+f,M="rtl"===L?c.right-d.width:c.left,A=0;if(n&&r){let e=iy(r.getBoundingClientRect(),s);t=iy(n.getBoundingClientRect(),s),M=d.left+("rtl"===L?e.right-t.right:e.left-t.left);let i=e.top-c.top+e.height/2;A=t.top-d.top+t.height/2-i}let I=k+A+b+v,P=Math.min(N,I),T=N-x-b,O=I-P;z.style.left=`${nn(M,5,E-5-d.width)}px`,z.style.height=`${P}px`,z.style.maxHeight="auto",z.style.marginTop=`${x}px`,z.style.marginBottom=`${b}px`,e.style.height="100%";let V=ig(p),_=O>=V-1;_&&(P=Math.min(N,d.height)-(O-V));let H=c.top<20||c.bottom>
1N-20||Math.ceil(P)+1<Math.min(g,j),D=(a.visualViewport?.scale??1)!==1&&ek;if(H||D){X.current=!0,rW(z,Z.current),R(!1);return}let $=Math.max(j,P);if(_){let e=Math.max(0,N-I);z.style.top=d.height>=T?"0":`${e}px`,z.style.height=`${P}px`,p.scrollTop=ig(p)}else z.style.bottom="0",p.scrollTop=O;if(t){let n=d.top,r=d.height,i=t.top+t.height/2,l=nn(r>0?(i-n)/r*100:50,0,100);e.style.setProperty("--transform-origin",`50% ${l}%`)}($===N||P>=C)&&(Y.current=!0),y(),S&&null===u.state.selectedIndex&&null===u.state.activeIndex&&null!=w.current[0]&&u.set("activeIndex",0),X.current=!0}finally{t()}},[u,H,z,B,m,h,d,y,E,R,G,M,I,q,w,S,L,k]),c.useEffect(()=>{if(E&&z&&H)return eD(U(z),"resize",function(e){p(!1,e_(eH.windowResize,e))})},[p,E,z,H]);let J=ny("div",e,{ref:[t,d],state:{open:H,transitionStatus:W,side:C,align:N},stateAttributesMapping:ip,props:[F,{...q?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":v||void 0,id:`${_}-list`},onKeyDown(e){g.current=!0,P&&ic.has(e.key)&&e.stopPropagation()},onMouseMove(){g.current=!1},onScroll(e){q||K(e.currentTarget)},...E&&{style:q?{height:"100%"}:rB}},rU(W),{className:!q&&E?ir:void 0},a]});return(0,s.jsxs)(c.Fragment,{children:[!V&&(n=O,(0,s.jsx)("style",{nonce:n,href:ir,precedence:"base-ui:low",children:`.${ir}{scrollbar-width:none}.${ir}::-webkit-scrollbar{display:none}`})),(0,s.jsx)(it,{context:T,modal:!1,disabled:!$,returnFocus:o,restoreFocus:!0,children:J})]})});function ih(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function ig(e){return nr(e.scrollHeight,e.clientHeight)}function iv(e){return rC.getScale(e)}function iy(e,t){return tb({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let ix=[["transform","none"],["scale","1"],["translate","0 0"]],ib=c.forwardRef(function(e,t){let{className:n,render:r,style:i,...l}=e,{store:o,scrollHandlerRef:a}=tO(),{alignItemWithTriggerActive:s}=r$(),c=A(o,t2.hasScrollArrows,void 0,void 0,void 0),u=A(o,t2.openMethod,void 0,void 0,void 0),d=A(o,t2.multiple,void 0,void 0,void 0),f=A(o,t2.id,void 0,void 0,void 0),p={id:`${f}-list`,role:"listbox","aria-multiselectable":d||void 0,onScroll(e){a.current?.(e.currentTarget)},...s&&{style:rB},className:c&&"touch"!==u?ir:void 0};return ny("div",e,{ref:[t,j(e=>{o.set("listElement",e)})],props:[p,l]})}),iw=((a={})[a.None=0]="None",a[a.GuessFromOrder=1]="GuessFromOrder",a),ij=c.createContext(void 0);function iS(){let e=c.useContext(ij);if(!e)throw Error(e1(57));return e}var eH=eH;let iC=c.memo(c.forwardRef(function(e,t){var n;let{render:r,className:i,value:l=null,label:o,disabled:a=!1,nativeButton:u=!1,style:d,...f}=e,p=c.useRef(null),m=function(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:l}=e,{register:o,unregister:a,subscribeMapChange:s,elementsRef:u,labelsRef:d,nextIndexRef:f}=c.useContext(n7),p=c.useRef(-1),[m,h]=c.useState(l??(i===iw.GuessFromOrder?()=>{if(-1===p.current){let e=f.current;f.current+=1,p.current=e}return p.current}:-1)),g=c.useRef(null),v=c.useCallback(e=>{if(g.current=e,-1!==m&&null!==e&&(u.current[m]=e,d)){let n=void 0!==t;d.current[m]=n?t:r?.current?.textContent??e.textContent}},[m,u,d,t,r]);return x(()=>{if(null!=l)return;let e=g.current;if(e)return o(e,n),()=>{a(e)}},[l,o,a,n]),x(()=>{if(null==l)return s(e=>{let t=g.current?e.get(g.current)?.index:null;null!=t&&h(t)})},[l,s,h]),c.useMemo(()=>({ref:v,index:m}),[m,v])}({label:o,textRef:p,indexGuessBehavior:iw.GuessFromOrder}),{store:h,getItemProps:g,setOpen:v,setValue:y,selectionRef:b,typingRef:w,valuesRef:j,multiple:S,selectedItemTextRef:C}=tO(),E=A(h,t2.isActive,m.index,void 0,void 0),k=(n=t2.isSelected,A(h,n,m.index,l,void 0)),R=A(h,t2.isSelectedByFocus,m.index,void 0,void 0),M=A(h,t2.isItemEqualToValue,void 0,void 0,void 0),I=m.index,P=-1!==I,T=c.useRef(null),L=N(I);x(()=>{if(!P)return;let e=j.current;return e[I]=l,()=>{delete e[I]}},[P,I,l,j]),x(()=>{if(!P)return;let e=h.state.value,t=e;S&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),void 0!==t&&tZ(l,t,M)&&(h.set("selectedIndex",I),p.current&&(C.current=p.current))},[P,I,S,M,h,l,C]);let O=g({active:E,selected:k});O.id=void 0;let V=c.useRef(null),_=c.useRef("mouse"),H=c.useRef(!1),{getButtonProps:D,buttonRef:$}=nI({disabled:a,focusableWhenDisabled:!0,native:u,composite:!0}),F=ny("div",e,{ref:[$,t,m.ref,T],state:{disabled:a,selected:k,highlighted:E},props:[O,{role:"option","aria-selected":k,tabIndex:E?0:-1,onTouchStart(){b.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){V.current=e.key,h.set("activeIndex",I)," "===e.key&&w.current&&e.preventDefault()},onClick(e){H.current=!1,"keydown"===e.type&&null===V.current||a||"keydown"===e.type&&" "===V.current&&w.current||"touch"!==_.current&&!E||(V.current=null,function(e){let t=h.state.value;if(S){let n=Array.isArray(t)?t:[];y(k?n.filter(e=>!tZ(l,e,M)):[...n,l],e_(eH.itemPress,e))}else y(l,e_(eH.itemPress,e)),v(!1,e_(eH.itemPress,e))}(e.nativeEvent))},onPointerEnter(e){_.current=e.pointerType},onPointerDown(e){_.current=e.pointerType,H.current=!0},onMouseUp(){if(a)return;if(H.current){H.current=!1;return}let e=!b.current.allowSelectedMouseUp&&k,t=!b.current.allowUnselectedMouseUp&&!k;e||t||"touch"!==_.current&&!E||T.current?.click()}},f,D]}),W=c.useMemo(()=>({selected:k,indexRef:L,textRef:p,selectedByFocus:R,hasRegistered:P}),[k,L,p,R,P]);return(0,s.jsx)(ij.Provider,{value:W,children:F})})),iN=c.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=iS();return n||r?(0,s.jsx)(iE,{...e,ref:t}):null}),iE=c.memo(c.forwardRef((e,t)=>
1{let{render:n,className:r,style:i,keepMounted:l,...o}=e,{selected:a}=iS(),s=c.useRef(null),{transitionStatus:u,setMounted:d}=tY(a),f=ny("span",e,{ref:[t,s],state:{selected:a,transitionStatus:u},props:[{"aria-hidden":!0,children:"✔️"},o],stateAttributesMapping:t8});return t7({open:a,ref:s,onComplete(){a||d(!1)}}),f})),ik=c.memo(c.forwardRef(function(e,t){let{indexRef:n,textRef:r,selectedByFocus:i,hasRegistered:l}=iS(),{selectedItemTextRef:o}=tO(),{className:a,render:s,style:u,...d}=e;return ny("div",e,{ref:[c.useCallback(e=>{if(!e||!l)return;let t=null===o.current||!o.current.isConnected;(i||t&&0===n.current)&&(o.current=e)},[o,n,i,l]),t,r],props:d})})),iR={...nM,...t8},iM=c.forwardRef(function(e,t){let{className:n,render:r,style:i,...l}=e,{store:o}=tO(),{side:a,align:s,arrowRef:c,arrowStyles:u,arrowUncentered:d,alignItemWithTriggerActive:f}=r$(),p=ny("div",e,{state:{open:A(o,t2.open,!0,void 0,void 0),side:a,align:s,uncentered:d},ref:[c,t],props:[{style:u,"aria-hidden":!0},l],stateAttributesMapping:iR});return f?null:p}),iA=c.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:l,keepMounted:o=!1,...a}=e,s="up"===l,{store:c,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=tO(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:g}=r$(),v=A(c,s?t2.scrollUpArrowVisible:t2.scrollDownArrowVisible,void 0,void 0,void 0),y=A(c,t2.openMethod,void 0,void 0,void 0),b=v&&"touch"!==y,w=F(),j=s?g:h,{transitionStatus:S,setMounted:C}=tY(b);x(()=>(p.current+=1,c.state.hasScrollArrows||c.set("hasScrollArrows",!0),()=>{p.current=Math.max(0,p.current-1),0===p.current&&c.state.hasScrollArrows&&c.set("hasScrollArrows",!1)}),[c,p]),t7({open:b,ref:j,onComplete(){b||C(!1)}});let N=ny("div",e,{ref:[t,j],state:{direction:l,visible:b,side:m,transitionStatus:S},props:[{"aria-hidden":!0,children:s?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||w.isStarted()||(c.set("activeIndex",null),w.start(40,function e(){let t=c.state.listElement??u.current;if(!t)return;c.set("activeIndex",null),f();let n=nr(t.scrollHeight,t.clientHeight),r=ni(t.scrollTop,n),i=r===(s?0:n),l=d.current;if(r!==t.scrollTop&&(t.scrollTop=r),0===l.length&&c.set(s?"scrollUpArrowVisible":"scrollDownArrowVisible",!i),i)return void w.clear();if(l.length>0){let e=j.current?.offsetHeight||0;t.scrollTop=function(e,t,n,r,i,l){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),a=e[o];return o<t&&a?ni(a.offsetTop-i,l):0}let o=e.length-1,a=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>a){o=Math.max(0,t-1);break}}let s=Math.min(e.length-1,o+1),c=e[s];return s>o&&c?ni(c.offsetTop+c.offsetHeight-r+i,l):l}(l,s,r,t.clientHeight,e,n)}w.start(40,e)}))},onMouseLeave(){w.clear()}},a]});return b||o?N:null}),iI=c.forwardRef(function(e,t){return(0,s.jsx)(iA,{...e,ref:t,direction:"down"})}),iP=c.forwardRef(function(e,t){return(0,s.jsx)(iA,{...e,ref:t,direction:"up"})}),iT=c.createContext(void 0),iL=c.forwardRef(function(e,t){let{className:n,render:r,style:i,...l}=e,[o,a]=c.useState(),u=c.useMemo(()=>({labelId:o,setLabelId:a}),[o,a]),d=ny("div",e,{ref:t,props:[{role:"group","aria-labelledby":o},l]});return(0,s.jsx)(iT.Provider,{value:u,children:d})}),iO=c.forwardRef(function(e,t){let{className:n,render:r,id:i,style:l,...o}=e,{setLabelId:a}=function(){let e=c.useContext(iT);if(void 0===e)throw Error(e1(56));return e}(),s=tB(i);return x(()=>{a(s)},[s,a]),ny("div",e,{ref:t,props:[{id:s},o]})}),iV=c.forwardRef(function(e,t){let{className:n,render:r,orientation:i="horizontal",style:l,...o}=e;return ny("div",e,{state:{orientation:i},ref:t,props:[{role:"separator","aria-orientation":i},o]})});e.s(["Arrow",0,iM,"Backdrop",0,n8,"Group",0,iL,"GroupLabel",0,iO,"Icon",0,n_,"Item",0,iC,"ItemIndicator",0,iN,"ItemText",0,ik,"Label",0,nb,"List",0,ib,"Popup",0,im,"Portal",0,n9,"Positioner",0,rK,"Root",0,function(e){let t,{id:n,value:r,defaultValue:i=null,onValueChange:l,open:o,defaultOpen:a=!1,onOpenChange:u,name:p,form:g,autoComplete:v,disabled:b=!1,readOnly:w=!1,required:S=!1,modal:C=!0,actionsRef:E,inputRef:k,onOpenChangeComplete:R,items:M,multiple:P=!1,itemToStringLabel:O,itemToStringValue:V,isItemEqualToValue:_=tX,highlightItemOnHover:H=!0,children:W}=e,{clearErrors:B}=c.useContext(ne),{setDirty:U,setTouched:z,setFocused:q,shouldValidateOnChange:G,validityData:K,setFilled:J,name:Q,disabled:ee,validation:et,validationMode:el}=tW(),ea=tq({id:n}),es=ee||b,ef=Q??p,[ep,em]=y({controlled:r,default:P?i??T:i,name:"Select",state:"value"}),[eS,eC]=y({controlled:o,default:a,name:"Select",state:"open"}),eN=c.useRef([]),eE=c.useRef([]),ek=c.useRef(null),eM=c.useRef(null),eA=c.useRef(0),eI=c.useRef(null),eB=c.useRef([]),eU=c.useRef(!1),ez=c.useRef(!1),eK=c.useRef(null),eJ=c.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),eQ=c.useRef(!1),{mounted:e0,setMounted:e1,transitionStatus:e2}=tY(eS),{openMethod:e4,triggerProps:e5}=function(e){let t,n,[r,i]=c.useState(null),l=j((t,n)=>{e||i(n||(eR?"touch":""))});nt(e,t=>{t&&!e&&i(null)});let{onClick:o,onPointerDown:a}=(t=c.useRef(""),n=c.useCallback(e=>{e.defaultPrevented||(t.current=e.pointerType,l(e,e.pointerType))},[l]),{onClick:c.useCallback(e=>{0===e.detail?l(e,"keyboard"):(l(e,"pointerType"in e?e.pointerType:t.current),t.current="")},[l]),onPointerDown:n});return c.useMemo(()=>({openMethod:r,triggerProps:{onClick:o,onPointerDown:a}}),[r,o,a])}(eS),e3=m(()=>new I({id:ea,labelId:void 0,modal:C,multiple:P,itemToStringLabel:O,itemToStringValue:V,isItemEqualToValue:_,value:ep,open:eS,mou
1nted:e0,transitionStatus:e2,items:M,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,e9=A(e3,t2.activeIndex,void 0,void 0,void 0),e7=A(e3,t2.selectedIndex,void 0,void 0,void 0),te=A(e3,t2.triggerElement,void 0,void 0,void 0),tt=A(e3,t2.positionerElement,void 0,void 0,void 0),tn=function(e){let[t,n]=c.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}(e4),tr=e4??tn,tl=c.useMemo(()=>P&&Array.isArray(ep)&&0===ep.length?"":t0(ep,V),[P,ep,V]),to=c.useMemo(()=>P&&Array.isArray(ep)?ep.map(e=>t0(e,V)):t0(ep,V),[P,ep,V]);!function(e,t){let{enabled:n=!0,getValue:r,id:i,value:l}=t,{registerFieldControl:o}=tW(),a=c.useRef(null);a.current||(a.current=Symbol()),x(()=>{let t=a.current;if(t&&n)return o(t,{controlRef:e,getValue:r,id:i,value:l}),()=>{o(t,void 0)}},[e,n,r,i,o,l])}(N(e3.state.triggerElement),{id:ea,value:ep,getValue:j(()=>to)});let ta=c.useRef(ep);x(()=>{ep!==ta.current&&e3.set("forceMount",!0)},[e3,ep]),x(()=>{J(P?Array.isArray(ep)&&ep.length>0:null!=ep)},[P,ep,J]),x(function(){if(eS)return;let e=eB.current;if(P){let t=Array.isArray(ep)?ep:[];if(0===t.length)return void e3.set("selectedIndex",null);let n=tG(e,t[t.length-1],_);return void e3.set("selectedIndex",-1===n?null:n)}let t=tG(e,ep,_);e3.set("selectedIndex",-1===t?null:t)},[P,eS,ep,eB,_,e3]),nt(ep,()=>{B(ef),U(ep!==K.initialValue),G()?et.commit(ep):et.commit(ep,!0)});let ts=j((e,t)=>{if(u?.(e,t),!t.isCanceled&&(eC(e),e||t.reason!==eH.focusOut&&t.reason!==eH.outsidePress||(z(!0),q(!1),"onBlur"===el&&et.commit(ep)),!e&&null!==e3.state.activeIndex)){let e=eN.current[e3.state.activeIndex];queueMicrotask(()=>{e?.setAttribute("tabindex","-1")})}}),tc=j(()=>{e1(!1),e3.update({activeIndex:null,openMethod:null}),R?.(!1)});t7({enabled:!E,open:eS,ref:ek,onComplete(){eS||tc()}}),c.useImperativeHandle(E,()=>({unmount:tc}),[tc]);let tu=j((e,t)=>{l?.(e,t),t.isCanceled||em(e)}),td=j(()=>{let e=e3.state.listElement||ek.current;if(!e)return;let t=nr(e.scrollHeight,e.clientHeight),n=ni(e.scrollTop,t),r=n>0,i=n<t;e3.state.scrollUpArrowVisible!==r&&e3.set("scrollUpArrowVisible",r),e3.state.scrollDownArrowVisible!==i&&e3.set("scrollDownArrowVisible",i)}),tf=e6({open:eS,onOpenChange:ts,elements:{reference:te,floating:tt}}),{getReferenceProps:tp,getFloatingProps:tm,getItemProps:th}=function(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=e.map(e=>e?.trigger),l=c.useCallback(t=>e8(t,e,"reference"),t),o=c.useCallback(t=>e8(t,e,"floating"),n),a=c.useCallback(t=>e8(t,e,"item"),r),s=c.useCallback(t=>e8(t,e,"trigger"),i);return c.useMemo(()=>({getReferenceProps:l,getFloatingProps:o,getItemProps:a,getTriggerProps:s}),[l,o,a,s])}([function(e,t={}){let n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,{enabled:i=!0,event:l="click",toggle:o=!0,ignoreMouse:a=!1,stickIfOpen:s=!0,touchOpenDelay:u=0,reason:d=eH.triggerPress}=t,f=c.useRef(void 0),p=D(),m=F(),h=c.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){let t=f.current,i=e.nativeEvent,c=n.select("open");if(0!==e.button||"click"===l||eO(t,!0)&&a)return;let h=r.current.openEvent,g=h?.type,v=n.select("domReferenceElement")!==e.currentTarget,y=c&&v||!(c&&o&&(!h||!s||"click"===g||"mousedown"===g)),x=ed(i);if(eb(x)){let e=e_(d,i,x);y&&"touch"===t&&u>0?m.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(y,e);return}let b=e.currentTarget;p.request(()=>{let e=e_(d,i,b);y&&"touch"===t&&u>0?m.start(u,()=>{n.setOpen(!0,e)}):n.setOpen(y,e)})},onClick(e){if("mousedown-only"===l)return;let t=f.current;if("mousedown"===l&&t){f.current=void 0;return}if(eO(t,!0)&&a)return;let i=n.select("open"),c=r.current.openEvent,p=n.select("domReferenceElement")!==e.currentTarget,h=i&&p||!(i&&o&&(!c||!s||eV(c))),g=e_(d,e.nativeEvent,e.currentTarget);h&&"touch"===t&&u>0?m.start(u,()=>{n.setOpen(!0,g)}):n.setOpen(h,g)},onKeyDown(){f.current=void 0}}),[r,l,a,n,s,o,p,m,u,d]);return c.useMemo(()=>i?{reference:h}:L,[i,h])}
1(tf,{enabled:!w&&!es,event:"mousedown"}),function(e,t={}){let n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),{dataRef:l}=n.context,{enabled:o=!0,escapeKey:a=!0,outsidePress:s=!0,outsidePressEvent:u="sloppy",referencePress:d=eG,referencePressEvent:f="sloppy",bubbles:p,externalTree:m}=t,h=eY(m),g=j("function"==typeof s?s:()=>!1),v="function"==typeof s?g:s,y=!1!==v,x=j(()=>u),b=c.useRef(!1),w=c.useRef(!1),S=c.useRef(!1),{escapeKey:C,outsidePress:N}={escapeKey:"boolean"==typeof p?p:p?.escapeKey??!1,outsidePress:"boolean"==typeof p?p:p?.outsidePress??!0},E=c.useRef(null),k=F(),R=F(),M=j(()=>{R.clear(),l.current.insideReactTree=!1}),A=c.useRef(!1),I=c.useRef(""),P=j(d),T=j(e=>{if(!r||!o||!a||"Escape"!==e.key||A.current)return;let t=l.current.floatingContext?.nodeId,i=h?eW(h.nodesRef.current,t):[];if(!C&&i.length>0){let e=!0;if(i.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let s="nativeEvent"in e?e.nativeEvent:e,c=e_(eH.escapeKey,s);n.setOpen(!1,c),C||c.isPropagationAllowed||e.stopPropagation()}),L=j(()=>{l.current.insideReactTree=!0,R.start(0,M)});c.useEffect(()=>{if(!r||!o)return;l.current.__escapeKeyBubbles=C,l.current.__outsidePressBubbles=N;let e=new $,t=new $;function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,w.current=!1}function u(){let e=I.current,t=x(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function d(e){let t=l.current.floatingContext?.nodeId,r=h&&eW(h.nodesRef.current,t).some(t=>ex(e,t.context?.elements.floating));return ex(e,n.select("floatingElement"))||ex(e,n.select("domReferenceElement"))||r}function f(e){let r;if("intentional"===(r=u())&&"click"!==e.type||"sloppy"===r&&"click"===e.type||l.current.insideReactTree)return void M();let i=ed(e),o=`[${eX("inert")}]`,a=Y(i)?i.getRootNode():null,s=Array.from((Z(a)?a:eF(n.select("floatingElement"))).querySelectorAll(o)),c=n.context.triggerElements;if(i&&(c.hasElement(i)||c.hasMatchingElement(e=>eu(e,i))))return;let f=Y(i)?i:null;for(;f&&!er(f);){let e=eo(f);if(er(e)||!Y(e))break;f=e}if(s.length&&Y(i)&&!i.matches("html,body")&&!eu(i,n.select("floatingElement"))&&s.every(e=>!eu(f,e)))return;if(X(i)&&!("touches"in e)){let t=er(i),n=ei(i),r=/auto|scroll/,l=t||r.test(n.overflowX),o=t||r.test(n.overflowY),a=l&&i.clientWidth>0&&i.scrollWidth>i.clientWidth,s=o&&i.clientHeight>0&&i.scrollHeight>i.clientHeight,c="rtl"===n.direction,u=s&&(c?e.offsetX<=i.offsetWidth-i.clientWidth:e.offsetX>i.clientWidth),d=a&&e.offsetY>i.clientHeight;if(u||d)return}if(d(e))return;if("intentional"===u()&&S.current){t.clear(),S.current=!1;return}if("function"==typeof v&&!v(e))return;let p=l.current.floatingContext?.nodeId,m=h?eW(h.nodesRef.current,p):[];if(m.length>0){let e=!0;if(m.forEach(t=>{t.context?.open&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}n.setOpen(!1,e_(eH.outsidePress,e)),M()}function p(e){if("sloppy"!==u()||!n.select("open")||!o||ex(e,n.select("floatingElement"))||ex(e,n.select("domReferenceElement")))return;let t=e.touches[0];t&&(E.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},k.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function m(e,t){let n=ed(e);if(!n)return;let r=eD(n,e.type,()=>{t(e),r()})}function g(e){k.clear(),"pointerdown"===e.type&&(I.current=e.pointerType),("mousedown"!==e.type||!E.current||E.current.dismissOnMouseDown)&&m(e,e=>{if("pointerdown"===e.type)"sloppy"!==u()||"touch"===e.pointerType||!n.select("open")||!o||ex(e,n.select("floatingElement"))||ex(e,n.select("domReferenceElement"))||f(e);else f(e)})}function j(e){if(!b.current)return;let n=w.current;if(c(),"intentional"===u()){if("pointercancel"===e.type){n&&s();return}d(e)||(n?s():("function"!=typeof v||v(e))&&(t.clear(),S.current=!0,M()))}}function R(e){if("sloppy"!==u()||!E.current||ex(e,n.select("floatingElement"))||ex(e,n.select("domReferenceElement")))return;let t=e.touches[0];if(!t)return;let r=Math.abs(t.clientX-E.current.startX),i=Math.abs(t.clientY-E.current.startY),l=Math.sqrt(r*r+i*i);l>5&&(E.current.dismissOnTouchEnd=!0),l>10&&(f(e),k.clear(),E.current=null)}function P(e){"sloppy"!==u()||!E.current||ex(e,n.select("floatingElement"))||ex(e,n.select("domReferenceElement"))||(E.current.dismissOnTouchEnd&&f(e),k.clear(),E.current=null)}let L=eF(i),O=e$(a&&e$(eD(L,"keydown",T),eD(L,"compositionstart",function(){e.clear(),A.current=!0}),eD(L,"compositionend",function(){e.start(5*!!en(),()=>{A.current=!1})}
1)),y&&e$(eD(L,"click",g,!0),eD(L,"pointerdown",g,!0),eD(L,"pointerup",j,!0),eD(L,"pointercancel",j,!0),eD(L,"mousedown",g,!0),eD(L,"mouseup",j,!0),eD(L,"touchstart",function(e){I.current="touch",m(e,p)},!0),eD(L,"touchmove",function(e){m(e,R)},!0),eD(L,"touchend",function(e){m(e,P)},!0)));return()=>{O(),e.clear(),t.clear(),c(),S.current=!1}},[l,i,a,y,v,r,o,C,N,T,M,x,h,n,k]),c.useEffect(M,[v,M]);let O=c.useMemo(()=>({onKeyDown:T,[eZ[f]]:e=>{P()&&n.setOpen(!1,e_(eH.triggerPress,e.nativeEvent))},..."intentional"!==f&&{onClick(e){P()&&n.setOpen(!1,e_(eH.triggerPress,e.nativeEvent))}}}),[T,n,f,P]),V=j(e=>{if(!r||!o||0!==e.button)return;let t=ed(e.nativeEvent);eu(n.select("floatingElement"),t)&&(b.current||(b.current=!0,w.current=!1))}),_=j(e=>{!r||!o||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(w.current=!0)}),H=c.useMemo(()=>({onKeyDown:T,onPointerDown:_,onMouseDown:_,onClickCapture:L,onMouseDownCapture(e){L(),V(e)},onPointerDownCapture(e){L(),V(e)},onMouseUpCapture:L,onTouchEndCapture:L,onTouchMoveCapture:L}),[T,L,V,_]);return c.useMemo(()=>o?{reference:O,floating:H,trigger:O}:{},[o,O,H])}(tf,{bubbles:!1}),function(e,t){let n="rootStore"in e?e.rootStore:e,r=n.useState("open"),i=n.useState("floatingElement"),l=n.useState("domReferenceElement"),o=n.context.dataRef,{listRef:a,activeIndex:s,onNavigate:u=()=>{},enabled:d=!0,selectedIndex:f=null,allowEscape:p=!1,loopFocus:m=!1,nested:h=!1,rtl:g=!1,virtual:v=!1,focusItemOnOpen:y="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:w=!0,disabledIndices:S,orientation:C="vertical",parentOrientation:E,cols:k=1,id:R,resetOnPointerLeave:M=!0,externalTree:A}=t,I=N(ej(i)),P=eq(),T=eY(A);x(()=>{o.current.orientation=C},[o,C]);let L=ew(l),O=c.useRef(y),V=c.useRef(f??-1),_=c.useRef(null),H=c.useRef(!0),D=j(e=>{u(-1===V.current?null:V.current,e)}),$=c.useRef(D),F=c.useRef(!!i),W=c.useRef(r),B=c.useRef(!1),U=c.useRef(!1),z=c.useRef(null),q=N(S),Y=N(r),Z=N(f),G=N(M),K=j(()=>{function e(e){v?T?.events.emit("virtualfocus",e):z.current=tM(e,{sync:B.current,preventScroll:!0})}let t=a.current[V.current],n=U.current;t&&e(t),(B.current?e=>e():requestAnimationFrame)(()=>{let r=a.current[V.current]||t;!r||(t||e(r),ee&&(n||!H.current)&&r.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});x(()=>{d&&(r&&i?(V.current=f??-1,O.current&&null!=f&&(U.current=!0,D())):F.current&&(V.current=-1,$.current()))},[d,r,i,f,D]),x(()=>{if(d){if(!r){B.current=!1;return}if(i)if(null==s){if(B.current=!1,null!=Z.current)return;if(F.current&&(V.current=-1,K()),(!W.current||!F.current)&&O.current&&(null!=_.current||!0===O.current&&null==_.current)){let e=0,t=()=>{null==a.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(V.current=null==_.current||tP(_.current,C,g)||h?tS(a):tC(a),_.current=null,D())};t()}}else tj(a.current,s)||(V.current=s,K(),U.current=!1)}},[d,r,i,s,Z,h,a,C,g,D,K,q]),x(()=>{if(!d||i||!T||v||!F.current)return;let e=T.nodesRef.current,t=e.find(e=>e.id===P)?.context?.elements.floating,n=ec(eF(i)),r=e.some(e=>e.context&&eu(e.context.elements.floating,n));t&&!r&&H.current&&t.focus({preventScroll:!0})},[d,i,T,P,v]),x(()=>{$.current=D,W.current=r,F.current=!!i}),x(()=>{r||(_.current=null,O.current=y)},[r,y]);let J=null!=s,Q=j(e=>{if(!Y.current)return;let t=a.current.indexOf(e.currentTarget);-1!==t&&(V.current!==t||s!==t)&&(V.current=t,D(e))}),ee=c.useMemo(()=>({onFocus(e){B.current=!0,Q(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){B.current=!0,U.current=!1,b&&Q(e)},onPointerLeave(e){if(!Y.current||!H.current||"touch"===e.pointerType)return;B.current=!0;let t=e.relatedTarget;if(!(!b||a.current.includes(t))&&G.current&&(z.current?.(),z.current=null,V.current=-1,D(e),!v)){let e=I.current,t=ec(eF(e));e&&eu(e,t)&&e.focus({preventScroll:!0})}}}),[Q,Y,I,b,a,D,G,v]),et=c.useCallback(()=>E??T?.nodesRef.current.find(e=>e.id===P)?.context?.dataRef?.current.orientation,[P,T,E]),en=j(e=>{var t,i;if(H.current=!1,B.current=!0,229===e.which||!Y.current&&e.currentTarget===I.current)return;if(h&&(t=e.key,"both"===C||"horizontal"===C&&k&&k>1?"Escape"===t:tA(C,g?t===eg:t===eh,t===ev))){tI(e.key,et())||eP(e),n.setOpen(!1,e_(eH.listNavigation,e.nativeEvent)),X(l)&&(v?T?.events.emit("virtualfocus",l):l.focus());return}let o=V.current,s=tS(a,S),c=tC(a,S);if(L||("Home"===e.key&&(eP(e),V.current=s,D(e)),"End"===e.key&&(eP(e),V.current=c,D(e))),k>1){let t,n,r=Array.from({length:a.current.length},()=>({width:1,height:1})),l=(t=[],n=0,r.forEach(({width:e,height:r},i)=>{let l=!1;for(;!l;){let o=[];for(let t=0;t<e;t+=1)for(let e=0;e<r;e+=1)o.push(n+t+e*k);n%k+e<=k&&o.every(e=>
1null==t[e])?(o.forEach(e=>{t[e]=i}),l=!0):n+=1}}),[...t]),o=l.findIndex(e=>null!=e&&!tE(a.current,e,S)),u=l.reduce((e,t,n)=>null==t||tE(a.current,t,S)?e:n,-1),d=l[function(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:l,cols:o,disabledIndices:a,minIndex:s,maxIndex:c,prevIndex:u,stopEvent:d=!1}){let f,p=u;if(t.key===ev?f="up":t.key===ey&&(f="down"),f){let n=[],l=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(null==e)return;h+=1;let o=e.closest('[role="row"]');o&&(m=!0),(o!==t||-1===r)&&(t=o,n[r+=1]=[]),n[r].push(i),l[i]=r})}let g=!1,v=0;if(m)for(let e of n){let t=e.length;t>v&&(v=t),t!==o&&(g=!0)}let y=g&&h<e.length,x=v||o;d&&eP(t);let b=(o=>{if(!g||-1===u)return;let s=l[u];if(null==s)return;let c=n[s].indexOf(u),d="up"===o?-1:1;for(let o=s+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||y)return;if(o=o<0?n.length-1:0,i){let e=Math.min(c,n[o].length-1);o=l[i(t,u,n[o][e]??n[o][0])]??o}}let s=n[o];for(let t=Math.min(c,s.length-1);t>=0;t-=1){let n=s[t];if(!tE(e,n,a))return n}}})(f)??(t=>{if(!y||-1===u)return;let n=u%x,i="up"===t?-x:x,l=c-c%x,o=ti(c/x)+1;for(let t=u-n+i,s=0;s<o;s+=1,t+=i){if(t<0||t>c){if(!r)return;t=t<0?l:0}let i=Math.min(t+x-1,c);for(let r=Math.min(t+n,i);r>=t;r-=1)if(!tE(e,r,a))return r}})(f);if(void 0!==b)p=b;else if(-1===u)p="up"===f?c:s;else if(p=tN(e,{startingIndex:u,amount:x,decrement:"up"===f,disabledIndices:a}),r){if("up"===f&&(u-x<s||p<0)){let e=u%x,n=c%x,r=c-(n-e);p=n===e?c:n>e?r:r-x,i&&(p=i(t,u,p))}"down"===f&&u+x>c&&(p=tN(e,{startingIndex:u%x-x,amount:x,disabledIndices:a}),i&&(p=i(t,u,p)))}tj(e,p)&&(p=u)}if("both"===n){let n=ti(u/o);t.key===(l?eh:eg)&&(d&&eP(t),u%o!=o-1?(p=tN(e,{startingIndex:u,disabledIndices:a}),r&&tw(p,o,n)&&(p=tN(e,{startingIndex:u-u%o-1,disabledIndices:a}),i&&(p=i(t,u,p)))):r&&(p=tN(e,{startingIndex:u-u%o-1,disabledIndices:a}),i&&(p=i(t,u,p))),tw(p,o,n)&&(p=u)),t.key===(l?eg:eh)&&(d&&eP(t),u%o!=0?(p=tN(e,{startingIndex:u,decrement:!0,disabledIndices:a}),r&&tw(p,o,n)&&(p=tN(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:a}),i&&(p=i(t,u,p)))):r&&(p=tN(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:a}),i&&(p=i(t,u,p))),tw(p,o,n)&&(p=u));let s=ti(c/o)===n;tj(e,p)&&(r&&s?(p=t.key===(l?eg:eh)?c:tN(e,{startingIndex:u-u%o-1,disabledIndices:a}),i&&(p=i(t,u,p))):p=u)}return p}(l.map(e=>null!=e?a.current[e]:null),{event:e,orientation:C,loopFocus:m,rtl:g,cols:k,disabledIndices:(i=[...("function"!=typeof S?S:null)||a.current.map((e,t)=>tE(a.current,t,S)?t:void 0),void 0],l.flatMap((e,t)=>i.includes(e)?[t]:[])),minIndex:o,maxIndex:u,prevIndex:function(e,t,n,r,i){if(-1===e)return -1;let l=n.indexOf(e),o=t[e];switch(i){case"tl":return l;case"tr":if(!o)return l;return l+o.width-1;case"bl":if(!o)return l;return l+(o.height-1)*r;case"br":return n.lastIndexOf(e);default:return -1}}(V.current>c?s:V.current,r,l,k,e.key===ey?"bl":e.key===(g?eh:eg)?"tr":"tl"),stopEvent:!0})];if(null!=d&&(V.current=d,D(e)),"both"===C)return}if(tI(e.key,C)){if(eP(e),r&&!v&&ec(e.currentTarget.ownerDocument)===e.currentTarget){V.current=tP(e.key,C,g)?s:c,D(e);return}tP(e.key,C,g)?m?o>=c?p&&o!==a.current.length?V.current=-1:(B.current=!1,V.current=s):V.current=tN(a.current,{startingIndex:o,disabledIndices:S}):V.current=Math.min(c,tN(a.current,{startingIndex:o,disabledIndices:S})):m?o<=s?p&&-1!==o?V.current=a.current.length:(B.current=!1,V.current=c):V.current=tN(a.current,{startingIndex:o,decrement:!0,disabledIndices:S}):V.current=Math.max(s,tN(a.current,{startingIndex:o,decrement:!0,disabledIndices:S})),tj(a.current,V.current)&&(V.current=-1),D(e)}}),er=c.useMemo(()=>v&&r&&J&&{"aria-activedescendant":`${R}-${s}`},[v,r,J,R,s]),ei=c.useMemo(()=>({"aria-orientation":"both"===C?void 0:C,...!L?er:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&r&&!v){let t=ed(e.nativeEvent);if(t&&!eu(I.current,t))return;eP(e),n.setOpen(!1,e_(eH.focusOut,e.nativeEvent)),X(l)&&l.focus();return}en(e)},onPointerMove(){H.current=!0}}),[er,en,I,C,L,n,r,v,l]),el=c.useMemo(()=>{function e(e){"auto"===y&&eT(e.nativeEvent)&&(O.current=!v)}function t(e){O.current=y,"auto"===y&&eL(e.nativeEvent)&&(O.current=!0)}return{onKeyDown(e){var t;let r=n.select("open");H.current=!1;let i=e.key.startsWith("Arrow"),l=(t=e.key,tA(et(),g?t===eh:t===eg,t===ey)),o=tI(e.key,C),s=(h?l:o)||"Enter"===e.key||""===e.key.trim();if(v&&r)return en(e);if(r||w||!i){if(s){let t=tI(e.key,et());_.current=h&&t?null:e.key}if(h){l&&(eP(e),r?(V.current=tS(a,q.current),D(e)):n.setOpen(!0,e_(eH.listNavigation,e.nativeEvent,e.currentTarget)));return}o&&(null!=Z.current&&(V.current=Z.current),eP(e),!r&&w?n.setOpen(!0,e_(eH.listNavigation,e.nativeEvent,e.currentTarget)):en(e),r&&D(e))}},onFocus(e){n.select("open")&&!v&&(V.current=-1,D(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[en,q,y,a,h,D,n,w,C,et,g,Z,v]),eo=c.useMemo(()=>({...er,...el}),[er,el]);return c.useMemo(()=>d?{reference:eo,floating:ei,item:ee,trigger:el}:{},[d,eo,ei,el,ee])}
1(tf,{enabled:!w&&!es,listRef:eN,activeIndex:e9,selectedIndex:e7,disabledIndices:T,onNavigate(e){(null!==e||eS)&&e3.set("activeIndex",e)},focusItemOnHover:H}),function(e,t){let n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,i=n.useState("open"),{listRef:l,elementsRef:o,activeIndex:a,onMatch:s,onTypingChange:u,enabled:d=!0,resetMs:f=750,selectedIndex:p=null}=t,m=F(),h=c.useRef(""),g=c.useRef(p??a??-1),v=c.useRef(null);x(()=>{(i||null===p)&&(m.clear(),v.current=null,""!==h.current&&(h.current=""))},[i,p,m]),x(()=>{i&&""===h.current&&(g.current=p??a??-1)},[i,p,a]);let y=j(e=>{e?r.current.typing||(r.current.typing=e,u?.(e)):r.current.typing&&(r.current.typing=e,u?.(e))}),b=j(e=>{function t(e,n,r=0){if(0===e.length)return -1;let i=(r%e.length+e.length)%e.length,l=n.toLocaleLowerCase();for(let t=0;t<e.length;t+=1){let n=(i+t)%e.length,r=e[n];if(r?.toLocaleLowerCase().startsWith(l)&&function(e){let t=o?.current[e];return!t||tk(t)}(n))return n}return -1}let n=l.current;if(h.current.length>0&&" "===e.key&&(eP(e),y(!0)),h.current.length>0&&" "!==h.current[0]&&-1===t(n,h.current)&&" "!==e.key&&y(!1),null==n||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;i&&" "!==e.key&&(eP(e),y(!0));let r=""===h.current;r&&(g.current=p??a??-1),n.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&h.current===e.key&&(h.current="",g.current=v.current),h.current+=e.key,m.start(f,()=>{h.current="",g.current=v.current,y(!1)});let c=r?p??a??-1:g.current,u=t(n,h.current,(c??0)+1);-1!==u?(s?.(u),v.current=u):" "!==e.key&&(h.current="",y(!1))}),w=j(e=>{let t=e.relatedTarget,r=n.select("domReferenceElement"),i=n.select("floatingElement"),l=eu(r,t),o=eu(i,t);l||o||(m.clear(),h.current="",g.current=v.current,y(!1))}),S=c.useMemo(()=>({onKeyDown:b,onBlur:w}),[b,w]),C=c.useMemo(()=>({onKeyDown:b,onBlur:w}),[b,w]);return c.useMemo(()=>d?{reference:S,floating:C}:{},[d,S,C])}(tf,{enabled:!w&&!es&&(eS||!P),listRef:eE,activeIndex:e9,selectedIndex:e7,onMatch(e){eS?e3.set("activeIndex",e):tu(eB.current[e],e_("none"))},onTypingChange(e){eU.current=e}})]),tg=c.useMemo(()=>na(tp(),e5,ea?{id:ea}:L),[tp,e5,ea]);(t=c.useRef(!0)).current&&(t.current=!1,(()=>{e3.update({popupProps:tm(),triggerProps:tg})})()),x(()=>{e3.update({id:ea,modal:C,multiple:P,value:ep,open:eS,mounted:e0,transitionStatus:e2,popupProps:tm(),triggerProps:tg,items:M,itemToStringLabel:O,itemToStringValue:V,isItemEqualToValue:_,openMethod:tr})},[e3,ea,C,P,ep,eS,e0,e2,tm,tg,M,O,V,_,tr]);let tv=c.useMemo(()=>({store:e3,name:ef,required:S,disabled:es,readOnly:w,multiple:P,highlightItemOnHover:H,setValue:tu,setOpen:ts,listRef:eN,popupRef:ek,scrollHandlerRef:eM,handleScrollArrowVisibility:td,scrollArrowsMountedCountRef:eA,getItemProps:th,events:tf.context.events,valueRef:eI,valuesRef:eB,labelsRef:eE,typingRef:eU,selectionRef:eJ,selectedItemTextRef:eK,validation:et,onOpenChangeComplete:R,keyboardActiveRef:ez,alignItemWithTriggerActiveRef:eQ,initialValueRef:ta}),[e3,ef,S,es,w,P,H,tu,ts,th,tf.context.events,et,R,td]),ty=h(k,et.inputRef),tx=P&&Array.isArray(ep)&&ep.length>0,tb=P?void 0:ef,tR=c.useMemo(()=>P&&Array.isArray(ep)&&ef?ep.map(e=>{let t=t0(e,V);return(0,s.jsx)("input",{type:"hidden",form:g,name:ef,value:t},t)}):null,[P,ep,g,ef,V]);return(0,s.jsx)(tT.Provider,{value:tv,children:(0,s.jsxs)(tL.Provider,{value:tf,children:[W,(0,s.jsx)("input",{...et.getInputValidationProps({onFocus(){e3.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,n=e_(eH.none,e.nativeEvent);e3.set("forceMount",!0),queueMicrotask(function(){if(P)return;let e=eB.current.find(e=>t0(e,V).toLowerCase()===t.toLowerCase()||tQ(e,O).toLowerCase()===t.toLowerCase());null!=e&&(U(e!==K.initialValue),tu(e,n),G()&&et.commit(e))})}}),id:ea&&null==tb?`${ea}-hidden-input`:void 0,form:g,name:tb,autoComplete:v,value:tl,disabled:es,required:S&&!tx,readOnly:w,ref:ty,style:ef?f:d,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),tR]})})},"ScrollDownArrow",0,iI,"ScrollUpArrow",0,iP,"Separator",0,iV,"Trigger",0,nL,"Value",0,nV],53469);var i_=e.i(53469),i_=i_,iH=e.i(21160);function iD(e){return(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,s.jsx)("path",{d:"M11.3978 14.5L7.60218 10.7043L8.80652 9.5L12 12.6935L15.1935 9.5L16.3978 10.7043L12.6022 14.5L11.3978 14.5Z",fill:"#3C3021"})})}e.s(["default",0,function({items:e,value:t,onValueChange:n,className:r}){return(0,s.jsx)("div",{className:(0,iH.cn)("flex flex-col gap-1",r),children:(0,s.jsxs)(i_.Root,{items:e,value:t,onValueChange:n,children:[(0,s.jsxs)(i_.Trigger,{className:(0,iH.cn)("bg-offWhite flex h-12 w-full items-center justify-between gap-3 rounded-[8px] px-3 select-none"),"aria-label":"Select",children:[(0,s.jsx)(i_.Value,{}),(0,s.jsx)(i_.Icon,{className:"flex",children:(0,s.jsx)(iD,{})})]}),(0,s.jsx)(i_.Portal,{children:(0,s.jsx)(i_.Positioner,{className:"z-10 outline-hidden select-none",sideOffset:8,alignItemWithTrigger:!1,children:(0,s.jsx)(i_.Popup,{className:(0,iH.cn)("group bg-offWhite min-w-[var(--anchor-width)] origin-[var(--transform-origin)] rounded-[8px] bg-clip-padding outline-1 outline-gray-200 transition-[transform,scale,opacity] data-[ending-style]:scale-90 data-[ending-style]:opacity-0 data-[side=none]:data-[ending-style]:transition-none data-[starting-style]:scale-90 data-[starting-style]:opacity-0 data-[side=none]:data-[starting-style]:scale-100 data-[side=none]:data-[starting-style]:opacity-100 data-[side=none]:data-[starting-style]:transition-none"),children:(0,s.jsx)(i_.List,{className:"relative max-h-[var(--available-height)] scroll-py-6 overflow-y-auto py-1",children:e.map(({label:e,value:t})=>(0,s.jsx)(i_.Item,{value:t,className:(0,iH.cn)("cursor-default items-center gap-2 px-3 py-2 outline-hidden select-none data-[highlighted]:relative data-[highlighted]:z-0 data-[highlighted]:text-gray-50 data-[highlighted]:before:absolute data-[highlighted]:before:inset-x-1 data-[highlighted]:before:inset-y-0 data-[highlighted]:before:z-[-1] data-[highlighted]:before:rounded-sm data-[highlighted]:before:bg-gray-900 pointer-coarse:py-2.5 pointer-coarse:text-[0.925rem]"),children:(0,s.jsx)(i_.ItemText,{children:e})},e))})})})})]})})}],5220)},73281,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(19160),i=e.i(21160),l=e.i(83183),o=e.i(29785),a=e.i(5220),s=e.i(14028),c=e.i(6722),u=e.i(19534);e.s(["default",0,function({slice:e,articles:d}){let f=e?.primary?.title,p=e?.primary?.text,m=e?.primary?.featuredArticle,h=d?.map(e=>e?.data?.categories?.map(e=>e?.category?.data?.name))?.flat(),g=[{value:"all",label:"All content"}
1,...([...new Set(h)].filter(Boolean)).map(e=>({value:e,label:e}))],[v,y]=(0,n.useState)(g?.[0]?.value),x=d?.filter(e=>{let t=e?.data?.categories?.map(e=>e?.category?.data?.name);return e?.uid!==m?.uid&&("all"===v||!!t?.includes(v))}),b=x?.length,[w,j]=(0,n.useState)(1),S=m?.data?.title,C=m?.data?.description,N=m?.data?.categories?.[0]?.category?.data?.name,E=m?.data?.heroImage;return(0,t.jsxs)("div",{className:(0,i.cn)(c.containerStyles),children:[(0,t.jsx)(s.default,{title:f,text:p,titleTag:"h1"}),m?.uid&&(0,t.jsxs)(r.PrismicNextLink,{field:m,className:"group/card mt-12 md:grid md:grid-cols-12 md:items-center md:gap-x-6 lg:mt-[60px]",children:[(0,t.jsxs)("div",{className:(0,i.cn)("md:col-span-5"),children:[N&&(0,t.jsx)("div",{className:(0,i.cn)(u.labelStyles,"mb-4"),children:N}),S&&(0,t.jsx)("h3",{className:(0,i.cn)(u.heading3Styles),children:S}),C&&(0,t.jsx)("div",{className:"mt-6",children:C})]}),(0,t.jsx)("div",{className:(0,i.cn)("md:col-span-6 md:col-start-7"),children:(0,t.jsx)("div",{className:"mt-8 overflow-hidden rounded-[8px] md:mt-0",children:(0,t.jsx)(o.default,{field:E,className:"aspect-[5/4] object-cover transition duration-300 lg:group-hover/card:scale-105"})})})]}),(0,t.jsx)("div",{className:"mt-8 flex flex-col gap-y-2 lg:mt-[60px] lg:flex-row lg:justify-between",children:(0,t.jsx)(a.default,{items:g,value:v,onValueChange:y})}),(0,t.jsxs)("div",{className:"mt-12 grid gap-y-12 lg:mt-[60px] lg:grid-cols-3 lg:gap-x-6 lg:gap-y-[60px]",children:[x?.map((e,n)=>{if(n>=12*w)return null;let l=e?.uid,a=e?.data?.heroImage,s=e?.data?.title,c=e?.data?.description,d=e?.data?.categories?.[0]?.category?.data?.name;return(0,t.jsxs)(r.PrismicNextLink,{field:e,className:"group/card block lg:col-span-1",children:[(0,t.jsx)("div",{className:"mb-4 overflow-hidden rounded-[8px]",children:(0,t.jsx)(o.default,{field:a,className:"aspect-[5/4] object-cover transition duration-300 lg:group-hover/card:scale-105"})}),d&&(0,t.jsx)("div",{className:(0,i.cn)(u.labelStyles,"mb-4"),children:d}),(0,t.jsx)("div",{className:(0,i.cn)(u.heading5Styles),children:s}),c&&(0,t.jsx)("div",{className:"mt-4",children:c})]},l)}),b>12*w&&(0,t.jsx)(l.default,{onClick:()=>j(w+1),isButton:!0,text:"See more",type:"secondary"})]})]})}])},25705,e=>{"use strict";var t=e.i(71645),n="https://embed.cloudflarestream.com/embed/sdk.latest.js",r=function(){if("u">typeof window)return window.Stream};function i(e,n,r){(0,t.useEffect)(function(){n.current&&void 0!==r&&(n.current[e]=r)},[e,r,n])}function l(e,n,r){void 0===r&&(r=o),(0,t.useEffect)(function(){if(n.current){var t=n.current;return t.addEventListener(e,r),function(){return t.removeEventListener(e,r)}}},[r,e,n])}var o=function(){},a={position:"absolute",top:0,left:0,right:0,bottom:0,height:"100%",width:"100%"},s=function(e){var n=e.children,r=e.responsive,i=e.className,l=e.videoDimensions,o=l.videoHeight,a=l.videoWidth,s=(0,t.useMemo)(function(){return{position:"relative",paddingTop:a>0?o/a*100+"%":void 0}},[a,o]);return t.default.createElement("div",{className:i,style:r?s:void 0},n)},c=function(e){var n,o,c,u,d,f,p,m,h,g,v,y,x,b,w=e.src,j=e.customerCode,S=e.adUrl,C=e.controls,N=void 0!==C&&C,E=e.muted,k=void 0!==E&&E,R=e.autoplay,M=void 0!==R&&R,A=e.loop,I=void 0!==A&&A,P=e.preload,T=void 0===P?"metadata":P,L=e.primaryColor,O=e.letterboxColor,V=e.defaultTextTrack,_=e.height,H=e.width,D=e.poster,$=e.currentTime,F=e.volume,W=e.playbackRate,B=e.startTime,U=e.streamRef,z=e.responsive,q=void 0===z||z,Y=e.className,X=e.title,Z=e.onAbort,G=e.onCanPlay,K=e.onCanPlayThrough,J=e.onDurationChange,Q=e.onEnded,ee=e.onError,et=e.onLoadedData,en=e.onLoadedMetaData,er=e.onLoadStart,ei=e.onPause,el=e.onPlay,eo=e.onPlaying,ea=e.onProgress,es=e.onRateChange,ec=e.onResize,eu=e.onSeeked,ed=e.onSeeking,ef=e.onStalled,ep=e.onSuspend,em=e.onTimeUpdate,eh=e.onVolumeChange,eg=e.onWaiting,ev=e.onStreamAdStart,ey=e.onStreamAdEnd,ex=e.onStreamAdTimeout,eb=(0,t.useRef)(),ew=null!=U?U:eb,ej=(0,t.useState)({videoHeight:0,videoWidth:0}),eS=ej[0],eC=ej[1],eN=(0,t.useRef)(null),eE=(o=(n={customerCode:j,muted:k,preload:T,loop:I,autoplay:M,controls:N,poster:D,primaryColor:L,letterboxColor:O,adUrl:S,defaultTextTrack:V,startTime:B}).muted,c=n.preload,u=n.loop,d=n.autoplay,f=n.controls,p=n.poster,m=n.primaryColor,h=n.letterboxColor,g=n.adUrl,v=n.startTime,y=n.defaultTextTrack,x=n.customerCode,b=[p&&"poster="+encodeURIComponent(p),g&&"ad-url="+encodeURIComponent(g),y&&"defaultTextTrack="+encodeURIComponent(y),m&&"primaryColor="+encodeURIComponent(m),h&&"letterboxColor="+encodeURIComponent(h),v&&"startTime="+v,o&&"muted=true",c&&"preload="+c,u&&"loop=true",d&&"autoplay=true",!f&&"controls=false"].filter(
1Boolean).join("&"),(0,t.useMemo)(function(){return x?"https://customer-"+x+".cloudflarestream.com/"+w+"/iframe?"+b:"https://iframe.cloudflarestream.com/"+w+"?"+b},[])),ek=!function(e){try{var t=new URL(e);return t.hostname.endsWith("videodelivery.net")||t.hostname.endsWith("cloudflarestream.com")}catch(e){return!1}}(w)?eE:w;return i("muted",ew,k),i("controls",ew,N),i("src",ew,w),i("autoplay",ew,M),i("currentTime",ew,$),i("loop",ew,I),i("preload",ew,T),i("primaryColor",ew,L),i("letterboxColor",ew,O),i("volume",ew,void 0===F?1:F),i("playbackRate",ew,void 0===W?1:W),(0,t.useEffect)(function(){var e=r();if(eN.current&&e){var t=e(eN.current);ew.current=t;var n=t.videoHeight,i=t.videoWidth;n&&i&&eC({videoHeight:n,videoWidth:i})}},[]),l("abort",ew,Z),l("canplay",ew,G),l("canplaythrough",ew,K),l("durationchange",ew,J),l("ended",ew,Q),l("error",ew,ee),l("loadeddata",ew,et),l("loadedmetadata",ew,en),l("loadstart",ew,er),l("pause",ew,ei),l("play",ew,el),l("playing",ew,eo),l("progress",ew,ea),l("ratechange",ew,es),l("seeked",ew,eu),l("seeking",ew,ed),l("stalled",ew,ef),l("suspend",ew,ep),l("timeupdate",ew,em),l("volumechange",ew,eh),l("waiting",ew,eg),l("stream-adstart",ew,ev),l("stream-adend",ew,ey),l("stream-adtimeout",ew,ex),l("resize",ew,function(e){if(ew.current){var t=ew.current;eC({videoHeight:t.videoHeight,videoWidth:t.videoWidth}),ec&&ec(e)}}),t.default.createElement(s,{className:Y,responsive:q,videoDimensions:eS},t.default.createElement("iframe",{ref:eN,src:ek,title:X,style:q?a:void 0,frameBorder:0,height:_,width:H,allow:"accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;",allowFullScreen:!0}))};e.s(["Stream",0,function(e){var i,l,o;return(l=(i=(0,t.useState)(r))[0],o=i[1],(0,t.useEffect)(function(){if(!l){var e=document.querySelector("script[src='"+n+"']"),t=null!=e?e:document.createElement("script");t.addEventListener("load",function(){o(r)}),e||(t.src=n,document.head.appendChild(t))}},[l]),l)?t.default.createElement(c,Object.assign({},e)):null}])},7471,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(25705),i=e.i(21160),l=e.i(29785),o=e.i(52542),a=e.i(6722),s=e.i(19534);let c=()=>(0,t.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 0C37.248 0 48 10.752 48 24C48 37.248 37.248 48 24 48C10.752 48 0 37.248 0 24C0 10.752 10.752 0 24 0ZM16.7713 8.48533C15.9069 7.90722 14.748 8.52767 14.748 9.56854V38.4247C14.748 39.4655 15.9067 40.0859 16.7711 39.5081L38.3481 25.0831C39.1194 24.5675 39.1195 23.4324 38.3483 22.9166L16.7713 8.48533Z",fill:"#FF84FD"})});e.s(["default",0,({slice:e})=>{let u=e?.primary?.image,d=e?.primary?.cloudflareStreamVideoId,f=e?.primary?.caption,p=u?.url,[m,h]=(0,n.useState)(!1);return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,o.backgroundStyles)(),children:(0,t.jsxs)("div",{className:(0,i.cn)(a.containerStyles),children:[(p||d)&&(0,t.jsx)("div",{className:"lg:col-span-8 lg:col-start-3",children:p&&(0,t.jsxs)("div",{className:"group/wrapper relative grid",children:[(0,t.jsx)("div",{className:"relative row-start-1 overflow-hidden rounded-[8px]",children:(0,t.jsx)(l.default,{field:u,className:(0,i.cn)(d&&"transition duration-300 lg:group-hover/wrapper:scale-105",m&&"hidden")})}),d&&!m&&(0,t.jsx)("button",{onClick:()=>h(!0),className:"absolute top-0 left-0 h-full w-full",children:(0,t.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 lg:top-auto lg:right-6 lg:bottom-6 lg:left-auto lg:translate-x-0 lg:translate-y-0",children:(0,t.jsx)(c,{})})}),m&&(0,t.jsx)("div",{className:"row-start-1 aspect-video overflow-hidden rounded-[8px]",children:(0,t.jsx)(r.Stream,{autoplay:!0,controls:!0,preload:!0,src:d})})]})}),f&&(0,t.jsx)("div",{className:(0,i.cn)(s.subheadlineStyles,"mt-4 lg:col-span-8 lg:col-start-3"),children:f})]})})}])},87652,22901,36095,89383,e=>{"use strict";var t=e.i(71645),n=e.i(49652);let r={some:0,all:1};e.s(["useInView",0,function(e,{root:i,margin:l,amount:o,once:a=!1,initial:s=!1}={}){let[c,u]=(0,t.useState)(s);return(0,t.useEffect)(()=>
1{if(!e.current||a&&c)return;let t={root:i&&i.current||void 0,margin:l,amount:o};return function(e,t,{root:i,margin:l,amount:o="some"}={}){let a=(0,n.resolveElements)(e),s=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let n=s.get(e.target);if(!!n!==e.isIntersecting)if(e.isIntersecting){let n=t(e.target,e);"function"==typeof n?s.set(e.target,n):c.unobserve(e.target)}else"function"==typeof n&&(n(e),s.delete(e.target))})},{root:i,rootMargin:l,threshold:"number"==typeof o?o:r[o]});return a.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(u(!0),a?void 0:()=>u(!1)),t)},[i,e,l,a,o]),c}],87652);let i=String.raw,l=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0})(),o="u">typeof CSS&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),a="u">typeof matchMedia?matchMedia("(prefers-reduced-motion: reduce)"):null,s="--_number-flow-d-opacity",c="--_number-flow-d-width",u="--_number-flow-dx",d="--_number-flow-d",f=(()=>{try{return CSS.registerProperty({name:s,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:u,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:c,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:d,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),p="round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)",m=`calc(${p} * 2)`,h="var(--number-flow-mask-width, 0.5em)",g=`calc(${h} / var(--scale-x))`,v="#000 0, transparent 71%",y=i`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:1}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${c}) / var(--width));transform:translateX(var(${u})) scaleX(var(--scale-x));margin:0 calc(-1 * ${h});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${g},#000 calc(100% - ${g}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${m},#000 calc(100% - ${m}),transparent 100% ),radial-gradient(at bottom right,${v}),radial-gradient(at bottom left,${v}),radial-gradient(at top left,${v}),radial-gradient(at top right,${v});-webkit-mask-size:100% calc(100% - ${m} * 2),calc(100% - ${g} * 2) 100%,${g} ${m},${g} ${m},${g} ${m},${g} ${m};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${p} ${h};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${u})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${d})}.digit__num,.number .section::after{padding:${p} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${s}))}`,x=HTMLElement,b=(i`:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:1}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:${p} 0}.symbol{white-space:pre}`,new WeakMap);e.s(["continuous",0,{onUpdate(e,t,n){let r,i;if(b.set(n,void 0),!n.computedTrend)return;let l=t.integer.concat(t.fraction).filter(e=>"integer"===e.type||"fraction"===e.type),o=e.integer.concat(e.fraction).filter(e=>"integer"===e.type||"fraction"===e.type),a=l.find(e=>!o.find(t=>t.pos===e.pos&&t.value===e.value)),s=o.find(e=>!l.find(t=>e.pos===t.pos&&e.value===t.value));b.set(n,(r=null==a?void 0:a.pos,i=null==s?void 0:s.pos,null==r?i:null==i?r:Math.max(r,
1i)))},getDelta(e,t,n){let r=b.get(n.flow);if(!(e-t)&&null!=r&&r>=n.pos)return n.length*n.flow.computedTrend}}],22901);let w=(e,t,n)=>{let r=document.createElement(e),[i,l]=Array.isArray(t)?[void 0,t]:[t,n];return i&&Object.assign(r,i),null==l||l.forEach(e=>r.appendChild(e)),r},j=o&&l&&f;class S extends x{constructor(){super(),this.created=!1,this.batched=!1;const{animated:e,...t}=this.constructor.defaultProps;this._animated=this.computedAnimated=e,Object.assign(this,t)}get animated(){return this._animated}set animated(e){var t;this.animated!==e&&(this._animated=e,null==(t=this.shadowRoot)||t.getAnimations().forEach(e=>e.finish()))}set data(e){var t;if(null==e)return;let{pre:n,integer:r,fraction:i,post:l,value:o}=e;if(this.created){let s=this._data;this._data=e,this.computedTrend="function"==typeof this.trend?this.trend(s.value,o):this.trend,this.computedAnimated=j&&this._animated&&(!this.respectMotionPreference||!(null!=a&&a.matches))&&this.offsetWidth>0&&this.offsetHeight>0&&"visible"===this.ownerDocument.visibilityState,null==(t=this.plugins)||t.forEach(t=>{var n;return null==(n=t.onUpdate)?void 0:n.call(t,e,s,this)}),this.batched||this.willUpdate(),this._pre.update(n),this._num.update({integer:r,fraction:i}),this._post.update(l),this.batched||this.didUpdate()}else{this._data=e,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}let t=document.createElement("style");this.nonce&&(t.nonce=this.nonce),t.textContent=y,this.shadowRoot.appendChild(t),this._pre=new k(this,n,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new C(this,r,i),this.shadowRoot.appendChild(this._num.el),this._post=new k(this,l,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=e.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();let e=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(e=>e.finished)).then(()=>{e.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=e}}S.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(e,t)=>Math.sign(t-e),respectMotionPreference:!0,plugins:void 0,digits:void 0};class C{constructor(e,t,n,{className:r,...i}={}){this.flow=e,this._integer=new E(e,t,{justify:"right",part:"integer"}),this._fraction=new E(e,n,{justify:"left",part:"fraction"}),this._inner=w("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=w("span",{...i,part:"number",className:`number ${r??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:e,fraction:t}){this._integer.update(e),this._fraction.update(t)}didUpdate(){let e=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();let t=this._prevLeft-e.left,n=this.el.offsetWidth,r=this._prevWidth-n;this.el.style.setProperty("--width",String(n)),this.el.animate({[u]:[`${t}px`,"0px"],[c]:[r,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class N{constructor(e,t,{justify:n,className:r,...i},l){this.flow=e,this.children=new Map,this.onCharRemove=e=>()=>{this.children.delete(e)},this.justify=n;const o=t.map(e=>this.addChar(e).el);this.el=w("span",{...i,className:`section section--justify-${n} ${r??""}`},l?l(o):o)}addChar(e,{startDigitsAtZero:t=!1,...n}={}){let r="integer"===e.type||"fraction"===e.type?new A(this,e.type,t?0:e.value,e.pos,{...n,onRemove:this.onCharRemove(e.key)}):new I(this,e.type,e.value,{...n,onRemove:this.onCharRemove(e.key)});return this.children.set(e.key,r),r}unpop(e){e.el.removeAttribute("inert"),e.el.style.top="",e.el.style[this.justify]=""}
1pop(e){e.forEach(e=>{var t,n;e.el.style.top=`${e.el.offsetTop}px`,e.el.style[this.justify]=`${t=e.el,"left"===this.justify?t.offsetLeft:((null==(n=t.offsetParent instanceof HTMLElement?t.offsetParent:null)?void 0:n.offsetWidth)??0)-t.offsetWidth-t.offsetLeft}px`}),e.forEach(e=>{e.el.setAttribute("inert",""),e.present=!1})}addNewAndUpdateExisting(e){let t=new Map,n=new Map,r="left"===this.justify,i=r?"prepend":"append";if(function(e,t,{reverse:n=!1}={}){let r=e.length;for(let i=n?r-1:0;n?i>=0:i<r;n?i--:i++)t(e[i],i)}(e,e=>{let r;this.children.has(e.key)?(r=this.children.get(e.key),n.set(e,r),this.unpop(r),r.present=!0):(r=this.addChar(e,{startDigitsAtZero:!0,animateIn:!0}),t.set(e,r)),this.el[i](r.el)},{reverse:r}),this.flow.computedAnimated){let e=this.el.getBoundingClientRect();t.forEach(t=>{t.willUpdate(e)})}t.forEach((e,t)=>{e.update(t.value)}),n.forEach((e,t)=>{e.update(t.value)})}willUpdate(){let e=this.el.getBoundingClientRect();this._prevOffset=e[this.justify],this.children.forEach(t=>t.willUpdate(e))}didUpdate(){let e=this.el.getBoundingClientRect();this.children.forEach(t=>t.didUpdate(e));let t=e[this.justify],n=this._prevOffset-t;n&&this.children.size&&this.el.animate({transform:[`translateX(${n}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class E extends N{update(e){let t=new Map;this.children.forEach((n,r)=>{e.find(e=>e.key===r)||t.set(r,n),this.unpop(n)}),this.addNewAndUpdateExisting(e),t.forEach(e=>{e instanceof A&&e.update(0)}),this.pop(t)}}class k extends N{update(e){let t=new Map;this.children.forEach((n,r)=>{e.find(e=>e.key===r)||t.set(r,n)}),this.pop(t),this.addNewAndUpdateExisting(e)}}class R{constructor(e,t,{onRemove:n,animateIn:r=!1}={}){this.flow=e,this.el=t,this._present=!0,this._remove=()=>{var e;this.el.remove(),null==(e=this._onRemove)||e.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&r&&this.el.animate({[s]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=n}get present(){return this._present}set present(e){if(this._present!==e){if(this._present=e,e?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){e||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",e?"0":"-.999"),this.el.animate({[s]:e?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),e?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}}class M extends R{constructor(e,t,n,r){super(e.flow,n,r),this.section=e,this.value=t,this.el=n}}class A extends M{constructor(e,t,n,r,i){var l,o;const a=((null==(o=null==(l=e.flow.digits)?void 0:l[r])?void 0:o.max)??9)+1,s=Array.from({length:a}).map((e,t)=>{let r=w("span",{className:"digit__num"},[document.createTextNode(String(t))]);return t!==n&&r.setAttribute("inert",""),r.style.setProperty("--n",String(t)),r}),c=w("span",{part:`digit ${t}-digit`,className:"digit"},s);c.style.setProperty("--current",String(n)),c.style.setProperty("--length",String(a)),super(e,n,c,i),this.pos=r,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=s,this.length=a}willUpdate(e){let t=this.el.getBoundingClientRect();this._prevValue=this.value;let n=t[this.section.justify]-e[this.section.justify],r=t.width/2;this._prevCenter="left"===this.section.justify?n+r:n-r}update(e){this.el.style.setProperty("--current",String(e)),this._numbers.forEach((t,n)=>n===e?t.removeAttribute("inert"):t.setAttribute("inert","")),this.value=e}didUpdate(e){let t=this.el.getBoundingClientRect(),n=t[this.section.justify]-e[this.section.justify],r=t.width/2,i="left"===this.section.justify?n+r:n-r,l=this._prevCenter-i;l&&this.el.animate({transform:[`translateX(${l}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});let o=this.getDelta();o&&(this.el.classList.add("is-spinning"),this.el.animate({[d]:[-o,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var e;if(this.flow.plugins)for(let t of this.flow.plugins){let n=null==(e=t.getDelta)?void 0:e.call(t,this.value,this._prevValue,this);if(null!=n)return n}let t=this.value-this._prevValue,n=this.flow.computedTrend||Math.sign(t);return n<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:n>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:t}}class I extends M{constructor(e,t,n,r){const i=w("span",{className:"symbol__value",textContent:n});super(e,n,w("span",{part:`symbol ${t}`,className:"symbol"},[i]),r),this.type=t,this._children=new Map,this._onChildRemove=e=>()=>{this._children.delete(e)},this._children.set(n,new R(this.flow,i,{onRemove:this._onChildRemove(n)}))}willUpdate(e){if("decimal"===this.type)return;let t=this.el.getBoundingClientRect();this._prevOffset=t[this.section.justify]-e[this.section.justify]}update(e){if(this.value!==e){let t=this._children.get(this.value);t&&(t.present=!1);let n=this._children.get(e);if(n)n.present=!0;else{let t=w("span",{className:"symbol__value",textContent:e});this.el.appendChild(t),this._children.set(e,new R(this.flow,t,{animateIn:!0,onRemove:this._onChildRemove(e)}))}}this.value=e}didUpdate(e){if("decimal"===this.type)return;let t=this.el.getBoundingClientRect()[this.section.justify]-e[this.section.justify],n=this._prevOffset-t;n&&this.el.animate({transform:[`translateX(${n}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}var P=t;let T=parseInt(P.version.match(/^(\d+)\./)?.[1])>=19;class L extends S{attributeChangedCallback(e,t,n){this[e]=JSON.parse(n)}}L.observedAttributes=T?[]:["data","digits"],customElements.get("number-flow-react")||customElements.define("number-flow-react",L);let O={},V=T?function(e){return e}:JSON.stringify;function _(e){let{transformTiming:t,spinTiming:n,opacityTiming:r,animated:i,respectMotionPreference:l,trend:o,plugins:a,...s}=e;return[{transformTiming:t,spinTiming:n,opacityTiming:r,animated:i,respectMotionPreference:l,trend:o,plugins:a},s]}class H extends P.Component{updateProperties(e){if(!this.el)return;this.el.batched=!this.props.isolate;let[t]=_(this.props);Object.entries(t).forEach(([e,t])=>{this.el[e]=t??L.defaultProps[e]}),e?.onAnimationsStart&&this.el.removeEventListener("animationsstart",e.onAnimationsStart),this.props.onAnimationsStart&&this.el.addEventListener("animationsstart",this.props.onAnimationsStart),e?.onAnimationsFinish&&this.el.removeEventListener("animationsfinish",e.onAnimationsFinish),this.props.onAnimationsFinish&&this.el.addEventListener("animationsfinish",this.props.onAnimationsFinish)}componentDidMount(){this.updateProperties(),T&&this.el&&(this.el.digits=this.props.digits,this.el.data=this.props.data)}getSnapshotBeforeUpdate(e){if(this.updateProperties(e),e.data!==this.props.data){if(this.props.group)return this.props.group.willUpdate(),()=>this.props.group?.didUpdate();if(!this.props.isolate)return this.el?.willUpdate(),()=>this.el?.didUpdate()}return null}componentDidUpdate(e,t,n){n?.()}handleRef(e){this.props.innerRef&&(this.props.innerRef.current=e),this.el=e}render(){let[e,{innerRef:t,className:n,data:r,nonce:i,willChange:l,isolate:o,group:a,digits:s,onAnimationsStart:c,onAnimationsFinish:u,...d}]=_(this.props);return P.createElement("number-flow-react",{ref:this.handleRef,"data-will-change":l?"":void 0,class:n,nonce:i,...d,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0,digits:V(s),data:V(r)})}constructor(e){super(e),this.handleRef=this.handleRef.bind(this)}}let D=P.forwardRef(function({value:e,locales:t,format:n,prefix:r,suffix:i,...l},o){P.useImperativeHandle(o,()=>a.current,[]);let a=P.useRef(),s=P.useContext($);s?.useRegister(a);let c=P.useMemo(()=>t?JSON.stringify(t):"",[t]),u=P.useMemo(()=>n?JSON.stringify(n):"",[n]),d=P.useMemo(()=>(function(e,t,n,r){let i=t.formatToParts(e);n&&i.unshift({type:"prefix",value:n}),r&&i.push({type:"suffix",value:r});let l=[],o=[],a=[],s=[],c={},u=e=>`${e}:${c[e]=(c[e]??-1)+1}`,d="",f=!1,p=!1;for(let e of i){d+=e.value;let t="minusSign"===e.type||"plusSign"===e.type?"sign":e.type;"integer"===t?(f=!0,o.push(...e.value.split("").map(e=>({type:t,value:parseInt(e)})))):"group"===t?o.push({type:t,value:e.value}):"decimal"===t?(p=!0,a.push({type:t,value:e.value,key:u(t)})):"fraction"===t?a.push(...e.value.split("").map(e=>({type:t,value:parseInt(e),key:u(t),pos:-1-c[t]}))):(f||p?s:l).push({type:t,value:e.value,key:u(t)})}let m=[];for(let e=o.length-1;e>=0;
1e--){let t=o[e];m.unshift("integer"===t.type?{...t,key:u(t.type),pos:c[t.type]}:{...t,key:u(t.type)})}return{pre:l,integer:m,fraction:a,post:s,valueAsString:d,value:"string"==typeof e?parseFloat(e):e}})(e,O[`${c}:${u}`]??=new Intl.NumberFormat(t,n),r,i),[e,c,u,r,i]);return P.createElement(H,{...l,group:s,data:d,innerRef:a})}),$=P.createContext(void 0);((e="")=>i`:where(number-flow${e}){line-height:1}number-flow${e} > span{font-kerning:none;display:inline-block;padding:${m} 0}`)("-react"),e.s([],36095),e.s(["default",0,D],89383)},6271,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(87652);e.i(36095);var i=e.i(89383),l=e.i(22901),o=e.i(21160),a=e.i(52542),s=e.i(6722),c=e.i(19534);e.s(["default",0,({slice:e})=>{let u=e?.primary?.items,d=(0,n.useRef)(null),f=(0,r.useInView)(d,{amount:.5,once:!0});return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,a.backgroundStyles)(),children:(0,t.jsx)("div",{className:(0,o.cn)(s.containerStyles),ref:d,children:(0,t.jsx)("div",{className:"grid gap-y-4 lg:col-span-8 lg:col-start-3 lg:grid-cols-8 lg:gap-x-6 lg:gap-y-6",children:u?.map((e,n)=>{let r=e?.statPrefix,a=e?.statNumber,s=e?.statSuffix,u=e?.description;return(0,t.jsx)("div",{className:"lg:col-span-4",children:(0,t.jsxs)("div",{className:(0,o.cn)("bg-offWhite flex flex-col gap-y-6 rounded-[8px] p-6"),children:[(0,t.jsxs)("div",{className:(0,o.cn)(c.heading1Styles,"relative shrink-0 overflow-hidden text-[86px] leading-[77.4px] tracking-[-0.86px]","bg-propellerOrange w-max px-1",n%6==1&&"bg-fairweatherBlue",n%6==2&&"bg-tidalBlue",n%6==3&&"bg-sargassoWhite",n%6==4&&"bg-limeyGreen",n%6==5&&"bg-scurvyYellow"),children:[(0,t.jsx)("span",{className:"absolute top-[-26px] left-[4px] h-full w-full opacity-100",children:a?(0,t.jsx)(i.default,{plugins:[l.continuous],value:f?a:0,locales:"en",prefix:r,suffix:s,style:{fontVariantNumeric:"tabular-nums"}}):(0,t.jsxs)("div",{className:"mt-[26px]",children:[r,s]})}),(0,t.jsxs)("span",{className:"opacity-0",style:{fontVariantNumeric:"tabular-nums"},children:[r,a?Intl.NumberFormat("en").format(a):"",s]})]}),(0,t.jsx)("div",{children:u})]})},n)})})})})}])},56143,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(21160),i=e.i(6722);e.s(["default",0,function({slice:e}){let l=e?.primary?.formId;return((0,n.useEffect)(()=>{var e=document,t="beacon-js-sdk";if(!e.getElementById(t)){var n=e.createElement("script");n.id=t,n.src="https://static.beaconproducts.co.uk/js-sdk/production/beaconcrm.min.js",e.getElementsByTagName("head")[0].appendChild(n)}},[]),l)?(0,t.jsx)("div",{className:(0,r.cn)(i.containerStyles),children:(0,t.jsx)("div",{className:"beacon-form","data-account":"brunelsssgreatbritain","data-form":l})}):null}])},65336,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(19160),i=e.i(21160),l=e.i(83183),o=e.i(29785),a=e.i(5220),s=e.i(14028),c=e.i(6722),u=e.i(19534);e.s(["default",0,function({slice:e,articles:d}){let f=e?.primary?.title,p=e?.primary?.text,m=e?.primary?.featuredCollectionStory,[h,g]=(0,n.useState)("chronologically"),v=d?.map(e=>e?.data?.categories?.map(e=>e?.category?.data?.name))?.flat(),y=[{value:"all",label:"All content"},...([...new Set(v)].filter(Boolean)).map(e=>({value:e,label:e}))],[x,b]=(0,n.useState)(y?.[0]?.value),w=d?.filter(e=>{let t=e?.data?.categories?.map(e=>e?.category?.data?.name);return"all"===x||!!t?.includes(x)})?.toSorted((e,t)=>{if("alphabetically"===h)return e?.data?.title.localeCompare(t?.data?.title)}),j=w?.length,[S,C]=(0,n.useState)(1),N=m?.data?.title,E=m?.data?.description,k=m?.data?.categories?.[0]?.category?.data?.name,R=m?.data?.heroImage;return(0,t.jsxs)("div",{className:(0,i.cn)(c.containerStyles),children:[(0,t.jsx)(s.default,{title:f,text:p,titleTag:"h1"}),m?.uid&&(0,t.jsxs)(r.PrismicNextLink,{field:m,className:"group/card mt-12 md:grid md:grid-cols-12 md:items-center md:gap-x-6 lg:mt-[60px]",children:[(0,t.jsxs)("div",{className:(0,i.cn)("md:col-span-5"),children:[k&&(0,t.jsx)("div",{className:(0,i.cn)(u.labelStyles,"mb-4"),children:k}),N&&(0,t.jsx)("h3",{className:(0,i.cn)(u.heading3Styles),children:N}),E&&(0,t.jsx)("div",{className:"mt-6",children:E})]}),(0,t.jsx)("div",{className:(0,i.cn)("md:col-span-6 md:col-start-7"),children:(0,t.jsx)("div",{className:"mt-8 overflow-hidden rounded-[8px] md:mt-0",children:(0,t.jsx)(o.default,{field:R,className:"aspect-[5/4] object-cover transition duration-300 lg:group-hover/card:scale-105"})})})]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-col gap-y-2 lg:mt-[60px] lg:flex-row lg:justify-between",children:[(0,t.jsx)(a.default,{items:y,value:x,onValueChange:b}),(0,t.jsx)(a.default,{items:[{value:"chronologically",label:"Chronologically"},{value:"alphabetically",label:"Alphabetically"}],value:h,onValueChange:g})]}),(0,t.jsxs)("div",{className:"mt-12 grid gap-y-12 lg:mt-[60px] lg:grid-cols-3 lg:gap-x-6 lg:gap-y-[60px]",children:[w?.map((e,n)=>{if(n>=12*S)return null;let l=e?.uid,a=e?.data?.heroImage,s=e?.data?.title,c=e?.data?.description,d=e?.data?.categories?.[0]?.category?.data?.name;return(0,t.jsxs)(r.PrismicNextLink,{field:e,className:"group/card block lg:col-span-1",children:[(0,t.jsx)("div",{className:"mb-4 overflow-hidden rounded-[8px]",children:(0,t.jsx)(o.default,{field:a,className:"aspect-[5/4] object-cover transition duration-300 lg:group-hover/card:scale-105"})}),d&&(0,t.jsx)("div",{className:(0,i.cn)(u.labelStyles,"mb-4"),children:d}),(0,t.jsx)("div",{className:(0,i.cn)(u.heading5Styles),children:s}),c&&(0,t.jsx)("div",{className:"mt-4",children:c})]},l)}),j>12*S&&(0,t.jsx)(l.default,{onClick:()=>C(S+1),isButton:!0,text:"See more",type:"secondary"})]})]})}])},10573,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(30013),i=e.i(19160),l=e.i(21160),o=e.i(49124),a=e.i(29785),s=e.i(38951),c=e.i(28645),u=e.i(9408),d=e.i(5220),f=e.i(14028),p=e.i(6722),m=e.i(19534);let h=({item:e,isSelected:o})=>{let d=e?.card1Title,f=e?.card1Text,p=e?.card1Icon,h=e?.card2Title,g=e?.card2Text,v=e?.card2Icon,y=e?.event,x=y?.data?.previewCardImage,b=y?.data?.title,w=y?.data?.startDate,j=y?.data?.endDate,S=y?.data?.dateDisplay,C=e?.customImage,N=e?.customLabel,E=e?.customTitle,k=e?.customLink,[R,M]=(0,n.use
1State)(0),[A,I]=(0,r.default)({breakpoints:{"(min-width: 1024px)":{active:!1}}}),P=(0,n.useCallback)(()=>{I&&M(I.selectedScrollSnap())},[I]);(0,n.useEffect)(()=>{I&&(P(),I.on("select",P))},[I,P]);let T=(0,n.useCallback)(e=>{I&&I.scrollTo(e)},[I]);return(0,t.jsxs)("div",{className:(0,l.cn)("pointer-events-none row-start-1 min-w-0 opacity-0 transition duration-[400ms]",o&&"pointer-events-auto opacity-100"),ref:A,children:[(0,t.jsxs)("div",{className:"md:row-gap-6 mt-12 -ml-4 flex md:mt-[60px] md:ml-0 md:grid md:grid-cols-12 md:gap-x-6 md:gap-y-6",children:[(0,t.jsx)("div",{className:"flex-[0_0_100%] pl-4 md:col-span-6 md:row-span-2 md:pl-0",children:(0,t.jsx)("div",{className:"bg-offWhite h-full rounded-[8px] p-6",children:y?.uid?(0,t.jsxs)(i.PrismicNextLink,{field:y,className:"group/card",children:[(0,t.jsx)("div",{className:"mb-4 overflow-hidden rounded-[8px]",children:(0,t.jsx)(a.default,{field:x,className:"aspect-[5/4] object-cover transition duration-300 lg:group-hover/card:scale-105"})}),(0,t.jsx)(c.default,{startDate:w,endDate:j,dateDisplay:S,className:"mb-4"}),(0,t.jsx)("div",{className:(0,l.cn)(m.heading5Styles),children:b})]}):(E||C?.url)&&(0,t.jsx)(t.Fragment,{children:k?.url?(0,t.jsxs)(i.PrismicNextLink,{field:k,className:"group/card",children:[(0,t.jsx)("div",{className:"mb-4 overflow-hidden rounded-[8px]",children:(0,t.jsx)(a.default,{field:C,className:"aspect-[5/4] object-cover transition duration-300 lg:group-hover/card:scale-105"})}),N&&(0,t.jsx)("div",{className:(0,l.cn)(m.subheadlineStyles,"bg-mainMastBrown text-breakerWhite w-fit rounded-[2px] px-1 pt-[3px] pb-[2px] leading-[16px] lg:leading-[17px]","mb-4"),children:N}),(0,t.jsx)("div",{className:(0,l.cn)(m.heading5Styles),children:E})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-4 overflow-hidden rounded-[8px]",children:(0,t.jsx)(a.default,{field:C,className:"aspect-[5/4] object-cover transition duration-300"})}),N&&(0,t.jsx)("div",{className:(0,l.cn)(m.subheadlineStyles,"bg-mainMastBrown text-breakerWhite w-fit rounded-[2px] px-1 pt-[3px] pb-[2px] leading-[16px] lg:leading-[17px]","mb-4"),children:N}),(0,t.jsx)("div",{className:(0,l.cn)(m.heading5Styles),children:E})]})})})}),(0,t.jsx)("div",{className:"flex-[0_0_100%] pl-4 md:col-span-6 md:pl-0",children:(0,t.jsxs)("div",{className:"bg-offWhite flex h-full flex-col gap-y-6 rounded-[8px] p-6",children:[(0,t.jsx)("h3",{className:(0,l.cn)(m.heading6Styles),children:d}),(0,t.jsx)(s.default,{field:f}),(0,t.jsx)(a.default,{field:p,className:"mt-auto size-12"})]})}),(0,t.jsx)("div",{className:"flex-[0_0_100%] pl-4 md:col-span-6 md:pl-0",children:(0,t.jsxs)("div",{className:"bg-offWhite flex h-full flex-col gap-y-6 rounded-[8px] p-6",children:[(0,t.jsx)("h3",{className:(0,l.cn)(m.heading6Styles),children:h}),(0,t.jsx)(s.default,{field:g}),(0,t.jsx)(a.default,{field:v,className:"mt-auto size-12"})]})})]}),(0,t.jsx)(u.default,{selectedIndex:R,scrollTo:T,items:[0,1,2],theme:"light"})]})};e.s(["default",0,({slice:e})=>{let r=e?.primary?.title,i=e?.primary?.items,a=(0,o.default)(e?.primary?.anchorId)||(0,o.default)(r),[s,c]=(0,n.useState)(0),u=i?.map((e,t)=>({value:t,label:e?.name}));return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,l.cn)("bg-sargassoWhite overflow-hidden transition duration-[400ms]",s%3==1&&"bg-fairweatherBlue",s%3==2&&"bg-mainMastBrown"),...a?{id:a}:{},children:(0,t.jsxs)("div",{className:(0,l.cn)(p.containerStyles),children:[(0,t.jsx)(f.default,{title:r,className:"text-breakerWhite"}),i?.length>1&&(0,t.jsx)("div",{className:"mt-8 md:hidden",children:(0,t.jsx)(d.default,{items:u,value:s,onValueChange:c})}),i?.length>1&&(0,t.jsx)("div",{className:"bg-offWhite mx-auto mt-8 hidden items-center justify-center rounded-[8px] p-1 md:flex",children:i?.map((e,n)=>{let r=e?.name;return(0,t.jsx)("button",{onClick:()=>c(n),className:(0,l.cn)("lg:hover:bg-breakerWhite rounded-[8px] px-[28px] py-[15px] text-[18px] leading-[18px] transition",s===n&&"bg-dockyardPink lg:hover:bg-dockyardPink"),children:r},n)})}),(0,t.jsx)("div",{className:"grid",children:i?.map((e,n)=>(0,t.jsx)(h,{item:e,isSelected:s===n},n))})]})})}])},98725,e=>{"use strict";var t=e.i(43476),n=e.i(19160),r=e.i(97815),i=e.i(21160),l=e.i(29785),o=e.i(28645),a=e.i(9408),s=e.i(14028),c=e.i(6722),u=e.i(19534);e.s(["default",0,function({slice:e,events:d}){let f=e?.primary?.title,p=e?.primary?.text,{emblaRef:m,selectedIndex:h,scrollNext:g,scrollPrev:v,scrollTo:y}=(0,r.default)();return(0,t.jsxs)("div",{className:(0,i.cn)(c.containerStyles),children:[(0,t.jsx)(s.default,{title:f,text:p,titleLayout:"left",showArrows:!0,scrollNext:g,scrollPrev:v,selectedIndex:h,items:d}),(0,t.jsxs)("div",{className:"mt-12 lg:mt-[60px]",ref:m,children:[(0,t.jsx)("div",{className:"-ml-4 flex lg:-ml-6",children:d?.map((e,r)=>{let a=e?.data?.previewCardImage,s=e?.data?.title,c=e?.data?.description,d=e?.data?.startDate,f=e?.data?.endDate,p=e?.data?.dateDisplay;return(0,t.jsx)("div",{className:"flex-[0_0_87%] pl-4 lg:flex-[0_0_29%] lg:pl-6",children:(0,t.jsxs)(n.PrismicNextLink,{field:e,className:"group/card block",children:[(0,t.jsx)("div",{className:"mb-4 overflow-hidden rounded-[8px]",children:(0,t.jsx)(l.default,{field:a,className:"aspect-[5/4] object-cover transition duration-300 lg:group-hover/card:scale-105"})}),(0,t.jsx)(o.default,{startDate:d,endDate:f,dateDisplay:p,className:"mb-4"}),(0,t.jsx)("div",{className:(0,i.cn)(u.heading5Styles),children:s}),c&&(0,t.jsx)("div",{className:"mt-4",children:c})]})},r)})}),(0,t.jsx)(a.default,{items:d,scrollTo:y,selectedIndex:h})]})]})}])}
1,37762,20293,e=>{"use strict";let t={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function n(e={}){let r,i,l,o,a=null,s=0,c=!1,u=!1,d=!1,f=!1;function p(){if(!l){if(g()){d=!0;return}c||i.emit("autoplay:play"),function(){let{ownerWindow:e}=i.internalEngine();e.clearTimeout(s),s=e.setTimeout(w,o[i.selectedScrollSnap()]),a=new Date().getTime(),i.emit("autoplay:timerset")}(),c=!0}}function m(){l||(c&&i.emit("autoplay:stop"),function(){let{ownerWindow:e}=i.internalEngine();e.clearTimeout(s),s=0,a=null,i.emit("autoplay:timerstopped")}(),c=!1)}function h(){if(g())return d=c,m();d&&p()}function g(){let{ownerDocument:e}=i.internalEngine();return"hidden"===e.visibilityState}function v(){u||m()}function y(){u||p()}function x(){u=!0,m()}function b(){u=!1,p()}function w(){let{index:e}=i.internalEngine(),t=e.clone().add(1).get(),n=i.scrollSnapList().length-1,l=r.stopOnLastSnap&&t===n;if(i.canScrollNext()?i.scrollNext(f):i.scrollTo(0,f),i.emit("autoplay:select"),l)return m();p()}return{name:"autoplay",options:e,init:function(a,s){var c,u,d,g;let w,j;i=a;let{mergeOptions:S,optionsAtMedia:C}=s,N=S(t,n.globalOptions);if(r=C(S(N,e)),i.scrollSnapList().length<=1)return;f=r.jump,l=!1,c=i,u=r.delay,w=c.scrollSnapList(),o="number"==typeof u?w.map(()=>u):u(w,c);let{eventStore:E,ownerDocument:k}=i.internalEngine(),R=!!i.internalEngine().options.watchDrag,M=(d=i,g=r.rootNode,j=d.rootNode(),g&&g(j)||j);E.add(k,"visibilitychange",h),R&&i.on("pointerDown",v),R&&!r.stopOnInteraction&&i.on("pointerUp",y),r.stopOnMouseEnter&&E.add(M,"mouseenter",x),r.stopOnMouseEnter&&!r.stopOnInteraction&&E.add(M,"mouseleave",b),r.stopOnFocusIn&&i.on("slideFocusStart",m),r.stopOnFocusIn&&!r.stopOnInteraction&&E.add(i.containerNode(),"focusout",p),r.playOnInit&&p()},destroy:function(){i.off("pointerDown",v).off("pointerUp",y).off("slideFocusStart",m),m(),l=!0,c=!1},play:function(e){void 0!==e&&(f=e),p()},stop:function(){c&&m()},reset:function(){c&&p()},isPlaying:function(){return c},timeUntilNext:function(){return a?o[i.selectedScrollSnap()]-(new Date().getTime()-a):null}}}function r(e,t,n){return Math.min(Math.max(e,t),n)}function i(e){return"number"==typeof e&&!isNaN(e)}function l(e={}){let t,n,o,a,s=[],c=0,u=0,d=0,f=!1;function p(){v(t.selectedScrollSnap(),1)}function m(){f=!1}function h(){f=!1,c=0,u=0}function g(){let e=t.internalEngine().scrollBody.duration();u=+!e,f=!0,e||p()}function v(e,n){t.scrollSnapList().forEach((i,l)=>{let o=Math.abs(n),a=s[l],u=l===e,p=r(u?a+o:a-o,0,1);s[l]=p;let m=u&&f,h=t.previousScrollSnap();m&&(s[h]=1-p),u&&function(e,n){let{index:r,dragHandler:i,scrollSnaps:l}=t.internalEngine(),o=i.pointerDown(),a=1/(l.length-1),s=e,u=o?t.selectedScrollSnap():t.previousScrollSnap();if(o&&s===u){let e=-1*Math.sign(c);s=u,u=r.clone().set(u).add(e).get()}d=u*a+(s-u)*a*n}(e,p),function(e){let n=t.internalEngine().slideRegistry[e],{scrollSnaps:r,containerRect:i}=t.internalEngine(),l=s[e];n.forEach(n=>{let o=t.slideNodes()[n].style,a=parseFloat(l.toFixed(2)),s=a>0,c=function(e){let{axis:n}=t.internalEngine(),r=n.scroll.toUpperCase();return`translate${r}(${n.direction(e)}px)`}(s?r[e]:i.width+2);s&&(o.transform=c),o.opacity=a.toString(),o.pointerEvents=l>.5?"auto":"none",s||(o.transform=c)})}(l)})}function y(){let{dragHandler:e,index:n,scrollBody:r}=t.internalEngine(),i=t.selectedScrollSnap();if(!e.pointerDown())return i;let l=Math.sign(r.velocity()),o=Math.sign(c),a=n.clone().set(i).add(-1*l).get();return l&&o?o===l?a:i:null}function x(){let{target:e,location:r}=t.internalEngine(),l=Math.abs(e.get()-r.get())>=1,o=y(),a=!i(o);return!function(e){let{dragHandler:r,scrollBody:l}=e.internalEngine(),o=r.pointerDown(),a=l.velocity(),d=l.duration(),f=y(),p=!i(f);if(o){if(!a)return;c+=a,u=Math.abs(a/n),function(e){let{scrollSnaps:n,location:r,target:l}=t.internalEngine();i(e)&&!(s[e]<.5)&&(r.set(n[e]),l.set(r))}(f)}if(!o){if(!d||p)return;u+=(1-s[f])/d,u*=.68}p||v(f,u)}(t),!a&&!l&&s[o]>.999}function b(){return d}return{name:"fade",options:e,init:function(e){let i=(t=e).selectedScrollSnap(),{scrollBody:l,containerRect:c,axis:u}=t.internalEngine();n=r(.75*u.measureSize(c),200,500),f=!1,s=t.scrollSnapList().map((e,t)=>+(t===i)),o=l.settled,a=t.scrollProgress,l.settled=x,t.scrollProgress=b,t.on("select",g).on("slideFocus",p).on("pointerDown",h).on("pointerUp",m),function(){let{translate:e,slideLooper:n}
1=t.internalEngine();e.clear(),e.toggleActive(!1),n.loopPoints.forEach(({translate:e})=>{e.clear(),e.toggleActive(!1)})}(),p()},destroy:function(){let{scrollBody:e}=t.internalEngine();e.settled=o,t.scrollProgress=a,t.off("select",g).off("slideFocus",p).off("pointerDown",h).off("pointerUp",m),t.slideNodes().forEach(e=>{let t=e.style;t.opacity="",t.transform="",t.pointerEvents="",e.getAttribute("style")||e.removeAttribute("style")})}}}n.globalOptions=void 0,e.s(["default",0,n],37762),l.globalOptions=void 0,e.s(["default",0,l],20293)},18852,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(30013),i=e.i(37762),l=e.i(20293),o=e.i(21160),a=e.i(83183),s=e.i(29785),c=e.i(28645),u=e.i(6722),d=e.i(19534);let f=({label:e})=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":e,children:(0,t.jsx)("path",{d:"M21.5899 11.0409V12.95L21.579 12.95L21.5899 12.9609L13.047 21.5038L11.6971 20.1539L18.0141 13.8368C18.3414 13.5096 18.1096 12.95 17.6468 12.95H2.41016V11.0409H17.6359C18.0987 11.0409 18.3305 10.4814 18.0033 10.1541L11.6971 3.84799L13.047 2.49805L21.5899 11.0409Z",fill:"#3C3021"})});e.s(["default",0,({slice:e})=>{let p=e?.primary?.events,m=e?.primary?.cardsColorTheme,[h,g]=(0,r.default)({loop:!0,watchDrag:!1},[(0,i.default)({delay:1e4})]),[v,y]=(0,r.default)({loop:!0,watchDrag:!1},[(0,i.default)({delay:1e4}),(0,l.default)()]),x=(0,n.useCallback)(()=>{g&&(g.scrollNext(),g.plugins().autoplay?.stop()),y&&(y.scrollNext(),y.plugins().autoplay?.stop())},[g,y]),b=(0,n.useCallback)(()=>{g&&(g.scrollPrev(),g.plugins().autoplay?.stop()),y&&(y.scrollPrev(),y.plugins().autoplay?.stop())},[g,y]);return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,o.cn)("bg-breakerWhite overflow-hidden"),children:(0,t.jsx)("div",{className:(0,o.cn)(u.containerStyles,"max-w-none px-0 py-0 md:px-0 lg:px-0 lg:py-0"),children:p?.length>0&&(0,t.jsxs)("div",{className:"relative max-h-[calc(100vh-120px)] lg:max-h-[calc(100vh-98px)]",children:[(0,t.jsx)("div",{className:"h-full",ref:h,children:(0,t.jsx)("div",{className:"flex h-full",children:p?.map((e,n)=>{let r=e?.event?.data?.heroImage,i=e?.event?.data?.heroImageMobile;return(0,t.jsxs)("div",{className:"relative flex-[0_0_100%]",children:[(0,t.jsx)(s.default,{field:r,priority:0===n,className:(0,o.cn)("aspect-[394/560] max-h-full object-cover lg:aspect-[1440/850]",i?.url&&"hidden md:block")}),i?.url&&(0,t.jsx)(s.default,{field:i,priority:0===n,className:"aspect-[394/560] max-h-full object-cover md:hidden"})]},n)})})}),(0,t.jsxs)("div",{className:(0,o.cn)("bg-limeyGreen absolute right-6 bottom-12 left-6 overflow-hidden rounded-[8px] md:right-auto md:w-[543px] lg:bottom-20 lg:left-20","tidal blue"===m&&"bg-tidalBlue","scurvy yellow"===m&&"bg-scurvyYellow"),ref:v,children:[(0,t.jsx)("div",{className:"flex",children:p?.map((e,n)=>{let r=e?.event?.data?.title,i=e?.event?.data?.description,l=e?.event?.data?.startDate,s=e?.event?.data?.endDate,u=e?.event?.data?.dateDisplay,f=e?.primaryLink,p=e?.secondaryLink;return(0,t.jsxs)("div",{className:(0,o.cn)("flex-[0_0_100%] p-6"),children:[(0,t.jsx)(c.default,{startDate:l,endDate:s,dateDisplay:u,className:(0,o.cn)("text-limeyGreen mb-4","tidal blue"===m&&"text-tidalBlue","scurvy yellow"===m&&"text-scurvyYellow")}),r&&(0,t.jsx)("h2",{className:(0,o.cn)(d.heading3Styles,"lg:mr-20"),children:r}),i&&(0,t.jsx)("div",{className:"mt-6",children:i}),(f?.text||p?.text)&&(0,t.jsxs)("div",{className:"mt-8 flex flex-col gap-y-3 lg:mt-6 lg:flex-row lg:flex-wrap lg:gap-x-3",children:[(0,t.jsx)(a.default,{link:f}),(0,t.jsx)(a.default,{link:p,type:"secondary"})]})]},n)})}),p?.length>1&&(0,t.jsxs)("div",{className:"flex items-center gap-x-3 px-6 pt-2 pb-6 lg:absolute lg:top-6 lg:right-6 lg:mt-0 lg:px-0",children:[(0,t.jsx)("button",{onClick:b,className:(0,o.cn)("rotate-180"),children:(0,t.jsx)(f,{label:"Previous"})}),(0,t.jsx)("button",{onClick:x,children:(0,t.jsx)(f,{label:"Next"})})]})]})]})})})}])},53035,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(19160),i=e.i(21160),l=e.i(83183),o=e.i(29785),a=e.i(28645),s=e.i(5220),c=e.i(6722),u=e.i(19534);e.s(["default",0,function({slice:e,events:d}){let f=e?.primary?.title,p=d?.map(e=>e?.data?.categories?.map(e=>e?.category?.data?.name))?.flat(),m=[{value:"all",label:"All events"}
1,...([...new Set(p)].filter(Boolean)).map(e=>({value:e,label:e}))],[h,g]=(0,n.useState)(m?.[0]?.value),[v,y]=(0,n.useState)(!1),x=d?.filter(e=>{let t=e?.data?.categories?.map(e=>e?.category?.data?.name);return"all"===h||!!t?.includes(h)})?.filter(e=>{let t=e?.data?.includedInTicket;return!1===v||!!t}),b=x?.length,[w,j]=(0,n.useState)(1);return(0,t.jsxs)("div",{className:(0,i.cn)(c.containerStyles),children:[f&&(0,t.jsx)("h1",{className:(0,i.cn)(u.heading2Styles,"text-center"),children:f}),(0,t.jsxs)("div",{className:"mt-8 flex flex-col gap-y-2 lg:mt-[60px] lg:flex-row lg:justify-between",children:[(0,t.jsx)(s.default,{items:m,value:h,onValueChange:g}),(0,t.jsxs)("button",{onClick:()=>y(!v),className:"bg-offWhite flex h-12 items-center justify-between gap-x-3 rounded-[8px] px-3 lg:order-[-1]",children:[(0,t.jsx)("span",{children:"Included in your ticket"}),(0,t.jsx)("span",{className:(0,i.cn)("bg-mainMastBrown flex h-4 w-8 rounded-full p-[2px] opacity-25 transition lg:order-[-1]",v&&"opacity-100"),children:(0,t.jsx)("span",{className:(0,i.cn)("bg-breakerWhite size-3 rounded-full transition",v&&"translate-x-4")})})]})]}),(0,t.jsxs)("div",{className:"mt-12 grid gap-y-12 lg:mt-[60px] lg:grid-cols-3 lg:gap-x-6 lg:gap-y-[60px]",children:[x?.map((e,n)=>{if(n>=12*w)return null;let l=e?.uid,s=e?.data?.previewCardImage,c=e?.data?.title,d=e?.data?.description,f=e?.data?.startDate,p=e?.data?.endDate,m=e?.data?.dateDisplay;return(0,t.jsxs)(r.PrismicNextLink,{field:e,className:"group/card block lg:col-span-1",children:[(0,t.jsx)("div",{className:"mb-4 overflow-hidden rounded-[8px]",children:(0,t.jsx)(o.default,{field:s,className:"aspect-[5/4] object-cover transition duration-300 lg:group-hover/card:scale-105"})}),(0,t.jsx)(a.default,{startDate:f,endDate:p,dateDisplay:m,className:"mb-4"}),(0,t.jsx)("div",{className:(0,i.cn)(u.heading5Styles),children:c}),d&&(0,t.jsx)("div",{className:"mt-4",children:d})]},l)}),b>12*w&&(0,t.jsx)(l.default,{onClick:()=>j(w+1),isButton:!0,text:"See more",type:"secondary"})]})]})}])},9381,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(9072),i=e.i(21160),l=e.i(49124),o=e.i(83183),a=e.i(38951),s=e.i(52542),c=e.i(6722),u=e.i(19534);let d=({item:e})=>{let l=e?.title,o=e?.text,[s,c]=(0,n.useState)(!1);return(0,t.jsxs)("div",{className:"border-b first:border-t",children:[(0,t.jsxs)("button",{onClick:()=>c(!s),className:"flex w-full items-center justify-between gap-x-4 py-4 text-left md:py-6",children:[(0,t.jsx)("span",{className:(0,i.cn)(u.heading6Styles),children:l}),(0,t.jsxs)("div",{className:"grid",children:[(0,t.jsx)(f,{isExpanded:s}),(0,t.jsx)(p,{})]})]}),(0,t.jsx)(r.default,{duration:500,height:s?"auto":0,children:(0,t.jsx)(a.default,{field:o,className:"pt-3 pb-8"})})]})},f=({isExpanded:e})=>(0,t.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,i.cn)("row-start-1 size-6 shrink-0 transition md:size-12",e&&"opacity-0"),children:(0,t.jsx)("path",{d:"M25.9077 21.0652C25.9077 21.639 26.3729 22.1042 26.9467 22.1042H43.1848V25.9224H26.9467C26.3729 25.9224 25.9077 26.3875 25.9077 26.9613V43.1994H22.0895V26.9613C22.0895 26.3875 21.6244 25.9224 21.0506 25.9224H4.8125V22.1042H21.0506C21.6244 22.1042 22.0895 21.639 22.0895 21.0652V4.82715H25.9077V21.0652Z",fill:"#3C3021"})}),p=()=>(0,t.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"row-start-1 size-6 shrink-0 md:size-12",children:(0,t.jsx)("path",{d:"M25.9077 22.1043H43.1848V25.9225H25.9077H22.0895H4.8125V22.1043H22.0895H25.9077Z",fill:"#3C3021"})});e.s(["default",0,({slice:e,index:n})=>{let r=e?.primary?.title,a=e?.primary?.items,f=e?.primary?.link,p=(0,l.default)(e?.primary?.anchorId)||(0,l.default)(r);return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,s.backgroundStyles)(),...p?{id:p}:{},children:(0,t.jsxs)("div",{className:(0,i.cn)(c.containerStyles),children:[r&&(0===n?(0,t.jsx)("h1",{className:(0,i.cn)(u.heading4Styles,"md:col-span-4"),children:r}):(0,t.jsx)("h2",{className:(0,i.cn)(u.heading4Styles,"md:col-span-4"),children:r})),(0,t.jsxs)("div",{className:"mt-12 md:col-span-8 md:mt-0",children:[a?.map((e,n)=>(0,t.jsx)(d,{item:e},n)),(0,t.jsx)(o.default,{link:f,type:"secondary",className:"mt-12 md:mt-[60px]"})]})]})})}])},9061,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(37762),i=e.i(20293),l=e.i(25705),o=e.i(30013),a=e.i(46932),s=e.i(60140),c=e.i(30551),u=e.i(86427),d=e.i(65566),f=e.i(60830),p=e.i(87022);function m(e,t){let n,r=()=>{let{currentTime:r}=t,i=(null===r?0:r.value)/100;n!==i&&e(i),n=i};return p.frame.preUpdate(r,!0),()=>(0,p.cancelFrame)(r)}function h(e){return!("u"<typeof window)&&(e?(0,c.supportsViewTimeline)():(0,c.supportsScrollTimeline)())}var g=e.i(61327),v=e.i(83920),y=e.i(25791);let x=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),b={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function w(e,t,n,r){let i=n[t],{length:l,position:o}=b[t],a=i.current,s=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${l}`]-e[`client${l}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=(0,v.progress)(0,i.scrollLength,i.current);let c=r-s;i.velocity=c>50?0:(0,y.velocityPerSecond)(i.current-a,c)}e.i(47167);var j=e.i(44230),S=e.i(15923),C=e.i(76959),N=e.i(72846);let E={start:0,center:.5,end:1};function k(e,t,n=0){let r=0;if(e in E&&(e=E[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?r=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?r=t/100*document.documentElement.clientWidth:e.endsWith("vh")?r=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(r=t*e),n+r}let R=[0,0],M=[[0,0],[1,1]],A={x:0,y:0},I=new WeakMap,P=new WeakMap,T=new WeakMap,L=new WeakMap,O=new WeakMap,V=e=>e===document.scrollingElement?window:e;function _(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return f.noop;let i=T.get(t);i||(i=new Set,T.set(t,i));let l=function(e,t,n,r={}){return{measure:t=>{!function(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.c
1ontainerLength=e.clientHeight}(e,r.target,n),w(e,"x",n,t),w(e,"y",n,t),n.time=t,(r.offset||r.target)&&function(e,t,n){let{offset:r=M}=n,{target:i=e,axis:l="y"}=n,o="y"===l?"height":"width",a=i!==e?function(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if((0,N.isHTMLElement)(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){let e=r.getBoundingClientRect(),t=(r=r.parentElement).getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,l=r.parentNode;for(;!i;)"svg"===l.tagName&&(i=l),l=r.parentNode;r=i}else break;return n}(i,e):A,s=i===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in i&&"svg"!==i.tagName?i.getBBox():{width:i.clientWidth,height:i.clientHeight},c={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let u=!t[l].interpolate,d=r.length;for(let e=0;e<d;e++){let n=function(e,t,n,r){let i=Array.isArray(e)?e:R,l=0;return"number"==typeof e?i=[e,e]:"string"==typeof e&&(i=(e=e.trim()).includes(" ")?e.split(" "):[e,E[e]?e:"0"]),(l=k(i[0],n,r))-k(i[1],t)}(r[e],c[o],s[o],a[l]);u||n===t[l].interpolatorOffsets[e]||(u=!0),t[l].offset[e]=n}u&&(t[l].interpolate=(0,j.interpolate)(t[l].offset,(0,S.defaultOffset)(r),{clamp:!1}),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=(0,C.clamp)(0,1,t[l].interpolate(t[l].current))}(e,n,r)},notify:()=>t(n)}}(t,e,{time:0,x:x(),y:x()},r);if(i.add(l),!I.has(t)){let e=()=>{for(let e of i)e.measure(p.frameData.timestamp);p.frame.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>p.frame.read(e);I.set(t,r);let l=V(t);window.addEventListener("resize",r),t!==document.documentElement&&P.set(t,(0,g.resize)(t,r)),l.addEventListener("scroll",r),r()}if(n&&!O.has(t)){let e=I.get(t),n={width:t.scrollWidth,height:t.scrollHeight};L.set(t,n);let r=p.frame.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);O.set(t,r)}let o=I.get(t);return p.frame.read(o,!1,!0),()=>{(0,p.cancelFrame)(o);let e=T.get(t);if(!e||(e.delete(l),e.size))return;let n=I.get(t);I.delete(t),n&&(V(t).removeEventListener("scroll",n),P.get(t)?.(),window.removeEventListener("resize",n));let r=O.get(t);r&&((0,p.cancelFrame)(r),O.delete(t)),L.delete(t)}}let H=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[M,"contain"]],D={start:0,end:1};function $(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,n]of H)if(function(e,t){let n=function(e){if(2!==e.length)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else{if("string"!=typeof n)return;let e=function(e){let t=e.trim().split(/\s+/);if(2!==t.length)return;let n=D[t[0]],r=D[t[1]];if(void 0!==n&&void 0!==r)return[n,r]}(n);if(!e)return;t.push(e)}return t}(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}let F=new Map;function W(e){let t={value:0},n=_(n=>{t.value=100*n[e.axis].progress},e);return{currentTime:t,cancel:n}}function B({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=F.get(t);i||(i=new Map,F.set(t,i));let l=n.target??"self",o=i.get(l);o||(o={},i.set(l,o));let a=r+(n.offset??[]).join(",");return o[a]||(n.target&&h(n.target)?$(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:r}):o[a]=W({container:t,...n}):h()?o[a]=new ScrollTimeline({source:t,axis:r}):o[a]=W({container:t,...n})),o[a]}function U(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){let i,l,o;if(!n)return f.noop;let a={axis:t,container:n,...r};return"function"==typeof e?function(e,t){return 2===e.length||t&&(t.target||t.offset)?_(n=>{e(n[t.axis].progress,n)},t):m(e,B(t))}(e,a):(i=B(a),l=a.target?$(a.offset):void 0,o=a.target?h(a.target)&&!!l:h(),e.attachTimeline({timeline:o?i:void 0,...l&&o&&{rangeStart:l.rangeStart,rangeEnd:l.rangeEnd},observe:e=>(e.pause(),m(t=>{e.time=e.iterationDuration*t},i))}))}var z=e.i(47414),q=e.i(74008);let Y=()=>({scrollX:(0,u.motionValue)(0),scrollY:(0,u.motionValue)(0),scrollXProgress:(0,u.motionValue)(0),scrollYProgress:(0,u.motionValue)(0)}),X=e=>!!e&&!e.current;function Z(e,t,n,r){return{factory:i=>{let l,o=()=>{X(n)||X(r)?s.microtask.read(o):l=U(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return s.microtask.read(o),()=>{(0,s.cancelMicrotask)(o),l?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}var G=e.i(37806);function K(e,t){let r=function(e){let t=(0,z.useConstant)(()=>(0,u.motionValue)(e)),{isStatic:r}=(0,n.useContext)(G.MotionConfigContext);
1if(r){let[,r]=(0,n.useState)(e);(0,n.useEffect)(()=>t.on("change",r),[])}return t}(t()),i=()=>r.set(t());return i(),(0,q.useIsomorphicLayoutEffect)(()=>{let t=()=>p.frame.preRender(i,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,p.cancelFrame)(i)}}),r}function J(e,t){let n=(0,z.useConstant)(()=>[]);return K(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var Q=e.i(21160),ee=e.i(83183),et=e.i(29785),en=e.i(38951),er=e.i(52542),ei=e.i(6722),el=e.i(19534);let eo=()=>(0,t.jsxs)("svg",{width:"628",height:"180",viewBox:"0 0 628 180",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:"mx-auto h-auto w-full lg:h-full lg:max-h-[180px] lg:w-auto",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M273.614 22.4483H264.531C263.109 22.4483 261.937 23.6201 261.937 25.0424V62.0111C261.937 63.4334 263.111 64.6072 264.531 64.6072H273.614V86.9403H224.777V64.6072H233.862C235.284 64.6072 236.456 63.4334 236.456 62.0111V25.0424C236.456 23.6201 235.284 22.4483 233.862 22.4483H224.777V0.119141H273.614V22.4483Z",fill:"#3C3021"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M413.453 22.4034H399.652C396.932 22.4034 394.697 24.6385 394.697 27.3588V86.8973H369.235V27.3588C369.235 24.6385 367 22.4053 364.28 22.4034H350.479V0.0742188H413.451V22.4034H413.453Z",fill:"#3C3021"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M521.298 59.605C521.298 62.3254 523.533 64.5585 526.251 64.5605H558.791V86.8758H495.838V0.0546875H521.3V59.605H521.298Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M207.364 53.7959L207.36 53.79L207.259 53.5454C206.79 52.344 206.738 51.4701 206.906 50.9059C207.044 50.4482 207.437 49.8071 208.904 49.3179C211.717 48.4203 213.98 46.7967 215.523 44.5104C217.06 42.2319 217.787 39.4346 217.787 36.3335L217.795 12.7398C217.795 5.66958 212.126 0 205.054 0C205.054 0 205.05 0 205.048 0H151.83V86.8211H177.31V57.2127C177.31 55.8219 178.061 55.2261 178.633 55.09C179.138 54.9677 179.979 55.09 180.547 56.394L193.357 86.8211H221.218L207.36 53.7959H207.364ZM188.262 32.9719H182.101C178.103 32.9719 174.861 29.7308 174.861 25.7321C174.861 21.7334 178.103 18.4922 182.101 18.4922H188.262C192.261 18.4922 195.502 21.7334 195.502 25.7321C195.502 29.7308 192.261 32.9719 188.262 32.9719Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M335.132 0.835647C334.784 0.711366 334.431 0.600894 334.07 0.506204C334.035 0.49634 333.999 0.484504 333.962 0.476613C333.248 0.295124 332.508 0.174788 331.75 0.119552C331.425 0.0958794 331.097 0.078125 330.766 0.078125H293.294C286.224 0.078125 280.555 5.7477 280.555 12.8179V33.5807C280.555 40.9508 284.609 44.0539 288.321 45.7267C295.52 48.7371 302.72 52.1361 309.918 55.1464C313.59 56.6812 318.308 57.9773 318.308 62.8361C318.308 66.3041 315.497 69.1152 312.029 69.1152C308.561 69.1152 305.758 66.3041 305.758 62.8361V56.7167H280.551V74.1437C280.551 79.3477 283.624 83.7902 288.067 85.7748C289.471 86.4021 291.01 86.7868 292.634 86.8677C292.853 86.8795 330.764 86.8835 330.764 86.8835C337.834 86.8835 343.504 81.2139 343.504 74.1437V53.3809C343.504 49.7018 342.012 43.9059 335.737 41.2349L310.635 30.45C307.916 29.2842 305.748 27.3706 305.748 24.1531C305.748 20.6851 308.559 17.874 312.027 17.874C315.495 17.874 318.298 20.6851 318.298 24.1531V30.2607H343.506V12.8219C343.506 7.28642 340.03 2.61109 335.13 0.841565L335.132 0.835647Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M619.63 92.9528C619.282 92.8286 618.929 92.7181 618.568 92.6234C618.533 92.6135 618.497 92.6017 618.46 92.5938C617.746 92.4123 617.006 92.292 616.248 92.2367C615.923 92.2131 615.595 92.1953 615.264 92.1953H577.793C570.722 92.1953 565.053 97.8649 565.053 104.935V125.698C565.053 133.068 569.107 136.171 572.819 137.844C580.018 140.854 587.218 144.253 594.417 147.264C598.088 148.798 602.806 150.094 602.806 154.953C602.806 158.421 599.995 161.232 596.527 161.232C593.059 161.232 590.256 158.421 590.256 154.953V148.834H565.049V166.261C565.049 171.465 568.122 175.907 572.565 177.892C573.969 178.519 575.508 178.904 577.132 178.985C577.351 178.997 615.262 179.001 615.262 179.001C622.332 179.001 628.002 173.331 628.002 166.261V145.498C628.002 141.819 626.51 136.023 620.235 133.352L595.133 122.567C592.414 121.401 590.246 119.488 590.246 116.27C590.246 112.802 593.057 109.991 596.525 109.991C599.993 109.991 602.797 112.802 602.797 116.27V122.378H628.004V104.939C628.004 99.4036 624.528 94.7283 619.628 92.9588L619.63 92.9528Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M476.257 0.0371094H432.771C425.701 0.0371094 420.031 5.70669 420.029 12.7769C420.029 12.7887 420.029 12.8025 420.029 12.8144V74.1559C420.029 81.2261 425.699 86.8957 432.771 86.8957H476.257C483.327 86.8957 488.997 81.2261 488.999 74.1559V12.7769C488.999 5.70669 483.329 0.0371094 476.257 0.0371094ZM460.768 62.8562C460.768 66.3104 457.966 69.1117 454.512 69.1117C451.058 69.1117 448.257 66.3124 448.257 62.8562V24.1239C448.257 20.6697 451.058 17.8685 454.512 17.8685C457.966 17.8685 460.768 20.6678 460.768 24.1239V62.8562Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M56.228 92.1934H0V114.526H3.42067C4.84299 114.526 6.01478 115.698 6.01478 117.121V154.089C6.01478 155.512 4.84299 156.683 3.42067 156.683H0V179.013H56.228C63.2982 179.013 68.9677 173.343 68.9697 166.273V104.931C68.9697 97.861 63.3002 92.1914 56.228 92.1914V92.1934ZM43.7467 154.973C43.7467 158.427 40.9474 161.229 37.4913 
1161.229C34.0351 161.229 31.2358 158.429 31.2358 154.973V116.241C31.2358 112.787 34.037 109.985 37.4913 109.985C40.9455 109.985 43.7467 112.785 43.7467 116.241V154.973Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M546.051 92.2051H495.838V179.026H546.051C553.121 179.026 558.791 173.357 558.793 166.286V104.945C558.793 97.8747 553.123 92.2051 546.051 92.2051ZM533.57 154.985C533.57 158.439 530.771 161.24 527.314 161.24C523.858 161.24 521.059 158.441 521.059 154.985V116.252C521.059 112.798 523.86 109.997 527.314 109.997C530.769 109.997 533.57 112.796 533.57 116.252V154.985Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M192.57 140.687V154.977C192.57 158.431 189.769 161.232 186.315 161.232C182.861 161.232 180.059 158.433 180.059 154.977V116.245C180.059 112.791 182.861 109.989 186.315 109.989C189.769 109.989 192.57 112.789 192.57 116.245V130.545H220.8V104.927C220.8 97.8571 215.13 92.1875 208.058 92.1875H164.572C157.502 92.1875 151.832 97.8571 151.83 104.927C151.83 104.939 151.83 104.953 151.83 104.965V166.306C151.83 173.377 157.5 179.046 164.572 179.046H208.058C215.128 179.046 220.798 173.377 220.8 166.306V140.689H192.57V140.687Z",fill:"#3C3021"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M397.906 92.1953H366.049L344.221 179.014H371.178L374.2 161.402C374.206 161.359 374.216 161.315 374.222 161.272V161.258H374.224C374.853 157.543 378.084 154.715 381.978 154.715C385.872 154.715 389.192 157.62 389.759 161.408L392.779 179.014H419.736L397.908 92.1953H397.906ZM381.976 135.605C377.63 135.605 374.107 132.082 374.107 127.736C374.107 123.39 377.63 119.867 381.976 119.867C386.322 119.867 389.845 123.39 389.845 127.736C389.845 132.082 386.322 135.605 381.976 135.605Z",fill:"#3C3021"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M332.469 92.1953L324.377 121.928C324.018 122.834 322.801 122.834 322.44 121.928L314.35 92.1953H270.793L255.573 121.898L255.569 121.906L255.565 121.916C255.368 122.309 255.133 122.48 254.94 122.563C254.727 122.654 254.462 122.678 254.186 122.607C253.638 122.467 253.22 122.029 253.22 121.332V92.1953H227.74V179.014H253.22V149.877C253.22 149.181 253.638 148.743 254.186 148.603C254.462 148.532 254.727 148.556 254.94 148.646C255.133 148.729 255.37 148.901 255.565 149.294L255.569 149.303L255.573 149.311L270.793 179.014H299.395L278.817 138.882L278.814 138.872L278.808 138.862L278.725 138.7C277.894 136.998 277.675 134.524 278.812 132.338L278.816 132.332L291.32 108.095C291.703 107.354 292.778 107.393 293.106 108.162L309.099 145.814L309.112 145.843L309.128 145.873C309.959 147.54 310.673 149.655 310.673 151.529V179.014H336.154V151.529C336.154 149.627 336.892 147.563 337.699 145.873L337.713 145.843L337.726 145.814L360.501 92.1953H332.473H332.469ZM251.298 122.549L251.294 122.534C251.304 122.563 251.316 122.591 251.328 122.62C251.32 122.597 251.308 122.573 251.3 122.549H251.298Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M132.138 0H75.9102V22.3331H79.3308C80.7531 22.3331 81.9249 23.5049 81.9249 24.9272V61.8959C81.9249 63.3182 80.7531 64.49 79.3308 64.49H75.9102V86.8191H132.138C139.208 86.8191 144.878 81.1496 144.88 74.0794V12.7398C144.878 5.66958 139.208 0 132.138 0ZM113.401 69.1061C109.056 69.1061 105.532 65.5829 105.532 61.237C105.532 56.8911 109.056 53.3678 113.401 53.3678C117.747 53.3678 121.271 56.8911 121.271 61.237C121.271 65.5829 117.747 69.1061 113.401 69.1061ZM113.401 33.6032C109.056 33.6032 105.532 30.0799 105.532 25.7341C105.532 21.3882 109.056 17.8649 113.401 17.8649C117.747 17.8649 121.271 21.3882 121.271 25.7341C121.271 30.0799 117.747 33.6032 113.401 33.6032Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M132.138 92.2051H88.6519C81.5817 92.2051 75.9121 97.8747 75.9102 104.945C75.9102 104.957 75.9102 104.971 75.9102 104.982V166.324C75.9102 173.394 81.5797 179.064 88.6519 179.064H132.138C139.208 179.064 144.878 173.394 144.88 166.324V104.947C144.88 97.8766 139.21 92.2071 132.138 92.2071V92.2051ZM116.648 154.973C116.648 158.427 113.847 161.228 110.393 161.228C106.939 161.228 104.138 158.429 104.138 154.973V116.241C104.138 112.786 106.939 109.985 110.393 109.985C113.847 109.985 116.648 112.784 116.648 116.241V154.973Z",fill:"#3C3021"}),(0,t.jsx)("path",{d:"M478.637 145.997L478.633 145.991L478.533 145.747C478.063 144.545 478.012 143.671 478.179 143.107C478.318 142.649 478.71 142.008 480.178 141.519C482.991 140.621 485.254 138.998 486.796 136.712C488.333 134.433 489.061 131.636 489.061 128.535L489.069 104.941C489.069 97.8707 483.399 92.2012 476.327 92.2012C476.327 92.2012 476.323 92.2012 476.321 92.2012H423.104V179.022H448.583V149.414C448.583 148.023 449.335 147.427 449.907 147.291C450.412 147.169 451.252 147.291 451.82 148.595L464.631 179.022H492.491L478.633 145.997H478.637ZM459.535 125.175H453.375C449.376 125.175 446.135 121.934 446.135 117.935C446.135 113.937 449.376 110.695 453.375 110.695H459.535C463.534 110.695 466.775 113.937 466.775 117.935C466.775 121.934 463.534 125.175 459.535 125.175Z",fill:"#3C3021"})]}),ea=({label:e})=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":e,children:(0,t.jsx)("path",{d:"M21.5899 11.0409V12.95L21.579 12.95L21.5899 12.9609L13.047 21.5038L11.
16971 20.1539L18.0141 13.8368C18.3414 13.5096 18.1096 12.95 17.6468 12.95H2.41016V11.0409H17.6359C18.0987 11.0409 18.3305 10.4814 18.0033 10.1541L11.6971 3.84799L13.047 2.49805L21.5899 11.0409Z",fill:"#3C3021"})});e.s(["default",0,({slice:e})=>{let f=e?.primary?.text,p=e?.primary?.image,m=e?.primary?.imageMobile,h=e?.primary?.cloudflareStreamVideoId,g=e?.primary?.slides,v=e?.primary?.slidesColorTheme,[y,x]=(0,o.default)({loop:!0,watchDrag:!1},[(0,r.default)({delay:1e4})]),[b,w]=(0,o.default)({loop:!0,watchDrag:!1},[(0,r.default)({delay:1e4}),(0,i.default)()]),S=(0,n.useCallback)(()=>{x&&(x.scrollNext(),x.plugins().autoplay?.stop()),w&&(w.scrollNext(),w.plugins().autoplay?.stop())},[x,w]),C=(0,n.useCallback)(()=>{x&&(x.scrollPrev(),x.plugins().autoplay?.stop()),w&&(w.scrollPrev(),w.plugins().autoplay?.stop())},[x,w]),N=(0,n.useRef)(),{scrollYProgress:E}=function({container:e,target:t,...r}={}){var i;let l=(0,z.useConstant)(Y);i=r.offset,!("u"<typeof window)&&(t?(0,c.supportsViewTimeline)()&&!!$(i):(0,c.supportsScrollTimeline)())&&(l.scrollXProgress.accelerate=Z("x",r,e,t),l.scrollYProgress.accelerate=Z("y",r,e,t));let o=(0,n.useRef)(null),a=(0,n.useRef)(!1),u=(0,n.useCallback)(()=>(o.current=U((e,{x:t,y:n})=>{l.scrollX.set(t.current),l.scrollXProgress.set(t.progress),l.scrollY.set(n.current),l.scrollYProgress.set(n.progress)},{...r,container:e?.current||void 0,target:t?.current||void 0}),()=>{o.current?.()}),[e,t,JSON.stringify(r.offset)]);return(0,q.useIsomorphicLayoutEffect)(()=>{if(a.current=!1,!(X(e)||X(t)))return u();a.current=!0},[u]),(0,n.useEffect)(()=>{let n;if(!a.current)return;let r=()=>{let r=X(e),i=X(t);(0,d.invariant)(!r,"Container ref is defined but not hydrated","use-scroll-ref"),(0,d.invariant)(!i,"Target ref is defined but not hydrated","use-scroll-ref"),r||i||(n=u())};return s.microtask.read(r),()=>{(0,s.cancelMicrotask)(r),n?.()}},[u]),l}({target:N,offset:["-120px start","end end"]}),k=function e(t,n,r,i){if("function"==typeof t){let e;return u.collectMotionValues.current=[],t(),e=K(u.collectMotionValues.current,t),u.collectMotionValues.current=void 0,e}if(void 0!==r&&!Array.isArray(r)&&"function"!=typeof n){var l=t,o=n,a=r,s=i;let c=(0,z.useConstant)(()=>Object.keys(a)),u=(0,z.useConstant)(()=>({}));for(let t of c)u[t]=e(l,o,a[t],s);return u}let c="function"==typeof n?n:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],l=e[2+n],o=e[3+n],a=(0,j.interpolate)(i,l,o);return t?a(r):a}(n,r,i),d=Array.isArray(t)?J(t,c):J([t],([e])=>c(e)),f=Array.isArray(t)?void 0:t.accelerate;return f&&!f.isTransformed&&"function"!=typeof n&&Array.isArray(r)&&i?.clamp!==!1&&(d.accelerate={...f,times:n,keyframes:r,isTransformed:!0,...i?.ease?{ease:i.ease}:{}}),d}(E,[0,1],[1,.5]);return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,Q.cn)((0,er.backgroundStyles)()),ref:N,children:(0,t.jsxs)("div",{className:(0,Q.cn)(ei.containerStyles,"max-w-none px-0 pb-0 md:px-0 lg:px-0 lg:pb-0"),children:[(0,t.jsx)("div",{className:"sticky top-[158px] px-6 lg:top-[170px] lg:px-20",children:(0,t.jsxs)(a.motion.div,{style:{scale:k},children:[(0,t.jsxs)("h1",{children:[(0,t.jsx)("span",{className:"sr-only",children:"Bristol Dockyards"}),(0,t.jsx)(eo,{})]}),(0,t.jsx)(en.default,{field:f,className:"mt-8 text-center text-[22px] leading-[28.6px] font-bold lg:text-[46px] lg:leading-[59.8px]"})]})}),(0,t.jsx)("div",{className:"overflow-hidden",children:g?.length>0?(0,t.jsxs)("div",{className:"relative mt-12 lg:mt-[60px]",children:[(0,t.jsx)("div",{className:"",ref:y,children:(0,t.jsx)("div",{className:"flex",children:g?.map((e,n)=>{let r=e?.image,i=e?.imageMobile;return(0,t.jsxs)("div",{className:"relative flex-[0_0_100%]",children:[(0,t.jsx)(et.default,{field:r,priority:0===n,className:(0,Q.cn)("aspect-[394/560] object-cover lg:aspect-[1440/600]",i?.url&&"hidden md:block")}),i?.url&&(0,t.jsx)(et.default,{field:i,priority:0===n,className:"aspect-[394/560] object-cover md:hidden"})]},n)})})}),(0,t.jsxs)("div",{className:(0,Q.cn)("bg-limeyGreen absolute right-6 bottom-12 left-6 overflow-hidden rounded-[8px] md:right-auto md:w-[580px] lg:bottom-20 lg:left-20","tidal blue"===v&&"bg-tidalBlue","scurvy yellow"===v&&"bg-scurvyYellow"),ref:b,children:[(0,t.jsx)("div",{className:"flex",children:g?.map((e,n)=>{let r=e?.title,i=e?.description,l=e?.label,o=e?.primaryLink,a=e?.secondaryLink;return(0,t.jsxs)("div",{className:(0,Q.cn)("flex-[0_0_100%] p-6"),children:[l&&(0,t.jsx)("div",{className:(0,Q.cn)(el.subheadlineStyles,"bg-mainMastBrown text-limeyGreen mb-6 w-fit roun
1ded-[2px] px-1 pt-[1px] pb-[3px] leading-[16px] lg:mr-20 lg:leading-[17px]","tidal blue"===v&&"text-tidalBlue","scurvy yellow"===v&&"text-scurvyYellow"),children:l}),r&&(0,t.jsx)("h2",{className:(0,Q.cn)(el.heading2Styles,"text-wrap lg:mr-20"),children:r}),i&&(0,t.jsx)("div",{className:"mt-6",children:i}),(o?.text||a?.text)&&(0,t.jsxs)("div",{className:"mt-8 flex flex-col gap-y-3 lg:mt-6 lg:flex-row lg:flex-wrap lg:gap-x-3",children:[(0,t.jsx)(ee.default,{link:o}),(0,t.jsx)(ee.default,{link:a,type:"secondary"})]})]},n)})}),(0,t.jsxs)("div",{className:"flex items-center gap-x-3 px-6 pt-2 pb-6 lg:absolute lg:top-6 lg:right-6 lg:mt-0 lg:px-0",children:[(0,t.jsx)("button",{onClick:C,className:(0,Q.cn)("rotate-180"),children:(0,t.jsx)(ea,{label:"Previous"})}),(0,t.jsx)("button",{onClick:S,children:(0,t.jsx)(ea,{label:"Next"})})]})]})]}):h?(0,t.jsx)("div",{className:"mt-12 aspect-video lg:mt-[60px]",children:(0,t.jsx)(l.Stream,{autoplay:!0,controls:!0,muted:!0,preload:!0,src:h})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(et.default,{field:p,className:"mt-[60px] hidden aspect-[394/560] object-cover lg:block lg:aspect-[1440/600]",priority:!0}),(0,t.jsx)(et.default,{field:m,className:"mt-12 aspect-[394/560] object-cover lg:hidden",priority:!0})]})})]})})}],9061)},97242,e=>{"use strict";var t=e.i(43476),n=e.i(97815),r=e.i(21160),i=e.i(49124),l=e.i(29785),o=e.i(9408),a=e.i(14028),s=e.i(52542),c=e.i(6722),u=e.i(19534);e.s(["default",0,({slice:e})=>{let d=e?.primary?.colorTheme,f=e?.primary?.layout,p=e?.primary?.title,m=e?.primary?.text,h=e?.primary?.items,g=(0,i.default)(e?.primary?.anchorId)||(0,i.default)(p),{emblaRef:v,selectedIndex:y,scrollTo:x,scrollNext:b,scrollPrev:w}=(0,n.default)({breakpoints:{"(min-width: 1024px)":{align:"center"}}});return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,r.cn)((0,s.backgroundStyles)(d),"overflow-hidden"),...g?{id:g}:{},children:(0,t.jsxs)("div",{className:(0,r.cn)(c.containerStyles),children:[(0,t.jsx)(a.default,{title:p,text:m,titleLayout:"left",showArrows:!0,scrollNext:b,scrollPrev:w,selectedIndex:y,items:h}),(0,t.jsxs)("div",{className:(0,r.cn)("mt-12"),ref:v,children:[(0,t.jsx)("div",{className:"-ml-4 flex md:-ml-6",children:h?.map((e,n)=>{let i=e?.image,o=e?.caption;return(0,t.jsx)("div",{className:(0,r.cn)("flex-[0_0_100%] pl-4 md:flex-[0_0_52.5%] md:pl-6","portrait"===f&&"md:flex-[0_0_30%]"),children:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(l.default,{field:i,className:"rounded-[8px]"}),o&&(0,t.jsx)("div",{className:(0,r.cn)(u.subheadlineStyles,"mt-4"),children:o})]})},n)})}),(0,t.jsx)(o.default,{items:h,scrollTo:x,selectedIndex:y})]})]})})}])},99201,e=>{"use strict";var t=e.i(43476),n=e.i(97815),r=e.i(21160),i=e.i(49124),l=e.i(83183),o=e.i(29785),a=e.i(38951),s=e.i(9408),c=e.i(14028),u=e.i(52542),d=e.i(6722),f=e.i(19534);let p=({card:e,className:n})=>{let i=e?.image,s=e?.title,c=e?.text,u=e?.link;return(0,t.jsx)("div",{className:(0,r.cn)("md:col-span-1",n),children:(0,t.jsxs)("div",{className:"bg-offWhite h-full rounded-[8px] p-6 md:grid md:grid-cols-18 md:items-center md:gap-x-6",children:[(0,t.jsxs)("div",{className:"md:col-span-8",children:[s&&(0,t.jsx)("h3",{className:(0,r.cn)(f.heading6Styles),children:s}),(0,t.jsx)(a.default,{field:c,className:"mt-6"}),(0,t.jsx)(l.default,{link:u,type:"secondary",className:"mt-6"})]}),(0,t.jsx)("div",{className:"mt-6 md:col-span-10 md:mt-0",children:(0,t.jsx)(o.default,{field:i,className:"rounded-[8px]"})})]})})};e.s(["default",0,({slice:e})=>{let l=e?.primary?.colorTheme,o=e?.primary?.title,a=e?.primary?.text,f=e?.primary?.cards,m=(0,i.default)(e?.primary?.anchorId)||(0,i.default)(o),{emblaRef:h,selectedIndex:g,scrollTo:v,scrollNext:y,scrollPrev:x}=(0,n.default)({breakpoints:{"(min-width: 1024px)":{align:"center"}}});return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,r.cn)((0,u.backgroundStyles)(l),"overflow-hidden"),...m?{id:m}:{},children:(0,t.jsxs)("div",{className:(0,r.cn)(d.containerStyles),children:[(0,t.jsx)(c.default,{title:o,text:a,titleLayout:"left",colorTheme:l,showArrows:f?.length>2,selectedIndex:g,scrollNext:y,scrollPrev:x,items:f}),f?.length>2?(0,t.jsxs)("div",{className:"mt-12 md:mt-[60px]",ref:h,children:[(0,t.jsx)("div",{className:"-ml-4 flex md:-ml-6",children:f?.map((e,n)=>(0,t.jsx)(p,{card:e,className:"flex-[0_0_100%] pl-4 md:flex-[0_0_52.5%] md:pl-6"},n))}),(0,t.jsx)(s.default,{items:f,scrollTo:v,selectedIndex:g,theme:"sargasso white"===l?"light":"dark"})]}):(0,t.jsx)("div",{className:"mt-12 flex flex-col gap-y-4 md:mt-[60px] lg:grid lg:grid-cols-2 lg:gap-x-6",children:f?.map((e,n)=>(0,t.jsx)(p,{card:e},n))})]})})}])},1912,e=>{"use strict";var t=e.i(43476),n=e.i(21160),r=e.i(49124),i=e.i(61140),l=e.i(52542),o=e.i(6722),a=e.i(19534);e.s(["default",0,({slice:e,index:s})=>{let c=e?.primary?.title,u=(0,r.default)(e?.primary?.anchorId)||(0,r.default)(c);return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,l.backgroundStyles)(),...u?{id:u}:{},children:(0,t.jsxs)("div",{className:(0,n.cn)(o.containerStyles),children:[c&&(0,t.jsx)(t.Fragment,{children:0===s?(0,t.jsx)("h1",{className:(0,n.cn)(a.heading5Styles,"mb-8 text-center lg:col-span-6 lg:col-start-4 lg:mb-12"),children:c}):(0,t.jsx)("h2",{className:(0,n.cn)(a.heading5Styles,"mb-8 text-center lg:col-span-6 lg:col-start-4 lg:mb-12"),children:c})}),(0,t.jsx)("div",{className:"lg:col-span-6 lg:col-start-4",children:(0,t.jsx)(i.default,{})})]})})}])},81231,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(21160),i=e.i(6722);e.s(["default",0,function({slice:e}){let l=e?.primary?.embedCode,o=(0,n.useRef)(null),a=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{let e=o.current;if(e&&l&&!a.current)return a.current=!0,e.innerHTML=l,Array.from(e.querySelectorAll("script")).forEac
1h(e=>{let t=document.createElement("script");Array.from(e.attributes).forEach(e=>{t.setAttribute(e.name,e.value)}),t.text=e.textContent||"",e.parentNode?.replaceChild(t,e)}),()=>{e.innerHTML="",a.current=!1}},[l]),(0,t.jsx)("div",{className:(0,r.cn)(i.containerStyles),children:(0,t.jsx)("div",{ref:o})})}])},23054,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(97815),i=e.i(21160),l=e.i(49124),o=e.i(83183),a=e.i(29785),s=e.i(9408),c=e.i(14028),u=e.i(5220),d=e.i(52542),f=e.i(6722),p=e.i(19534);let m=({people:e,isSelected:n})=>{let{emblaRef:l,selectedIndex:c,scrollTo:u}=(0,r.default)({active:e?.length>1,breakpoints:{"(min-width: 1024px)":{active:e?.length>3}}});return(0,t.jsxs)("div",{className:(0,i.cn)("pointer-events-none row-start-1 mt-12 min-w-0 opacity-0 transition duration-[400ms] md:mt-[60px]",n&&"pointer-events-auto opacity-100"),ref:l,children:[(0,t.jsx)("div",{className:"-ml-4 flex md:-ml-6",children:e?.map((e,n)=>{let r=e?.image,l=e?.name,s=e?.title,c=e?.link;return(0,t.jsxs)("div",{className:"flex-[0_0_86%] pl-4 md:flex-[0_0_44%] md:pl-6 lg:flex-[0_0_29%]",children:[(0,t.jsx)(a.default,{field:r,className:"mb-4 rounded-[8px]"}),(0,t.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,t.jsx)("div",{className:(0,i.cn)(p.heading5Styles),children:l}),s&&(0,t.jsx)("div",{children:s}),(0,t.jsx)(o.default,{link:c,type:"secondary"})]})]},n)})}),e?.length>1&&(0,t.jsx)(s.default,{items:e,scrollTo:u,selectedIndex:c})]})};e.s(["default",0,({slice:e})=>{let r=e?.primary?.title,o=e?.primary?.people,a=(0,l.default)(e?.primary?.anchorId)||(0,l.default)(r),s=o?.map(e=>e?.category),p=[...new Set(s)].filter(Boolean),h=p?.length>0,[g,v]=(0,n.useState)(p?.[0]),y=p?.map(e=>({value:e,label:e}));return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,i.cn)((0,d.backgroundStyles)("limey green"),"overflow-hidden"),...a?{id:a}:{},children:(0,t.jsxs)("div",{className:(0,i.cn)(f.containerStyles),children:[(0,t.jsx)(c.default,{title:r}),(0,t.jsx)("div",{className:"mt-8 md:hidden",children:(0,t.jsx)(u.default,{items:y,value:g,onValueChange:v})}),(0,t.jsx)("div",{className:"bg-offWhite mx-auto mt-8 hidden items-center justify-center rounded-[8px] p-1 md:flex",children:p?.map((e,n)=>(0,t.jsx)("button",{onClick:()=>v(e),className:(0,i.cn)("lg:hover:bg-breakerWhite rounded-[8px] px-[28px] py-[15px] text-[18px] leading-[18px] transition",g===e&&"bg-dockyardPink lg:hover:bg-dockyardPink"),children:e},n))}),(0,t.jsx)("div",{className:"grid",children:p?.map((e,n)=>(0,t.jsx)(m,{people:o?.filter(t=>!h||t?.category===p?.find(t=>t===e)),isSelected:g===e},n))})]})})}])},76597,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(87652);e.i(36095);var i=e.i(89383),l=e.i(22901),o=e.i(21160),a=e.i(49124),s=e.i(14028),c=e.i(52542),u=e.i(6722),d=e.i(19534);e.s(["default",0,({slice:e})=>{let f=e?.primary?.title,p=e?.primary?.text,m=e?.primary?.items,h=(0,a.default)(e?.primary?.anchorId)||(0,a.default)(f),g=(0,n.useRef)(null),v=(0,r.useInView)(g,{amount:.5,once:!0});return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,o.cn)((0,c.backgroundStyles)("city steel"),"overflow-hidden"),...h?{id:h}:{},children:(0,t.jsxs)("div",{className:(0,o.cn)(u.containerStyles),ref:g,children:[(0,t.jsx)(s.default,{title:f,text:p,colorTheme:"city steel"}),(0,t.jsx)("div",{className:(0,o.cn)("grid gap-y-4 lg:grid-cols-12 lg:gap-x-6 lg:gap-y-6",f&&"mt-12 lg:mt-[60px]"),children:m?.map((e,n)=>{let r=e?.statPrefix,a=e?.statNumber,s=e?.statSuffix,c=e?.description;return(0,t.jsx)("div",{className:"lg:col-span-6",children:(0,t.jsxs)("div",{className:(0,o.cn)("bg-offWhite flex flex-col gap-y-6 rounded-[8px] p-6 lg:flex-row lg:items-center lg:justify-between lg:gap-x-12"),children:[(0,t.jsxs)("div",{className:(0,o.cn)(d.heading1Styles,"relative shrink-0 overflow-hidden text-[86px] leading-[77.4px] tracking-[-0.86px]","bg-tidalBlue w-max px-1",n%6==1&&"bg-sargassoWhite",n%6==2&&"bg-limeyGreen",n%6==3&&"bg-scurvyYellow",n%6==4&&"bg-propellerOrange",n%6==5&&"bg-fairweatherBlue"),children:[(0,t.jsx)("span",{className:"absolute top-[-26px] left-[4px] h-full w-full opacity-100",children:a?(0,t.jsx)(i.default,{plugins:[l.continuous],value:v?a:0,locales:"en",prefix:r,suffix:s,style:{fontVariantNumeric:"tabular-nums"}}):(0,t.jsxs)("div",{className:"mt-[26px]",children:[r,s]})}),(0,t.jsxs)("span",{className:"opacity-0",style:{fontVariantNumeric:"tabular-nums"},children:[r,a?Intl.NumberFormat("en").format(a):"",s]})]}),(0,t.jsx)("div",{className:"lg:text-right",children:c})]})},n)})})]})})}])},5880,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(30013),i=e.i(87652);e.i(36095);var l=e.i(89383),o=e.i(22901),a=e.i(21160),s=e.i(49124),c=e.i(38951),u=e.i(9408),d=e.i(14028),f=e.i(52542),p=e.i(6722),m=e.i(19534);e.s(["default",0,({slice:e})=>{let h=e?.primary?.title,g=e?.primary?.text,v=e?.primary?.items,y=(0,s.default)(e?.primary?.anchorId)||(0,s.default)(h),[x,b]=(0,n.use
1State)(0),[w,j]=(0,n.useState)(0),[S,C]=(0,r.default)({active:v?.length>1,breakpoints:{"(min-width: 768px)":{active:!1}}}),N=(0,n.useCallback)(()=>{C&&j(C.selectedScrollSnap())},[C]);(0,n.useEffect)(()=>{C&&(N(),C.on("select",N))},[C,N]);let E=(0,n.useCallback)(e=>{C&&C.scrollTo(e)},[C]),k=(0,n.useRef)(null),R=(0,i.useInView)(k,{amount:.5,once:!0});return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,a.cn)((0,f.backgroundStyles)(),"overflow-hidden"),...y?{id:y}:{},children:(0,t.jsxs)("div",{className:(0,a.cn)(p.containerStyles),ref:k,children:[(0,t.jsx)(d.default,{title:h,text:g,titleLayout:"left",showArrows:v?.length>1,scrollNext:()=>b(x+1),scrollPrev:()=>b(x-1),selectedIndex:x,items:v}),(0,t.jsxs)("div",{className:"mt-12 lg:mt-[60px]",ref:S,children:[(0,t.jsx)("div",{className:"-ml-6 flex md:ml-0 md:grid",children:v?.map((e,n)=>{let r=e?.title,i=e?.quote,s=e?.name,u=e?.stat1Prefix,d=e?.stat1Number,f=e?.stat1Suffix,p=e?.stat1Description,h=e?.stat2Prefix,g=e?.stat2Number,v=e?.stat2Suffix,y=e?.stat2Description;return(0,t.jsxs)("div",{className:(0,a.cn)("grid flex-[0_0_100%] gap-y-4 pl-6 md:pointer-events-none md:row-start-1 md:grid-cols-12 md:gap-x-6 md:pl-0 md:opacity-0 md:transition",x===n&&"md:pointer-events-auto md:opacity-100"),children:[(0,t.jsx)("div",{className:(0,a.cn)("lg:col-span-6"),children:(0,t.jsxs)("div",{className:"bg-offWhite h-full rounded-[8px] p-6",children:[(0,t.jsx)("h3",{className:(0,a.cn)(m.heading6Styles),children:r}),(0,t.jsx)(c.default,{field:i,className:(0,a.cn)(m.quoteStyles)}),s&&(0,t.jsxs)("div",{className:"mt-12",children:["— ",s]})]})}),d&&(0,t.jsx)("div",{className:(0,a.cn)("lg:col-span-3"),children:(0,t.jsxs)("div",{className:"bg-offWhite h-full rounded-[8px] p-6",children:[(0,t.jsxs)("div",{className:(0,a.cn)(m.heading1Styles,"relative shrink-0 overflow-hidden text-[86px] leading-[77.4px] tracking-[-0.86px]","bg-fairweatherBlue w-max px-1"),children:[(0,t.jsx)("span",{className:"absolute top-[-26px] left-[4px] h-full w-full opacity-100",children:d?(0,t.jsx)(l.default,{plugins:[o.continuous],value:R?d:0,locales:"en",prefix:u,suffix:f,style:{fontVariantNumeric:"tabular-nums"}}):(0,t.jsxs)("div",{className:"mt-[26px]",children:[u,f]})}),(0,t.jsxs)("span",{className:"opacity-0",style:{fontVariantNumeric:"tabular-nums"},children:[u,d?Intl.NumberFormat("en").format(d):"",f]})]}),p&&(0,t.jsx)("div",{className:"mt-6",children:p})]})}),g&&(0,t.jsx)("div",{className:(0,a.cn)("lg:col-span-3"),children:(0,t.jsxs)("div",{className:"bg-offWhite h-full rounded-[8px] p-6",children:[(0,t.jsxs)("div",{className:(0,a.cn)(m.heading1Styles,"relative shrink-0 overflow-hidden text-[86px] leading-[77.4px] tracking-[-0.86px]","bg-propellerOrange w-max px-1"),children:[(0,t.jsx)("span",{className:"absolute top-[-26px] left-[4px] h-full w-full opacity-100",children:g?(0,t.jsx)(l.default,{plugins:[o.continuous],value:R?g:0,locales:"en",prefix:h,suffix:v,style:{fontVariantNumeric:"tabular-nums"}}):(0,t.jsxs)("div",{className:"mt-[26px]",children:[h,v]})}),(0,t.jsxs)("span",{className:"opacity-0",style:{fontVariantNumeric:"tabular-nums"},children:[h,g?Intl.NumberFormat("en").format(g):"",v]})]}),y&&(0,t.jsx)("div",{className:"mt-6",children:y})]})})]},n)})}),v?.length>1&&(0,t.jsx)(u.default,{selectedIndex:w,scrollTo:E,items:v})]})]})})}])},87035,e=>{"use strict";var t=e.i(43476),n=e.i(97815),r=e.i(21160),i=e.i(49124),l=e.i(38951),o=e.i(9408),a=e.i(14028),s=e.i(52542),c=e.i(6722),u=e.i(19534);e.s(["default",0,({slice:e})=>{let d=e?.primary?.colorTheme,f=e?.primary?.title,p=e?.primary?.text,m=e?.primary?.testimonials,h=(0,i.default)(e?.primary?.anchorId)||(0,i.default)(f),{emblaRef:g,selectedIndex:v,scrollTo:y,scrollNext:x,scrollPrev:b}=(0,n.default)({breakpoints:{"(min-width: 1024px)":{align:"center"}}});return(0,t.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,r.cn)((0,s.backgroundStyles)(d),"overflow-hidden"),...h?{id:h}:{},children:(0,t.jsxs)("div",{className:(0,r.cn)(c.containerStyles),children:[(0,t.jsx)(a.default,{title:f,text:p,titleLayout:"left",showArrows:!0,scrollNext:x,scrollPrev:b,selectedIndex:v,items:m}),(0,t.jsxs)("div",{className:(0,r.cn)(f&&"mt-12"),ref:g,children:[(0,t.jsx)("div",{className:"-ml-4 flex md:-ml-6",children:m?.map((e,n)=>{let i=e?.title,o=e?.quote,a=e?.name;return(0,t.jsx)("div",{className:"flex-[0_0_100%] pl-4 md:flex-[0_0_52.5%] md:pl-6",children:(0,t.jsxs)("div",{className:"bg-offWhite flex h-full flex-col rounded-[8px] p-8",children:[i&&(0,t.jsx)("h3",{className:(0,r.cn)(u.heading6Styles,"mb-6"),children:i}),(0,t.jsx)(l.default,{field:o,className:(0,r.cn)(u.quoteStyles)}),a&&(0,t.jsxs)("div",{className:"mt-auto pt-12 md:pt-10 lg:pt-[180px]",children:["— ",a]})]})},n)})}),(0,t.jsx)(o.default,{items:m,scrollTo:y,selectedIndex:v})]})]})})}])},96727,e=>{"use strict";let t;var n=e.i(43476),r=e.i(71645),i=e.i(25705);let l=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,o=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,a=/\.(m3u8)($|\?)/i,s=/\.(mpd)($|\?)/i,c=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|wat
1ch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,d=/vimeo\.com\/(?!progressive_redirect).+/,f=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,p=/open\.spotify\.com\/(\w+)\/(\w+)/i,m=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+|(videos?\/|\?video=)\d+)($|\?)/,h=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,g=(e,t)=>{if(Array.isArray(e)){for(let n of e)if("string"==typeof n&&g(n,t)||g(n.src,t))return!0;return!1}return t(e)},v=r.default.forwardRef((e,t)=>{let n=l.test(`${e.src}`)?"audio":"video";return r.default.createElement(n,{...e,ref:t},e.children)}),y=[{key:"hls",name:"hls.js",canPlay:e=>g(e,e=>a.test(e)),canEnablePIP:()=>!0,player:(0,r.lazy)(()=>e.A(52953))},{key:"dash",name:"dash.js",canPlay:e=>g(e,e=>s.test(e)),canEnablePIP:()=>!0,player:(0,r.lazy)(()=>e.A(64594))},{key:"mux",name:"Mux",canPlay:e=>c.test(e),canEnablePIP:()=>!0,player:(0,r.lazy)(()=>e.A(94375))},{key:"youtube",name:"YouTube",canPlay:e=>u.test(e),player:(0,r.lazy)(()=>e.A(41554))},{key:"vimeo",name:"Vimeo",canPlay:e=>d.test(e)&&!o.test(e)&&!a.test(e),player:(0,r.lazy)(()=>e.A(9705))},{key:"wistia",name:"Wistia",canPlay:e=>f.test(e),canEnablePIP:()=>!0,player:(0,r.lazy)(()=>e.A(27544))},{key:"spotify",name:"Spotify",canPlay:e=>p.test(e),canEnablePIP:()=>!1,player:(0,r.lazy)(()=>e.A(72170))},{key:"twitch",name:"Twitch",canPlay:e=>m.test(e),canEnablePIP:()=>!1,player:(0,r.lazy)(()=>e.A(78449))}
1,{key:"tiktok",name:"TikTok",canPlay:e=>h.test(e),canEnablePIP:()=>!1,player:(0,r.lazy)(()=>e.A(96152))},{key:"html",name:"html",canPlay:e=>g(e,e=>l.test(e)||o.test(e)),canEnablePIP:()=>!0,player:v}],x={width:"320px",height:"180px",volume:1,playbackRate:1,previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}"},b=r.default.forwardRef((e,t)=>{let{playing:n,pip:i}=e,l=e.activePlayer,o=(0,r.useRef)(null),a=(0,r.useRef)(!0);if((0,r.useEffect)(()=>{var t,r;o.current&&(o.current.paused&&!0===n&&o.current.play(),o.current.paused||!1!==n||o.current.pause(),o.current.playbackRate=null!=(t=e.playbackRate)?t:1,o.current.volume=null!=(r=e.volume)?r:1)}),(0,r.useEffect)(()=>{var e,t,n,r,l;if(o.current&&globalThis.document){if(i&&!document.pictureInPictureElement)try{null==(t=(e=o.current).requestPictureInPicture)||t.call(e)}catch(e){}if(!i&&document.pictureInPictureElement)try{null==(r=(n=o.current).exitPictureInPicture)||r.call(n),null==(l=document.exitPictureInPicture)||l.call(document)}catch(e){}}},[i]),!l)return null;let s={},c=["onReady","onStart"];for(let t in e)t.startsWith("on")&&!c.includes(t)&&(s[t]=e[t]);return r.default.createElement(l,{...s,style:e.style,className:e.className,slot:e.slot,ref:(0,r.useCallback)(e=>{o.current=e,"function"==typeof t?t(e):null!==t&&(t.current=e)},[t]),src:e.src,crossOrigin:e.crossOrigin,preload:e.preload,controls:e.controls,muted:e.muted,autoPlay:e.autoPlay,loop:e.loop,playsInline:e.playsInline,disableRemotePlayback:e.disableRemotePlayback,config:e.config,onLoadStart:t=>{var n,r;a.current=!0,null==(n=e.onReady)||n.call(e),null==(r=e.onLoadStart)||r.call(e,t)},onPlay:t=>{var n,r;a.current&&(a.current=!1,null==(n=e.onStart)||n.call(e,t)),null==(r=e.onPlay)||r.call(e,t)}},e.children)});b.displayName="Player";let w=(0,r.lazy)(()=>e.A(13470)),j=[],S=({children:e})=>e,C=y[y.length-1];var N=((t=r.default.forwardRef((e,t)=>{let n={...x,...e},{src:i,slot:l,className:o,style:a,width:s,height:c,fallback:u,wrapper:d}=n,[f,p]=(0,r.useState)(!!n.light);(0,r.useEffect)(()=>{n.light?p(!0):p(!1)},[n.light]);let m=e=>{var t;p(!1),null==(t=n.onClickPreview)||t.call(n,e)},h=null==d?S:d,g=!1===u?S:r.Suspense;return r.default.createElement(h,{slot:l,className:o,style:{width:s,height:c,...a}},r.default.createElement(g,{fallback:u},f?(e=>{if(!e)return null;let{light:t,playIcon:i,previewTabIndex:l,oEmbedUrl:o,previewAriaLabel:a}=n;return r.default.createElement(w,{src:e,light:t,playIcon:i,previewTabIndex:l,previewAriaLabel:a,oEmbedUrl:o,onClickPreview:m})})(i):(e=>{var i,a;let s=(e=>{for(let t of[...j,...y])if(e&&t.canPlay(e))return t;return C||null})(e);if(!s)return null;let{style:c,width:u,height:d,wrapper:f}=n,p=null==(i=n.config)?void 0:i[s.key];return r.default.createElement(b,{...n,ref:t,activePlayer:null!=(a=s.player)?a:s,slot:f?void 0:l,className:f?void 0:o,style:f?{display:"block",width:"100%",height:"100%"}:{display:"block",width:u,height:d,...c},config:p})})(i)))})).displayName="ReactPlayer",t.addCustomPlayer=e=>{j.push(e)},t.removeCustomPlayers=()=>{j.length=0},t.canPlay=e=>{if(e){for(let t of[...j,...y])if(t.canPlay(e))return!0}return!1},t.canEnablePIP=e=>{var t;if(e){for(let n of[...j,...y])if(n.canPlay(e)&&(null==(t=n.canEnablePIP)?void 0:t.call(n)))return!0}return!1},t),E=e.i(21160),k=e.i(49124),R=e.i(83183),M=e.i(29785),A=e.i(38951),I=e.i(52542),P=e.i(6722),T=e.i(19534);let L=()=>(0,n.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 0C37.248 0 48 10.752 48 24C48 37.248 37.248 48 24 48C10.752 48 0 37.248 0 24C0 10.752 10.752 0 24 0ZM16.7713 8.48533C15.9069 7.90722 14.748 8.52767 14.748 9.56854V38.4247C14.748 39.4655 15.9067 40.0859 16.7711 39.5081L38.3481 25.0831C39.1194 24.5675 39.1195 23.4324 38.3483 22.9166L16.7713 8.48533Z",fill:"#FF84FD"})});e.s(["default",0,({slice:e})=>{let t=e?.primary?.text,l=t?.[0]?.text,o=e?.primary?.link,a=e?.primary?.image,s=e?.primary?.cloudflareStreamVideoId,c=e?.primary?.youtubeEmbedUrl,u=e?.primary?.caption,d=a?.url,f=(0,k.default)(e?.primary?.anchorId),[p,m]=(0,r.useState)(!1);return(0,n.jsx)("section",{"data-slice-type":e.slice_type,"data-slice-variation":e.variation,className:(0,I.backgroundStyles)(),...f?{id:f}:{},children:(0,n.jsxs)("div",{className:(0,E.cn)(P.containerStyles,"items-start"),children:[(0,n.jsxs)("div",{className:"lg:col-span-8",children:[(0,n.jsx)(A.default,{field:t,components:{heading2:({children:e})=>(0,n.jsx)("h2",{className:(0,E.cn)(T.heading4Styles,"mb-8"),children:e})}}),(0,n.jsx)(R.default,{link:o,type:"secondary",className:"mt-8"})]}),c?(0,n.jsx)("div",{className:l&&"mt-12 lg:mt-[60px]",children:(0,n.jsx)(N,{src:c,style:{width:"100%",height:"auto",aspectRatio:"16/9"}})}):(d||s)&&(0,n.jsx)("div",{className:l&&"mt-12 lg:mt-[60px]",children:d&&(0,n.jsxs)("div",{className:"group/wrapper relative grid",children:[(0,n.jsx)("div",{className:"relative row-start-1 overflow-hidden rounded-[8px]",children:(0,n.jsx)(M.default,{field:a,className:(0,E.cn)(s&&"transition duration-300 lg:group-hover/wrapper:scale-105",p&&"hidden")})}),s&&!p&&(0,n.jsx)("button",{onClick:()=>m(!0),className:"absolute top-0 left-0 h-full w-full",children:(0,n.jsx)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 lg:top-auto lg:right-6 lg:bottom-6 lg:left-auto lg:translate-x-0 lg:translate-y-0",children:(0,n.jsx)(L,{})})}),p&&(0,n.jsx)("div",{className:"row-start-1 aspect-video overflow-hidden rounded-[8px]",children:(0,n.jsx)(i.Stream,{autoplay:!0,controls:!0,preload:!0,src:s})})]})}),u&&(0,n.jsx)("div",{className:(0,E.cn)(T.subheadlineStyles,"mt-4"),children:u})]})})}],96727)}]);

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.