(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4196],{3176:function(t,e,n){"use strict";n.r(e),n.d(e,{add:function(){return h},century:function(){return U},date:function(){return C},day:function(){return P},decade:function(){return R},diff:function(){return _},endOf:function(){return y},eq:function(){return b},gt:function(){return w},gte:function(){return x},hours:function(){return k},inRange:function(){return S},lt:function(){return O},lte:function(){return j},max:function(){return M},milliseconds:function(){return Z},min:function(){return E},minutes:function(){return A},month:function(){return T},neq:function(){return g},seconds:function(){return D},startOf:function(){return m},subtract:function(){return v},weekday:function(){return $},year:function(){return L}});var r="milliseconds",o="seconds",i="minutes",a="hours",u="week",s="month",c="year",f="decade",l="century",p={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,day:864e5,week:6048e5},d={month:1,year:12,decade:120,century:1200};function h(t,e,n){var h,v,m,y,b,g,w,x,O,j,E,M,S,Z;switch(t=new Date(t),n){case r:case o:case i:case a:case"day":case u:return v=new Date(+(h=t)+e*p[n]),m=h.getTimezoneOffset(),y=v.getTimezoneOffset(),new Date(+v+(y-m)*p.minutes);case s:case c:case f:case l:return b=t,g=e*d[n],w=b.getFullYear(),x=b.getMonth(),O=b.getDate(),E=Math.trunc((j=12*w+x+g)/12),S=Math.min(O,[31,E%4==0&&E%100!=0||E%400==0?29:28,31,30,31,30,31,31,30,31,30,31][M=j%12]),(Z=new Date(b)).setFullYear(E),Z.setDate(1),Z.setMonth(M),Z.setDate(S),Z}throw TypeError('Invalid units: "'+n+'"')}function v(t,e,n){return h(t,-e,n)}function m(t,e,n){switch(t=new Date(t),e){case l:case f:case c:t=T(t,0);case s:t=C(t,1);case u:case"day":t=k(t,0);case a:t=A(t,0);case i:t=D(t,0);case o:t=Z(t,0)}return e===f&&(t=v(t,L(t)%10,"year")),e===l&&(t=v(t,L(t)%100,"year")),e===u&&(t=$(t,0,n)),t}function y(t,e,n){switch(t=m(t=new Date(t),e,n),e){case l:case f:case c:case s:case u:(t=v(t=h(t,1,e),1,"day")).setHours(23,59,59,999);break;case"day":t.setHours(23,59,59,999);break;case a:case i:case o:t=v(t=h(t,1,e),1,r)}return t}var b=N(function(t,e){return t===e}),g=N(function(t,e){return t!==e}),w=N(function(t,e){return t>e}),x=N(function(t,e){return t>=e}),O=N(function(t,e){return t=e&&o.getHours()-n.getHours()0&&(e=e[0]),n=(e=e.filter(function(t){return t}))[0];for(var n,r=1;r=Math.abs(r)?60*r:r;if(0===a)return this.utc(o);var u=this.clone();if(o)return u.$offset=a,u.$u=!1,u;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(u=this.local().add(a+s,t)).$offset=a,u.$x.$localOffset=s,u};var f=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var l=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var p=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return p.call(this,t,e,n);var r=this.local(),o=i(t).local();return p.call(r,o,e,n)}}},t.exports=e()},46667:function(t,e,n){"use strict";function r(t,e){t.classList?t.classList.add(e):(t.classList?e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" "))||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}n.d(e,{Z:function(){return r}})},31462:function(t,e,n){"use strict";n.d(e,{W:function(){return c},a:function(){return s}});var r=n(38707),o=new Date().getTime(),i="clearTimeout",a=function(t){var e=new Date().getTime(),n=setTimeout(t,Math.max(0,16-(e-o)));return o=e,n},u=function(t,e){return t+(t?e[0].toUpperCase()+e.substr(1):e)+"AnimationFrame"};r.Z&&["","webkit","moz","o","ms"].some(function(t){var e=u(t,"request");return e in window&&(i=u(t,"cancel"),a=function(t){return window[e](t)}),!!a});var s=function(t){"function"==typeof window[i]&&window[i](t)},c=a},38707:function(t,e){"use strict";e.Z=!!("undefined"!=typeof window&&window.document&&window.document.createElement)},27476:function(t,e,n){"use strict";var r;function o(t,e,n){t.closest&&!n&&t.closest(e);var o=t;do{if(function(t,e){if(!r){var n=document.body,o=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;r=function(t,e){return o.call(t,e)}}return r(t,e)}(o,e))return o;o=o.parentElement}while(o&&o!==n&&o.nodeType===document.ELEMENT_NODE);return null}n.d(e,{Z:function(){return o}})},18169:function(t,e,n){"use strict";function r(t,e){return t.contains?t.contains(e):t.compareDocumentPosition?t===e||!!(16&t.compareDocumentPosition(e)):void 0}n.d(e,{Z:function(){return r}})},96800:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(13853);function o(t){var e="pageXOffset"===t?"scrollLeft":"scrollTop";return function(n,o){var i=(0,r.Z)(n);if(void 0===o)return i?i[t]:n[e];i?i.scrollTo(i[t],o):n[e]=o}}},18878:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(13853),o=n(55810);function i(t,e){var n=(0,r.Z)(t);return n?n.innerHeight:e?t.clientHeight:(0,o.Z)(t).height}},13853:function(t,e,n){"use strict";function r(t){return"window"in t&&t.window===t?t:"nodeType"in t&&t.nodeType===document.DOCUMENT_NODE&&(t.defaultView||!1)}n.d(e,{Z:function(){return r}})},63194:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(38707),o=!1,i=!1;try{var a={get passive(){return o=!0},get once(){return i=o=!0}};r.Z&&(window.addEventListener("test",a,a),window.removeEventListener("test",a,!0))}catch(t){}var u=function(t,e,n,r){if(r&&"boolean"!=typeof r&&!i){var a=r.once,u=r.capture,s=n;!i&&a&&(s=n.__once||function t(r){this.removeEventListener(e,t,u),n.call(this,r)},n.__once=s),t.addEventListener(e,s,o?r:u)}t.addEventListener(e,n,r)},s=function(t,e,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;t.removeEventListener(e,n,o),n.__once&&t.removeEventListener(e,n.__once,o)},c=function(t,e,n,r){return u(t,e,n,r),function(){s(t,e,n,r)}}},55810:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(18169),o=n(54946),i=n(49519),a=n(6770);function u(t){var e=(0,o.Z)(t),n={top:0,left:0,height:0,width:0},u=e&&e.documentElement;return u&&(0,r.Z)(u,t)?(void 0!==t.getBoundingClientRect&&(n=t.getBoundingClientRect()),n={top:n.top+(0,a.Z)(u)-(u.clientTop||0),left:n.left+(0,i.Z)(u)-(u.clientLeft||0),width:n.width,height:n.height}):n}},54946:function(t,e,n){"use strict";function r(t){return t&&t.ownerDocument||document}n.d(e,{Z:function(){return r}})},74192:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var r=n(1119),o=n(54946),i=/([A-Z])/g,a=/^ms-/;function u(t){return t.replace(i,"-$1").toLowerCase().replace(a,"-ms-")}var s=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,c=function(t,e){var n,r="",i="";if("string"==typeof e)return t.style.getPropertyValue(u(e))||((n=(0,o.Z)(t))&&n.defaultView||window).getComputedStyle(t,void 0).getPropertyValue(u(e));Object.keys(e).forEach(function(n){var o=e[n];o||0===o?n&&s.test(n)?i+=n+"("+o+") ":r+=u(n)+": "+o+";":t.style.removeProperty(u(n))}),i&&(r+="transform: "+i+";"),t.style.cssText+=";"+r},f=n(55810),l=n(49519),p=n(6770);function d(t,e){var n,i={top:0,left:0};if("fixed"===c(t,"position"))n=t.getBoundingClientRect();else{var a=e||function(t){for(var e,n=(0,o.Z)(t),r=t&&t.offsetParent;(e=r)&&("offsetParent"in e)&&"HTML"!==r.nodeName&&"static"===c(r,"position");)r=r.offsetParent;return r||n.documentElement}(t);n=(0,f.Z)(t),"html"!==(a.nodeName&&a.nodeName.toLowerCase())&&(i=(0,f.Z)(a));var u=String(c(a,"borderTopWidth")||0);i.top+=parseInt(u,10)-(0,p.Z)(a)||0;var s=String(c(a,"borderLeftWidth")||0);i.left+=parseInt(s,10)-(0,l.Z)(a)||0}var d=String(c(t,"marginTop")||0),h=String(c(t,"marginLeft")||0);return(0,r.Z)({},n,{top:n.top-i.top-(parseInt(d,10)||0),left:n.left-i.left-(parseInt(h,10)||0)})}},98791:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(t,e){return r(t.querySelectorAll(e))}},13956:function(t,e,n){"use strict";function r(t,e){return t.replace(RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function o(t,e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=r(t.className,e):t.setAttribute("class",r(t.className&&t.className.baseVal||"",e))}n.d(e,{Z:function(){return o}})},49519:function(t,e,n){"use strict";var r=n(96800);e.Z=(0,r.Z)("pageXOffset")},6770:function(t,e,n){"use strict";var r=n(96800);e.Z=(0,r.Z)("pageYOffset")},46175:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r,o=n(38707);function i(t){if((!r&&0!==r||t)&&o.Z){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),r=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return r}},32025:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(13853),o=n(55810);function i(t,e){var n=(0,r.Z)(t);return n?n.innerWidth:e?t.clientWidth:(0,o.Z)(t).width}},52200:function(t){"use strict";t.exports=function(t,e,n,r,o,i,a,u){if(!t){var s;if(void 0===e)s=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],f=0;(s=Error(e.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},2421:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n2?e[2]:void 0;for(c&&i(e[0],e[1],c)&&(r=1);++n1),e}),u(t,f(t),n),c&&(n=o(n,7,s));for(var l=e.length;l--;)i(n,e[l]);return n});t.exports=l},18014:function(t,e,n){var r=n(2421),o=n(32318),i=n(98060),a=n(88157),u=n(62602),s=n(25614),c=n(98051),f=n(86757),l=n(28302),p=n(9792);t.exports=function(t,e,n){var d=s(t),h=d||c(t)||p(t);if(e=a(e,4),null==n){var v=t&&t.constructor;n=h?d?new v:[]:l(t)&&f(v)?o(u(t)):{}}return(h?r:i)(t,function(t,r,o){return e(n,t,r,o)}),n}},92369:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=(0,n(79205).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},1410:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function o(t,e){if(t.length!==e.length)return!1;for(var n,o,i=0;it&&"function"!=typeof t?e=>{t.current=e}:t;var m="bottom",y="right",b="left",g="auto",w=["top",m,y,b],x="start",O="viewport",j="popper",E=w.reduce(function(t,e){return t.concat([e+"-"+x,e+"-end"])},[]),M=[].concat(w,[g]).reduce(function(t,e){return t.concat([e,e+"-"+x,e+"-end"])},[]),S=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],Z=function(t){let e=function(){let t=(0,p.useRef)(!0),e=(0,p.useRef)(()=>t.current);return(0,p.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}();return[t[0],(0,p.useCallback)(n=>{if(e())return t[1](n)},[e,t[1]])]};function D(t){return t.split("-")[0]}function A(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function k(t){var e=A(t).Element;return t instanceof e||t instanceof Element}function P(t){var e=A(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function C(t){if("undefined"==typeof ShadowRoot)return!1;var e=A(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var T=Math.max,L=Math.min,R=Math.round;function U(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function $(){return!/^((?!chrome|android).)*safari/i.test(U())}function _(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&P(t)&&(o=t.offsetWidth>0&&R(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&R(r.height)/t.offsetHeight||1);var a=(k(t)?A(t):window).visualViewport,u=!$()&&n,s=(r.left+(u&&a?a.offsetLeft:0))/o,c=(r.top+(u&&a?a.offsetTop:0))/i,f=r.width/o,l=r.height/i;return{width:f,height:l,top:c,right:s+f,bottom:c+l,left:s,x:s,y:c}}function W(t){var e=_(t),n=t.offsetWidth,r=t.offsetHeight;return 1>=Math.abs(e.width-n)&&(n=e.width),1>=Math.abs(e.height-r)&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function N(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&C(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function B(t){return t?(t.nodeName||"").toLowerCase():null}function Y(t){return A(t).getComputedStyle(t)}function H(t){return((k(t)?t.ownerDocument:t.document)||window.document).documentElement}function I(t){return"html"===B(t)?t:t.assignedSlot||t.parentNode||(C(t)?t.host:null)||H(t)}function F(t){return P(t)&&"fixed"!==Y(t).position?t.offsetParent:null}function V(t){for(var e=A(t),n=F(t);n&&["table","td","th"].indexOf(B(n))>=0&&"static"===Y(n).position;)n=F(n);return n&&("html"===B(n)||"body"===B(n)&&"static"===Y(n).position)?e:n||function(t){var e=/firefox/i.test(U());if(/Trident/i.test(U())&&P(t)&&"fixed"===Y(t).position)return null;var n=I(t);for(C(n)&&(n=n.host);P(n)&&0>["html","body"].indexOf(B(n));){var r=Y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}function q(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function K(t,e,n){return T(t,L(e,n))}function z(){return{top:0,right:0,bottom:0,left:0}}function X(t){return Object.assign({},z(),t)}function G(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}function J(t){return t.split("-")[1]}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tt(t){var e,n,r,o,i,a,u,s=t.popper,c=t.popperRect,f=t.placement,l=t.variation,p=t.offsets,d=t.position,h=t.gpuAcceleration,v=t.adaptive,g=t.roundOffsets,w=t.isFixed,x=p.x,O=void 0===x?0:x,j=p.y,E=void 0===j?0:j,M="function"==typeof g?g({x:O,y:E}):{x:O,y:E};O=M.x,E=M.y;var S=p.hasOwnProperty("x"),Z=p.hasOwnProperty("y"),D=b,k="top",P=window;if(v){var C=V(s),T="clientHeight",L="clientWidth";C===A(s)&&"static"!==Y(C=H(s)).position&&"absolute"===d&&(T="scrollHeight",L="scrollWidth"),("top"===f||(f===b||f===y)&&"end"===l)&&(k=m,E-=(w&&C===P&&P.visualViewport?P.visualViewport.height:C[T])-c.height,E*=h?1:-1),(f===b||("top"===f||f===m)&&"end"===l)&&(D=y,O-=(w&&C===P&&P.visualViewport?P.visualViewport.width:C[L])-c.width,O*=h?1:-1)}var U=Object.assign({position:d},v&&Q),$=!0===g?(e={x:O,y:E},n=A(s),r=e.x,o=e.y,{x:R(r*(i=n.devicePixelRatio||1))/i||0,y:R(o*i)/i||0}):{x:O,y:E};return(O=$.x,E=$.y,h)?Object.assign({},U,((u={})[k]=Z?"0":"",u[D]=S?"0":"",u.transform=1>=(P.devicePixelRatio||1)?"translate("+O+"px, "+E+"px)":"translate3d("+O+"px, "+E+"px, 0)",u)):Object.assign({},U,((a={})[k]=Z?E+"px":"",a[D]=S?O+"px":"",a.transform="",a))}var te={passive:!0},tn={left:"right",right:"left",bottom:"top",top:"bottom"};function tr(t){return t.replace(/left|right|bottom|top/g,function(t){return tn[t]})}var to={start:"end",end:"start"};function ti(t){return t.replace(/start|end/g,function(t){return to[t]})}function ta(t){var e=A(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tu(t){return _(H(t)).left+ta(t).scrollLeft}function ts(t){var e=Y(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function tc(t,e){void 0===e&&(e=[]);var n,r=function t(e){return["html","body","#document"].indexOf(B(e))>=0?e.ownerDocument.body:P(e)&&ts(e)?e:t(I(e))}(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),i=A(r),a=o?[i].concat(i.visualViewport||[],ts(r)?r:[]):r,u=e.concat(a);return o?u:u.concat(tc(I(a)))}function tf(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tl(t,e,n){var r,o,i,a,u,s,c,f,l,p;return e===O?tf(function(t,e){var n=A(t),r=H(t),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;var c=$();(c||!c&&"fixed"===e)&&(u=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:u+tu(t),y:s}}(t,n)):k(e)?((r=_(e,!1,"fixed"===n)).top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r):tf((o=H(t),a=H(o),u=ta(o),s=null==(i=o.ownerDocument)?void 0:i.body,c=T(a.scrollWidth,a.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),f=T(a.scrollHeight,a.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-u.scrollLeft+tu(o),p=-u.scrollTop,"rtl"===Y(s||a).direction&&(l+=T(a.clientWidth,s?s.clientWidth:0)-c),{width:c,height:f,x:l,y:p}))}function tp(t){var e,n=t.reference,r=t.element,o=t.placement,i=o?D(o):null,a=o?J(o):null,u=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case"top":e={x:u,y:n.y-r.height};break;case m:e={x:u,y:n.y+n.height};break;case y:e={x:n.x+n.width,y:s};break;case b:e={x:n.x-r.width,y:s};break;default:e={x:n.x,y:n.y}}var c=i?q(i):null;if(null!=c){var f="y"===c?"height":"width";switch(a){case x:e[c]=e[c]-(n[f]/2-r[f]/2);break;case"end":e[c]=e[c]+(n[f]/2-r[f]/2)}}return e}function td(t,e){void 0===e&&(e={});var n,r,o,i,a,u,s,c,f=e,l=f.placement,p=void 0===l?t.placement:l,d=f.strategy,h=void 0===d?t.strategy:d,v=f.boundary,b=f.rootBoundary,g=f.elementContext,x=void 0===g?j:g,E=f.altBoundary,M=f.padding,S=void 0===M?0:M,Z=X("number"!=typeof S?S:G(S,w)),D=t.rects.popper,A=t.elements[void 0!==E&&E?x===j?"reference":j:x],C=(n=k(A)?A:A.contextElement||H(t.elements.popper),r=void 0===v?"clippingParents":v,o=void 0===b?O:b,s=(u=[].concat("clippingParents"===r?(i=tc(I(n)),k(a=["absolute","fixed"].indexOf(Y(n).position)>=0&&P(n)?V(n):n)?i.filter(function(t){return k(t)&&N(t,a)&&"body"!==B(t)}):[]):[].concat(r),[o]))[0],(c=u.reduce(function(t,e){var r=tl(n,e,h);return t.top=T(r.top,t.top),t.right=L(r.right,t.right),t.bottom=L(r.bottom,t.bottom),t.left=T(r.left,t.left),t},tl(n,s,h))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),R=_(t.elements.reference),U=tp({reference:R,element:D,strategy:"absolute",placement:p}),$=tf(Object.assign({},D,U)),W=x===j?$:R,F={top:C.top-W.top+Z.top,bottom:W.bottom-C.bottom+Z.bottom,left:C.left-W.left+Z.left,right:W.right-C.right+Z.right},q=t.modifiersData.offset;if(x===j&&q){var K=q[p];Object.keys(F).forEach(function(t){var e=[y,m].indexOf(t)>=0?1:-1,n=["top",m].indexOf(t)>=0?"y":"x";F[t]+=K[n]*e})}return F}function th(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function tv(t){return["top",y,m,b].some(function(e){return t[e]>=0})}var tm={placement:"bottom",modifiers:[],strategy:"absolute"};function ty(){for(var t=arguments.length,e=Array(t),n=0;n=0?-1:1,s=(u="function"==typeof i?i(Object.assign({},r,{placement:n})):i)[0],c=u[1],s=s||0,c=(c||0)*a,[b,y].indexOf(o)>=0?{x:c,y:s}:{x:s,y:c}),t},{}),u=a[e.placement],s=u.x,c=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0===a||a,s=n.fallbackPlacements,c=n.padding,f=n.boundary,l=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,v=n.allowedAutoPlacements,O=e.options.placement,j=D(O)===O,S=s||(j||!h?[tr(O)]:function(t){if(D(t)===g)return[];var e=tr(t);return[ti(t),e,ti(e)]}(O)),Z=[O].concat(S).reduce(function(t,n){var r,o,i,a,u,s,p,d,m,y,b,x;return t.concat(D(n)===g?(o=(r={placement:n,boundary:f,rootBoundary:l,padding:c,flipVariations:h,allowedAutoPlacements:v}).placement,i=r.boundary,a=r.rootBoundary,u=r.padding,s=r.flipVariations,d=void 0===(p=r.allowedAutoPlacements)?M:p,0===(b=(y=(m=J(o))?s?E:E.filter(function(t){return J(t)===m}):w).filter(function(t){return d.indexOf(t)>=0})).length&&(b=y),Object.keys(x=b.reduce(function(t,n){return t[n]=td(e,{placement:n,boundary:i,rootBoundary:a,padding:u})[D(n)],t},{})).sort(function(t,e){return x[t]-x[e]})):n)},[]),A=e.rects.reference,k=e.rects.popper,P=new Map,C=!0,T=Z[0],L=0;L=0,W=_?"width":"height",N=td(e,{placement:R,boundary:f,rootBoundary:l,altBoundary:p,padding:c}),B=_?$?y:b:$?m:"top";A[W]>k[W]&&(B=tr(B));var Y=tr(B),H=[];if(i&&H.push(N[U]<=0),u&&H.push(N[B]<=0,N[Y]<=0),H.every(function(t){return t})){T=R,C=!1;break}P.set(R,H)}if(C)for(var I=h?3:1,F=function(t){var e=Z.find(function(e){var n=P.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return T=e,"break"},V=I;V>0&&"break"!==F(V);V--);e.placement!==T&&(e.modifiersData[r]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=n.altAxis,a=n.boundary,u=n.rootBoundary,s=n.altBoundary,c=n.padding,f=n.tether,l=void 0===f||f,p=n.tetherOffset,d=void 0===p?0:p,h=td(e,{boundary:a,rootBoundary:u,padding:c,altBoundary:s}),v=D(e.placement),g=J(e.placement),w=!g,O=q(v),j="x"===O?"y":"x",E=e.modifiersData.popperOffsets,M=e.rects.reference,S=e.rects.popper,Z="function"==typeof d?d(Object.assign({},e.rects,{placement:e.placement})):d,A="number"==typeof Z?{mainAxis:Z,altAxis:Z}:Object.assign({mainAxis:0,altAxis:0},Z),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(E){if(void 0===o||o){var C,R="y"===O?"top":b,U="y"===O?m:y,$="y"===O?"height":"width",_=E[O],N=_+h[R],B=_-h[U],Y=l?-S[$]/2:0,H=g===x?M[$]:S[$],I=g===x?-S[$]:-M[$],F=e.elements.arrow,X=l&&F?W(F):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:z(),Q=G[R],tt=G[U],te=K(0,M[$],X[$]),tn=w?M[$]/2-Y-te-Q-A.mainAxis:H-te-Q-A.mainAxis,tr=w?-M[$]/2+Y+te+tt+A.mainAxis:I+te+tt+A.mainAxis,to=e.elements.arrow&&V(e.elements.arrow),ti=to?"y"===O?to.clientTop||0:to.clientLeft||0:0,ta=null!=(C=null==k?void 0:k[O])?C:0,tu=K(l?L(N,_+tn-ta-ti):N,_,l?T(B,_+tr-ta):B);E[O]=tu,P[O]=tu-_}if(void 0!==i&&i){var ts,tc,tf="x"===O?"top":b,tl="x"===O?m:y,tp=E[j],th="y"===j?"height":"width",tv=tp+h[tf],tm=tp-h[tl],ty=-1!==["top",b].indexOf(v),tb=null!=(tc=null==k?void 0:k[j])?tc:0,tg=ty?tv:tp-M[th]-S[th]-tb+A.altAxis,tw=ty?tp+M[th]+S[th]-tb-A.altAxis:tm,tx=l&&ty?(ts=K(tg,tp,tw))>tw?tw:ts:K(l?tg:tv,tp,l?tw:tm);E[j]=tx,P[j]=tx-tp}e.modifiersData[r]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n,r=t.state,o=t.name,i=t.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,s=D(r.placement),c=q(s),f=[b,y].indexOf(s)>=0?"height":"width";if(a&&u){var l=X("number"!=typeof(e="function"==typeof(e=i.padding)?e(Object.assign({},r.rects,{placement:r.placement})):e)?e:G(e,w)),p=W(a),d="y"===c?"top":b,h="y"===c?m:y,v=r.rects.reference[f]+r.rects.reference[c]-u[c]-r.rects.popper[f],g=u[c]-r.rects.reference[c],x=V(a),O=x?"y"===c?x.clientHeight||0:x.clientWidth||0:0,j=l[d],E=O-p[f]-l[h],M=O/2-p[f]/2+(v/2-g/2),S=K(j,M,E);r.modifiersData[o]=((n={})[c]=S,n.centerOffset=S-M,n)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&N(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:o,u=void 0===(a=r.defaultOptions)?tm:a,function(t,e,n){void 0===n&&(n=u);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},tm,u),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},s=[],c=!1,f={state:a,setOptions:function(n){var r,o,c,p,d,h="function"==typeof n?n(a.options):n;l(),a.options=Object.assign({},u,a.options,h),a.scrollParents={reference:k(t)?tc(t):t.contextElement?tc(t.contextElement):[],popper:tc(e)};var v=(o=Object.keys(r=[].concat(i,a.options.modifiers).reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{})).map(function(t){return r[t]}),c=new Map,p=new Set,d=[],o.forEach(function(t){c.set(t.name,t)}),o.forEach(function(t){p.has(t.name)||function t(e){p.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!p.has(e)){var n=c.get(e);n&&t(n)}}),d.push(e)}(t)}),S.reduce(function(t,e){return t.concat(d.filter(function(t){return t.phase===e}))},[]));return a.orderedModifiers=v.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,r=t.effect;if("function"==typeof r){var o=r({state:a,name:e,instance:f,options:void 0===n?{}:n});s.push(o||function(){})}}),f.update()},forceUpdate:function(){if(!c){var t,e,n,r,o,i,u,s,l,p,d,h,v=a.elements,m=v.reference,y=v.popper;if(ty(m,y)){;a.rects={reference:(e=V(y),n="fixed"===a.options.strategy,r=P(e),s=P(e)&&(i=R((o=e.getBoundingClientRect()).width)/e.offsetWidth||1,u=R(o.height)/e.offsetHeight||1,1!==i||1!==u),l=H(e),p=_(m,s,n),d={scrollLeft:0,scrollTop:0},h={x:0,y:0},(r||!r&&!n)&&(("body"!==B(e)||ts(l))&&(d=(t=e)!==A(t)&&P(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:ta(t)),P(e)?(h=_(e,!0),h.x+=e.clientLeft,h.y+=e.clientTop):l&&(h.x=tu(l))),{x:p.left+d.scrollLeft-h.x,y:p.top+d.scrollTop-h.y,width:p.width,height:p.height}),popper:W(y)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var b=0;b{e.current=t},[t]),e};function tZ(t){let e=tS(t);return(0,p.useCallback)(function(...t){return e.current&&e.current(...t)},[e])}var tD=n(58768),tA=n.n(tD),tk=n(54946),tP=function(){},tC=function(t){return t&&("current"in t?t.current:t)},tT=function(t,e,n){var r=void 0===n?{}:n,o=r.disabled,i=r.clickTrigger,a=void 0===i?"click":i,u=(0,p.useRef)(!1),s=e||tP,c=(0,p.useCallback)(function(e){var n,r=tC(t);tA()(!!r,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),u.current=!r||!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)||0!==e.button||!!(0,tE.Z)(r,null!=(n=null==e.composedPath?void 0:e.composedPath()[0])?n:e.target)},[t]),f=tZ(function(t){u.current||s(t)}),l=tZ(function(t){27===t.keyCode&&s(t)});(0,p.useEffect)(function(){if(!o&&null!=t){var e,n=window.event,r=(e=tC(t),(0,tk.Z)(e&&"setState"in e?d.findDOMNode(e):null!=e?e:null)),i=(0,tM.Z)(r,a,c,!0),u=(0,tM.Z)(r,a,function(t){if(t===n){n=void 0;return}f(t)}),s=(0,tM.Z)(r,"keyup",function(t){if(t===n){n=void 0;return}l(t)}),p=[];return"ontouchstart"in r.documentElement&&(p=[].slice.call(r.body.children).map(function(t){return(0,tM.Z)(t,"mousemove",tP)})),function(){i(),u(),s(),p.forEach(function(t){return t()})}}},[t,o,a,c,f,l])},tL=function(t){var e;return"undefined"==typeof document?null:null==t?(0,tk.Z)().body:("function"==typeof t&&(t=t()),t&&"current"in t&&(t=t.current),null!=(e=t)&&e.nodeType&&t||null)};function tR(t,e){var n=(0,p.useState)(function(){return tL(t)}),r=n[0],o=n[1];if(!r){var i=tL(t);i&&o(i)}return(0,p.useEffect)(function(){e&&r&&e(r)},[e,r]),(0,p.useEffect)(function(){var e=tL(t);e!==r&&o(e)},[t,r]),r}var tU=p.forwardRef(function(t,e){var n,r,o,i,a,u,f,l,m,y,b,g,w,x,O,j,E,M,S,Z=t.flip,D=t.offset,A=t.placement,k=t.containerPadding,P=t.popperConfig,C=t.transition,T=h(),L=T[0],R=T[1],U=h(),$=U[0],_=U[1],W=(0,p.useMemo)(()=>(function(t,e){let n=v(t),r=v(e);return t=>{n&&n(t),r&&r(t)}})(R,e),[R,e]),N=tR(t.container),B=tR(t.target),Y=(0,p.useState)(!t.show),H=Y[0],I=Y[1],F=tj(B,L,(u=(n={placement:A,enableEvents:!!t.show,containerPadding:(void 0===k?5:k)||5,flip:Z,offset:D,arrowElement:$,popperConfig:void 0===P?{}:P}).enabled,f=n.enableEvents,l=n.placement,m=n.flip,y=n.offset,b=n.fixed,g=n.containerPadding,w=n.arrowElement,j=(O=void 0===(x=n.popperConfig)?{}:x).modifiers,E={},M=Array.isArray(j)?(null==j||j.forEach(function(t){E[t.name]=t}),E):j||E,(0,s.Z)({},O,{placement:l,enabled:u,strategy:b?"fixed":O.strategy,modifiers:(void 0===(S=(0,s.Z)({},M,{eventListeners:{enabled:f},preventOverflow:(0,s.Z)({},M.preventOverflow,{options:g?(0,s.Z)({padding:g},null==(r=M.preventOverflow)?void 0:r.options):null==(o=M.preventOverflow)?void 0:o.options}),offset:{options:(0,s.Z)({offset:y},null==(i=M.offset)?void 0:i.options)},arrow:(0,s.Z)({},M.arrow,{enabled:!!w,options:(0,s.Z)({},null==(a=M.arrow)?void 0:a.options,{element:w})}),flip:(0,s.Z)({enabled:!!m},M.flip)}))&&(S={}),Array.isArray(S))?S:Object.keys(S).map(function(t){return S[t].name=t,S[t]})}))),V=F.styles,q=F.attributes,K=(0,c.Z)(F,["styles","attributes"]);t.show?H&&I(!1):t.transition||H||I(!0);var z=t.show||C&&!H;if(tT(L,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!z)return null;var X=t.children((0,s.Z)({},K,{show:!!t.show,props:(0,s.Z)({},q.popper,{style:V.popper,ref:W}),arrowProps:(0,s.Z)({},q.arrow,{style:V.arrow,ref:_})}));if(C){var G=t.onExit,J=t.onExiting,Q=t.onEnter,tt=t.onEntering,te=t.onEntered;X=p.createElement(C,{in:t.show,appear:!0,onExit:G,onExiting:J,onExited:function(){I(!0),t.onExited&&t.onExited.apply(t,arguments)},onEnter:Q,onEntering:tt,onEntered:te},X)}return N?d.createPortal(X,N):null});tU.displayName="Overlay",tU.propTypes={show:l().bool,placement:l().oneOf(M),target:l().any,container:l().any,flip:l().bool,children:l().func.isRequired,containerPadding:l().number,popperConfig:l().object,rootClose:l().bool,rootCloseEvent:l().oneOf(["click","mousedown"]),rootCloseDisabled:l().bool,onHide:function(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?i-1:0),u=1;ut.length)&&(e=t.length);for(var n=0,r=Array(e);n{if(this.#r&&this.hasListeners()){let e=this.#e.variables,n=this.#e.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#r.onSuccess?.(t.data,e,n,r),this.#r.onSettled?.(t.data,null,e,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,e,n,r),this.#r.onSettled?.(void 0,t.error,e,n,r))}this.listeners.forEach(t=>{t(this.#e)})})}},c=n(29827);function f(t,e){let n=(0,c.NL)(e),[o]=r.useState(()=>new s(n,t));r.useEffect(()=>{o.setOptions(t)},[o,t]);let a=r.useSyncExternalStore(r.useCallback(t=>o.subscribe(i.Vr.batchCalls(t)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),f=r.useCallback((t,e)=>{o.mutate(t,e).catch(u.ZT)},[o]);if(a.error&&(0,u.L3)(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:f,mutateAsync:a.mutate}}}}]);