PageSourceSearch

https://web.dinarz.ir/assets/@floating-ui-Bf07CSbV.js

js dinarz.ir collected 2026-10-09 01:11:29 UTC 22,538 bytes, 1 lines download raw bytes

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