vendor: 3,417 bytes, line 1
1import{c as I,o as J,s as K,f as N,a as Q,h as T,b as L,l as U}from"./floating-ui.dom-BlB1qeIh.js";import{r as s}from"./chunk-LFPYN7LY-KHkXXmUu.js";import{r as X}from"./index-CNvji0Tb.js";var Y=typeof document<"u",Z=function(){},w=Y?s.useLayoutEffect:Z;function R(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let t,r,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==n.length)return!1;for(r=t;r--!==0;)if(!R(e[r],n[r]))return!1;return!0}if(o=Object.keys(e),t=o.length,t!==Object.keys(n).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(n,o[r]))return!1;for(r=t;r--!==0;){const p=o[r];if(!(p==="_owner"&&e.$$typeof)&&!R(e[p],n[p]))return!1}return!0}return e!==e&&n!==n}function A(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function z(e,n){const t=A(e);return Math.round(n*t)/t}function E(e){const n=s.useRef(e);return w(()=>{n.current=e}),n}function se(e){e===void 0&&(e={});const{placement:n="bottom",strategy:t="absolute",middleware:r=[],platform:o,elements:{reference:p,floating:q}={},transform:k=!0,whileElementsMounted:D,open:x}=e,[u,C]=s.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[M,B]=s.useState(r);R(M,r)||B(r);const[V,W]=s.useState(null),[b,G]=s.useState(null),_=s.useCallback(f=>{f!==c.current&&(c.current=f,W(f))},[]),v=s.useCallback(f=>{f!==m.current&&(m.current=f,G(f))},[]),i=p||V,a=q||b,c=s.useRef(null),m=s.useRef(null),y=s.useRef(u),H=D!=null,P=E(D),S=E(o),F=E(x),g=s.useCallback(()=>{if(!c.current||!m.current)return;const f={placement:n,strategy:t,middleware:M};S.current&&(f.platform=S.current),I(c.current,m.current,f).then(h=>{const d={...h,isPositioned:F.current!==!1};$.current&&!R(y.current,d)&&(y.current=d,X.flushSync(()=>{C(d)}))})},[M,n,t,S,F]);w(()=>{x===!1&&y.current.isPositioned&&(y.current.isPositioned=!1,C(f=>({...f,isPositioned:!1})))},[x]);const $=s.useRef(!1);w(()=>($.current=!0,()=>{$.current=!1}),[]),w(()=>{if(i&&(c.current=i),a&&(m.current=a),i&&a){if(P.current)return P.current(i,a,g);g()}},[i,a,g,P,H]);const O=s.useMemo(()=>({reference:c,floating:m,setReference:_,setFloating:v}),[_,v]),l=s.useMemo(()=>({reference:i,floating:a}),[i,a]),j=s.useMemo(()=>{const f={position:t,left:0,top:0};if(!l.floating)return f;const h=z(l.floating,u.x),d=z(l.floating,u.y);return k?{...f,transform:"translate("+h+"px, "+d+"px)",...A(l.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:h,top:d}},[t,k,l.floating,u.x,u.y]);return s.useMemo(()=>({...u,update:g,refs:O,elements:l,floatingStyles:j}),[u,g,O,l,j])}const ee=e=>{function n(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:r,padding:o}=typeof e=="function"?e(t):e;return r&&n(r)?r.current!=null?L({element:r.current,padding:o}).fn(t):{}:r?L({element:r,padding:o}).fn(t):{}}}},fe=(e,n)=>{const t=J(e);return{name:t.name,fn:t.fn,options:[e,n]}},oe=(e,n)=>{const t=K(e);return{name:t.name,fn:t.fn,options:[e,n]}},ue=(e,n)=>({fn:U(e).fn,options:[e,n]}),ie=(e,n)=>{const t=N(e);return{name:t.name,fn:t.fn,options:[e,n]}},ae=(e,n)=>{const t=Q(e);return{name:t.name,fn:t.fn,options:[e,n]}},le=(e,n)=>{const t=T(e);return{name:t.name,fn:t.fn,options:[e,n]}},ce=(e,n)=>{const t=ee(e);return{name:t.name,fn:t.fn,options:[e,n]}};export{ae as a,ce as b,ie as f,le as h,ue as l,fe as o,oe as s,se 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.