PageSourceSearch

https://seekingalpha.com/samw/static/js/c.36376.5daeea9af.js

js seekingalpha.com collected 2026-10-01 07:35:52 UTC 63,562 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[36376],{807315(e,t,n){n.d(t,{ll:()=>$,rD:()=>ee,UU:()=>G,jD:()=>Z,mG:()=>J,cY:()=>K,BN:()=>X,Ej:()=>Q});const r=["top","right","bottom","left"],o=Math.min,i=Math.max,u=Math.round,l=Math.floor,c=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"};function a(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function v(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function h(e){return p(v(e))}function g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const y=["left","right"],b=["right","left"],w=["top","bottom"],x=["bottom","top"];function R(e){const t=f(e);return s[t]+e.slice(t.length)}function E(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function L(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function C(e,t,n){let{reference:r,floating:o}=e;const i=v(t),u=h(t),l=m(u),c=f(t),s="y"===i,a=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let y;switch(c){case"top":y={x:a,y:r.y-o.height};break;case"bottom":y={x:a,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-o.width,y:p};break;default:y={x:r.x,y:r.y}}const b=d(t);return b&&(y[u]+=g*("end"===b?1:-1)*(n&&s?-1:1)),y}async function k(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:u,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=a(t,e),v=E(m),h=l[p?"floating"===d?"reference":"floating":d],g=L(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:f,strategy:c})),y="floating"===d?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:c}):y);return{top:(g.top-x.top+v.top)/w.y,bottom:(x.bottom-g.bottom+v.bottom)/w.y,left:(g.left-x.left+v.left)/w.x,right:(x.right-g.right+v.right)/w.x}}function T(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function S(e){return r.some(t=>e[t]>=0)}function A(e){const t=o(...e.map(e=>e.left)),n=o(...e.map(e=>e.top));return{x:t,y:n,width:i(...e.map(e=>e.right))-t,height:i(...e.map(e=>e.bottom))-n}}const M=new Set(["left","top"]);var P=n(786635);function O(e){const t=(0,P.L9)(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=(0,P.sb)(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,c=u(n)!==i||u(r)!==l;return c&&(n=i,r=l),{width:n,height:r,$:c}}function D(e){return(0,P.vq)(e)?e:e.contextElement}function N(e){const t=D(e);if(!(0,P.sb)(t))return c(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=O(t);let l=(i?u(n.width):n.width)/r,s=(i?u(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const I=c(0);function q(e){const t=(0,P.zk)(e);return(0,P.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:I}function F(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=D(e);let u=c(1);t&&(r?(0,P.vq)(r)&&(u=N(r)):u=N(e));const l=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===(0,P.zk)(e)}(i,n,r)?q(i):c(0);let s=(o.left+l.x)/u.x,a=(o.top+l.y)/u.y,f=o.width/u.x,d=o.height/u.y;if(i&&r){const e=(0,P.zk)(i),t=(0,P.vq)(r)?(0,P.zk)(r):r;let n=e,o=(0,P._m)(n);for(;o&&t!==n;){const e=N(o),t=o.getBoundingClientRect(),r=(0,P.L9)(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,u=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,a*=e.y,f*=e.x,d*=e.y,s+=i,a+=u,n=(0,P.zk)(o),o=(0,P._m)(n)}}return L({width:f,height:d,x:s,y:a})}function W(e,t){const n=(0,P.CP)(e).scrollLeft;return t?t.left+n:F((0,P.ep)(e)).left+n}function B(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-W(e,n),y:n.top+t.scrollTop}}function j(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=(0,P.zk)(e),i=(0,P.ep)(e),u=o.visualVie
1wport;let l=i.clientWidth,c=i.clientHeight,s=0,a=0;if(u){const e=!(0,P.Tc)()||"fixed"===t;r?e||(s=-u.offsetLeft,a=-u.offsetTop):(l=u.width,c=u.height,e&&(s=u.offsetLeft,a=u.offsetTop))}if(W(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),u="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;u<=25&&(l-=u)}return{width:l,height:c,x:s,y:a}}(e,n,t);else if("document"===t)r=function(e){const t=(0,P.CP)(e),n=e.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=i(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let u=-t.scrollLeft+W(e);const l=-t.scrollTop;return"rtl"===(0,P.L9)(n).direction&&(u+=i(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:u,y:l}}((0,P.ep)(e));else if((0,P.vq)(t))r=function(e,t){const n=F(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=N(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=q(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function z(e,t,n){const r=(0,P.sb)(t),o=(0,P.ep)(t),i="fixed"===n,u=F(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=c(0);if((r||!i)&&(("body"!==(0,P.mq)(t)||(0,P.ZU)(o))&&(l=(0,P.CP)(t)),r)){const e=F(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!r&&o&&(s.x=W(o));const a=!o||r||i?c(0):B(o,l);return{x:u.left+l.scrollLeft-s.x-a.x,y:u.top+l.scrollTop-s.y-a.y,width:u.width,height:u.height}}function H(e){return"static"===(0,P.L9)(e).position}function V(e,t){if(!(0,P.sb)(e)||"fixed"===(0,P.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,P.ep)(e)===n&&(n=n.ownerDocument.body),n}function _(e,t){const n=(0,P.zk)(e);if((0,P.Tf)(e))return n;if(!(0,P.sb)(e)){let t=(0,P.$4)(e);for(;t&&!(0,P.eu)(t);){if((0,P.vq)(t)&&!H(t))return t;t=(0,P.$4)(t)}return n}let r=V(e,t);for(;r&&(0,P.Lv)(r)&&H(r);)r=V(r,t);return r&&(0,P.eu)(r)&&H(r)&&!(0,P.sQ)(r)?n:r||(0,P.gJ)(e)||n}const U={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,u=(0,P.ep)(r),l=!!t&&(0,P.Tf)(t.floating);if(r===u||l&&i)return n;let s={scrollLeft:0,scrollTop:0},a=c(1);const f=c(0),d=(0,P.sb)(r);if((d||!i)&&(("body"!==(0,P.mq)(r)||(0,P.ZU)(u))&&(s=(0,P.CP)(r)),d)){const e=F(r);a=N(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}const p=!u||d||i?c(0):B(u,s);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-s.scrollLeft*a.x+f.x+p.x,y:n.y*a.y-s.scrollTop*a.y+f.y+p.y}},getDocumentElement:P.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:u}=e;const l=[..."clippingAncestors"===n?(0,P.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,P.v9)(e,[],!1).filter(e=>(0,P.vq)(e)&&"body"!==(0,P.mq)(e)),o=null;const i="fixed"===(0,P.L9)(e).position;let u=i?(0,P.$4)(e):e;for(;(0,P.vq)(u)&&!(0,P.eu)(u);){const e=(0,P.L9)(u),t=(0,P.sQ)(u),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==u),u=(0,P.$4)(u)}return t.set(e,r),r}(t,this._c):[].concat(n),r],c=j(t,l[0],u);let s=c.top,a=c.right,f=c.bottom,d=c.left;for(let e=1;e<l.length;e++){const n=j(t,l[e],u);s=i(n.top,s),a=o(n.right,a),f=o(n.bottom,f),d=i(n.left,d)}return{width:a-d,height:f-s,x:d,y:s}},getOffsetParent:_,getElementRects:async function(e){const t=this.getOffsetParent||_,n=this.getDimensions,r=await n(e.floating);return{reference:z(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=O(e);return{width:t,height:n}},getScale:N,isElement:P.vq,isRTL:function(e){return"rtl"===(0,P.L9)(e).direction}};function Y(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,d=D(e),p=u||c?[...d?(0,P.v9)(d):[],...t?(0,P.v9)(t):[]]:[];
vendor: 4,153 bytes, line 1
1p.forEach(e=>{u&&e.addEventListener("scroll",n),c&&e.addEventListener("resize",n)});const m=d&&a?function(e,t,n){let r,u=null;const c=(0,P.ep)(e);function s(){var e;clearTimeout(r),null==(e=u)||e.disconnect(),u=null}function a(n,f){void 0===n&&(n=!1),void 0===f&&(f=1),s();const d=e.getBoundingClientRect(),{left:p,top:m,width:v,height:h}=d;if(n||t(),!v||!h)return;const g={rootMargin:-l(m)+"px "+-l(c.clientWidth-(p+v))+"px "+-l(c.clientHeight-(m+h))+"px "+-l(p)+"px",threshold:i(0,o(1,f))||1};let y=!0;function b(t){const n=t[0].intersectionRatio;if(!Y(d,e.getBoundingClientRect()))return a();if(n!==f){if(!y)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{u=new IntersectionObserver(b,{...g,root:c.ownerDocument})}catch(e){u=new IntersectionObserver(b,g)}u.observe(e)}const f=(0,P.zk)(e),d=()=>a(n);return f.addEventListener("resize",d),a(!0),()=>{f.removeEventListener("resize",d),s()}}(d,n,c):null;let v,h=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),d&&!f&&g.observe(d),t&&g.observe(t));let y=f?F(e):null;return f&&function t(){const r=F(e);y&&!Y(y,r)&&n(),y=r,v=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(v)}}const K=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:u,middlewareData:l}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),u=f(n),l=d(n),c="y"===v(n),s=M.has(u)?-1:1,p=i&&c?-1:1,m=a(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&"number"==typeof y&&(g="end"===l?-1*y:y),c?{x:g*p,y:h*s}:{x:h*s,y:g*p}}(t,e);return u===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:u}}}}},X=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:u,platform:l}=t,{mainAxis:c=!0,crossAxis:s=!1,limiter:f={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=a(e,t),m={x:n,y:r},h=await l.detectOverflow(t,d),g=v(u),y=p(g);let b=m[y],w=m[g];const x=(e,t)=>{return n=t+h["y"===e?"top":"left"],r=t,u=t-h["y"===e?"bottom":"right"],i(n,o(r,u));var n,r,u};c&&(b=x(y,b)),s&&(w=x(g,w));const R=f.fn({...t,[y]:b,[g]:w});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[y]:c,[g]:s}}}}}},G=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:u,initialPlacement:l,platform:c,elements:s}=t,{mainAxis:p=!0,crossAxis:E=!0,fallbackPlacements:L,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:T=!0,...S}=a(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const A=f(o),M=v(l),P=f(l)===l,O=await(null==c.isRTL?void 0:c.isRTL(s.floating)),D=L||(P||!T?[R(l)]:function(e){const t=R(e);return[g(e),t,g(t)]}(l)),N="none"!==k;!L&&N&&D.push(...function(e,t,n,r){const o=d(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?b:y:t?y:b;case"left":case"right":return t?w:x;default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(g)))),i}(l,T,k,O));const I=[l,...D],q=await c.detectOverflow(t,S),F=[];let W=(null==(r=i.flip)?void 0:r.overflows)||[];if(p&&F.push(q[A]),E){const e=function(e,t,n){void 0===n&&(n=!1);const r=d(e),o=h(e),i=m(o);let u="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(u=R(u)),[u,R(u)]}(o,u,O);F.push(q[e[0]],q[e[1]])}if(W=[...W,{placement:o,overflows:F}],!F.every(e=>e<=0)){var B,j;const e=((null==(B=i.flip)?void 0:B.index)||0)+1,t=I[e];if(t&&("alignment"!==E||M===v(t)||W.every(e=>v(e.placement)!==M||e.overflows[0]>0)))return{data:{index:e,overflows:W},reset:{placement:t}};let n=null==(j=W.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:j.placement;if(!n)switch(C){case"bestFit":{var z;const e=null==(z=W.filter(e=>{if(N){const t=v(e.placement);return t===M||"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:z[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Q=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:u,elements:l}=t,{apply:c=()=>{},...s}=a(e,t),p=await u.detectOverflow(t,s),m=f(n),h=d(n),g="y"===v(n),{width:y,height:b}=r.floating;let w,x;"top"===m||"bottom"===m?(w=m,x=h===(await(null==u.isRTL?void 0:u.isRTL(l.floating))?"start":"end")?"left":"right"):(x=m,w="end"===h?"top":"bottom");const R=b-p.top-p.bottom,E=y-p.left-p.right,L=o(b-p[w],R),C=o(y-p[x],E),k=t.middlewareData.shift,T=!k;let S=L,A=C;null!=k&&k.enabled.x&&(A=E),null!=k&&k.enabled.y&&(S=R),T&&!h&&(g?A=y-2*i(p.left,p.right):S=b-2*i(p.top,p.bottom)),await c({...t,availableWidth:A,availableHeight:S});const M=await u.getDimensions(l.floating);return y!==M.width||b!==M.height?{reset:{rects:!0}}:{}}}},Z=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=a(e,t);switch(o){case"referenceHidden":{const e=T(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:S(e)}}}case"escaped":{const e=T(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:S(e)}}}default:return{}}}}},J=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:u,platform:l,strategy:c}=t,{padding:s=2,x:d,y:p}=a(e,t),m=Array.from(await(null==l.getClientRects?void 0:l.getClientRects(r.reference))||[]);if(!m.length)return{};const h=function(e){const t=e.slice().sort((e,t)=>e.y-t.y),n=[];let r=null;for(let e=0;e<t.length;e++){const o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>L(A(e)))}(m),g=L(A(m)),y=E(s),b=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&(h[0].left>h[1].right||h[1].left>h[0].right)&&null!=d&&null!=p)return h.find(e=>d>e.left-y.left&&d<e.right+y.right&&p>e.top-y.top&&p<e.bottom+y.bottom)||g;if(h.length>=2){if("y"===v(n)){const e=h[0],t=h[h.length-1],r="top"===f(n),o=e.top,i=t.bottom,u=r?e.left:t.left;return L({x:u,y:o,width:(r?e.right:t.right)-u,height:i-o})}
1const e="left"===f(n),t=i(...h.map(e=>e.right)),r=o(...h.map(e=>e.left)),u=h.filter(n=>e?n.left===r:n.right===t),l=u[0].top,c=u[u.length-1].bottom;return L({x:r,y:l,width:t-r,height:c-l})}return g}},floating:r.floating,strategy:c});return u.reference.x!==b.reference.x||u.reference.y!==b.reference.y||u.reference.width!==b.reference.width||u.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},ee=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...U,...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u}=n,l=u.detectOverflow?u:{...u,detectOverflow:k},c=await(null==u.isRTL?void 0:u.isRTL(t));let s=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:a,y:f}=C(s,r,c),d=r,p=0;const m={};for(let n=0;n<i.length;n++){const v=i[n];if(!v)continue;const{name:h,fn:g}=v,{x:y,y:b,data:w,reset:x}=await g({x:a,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:s,platform:l,elements:{reference:e,floating:t}});a=null!=y?y:a,f=null!=b?b:f,m[h]={...m[h],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await u.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:a,y:f}=C(s,d,c))),n=-1)}return{x:a,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})}},434743(e,t,n){n.d(t,{we:()=>f});var r=n(807315),o=n(296540),i=n(440961),u="undefined"!=typeof document?o.useLayoutEffect:function(){};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,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!l(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];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=o.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:p,floating:m}={},transform:v=!0,whileElementsMounted:h,open:g}=e,[y,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=o.useState(f);l(w,f)||x(f);const[R,E]=o.useState(null),[L,C]=o.useState(null),k=o.useCallback(e=>{e!==M.current&&(M.current=e,E(e))},[]),T=o.useCallback(e=>{e!==P.current&&(P.current=e,C(e))},[]),S=p||R,A=m||L,M=o.useRef(null),P=o.useRef(null),O=o.useRef(y),D=null!=h,N=a(h),I=a(d),q=a(g),F=o.useCallback(()=>{if(!M.current||!P.current)return;const e={placement:t,strategy:n,middleware:w};I.current&&(e.platform=I.current),(0,r.rD)(M.current,P.current,e).then(e=>{const t={...e,isPositioned:!1!==q.current};W.current&&!l(O.current,t)&&(O.current=t,i.flushSync(()=>{b(t)}))})},[w,t,n,I,q]);u(()=>{!1===g&&O.current.isPositioned&&(O.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[g]);const W=o.useRef(!1);u(()=>(W.current=!0,()=>{W.current=!1}),[]),u(()=>{if(S&&(M.current=S),A&&(P.current=A),S&&A){if(N.current)return N.current(S,A,F);F()}},[S,A,F,N,D]);const B=o.useMemo(()=>({reference:M,floating:P,setReference:k,setFloating:T}),[k,T]),j=o.useMemo(()=>({reference:S,floating:A}),[S,A]),z=o.useMemo(()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=s(j.floating,y.x),r=s(j.floating,y.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...c(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,v,j.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:F,refs:B,elements:j,floatingStyles:z}),[y,F,B,j,z])}n.d(t,["BN",0,(e,t)=>{const n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},"Ej",0,(e,t)=>{const n=(0,r.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}},"UU",0,(e,t)=>{const n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},"cY",0,(e,t)=>{const n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},"jD",0,(e,t)=>{const n=(0,r.jD)(e);return{name:n.name,fn:n.fn,options:[e,t]}},"mG",0,(e,t)=>{const n=(0,r.mG)(e);return{name:n.name,fn:n.fn,options:[e,t]}}])},736376(e,t,n){n.d(t,{s3:()=>_e,zR:()=>Ke,XF:()=>qe,iB:()=>ft,kp:()=>Qe,s9:()=>tt,we:()=>nt,iQ:()=>ot,Mk:()=>be,bv:()=>ut,It:()=>ct});var r=n(296540),o=n.t(r,2),i=n(786635),u=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not
1(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),l="undefined"==typeof Element,c=l?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!l&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},a=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):a(e.parentNode))},f=function(e,t,n){if(a(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(u));return t&&c.call(e,u)&&r.unshift(e),r.filter(n)},d=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!a(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),s=l.length?l:i.children,f=d(s,!0,n);
vendor: 4,926 bytes, line 1
1n.flatten?r.push.apply(r,f):r.push({scopeParent:i,candidates:f})}else{c.call(i,u)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var p=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),m=!a(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(p&&m){var v=d(!0===p?i.children:p.children,!0,n);n.flatten?r.push.apply(r,v):r.push({scopeParent:i,candidates:v})}else o.unshift.apply(o,i.children)}}return r},p=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},m=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!p(e)?0:e.tabIndex},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},y=function(e,t){return!(t.disabled||function(e){return h(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var o=getComputedStyle(e).visibility;if("hidden"===o||"collapse"===o)return!0;var i=c.call(e,"details>summary:first-of-type")?e.parentElement:e;if(c.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"==typeof r){for(var u=e;e;){var l=e.parentElement,a=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=u}if(function(e){var t,n,r,o,i=e&&s(e),u=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=u)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(u)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&u;){var c,a,f;l=!(null===(a=u=null===(c=i=s(u))||void 0===c?void 0:c.host)||void 0===a||null===(f=a.ownerDocument)||void 0===f||!f.contains(u))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!c.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||m(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},x=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,u=function(e,t){var n=m(e);return n<0&&t&&!p(e)?0:n}(i,o),l=o?x(e.candidates):i;0===u?o?t.push.apply(t,l):t.push(i):n.push({documentOrder:r,tabIndex:u,item:e,isScope:o,content:l})}),n.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},R=function(e,t){var n;return n=(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):f(e,t.includeContainer,b.bind(null,t)),x(n)},E=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==c.call(e,u)&&b(t,e)};function L(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function C(){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}function k(){return/apple/i.test(navigator.vendor)}function T(){const e=/android/i;return e.test(L())||e.test(C())}function S(){return C().includes("jsdom/")}const A="data-floating-ui-focusable";function M(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function P(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;
1if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function O(e){return"composedPath"in e?e.composedPath()[0]:e.target}function D(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 N(e){return(null==e?void 0:e.ownerDocument)||document}function I(e){return(0,i.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function q(e){return!!e&&"combobox"===e.getAttribute("role")&&I(e)}function F(e){return e?e.hasAttribute(A)?e:e.querySelector("["+A+"]")||e:null}function W(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...W(e,t.id,n)])}function B(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function j(e){e.preventDefault(),e.stopPropagation()}function z(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var H="undefined"!=typeof document?r.useLayoutEffect:function(){};function V(e){const t=r.useRef(e);return H(()=>{t.current=e}),t}const _={...o}.useInsertionEffect||(e=>e());function U(e){const t=r.useRef(()=>{});return _(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const Y=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function $(e,t){const n=R(e,Y()),r=n.length;if(0===r)return;const o=M(N(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function K(e){return $(N(e).body,1)||e}function X(e){return $(N(e).body,-1)||e}function G(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!P(n,r)}function Q(e){R(e,Y()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function Z(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var J=n(474848),ee=n(440961),te=n(434743);const ne="data-floating-ui-focusable",re="active",oe="selected",ie={...o};let ue=!1,le=0;const ce=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+le++,se=ie.useId||function(){const[e,t]=r.useState(()=>ue?ce():void 0);return H(()=>{null==e&&t(ce())},[]),r.useEffect(()=>{ue=!0},[]),e};const ae=r.createContext(null),fe=r.createContext(null),de=()=>{var e;return(null==(e=r.useContext(ae))?void 0:e.id)||null},pe=()=>r.useContext(fe);function me(e){return"data-floating-ui-"+e}function ve(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const he=me("safe-polygon");function ge(e,t,n){if(n&&!z(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function ye(e){return"function"==typeof e?e():e}function be(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:u,events:l,elements:c}=e,{enabled:s=!0,delay:a=0,handleClose:f=null,mouseOnly:d=!1,restMs:p=0,move:m=!0}=t,v=pe(),h=de(),g=V(f),y=V(a),b=V(n),w=V(p),x=r.useRef(),R=r.useRef(-1),E=r.useRef(),L=r.useRef(-1),C=r.useRef(!0),k=r.useRef(!1),T=r.useRef(()=>{}),S=r.useRef(!1),A=U(()=>{var e;const t=null==(e=u.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});r.useEffect(()=>{if(s)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(ve(R),ve(L),C.current=!0,S.current=!1)}},[s,l]),r.useEffect(()=>{if(!s)return;if(!g.current)return;if(!n)return;function e(e){A()&&o(!1,e,"hover")}const t=N(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[c.floating,n,o,s,g,A]);const M=r.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=ge(y.current,"close",x.current);r&&!E.current?(ve(R),R.current=window.setTimeout(()=>
1o(!1,e,n),r)):t&&(ve(R),o(!1,e,n))},[y,o]),O=U(()=>{T.current(),E.current=void 0}),D=U(()=>{if(k.current){const e=N(c.floating).body;e.style.pointerEvents="",e.removeAttribute(he),k.current=!1}}),I=U(()=>!!u.current.openEvent&&["click","mousedown"].includes(u.current.openEvent.type));r.useEffect(()=>{if(s&&(0,i.vq)(c.domReference)){const o=c.domReference,i=c.floating;return n&&o.addEventListener("mouseleave",r),m&&o.addEventListener("mousemove",e,{once:!0}),o.addEventListener("mouseenter",e),o.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",r),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",a)),()=>{n&&o.removeEventListener("mouseleave",r),m&&o.removeEventListener("mousemove",e),o.removeEventListener("mouseenter",e),o.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",r),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",a))}}function e(e){if(ve(R),C.current=!1,d&&!z(x.current)||ye(w.current)>0&&!ge(y.current,"open"))return;const t=ge(y.current,"open",x.current);t?R.current=window.setTimeout(()=>{b.current||o(!0,e,"hover")},t):n||o(!0,e,"hover")}function t(e){if(I())return void D();T.current();const t=N(c.floating);if(ve(L),S.current=!1,g.current&&u.current.floatingContext){n||ve(R),E.current=g.current({...u.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){D(),O(),I()||M(e,!0,"safe-polygon")}});const r=E.current;return t.addEventListener("mousemove",r),void(T.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==x.current||!P(c.floating,e.relatedTarget))&&M(e)}function r(e){I()||u.current.floatingContext&&(null==g.current||g.current({...u.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){D(),O(),I()||M(e)}})(e))}function l(){ve(R)}function a(e){I()||M(e,!1)}},[c,s,e,d,m,M,O,D,o,n,b,v,y,g,u,I,w]),H(()=>{var e;if(s&&n&&null!=(e=g.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&A()){k.current=!0;const e=c.floating;if((0,i.vq)(c.domReference)&&e){var t;const n=N(c.floating).body;n.setAttribute(he,"");const r=c.domReference,o=null==v||null==(t=v.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,n,h,c,v,g,A]),H(()=>{n||(x.current=void 0,S.current=!1,O(),D())},[n,O,D]),r.useEffect(()=>()=>{O(),ve(R),ve(L),D()},[s,c.domReference,O,D]);const q=r.useMemo(()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){C.current||b.current||o(!0,t,"hover")}d&&!z(x.current)||n||0===ye(w.current)||S.current&&e.movementX**2+e.movementY**2<2||(ve(L),"touch"===x.current?r():(S.current=!0,L.current=window.setTimeout(r,ye(w.current))))}}},[d,o,n,b,w]);return r.useMemo(()=>s?{reference:q}:{},[s,q])}let we=0;function xe(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(we);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():we=requestAnimationFrame(i)}function Re(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}const Ee={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Le(e){return"inert"===e?Ee.inert:"aria-hidden"===e?Ee["aria-hidden"]:Ee.none}let Ce=new WeakSet,ke={},Te=0;function Se(e){return e?(0,i.Ng)(e)?e.host:Se(e.parentNode):null}const Ae=(e,t)=>
1t.map(t=>{if(e.contains(t))return t;const n=Se(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Me(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(o=e[0],(null==o?void 0:o.ownerDocument)||document).body;var o;return function(e,t,n,r){const o="data-floating-ui-inert",u=r?"inert":n?"aria-hidden":null,l=Ae(t,e),c=new Set,s=new Set(l),a=[];ke[o]||(ke[o]=new WeakMap);const f=ke[o];return l.forEach(function e(t){t&&!c.has(t)&&(c.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==(0,i.mq)(t))if(c.has(t))e(t);else{const e=u?t.getAttribute(u):null,n=null!==e&&"false"!==e,r=Le(u),i=(r.get(t)||0)+1,l=(f.get(t)||0)+1;r.set(t,i),f.set(t,l),a.push(t),1===i&&n&&Ce.add(t),1===l&&t.setAttribute(o,""),!n&&u&&t.setAttribute(u,"inert"===u?"":"true")}})}(t),c.clear(),Te++,()=>{a.forEach(e=>{const t=Le(u),n=(t.get(e)||0)-1,r=(f.get(e)||0)-1;t.set(e,n),f.set(e,r),n||(!Ce.has(e)&&u&&e.removeAttribute(u),Ce.delete(e)),r||e.removeAttribute(o)}),Te--,Te||(Ee.inert=new WeakMap,Ee["aria-hidden"]=new WeakMap,Ee.none=new WeakMap,Ce=new WeakSet,ke={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Pe={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},Oe=r.forwardRef(function(e,t){const[n,o]=r.useState();H(()=>{k()&&o("button")},[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[me("focus-guard")]:"",style:Pe};return(0,J.jsx)("span",{...e,...i})}),De={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Ne=r.createContext(null),Ie=me("portal");function qe(e){const{children:t,id:n,root:o,preserveTabOrder:u=!0}=e,l=function(e){void 0===e&&(e={});const{id:t,root:n}=e,o=se(),u=Fe(),[l,c]=r.useState(null),s=r.useRef(null);return H(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{s.current=null})},[l]),H(()=>{if(!o)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=o,n.setAttribute(Ie,""),e.appendChild(n),s.current=n,c(n)},[t,o]),H(()=>
1{if(null===n)return;if(!o)return;if(s.current)return;let e=n||(null==u?void 0:u.portalNode);e&&!(0,i.Ll)(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const l=document.createElement("div");l.id=o,l.setAttribute(Ie,""),e=r||e,e.appendChild(l),s.current=l,c(l)},[t,n,o,u]),l}({id:n,root:o}),[c,s]=r.useState(null),a=r.useRef(null),f=r.useRef(null),d=r.useRef(null),p=r.useRef(null),m=null==c?void 0:c.modal,v=null==c?void 0:c.open,h=!!c&&!c.modal&&c.open&&u&&!(!o&&!l);return r.useEffect(()=>{if(l&&u&&!m)return l.addEventListener("focusin",e,!0),l.addEventListener("focusout",e,!0),()=>{l.removeEventListener("focusin",e,!0),l.removeEventListener("focusout",e,!0)};function e(e){l&&G(e)&&("focusin"===e.type?Z:Q)(l)}},[l,u,m]),r.useEffect(()=>{l&&(v||Z(l))},[v,l]),(0,J.jsxs)(Ne.Provider,{value:r.useMemo(()=>({preserveTabOrder:u,beforeOutsideRef:a,afterOutsideRef:f,beforeInsideRef:d,afterInsideRef:p,portalNode:l,setFocusManagerState:s}),[u,l]),children:[h&&l&&(0,J.jsx)(Oe,{"data-type":"outside",ref:a,onFocus:e=>{if(G(e,l)){var t;null==(t=d.current)||t.focus()}else{const e=X(c?c.domReference:null);null==e||e.focus()}}}),h&&l&&(0,J.jsx)("span",{"aria-owns":l.id,style:De}),l&&ee.createPortal(t,l),h&&l&&(0,J.jsx)(Oe,{"data-type":"outside",ref:f,onFocus:e=>{if(G(e,l)){var t;null==(t=p.current)||t.focus()}else{const t=K(c?c.domReference:null);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Fe=()=>r.useContext(Ne);function We(e){return r.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let Be=[];function je(){Be=Be.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function ze(){je();const e=Be[Be.length-1];return null==e?void 0:e.deref()}function He(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=Y(),o=function(e,t){return(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):f(e,t.includeContainer,y.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return E(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),u=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==u&&e.setAttribute("tabindex","0"):("-1"!==u||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const Ve=r.forwardRef(function(e,t){return(0,J.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:Pe})});function _e(e){const{context:t,children:n,disabled:o=!1,order:u=["content"],guards:l=!0,initialFocus:c=0,returnFocus:s=!0,restoreFocus:a=!1,modal:f=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:p=!0,outsideElementsInert:m=!1,getInsideElements:v=()=>[]}=e,{open:h,onOpenChange:g,events:y,dataRef:b,elements:{domReference:w,floating:x}}=t,L=U(()=>{var e;return null==(e=b.current.floatingContext)?void 0:e.nodeId}),C=U(v),k="number"==typeof c&&c<0,A=q(w)&&k,D="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,I=!D||l,z=!I||D&&m,_=V(u),$=V(c),Q=V(s),Z=pe(),ee=Fe(),te=r.useRef(null),ne=r.useRef(null),re=r.useRef(!1),oe=r.useRef(!1),ie=r.useRef(-1),ue=r.useRef(-1),le=null!=ee,ce=F(x),se=U(function(e){return void 0===e&&(e=ce),e?R(e,Y()):[]}),ae=U(e=>{const t=se(e);return _.current.map(e=>w&&"reference"===e?w:ce&&"floating"===e?ce:t).filter(Boolean).flat()});r.useEffect(()=>{if(o)return;if(!f)return;function e(e){if("Tab"===e.key){P(ce,M(N(ce)))&&0===se().length&&!A&&j(e);const t=ae(),n=O(e);"reference"===_.current[0]&&n===w&&(j(e),e.shiftKey?xe(t[t.length-1]):xe(t[1])),"floating"===_.current[1]&&n===ce&&e.shiftKey&&(j(e),xe(t[0]))}}const t=N(ce);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[o,w,ce,f,_,A,se,ae]),r.useEffect(()=>{if(!o&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=O(e),n=se().indexOf(t);-1!==n&&(ie.current=n)}},[o,x,se]),r.useEffect(()=>{if(o)return;if(!p)return;function e(){oe.current=!0,setTimeout(()=>{oe.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=O(e);queueMicrotask(()=>{const o=L(),u=!(P(w,t)||P(x,t)||P(t,x)||P(null==ee?void 0:ee.portalNode,t)||null!=t&&t.hasAttribute(me("focus-guard"))||Z&&(W(Z.nodesRef.current,o).find(e=>{var n,r;return P(null==(n=e.context)?void 0:n.elements.floating,t)||P(null==(r=e.context)?void 0:r.elements.domReference,t)})||B(Z.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,F(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===w&&ce&&He(ce,_),a&&n!==w&&(null==r||!r.isConnected)&&M(N(ce))===N(ce).body){(0,i.sb)(ce)&&ce.focus();const e=ie.current,t=se(),n=t[e]||t[t.length-1]||ce;(0,i.sb)(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:!A&&f||!t||!u||oe.current||t===ze()||(re.current=!0,g(!1,e,"focus-out"))})}const n=Boolean(!Z&&ee);function r(){ve(ue),b.current.insideReactTree=!0,ue.current=window.setTimeout(()=>{b.current.insideReactTree=!1})}return x&&(0,i.sb)(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),x.addEventListener("focusout",t),n&&x.addEventListener("focusout",r,!0),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t),n&&x.removeEventListener("focusout",r,!0)}):void 0},[o,w,x,ce,f,Z,ee,g,p,a,se,A,L,_,b]);const fe=r.useRef(null),de=r.useRef(null),he=We([fe,null==ee?void 0:ee.beforeInsideRef]),ge=We([de,null==ee?void 0:ee.afterInsideRef]);function ye(e){return!o&&d&&f?(0,J.jsx)(Ve,{ref:"start"===e?te:ne,onClick:e=>g(!1,e.nativeEvent),children:"string"==typeof d?d:"Dismiss"}):null}r.useEffect(()=>{var e,t;if(o)return;if(!x)return;const n=Array.from((null==ee||null==(e=ee.portalNode)?void 0:e.querySelectorAll("["+me("portal")+"]"))||[]),r=null==(t=(Z?B(Z.nodesRef.current,L()):[]).find(e=>{var t;return q((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,i=[x,r,...n,...C(),te.current,ne.current,fe.current,de.current,null==ee?void 0:ee.beforeOutsideRef.current,null==ee?void 0:ee.afterOutsideRef.current,_.current.includes("reference")||A?w:null].filter(e=>null!=e),u=f||A?Me(i,!z,z):Me(i);return()=>{u()}},[o,w,x,f,_,ee,A,I,z,Z,L,C]),H(()=>
1{if(o||!(0,i.sb)(ce))return;const e=M(N(ce));queueMicrotask(()=>{const t=ae(ce),n=$.current,r=("number"==typeof n?t[n]:n.current)||ce,o=P(ce,e);k||o||!h||xe(r,{preventScroll:r===ce})})},[o,h,ce,k,ae,$]),H(()=>{if(o||!ce)return;const e=N(ce);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(re.current=!0),"outside-press"===t)if(r)re.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(T()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!S()&&(!T()&&0===e.width&&0===e.height||T()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}(n))re.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),re.current=!e}}t=M(e),je(),t&&"body"!==(0,i.mq)(t)&&(Be.push(new WeakRef(t)),Be.length>20&&(Be=Be.slice(-20))),y.on("openchange",n);const r=e.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,Pe),le&&w&&w.insertAdjacentElement("afterend",r),()=>{y.off("openchange",n);const t=M(e),o=P(x,t)||Z&&W(Z.nodesRef.current,L(),!1).some(e=>{var n;return P(null==(n=e.context)?void 0:n.elements.floating,t)}),u=function(){if("boolean"==typeof Q.current){const e=w||ze();return e&&e.isConnected?e:r}return Q.current.current||r}();queueMicrotask(()=>{const n=function(e){const t=Y();return E(e,t)?e:R(e,t)[0]||e}(u);Q.current&&!re.current&&(0,i.sb)(n)&&(n===t||t===e.body||o)&&n.focus({preventScroll:!0}),r.remove()})}},[o,x,ce,Q,b,y,Z,le,w,L]),r.useEffect(()=>(queueMicrotask(()=>{re.current=!1}),()=>{queueMicrotask(je)}),[o]),H(()=>
1{if(!o&&ee)return ee.setFocusManagerState({modal:f,closeOnFocusOut:p,open:h,onOpenChange:g,domReference:w}),()=>{ee.setFocusManagerState(null)}},[o,ee,f,h,g,p,w]),H(()=>{o||ce&&He(ce,_)},[o,ce,_]);const be=!o&&I&&(!f||!A)&&(le||f);return(0,J.jsxs)(J.Fragment,{children:[be&&(0,J.jsx)(Oe,{"data-type":"inside",ref:he,onFocus:e=>{if(f){const e=ae();xe("reference"===u[0]?e[0]:e[e.length-1])}else if(null!=ee&&ee.preserveTabOrder&&ee.portalNode)if(re.current=!1,G(e,ee.portalNode)){const e=K(w);null==e||e.focus()}else{var t;null==(t=ee.beforeOutsideRef.current)||t.focus()}}}),!A&&ye("start"),n,ye("end"),be&&(0,J.jsx)(Oe,{"data-type":"inside",ref:ge,onFocus:e=>{if(f)xe(ae()[0]);else if(null!=ee&&ee.preserveTabOrder&&ee.portalNode)if(p&&(re.current=!0),G(e,ee.portalNode)){const e=X(w);null==e||e.focus()}else{var t;null==(t=ee.afterOutsideRef.current)||t.focus()}}})]})}let Ue=0;const Ye="--floating-ui-scrollbar-width";let $e=()=>{};const Ke=r.forwardRef(function(e,t){const{lockScroll:n=!1,...r}=e;return H(()=>{if(n)return Ue++,1===Ue&&($e=function(){const e=L(),t=/iP(hone|ad|od)|iOS/.test(e)||"MacIntel"===e&&navigator.maxTouchPoints>1,n=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,i=n.left?parseFloat(n.left):window.scrollX,u=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(Ye,o+"px"),o&&(n[r]=o+"px"),t){var l,c;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,t=(null==(c=window.visualViewport)?void 0:c.offsetTop)||0;Object.assign(n,{position:"fixed",top:-(u-Math.floor(t))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[r]:""}),n.removeProperty(Ye),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(i,u))}}()),()=>{Ue--,0===Ue&&$e()}},[n]),(0,J.jsx)("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})});function Xe(e){return(0,i.sb)(e.target)&&"BUTTON"===e.target.tagName}function Ge(e){return I(e)}function Qe(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:u,elements:{domReference:l}}=e,{enabled:c=!0,event:s="click",toggle:a=!0,ignoreMouse:f=!1,keyboardHandlers:d=!0,stickIfOpen:p=!0}=t,m=r.useRef(),v=r.useRef(!1),h=r.useMemo(()=>({onPointerDown(e){m.current=e.pointerType},onMouseDown(e){const t=m.current;0===e.button&&"click"!==s&&(z(t,!0)&&f||(!n||!a||u.current.openEvent&&p&&"mousedown"!==u.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){const t=m.current;"mousedown"===s&&m.current?m.current=void 0:z(t,!0)&&f||(!n||!a||u.current.openEvent&&p&&"click"!==u.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){m.current=void 0,e.defaultPrevented||!d||Xe(e)||(" "!==e.key||Ge(l)||(e.preventDefault(),v.current=!0),function(e){return(0,i.sb)(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&o(!n||!a,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Xe(e)||Ge(l)||" "===e.key&&v.current&&(v.current=!1,o(!n||!a,e.nativeEvent,"click"))}}),[u,l,s,f,d,o,n,p,a]);return r.useMemo(()=>c?{reference:h}:{},[c,h])}const Ze={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Je={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},et=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function tt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,elements:u,dataRef:l}=e,{enabled:c=!0,escapeKey:s=!0,outsidePress:a=!0,outsidePressEvent:f="pointerdown",referencePress:d=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:v,capture:h}=t,g=pe(),y=U("function"==typeof a?a:()=>!1),b="function"==typeof a?y:a,w=r.useRef(!1),{escapeKey:x,outsidePress:R}=et(v),{escapeKey:E,outsidePress:L}=et(h),C=r.useRef(!1),k=U(e=>{var t;if(!n||!c||!s||"Escape"!==e.key)return;if(C.current)return;const r=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=g?W(g.nodesRef.current,r):[];if(!x&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),T=U(e=>{var t;const n=()=>{var t;k(e),null==(t=O(e))||t.removeEventListener("keydown",n)};null==(t=O(e))||t.addEventListener("keydown",n)}),S=U(e=>{var t;const n=l.current.insideReactTree;l.current.insideReactTree=!1;const r=w.current;if(w.current=!1,"click"===f&&r)return;if(n)return;if("function"==typeof b&&!b(e))return;const c=O(e),s="["+me("inert")+"]",a=N(u.floating).querySelectorAll(s);let d=(0,i.vq)(c)?c:null;for(;d&&!(0,i.eu)(d);){const e=(0,i.$4)(d);if((0,i.eu)(e)||!(0,i.vq)(e))break;d=e}if(a.length&&(0,i.vq)(c)&&!c.matches("html,body")&&!P(c,u.floating)&&Array.from(a).every(e=>!P(d,e)))return;if((0,i.sb)(c)&&I){const t=(0,i.eu)(c),n=(0,i.L9)(c),r=/auto|scroll/,o=t||r.test(n.overflowX),u=t||r.test(n.overflowY),l=o&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,s=u&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,a="rtl"===n.direction,f=s&&(a?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),d=l&&e.offsetY>c.clientHeight;if(f||d)return}const p=null==(t=l.current.floatingContext)?void 0:t.nodeId,m=g&&W(g.nodesRef.current,p).some(t=>{var n;return D(e,null==(n=t.context)?void 0:n.elements.floating)});if(D(e,u.floating)||D(e,u.domReference)||m)return;const v=g?W(g.nodesRef.current,p):[];if(v.length>0){let e=!0;if(v.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}o(!1,e,"outside-press")}),A=U(e=>{var t;const n=()=>{var t;S(e),null==(t=O(e))||t.removeEventListener(f,n)};null==(t=O(e))||t.addEventListener(f,n)});r.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=x,l.current.__outsidePressBubbles=R;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),C.current=!0}function a(){e=window.setTimeout(()=>{C.current=!1},(0,i.Tc)()?5:0)}const d=N(u.floating);
1s&&(d.addEventListener("keydown",E?T:k,E),d.addEventListener("compositionstart",r),d.addEventListener("compositionend",a)),b&&d.addEventListener(f,L?A:S,L);let p=[];return m&&((0,i.vq)(u.domReference)&&(p=(0,i.v9)(u.domReference)),(0,i.vq)(u.floating)&&(p=p.concat((0,i.v9)(u.floating))),!(0,i.vq)(u.reference)&&u.reference&&u.reference.contextElement&&(p=p.concat((0,i.v9)(u.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t)}),()=>{s&&(d.removeEventListener("keydown",E?T:k,E),d.removeEventListener("compositionstart",r),d.removeEventListener("compositionend",a)),b&&d.removeEventListener(f,L?A:S,L),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,u,s,b,f,n,o,m,c,x,R,k,E,T,S,L,A]),r.useEffect(()=>{l.current.insideReactTree=!1},[l,b,f]);const M=r.useMemo(()=>({onKeyDown:k,...d&&{[Ze[p]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}}),[k,o,d,p]),I=r.useMemo(()=>{function e(e){0===e.button&&(w.current=!0)}return{onKeyDown:k,onMouseDown:e,onMouseUp:e,[Je[f]]:()=>{l.current.insideReactTree=!0}}},[k,f,l]);return r.useMemo(()=>c?{reference:M,floating:I}:{},[c,M,I])}function nt(e){var t,n;let{elements:o,...u}=void 0===e?{}:e;const{nodeId:l}=u,c=function(e){const{open:t=!1,onOpenChange:n,elements:o}=e,i=se(),u=r.useRef({}),[l]=r.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),c=null!=de(),[s,a]=r.useState(o.reference),f=U((e,t,r)=>{u.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)}),d=r.useMemo(()=>({setPositionReference:a}),[]),p=r.useMemo(()=>({reference:s||o.reference||null,floating:o.floating||null,domReference:o.reference}),[s,o.reference,o.floating]);return r.useMemo(()=>({dataRef:u,open:t,onOpenChange:f,elements:p,events:l,floatingId:i,refs:d}),[t,f,p,l,i,d])}({...u,elements:{reference:null!=(t=null==o?void 0:o.reference)?t:null,floating:null!=(n=null==o?void 0:o.floating)?n:null}}),s=u.rootContext||c,a=s.elements,[f,d]=r.useState(null),[p,m]=r.useState(null),v=(null==a?void 0:a.domReference)||f,h=r.useRef(null),g=pe();H(()=>{v&&(h.current=v)},[v]);const y=(0,te.we)({...u,elements:{...a,...p&&{reference:p}}}),b=r.useCallback(e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;m(t),y.refs.setReference(t)},[y.refs]),w=r.useCallback(e=>{((0,i.vq)(e)||null===e)&&(h.current=e,d(e)),((0,i.vq)(y.refs.reference.current)||null===y.refs.reference.current||null!==e&&!(0,i.vq)(e))&&y.refs.setReference(e)},[y.refs]),x=r.useMemo(()=>({...y.refs,setReference:w,setPositionReference:b,domReference:h}),[y.refs,w,b]),R=r.useMemo(()=>({...y.elements,domReference:v}),[y.elements,v]),E=r.useMemo(()=>({...y,...s,refs:x,elements:R,nodeId:l}),[y,x,R,l,s]);return H(()=>{s.dataRef.current.floatingContext=E;const e=null==g?void 0:g.nodesRef.current.find(e=>e.id===l);e&&(e.context=E)}),r.useMemo(()=>({...y,context:E,refs:x,elements:R}),[y,x,R,E])}function rt(){return L().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&k()}function ot(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,events:u,dataRef:l,elements:c}=e,{enabled:s=!0,visibleOnly:a=!0}=t,f=r.useRef(!1),d=r.useRef(-1),p=r.useRef(!0);r.useEffect(()=>{if(!s)return;const e=(0,i.zk)(c.domReference);function t(){!n&&(0,i.sb)(c.domReference)&&c.domReference===M(N(c.domReference))&&(f.current=!0)}function r(){p.current=!0}function o(){p.current=!1}return e.addEventListener("blur",t),rt()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),rt()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[c.domReference,n,s]),r.useEffect(()=>{if(s)return u.on("openchange",e),()=>{u.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(f.current=!0)}},[u,s]),r.useEffect(()=>()=>{ve(d)},[]);const m=r.useMemo(()=>({onMouseLeave(){f.current=!1},onFocus(e){if(f.current)return;const t=O(e.nativeEvent);
1if(a&&(0,i.vq)(t))if(rt()&&!e.relatedTarget){if(!p.current&&!I(t))return}else if(!function(e){if(!e||S())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;o(!0,e.nativeEvent,"focus")},onBlur(e){f.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=(0,i.vq)(t)&&t.hasAttribute(me("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout(()=>{var e;const i=M(c.domReference?c.domReference.ownerDocument:document);(t||i!==c.domReference)&&(P(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,i)||P(c.domReference,i)||r||o(!1,n,"focus"))})}}),[l,c.domReference,o,a]);return r.useMemo(()=>s?{reference:m}:{},[s,m])}function it(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[re]:t,[oe]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[ne]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var u;o&&[re,oe].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(u=r.get(n))||u.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function ut(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),o=e.map(e=>null==e?void 0:e.item),i=r.useCallback(t=>it(t,e,"reference"),t),u=r.useCallback(t=>it(t,e,"floating"),n),l=r.useCallback(t=>it(t,e,"item"),o);return r.useMemo(()=>({getReferenceProps:i,getFloatingProps:u,getItemProps:l}),[i,u,l])}const lt=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ct(e,t){var n,o;void 0===t&&(t={});const{open:i,elements:u,floatingId:l}=e,{enabled:c=!0,role:s="dialog"}=t,a=se(),f=(null==(n=u.domReference)?void 0:n.id)||a,d=r.useMemo(()=>{var e;return(null==(e=F(u.floating))?void 0:e.id)||l},[u.floating,l]),p=null!=(o=lt.get(s))?o:s,m=null!=de(),v=r.useMemo(()=>"tooltip"===p||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?d:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":i?d:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:f},..."menu"===p&&m&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[p,d,m,i,f,s]),h=r.useMemo(()=>{const e={id:d,...p&&{role:p}};return"tooltip"===p||"label"===s?e:{...e,..."menu"===p&&{"aria-labelledby":f}}},[p,d,f,s]),g=r.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,s]);return r.useMemo(()=>c?{reference:v,floating:h,item:g}:{},[c,v,h,g])}function st(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...st(e,t.id,n)])}function at(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,u=i-1;e<i;u=e++){const[i,l]=t[e]||[0,0],[c,s]=t[u]||[0,0];l>=r!=s>=r&&n<=(c-i)*(r-l)/(s-l)+i&&(o=!o)}return o}function ft(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o={current:-1};let u=!1,l=null,c=null,s="undefined"!=typeof performance?performance.now():0;const a=e=>{let{x:n,y:a,placement:f,elements:d,onClose:p,nodeId:m,tree:v}=e;return function(e){function h(){ve(o),p()}if(ve(o),!d.domReference||!d.floating||null==f||null==n||null==a)return;const{clientX:g,clientY:y}=e,b=[g,y],w=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e),x="mouseleave"===e.type,R=Re(d.floating,w),E=Re(d.domReference,w),L=d.domReference.getBoundingClientRect(),C=d.floating.getBoundingClientRect(),k=f.split("-")[0],T=n>C.right-C.width/2,S=a>C.bottom-C.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,L),M=C.width>L.width,P=C.height>L.height,O=(M?L:C).left,D=(M?L:C).right,N=(P?L:C).top,I=(P?L:C).bottom;if(R&&(u=!0,!x))return;if(E&&(u=!1),E&&!x)return void(u=!0);if(x&&(0,i.vq)(e.relatedTarget)&&Re(d.floating,e.relatedTarget))return;if(v&&st(v.nodesRef.current,m).length)return;if("top"===k&&a>=L.bottom-1||"bottom"===k&&a<=L.top+1||"left"===k&&n>=L.right-1||"right"===k&&n<=L.left+1)return h();let q=[];switch(k){case"top":q=[[O,L.top+1],[O,C.bottom-1],[D,C.bottom-1],[D,L.top+1]];break;case"bottom":q=[[O,C.top+1],[O,L.bottom-1],[D,L.bottom-1],[D,C.top+1]];break;case"left":q=[[C.right-1,I],[C.right-1,N],[L.left+1,N],[L.left+1,I]];break;case"right":q=[[L.right-1,I],[L.right-1,N],[C.left+1,N],[C.left+1,I]]}if(!at([g,y],q)){if(u&&!A)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-s;if(null===l||null===c||0===r)return l=e,c=t,s=n,null;const o=e-l,i=t-c,u=Math.sqrt(o*o+i*i);return l=e,c=t,s=n,u/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}at([g,y],function(e){let[n,r]=e;switch(k){case"top":return[[M?n+t/2:T?n+4*t:n-4*t,r+t+1],[M?n-t/2:T?n+4*t:n-4*t,r+t+1],[C.left,T||M?C.bottom-t:C.top],[C.right,T?M?C.bottom-t:C.top:C.bottom-t]];case"bottom":return[[M?n+t/2:T?n+4*t:n-4*t,r-t],[M?n-t/2:T?n+4*t:n-4*t,r-t],[C.left,T||M?C.top+t:C.bottom],[C.right,T?M?C.top+t:C.bottom:C.top+t]];case"left":{const e=[n+t+1,P?r+t/2:S?r+4*t:r-4*t],o=[n+t+1,P?r-t/2:S?r+4*t:r-4*t];return[[S||P?C.right-t:C.left,C.top],[S?P?C.right-t:C.left:C.right-t,C.bottom],e,o]}case"right":return[[n-t,P?r+t/2:S?r+4*t:r-4*t],[n-t,P?r-t/2:S?r+4*t:r-4*t],[S||P?C.left+t:C.right,C.top],[S?P?C.left+t:C.right:C.left+t,C.bottom]]}}([n,a]))?!u&&r&&(o.current=window.setTimeout(h,40)):h()}}};return a.__options={blockPointerEvents:n},a}},786635(e,t,n){function r(){return"undefined"!=typeof window}function o(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function u(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function c(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function a(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function f(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function d(e){return/^(table|td|th)$/.test(o(e))}function p(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n.d(t,{$4:()=>L,CP:()=>E,L9:()=>R,Ll:()=>l,Lv:()=>d,Ng:()=>a,Tc:()=>w,Tf:()=>p,ZU:()=>f,_m:()=>T,ep:()=>u,eu:()=>x,gJ:()=>b,mq:()=>o,sQ:()=>y,sb:()=>s,v9:()=>k,vq:()=>c,zk:()=>i});const m=/transform|translate|scale|rotate|perspective|filter/,v=/paint|layout|strict|content/,h=e=>!!e&&"none"!==e;let g;function y(e){const t=c(e)?R(e):e;return h(t.transform)||h(t.translate)||h(t.scale)||h(t.rotate)||h(t.perspective)||!w()&&(h(t.backdropFilter)||h(t.filter))||m.test(t.willChange||"")||v.test(t.contain||"")}function b(e){let t=L(e);for(;s(t)&&!x(t);){if(y(t))return t;if(p(t))return null;t=L(t)}return null}function w(){return null==g&&(g="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),g}function x(e){return/^(html|body|#document)$/.test(o(e))}function R(e){return i(e).getComputedStyle(e)}function E(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function L(e){if("html"===o(e))return e;const t=e.assignedSlot||e.parentNode||a(e)&&e.host||u(e);return a(t)?t.host:t}function C(e){const t=L(e);return x(t)?(e.ownerDocument||e).body:s(t)&&f(t)?t:C(t)}
vendor: 329 bytes, line 1
1function k(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=C(e),u=o===(null==(r=e.ownerDocument)?void 0:r.body),l=i(o);if(u){const e=T(l);return t.concat(l,l.visualViewport||[],f(o)?o:[],e&&n?k(e):[])}return t.concat(o,k(o,[],n))}function T(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}}}]);

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.