Build 589089stable
Module 38339
16,997 characters · in 29609.b896f2d9d6398168.jsDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{UU:()=>et,cY:()=>G,ll:()=>X,jD:()=>er,RK:()=>J,BN:()=>ee,ER:()=>eo,rD:()=>ei,Ej:()=>en});let r=["top","right","bottom","left"],o=r.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,a=Math.max,u=Math.round,s=Math.floor,l=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}let y=new Set(["top","bottom"]);function g(e){return y.has(h(e))?"y":"x"}function b(e,t,n){void 0===n&&(n=!1);let r=p(e),o=m(g(e)),i=v(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=x(a)),[a,x(a)]}function w(e){return e.replace(/start|end/g,e=>f[e])}let _=["left","right"],D=["right","left"],k=["top","bottom"],E=["bottom","top"];function x(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function C(e){let{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 S(e,t,n){let r,{reference:o,floating:i}=e,a=g(t),u=m(g(t)),s=v(u),l=h(t),c="y"===a,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,y=o[s]/2-i[s]/2;switch(l){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[u]-=y*(n&&c?-1:1);break;case"end":r[u]+=y*(n&&c?-1:1)}return r}let A=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,u=i.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=S(l,r,s),d=r,h={},p=0;for(let n=0;n<u.length;n++){let{name:i,fn:m}=u[n],{x:v,y:y,data:g,reset:b}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,f=null!=y?y:f,h={...h,[i]:{...h[i],...g}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:f}=S(l,d,s)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:h}};async function O(e,t){var n,r;void 0===t&&(t={});let{x:o,y:i,platform:a,rects:u,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:p=!1,padding:m=0}=d(t,e),v="number"!=typeof(r=m)?{top:0,right:0,bottom:0,left:0,...r}:{top:r,right:r,bottom:r,left:r},y=s[p?"floating"===h?"reference":"floating":h],g=C(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(y)))||n?y:y.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{x:o,y:i,width:u.floating.width,height:u.floating.height}:u.reference,w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),_=await (null==a.isElement?void 0:a.isElement(w))&&await (null==a.getScale?void 0:a.getScale(w))||{x:1,y:1},D=C(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:l}):b);return{top:(g.top-D.top+v.top)/_.y,bottom:(D.bottom-g.bottom+v.bottom)/_.y,left:(g.left-D.left+v.left)/_.x,right:(D.right-g.right+v.right)/_.x}}function B(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return r.some(t=>e[t]>=0)}let F=new Set(["left","top"]);async function P(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=h(n),u=p(n),s="y"===g(n),l=F.has(a)?-1:1,c=i&&s?-1:1,f=d(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof y&&(v="end"===u?-1*y:y),s?{x:v*c,y:m*l}:{x:m*l,y:v*c}}var z=n(84157);function R(e){let t=(0,z.L9)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=(0,z.sb)(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=u(n)!==i||u(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function M(e){return(0,z.vq)(e)?e:e.contextElement}function N(e){let t=M(e);if(!(0,z.sb)(t))return l(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=R(t),a=(i?u(n.width):n.width)/r,s=(i?u(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let j=l(0);function L(e){let t=(0,z.zk)(e);return(0,z.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:j}function I(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=M(e),u=l(1);t&&(r?(0,z.vq)(r)&&(u=N(r)):u=N(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===(0,z.zk)(a))&&o)?L(a):l(0),c=(i.left+s.x)/u.x,f=(i.top+s.y)/u.y,d=i.width/u.x,h=i.height/u.y;if(a){let e=(0,z.zk)(a),t=r&&(0,z.vq)(r)?(0,z.zk)(r):r,n=e,o=(0,z._m)(n);for(;o&&r&&t!==n;){let e=N(o),t=o.getBoundingClientRect(),r=(0,z.L9)(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,h*=e.y,c+=i,f+=a,n=(0,z.zk)(o),o=(0,z._m)(n)}}return C({width:d,height:h,x:c,y:f})}function U(e,t){let n=(0,z.CP)(e).scrollLeft;return t?t.left+n:I((0,z.ep)(e)).left+n}function Y(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-U(e,n),y:n.top+t.scrollTop}}let $=new Set(["absolute","fixed"]);function W(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=(0,z.zk)(e),r=(0,z.ep)(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,s=0;if(o){i=o.width,a=o.height;let e=(0,z.Tc)();(!e||e&&"fixed"===t)&&(u=o.offsetLeft,s=o.offsetTop)}let l=U(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else l<=25&&(i+=l);return{width:i,height:a,x:u,y:s}}(e,n);else if("document"===t){let t,n,i,u,s,l,c;r=(0,z.ep)(e),t=(0,z.ep)(r),n=(0,z.CP)(r),i=r.ownerDocument.body,u=a(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=a(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),l=-n.scrollLeft+U(r),c=-n.scrollTop,"rtl"===(0,z.L9)(i).direction&&(l+=a(t.clientWidth,i.clientWidth)-u),o={width:u,height:s,x:l,y:c}}else if((0,z.vq)(t)){let e,r,i,a,u,s;r=(e=I(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,a=(0,z.sb)(t)?N(t):l(1),u=t.clientWidth*a.x,s=t.clientHeight*a.y,o={width:u,height:s,x:i*a.x,y:r*a.y}}else{let n=L(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(o)}function Z(e){return"static"===(0,z.L9)(e).position}function H(e,t){if(!(0,z.sb)(e)||"fixed"===(0,z.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,z.ep)(e)===n&&(n=n.ownerDocument.body),n}function q(e,t){let n=(0,z.zk)(e);if((0,z.Tf)(e))return n;if(!(0,z.sb)(e)){let t=(0,z.$4)(e);for(;t&&!(0,z.eu)(t);){if((0,z.vq)(t)&&!Z(t))return t;t=(0,z.$4)(t)}return n}let r=H(e,t);for(;r&&(0,z.Lv)(r)&&Z(r);)r=H(r,t);return r&&(0,z.eu)(r)&&Z(r)&&!(0,z.sQ)(r)?n:r||(0,z.gJ)(e)||n}let V=async function(e){let t=this.getOffsetParent||q,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,z.sb)(t),o=(0,z.ep)(t),i="fixed"===n,a=I(e,!0,i,t),u={scrollLeft:0,scrollTop:0},s=l(0);if(r||!r&&!i)if(("body"!==(0,z.mq)(t)||(0,z.ZU)(o))&&(u=(0,z.CP)(t)),r){let e=I(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=U(o));i&&!r&&o&&(s.x=U(o));let c=!o||r||i?l(0):Y(o,u);return{x:a.left+u.scrollLeft-s.x-c.x,y:a.top+u.scrollTop-s.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},K={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=(0,z.ep)(r),u=!!t&&(0,z.Tf)(t.floating);if(r===a||u&&i)return n;let s={scrollLeft:0,scrollTop:0},c=l(1),f=l(0),d=(0,z.sb)(r);if((d||!d&&!i)&&(("body"!==(0,z.mq)(r)||(0,z.ZU)(a))&&(s=(0,z.CP)(r)),(0,z.sb)(r))){let e=I(r);c=N(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let h=!a||d||i?l(0):Y(a,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x+h.x,y:n.y*c.y-s.scrollTop*c.y+f.y+h.y}},getDocumentElement:z.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,u=[..."clippingAncestors"===n?(0,z.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,z.v9)(e,[],!1).filter(e=>(0,z.vq)(e)&&"body"!==(0,z.mq)(e)),o=null,i="fixed"===(0,z.L9)(e).position,a=i?(0,z.$4)(e):e;for(;(0,z.vq)(a)&&!(0,z.eu)(a);){let t=(0,z.L9)(a),n=(0,z.sQ)(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&$.has(o.position)||(0,z.ZU)(a)&&!n&&function e(t,n){let r=(0,z.$4)(t);return!(r===n||!(0,z.vq)(r)||(0,z.eu)(r))&&("fixed"===(0,z.L9)(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=(0,z.$4)(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=u[0],l=u.reduce((e,n)=>{let r=W(t,n,o);return e.top=a(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=a(r.left,e.left),e},W(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:q,getElementRects:V,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=R(e);return{width:t,height:n}},getScale:N,isElement:z.vq,isRTL:function(e){return"rtl"===(0,z.L9)(e).direction}};function Q(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function X(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,h=M(e),p=u||l?[...h?(0,z.v9)(h):[],...(0,z.v9)(t)]:[];p.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let m=h&&f?function(e,t){let n,r=null,o=(0,z.ep)(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),u();let d=e.getBoundingClientRect(),{left:h,top:p,width:m,height:v}=d;if(c||t(),!m||!v)return;let y={rootMargin:-s(p)+"px "+-s(o.clientWidth-(h+m))+"px "+-s(o.clientHeight-(p+v))+"px "+-s(h)+"px",threshold:a(0,i(1,f))||1},g=!0;function b(t){let r=t[0].intersectionRatio;if(r!==f){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||Q(d,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),u}(h,n):null,v=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),h&&!d&&y.observe(h),y.observe(t));let g=d?I(e):null;return d&&function t(){let r=I(e);g&&!Q(g,r)&&n(),g=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{u&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(o)}}let G=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:a,middlewareData:u}=t,s=await P(t,e);return a===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},J=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i,a;let{rects:u,middlewareData:s,placement:l,platform:c,elements:f}=t,{crossAxis:m=!1,alignment:v,allowedPlacements:y=o,autoAlignment:g=!0,..._}=d(e,t),D=void 0!==v||y===o?((a=v||null)?[...y.filter(e=>p(e)===a),...y.filter(e=>p(e)!==a)]:y.filter(e=>h(e)===e)).filter(e=>!a||p(e)===a||!!g&&w(e)!==e):y,k=await O(t,_),E=(null==(n=s.autoPlacement)?void 0:n.index)||0,x=D[E];if(null==x)return{};let C=b(x,u,await (null==c.isRTL?void 0:c.isRTL(f.floating)));if(l!==x)return{reset:{placement:D[0]}};let S=[k[h(x)],k[C[0]],k[C[1]]],A=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:x,overflows:S}],B=D[E+1];if(B)return{data:{index:E+1,overflows:A},reset:{placement:B}};let T=A.map(e=>{let t=p(e.placement);return[e.placement,t&&m?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),F=(null==(i=T.filter(e=>e[2].slice(0,p(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||T[0][0];return F!==l?{data:{index:E+1,overflows:A},reset:{placement:F}}:{}}}},ee=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:u=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),f={x:n,y:r},p=await O(t,c),v=g(h(o)),y=m(v),b=f[y],w=f[v];if(u){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=b+p[e],r=b-p[t];b=a(n,i(b,r))}if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+p[e],r=w-p[t];w=a(n,i(w,r))}let _=l.fn({...t,[y]:b,[v]:w});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[y]:u,[v]:s}}}}}},et=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,a;let u,s,l,{placement:c,middlewareData:f,rects:m,initialPlacement:v,platform:y,elements:C}=t,{mainAxis:S=!0,crossAxis:A=!0,fallbackPlacements:B,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:F="none",flipAlignment:P=!0,...z}=d(e,t);if(null!=(n=f.arrow)&&n.alignmentOffset)return{};let R=h(c),M=g(v),N=h(v)===v,j=await (null==y.isRTL?void 0:y.isRTL(C.floating)),L=B||(N||!P?[x(v)]:(u=x(v),[w(v),u,w(u)])),I="none"!==F;!B&&I&&L.push(...(s=p(v),l=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?D:_;return t?_:D;case"left":case"right":return t?k:E;default:return[]}}(h(v),"start"===F,j),s&&(l=l.map(e=>e+"-"+s),P&&(l=l.concat(l.map(w)))),l));let U=[v,...L],Y=await O(t,z),$=[],W=(null==(r=f.flip)?void 0:r.overflows)||[];if(S&&$.push(Y[R]),A){let e=b(c,m,j);$.push(Y[e[0]],Y[e[1]])}if(W=[...W,{placement:c,overflows:$}],!$.every(e=>e<=0)){let e=((null==(o=f.flip)?void 0:o.index)||0)+1,t=U[e];if(t&&("alignment"!==A||M===g(t)||W.every(e=>g(e.placement)!==M||e.overflows[0]>0)))return{data:{index:e,overflows:W},reset:{placement:t}};let n=null==(i=W.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(T){case"bestFit":{let e=null==(a=W.filter(e=>{if(I){let t=g(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:a[0];e&&(n=e);break}case"initialPlacement":n=v}if(c!==n)return{reset:{placement:n}}}return{}}}},en=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,u,{placement:s,rects:l,platform:c,elements:f}=t,{apply:m=()=>{},...v}=d(e,t),y=await O(t,v),b=h(s),w=p(s),_="y"===g(s),{width:D,height:k}=l.floating;"top"===b||"bottom"===b?(o=b,u=w===(await (null==c.isRTL?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(u=b,o="end"===w?"top":"bottom");let E=k-y.top-y.bottom,x=D-y.left-y.right,C=i(k-y[o],E),S=i(D-y[u],x),A=!t.middlewareData.shift,B=C,T=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=x),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(B=E),A&&!w){let e=a(y.left,0),t=a(y.right,0),n=a(y.top,0),r=a(y.bottom,0);_?T=D-2*(0!==e||0!==t?e+t:a(y.left,y.right)):B=k-2*(0!==n||0!==r?n+r:a(y.top,y.bottom))}await m({...t,availableWidth:T,availableHeight:B});let F=await c.getDimensions(f.floating);return D!==F.width||k!==F.height?{reset:{rects:!0}}:{}}}},er=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{let e=B(await O(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:T(e)}}}case"escaped":{let e=B(await O(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:T(e)}}}default:return{}}}}},eo=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:u=0,mainAxis:s=!0,crossAxis:l=!0}=d(e,t),c={x:n,y:r},f=g(o),p=m(f),v=c[p],y=c[f],b=d(u,t),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(s){let e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+w.mainAxis,n=i.reference[p]+i.reference[e]-w.mainAxis;v<t?v=t:v>n&&(v=n)}if(l){var _,D;let e="y"===p?"width":"height",t=F.has(h(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(_=a.offset)?void 0:_[f])||0)+(t?0:w.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(D=a.offset)?void 0:D[f])||0)-(t?w.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[p]:v,[f]:y}}}},ei=(e,t,n)=>{let r=new Map,o={platform:K,...n},i={...o.platform,_c:r};return A(e,t,{...o,platform:i})}}