Module 38339

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