PageSourceSearch

https://gotham.nyc/wp-content/plugins/dovetail-ecommerce/build/791.js?v=f3b4be412b1d2cd1bc1b

js gotham.nyc collected 2026-10-03 20:15:07 UTC 88,092 bytes, 1 lines download raw bytes

vendor: 5,434 bytes, line 1
1(globalThis.webpackChunkdovetail_ecommerce=globalThis.webpackChunkdovetail_ecommerce||[]).push([[791],{1737:(e,t,n)=>{"use strict";n.d(t,{a:()=>Vt,b:()=>Pt,g:()=>mt});var i=n(91963),o=n(46076),r=n(47010),l=n(54180),s=n(39389);const a=["top","right","bottom","left"],c=Math.min,u=Math.max,d=Math.round,p=Math.floor,f=e=>({x:e,y:e}),m={left:"right",right:"left",bottom:"top",top:"bottom"};function g(e,t,n){return u(e,c(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function v(e){return e.split("-")[0]}function y(e){return e.split("-")[1]}function b(e){return"x"===e?"y":"x"}function x(e){return"y"===e?"height":"width"}function I(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function E(e){return b(I(e))}function w(e,t,n){void 0===n&&(n=!1);const i=y(e),o=E(e),r=x(o);let l="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=N(l)),[l,N(l)]}function T(e){const t=N(e);return[O(e),t,O(t)]}function O(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const C=["left","right"],S=["right","left"],R=["top","bottom"],A=["bottom","top"];function L(e,t,n){switch(e){case"top":case"bottom":return n?t?S:C:t?C:S;case"left":case"right":return t?R:A;default:return[]}}function P(e,t,n,i){const o=y(e);let r=L(v(e),"start"===n,i);return o&&(r=r.map((e=>e+"-"+o)),t&&(r=r.concat(r.map(O)))),r}function N(e){const t=v(e);return m[t]+e.slice(t.length)}function V(e){var t,n,i,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(i=e.bottom)?i:0,left:null!=(o=e.left)?o:0}}function k(e){return"number"!=typeof e?V(e):{top:e,right:e,bottom:e,left:e}}function M(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function D(e,t,n){let{reference:i,floating:o}=e;const r=I(t),l=E(t),s=x(l),a=v(t),c="y"===r,u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,p=i[s]/2-o[s]/2;let f;switch(a){case"top":f={x:u,y:i.y-o.height};break;case"bottom":f={x:u,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:d};break;case"left":f={x:i.x-o.width,y:d};break;default:f={x:i.x,y:i.y}}const m=y(t);return m&&(f[l]+=p*("end"===m?1:-1)*(n&&c?-1:1)),f}async function F(e,t){var n;void 0===t&&(t={});const{x:i,y:o,platform:r,rects:l,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=h(t,e),m=k(f),g=s[p?"floating"===d?"reference":"floating":d],v=M(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:a})),y="floating"===d?{x:i,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),x=await(null==r.isElement?void 0:r.isElement(b))&&await(null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},I=M(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:a}):y);return{top:(v.top-I.top+m.top)/x.y,bottom:(I.bottom-v.bottom+m.bottom)/x.y,left:(v.left-I.left+m.left)/x.x,right:(I.right-v.right+m.right)/x.x}}const H=50,G=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:F},a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=D(c,i,a),p=i,f=0;const m={};for(let n=0;n<r.length;n++){const g=r[n];if(!g)continue;const{name:h,fn:v}=g,{x:y,y:b,data:x,reset:I}=await v({x:u,y:d,initialPlacement:i,placement:p,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=y??u,d=b??d,m[h]={...m[h],...x},I&&f<H&&(f++,"object"==typeof I&&(I.placement&&(p=I.placement),I.rects&&(c=!0===I.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):I.rects),({x:u,y:d}=D(c,p,a))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:m}},_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:r,platform:l,elements:s,middlewareData:a}=t,{element:u,padding:d=0}=h(e,t)||{};if(null==u)return{};const p=k(d),f={x:n,y:i},m=E(o),v=x(m),b=await l.getDimensions(u),I="y"===m,w=I?"top":"left",T=I?"bottom":"right",O=I?"clientHeight":"clientWidth",C=r.reference[v]+r.reference[m]-f[m]-r.floating[v],S=f[m]-r.reference[m],R=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let A=R?R[O]:0;(!A||!await(null==l.isElement?void 0:l.isElement(R)))&&(A=s.floating[O]||r.floating[v]);const L=C/2-S/2,P=A/2-b[v]/2-1,N=c(p[w],P),V=c(p[T],P),M=A-b[v]-V,D=A/2-b[v]/2+L,F=g(N,D,M),H=!a.arrow&&null!=y(o)&&D!==F&&r.reference[v]/2-(D<N?N:V)-b[v]/2<0,G=H?D<N?D-N:D-M:0;return{[m]:f[m]+G,data:{[m]:F,centerOffset:D-F-G,...H&&{alignmentOffset:G}},reset:H}}}),j=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:r,rects:l,initialPlacement:s,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...y}=h(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const b=v(o),x=I(s),E=v(s)===s,O=await(null==a.isRTL?void 0:a.isRTL(c.floating)),C=p||(E||!g?[N(s)]:T(s)),S="none"!==m;!p&&S&&C.push(...P(s,g,m,O));
vendor: 6,439 bytes, line 1
1const R=[s,...C],A=await a.detectOverflow(t,y),L=[];let V=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&L.push(A[b]),d){const e=w(o,l,O);L.push(A[e[0]],A[e[1]])}if(V=[...V,{placement:o,overflows:L}],!L.every((e=>e<=0))){var k,M;const e=((null==(k=r.flip)?void 0:k.index)||0)+1,t=R[e];if(t&&("alignment"!==d||x===I(t)||V.every((e=>I(e.placement)!==x||e.overflows[0]>0))))return{data:{index:e,overflows:V},reset:{placement:t}};let n=null==(M=V.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=V.filter((e=>{if(S){const t=I(e.placement);return t===x||"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:D[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function W(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $(e){return a.some((t=>e[t]>=0))}const z=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:o="referenceHidden",...r}=h(e,t);switch(o){case"referenceHidden":{const e=W(await i.detectOverflow(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:$(e)}}}case"escaped":{const e=W(await i.detectOverflow(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:$(e)}}}default:return{}}}}},U=new Set(["left","top"]);async function B(e,t){const{placement:n,platform:i,elements:o}=e,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),l=v(n),s=y(n),a="y"===I(n),c=U.has(l)?-1:1,u=r&&a?-1:1,d=h(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),a?{x:f*u,y:p*c}:{x:p*c,y:f*u}}const q=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:r,placement:l,middlewareData:s}=t,a=await B(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:o+a.x,y:r+a.y,data:{...a,placement:l}}}}},K=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o,platform:r}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=h(e,t),u={x:n,y:i},d=await r.detectOverflow(t,c),p=I(o),f=b(p);let m=u[f],v=u[p];const y=(e,t)=>g(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);l&&(m=y(f,m)),s&&(v=y(p,v));const x=a.fn({...t,[f]:m,[p]:v});return{...x,data:{x:x.x-n,y:x.y-i,enabled:{[f]:l,[p]:s}}}}}},Y=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,i;const{x:o,y:r,placement:l,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=h(e,t),p={x:o,y:r},f=I(l),m=b(f);let g=p[m],y=p[f];const x=h(c,t),E="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:null!=(n=x.mainAxis)?n:0,crossAxis:null!=(i=x.crossAxis)?i:0};if(u){const e="y"===m?"height":"width",t=s.reference[m]-s.floating[e]+E.mainAxis,n=s.reference[m]+s.reference[e]-E.mainAxis;g<t?g=t:g>n&&(g=n)}if(d){var w,T;const e="y"===m?"width":"height",t=U.has(v(l)),n=s.reference[f]-s.floating[e]+(t&&(null==(w=a.offset)?void 0:w[f])||0)+(t?0:E.crossAxis),i=s.reference[f]+s.reference[e]+(t?0:(null==(T=a.offset)?void 0:T[f])||0)-(t?E.crossAxis:0);y<n?y=n:y>i&&(y=i)}return{[m]:g,[f]:y}}}},X=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:o,elements:r}=t,{apply:l=()=>{},...s}=h(e,t),a=await o.detectOverflow(t,s),d=v(n),p=y(n),f="y"===I(n),{width:m,height:g}=i.floating;let b,x;"top"===d||"bottom"===d?(b=d,x=p===(await(null==o.isRTL?void 0:o.isRTL(r.floating))?"start":"end")?"left":"right"):(x=d,b="end"===p?"top":"bottom");const E=g-a.top-a.bottom,w=m-a.left-a.right,T=c(g-a[b],E),O=c(m-a[x],w),C=t.middlewareData.shift,S=!C;let R=T,A=O;null!=C&&C.enabled.x&&(A=w),null!=C&&C.enabled.y&&(R=E),S&&!p&&(f?A=m-2*u(a.left,a.right):R=g-2*u(a.top,a.bottom)),await l({...t,availableWidth:A,availableHeight:R});const L=await o.getDimensions(r.floating);return m!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function J(){return typeof window<"u"}function Z(e){return te(e)?(e.nodeName||"").toLowerCase():"#document"}function Q(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ee(e){var t;return null==(t=(te(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function te(e){return!!J()&&(e instanceof Node||e instanceof Q(e).Node)}function ne(e){return!!J()&&(e instanceof Element||e instanceof Q(e).Element)}function ie(e){return!!J()&&(e instanceof HTMLElement||e instanceof Q(e).HTMLElement)}function oe(e){return!(!J()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot)}function re(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=he(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&"inline"!==o&&"contents"!==o}function le(e){return/^(table|td|th)$/.test(Z(e))}function se(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ae=/transform|translate|scale|rotate|perspective|filter/,ce=/paint|layout|strict|content/,ue=e=>!!e&&"none"!==e;let de;function pe(e){const t=ne(e)?he(e):e;return ue(t.transform)||ue(t.translate)||ue(t.scale)||ue(t.rotate)||ue(t.perspective)||!me()&&(ue(t.backdropFilter)||ue(t.filter))||ae.test(t.willChange||"")||ce.test(t.contain||"")}function fe(e){let t=ye(e);for(;ie(t)&&!ge(t);){if(pe(t))return t;if(se(t))return null;t=ye(t)}return null}function me(){return null==de&&(de=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),de}function ge(e){return/^(html|body|#document)$/.test(Z(e))}function he(e){return Q(e).getComputedStyle(e)}function ve(e){return ne(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ye(e){if("html"===Z(e))return e;const t=e.assignedSlot||e.parentNode||oe(e)&&e.host||ee(e);return oe(t)?t.host:t}function be(e){const t=ye(e);return ge(t)?(e.ownerDocument||e).body:ie(t)&&re(t)?t:be(t)}function xe(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=be(e),r=o===(null==(i=e.ownerDocument)?void 0:i.body),l=Q(o);if(r){const e=Ie(l);
vendor: 6,761 bytes, line 1
1return t.concat(l,l.visualViewport||[],re(o)?o:[],e&&n?xe(e):[])}return t.concat(o,xe(o,[],n))}function Ie(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ee(e){const t=he(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=ie(e),r=o?e.offsetWidth:n,l=o?e.offsetHeight:i,s=d(n)!==r||d(i)!==l;return s&&(n=r,i=l),{width:n,height:i,$:s}}function we(e){return ne(e)?e:e.contextElement}function Te(e){const t=we(e);if(!ie(t))return f(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:r}=Ee(t);let l=(r?d(n.width):n.width)/i,s=(r?d(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const Oe=f(0);function Ce(e){const t=Q(e);return me()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Oe}function Se(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===Q(e)}function Re(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),r=we(e);let l=f(1);t&&(i?ne(i)&&(l=Te(i)):l=Te(e));const s=Se(r,n,i)?Ce(r):f(0);let a=(o.left+s.x)/l.x,c=(o.top+s.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(r&&i){const e=Q(r),t=ne(i)?Q(i):i;let n=e,o=Ie(n);for(;o&&t!==n;){const e=Te(o),t=o.getBoundingClientRect(),i=he(o),r=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;a*=e.x,c*=e.y,u*=e.x,d*=e.y,a+=r,c+=l,n=Q(o),o=Ie(n)}}return M({width:u,height:d,x:a,y:c})}function Ae(e,t){const n=ve(e).scrollLeft;return t?t.left+n:Re(ee(e)).left+n}function Le(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ae(e,n),y:n.top+t.scrollTop}}function Pe(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const r="fixed"===o,l=ee(i),s=!!t&&se(t.floating);if(i===l||s&&r)return n;let a={scrollLeft:0,scrollTop:0},c=f(1);const u=f(0),d=ie(i);if((d||!r)&&(("body"!==Z(i)||re(l))&&(a=ve(i)),d)){const e=Re(i);c=Te(i),u.x=e.x+i.clientLeft,u.y=e.y+i.clientTop}const p=!l||d||r?f(0):Le(l,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-a.scrollTop*c.y+u.y+p.y}}function Ne(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ve(e){const t=ve(e),n=e.ownerDocument.body,i=u(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=u(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-t.scrollLeft+Ae(e);const l=-t.scrollTop;return"rtl"===he(n).direction&&(r+=u(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:r,y:l}}const ke=25;function Me(e,t,n){void 0===n&&(n="viewport");const i="layoutViewport"===n,o=Q(e),r=ee(e),l=o.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,u=0;if(l){const e=!me()||"fixed"===t;i?e||(c=-l.offsetLeft,u=-l.offsetTop):(s=l.width,a=l.height,e&&(c=l.offsetLeft,u=l.offsetTop))}if(Ae(r)<=0){const 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),l="stable both-edges"===getComputedStyle(r).scrollbarGutter?o/2:o;l<=ke&&(s-=l)}return{width:s,height:a,x:c,y:u}}function De(e,t){const n=Re(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,r=Te(e);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:o*r.x,y:i*r.y}}function Fe(e,t,n){let i;if("viewport"===t||"layoutViewport"===t)i=Me(e,n,t);else if("document"===t)i=Ve(ee(e));else if(ne(t))i=De(t,n);else{const n=Ce(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return M(i)}function He(e,t){const n=t.get(e);if(n)return n;let i=xe(e,[],!1).filter((e=>ne(e)&&"body"!==Z(e))),o=null;const r="fixed"===he(e).position;let l=r?ye(e):e;for(;ne(l)&&!ge(l);){const e=he(l),t=pe(l),n=o?o.position:r?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:i=i.filter((e=>e!==l)),l=ye(l)}return t.set(e,i),i}function Ge(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const r=[..."clippingAncestors"===n?se(t)?[]:He(t,this._c):[].concat(n),i],l=Fe(t,r[0],o);let s=l.top,a=l.right,d=l.bottom,p=l.left;for(let e=1;e<r.length;e++){const n=Fe(t,r[e],o);s=u(n.top,s),a=c(n.right,a),d=c(n.bottom,d),p=u(n.left,p)}return{width:a-p,height:d-s,x:p,y:s}}function _e(e){const{width:t,height:n}=Ee(e);return{width:t,height:n}}function je(e,t,n){const i=ie(t),o=ee(t),r="fixed"===n,l=Re(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const a=f(0);if((i||!r)&&(("body"!==Z(t)||re(o))&&(s=ve(t)),i)){const e=Re(t,!0,r,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!i&&o&&(a.x=Ae(o));const c=!o||i||r?f(0):Le(o,s);return{x:l.left+s.scrollLeft-a.x-c.x,y:l.top+s.scrollTop-a.y-c.y,width:l.width,height:l.height}}function We(e){return"static"===he(e).position}function $e(e,t){if(!ie(e)||"fixed"===he(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function ze(e,t){const n=Q(e);if(se(e))return n;if(!ie(e)){let t=ye(e);for(;t&&!ge(t);){if(ne(t)&&!We(t))return t;t=ye(t)}return n}let i=$e(e,t);for(;i&&le(i)&&We(i);)i=$e(i,t);return i&&ge(i)&&We(i)&&!pe(i)?n:i||fe(e)||n}function Ue(e){return"rtl"===he(e).direction}const Be={convertOffsetParentRelativeRectToViewportRelativeRect:Pe,getDocumentElement:ee,getClippingRect:Ge,getOffsetParent:ze,getElementRects:async function(e){const t=this.getOffsetParent||ze,n=this.getDimensions,i=await n(e.floating);return{reference:je(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:Ne,getDimensions:_e,getScale:Te,isElement:ne,isRTL:Ue};function qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ke(e,t,n){let i,o=null;const r=ee(e);function l(){var e;clearTimeout(i),null==(e=o)||e.disconnect(),o=null}function s(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),l();const d=e.getBoundingClientRect(),{left:f,top:m,width:g,height:h}=d;if(n||t(),!g||!h)return;const v={rootMargin:-p(m)+"px "+-p(r.clientWidth-(f+g))+"px "+-p(r.clientHeight-(m+h))+"px "+-p(f)+"px",threshold:u(0,c(1,a))||1};let y=!0;function b(t){const n=t[0].intersectionRatio;if(!qe(d,e.getBoundingClientRect()))return s();if(n!==a){if(!y)return s();n?s(!1,n):i=setTimeout((()=>{s(!1,1e-7)}),1e3)}y=!1}try{o=new IntersectionObserver(b,{...v,root:r.ownerDocument})}catch{o=new IntersectionObserver(b,v)}o.observe(e)}const a=Q(e),d=()=>s(n);return a.addEventListener("resize",d),s(!0),()=>{a.removeEventListener("resize",d),l()}}function Ye(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:a=!1}=i,c=we(e),u=o||r?[...c?xe(c):[],...t?xe(t):[]]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n),r&&e.addEventListener("resize",n)}));const d=c&&s?Ke(c,n,r):null;let p=-1,f=null;
1l&&(f=new ResizeObserver((e=>{let[i]=e;i&&i.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!a&&f.observe(c),t&&f.observe(t));let m,g=a?Re(e):null;function h(){const t=Re(e);g&&!qe(g,t)&&n(),g=t,m=requestAnimationFrame(h)}return a&&h(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,a&&cancelAnimationFrame(m)}}const Xe=q,Je=K,Ze=j,Qe=X,et=z,tt=_,nt=Y,it=(e,t,n)=>{const i=new Map,o=n??{},r={...Be,...o.platform,_c:i};return G(e,t,{...o,platform:r})};function ot(e=0,t=0,n=0,i=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,i);const o={x:e,y:t,width:n,height:i,top:t,right:e+n,bottom:t+i,left:e};return{...o,toJSON:()=>o}}function rt(e){if(!e)return ot();const{x:t,y:n,width:i,height:o}=e;return ot(t,n,i,o)}function lt(e,t){return{contextElement:(0,i.e)(e)?e:null==e?void 0:e.contextElement,getBoundingClientRect:()=>{const n=e,i=null==t?void 0:t(n);return i||!n?rt(i):n.getBoundingClientRect()}}}var st=e=>({variable:e,reference:`var(${e})`}),at={arrowSize:st("--arrow-size"),arrowSizeHalf:st("--arrow-size-half"),arrowBg:st("--arrow-background"),transformOrigin:st("--transform-origin"),arrowOffset:st("--arrow-offset")},ct=e=>"top"===e||"bottom"===e?"y":"x";function ut(e,t){return{name:"transformOrigin",fn(n){var i,o,r,l;const{elements:s,middlewareData:a,placement:c,rects:u,y:d}=n,p=c.split("-")[0],f=ct(p),m=(null==(i=a.arrow)?void 0:i.x)||0,g=(null==(o=a.arrow)?void 0:o.y)||0,h=(null==t?void 0:t.clientWidth)||0,v=(null==t?void 0:t.clientHeight)||0,y=m+h/2,b=g+v/2,x=Math.abs((null==(r=a.shift)?void 0:r.y)||0),I=u.reference.height/2,E=v/2,w=(null==(l=e.offset)?void 0:l.mainAxis)??e.gutter,T="number"==typeof w?w+E:w??E,O=x>T,C={top:`${y}px calc(100% + ${T}px)`,bottom:`${y}px ${-T}px`,left:`calc(100% + ${T}px) ${b}px`,right:`${-T}px ${b}px`}[p],S=`${y}px ${u.reference.y+I-d}px`,R=!!e.overlap&&"y"===f&&O;return s.floating.style.setProperty(at.transformOrigin.variable,R?S:C),{data:{transformOrigin:R?S:C}}}}}var dt={name:"rects",fn:({rects:e})=>({data:e})},pt=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:i,y:o}=n.arrow,r=t.split("-")[0];return Object.assign(e.style,{left:null!=i?`${i}px`:"",top:null!=o?`${o}px`:"",[r]:`calc(100% + ${at.arrowOffset.reference})`}),{}}}};function ft(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:null!=n}}function mt(e){return e.split("-")[0]}var gt={strategy:"absolute",placement:"bottom",listeners:!0,restoreStyles:!1,applyStyles:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function ht(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function vt(e,t){return null!=e&&Math.abs(e-t)<.5}function yt(e){return"function"==typeof e?e():"clipping-ancestors"===e?"clippingAncestors":e}function bt(e,t,n){const i=e||t.createElement("div");return tt({element:i,padding:n.arrowPadding})}function xt(e,t){if(!(0,o.d)(t.offset??t.gutter))return Xe((({placement:n})=>{var i,o;const r=((null==e?void 0:e.clientHeight)||0)/2,l=(null==(i=t.offset)?void 0:i.mainAxis)??t.gutter,a="number"==typeof l?l+r:l??r,{hasAlign:c}=ft(n),u=c?void 0:t.shift,d=(null==(o=t.offset)?void 0:o.crossAxis)??u;return(0,s.b)({crossAxis:d,mainAxis:a,alignmentAxis:t.shift})}))}function It(e){if(e.flip)return Ze((()=>{const t=yt(e.boundary);return{...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip}}))}function Et(e){if(e.slide||e.overlap)return Je((()=>{const t=yt(e.boundary);return{...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:nt()}}))}function wt(e){if(!1===e.sizeMiddleware&&!e.sameWidth&&!e.fitViewport)return;let t,n,i,o;return Qe((()=>{const r=yt(e.boundary);return{padding:e.overflowPadding,...r?{boundary:r}:void 0,apply({elements:e,rects:r,availableHeight:l,availableWidth:s}){const a=e.floating,c=Math.round(r.reference.width),u=Math.round(r.reference.height);s=Math.floor(s),l=Math.floor(l),vt(t,c)||(a.style.setProperty("--reference-width",`${c}px`),t=c),vt(n,u)||(a.style.setProperty("--reference-height",`${u}px`),n=u),vt(i,s)||(a.style.setProperty("--available-width",`${s}px`),i=s),vt(o,l)||(a.style.setProperty("--available-height",`${l}px`),o=l)}}}))}function Tt(e){if(e.hideWhenDetached)return et((()=>({strategy:"referenceHidden",boundary:yt(e.boundary)??"clippingAncestors"})))}function Ot(e){return e?!0===e?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}var Ct=["transform","visibility","pointer-events","--x","--y","--z-index","--reference-width","--reference-height","--available-width","--available-height","--transform-origin"],St=["top","right","bottom","left"];function Rt(e,t){if(!e)return o.n;const n=new Map(t.map((t=>[t,e.style.getPropertyValue(t)])));return()=>
1{n.forEach(((t,n)=>{t?e.style.setProperty(n,t):e.style.removeProperty(n)})),0===e.style.length&&e.removeAttribute("style")}}function At(e){return null==e?null:(0,i.e)(e)?e:"object"==typeof e&&e&&"contextElement"in e&&e.contextElement?e.contextElement:e}function Lt(e,t,n={}){const r=()=>("function"==typeof t?t():t)??null,s=()=>{var t;const i="function"==typeof e?e():e;return(null==(t=n.getAnchorElement)?void 0:t.call(n))??i},a=()=>{const e=s();return e||n.getAnchorRect?lt(e,n.getAnchorRect):null},c=Object.assign({},gt,n);let u,d,p=[],f=null;function m(e){null==u||u(),null==d||d(),f=e,u=c.restoreStyles?Rt(e,Ct):void 0;const t=e.querySelector("[data-part=arrow]");d=c.restoreStyles?Rt(t,St):void 0,p=[xt(t,c),It(c),Et(c),bt(t,e.ownerDocument,c),pt(t),ut({gutter:c.gutter,offset:c.offset,overlap:c.overlap},t),wt(c),Tt(c),dt]}const{placement:g,strategy:h,onComplete:v,onPositioned:y}=c;let b,x,I,E,w=!1,T=o.n;const O=Ot(c.listeners);function C(){if(!c.listeners)return;const e=s(),t=a(),n=r();t&&n&&(At(e)!==At(I)||n!==E)&&(T(),I=e,E=n,T=Ye(t,n,R,O))}async function S(){var e;C();const t=r();if(!t)return;t!==f&&(m(t),w=!1);const n=a();if(!n)return;const o=await it(n,t,{placement:g,middleware:p,strategy:h}),s=(0,i.a)(t),u=ht(s,o.x),d=ht(s,o.y);if(null==v||v({...o,x:u,y:d}),!1!==c.applyStyles&&(vt(b,u)||(t.style.setProperty("--x",`${u}px`),b=u),vt(x,d)||(t.style.setProperty("--y",`${d}px`),x=d),c.hideWhenDetached&&((null==(e=o.middlewareData.hide)?void 0:e.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events"))),!w)){const e=t.firstElementChild;e&&(t.style.setProperty("--z-index",(0,l.g)(e).zIndex),w=!0)}}async function R(){n.updatePosition?(await n.updatePosition({updatePosition:S,floatingElement:r()}),null==y||y({placed:!0})):await S()}return R(),()=>{T(),null==d||d(),null==u||u(),null==y||y({placed:!1})}}function Pt(e,t,n={}){const{defer:i,...o}=n,l=i?r.r:e=>e(),s=[];return s.push(l((()=>{s.push(Lt(e,t,o))}))),()=>{s.forEach((e=>null==e?void 0:e()))}}var Nt={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Vt(e={}){const{placement:t,sameWidth:n,fitViewport:i,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:at.arrowSize.reference,height:at.arrowSize.reference,[at.arrowSizeHalf.variable]:`calc(${at.arrowSize.reference} / 2)`,[at.arrowOffset.variable]:`calc(${at.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?Nt[t.split("-")[0]]:void 0,background:at.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:i?"var(--available-width)":void 0,maxHeight:i?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}},3319:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var i={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},3951:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var i=n(51609),o=n(26672);const r={transform(e){const{inline:t,...n}=e;return{display:t?"inline-flex":"flex",alignItems:"center",justifyContent:"center",...n}}},l=(e={})=>{const t=(0,o.l)(r,e);return r.transform(t,o.p)},s=(0,i.forwardRef)((function(e,t){const[n,r]=(0,o.s)(e,["inline"]),s={ref:t,...l(n),...r};return(0,i.createElement)(o.a.div,s)}))},4235:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var i=n(37603),o=e=>(0,i.c)()(e,["hideMode","immediate","lazyMount","onEnterComplete","onExitComplete","present","skipAnimationOnMount","unmountOnExit"])},4992:(e,t,n)=>{"use strict";n.d(t,{a:()=>r,o:()=>s});var i=n(47010);function o(e,t){if(!e)return;const{attributes:n,callback:i}=t,o=new(e.ownerDocument.defaultView||window).MutationObserver((e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&n.includes(t.attributeName)&&i(t)}));return o.observe(e,{attributes:!0,attributeFilter:n}
1),()=>o.disconnect()}function r(e,t){const{defer:n}=t,r=n?i.r:e=>e(),l=[];return l.push(r((()=>{const n="function"==typeof e?e():e;l.push(o(n,t))}))),()=>{l.forEach((e=>null==e?void 0:e()))}}function l(e,t){const{callback:n}=t;if(!e)return;const i=new(e.ownerDocument.defaultView||window).MutationObserver(n);return i.observe(e,{childList:!0,subtree:!0}),()=>i.disconnect()}function s(e,t){const{defer:n}=t,o=n?i.r:e=>e(),r=[];return r.push(o((()=>{const n="function"==typeof e?e():e;r.push(l(n,t))}))),()=>{r.forEach((e=>null==e?void 0:e()))}}},6135:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var i=e=>"Array"===(null==e?void 0:e.constructor.name),o=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0},r=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof(null==e?void 0:e.isEqual)&&"function"==typeof(null==t?void 0:t.isEqual))return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(i(e)&&i(t))return o(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(t??Object.create(null)),l=n.length;for(let t=0;t<l;t++)if(!Reflect.has(e,n[t]))return!1;for(let i=0;i<l;i++){const o=n[i];if(!r(e[o],t[o]))return!1}return!0}},10156:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var i=n(31351),o=n(65245);n(51609),n(66087);const r=(0,o.A)(i.$)},12385:(e,t,n)=>{"use strict";var i;n.d(t,{A:()=>r,s:()=>l});var o=n(51609),r=(e=>Reflect.get(e,"Activity"))(i||(i=n.t(o,2))),l=void 0!==r},12878:(e,t,n)=>{"use strict";n.d(t,{y:()=>u});var i=n(46076),o=n(26672),r=n(83155);const l=(0,r.c)("spinner",{size:"md"},[]),s={size:["xs","sm","md","lg","xl"]},a=Object.keys(s),c=Object.assign((0,o.m)(l.recipeFn),{__recipe__:!0,__name__:"spinner",__getCompoundVariantCss__:l.__getCompoundVariantCss__,raw:e=>e,variantKeys:a,variantMap:s,merge(e){return(0,r.m)(this,e)},splitVariantProps:e=>(0,o.s)(e,a),getVariantProps:l.getVariantProps}),u=(0,o.a)(i.a.div,c)},18831:(e,t,n)=>{"use strict";function i(e,t){return Array.from((null==e?void 0:e.querySelectorAll(t))??[])}n.d(t,{a:()=>r,d:()=>o,i:()=>l,n:()=>s,p:()=>a,q:()=>i});var o=e=>e.id;function r(e,t,n=o){return e.find((e=>n(e)===t))}function l(e,t,n=o){const i=r(e,t,n);return i?e.indexOf(i):-1}function s(e,t,n=!0){let i=l(e,t);return i=n?(i+1)%e.length:Math.min(i+1,e.length-1),e[i]}function a(e,t,n=!0){let i=l(e,t);return-1===i?n?e[e.length-1]:null:(i=n?(i-1+e.length)%e.length:Math.max(0,i-1),e[i])}}
1,20948:(e,t,n)=>{"use strict";n.d(t,{P:()=>b,a:()=>y,b:()=>x,u:()=>v});var i=n(12385),o=n(63234),r=n(51609),l=n(39389),s=n(91963),a=n(54180),c=n(47010),u=n(79449),d=n(65997),p=n(10790),f=n(80163);function m(e,t){const{state:n,send:i,context:o}=e,r=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:r,setNode(e){e&&i({type:"NODE.SET",node:e})},unmount(){i({type:"UNMOUNT"})}}}var g=(0,l.c)({props:({props:e})=>({...e,present:!!e.present}),initialState:({prop:e})=>e("present")?"mounted":"unmounted",refs:()=>({node:null,styles:null}),context:({bindable:e})=>({unmountAnimationName:e((()=>({defaultValue:null}))),prevAnimationName:e((()=>({defaultValue:null}))),present:e((()=>({defaultValue:!1}))),initial:e((()=>({sync:!0,defaultValue:!1})))}),exit:["cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],(()=>{n({type:"PRESENCE.CHANGED"})}))},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{effects:["trackEnterAnimation"],on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackExitAnimation"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask((()=>{e.set("initial",!0)}))},invokeOnExitComplete:({prop:e,refs:t})=>{var n;null==(n=e("onExitComplete"))||n();const i=t.get("node");if(!i)return;const o=new((0,s.a)(i).CustomEvent)("exitcomplete",{bubbles:!1});i.dispatchEvent(o)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",(0,a.g)(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:i})=>{const o=i("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const r=t.get("node");if(!o&&"hidden"===(null==r?void 0:r.ownerDocument.visibilityState))return n({type:"UNMOUNT",src:"visibilitychange"});(0,c.r)((()=>{var o,r;if(i("present"))return;const l=h(t.get("styles"));e.set("unmountAnimationName",l),"none"===l||l===e.get("prevAnimationName")||"none"===(null==(o=t.get("styles"))?void 0:o.display)||"0s"===(null==(r=t.get("styles"))?void 0:r.animationDuration)?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})}))},setPrevAnimationName:({context:e,refs:t})=>{(0,c.r)((()=>{e.set("prevAnimationName",h(t.get("styles")))}))},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackEnterAnimation:({context:e,refs:t,prop:n})=>{if(!n("onEnterComplete")||!e.get("initial"))return;let i;const o=()=>{i=(0,c.r)((()=>{var e;const i=t.get("node");if(!i||!i.isConnected)return void o();const r=(0,a.g)(i);if("none"===h(r)||"none"===r.display||"0s"===r.animationDuration)return void(null==(e=n("onEnterComplete"))||e());const l=e=>{var t;(0,d.g)(e)!==i||!n("present")||(i.removeEventListener("animationend",l),null==(t=n("onEnterComplete"))||t())};return i.addEventListener("animationend",l),()=>{i.removeEventListener("animationend",l)}}))};return o(),()=>null==i?void 0:i()},trackExitAnimation:({context:e,refs:t,send:n,prop:i})=>{const o=t.get("node");if(!o)return;const r=n=>{var i,r;((null==(r=null==(i=n.composedPath)?void 0:i.call(n))?void 0:r[0])??n.target)===o&&e.set("prevAnimationName",h(t.get("styles")))},l=r=>{const l=h(t.get("styles"));(0,d.g)(r)===o&&l===e.get("unmountAnimationName")&&!i("present")&&n({type:"UNMOUNT",src:"animationend"})},s=e=>{(0,d.g)(e)===o&&!i("present")&&n({type:"UNMOUNT",src:"animationcancel"})};o.addEventListener("animationstart",r),o.addEventListener("animationcancel",s),o.addEventListener("animationend",l);const a=(0,u.s)(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",s),o.removeEventListener("animationend",l),(0,c.n)((()=>a()))}}}}});function h(e){return(null==e?void 0:e.animationName)||"none"}var v=(e={})=>{const{lazyMount:t,unmountOnExit:n,hideMode:s="display-none",present:a,skipAnimationOnMount:c=!1,...u}=e,d=(0,r.useRef)(!1),p={...u,present:a,onEnterComplete:(0,o.u)(e.onEnterComplete),onExitComplete:(0,o.u)(e.onExitComplete)},f=m((0,l.u)(g,p));f.present&&(d.current=!0);const h=!f.present&&!d.current&&t||n&&!f.present&&d.current,v="activity"===s&&i.s?"activity":"display-none",y=()=>
1({"data-state":f.skip&&c?void 0:a?"open":"closed",hidden:"activity"!==v&&!f.present});return{ref:f.setNode,getPresenceProps:y,present:f.present,unmounted:h,hideMode:v}},y=e=>{const{presence:t,children:n}=e;return t.unmounted?null:"activity"===t.hideMode&&i.A?(0,p.jsx)(i.A,{mode:t.present?"visible":"hidden",children:n}):n},[b,x]=(0,f.c)({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"})},26203:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(51609),o=n(50576),r=n(54991);const l=(e,t)=>{const n=(0,i.forwardRef)((({className:n,...l},s)=>(0,i.createElement)(r.A,{ref:s,iconNode:t,className:(0,o.z)(`lucide-${(0,o.f)(e)}`,n),...l})));return n.displayName=`${e}`,n}},28034:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var i=n(10790),o=n(51609),r=n(26672),l=n(12878);const s=(0,o.forwardRef)(((e,t)=>{const{label:n="Loading...",...o}=e;return(0,i.jsx)(l.y,{ref:t,borderBottomColor:"transparent",borderLeftColor:"transparent",...o,children:n&&(0,i.jsx)(r.a.span,{srOnly:!0,children:n})})}));s.displayName="Spinner"},29559:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var i=n(89051);function o(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function r(e,t){const{rootEl:n,...r}=t||{};!e||!n||!(0,i.i)(n)||!o(n)||e.scrollIntoView(r)}},30791:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLASS_NAME:()=>x,default:()=>I});var i=n(46942),o=n.n(i),r=n(66087),l=n(75256),s=n(45773),a=n(51609),c=n(10156),u=n(46835),d=n(62705),p=n(63202),f=n(86007),m=n(85512),g=n(91605),h=n(34350),v=n(20029),y=n(10386),b=n(10790);const x=`${h.k}-region`,I=e=>{const[t,n]=(0,f.p)(),[i,h]=(0,a.useState)([]),[I,E]=(0,a.useState)([]),[w,T]=(0,a.useState)(!0),O=(0,m.Bz)(e),{activeStep:C,setActiveStep:S}=(0,y.sd)(),{params:R,ready:A}=(0,m.ZA)(),L=(0,a.useRef)(!0);(0,a.useEffect)((()=>{if(i.length>0)return;new g.A(new v.A).execute().then((i=>{let o=i.map((e=>({label:e.name,value:e.slug})));e.attributes.sortOptions&&(o=o.sort(((e,t)=>e.label.localeCompare(t.label)))),E(o),h(i),T(!1),!1===e.attributes.disableAutoSelect&&i.length>0&&""===t?.region?.slug&&n({type:"UPDATE",payload:{region:{id:i[0].id,slug:i[0].slug,name:i[0].name}}})}))}),[t?.region?.slug,n,e.attributes.disableAutoSelect,e.attributes.sortOptions,i.length]);const P=(0,a.useCallback)((t=>{if(t&&(L.current=!1,n({type:"UPDATE",payload:{retailer:{id:"",slug:"",name:""},region:{id:t.id,slug:t.slug,name:t.name}}}),e.attributes.interactWithStepper&&(0,r.isNumber)(C)&&S)){S(C+1)}}),[C,n,e.attributes.interactWithStepper,S]);(0,a.useEffect)((()=>{const e=R?.get("region");if(A&&e&&I.length>0){const t=i.find((t=>t.name===e));t&&P(t)}}),[A,R,I,i,P]);const N=(0,a.useMemo)((()=>{if(e.attributes.disableAutoSelect&&L.current)return[];const n=I.find((e=>e.value===t?.region?.slug));return n?[n.value]:[]}),[t?.region?.slug,e.attributes.disableAutoSelect,I]);return w||i.length?w||e.attributes.loading?.forceShow?O:"button"===e.attributes.display?I.map((n=>(0,b.jsx)(c.$,{onClick:()=>P(i.find((e=>e.slug===n.value))),className:o()(x,e.className),variant:e.attributes.button?.variant??"solid",size:e.attributes.button?.size??"md",loading:w,disabled:w,"data-state":t.region?.slug===n.value?"on":"off",dynamicCss:e.attributes.button?.css,children:n.label},`region-${n.value}`))):(0,b.jsxs)(u.s.Root,{className:e.className,positioning:{sameWidth:e.attributes.select?.sameWidth??!0,placement:e.attributes.select?.placement??"bottom-start",flip:e.attributes.select?.flip??!0,fitViewport:e.attributes.select?.fitViewport??!0},collection:(0,d.c)({items:I}),onValueChange:e=>{const t=(0,r.head)(e.value);P(i.find((e=>e.slug===t)))},value:N,defaultValue:N,children:[e.attributes.select?.trigger?.label?(0,b.jsx)(u.s.Label,{children:e.attributes.select.trigger?.label}):null,(0,b.jsx)(u.s.Control,{children:(0,b.jsxs)(u.s.Trigger,{dynamicCss:e.attributes.select?.trigger?.css,children:[(0,b.jsx)(u.s.ValueText,{placeholder:e.attributes.select?.trigger?.placeholder??""}),e.attributes.select?.trigger?.customIcon?.svgCode&&e.attributes.select?.trigger?.customIcon?.isActive?(0,b.jsx)(p.M,{svgCode:e.attributes.select?.trigger?.customIcon?.svgCode??""}):(0,b.jsx)(l.A,{})]})}),(0,b.jsx)(u.s.Positioner,{children:(0,b.jsx)(u.s.Content,{dynamicCss:e.attributes.select?.content?.css,children:I.map((t=>(0,b.jsxs)(u.s.Item,{item:t,dynamicCss:e.attributes.select?.item?.css,children:[(0,b.jsx)(u.s.ItemText,{children:t.label}),(0,b.jsx)(u.s.ItemIndicator,{children:e.attributes.select?.content?.customCheckIcon?.svgCode&&e.attributes.select?.content?.customCheckIcon?.isActive?(0,b.jsx)(p.M,{svgCode:e.attributes.select?.content?.customCheckIcon?.svgCode??""}):(0,b.jsx)(s.A,{})})]},t.value)))})})]}):(0,b.jsx)(b.Fragment,{})}},31351:(e,t,n)=>{"use strict";n.d(t,{$:()=>c});var i=n(10790),o=n(51609),r=n(26672),l=n(3951),s=n(28034),a=n(94971);const c=(0,o.forwardRef)(((e,t)=>{const{loading:n,disabled:o,loadingText:l,children:s,...c}=e;return(0,i.jsx)(a.$,{disabled:n||o,ref:t,...c,children:n&&!l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u,{}),(0,i.jsx)(r.a.span,{opacity:0,children:s})]}):l||s})}));c.displayName="Button";const u=()=>(0,i.jsx)(l.C,{inline:!0,position:"absolute",transform:"translate(-50%, -50%)",to
1p:"50%",insetStart:"50%",children:(0,i.jsx)(s.y,{colorPalette:"gray"})})},33552:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}},34350:(e,t,n)=>{"use strict";n.d(t,{Bp:()=>a,fY:()=>s,k:()=>i,ln:()=>r,qn:()=>l,uN:()=>o});const i="dt",o="No product context provided.",r="No retailer context provided.",l=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],s={sunday:"Sun",monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat"},a=[{label:"Delivery",value:"delivery"},{label:"Pickup",value:"pickup"},{label:"Curbside Pickup",value:"curbside_pickup"},{label:"Drive Thru Pickup",value:"drive_thru_pickup"}]},37603:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var i=()=>(e,t)=>t.reduce(((e,t)=>{const[n,i]=e,o=t;return void 0!==i[o]&&(n[o]=i[o]),delete i[o],[n,i]}),[{},{...e}])},41870:(e,t,n)=>{"use strict";n.d(t,{C:()=>Ke,I:()=>et,L:()=>nt,P:()=>ot,R:()=>Be,S:()=>me,T:()=>rt,V:()=>lt,b:()=>tt,c:()=>qe,d:()=>Ye,e:()=>he,f:()=>Xe,g:()=>Ze,h:()=>Je,i:()=>Qe,j:()=>it,k:()=>Ue,s:()=>D});var i=n(80163),o=n(46076),r=n(73125),l=n(51609),s=n(10790),a=n(20948),c=n(37603),u=n(4235),d=n(58509),p=n(39389),f=n(60466),m=n(1737),g=n(51261),h=n(46763),v=n(6135),y=n(74713),b=n(41247),x=n(47010),I=n(4992),E=n(81012),w=n(29559),T=n(65997),O=n(91963),C=n(3319),S=n(26672),R=n(83155),A=n(67327);const L={size:"md",variant:"outline"},P=[],N=[["label","select__label"],["positioner","select__positioner"],["trigger","select__trigger"],["indicator","select__indicator"],["clearTrigger","select__clearTrigger"],["item","select__item"],["itemText","select__itemText"],["itemIndicator","select__itemIndicator"],["itemGroup","select__itemGroup"],["itemGroupLabel","select__itemGroupLabel"],["list","select__list"],["content","select__content"],["root","select__root"],["control","select__control"],["valueText","select__valueText"]].map((([e,t])=>[e,(0,R.c)(t,L,(0,S.k)(P,e))])),V=(0,S.m)(((e={})=>Object.fromEntries(N.map((([t,n])=>[t,n.recipeFn(e)]))))),k=["variant","size"],M=e=>({...L,...(0,S.b)(e)}),D=Object.assign(V,{__recipe__:!1,__name__:"select",raw:e=>e,variantKeys:k,variantMap:{variant:["outline","ghost"],size:["sm","md","lg"]},splitVariantProps:e=>(0,S.s)(e,k),getVariantProps:M});var F=(0,i.b)("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText").build(),H=e=>new g.L(e);H.empty=()=>new g.L({items:[]});var G=e=>{var t;return(null==(t=e.ids)?void 0:t.root)??`select:${e.id}`},_=e=>{var t;return(null==(t=e.ids)?void 0:t.content)??`select:${e.id}:content`},j=e=>{var t;return(null==(t=e.ids)?void 0:t.trigger)??`select:${e.id}:trigger`},W=e=>{var t;return(null==(t=e.ids)?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},$=e=>{var t;return(null==(t=e.ids)?void 0:t.label)??`select:${e.id}:label`},z=e=>{var t;return(null==(t=e.ids)?void 0:t.control)??`select:${e.id}:control`},U=(e,t)=>{var n,i;return(null==(i=null==(n=e.ids)?void 0:n.item)?void 0:i.call(n,t))??`select:${e.id}:option:${t}`},B=e=>{var t;return(null==(t=e.ids)?void 0:t.hiddenSelect)??`select:${e.id}:select`},q=e=>{var t;return(null==(t=e.ids)?void 0:t.positioner)??`select:${e.id}:positioner`},K=(e,t)=>{var n,i;return(null==(i=null==(n=e.ids)?void 0:n.itemGroup)?void 0:i.call(n,t))??`select:${e.id}:optgroup:${t}`},Y=(e,t)=>{var n,i;return(null==(i=null==(n=e.ids)?void 0:n.itemGroupLabel)?void 0:i.call(n,t))??`select:${e.id}:optgroup-label:${t}`},X=e=>e.getById(B(e)),J=e=>e.getById(_(e)),Z=e=>e.getById(j(e)),Q=e=>e.getById(W(e)),ee=e=>e.getById(q(e)),te=(e,t)=>null==t?null:e.getById(U(e,t)),ne={clearTriggerLabel:"Clear value"};function ie(e,t){const{context:n,prop:o,scope:r,state:l,computed:s,send:a}=e,c=(0,p.m)(ne,o("translations")),u=o("disabled")||n.get("fieldsetDisabled"),d=!!o("invalid"),g=!!o("required"),v=!!o("readOnly"),b=o("composite"),x=o("collection"),I=l.hasTag("open"),w=l.matches("focused"),S=n.get("highlightedValue"),R=n.get("highlightedItem"),A=s("selectedItems"),L=n.get("currentPlacement"),P=L?(0,m.g)(L):void 0,N=s("isTypingAhead"),V=s("isInteractive"),k=S?U(r,S):void 0;
1function M(e){const t=x.getItemDisabled(e.item),i=x.getItemValue(e.item);return(0,p.q)(i,(()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`)),{value:i,disabled:!(!u&&!t),highlighted:S===i,selected:n.get("value").includes(i)}}const D=(0,m.a)({...o("positioning"),placement:L});return{open:I,focused:w,empty:0===n.get("value").length,highlightedItem:R,highlightedValue:S,selectedItems:A,hasSelectedItems:s("hasSelectedItems"),value:n.get("value"),valueAsString:s("valueAsString"),collection:x,multiple:!!o("multiple"),disabled:!!u,reposition(e={}){a({type:"POSITIONING.SET",options:e})},focus(){var e;null==(e=Z(r))||e.focus({preventScroll:!0})},setOpen(e){l.hasTag("open")!==e&&a({type:e?"OPEN":"CLOSE"})},selectValue(e){a({type:"ITEM.SELECT",value:e})},setValue(e){a({type:"VALUE.SET",value:e})},selectAll(){a({type:"VALUE.SET",value:x.getValues()})},setHighlightValue(e){a({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){a({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(e){a(e?{type:"ITEM.CLEAR",value:e}:{type:"VALUE.CLEAR"})},getItemState:M,getRootProps:()=>t.element({...F.root.attrs,dir:o("dir"),id:G(r),"data-invalid":(0,i.d)(d),"data-readonly":(0,i.d)(v)}),getLabelProps:()=>t.label({dir:o("dir"),id:$(r),...F.label.attrs,"data-disabled":(0,i.d)(u),"data-invalid":(0,i.d)(d),"data-readonly":(0,i.d)(v),"data-required":(0,i.d)(g),htmlFor:B(r),onClick(e){var t;e.defaultPrevented||u||null==(t=Z(r))||t.focus({preventScroll:!0})}}),getControlProps:()=>t.element({...F.control.attrs,dir:o("dir"),id:z(r),"data-state":I?"open":"closed","data-focus":(0,i.d)(w),"data-disabled":(0,i.d)(u),"data-invalid":(0,i.d)(d)}),getValueTextProps:()=>t.element({...F.valueText.attrs,dir:o("dir"),"data-disabled":(0,i.d)(u),"data-invalid":(0,i.d)(d),"data-focus":(0,i.d)(w)}),getTriggerProps:()=>t.button({id:j(r),disabled:u,dir:o("dir"),type:"button",role:"combobox","aria-controls":_(r),"aria-expanded":I,"aria-haspopup":"listbox","data-state":I?"open":"closed","aria-invalid":d,"aria-required":g,"aria-labelledby":$(r),...F.trigger.attrs,"data-disabled":(0,i.d)(u),"data-invalid":(0,i.d)(d),"data-readonly":(0,i.d)(v),"data-placement":L,"data-side":P,"data-placeholder-shown":(0,i.d)(!s("hasSelectedItems")),onClick(e){V&&(e.defaultPrevented||a({type:"TRIGGER.CLICK"}))},onFocus(){a({type:"TRIGGER.FOCUS"})},onBlur(){a({type:"TRIGGER.BLUR"})},onKeyDown(e){if(e.defaultPrevented||!V)return;const t={ArrowUp(){a({type:"TRIGGER.ARROW_UP"})},ArrowDown(e){a({type:e.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){a({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){a({type:"TRIGGER.ARROW_RIGHT"})},Home(){a({type:"TRIGGER.HOME"})},End(){a({type:"TRIGGER.END"})},Enter(){a({type:"TRIGGER.ENTER"})},Space(e){a(N?{type:"TRIGGER.TYPEAHEAD",key:e.key}:{type:"TRIGGER.ENTER"})}}[(0,T.l)(e,{dir:o("dir"),orientation:"vertical"})];if(t)return t(e),void e.preventDefault();y.g.isValidEvent(e)&&(a({type:"TRIGGER.TYPEAHEAD",key:e.key}),e.preventDefault())}}),getIndicatorProps:()=>t.element({...F.indicator.attrs,dir:o("dir"),"aria-hidden":!0,"data-state":I?"open":"closed","data-disabled":(0,i.d)(u),"data-invalid":(0,i.d)(d),"data-readonly":(0,i.d)(v)}),getItemProps(e){const n=M(e);return t.element({id:U(r,n.value),role:"option",...F.item.attrs,dir:o("dir"),"data-value":n.value,"aria-selected":n.selected,"data-state":n.selected?"checked":"unchecked","data-highlighted":(0,i.d)(n.highlighted),"data-disabled":(0,i.d)(n.disabled),"aria-disabled":(0,i.e)(n.disabled),onPointerMove(e){n.disabled||"mouse"!==e.pointerType||"pointer"===(0,f.g)()&&n.value!==S&&a({type:"ITEM.POINTER_MOVE",value:n.value})},onClick(e){e.defaultPrevented||n.disabled||a({type:"ITEM.CLICK",src:"pointerup",value:n.value})},onPointerLeave(t){n.disabled||e.persistFocus||"mouse"===t.pointerType&&"pointer"===(0,f.g)()&&a({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(e){const n=M(e);return t.element({...F.itemText.attrs,"data-state":n.selected?"checked":"unchecked","data-disabled":(0,i.d)(n.disabled),"data-highlighted":(0,i.d)(n.highlighted)})},getItemIndicatorProps(e){const n=M(e);return t.element({"aria-hidden":!0,...F.itemIndicator.attrs,"data-state":n.selected?"checked":"unchecked",hidden:!n.selected})},getItemGroupLabelProps(e){const{htmlFor:n}=e;return t.element({...F.itemGroupLabel.attrs,id:Y(r,n),dir:o("dir"),role:"presentation"})},getItemGroupProps(e){const{id:n}=e;return t.element({...F.itemGroup.attrs,"data-disabled":(0,i.d)(u),id:K(r,n),"aria-labelledby":Y(r,n),role:"group",dir:o("dir")})},getClearTriggerProps:()=>t.button({...F.clearTrigger.attrs,id:W(r),type:"button","aria-label":c.clearTriggerLabel,"data-invalid":(0,i.d)(d),disabled:u,hidden:!s("hasSelectedItems"),dir:o("dir"),onClick(e){e.defaultPrevented||a({type:"CLEAR.CLICK"})}}),getHiddenSelectProps(){const e=n.get("value"),i=o("multiple")?e:null==e?void 0:e[0],l=e=>{const t=(0,T.p)(e);(0,h.i)(t)||a({type:"VALUE.SET",value:oe(e.currentTarget)})};return t.select({name:o("name"),form:o("form"),disabled:u,multiple:o("multiple"),required:o("required"),"aria-hidden":!0,id:B(r),defaultValue:i,style:C.v,tabIndex:-1,autoComplete:o("autoComplete"),onChange:l,onInput:l,onFocus(){var e;null==(e=Z(r))||e.focus({preventScroll:!0})},"aria-labelledby":$(r)})},getPositionerProps:()=>t.element({...F.positioner.attrs,dir:o("dir"),id:q(r),style:D.floating}),getContentProps:()=>t.element({hidden:!I,dir:o("dir"),id:_(r),role:b?"listbox":"dialog",...F.content.attrs,"data-state":I?"open":"closed","data-
1placement":L,"data-side":P,"data-activedescendant":k,"aria-activedescendant":b?k:void 0,"aria-multiselectable":!(!o("multiple")||!b)||void 0,"aria-labelledby":$(r),tabIndex:0,onKeyDown(e){if(!V||!(0,O.d)(e.currentTarget,(0,T.g)(e)))return;if("Tab"===e.key&&!(0,E.i)(e))return void e.preventDefault();const t={ArrowUp(){a({type:"CONTENT.ARROW_UP"})},ArrowDown(){a({type:"CONTENT.ARROW_DOWN"})},Home(){a({type:"CONTENT.HOME"})},End(){a({type:"CONTENT.END"})},Enter(){a({type:"ITEM.CLICK",src:"keydown.enter"})},Space(e){var n;N?a({type:"CONTENT.TYPEAHEAD",key:e.key}):null==(n=t.Enter)||n.call(t,e)}},n=t[(0,T.l)(e)];if(n)return n(e),void e.preventDefault();const i=(0,T.g)(e);(0,O.h)(i)||y.g.isValidEvent(e)&&(a({type:"CONTENT.TYPEAHEAD",key:e.key}),e.preventDefault())}}),getListProps:()=>t.element({...F.list.attrs,tabIndex:0,role:b?void 0:"listbox","aria-labelledby":j(r),"aria-activedescendant":b?void 0:k,"aria-multiselectable":!(b||!o("multiple"))||void 0})}}var oe=e=>e.multiple?Array.from(e.selectedOptions,(e=>e.value)):e.value?[e.value]:[],{and:re,not:le,or:se}=(0,p.a)(),ae=(0,p.c)({props:({props:e})=>({loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??H.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),context({prop:e,bindable:t,getContext:n}){const i=e("value")??e("defaultValue")??[],o=e("collection").findMany(i);return{value:t((()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:v.i,onChange(t){var i;const o=n(),r=e("collection"),l=o.get("selectedItemMap"),s=(0,g.d)({values:t,collection:r,selectedItemMap:l}),a=e("value")??t,c=a===t?s:(0,g.d)({values:a,collection:r,selectedItemMap:s.nextSelectedItemMap});return o.set("selectedItemMap",c.nextSelectedItemMap),null==(i=e("onValueChange"))?void 0:i({value:t,items:s.selectedItems})}}))),highlightedValue:t((()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){var n;null==(n=e("onHighlightChange"))||n({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}}))),currentPlacement:t((()=>({defaultValue:void 0}))),fieldsetDisabled:t((()=>({defaultValue:!1}))),highlightedItem:t((()=>({defaultValue:null}))),selectedItemMap:t((()=>({defaultValue:(0,g.c)({selectedItems:o,collection:e("collection")})})))}},refs:()=>({typeahead:{...y.g.defaultOptions}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),selectedItems:({context:e,prop:t})=>(0,g.r)({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")}),valueAsString:({computed:e,prop:t})=>t("collection").stringifyItems(e("selectedItems"))},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",entry:["syncSelectElement"],watch({context:e,prop:t,track:n,action:i}){n([()=>e.get("value").toString()],(()=>{i(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])})),n([()=>t("open")],(()=>{i(["toggleVisibility"])})),n([()=>e.get("highlightedValue")],(()=>{i(["syncHighlightedItem"])})),n([()=>t("collection").toString()],(()=>{i(["syncCollection"])}))},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:se("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:re(le("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:le("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:re(le("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:le("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:le("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:le("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:le("multiple"),actions:["selectMatchingItem"]}}}
1,open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","trackFocusVisible","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:re("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:re("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:re("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>ce(e),isOpenControlled:({prop:e})=>void 0!==e("open"),isTriggerClickEvent:({event:e})=>{var t;return"TRIGGER.CLICK"===(null==(t=e.previousEvent)?void 0:t.type)},isTriggerEnterEvent:({event:e})=>{var t;return"TRIGGER.ENTER"===(null==(t=e.previousEvent)?void 0:t.type)},isTriggerArrowUpEvent:({event:e})=>{var t;return"TRIGGER.ARROW_UP"===(null==(t=e.previousEvent)?void 0:t.type)},isTriggerArrowDownEvent:({event:e})=>{var t;return"TRIGGER.ARROW_DOWN"===(null==(t=e.previousEvent)?void 0:t.type)}},effects:{trackFocusVisible({scope:e}){var t;return(0,f.t)({root:null==(t=e.getRootNode)?void 0:t.call(e)})},trackFormControlState:({context:e,scope:t})=>(0,h.t)(X(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){const t=e.initial("value");e.set("value",t)}}),trackDismissableElement({scope:e,send:t,prop:n}){const i=()=>J(e);let o=!0;return(0,b.t)(i,{type:"listbox",defer:!0,exclude:[Z(e),Q(e)],onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onInteractOutside(e){var t;null==(t=n("onInteractOutside"))||t(e),o=!(e.detail.focusable||e.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},computePlacement({context:e,prop:t,scope:n}){const i=t("positioning");return e.set("currentPlacement",i.placement),(0,m.b)((()=>Z(n)),(()=>ee(n)),{defer:!0,...i,onComplete(t){e.set("currentPlacement",t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n}){const i=i=>{const o=e.get("highlightedValue");if(null==o||"pointer"===(0,f.g)())return;const r=J(n),l=t("scrollToIndexFn");if(l){const e=t("collection").indexOf(o);return void(null==l||l({index:e,immediate:i,getElement:()=>te(n,o)}))}const s=te(n,o);(0,w.s)(s,{rootEl:r,block:"nearest"})};return(0,x.r)((()=>{(0,f.s)("virtual"),i(!0)})),(0,I.a)((()=>J(n)),{defer:!0,attributes:["data-activedescendant"],callback(){i(!1)}})}},actions:{reposition({context:e,prop:t,scope:n,event:i}){const o=()=>ee(n);(0,m.b)(Z(n),o,{...t("positioning"),...i.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({send:e,prop:t,event:n}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})},highlightPreviousItem({context:e,prop:t}){const n=e.get("highlightedValue");if(null==n)return;const i=t("collection").getPreviousValue(n,1,t("loopFocus"));null!=i&&e.set("highlightedValue",i)},highlightNextItem({context:e,prop:t}){const n=e.get("highlightedValue");if(null==n)return;const i=t("collection").getNextValue(n,1,t("loopFocus"));null!=i&&e.set("highlightedValue",i)},highlightFirstItem({context:e,prop:t}){const n=t("collection").firstValue;e.set("highlightedValue",n)},highlightLastItem({context:e,prop:t}){const n=t("collection").lastValue;e.set("highlightedValue",n)},setInitialFocus({scope:e}){(0,x.r)((()=>{const t=(0,E.g)({root:J(e)});null==t||t.focus({preventScroll:!0})}
1))},focusTriggerEl({event:e,scope:t}){ce(e)&&(0,x.r)((()=>{const e=Z(t);null==e||e.focus({preventScroll:!0})}))},selectHighlightedItem({context:e,prop:t,event:n}){var i;let o=n.value??e.get("highlightedValue");null!=o&&t("collection").has(o)&&(null==(i=t("onSelect"))||i({value:o}),o=t("deselectable")&&!t("multiple")&&e.get("value").includes(o)?null:o,e.set("value",(e=>null==o?[]:t("multiple")?(0,p.d)(e,o):[o])))},highlightComputedFirstItem({context:e,prop:t,computed:n}){const i=t("collection"),o=n("hasSelectedItems")?i.sort(e.get("value"))[0]:i.firstValue;e.set("highlightedValue",o)},highlightComputedLastItem({context:e,prop:t,computed:n}){const i=t("collection"),o=n("hasSelectedItems")?i.sort(e.get("value"))[0]:i.lastValue;e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t,computed:n}){if(!n("hasSelectedItems"))return;const i=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",i)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:n,refs:i}){const o=t("collection").search(n.key,{state:i.get("typeahead"),currentValue:e.get("highlightedValue")});null!=o&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:n}){var i;null==(i=t("onSelect"))||i({value:n.value});const o=t("deselectable")&&!t("multiple")&&e.get("value").includes(n.value)?null:n.value;e.set("value",(e=>null==o?[]:t("multiple")?(0,p.d)(e,o):[o]))},clearItem({context:e,event:t}){e.set("value",(e=>e.filter((e=>e!==t.value))))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){const[n]=e.get("value"),i=t("collection").getPreviousValue(n);i&&e.set("value",[i])},selectNextItem({context:e,prop:t}){const[n]=e.get("value"),i=t("collection").getNextValue(n);i&&e.set("value",[i])},selectFirstItem({context:e,prop:t}){const n=t("collection").firstValue;n&&e.set("value",[n])},selectLastItem({context:e,prop:t}){const n=t("collection").lastValue;n&&e.set("value",[n])},selectMatchingItem({context:e,prop:t,event:n,refs:i}){const o=t("collection").search(n.key,{state:i.get("typeahead"),currentValue:e.get("value")[0]});null!=o&&e.set("value",[o])},scrollContentToTop({prop:e,scope:t}){var n,i;if(e("scrollToIndexFn")){const i=e("collection").firstValue;null==(n=e("scrollToIndexFn"))||n({index:0,immediate:!0,getElement:()=>te(t,i)})}else null==(i=J(t))||i.scrollTo(0,0)},invokeOnOpen({prop:e,context:t}){var n;null==(n=e("onOpenChange"))||n({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){var n;null==(n=e("onOpenChange"))||n({open:!1,value:t.get("value")})},syncSelectElement({context:e,prop:t,scope:n}){const i=X(n);if(i){if(0===e.get("value").length&&!t("multiple"))return void(i.selectedIndex=-1);for(const t of i.options)t.selected=e.get("value").includes(t.value)}},syncCollection({context:e,prop:t}){const n=t("collection"),i=n.find(e.get("highlightedValue"));i&&e.set("highlightedItem",i);const o=(0,g.d)({values:e.get("value"),collection:n,selectedItemMap:e.get("selectedItemMap")});e.set("selectedItemMap",o.nextSelectedItemMap)},syncSelectedItems({context:e,prop:t}){const n=(0,g.d)({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")});e.set("selectedItemMap",n.nextSelectedItemMap)},syncHighlightedItem({context:e,prop:t}){const n=t("collection"),i=e.get("highlightedValue"),o=i?n.find(i):null;e.set("highlightedItem",o)},dispatchChangeEvent({scope:e}){queueMicrotask((()=>{const t=X(e);if(!t)return;const n=new(e.getWin().Event)("change",{bubbles:!0,composed:!0});t.dispatchEvent((0,h.m)(n))}))}}}});function ce(e){var t;const n=e.restoreFocus??(null==(t=e.previousEvent)?void 0:t.restoreFocus);return null==n||!!n}var[ue,de]=(0,i.c)({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"}),pe=(0,l.forwardRef)(((e,t)=>{const n=de(),i=(0,o.m)(n.getClearTriggerProps(),e);return(0,s.jsx)(o.a.button,{...i,ref:t})}));pe.displayName="SelectClearTrigger";var fe=(0,l.forwardRef)(((e,t)=>{const n=de(),i=(0,a.b)(),r=(0,o.m)(n.getContentProps(),i.getPresenceProps(),e),l=(0,o.u)(i.ref,t);return(0,s.jsx)(a.a,{presence:i,children:(0,s.jsx)(o.a.div,{...r,ref:l})})}));fe.displayName="SelectContent";var me=e=>e.children(de()),ge=(0,l.forwardRef)(((e,t)=>{const n=de(),i=(0,o.m)(n.getControlProps(),e);return(0,s.jsx)(o.a.div,{...i,ref:t})}));ge.displayName="SelectControl";var he=(0,l.forwardRef)(((e,t)=>{const n=de(),i=(0,o.m)(n.getHiddenSelectProps(),e),l=0===n.value.length,a=(0,r.u)();return(0,s.jsxs)(o.a.select,{"aria-describedby":null==a?void 0:a.ariaDescribedby,...i,ref:t,children:[l&&(0,s.jsx)("option",{value:""}),n.collection.items.map(((e,t)=>
1(0,s.jsx)("option",{value:n.collection.getItemValue(e)??"",disabled:n.collection.getItemDisabled(e),children:n.collection.stringifyItem(e)},t)))]})}));he.displayName="SelectHiddenSelect";var ve=(0,l.forwardRef)(((e,t)=>{const n=de(),i=(0,o.m)(n.getIndicatorProps(),e);return(0,s.jsx)(o.a.div,{...i,ref:t})}));ve.displayName="SelectIndicator";var[ye,be]=(0,i.c)({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[xe,Ie]=(0,i.c)({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),Ee=(0,c.c)(),we=(0,l.forwardRef)(((e,t)=>{const[n,i]=Ee(e,["item","persistFocus"]),r=de(),l=(0,o.m)(r.getItemProps(n),i),a=r.getItemState(n);return(0,s.jsx)(xe,{value:n,children:(0,s.jsx)(ye,{value:a,children:(0,s.jsx)(o.a.div,{...l,ref:t})})})}));we.displayName="SelectItem";var Te=e=>e.children(be()),[Oe,Ce]=(0,i.c)({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),Se=(0,c.c)(),Re=(0,l.forwardRef)(((e,t)=>{const n=(0,l.useId)(),[i,r]=Se(e,["id"]),a={id:n,...i},c=de(),u=(0,o.m)(c.getItemGroupProps(a),r);return(0,s.jsx)(Oe,{value:a,children:(0,s.jsx)(o.a.div,{...u,ref:t})})}));Re.displayName="SelectItemGroup";var Ae=(0,l.forwardRef)(((e,t)=>{const n=de(),i=Ce(),r=(0,o.m)(n.getItemGroupLabelProps({htmlFor:i.id}),e);return(0,s.jsx)(o.a.div,{...r,ref:t})}));Ae.displayName="SelectItemGroupLabel";var Le=(0,l.forwardRef)(((e,t)=>{const n=de(),i=Ie(),r=(0,o.m)(n.getItemIndicatorProps(i),e);return(0,s.jsx)(o.a.div,{...r,ref:t})}));Le.displayName="SelectItemIndicator";var Pe=(0,l.forwardRef)(((e,t)=>{const n=de(),i=Ie(),r=(0,o.m)(n.getItemTextProps(i),e);return(0,s.jsx)(o.a.span,{...r,ref:t})}));Pe.displayName="SelectItemText";var Ne=(0,l.forwardRef)(((e,t)=>{const n=de(),i=(0,o.m)(n.getLabelProps(),e);return(0,s.jsx)(o.a.label,{...i,ref:t})}));Ne.displayName="SelectLabel";var Ve=(0,l.forwardRef)(((e,t)=>{const n=de(),i=(0,o.m)(n.getListProps(),e);return(0,s.jsx)(o.a.div,{...i,ref:t})}));Ve.displayName="SelectList";var ke=(0,l.forwardRef)(((e,t)=>{const n=de(),i=(0,o.m)(n.getPositionerProps(),e);return(0,a.b)().unmounted?null:(0,s.jsx)(o.a.div,{...i,ref:t})}));ke.displayName="SelectPositioner";var Me=e=>{const t=(0,l.useId)(),{dir:n}=(0,d.u)(),{getRootNode:o}=(0,i.u)(),s=(0,r.u)(),a={id:t,ids:{label:null==s?void 0:s.ids.label,hiddenSelect:null==s?void 0:s.ids.control},disabled:null==s?void 0:s.disabled,readOnly:null==s?void 0:s.readOnly,invalid:null==s?void 0:s.invalid,required:null==s?void 0:s.required,dir:n,getRootNode:o,...e};return ie((0,p.u)(ae,a),p.n)},De=(e,t)=>{const[n,i]=(0,u.s)(e),[r,l]=(0,c.c)()(i,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","translations","autoComplete","value"]),d=Me(r),p=(0,a.u)((0,o.m)({present:d.open},n)),f=(0,o.m)(d.getRootProps(),l);return(0,s.jsx)(ue,{value:d,children:(0,s.jsx)(a.P,{value:p,children:(0,s.jsx)(o.a.div,{...f,ref:t})})})},Fe=(0,l.forwardRef)(De),He=(e,t)=>{const[n,i]=(0,u.s)(e),[{value:r},l]=(0,c.c)()(i,["value"]),d=(0,a.u)((0,o.m)({present:r.open},n)),p=(0,o.m)(r.getRootProps(),l);return(0,s.jsx)(ue,{value:r,children:(0,s.jsx)(a.P,{value:d,children:(0,s.jsx)(o.a.div,{...p,ref:t})})})},Ge=(0,l.forwardRef)(He),_e=(0,l.forwardRef)(((e,t)=>{const n=de(),i=(0,o.m)(n.getTriggerProps(),e);return(0,s.jsx)(o.a.button,{...i,ref:t})}));_e.displayName="SelectTrigger";var je=(0,l.forwardRef)(((e,t)=>{const{children:n,placeholder:i,...r}=e,l=de(),a=(0,o.m)(l.getValueTextProps(),r);return(0,s.jsx)(o.a.span,{...a,ref:t,children:n||l.valueAsString||i})}));je.displayName="SelectValueText";var We=(0,i._)({ClearTrigger:()=>pe,Content:()=>fe,Context:()=>me,Control:()=>ge,HiddenSelect:()=>he,Indicator:()=>ve,Item:()=>we,ItemContext:()=>Te,ItemGroup:()=>Re,ItemGroupLabel:()=>Ae,ItemIndicator:()=>Le,ItemText:()=>Pe,Label:()=>Ne,List:()=>Ve,Positioner:()=>ke,Root:()=>Fe,RootProvider:()=>Ge,Trigger:()=>_e,ValueText:()=>je});const{withProvider:$e,withContext:ze}=(0,A.l)(D),Ue=$e(We.RootProvider,"root"),Be=$e(We.Root,"root"),qe=ze(We.ClearTrigger,"clearTrigger"),Ke=ze(We.Content,"content"),Ye=ze(We.Control,"control"),Xe=ze(We.Indicator,"indicator"),Je=ze(We.ItemGroupLabel,"itemGroupLabel"),Ze=ze(We.ItemGroup,"itemGroup"),Qe=ze(We.ItemIndicator,"itemIndicator"),et=ze(We.Item,"item"),tt=ze(We.ItemText,"itemText"),nt=ze(We.Label,"label"),it=ze(We.List,"list"),ot=ze(We.Positioner,"positioner"),rt=ze(We.Trigger,"trigger"),lt=ze(We.ValueText,"valueText");Symbol.toStringTag},45773:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=(0,n(26203).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},46763:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,b:()=>l,d:()=>c,i:()=>g,m:()=>h,s:()=>s,t:()=>f});var i=n(91963);function o(e,t){const{type:n="HTMLInputElement",property:o="value"}=t,r=(0,i.a)(e)[n].prototype;return Object.getOwnPropertyDescriptor(r,o)??{}}function r(e){return"input"===e.localName?"HTMLInputElement":"textarea"===e.localName?"HTMLTextAreaElement":"select"===e.localName?"HTMLSelectElement":void 0}function l(e,t,n="value"){var i;if(!e)return;const l=r(e);l&&(null==(i=o(e,{type:l,property:n}).set)||i.call(e,t)),e.setAttribute(n,t)}function s(e,t){var n;e&&(null==(n=o(e,{type:"HTMLInputElement",property:"checked"}).set)||n.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked"))}function a(e,t){const{value:n,bubbles:o=!0}=t;if(!e)return;const r=(0,i.a)(e);if(!(e instanceof r.HTMLInputElement))return;l(e,`${n}`);const s=new r.Event("input",{bubbles:o});e.dispatchEvent(h(s))}function c(e,t){const{checked:n,bubbles:o=!0}=t;if(!e)return;const r=(0,i.a)(e);if(!(e instanceof r.HTMLInputElement))return;s(e,n);const l=new r.Event("click",{bubbles:o});e.dispatchEvent(h(l))}function u(e){return e.matches("textarea, input, select, button")}function d(e,t){if(!e)return;const n=u(e)?e.form:e.closest("form"),i=e=>{e.defaultPrevented||t()};return null==n||n.addEventListener("reset",i,{passive:!0}),()=>null==n?void 0:n.removeEventListener("reset",i)}function p(e,t){const n=null==e?void 0:e.closest("fieldset");if(!n)return;t(n.disabled);const o=new((0,i.a)(n).MutationObserver)((()=>t(n.disabled)));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function f(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:i}=t,o=[d(e,i),p(e,n)];return()=>
1o.forEach((e=>null==e?void 0:e()))}var m=Symbol.for("zag.changeEvent");function g(e){return Object.prototype.hasOwnProperty.call(e,m)}function h(e){return g(e)||Object.defineProperty(e,m,{value:!0}),e}},46835:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var i=n(41870),o=n(65245);n(51609),n(66087);const r=(0,o.A)(i.R),l=(0,o.A)(i.C),s=(0,o.A)(i.T),a=(0,o.A)(i.I),c=(0,o.A)(i.b),u=Object.freeze(Object.defineProperty({__proto__:null,ClearTrigger:i.c,Content:l,Context:i.S,Control:i.d,HiddenSelect:i.e,Indicator:i.f,Item:a,ItemGroup:i.g,ItemGroupLabel:i.h,ItemIndicator:i.i,ItemText:c,Label:i.L,List:i.j,Positioner:i.P,Root:i.R,RootProvider:i.k,Select:r,Trigger:s,ValueText:i.V},Symbol.toStringTag,{value:"Module"}))},46942:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},50576:(e,t,n)=>{"use strict";n.d(t,{f:()=>i,z:()=>o});const i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ")},51261:(e,t,n)=>{"use strict";n.d(t,{L:()=>c,c:()=>h,d:()=>g,r:()=>f});var i=n(6135),o=n(46076),r=Object.defineProperty,l=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,s=(e,t,n)=>l(e,"symbol"!=typeof t?t+"":t,n),a={itemToValue:e=>"string"==typeof e?e:(0,o.i)(e)&&(0,o.h)(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:(0,o.i)(e)&&(0,o.h)(e,"label")?e.label:a.itemToValue(e),isItemDisabled:e=>!(!(0,o.i)(e)||!(0,o.h)(e,"disabled"))&&!!e.disabled},c=class e{constructor(t){s(this,"options",t),s(this,"items"),s(this,"indexMap",null),s(this,"copy",(t=>new e({...this.options,items:t??[...this.items]}))),s(this,"isEqual",(e=>(0,i.i)(this.items,e.items))),s(this,"setItems",(e=>this.copy(e))),s(this,"getValues",((e=this.items)=>{const t=[];for(const n of e){const e=this.getItemValue(n);null!=e&&t.push(e)}return t})),s(this,"find",(e=>{if(null==e)return null;const t=this.indexOf(e);return-1!==t?this.at(t):null})),s(this,"findMany",(e=>{const t=[];for(const n of e){const e=this.find(n);null!=e&&t.push(e)}return t})),s(this,"at",(e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;const n=this.group();for(const[,i]of n)for(const n of i){if(t===e)return n;t++}return null})),s(this,"sortFn",((e,t)=>
vendor: 3,155 bytes, line 1
1(this.indexOf(e)??0)-(this.indexOf(t)??0))),s(this,"sort",(e=>[...e].sort(this.sortFn.bind(this)))),s(this,"getItemValue",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToValue)?void 0:n.call(t,e))??a.itemToValue(e)})),s(this,"getItemDisabled",(e=>{var t,n;return null!=e&&((null==(n=(t=this.options).isItemDisabled)?void 0:n.call(t,e))??a.isItemDisabled(e))})),s(this,"stringifyItem",(e=>{var t,n;return null==e?null:(null==(n=(t=this.options).itemToString)?void 0:n.call(t,e))??a.itemToString(e)})),s(this,"stringify",(e=>null==e?null:this.stringifyItem(this.find(e)))),s(this,"stringifyItems",((e,t=", ")=>{const n=[];for(const t of e){const e=this.stringifyItem(t);null!=e&&n.push(e)}return n.join(t)})),s(this,"stringifyMany",((e,t)=>this.stringifyItems(this.findMany(e),t))),s(this,"has",(e=>-1!==this.indexOf(e))),s(this,"hasItem",(e=>null!=e&&this.has(this.getItemValue(e)))),s(this,"group",(()=>{const{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];const n=new Map;this.items.forEach(((t,i)=>{const o=e(t,i);n.has(o)||n.set(o,[]),n.get(o).push(t)}));let i=Array.from(n.entries());return t&&i.sort((([e],[n])=>{if("function"==typeof t)return t(e,n);if(Array.isArray(t)){const i=t.indexOf(e),o=t.indexOf(n);return-1===i?1:-1===o?-1:i-o}return"asc"===t?e.localeCompare(n):"desc"===t?n.localeCompare(e):0})),i})),s(this,"getNextValue",((e,t=1,n=!1)=>{let i=this.indexOf(e);if(-1===i)return null;for(i=n?Math.min(i+t,this.size-1):i+t;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))})),s(this,"getPreviousValue",((e,t=1,n=!1)=>{let i=this.indexOf(e);if(-1===i)return null;for(i=n?Math.max(i-t,0):i-t;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))})),s(this,"indexOf",(e=>{if(null==e)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex((t=>this.getItemValue(t)===e));if(!this.indexMap){this.indexMap=new Map;let e=0;const t=this.group();for(const[,n]of t)for(const t of n){const n=this.getItemValue(t);null!=n&&this.indexMap.set(n,e),e++}}return this.indexMap.get(e)??-1})),s(this,"getByText",((e,t)=>{const n=null!=t?this.indexOf(t):-1,i=1===e.length;for(let o=0;o<this.items.length;o++){const r=this.items[(n+o+1)%this.items.length];if((!i||this.getItemValue(r)!==t)&&!this.getItemDisabled(r)&&u(this.stringifyItem(r),e))return r}})),s(this,"search",((e,t)=>{const{state:n,currentValue:i,timeout:o=350}=t,r=n.keysSoFar+e,l=r.length>1&&Array.from(r).every((e=>e===r[0]))?r[0]:r,s=this.getByText(l,i),a=this.getItemValue(s);function c(){clearTimeout(n.timer),n.timer=-1}function u(e){n.keysSoFar=e,c(),""!==e&&(n.timer=+setTimeout((()=>{u(""),c()}),o))}return u(r),a})),s(this,"update",((e,t)=>{let n=this.indexOf(e);return-1===n?this:this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])})),s(this,"upsert",((e,t,n="append")=>{let i=this.indexOf(e);return-1===i?("append"===n?this.append:this.prepend)(t):this.copy([...this.items.slice(0,i),t,...this.items.slice(i+1)])})),s(this,"insert",((e,...t)=>this.copy(d(this.items,e,...t)))),s(this,"insertBefore",((e,...t)=>{let n=this.indexOf(e);
vendor: 4,890 bytes, line 1
1if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(d(this.items,n,...t))})),s(this,"insertAfter",((e,...t)=>{let n=this.indexOf(e);if(-1===n){if(0!==this.items.length)return this;n=0}return this.copy(d(this.items,n+1,...t))})),s(this,"prepend",((...e)=>this.copy(d(this.items,0,...e)))),s(this,"append",((...e)=>this.copy(d(this.items,this.items.length,...e)))),s(this,"filter",(e=>{const t=this.items.filter(((t,n)=>e(this.stringifyItem(t),n,t)));return this.copy(t)})),s(this,"remove",((...e)=>{const t=e.map((e=>"string"==typeof e?e:this.getItemValue(e)));return this.copy(this.items.filter((e=>{const n=this.getItemValue(e);return null!=n&&!t.includes(n)})))})),s(this,"move",((e,t)=>{const n=this.indexOf(e);return-1===n?this:this.copy(p(this.items,[n],t))})),s(this,"moveBefore",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let i=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(p(this.items,i,n))})),s(this,"moveAfter",((e,...t)=>{let n=this.items.findIndex((t=>this.getItemValue(t)===e));if(-1===n)return this;let i=t.map((e=>this.items.findIndex((t=>this.getItemValue(t)===e)))).sort(((e,t)=>e-t));return this.copy(p(this.items,i,n+1))})),s(this,"reorder",((e,t)=>this.copy(p(this.items,[e],t)))),s(this,"compareValue",((e,t)=>{const n=this.indexOf(e),i=this.indexOf(t);return n<i?-1:n>i?1:0})),s(this,"range",((e,t)=>{let n=[],i=e;for(;null!=i;){if(this.find(i)&&n.push(i),i===t)return n;i=this.getNextValue(i)}return[]})),s(this,"getValueRange",((e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[])),s(this,"toString",(()=>{let e="";for(const t of this.items){e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+","}return e})),s(this,"toJSON",(()=>({size:this.size,first:this.firstValue,last:this.lastValue}))),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},u=(e,t)=>!(null==e||!e.toLowerCase().startsWith(t.toLowerCase()));function d(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function p(e,t,n){const i=(t=[...t].sort(((e,t)=>e-t))).map((t=>e[t]));for(let n=t.length-1;n>=0;n--)e=[...e.slice(0,t[n]),...e.slice(t[n]+1)];return n=Math.max(0,n-t.filter((e=>e<n)).length),[...e.slice(0,n),...i,...e.slice(n)]}function f({values:e,collection:t,selectedItemMap:n}){const i=[];for(const o of e){const e=t.find(o)??n.get(o);null!=e&&i.push(e)}return i}function m({selectedItemMap:e,values:t,selectedItems:n,collection:i}){const o=new Map(e);for(const e of n){const t=i.getItemValue(e);null!=t&&o.set(t,e)}const r=new Set(t);for(const e of o.keys())r.has(e)||o.delete(e);return o}function g({values:e,collection:t,selectedItemMap:n}){const i=f({values:e,collection:t,selectedItemMap:n});return{selectedItems:i,nextSelectedItemMap:m({selectedItemMap:n,values:e,selectedItems:i,collection:t})}}function h({selectedItems:e,collection:t}){return m({selectedItemMap:new Map,values:e.map((e=>t.getItemValue(e))).filter(Boolean),selectedItems:e,collection:t})}},54991:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(51609),o=n(33552),r=n(50576);const l=(0,i.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:l,className:s="",children:a,iconNode:c,...u},d)=>(0,i.createElement)("svg",{ref:d,...o.A,width:t,height:t,stroke:e,strokeWidth:l?24*Number(n)/Number(t):n,className:(0,r.z)("lucide",s),...u},[...c.map((([e,t])=>(0,i.createElement)(e,t))),...Array.isArray(a)?a:[a]])))},60466:(e,t,n)=>{"use strict";n.d(t,{g:()=>C,i:()=>R,s:()=>S,t:()=>A});var i=n(65997),o=n(91963);function r(e){return!(e.metaKey||!(0,i.a)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}var l=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),s=["a[href]","audio[controls]","button","details","embed","iframe","img[controls]","img[usemap]","input","select","textarea","video[controls]"].join(",");function a(e,t,n){const r=n?(0,i.g)(n):null,s=(0,o.g)(r),a=(0,o.a)(r),c=(0,o.b)(s);return!((e=e||c instanceof a.HTMLInputElement&&!l.has(null==c?void 0:c.type)||c instanceof a.HTMLTextAreaElement||c instanceof a.HTMLElement&&c.isContentEditable)&&"keyboard"===t&&n instanceof a.KeyboardEvent&&!Reflect.has(v,n.key))}var c=null,u=new Set,d=new Map,p=!1,f=null,m=!1,g=null,h=!1,v={Tab:!0,Escape:!0};function y(e,t){for(let n of u)n(e,t)}function b(e){f=null,p=!0,r(e)&&(c="keyboard",y("keyboard",e))}function x(e){("pointermove"===e.type||"mousemove"===e.type)&&(null==g?void 0:g.x)===e.clientX&&(null==g?void 0:g.y)===e.clientY||(g={x:e.clientX,y:e.clientY}
1,c="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(f=null,p=!0,y("pointer",e)))}function I(e){if((0,i.i)(e))return f=null,p=!0,void(c="virtual");f=null;const t=(0,i.g)(e),n=null==t?void 0:t.closest("label"),r=null==n?void 0:n.control;if(!n||!r||r.matches(":disabled"))return;const l=null==t?void 0:t.closest(s);l&&n.contains(l)&&l!==r||r!==(0,o.b)(n.ownerDocument)&&(f=r)}function E(e){const t=(0,i.g)(e),n=t===f;t===(0,o.a)(t)||t===(0,o.g)(t)||h||!e.isTrusted||(!p&&!n&&!m&&(c="virtual",y("virtual",e)),p=!1,f=null,m=!1)}function w(){p=!1,f=null,m=!0}function T(e){if(typeof window>"u"||d.get((0,o.a)(e)))return;const t=(0,o.a)(e),n=(0,o.g)(e);let i=t.HTMLElement.prototype.focus;function r(){p=!0,i.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:r})}catch{}n.addEventListener("keydown",b,!0),n.addEventListener("keyup",b,!0),n.addEventListener("click",I,!0),t.addEventListener("focus",E,!0),t.addEventListener("blur",w,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",x,!0),n.addEventListener("pointermove",x,!0),n.addEventListener("pointerup",x,!0)):(n.addEventListener("mousedown",x,!0),n.addEventListener("mousemove",x,!0),n.addEventListener("mouseup",x,!0)),t.addEventListener("beforeunload",(()=>{O(e)}),{once:!0}),d.set(t,{focus:i})}var O=(e,t)=>{const n=(0,o.a)(e),i=(0,o.g)(e),r=d.get(n);if(r){try{Object.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,value:r.focus})}catch{}i.removeEventListener("keydown",b,!0),i.removeEventListener("keyup",b,!0),i.removeEventListener("click",I,!0),n.removeEventListener("focus",E,!0),n.removeEventListener("blur",w,!1),typeof n.PointerEvent<"u"?(i.removeEventListener("pointerdown",x,!0),i.removeEventListener("pointermove",x,!0),i.removeEventListener("pointerup",x,!0)):(i.removeEventListener("mousedown",x,!0),i.removeEventListener("mousemove",x,!0),i.removeEventListener("mouseup",x,!0)),d.delete(n)}};function C(){return c}function S(e){c=e,y(e,null)}function R(){return"keyboard"===c||"virtual"===c}function A(e={}){const{isTextInput:t,autoFocus:n,onChange:i,root:o}=e;T(o),null==i||i({isFocusVisible:n||R(),modality:c});const r=(e,n)=>{a(!!t,e,n)&&(null==i||i({isFocusVisible:R(),modality:e}))};return u.add(r),()=>{u.delete(r)}}},62705:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var i=n(51261),o=e=>new i.L(e)},63234:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var i=n(51609);function o(e,t={}){const{sync:n=!1}=t,o=r(e);return(0,i.useCallback)(((...e)=>{var t;return n?queueMicrotask((()=>{var t;return null==(t=o.current)?void 0:t.call(o,...e)})):null==(t=o.current)?void 0:t.call(o,...e)}),[n,o])}function r(e){const t=(0,i.useRef)(e);return t.current=e,t}},73125:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var i=n(80163),[o,r]=(0,i.c)({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1})},74713:(e,t,n)=>{"use strict";n.d(t,{g:()=>u});var i=n(18831),o=n(80163),r=e=>e.split("").map((e=>{const t=e.charCodeAt(0);return t>0&&t<128?e:t>=128&&t<=255?`/x${t.toString(16)}`.replace("/","\\"):""})).join("").trim(),l=e=>{var t;return r((null==(t=e.dataset)?void 0:t.valuetext)??e.textContent??"")},s=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function a(e,t,n,r=i.d){const a=n?(0,i.i)(e,n,r):-1;let c=n?(0,o.w)(e,a):e;return 1===t.length&&(c=c.filter((e=>r(e)!==n))),c.find((e=>s(l(e),t)))}function c(e,t){const{state:n,activeId:i,key:o,timeout:r=350,itemToId:l}=t,s=n.keysSoFar+o,c=s.length>1&&Array.from(s).every((e=>e===s[0]))?s[0]:s;const u=a(e.slice(),c,i,l);function d(){clearTimeout(n.timer),n.timer=-1}function p(e){n.keysSoFar=e,d(),""!==e&&(n.timer=+setTimeout((()=>{p(""),d()}),r))}return p(s),u}var u=Object.assign(c,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:d});function d(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}},75256:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i=(0,n(26203).A)("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]])},81012:(e,t,n)=>{"use strict";n.d(t,{g:()=>r,i:()=>l});var i=n(91963),o=n(13497);function r(e){const{root:t,getInitialEl:n,filter:i,enabled:r=!0}=e;if(!r)return;let l="function"==typeof n?n():n;return l||(l=null==t?void 0:t.querySelector("[data-autofocus],[autofocus]")),l||(l=(0,o.g)(t).filter((e=>!i||i(e))).find((e=>!e.hasAttribute("data-no-autofocus")))),l||t||void 0}function l(e){const t=e.currentTarget;if(!t)return!1;const[n,r]=(0,o.a)(t);return!((0,i.c)(n)&&e.shiftKey||(0,i.c)(r)&&!e.shiftKey||!n&&!r)}},91605:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});class i{constructor(e){this.repository=e}execute(){return this.repository.getRegions()}}},94971:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var i=n(46076),o=n(26672),r=n(81926);const l=(0,o.a)(i.a.button,r.b)}}]);

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.