"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1357],{3761:(e,t,n)=>{n.d(t,{ll:()=>q,rD:()=>W,UU:()=>z,cY:()=>N,BN:()=>H});const o=Math.min,r=Math.max,i=Math.round,u=Math.floor,l=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function a(e,t,n){return r(e,o(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function h(e){return["top","bottom"].includes(d(e))?"y":"x"}function g(e){return p(h(e))}function y(e){return e.replace(/start|end/g,(e=>s[e]))}function b(e){return e.replace(/left|right|bottom|top/g,(e=>c[e]))}function w(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function x(e,t,n){let{reference:o,floating:r}=e;const i=h(t),u=g(t),l=v(u),c=d(t),s="y"===i,a=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let y;switch(c){case"top":y={x:a,y:o.y-r.height};break;case"bottom":y={x:a,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:f};break;case"left":y={x:o.x-r.width,y:f};break;default:y={x:o.x,y:o.y}}switch(m(t)){case"start":y[u]-=p*(n&&s?-1:1);break;case"end":y[u]+=p*(n&&s?-1:1)}return y}async function E(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:u,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=f(t,e),v=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),h=l[m?"floating"===d?"reference":"floating":d],g=w(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:a,strategy:c})),y="floating"===d?{x:o,y:r,width:u.floating.width,height:u.floating.height}:u.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),x=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},E=w(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:c}):y);return{top:(g.top-E.top+v.top)/x.y,bottom:(E.bottom-g.bottom+v.bottom)/x.y,left:(g.left-E.left+v.left)/x.x,right:(E.right-g.right+v.right)/x.x}}var R=n(22756);function L(e){const t=(0,R.L9)(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=(0,R.sb)(e),u=r?e.offsetWidth:n,l=r?e.offsetHeight:o,c=i(n)!==u||i(o)!==l;return c&&(n=u,o=l),{width:n,height:o,$:c}}function T(e){return(0,R.vq)(e)?e:e.contextElement}function C(e){const t=T(e);if(!(0,R.sb)(t))return l(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:u}=L(t);let c=(u?i(n.width):n.width)/o,s=(u?i(n.height):n.height)/r;return c&&Number.isFinite(c)||(c=1),s&&Number.isFinite(s)||(s=1),{x:c,y:s}}const P=l(0);function k(e){const t=(0,R.zk)(e);return(0,R.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:P}function S(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=T(e);let u=l(1);t&&(o?(0,R.vq)(o)&&(u=C(o)):u=C(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,R.zk)(e))&&t}(i,n,o)?k(i):l(0);let s=(r.left+c.x)/u.x,a=(r.top+c.y)/u.y,f=r.width/u.x,d=r.height/u.y;if(i){const e=(0,R.zk)(i),t=o&&(0,R.vq)(o)?(0,R.zk)(o):o;let n=e,r=(0,R._m)(n);for(;r&&o&&t!==n;){const e=C(r),t=r.getBoundingClientRect(),o=(0,R.L9)(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,u=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,a*=e.y,f*=e.x,d*=e.y,s+=i,a+=u,n=(0,R.zk)(r),r=(0,R._m)(n)}}return w({width:f,height:d,x:s,y:a})}function A(e){return S((0,R.ep)(e)).left+(0,R.CP)(e).scrollLeft}function O(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=(0,R.zk)(e),o=(0,R.ep)(e),r=n.visualViewport;let i=o.clientWidth,u=o.clientHeight,l=0,c=0;if(r){i=r.width,u=r.height;const e=(0,R.Tc)();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:u,x:l,y:c}}(e,n);else if("document"===t)o=function(e){const t=(0,R.ep)(e),n=(0,R.CP)(e),o=e.ownerDocument.body,i=r(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),u=r(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+A(e);const c=-n.scrollTop;return"rtl"===(0,R.L9)(o).direction&&(l+=r(t.clientWidth,o.clientWidth)-i),{width:i,height:u,x:l,y:c}}((0,R.ep)(e));else if((0,R.vq)(t))o=function(e,t){const n=S(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=(0,R.sb)(e)?C(e):l(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=k(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return w(o)}function M(e,t){const n=(0,R.$4)(e);return!(n===t||!(0,R.vq)(n)||(0,R.eu)(n))&&("fixed"===(0,R.L9)(n).position||M(n,t))}function D(e,t,n){const o=(0,R.sb)(t),r=(0,R.ep)(t),i="fixed"===n,u=S(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const s=l(0);if(o||!o&&!i)if(("body"!==(0,R.mq)(t)||(0,R.ZU)(r))&&(c=(0,R.CP)(t)),o){const e=S(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=A(r));return{x:u.left+c.scrollLeft-s.x,y:u.top+c.scrollTop-s.y,width:u.width,height:u.height}}function _(e){return"static"===(0,R.L9)(e).position}function B(e,t){return(0,R.sb)(e)&&"fixed"!==(0,R.L9)(e).position?t?t(e):e.offsetParent:null}function F(e,t){const n=(0,R.zk)(e);if((0,R.Tf)(e))return n;if(!(0,R.sb)(e)){let t=(0,R.$4)(e);for(;t&&!(0,R.eu)(t);){if((0,R.vq)(t)&&!_(t))return t;t=(0,R.$4)(t)}return n}let o=B(e,t);for(;o&&(0,R.Lv)(o)&&_(o);)o=B(o,t);return o&&(0,R.eu)(o)&&_(o)&&!(0,R.sQ)(o)?n:o||(0,R.gJ)(e)||n}const I={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,u=(0,R.ep)(o),c=!!t&&(0,R.Tf)(t.floating);if(o===u||c&&i)return n;let s={scrollLeft:0,scrollTop:0},a=l(1);const f=l(0),d=(0,R.sb)(o);if((d||!d&&!i)&&(("body"!==(0,R.mq)(o)||(0,R.ZU)(u))&&(s=(0,R.CP)(o)),(0,R.sb)(o))){const e=S(o);a=C(o),f.x=e.x+o.clientLeft,f.y=e.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+f.x,y:n.y*a.y-s.scrollTop*a.y+f.y}},getDocumentElement:R.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:u}=e;const l=[..."clippingAncestors"===n?(0,R.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=(0,R.v9)(e,[],!1).filter((e=>(0,R.vq)(e)&&"body"!==(0,R.mq)(e))),r=null;const i="fixed"===(0,R.L9)(e).position;let u=i?(0,R.$4)(e):e;for(;(0,R.vq)(u)&&!(0,R.eu)(u);){const t=(0,R.L9)(u),n=(0,R.sQ)(u);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||(0,R.ZU)(u)&&!n&&M(e,u))?o=o.filter((e=>e!==u)):r=t,u=(0,R.$4)(u)}return t.set(e,o),o}(t,this._c):[].concat(n),i],c=l[0],s=l.reduce(((e,n)=>{const i=O(t,n,u);return e.top=r(i.top,e.top),e.right=o(i.right,e.right),e.bottom=o(i.bottom,e.bottom),e.left=r(i.left,e.left),e}),O(t,c,u));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:F,getElementRects:async function(e){const t=this.getOffsetParent||F,n=this.getDimensions,o=await n(e.floating);return{reference:D(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=L(e);return{width:t,height:n}},getScale:C,isElement:R.vq,isRTL:function(e){return"rtl"===(0,R.L9)(e).direction}};function q(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:f=!1}=i,d=T(e),m=l||c?[...d?(0,R.v9)(d):[],...(0,R.v9)(t)]:[];m.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));const p=d&&a?function(e,t){let n,i=null;const l=(0,R.ep)(e);function c(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function s(a,f){void 0===a&&(a=!1),void 0===f&&(f=1),c();const{left:d,top:m,width:p,height:v}=e.getBoundingClientRect();if(a||t(),!p||!v)return;const h={rootMargin:-u(m)+"px "+-u(l.clientWidth-(d+p))+"px "+-u(l.clientHeight-(m+v))+"px "+-u(d)+"px",threshold:r(0,o(1,f))||1};let g=!0;function y(e){const t=e[0].intersectionRatio;if(t!==f){if(!g)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}g=!1}try{i=new IntersectionObserver(y,{...h,root:l.ownerDocument})}catch(e){i=new IntersectionObserver(y,h)}i.observe(e)}(!0),c}(d,n):null;let v,h=-1,g=null;s&&(g=new ResizeObserver((e=>{let[o]=e;o&&o.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),n()})),d&&!f&&g.observe(d),g.observe(t));let y=f?S(e):null;return f&&function t(){const o=S(e);!y||o.x===y.x&&o.y===y.y&&o.width===y.width&&o.height===y.height||n(),y=o,v=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(v)}}const N=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:u,middlewareData:l}=t,c=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),u=d(n),l=m(n),c="y"===h(n),s=["left","top"].includes(u)?-1:1,a=i&&c?-1:1,p=f(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:y}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&"number"==typeof y&&(g="end"===l?-1*y:y),c?{x:g*a,y:v*s}:{x:v*s,y:g*a}}(t,e);return u===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:u}}}}},H=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:u=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=f(e,t),s={x:n,y:o},m=await E(t,c),v=h(d(r)),g=p(v);let y=s[g],b=s[v];if(i){const e="y"===g?"bottom":"right";y=a(y+m["y"===g?"top":"left"],y,y-m[e])}if(u){const e="y"===v?"bottom":"right";b=a(b+m["y"===v?"top":"left"],b,b-m[e])}const w=l.fn({...t,[g]:y,[v]:b});return{...w,data:{x:w.x-n,y:w.y-o}}}}},z=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:u,initialPlacement:l,platform:c,elements:s}=t,{mainAxis:a=!0,crossAxis:p=!0,fallbackPlacements:w,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:L=!0,...T}=f(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const C=d(r),P=h(l),k=d(l)===l,S=await(null==c.isRTL?void 0:c.isRTL(s.floating)),A=w||(k||!L?[b(l)]:function(e){const t=b(e);return[y(e),t,y(t)]}(l)),O="none"!==R;!w&&O&&A.push(...function(e,t,n,o){const r=m(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:u;default:return[]}}(d(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(y)))),i}(l,L,R,S));const M=[l,...A],D=await E(t,T),_=[];let B=(null==(o=i.flip)?void 0:o.overflows)||[];if(a&&_.push(D[C]),p){const e=function(e,t,n){void 0===n&&(n=!1);const o=m(e),r=g(e),i=v(r);let u="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(u=b(u)),[u,b(u)]}(r,u,S);_.push(D[e[0]],D[e[1]])}if(B=[...B,{placement:r,overflows:_}],!_.every((e=>e<=0))){var F,I;const e=((null==(F=i.flip)?void 0:F.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:B},reset:{placement:t}};let n=null==(I=B.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(x){case"bestFit":{var q;const e=null==(q=B.filter((e=>{if(O){const t=h(e.placement);return t===P||"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:q[0];e&&(n=e);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}},W=(e,t,n)=>{const o=new Map,r={platform:I,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:u}=n,l=i.filter(Boolean),c=await(null==u.isRTL?void 0:u.isRTL(t));let s=await u.getElementRects({reference:e,floating:t,strategy:r}),{x:a,y:f}=x(s,o,c),d=o,m={},p=0;for(let n=0;n{n.d(t,{BN:()=>m,UU:()=>p,cY:()=>d,we:()=>f});var o=n(3761),r=n(40099),i=n(18499),u="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!=o--;)if(!l(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!=o--;){const n=r[o];if(!("_owner"===n&&e.$$typeof||l(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function c(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){const n=c(e);return Math.round(t*n)/n}function a(e){const t=r.useRef(e);return u((()=>{t.current=e})),t}function f(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:m,floating:p}={},transform:v=!0,whileElementsMounted:h,open:g}=e,[y,b]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=r.useState(f);l(w,f)||x(f);const[E,R]=r.useState(null),[L,T]=r.useState(null),C=r.useCallback((e=>{e!==A.current&&(A.current=e,R(e))}),[]),P=r.useCallback((e=>{e!==O.current&&(O.current=e,T(e))}),[]),k=m||E,S=p||L,A=r.useRef(null),O=r.useRef(null),M=r.useRef(y),D=null!=h,_=a(h),B=a(d),F=r.useCallback((()=>{if(!A.current||!O.current)return;const e={placement:t,strategy:n,middleware:w};B.current&&(e.platform=B.current),(0,o.rD)(A.current,O.current,e).then((e=>{const t={...e,isPositioned:!0};I.current&&!l(M.current,t)&&(M.current=t,i.flushSync((()=>{b(t)})))}))}),[w,t,n,B]);u((()=>{!1===g&&M.current.isPositioned&&(M.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[g]);const I=r.useRef(!1);u((()=>(I.current=!0,()=>{I.current=!1})),[]),u((()=>{if(k&&(A.current=k),S&&(O.current=S),k&&S){if(_.current)return _.current(k,S,F);F()}}),[k,S,F,_,D]);const q=r.useMemo((()=>({reference:A,floating:O,setReference:C,setFloating:P})),[C,P]),N=r.useMemo((()=>({reference:k,floating:S})),[k,S]),H=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=s(N.floating,y.x),o=s(N.floating,y.y);return v?{...e,transform:"translate("+t+"px, "+o+"px)",...c(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}}),[n,v,N.floating,y.x,y.y]);return r.useMemo((()=>({...y,update:F,refs:q,elements:N,floatingStyles:H})),[y,F,q,N,H])}const d=(e,t)=>({...(0,o.cY)(e),options:[e,t]}),m=(e,t)=>({...(0,o.BN)(e),options:[e,t]}),p=(e,t)=>({...(0,o.UU)(e),options:[e,t]})},43303:(e,t,n)=>{n.d(t,{XF:()=>Y,iB:()=>ae,s9:()=>ne,we:()=>oe,iQ:()=>re,Mk:()=>q,bv:()=>ue,It:()=>le,$X:()=>ce});var o=n(40099),r=n.t(o,2);function i(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function u(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){return e instanceof Node||e instanceof u(e).Node}function c(e){return e instanceof Element||e instanceof u(e).Element}function s(e){return e instanceof HTMLElement||e instanceof u(e).HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof u(e).ShadowRoot)}function f(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||a(e)&&e.host||function(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return a(t)?t.host:t}function d(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(o=n.shadowRoot)?void 0:o.activeElement);){var n,o;t=t.shadowRoot.activeElement}return t}function m(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function p(e){if(0===e.mozInputSource&&e.isTrusted)return!0;const t=/Android/i;return(t.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||t.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}function v(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"!==e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function h(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function g(e){return(null==e?void 0:e.ownerDocument)||document}function y(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function b(e){return"composedPath"in e?e.composedPath()[0]:e.target}var w=n(22756),x=n(35948),E=n(66229),R=n(18499);var L="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+P++,S=r["useId".toString()]||function(){const[e,t]=o.useState((()=>C?k():void 0));return L((()=>{null==e&&t(k())}),[]),o.useEffect((()=>{C||(C=!0)}),[]),e};const A=o.createContext(null),O=o.createContext(null),M=()=>{var e;return(null==(e=o.useContext(A))?void 0:e.id)||null},D=()=>o.useContext(O);function _(e){return"data-floating-ui-"+e}function B(e){const t=(0,o.useRef)(e);return L((()=>{t.current=e})),t}const F=_("safe-polygon");function I(e,t,n){return n&&!h(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function q(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:u,elements:{domReference:l,floating:s},refs:a}=e,{enabled:f=!0,delay:d=0,handleClose:p=null,mouseOnly:v=!1,restMs:y=0,move:b=!0}=t,w=D(),x=M(),E=B(p),R=B(d),T=o.useRef(),C=o.useRef(),P=o.useRef(),k=o.useRef(),S=o.useRef(!0),A=o.useRef(!1),O=o.useRef((()=>{})),_=o.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);o.useEffect((()=>{if(f)return u.on("dismiss",e),()=>{u.off("dismiss",e)};function e(){clearTimeout(C.current),clearTimeout(k.current),S.current=!0}}),[f,u]),o.useEffect((()=>{if(!f||!E.current||!n)return;function e(e){_()&&r(!1,e)}const t=g(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s,n,r,f,E,i,_]);const q=o.useCallback((function(e,t){void 0===t&&(t=!0);const n=I(R.current,"close",T.current);n&&!P.current?(clearTimeout(C.current),C.current=setTimeout((()=>r(!1,e)),n)):t&&(clearTimeout(C.current),r(!1,e))}),[R,r]),N=o.useCallback((()=>{O.current(),P.current=void 0}),[]),H=o.useCallback((()=>{if(A.current){const e=g(a.floating.current).body;e.style.pointerEvents="",e.removeAttribute(F),A.current=!1}}),[a]);return o.useEffect((()=>{if(f&&c(l)){const e=l;return n&&e.addEventListener("mouseleave",a),null==s||s.addEventListener("mouseleave",a),b&&e.addEventListener("mousemove",o,{once:!0}),e.addEventListener("mouseenter",o),e.addEventListener("mouseleave",u),()=>{n&&e.removeEventListener("mouseleave",a),null==s||s.removeEventListener("mouseleave",a),b&&e.removeEventListener("mousemove",o),e.removeEventListener("mouseenter",o),e.removeEventListener("mouseleave",u)}}function t(){return!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)}function o(e){if(clearTimeout(C.current),S.current=!1,v&&!h(T.current)||y>0&&0===I(R.current,"open"))return;const t=I(R.current,"open",T.current);t?C.current=setTimeout((()=>{r(!0,e)}),t):r(!0,e)}function u(o){if(t())return;O.current();const r=g(s);if(clearTimeout(k.current),E.current){n||clearTimeout(C.current),P.current=E.current({...e,tree:w,x:o.clientX,y:o.clientY,onClose(){H(),N(),q(o)}});const t=P.current;return r.addEventListener("mousemove",t),void(O.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==T.current||!m(s,o.relatedTarget))&&q(o)}function a(n){t()||null==E.current||E.current({...e,tree:w,x:n.clientX,y:n.clientY,onClose(){H(),N(),q(n)}})(n)}}),[l,s,f,e,v,y,b,q,N,H,r,n,w,R,E,i]),L((()=>{var e;if(f&&n&&null!=(e=E.current)&&e.__options.blockPointerEvents&&_()){const e=g(s).body;if(e.setAttribute(F,""),e.style.pointerEvents="none",A.current=!0,c(l)&&s){var t,o;const e=l,n=null==w||null==(t=w.nodesRef.current.find((e=>e.id===x)))||null==(o=t.context)?void 0:o.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{e.style.pointerEvents="",s.style.pointerEvents=""}}}}),[f,n,x,s,l,w,E,i,_]),L((()=>{n||(T.current=void 0,N(),H())}),[n,N,H]),o.useEffect((()=>()=>{N(),clearTimeout(C.current),clearTimeout(k.current),H()}),[f,l,N,H]),o.useMemo((()=>{if(!f)return{};function e(e){T.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===y||(clearTimeout(k.current),k.current=setTimeout((()=>{S.current||r(!0,e.nativeEvent)}),y))}},floating:{onMouseEnter(){clearTimeout(C.current)},onMouseLeave(e){u.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),q(e.nativeEvent,!1)}}}}),[u,f,y,n,r,q])}function N(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),o=n;for(;o.length;)o=e.filter((e=>{var t;return null==(t=o)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(o);return n}const H=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function z(e,t){const n=(0,E.Kr)(e,H());"prev"===t&&n.reverse();const o=n.indexOf(d(g(e)));return n.slice(o+1)[0]}function W(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!m(n,o)}function K(e){(0,E.Kr)(e,H()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function V(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const U={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function $(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const j=o.forwardRef((function(e,t){const[n,r]=o.useState();L((()=>(/apple/i.test(navigator.vendor)&&r("button"),document.addEventListener("keydown",$),()=>{document.removeEventListener("keydown",$)})),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[_("focus-guard")]:"",style:U};return o.createElement("span",T({},e,i))})),X=o.createContext(null);function Y(e){let{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e;const u=function(e){let{id:t,root:n}=void 0===e?{}:e;const[r,i]=o.useState(null),u=S(),l=Q(),s=o.useMemo((()=>({id:t,root:n,portalContext:l,uniqueId:u})),[t,n,l,u]),a=o.useRef();return L((()=>()=>{null==r||r.remove()}),[r,s]),L((()=>{if(a.current===s)return;a.current=s;const{id:e,root:t,portalContext:n,uniqueId:o}=s,r=e?document.getElementById(e):null,u=_("portal");if(r){const e=document.createElement("div");e.id=o,e.setAttribute(u,""),r.appendChild(e),i(e)}else{let r=t||(null==n?void 0:n.portalNode);r&&!c(r)&&(r=r.current),r=r||document.body;let l=null;e&&(l=document.createElement("div"),l.id=e,r.appendChild(l));const s=document.createElement("div");s.id=o,s.setAttribute(u,""),r=l||r,r.appendChild(s),i(s)}}),[s]),r}({id:n,root:r}),[l,s]=o.useState(null),a=o.useRef(null),f=o.useRef(null),d=o.useRef(null),m=o.useRef(null),p=!!l&&!l.modal&&l.open&&i&&!(!r&&!u);return o.useEffect((()=>{if(u&&i&&(null==l||!l.modal))return u.addEventListener("focusin",e,!0),u.addEventListener("focusout",e,!0),()=>{u.removeEventListener("focusin",e,!0),u.removeEventListener("focusout",e,!0)};function e(e){u&&W(e)&&("focusin"===e.type?V:K)(u)}}),[u,i,null==l?void 0:l.modal]),o.createElement(X.Provider,{value:o.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:a,afterOutsideRef:f,beforeInsideRef:d,afterInsideRef:m,portalNode:u,setFocusManagerState:s})),[i,u])},p&&u&&o.createElement(j,{"data-type":"outside",ref:a,onFocus:e=>{if(W(e,u)){var t;null==(t=d.current)||t.focus()}else{const e=z(document.body,"prev")||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),p&&u&&o.createElement("span",{"aria-owns":u.id,style:U}),u&&(0,R.createPortal)(t,u),p&&u&&o.createElement(j,{"data-type":"outside",ref:f,onFocus:e=>{if(W(e,u)){var t;null==(t=m.current)||t.focus()}else{const t=z(document.body,"next")||(null==l?void 0:l.refs.domReference.current);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent))}}}))}const Q=()=>o.useContext(X),Z=r["useInsertionEffect".toString()]||(e=>e());function J(e){const t=o.useRef((()=>{}));return Z((()=>{t.current=e})),o.useCallback((function(){for(var e=arguments.length,n=new Array(e),o=0;o{var t,n;return{escapeKeyBubbles:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePressBubbles:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ne(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:l,nodeId:a,elements:{reference:d,domReference:h,floating:x},dataRef:E}=e,{enabled:R=!0,escapeKey:L=!0,outsidePress:T=!0,outsidePressEvent:C="pointerdown",referencePress:P=!1,referencePressEvent:k="pointerdown",ancestorScroll:S=!1,bubbles:A}=t,O=D(),B=null!=M(),F=J("function"==typeof T?T:()=>!1),I="function"==typeof T?F:T,q=o.useRef(!1),{escapeKeyBubbles:H,outsidePressBubbles:z}=te(A),W=J((e=>{if(!n||!R||!L||"Escape"!==e.key)return;const t=O?N(O.nodesRef.current,a):[];if(!H&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}l.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e)})),K=J((e=>{const t=q.current;if(q.current=!1,t)return;if("function"==typeof I&&!I(e))return;const n=b(e),o="["+_("inert")+"]",d=g(x).querySelectorAll(o);let w=c(n)?n:null;for(;w&&!["html","body","#document"].includes(i(w));){const e=f(w);if(e===g(x).body||!c(e))break;w=e}var E;if(d.length&&c(n)&&!n.matches("html,body")&&!m(n,x)&&Array.from(d).every((e=>!m(w,e))))return;if(s(n)&&x){const t=n.clientWidth>0&&n.scrollWidth>n.clientWidth,o=n.clientHeight>0&&n.scrollHeight>n.clientHeight;let r=o&&e.offsetX>n.clientWidth;if(o&&"rtl"===(E=n,u(E).getComputedStyle(E)).direction&&(r=e.offsetX<=n.offsetWidth-n.clientWidth),r||t&&e.offsetY>n.clientHeight)return}const R=O&&N(O.nodesRef.current,a).some((t=>{var n;return y(e,null==(n=t.context)?void 0:n.elements.floating)}));if(y(e,x)||y(e,h)||R)return;const L=O?N(O.nodesRef.current,a):[];if(L.length>0){let e=!0;if(L.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}l.emit("dismiss",{type:"outsidePress",data:{returnFocus:B?{preventScroll:!0}:p(e)||v(e)}}),r(!1,e)}));return o.useEffect((()=>{if(!n||!R)return;function e(e){r(!1,e)}E.current.__escapeKeyBubbles=H,E.current.__outsidePressBubbles=z;const t=g(x);L&&t.addEventListener("keydown",W),I&&t.addEventListener(C,K);let o=[];return S&&(c(h)&&(o=(0,w.v9)(h)),c(x)&&(o=o.concat((0,w.v9)(x))),!c(d)&&d&&d.contextElement&&(o=o.concat((0,w.v9)(d.contextElement)))),o=o.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),o.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{L&&t.removeEventListener("keydown",W),I&&t.removeEventListener(C,K),o.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[E,x,h,d,L,I,C,n,r,S,R,H,z,W,K]),o.useEffect((()=>{q.current=!1}),[I,C]),o.useMemo((()=>R?{reference:{onKeyDown:W,[G[k]]:e=>{P&&(l.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1,e.nativeEvent))}},floating:{onKeyDown:W,[ee[C]]:()=>{q.current=!0}}}:{}),[R,l,P,C,k,r,W])}function oe(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:r,nodeId:i}=e,[u,l]=o.useState(null),s=(null==(t=e.elements)?void 0:t.reference)||u,a=(0,x.we)(e),f=D(),d=J(((e,t)=>{e&&(p.current.openEvent=t),null==r||r(e,t)})),m=o.useRef(null),p=o.useRef({}),v=o.useState((()=>function(){const e=new Map;return{emit(t,n){var o;null==(o=e.get(t))||o.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var o;e.set(t,(null==(o=e.get(t))?void 0:o.filter((e=>e!==n)))||[])}}}()))[0],h=S(),g=o.useCallback((e=>{const t=c(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;a.refs.setReference(t)}),[a.refs]),y=o.useCallback((e=>{(c(e)||null===e)&&(m.current=e,l(e)),(c(a.refs.reference.current)||null===a.refs.reference.current||null!==e&&!c(e))&&a.refs.setReference(e)}),[a.refs]),b=o.useMemo((()=>({...a.refs,setReference:y,setPositionReference:g,domReference:m})),[a.refs,y,g]),w=o.useMemo((()=>({...a.elements,domReference:s})),[a.elements,s]),E=o.useMemo((()=>({...a,refs:b,elements:w,dataRef:p,nodeId:i,floatingId:h,events:v,open:n,onOpenChange:d})),[a,i,h,v,n,d,b,w]);return L((()=>{const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===i));e&&(e.context=E)})),o.useMemo((()=>({...a,context:E,refs:b,elements:w})),[a,b,w,E])}function re(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:u,refs:l,elements:{floating:a,domReference:f}}=e,{enabled:p=!0,keyboardOnly:v=!0}=t,h=o.useRef(""),b=o.useRef(!1),w=o.useRef();return o.useEffect((()=>{if(!p)return;const e=g(a).defaultView||window;function t(){!n&&s(f)&&f===d(g(f))&&(b.current=!0)}return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}}),[a,f,n,p]),o.useEffect((()=>{if(p)return u.on("dismiss",e),()=>{u.off("dismiss",e)};function e(e){"referencePress"!==e.type&&"escapeKey"!==e.type||(b.current=!0)}}),[u,p]),o.useEffect((()=>()=>{clearTimeout(w.current)}),[]),o.useMemo((()=>p?{reference:{onPointerDown(e){let{pointerType:t}=e;h.current=t,b.current=!(!t||!v)},onMouseLeave(){b.current=!1},onFocus(e){var t;b.current||"focus"===e.type&&"mousedown"===(null==(t=i.current.openEvent)?void 0:t.type)&&y(i.current.openEvent,f)||r(!0,e.nativeEvent)},onBlur(e){b.current=!1;const t=e.relatedTarget,n=c(t)&&t.hasAttribute(_("focus-guard"))&&"outside"===t.getAttribute("data-type");w.current=setTimeout((()=>{m(l.floating.current,t)||m(f,t)||n||r(!1,e.nativeEvent)}))}}}:{}),[p,v,f,l,i,r])}function ie(e,t,n){const o=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,r]=t;var i;0===n.indexOf("on")?(o.has(n)||o.set(n,[]),"function"==typeof r&&(null==(i=o.get(n))||i.push(r),e[n]=function(){for(var e,t=arguments.length,r=new Array(t),i=0;ie(...r))).find((e=>void 0!==e))})):e[n]=r})),e):e),{})}}function ue(e){void 0===e&&(e=[]);const t=e,n=o.useCallback((t=>ie(t,e,"reference")),t),r=o.useCallback((t=>ie(t,e,"floating")),t),i=o.useCallback((t=>ie(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return o.useMemo((()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:i})),[n,r,i])}function le(e,t){void 0===t&&(t={});const{open:n,floatingId:r}=e,{enabled:i=!0,role:u="dialog"}=t,l=S();return o.useMemo((()=>{const e={id:r,role:u};return i?"tooltip"===u?{reference:{"aria-describedby":n?r:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===u?"dialog":u,"aria-controls":n?r:void 0,..."listbox"===u&&{role:"combobox"},..."menu"===u&&{id:l}},floating:{...e,..."menu"===u&&{"aria-labelledby":l}}}:{}}),[i,u,n,r,l])}function ce(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,u=("number"==typeof i?i:i.close)||0,[l,c]=o.useState(!1),[s,a]=o.useState("unmounted"),f=function(e,t){const[n,r]=o.useState(e);return e&&!n&&r(!0),o.useEffect((()=>{if(!e){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,t]),n}(n,u);return L((()=>{l&&!f&&a("unmounted")}),[l,f]),L((()=>{if(r){if(n){a("initial");const e=requestAnimationFrame((()=>{a("open")}));return()=>{cancelAnimationFrame(e)}}c(!0),a("close")}}),[n,r]),{isMounted:f,status:s}}function se(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let e=0,u=i-1;e=o!=s>=o&&n<=(c-i)*(o-l)/(s-l)+i&&(r=!r)}return r}function ae(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:o=!0}=e;let r,i=!1,u=null,l=null,s=performance.now();const a=e=>{let{x:n,y:a,placement:f,elements:d,onClose:p,nodeId:v,tree:h}=e;return function(e){function g(){clearTimeout(r),p()}if(clearTimeout(r),!d.domReference||!d.floating||null==f||null==n||null==a)return;const{clientX:y,clientY:w}=e,x=[y,w],E=b(e),R="mouseleave"===e.type,L=m(d.floating,E),T=m(d.domReference,E),C=d.domReference.getBoundingClientRect(),P=d.floating.getBoundingClientRect(),k=f.split("-")[0],S=n>P.right-P.width/2,A=a>P.bottom-P.height/2,O=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(x,C),M=P.width>C.width,D=P.height>C.height,_=(M?C:P).left,B=(M?C:P).right,F=(D?C:P).top,I=(D?C:P).bottom;if(L&&(i=!0,!R))return;if(T&&(i=!1),T&&!R)return void(i=!0);if(R&&c(e.relatedTarget)&&m(d.floating,e.relatedTarget))return;if(h&&N(h.nodesRef.current,v).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&a>=C.bottom-1||"bottom"===k&&a<=C.top+1||"left"===k&&n>=C.right-1||"right"===k&&n<=C.left+1)return g();let q=[];switch(k){case"top":q=[[_,C.top+1],[_,P.bottom-1],[B,P.bottom-1],[B,C.top+1]];break;case"bottom":q=[[_,P.top+1],[_,C.bottom-1],[B,C.bottom-1],[B,P.top+1]];break;case"left":q=[[P.right-1,I],[P.right-1,F],[C.left+1,F],[C.left+1,I]];break;case"right":q=[[C.right-1,I],[C.right-1,F],[P.left+1,F],[P.left+1,I]]}if(!se([y,w],q)){if(i&&!O)return g();if(!R&&o){const t=function(e,t){const n=performance.now(),o=n-s;if(null===u||null===l||0===o)return u=e,l=t,s=n,null;const r=e-u,i=t-l,c=Math.sqrt(r*r+i*i);return u=e,l=t,s=n,c/o}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}se([y,w],function(e){let[n,o]=e;switch(k){case"top":return[[M?n+t/2:S?n+4*t:n-4*t,o+t+1],[M?n-t/2:S?n+4*t:n-4*t,o+t+1],[P.left,S||M?P.bottom-t:P.top],[P.right,S?M?P.bottom-t:P.top:P.bottom-t]];case"bottom":return[[M?n+t/2:S?n+4*t:n-4*t,o-t],[M?n-t/2:S?n+4*t:n-4*t,o-t],[P.left,S||M?P.top+t:P.bottom],[P.right,S?M?P.top+t:P.bottom:P.top+t]];case"left":{const e=[n+t+1,D?o+t/2:A?o+4*t:o-4*t],r=[n+t+1,D?o-t/2:A?o+4*t:o-4*t];return[[A||D?P.right-t:P.left,P.top],[A?D?P.right-t:P.left:P.right-t,P.bottom],e,r]}case"right":return[[n-t,D?o+t/2:A?o+4*t:o-4*t],[n-t,D?o-t/2:A?o+4*t:o-4*t],[A||D?P.left+t:P.right,P.top],[A?D?P.left+t:P.right:P.left+t,P.bottom]]}}([n,a]))?!i&&o&&(r=window.setTimeout(g,40)):g()}}};return a.__options={blockPointerEvents:n},a}},22756:(e,t,n)=>{function o(e){return u(e)?(e.nodeName||"").toLowerCase():"#document"}function r(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(u(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function u(e){return e instanceof Node||e instanceof r(e).Node}function l(e){return e instanceof Element||e instanceof r(e).Element}function c(e){return e instanceof HTMLElement||e instanceof r(e).HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof r(e).ShadowRoot)}function a(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=g(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function f(e){return["table","td","th"].includes(o(e))}function d(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function m(e){const t=v(),n=l(e)?g(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function p(e){let t=b(e);for(;c(t)&&!h(t);){if(m(t))return t;if(d(t))return null;t=b(t)}return null}function v(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function h(e){return["html","body","#document"].includes(o(e))}function g(e){return r(e).getComputedStyle(e)}function y(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||s(e)&&e.host||i(e);return s(t)?t.host:t}function w(e){const t=b(e);return h(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&a(t)?t:w(t)}function x(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=w(e),u=i===(null==(o=e.ownerDocument)?void 0:o.body),l=r(i);if(u){const e=E(l);return t.concat(l,l.visualViewport||[],a(i)?i:[],e&&n?x(e):[])}return t.concat(i,x(i,[],n))}function E(e){return Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{$4:()=>b,CP:()=>y,L9:()=>g,Lv:()=>f,Tc:()=>v,Tf:()=>d,ZU:()=>a,_m:()=>E,ep:()=>i,eu:()=>h,gJ:()=>p,mq:()=>o,sQ:()=>m,sb:()=>c,v9:()=>x,vq:()=>l,zk:()=>r})}}]);