PageSourceSearch

https://swetrix.com/assets/floating-ui.react-dom-Bey0MX-n.js

js swetrix.com collected 2026-09-24 19:00:13 UTC 21,856 bytes, 1 lines download raw bytes

vendor: 13,975 bytes, line 1
1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{t as n}from"./react-dom-2o2phaJG.js";function r(){return typeof window<`u`}function i(e){return s(e)?(e.nodeName||``).toLowerCase():`#document`}function a(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function o(e){return((s(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function s(e){return r()?e instanceof Node||e instanceof a(e).Node:!1}function c(e){return r()?e instanceof Element||e instanceof a(e).Element:!1}function l(e){return r()?e instanceof HTMLElement||e instanceof a(e).HTMLElement:!1}function u(e){return!r()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof a(e).ShadowRoot}var d=new Set([`inline`,`contents`]);function f(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=T(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!d.has(i)}var p=new Set([`table`,`td`,`th`]);function m(e){return p.has(i(e))}var h=[`:popover-open`,`:modal`];function g(e){return h.some(t=>{try{return e.matches(t)}catch{return!1}})}var _=[`transform`,`translate`,`scale`,`rotate`,`perspective`],v=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],y=[`paint`,`layout`,`strict`,`content`];function b(e){let t=S(),n=c(e)?T(e):e;return _.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||v.some(e=>(n.willChange||``).includes(e))||y.some(e=>(n.contain||``).includes(e))}function x(e){let t=D(e);for(;l(t)&&!w(t);){if(b(t))return t;if(g(t))return null;t=D(t)}return null}function S(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var C=new Set([`html`,`body`,`#document`]);function w(e){return C.has(i(e))}function T(e){return a(e).getComputedStyle(e)}function E(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function D(e){if(i(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||o(e);return u(t)?t.host:t}function O(e){let t=D(e);return w(t)?e.ownerDocument?e.ownerDocument.body:e.body:l(t)&&f(t)?t:O(t)}function k(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=O(e),i=r===e.ownerDocument?.body,o=a(r);if(i){let e=A(o);return t.concat(o,o.visualViewport||[],f(r)?r:[],e&&n?k(e):[])}return t.concat(r,k(r,[],n))}function A(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var j=[`top`,`right`,`bottom`,`left`],M=Math.min,N=Math.max,P=Math.round,F=Math.floor,I=e=>({x:e,y:e}),ee={left:`right`,right:`left`,bottom:`top`,top:`bottom`},te={start:`end`,end:`start`};function L(e,t,n){return N(e,M(t,n))}function R(e,t){return typeof e==`function`?e(t):e}function z(e){return e.split(`-`)[0]}function B(e){return e.split(`-`)[1]}function V(e){return e===`x`?`y`:`x`}function H(e){return e===`y`?`height`:`width`}var ne=new Set([`top`,`bottom`]);function U(e){return ne.has(z(e))?`y`:`x`}function W(e){return V(U(e))}function re(e,t,n){n===void 0&&(n=!1);let r=B(e),i=W(e),a=H(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=G(o)),[o,G(o)]}function ie(e){let t=G(e);return[ae(e),t,ae(t)]}function ae(e){return e.replace(/start|end/g,e=>te[e])}var oe=[`left`,`right`],se=[`right`,`left`],ce=[`top`,`bottom`],le=[`bottom`,`top`];function ue(e,t,n){switch(e){case`top`:case`bottom`:return n?t?se:oe:t?oe:se;case`left`:case`right`:return t?ce:le;default:return[]}}function de(e,t,n,r){let i=B(e),a=ue(z(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ae)))),a}function G(e){return e.replace(/left|right|bottom|top/g,e=>ee[e])}function fe(e){return{top:0,right:0,bottom:0,left:0,...e}}function pe(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:fe(e)}function K(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function me(e,t,n){let{reference:r,floating:i}=e,a=U(t),o=W(t),s=H(o),c=z(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(B(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}var he=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=me(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=me(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function q(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=R(t,e),p=pe(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=K(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=K(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var ge=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=R(e,t)||{};if(l==null)return{};let d=pe(u),f={x:n,y:r},p=W(i),m=H(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=M(d[_],T),D=M(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=L(O,A,k),N=!c.arrow&&B(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,P=N?A<O?A-O:A-k:0;return{[p]:f[p]+P,data:{[p]:j,centerOffset:A-j-P,...N&&{alignmentOffset:P}},reset:N}}}),_e=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=R(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=z(r),_=U(o),v=z(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[G(o)]:ie(o)),x=p!==`none`;!d&&x&&b.push(...de(o,m,p,y));let S=[o,...b],C=await q(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=re(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===U(t)||T.every(e=>U(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=U(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function ve(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ye(e){return j.some(t=>e[t]>=0)}var be=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=R(e,t);switch(r){case`referenceHidden`:{let e=ve(await q(t,{...i,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ye(e)}}}case`escaped`:{let e=ve(await q(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ye(e)}}}default:return{}}}}},xe=new Set([`left`,`top`]);async function Se(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=z(n),s=B(n),c=U(n)===`y`,l=xe.has(o)?-1:1,u=a&&c?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ce=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Se(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},we=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=R(e,t),l={x:n,y:r},u=await q(t,c),d=U(z(i)),f=V(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=L(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=L(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},Te=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=R(e,t),u={x:n,y:r},d=U(i),f=V(d),p=u[f],m=u[d],h=R(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=xe.has(z(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ee=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=R(e,t),u=await q(t,l),d=z(i),f=B(i),p=U(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=M(h-u[g],v),x=M(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=N(u.left,0),t=N(u.right,0),n=N(u.top,0),r=N(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:N(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:N(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function De(e){let t=T(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=l(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=P(n)!==a||P(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Oe(e){return c(e)?e:e.contextElement}function J(e){let t=Oe(e);if(!l(t))return I(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=De(t),o=(a?P(n.width):n.width)/r,s=(a?P(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var ke=I(0);function Ae(e){let t=a(e);return!S()||!t.visualViewport?ke:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function je(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==a(e)?!1:t}function Y(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),o=Oe(e),s=I(1);t&&(r?c(r)&&(s=J(r)):s=J(e));let l=je(o,n,r)?Ae(o):I(0),u=(i.left+l.x)/s.x,d=(i.top+l.y)/s.y,f=i.width/s.x,p=i.height/s.y;if(o){let e=a(o),t=r&&c(r)?a(r):r,n=e,i=A(n);for(;i&&r&&t!==n;){let e=J(i),t=i.getBoundingClientRect(),r=T(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,p*=e.y,u+=o,d+=s,n=a(i),i=A(n)}}return K({width:f,height:p,x:u,y:d})}function X(e,t){let n=E(e).scrollLeft;return t?t.left+n:Y(o(e)).left+n}function Me(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-X(e,n),y:n.top+t.scrollTop}}function Ne(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e,s=a===`fixed`,c=o(r),u=t?g(t.floating):!1;if(r===c||u&&s)return n;let d={scrollLeft:0,scrollTop:0},p=I(1),m=I(0),h=l(r);if((h||!h&&!s)&&((i(r)!==`body`||f(c))&&(d=E(r)),l(r))){let e=Y(r);p=J(r),m.x=e.x+r.clientLeft,m.y=e.y+r.clientTop}let _=c&&!h&&!s?Me(c,d):I(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-d.scrollLeft*p.x+m.x+_.x,y:n.y*p.y-d.scrollTop*p.y+m.y+_.y}}function Pe(e){return Array.from(e.getClientRects())}function Fe(e){let t=o(e),n=E(e),r=e.ownerDocument.body,i=N(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=N(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+X(e),c=-n.scrollTop;return T(r).direction===`rtl`&&(s+=N(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:c}}var Ie=25;
vendor: 4,471 bytes, line 1
1function Le(e,t){let n=a(e),r=o(e),i=n.visualViewport,s=r.clientWidth,c=r.clientHeight,l=0,u=0;if(i){s=i.width,c=i.height;let e=S();(!e||e&&t===`fixed`)&&(l=i.offsetLeft,u=i.offsetTop)}let d=X(r);if(d<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=Ie&&(s-=a)}else d<=Ie&&(s+=d);return{width:s,height:c,x:l,y:u}}var Re=new Set([`absolute`,`fixed`]);function ze(e,t){let n=Y(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=l(e)?J(e):I(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Be(e,t,n){let r;if(t===`viewport`)r=Le(e,n);else if(t===`document`)r=Fe(o(e));else if(c(t))r=ze(t,n);else{let n=Ae(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return K(r)}function Ve(e,t){let n=D(e);return n===t||!c(n)||w(n)?!1:T(n).position===`fixed`||Ve(n,t)}function He(e,t){let n=t.get(e);if(n)return n;let r=k(e,[],!1).filter(e=>c(e)&&i(e)!==`body`),a=null,o=T(e).position===`fixed`,s=o?D(e):e;for(;c(s)&&!w(s);){let t=T(s),n=b(s);!n&&t.position===`fixed`&&(a=null),(o?!n&&!a:!n&&t.position===`static`&&a&&Re.has(a.position)||f(s)&&!n&&Ve(e,s))?r=r.filter(e=>e!==s):a=t,s=D(s)}return t.set(e,r),r}function Ue(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?g(t)?[]:He(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=Be(t,n,i);return e.top=N(r.top,e.top),e.right=M(r.right,e.right),e.bottom=M(r.bottom,e.bottom),e.left=N(r.left,e.left),e},Be(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function We(e){let{width:t,height:n}=De(e);return{width:t,height:n}}function Ge(e,t,n){let r=l(t),a=o(t),s=n===`fixed`,c=Y(e,!0,s,t),u={scrollLeft:0,scrollTop:0},d=I(0);function p(){d.x=X(a)}if(r||!r&&!s)if((i(t)!==`body`||f(a))&&(u=E(t)),r){let e=Y(t,!0,s,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else a&&p();s&&!r&&a&&p();let m=a&&!r&&!s?Me(a,u):I(0);return{x:c.left+u.scrollLeft-d.x-m.x,y:c.top+u.scrollTop-d.y-m.y,width:c.width,height:c.height}}function Ke(e){return T(e).position===`static`}function qe(e,t){if(!l(e)||T(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return o(e)===n&&(n=n.ownerDocument.body),n}function Je(e,t){let n=a(e);if(g(e))return n;if(!l(e)){let t=D(e);for(;t&&!w(t);){if(c(t)&&!Ke(t))return t;t=D(t)}return n}let r=qe(e,t);for(;r&&m(r)&&Ke(r);)r=qe(r,t);return r&&w(r)&&Ke(r)&&!b(r)?n:r||x(e)||n}var Ye=async function(e){let t=this.getOffsetParent||Je,n=this.getDimensions,r=await n(e.floating);return{reference:Ge(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xe(e){return T(e).direction===`rtl`}var Ze={convertOffsetParentRelativeRectToViewportRelativeRect:Ne,getDocumentElement:o,getClippingRect:Ue,getOffsetParent:Je,getElementRects:Ye,getClientRects:Pe,getDimensions:We,getScale:J,isElement:c,isRTL:Xe};function Qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $e(e,t){let n=null,r,i=o(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function s(o,c){o===void 0&&(o=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(o||t(),!f||!p)return;let m=F(d),h=F(i.clientWidth-(u+f)),g=F(i.clientHeight-(d+p)),_=F(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:N(0,M(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}n===1&&!Qe(l,e.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return s(!0),a}function et(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Oe(e),u=i||a?[...l?k(l):[],...k(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?$e(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?Y(e):null;c&&g();function g(){let t=Y(e);h&&!Qe(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;
vendor: 3,410 bytes, line 1
1u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var tt=q,nt=Ce,rt=we,it=_e,at=Ee,ot=be,st=ge,ct=Te,lt=(e,t,n)=>{let r=new Map,i={platform:Ze,...n},a={...i.platform,_c:r};return he(e,t,{...i,platform:a})},Z=e(t(),1),ut=e(n(),1),Q=typeof document<`u`?Z.useLayoutEffect:function(){};function $(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!$(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!$(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function dt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ft(e,t){let n=dt(e);return Math.round(t*n)/n}function pt(e){let t=Z.useRef(e);return Q(()=>{t.current=e}),t}function mt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=Z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Z.useState(r);$(f,r)||p(r);let[m,h]=Z.useState(null),[g,_]=Z.useState(null),v=Z.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=Z.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=Z.useRef(null),C=Z.useRef(null),w=Z.useRef(u),T=c!=null,E=pt(c),D=pt(i),O=pt(l),k=Z.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),lt(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!$(w.current,t)&&(w.current=t,ut.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Q(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=Z.useRef(!1);Q(()=>(A.current=!0,()=>{A.current=!1}),[]),Q(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=Z.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=Z.useMemo(()=>({reference:b,floating:x}),[b,x]),N=Z.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=ft(M.floating,u.x),r=ft(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...dt(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return Z.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var ht=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:st({element:r.current,padding:i}).fn(n):r?st({element:r,padding:i}).fn(n):{}}}},gt=(e,t)=>({...nt(e),options:[e,t]}),_t=(e,t)=>({...rt(e),options:[e,t]}),vt=(e,t)=>({...ct(e),options:[e,t]}),yt=(e,t)=>({...it(e),options:[e,t]}),bt=(e,t)=>({...at(e),options:[e,t]}),xt=(e,t)=>({...ot(e),options:[e,t]}),St=(e,t)=>({...ht(e),options:[e,t]});export{gt as a,mt as c,R as d,N as f,c as h,vt as i,et as l,P as m,yt as n,_t as o,M as p,xt as r,bt as s,St as t,tt as u};

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.