"use strict";(self.webpackChunkclient=self.webpackChunkclient||[]).push([["9444"],{45989:function(t,e,n){n.r(e),n.d(e,{Viewport:()=>E,Popup:()=>l.o,Arrow:()=>d,Handle:()=>C,Positioner:()=>s.o,Trigger:()=>o.k,Provider:()=>_.B,Root:()=>r.s,createHandle:()=>z,Portal:()=>u.K});var i,r=n(65270),o=n(45525),u=n(66541),s=n(73013),l=n(93725),a=n(60175),c=n(4654),h=n(42540),f=n(27178),p=n(90894);let d=a.forwardRef(function(t,e){let{className:n,render:i,...r}=t,o=(0,p.g)().useState("instantType"),{open:u,arrowRef:s,side:l,align:d,arrowUncentered:_,arrowStyles:y}=(0,c.s)(),x=a.useMemo(()=>({open:u,side:l,align:d,uncentered:_,instant:o}),[u,l,d,_,o]);return(0,f.o)("div",t,{state:x,ref:[e,s],props:[{style:y,"aria-hidden":!0},r],stateAttributesMapping:h.GW})});var _=n(63241),y=n(43242),x=n(94911),g=n(76124),v=n(13840),$=n(92468),A=n(8749),w=n(7831);let m=((i={}).popupWidth="--popup-width",i.popupHeight="--popup-height",i);var M=n(50775),b=n(77527);let S={activationDirection:t=>t?{"data-activation-direction":t}:null},E=a.forwardRef(function(t,e){let n,{render:i,className:r,children:o,...u}=t,s=(0,p.g)(),l=(0,c.s)(),h=(0,M.j)(),d=s.useState("activeTriggerElement"),_=s.useState("open"),E=s.useState("instantType"),P=s.useState("mounted"),T=s.useState("payload"),N=s.useState("popupElement"),R=s.useState("positionerElement"),C=(0,g.S)(_?d:null),z=a.useRef(null),[k,L]=a.useState(null),[j,O]=a.useState(null),q=a.useRef(null),B=a.useRef(null),D=(0,A.V)(q,!0,!1),V=(0,x.N)(),[Y,F]=a.useState(null),[H,K]=a.useState(!1);(0,v.g)(()=>(s.set("hasViewport",!0),()=>{s.set("hasViewport",!1)}),[s]);let I=(0,$.K)(()=>{q.current?.style.setProperty("animation","none"),q.current?.style.setProperty("transition","none"),B.current?.style.setProperty("display","none")}),W=(0,$.K)(t=>{q.current?.style.removeProperty("animation"),q.current?.style.removeProperty("transition"),B.current?.style.removeProperty("display"),t&&F(t)}),G=a.useRef(null);(0,v.g)(()=>{var t,e;let n,i,r,o;d&&C&&d!==C&&G.current!==d&&z.current&&(L(z.current),K(!0),O((t=C,e=d,n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r={x:n.left+n.width/2,y:n.top+n.height/2},{horizontal:(o={x:i.left+i.width/2,y:i.top+i.height/2}).x-r.x,vertical:o.y-r.y})),V.request(()=>{V.request(()=>{K(!1),D(()=>{L(null),F(null),z.current=null})})}),G.current=d)},[d,C,k,D,V]),(0,v.g)(()=>{let t=q.current;if(!t)return;let e=document.createElement("div");for(let n of Array.from(t.childNodes))e.appendChild(n.cloneNode(!0));z.current=e});let J=null!=k;n=J?(0,b.jsxs)(a.Fragment,{children:[(0,b.jsx)("div",{"data-previous":!0,inert:(0,y.Y)(!0),ref:B,style:{[m.popupWidth]:`${Y?.width}px`,[m.popupHeight]:`${Y?.height}px`,position:"absolute"},"data-ending-style":H?void 0:""},"previous"),(0,b.jsx)("div",{"data-current":!0,ref:q,"data-starting-style":H?"":void 0,children:o},"current")]}):(0,b.jsx)("div",{"data-current":!0,ref:q,children:o},"current"),(0,v.g)(()=>{let t=B.current;t&&k&&t.replaceChildren(...Array.from(k.childNodes))},[k]),(0,w.t)({popupElement:N,positionerElement:R,mounted:P,content:T,onMeasureLayout:I,onMeasureLayoutComplete:W,side:l.side,direction:h});let X=a.useMemo(()=>({activationDirection:function(t){if(t)return`${function(t,e,n,i){return t>e?n:t<-e?i:""}(t.horizontal,5,"right","left")} ${function(t,e,n,i){return t>e?n:t<-e?i:""}(t.vertical,5,"down","up")}`}(j),transitioning:J,instant:E}),[j,J,E]);return(0,f.o)("div",t,{state:X,ref:e,props:[u,{children:n}],stateAttributesMapping:S})});var P=n(70141),T=n(92483),N=n(39434),R=n(59760);class C{constructor(){this.store=new T.h}open(t){let e=t?this.store.context.triggerElements.getById(t):void 0;if(t&&!e)throw Error((0,P.A)(81,t));this.store.setOpen(!0,(0,N.d)(R.zJ,void 0,e))}close(){this.store.setOpen(!1,(0,N.d)(R.zJ,void 0,void 0))}get isOpen(){return this.store.state.open}}function z(){return new C}},7831:function(t,e,n){n.d(e,{t:()=>d});var i=n(60175),r=n(94911),o=n(13840),u=n(92468),s=n(68914),l=n(8749),a=n(67500),c=n(28442);function h(t){let e=(0,c.L9)(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,r=(0,c.sb)(t),o=r?t.offsetWidth:n,u=r?t.offsetHeight:i;return((0,a.LI)(n)!==o||(0,a.LI)(i)!==u)&&(n=o,i=u),{width:n,height:i}}let f="u">typeof ResizeObserver,p=()=>!0;function d(t){let{popupElement:e,positionerElement:n,content:a,mounted:c,enabled:d=p,onMeasureLayout:v,onMeasureLayoutComplete:$,side:A,direction:w}=t,m=(0,l.V)(e,!0,!1),M=(0,r.N)(),b=i.useRef(null),S=i.useRef(null),E=i.useRef(!0),P=i.useRef(s.tE),T=(0,u.K)(v),N=(0,u.K)($),R=i.useMemo(()=>{let t="top"===A,e="left"===A;return"rtl"===w?(t=t||"inline-end"===A,e=e||"inline-end"===A):(t=t||"inline-start"===A,e=e||"inline-start"===A),t?{position:"absolute",["top"===A?"bottom":"top"]:"0",[e?"right":"left"]:"0"}:s.t0},[A,w]);(0,o.g)(()=>{if(!c||!d()||!f){P.current=s.tE,E.current=!0,b.current=null,S.current=null;return}if(!e||!n)return;P.current=y(e,R);let t=new ResizeObserver(t=>{let e=t[0];e&&(S.current={width:Math.ceil(e.borderBoxSize[0].inlineSize),height:Math.ceil(e.borderBoxSize[0].blockSize)})});t.observe(e),x(e,"auto");let i=_(e,"position","static"),r=_(e,"transform","none"),o=_(e,"scale","1"),u=y(n,{"--available-width":"max-content","--available-height":"max-content"});function l(){i(),r(),u()}if(T?.(),E.current||null===b.current){g(n,"max-content");let i=h(e);return b.current=i,g(n,i),l(),o(),N?.(null,i),E.current=!1,()=>{t.disconnect(),P.current(),P.current=s.tE}}x(e,"auto"),g(n,"max-content");let a=b.current??S.current,p=h(e);if(b.current=p,!a)return g(n,p),l(),o(),N?.(null,p),()=>{t.disconnect(),M.cancel(),P.current(),P.current=s.tE};x(e,a),l(),N?.(a,p),g(n,p);let v=new AbortController;return M.request(()=>{x(e,p),m(()=>{e.style.setProperty("--popup-width","auto"),e.style.setProperty("--popup-height","auto")},v.signal)}),()=>{t.disconnect(),v.abort(),M.cancel(),P.current(),P.current=s.tE}},[a,e,n,m,M,d,c,T,N,R])}function _(t,e,n){let i=t.style.getPropertyValue(e);return t.style.setProperty(e,n),()=>{t.style.setProperty(e,i)}}function y(t,e){let n=[];for(let[i,r]of Object.entries(e))n.push(_(t,i,r));return n.length?()=>{n.forEach(t=>t())}:s.tE}function x(t,e){let n="auto"===e?"auto":`${e.width}px`,i="auto"===e?"auto":`${e.height}px`;t.style.setProperty("--popup-width",n),t.style.setProperty("--popup-height",i)}function g(t,e){let n="max-content"===e?"max-content":`${e.width}px`,i="max-content"===e?"max-content":`${e.height}px`;t.style.setProperty("--positioner-width",n),t.style.setProperty("--positioner-height",i)}},76124:function(t,e,n){n.d(e,{S:()=>r});var i=n(60175);function r(t){let[e,n]=i.useState({current:t,previous:null});return t!==e.current&&n({current:t,previous:e.current}),e.previous}},53920:function(t,e,n){n.d(e,{A:()=>a});var i=n(85780),r=n(94977),o=n(45696),u=n(89371),s=n(47569),l=n(23319);function a(t,e,n){var a=null,c=(0,r.A)(!0),h=null,f=o.A,p=null,d=(0,s.i)(_);function _(r){var o,u,s,l,_,y=(r=(0,i.A)(r)).length,x=!1,g=Array(y),v=Array(y);for(null==h&&(p=f(_=d())),o=0;o<=y;++o){if(!(o=u;--s)p.point(g[s],v[s]);p.lineEnd(),p.areaEnd()}x&&(g[o]=+t(l,o,r),v[o]=+e(l,o,r),p.point(a?+a(l,o,r):g[o],n?+n(l,o,r):v[o]))}if(_)return p=null,_+""||null}function y(){return(0,u.A)().defined(c).curve(f).context(h)}return t="function"==typeof t?t:void 0===t?l.x:(0,r.A)(+t),e="function"==typeof e?e:void 0===e?(0,r.A)(0):(0,r.A)(+e),n="function"==typeof n?n:void 0===n?l.y:(0,r.A)(+n),_.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.A)(+e),a=null,_):t},_.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.A)(+e),_):t},_.x1=function(t){return arguments.length?(a=null==t?null:"function"==typeof t?t:(0,r.A)(+t),_):a},_.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.A)(+t),n=null,_):e},_.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.A)(+t),_):e},_.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,r.A)(+t),_):n},_.lineX0=_.lineY0=function(){return y().x(t).y(e)},_.lineY1=function(){return y().x(t).y(n)},_.lineX1=function(){return y().x(a).y(e)},_.defined=function(t){return arguments.length?(c="function"==typeof t?t:(0,r.A)(!!t),_):c},_.curve=function(t){return arguments.length?(f=t,null!=h&&(p=f(h)),_):f},_.context=function(t){return arguments.length?(null==t?h=p=null:p=f(h=t),_):h},_}},85780:function(t,e,n){function i(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}n.d(e,{A:()=>i}),Array.prototype.slice},94977:function(t,e,n){n.d(e,{A:()=>i});function i(t){return function(){return t}}},45696:function(t,e,n){function i(t){this._context=t}function r(t){return new i(t)}n.d(e,{A:()=>r}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}}},89210:function(t,e,n){function i(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),u=(n-t._y1)/(r||i<0&&-0);return((o<0?-1:1)+(u<0?-1:1))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs((o*r+u*i)/(i+r)))||0}function r(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function o(t,e,n){var i=t._x0,r=t._y0,o=t._x1,u=t._y1,s=(o-i)/3;t._context.bezierCurveTo(i+s,r+s*e,o-s,u-s*n,o,u)}function u(t){this._context=t}function s(t){this._context=t}function l(t){return new u(t)}n.d(e,{G:()=>l}),u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,r(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,o(this,r(this,n=i(this,t,e)),n);break;default:o(this,this._t0,n=i(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},((function(t){this._context=new s(t)}).prototype=Object.create(u.prototype)).point=function(t,e){u.prototype.point.call(this,e,t)},s.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}}},89371:function(t,e,n){n.d(e,{A:()=>l});var i=n(85780),r=n(94977),o=n(45696),u=n(47569),s=n(23319);function l(t,e){var n=(0,r.A)(!0),l=null,a=o.A,c=null,h=(0,u.i)(f);function f(r){var o,u,s,f=(r=(0,i.A)(r)).length,p=!1;for(null==l&&(c=a(s=h())),o=0;o<=f;++o)!(ol});let i=Math.PI,r=2*i,o=r-1e-6;function u(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return u;let n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e1e-6)if(Math.abs(h*l-a*c)>1e-6&&o){let p=n-u,d=r-s,_=l*l+a*a,y=Math.sqrt(_),x=Math.sqrt(f),g=o*Math.tan((i-Math.acos((_+f-(p*p+d*d))/(2*y*x)))/2),v=g/x,$=g/y;Math.abs(v-1)>1e-6&&this._append`L${t+v*c},${e+v*h}`,this._append`A${o},${o},0,0,${+(h*p>c*d)},${this._x1=t+$*l},${this._y1=e+$*a}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,u,s,l){if(t*=1,e*=1,n*=1,l=!!l,n<0)throw Error(`negative radius: ${n}`);let a=n*Math.cos(u),c=n*Math.sin(u),h=t+a,f=e+c,p=1^l,d=l?u-s:s-u;null===this._x1?this._append`M${h},${f}`:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&this._append`L${h},${f}`,n&&(d<0&&(d=d%r+r),d>o?this._append`A${n},${n},0,1,${p},${t-a},${e-c}A${n},${n},0,1,${p},${this._x1=h},${this._y1=f}`:d>1e-6&&this._append`A${n},${n},0,${+(d>=i)},${p},${this._x1=t+n*Math.cos(s)},${this._y1=e+n*Math.sin(s)}`)}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n*=1}v${+i}h${-n}Z`}toString(){return this._}}function l(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{let t=Math.floor(n);if(!(t>=0))throw RangeError(`invalid digits: ${n}`);e=t}return t},()=>new s(e)}s.prototype},23319:function(t,e,n){function i(t){return t[0]}function r(t){return t[1]}n.d(e,{x:()=>i,y:()=>r})},27824:function(t,e,n){n.d(e,{f:()=>o});var i=n(49005),r=n(13435);function o(t,e,n){let o=(0,r.a)(t,n?.in);return isNaN(e)?(0,i.w)(n?.in||t,NaN):(e&&o.setDate(o.getDate()+e),o)}},18398:function(t,e,n){n.d(e,{d:()=>r});var i=n(13435);function r(t,e){return+(0,i.a)(t)>+(0,i.a)(e)}},6053:function(t,e,n){n.d(e,{Y:()=>r});var i=n(13435);function r(t,e){return+(0,i.a)(t)<+(0,i.a)(e)}},79944:function(t,e,n){n.d(e,{n:()=>r});var i=n(13435);function r(t,e){return+(0,i.a)(t)==+(0,i.a)(e)}},27966:function(t,e,n){n.d(e,{a:()=>o});var i=n(49005),r=n(13435);function o(t,e,n){return function(t,e,n){let o=(0,r.a)(t,n?.in);if(isNaN(e))return(0,i.w)(n?.in||t,NaN);if(!e)return o;let u=o.getDate(),s=(0,i.w)(n?.in||t,o.getTime());return(s.setMonth(o.getMonth()+e+1,0),u>=s.getDate())?s:(o.setFullYear(s.getFullYear(),s.getMonth(),u),o)}(t,-e,n)}}}]);