vendor: 10,203 bytes, line 1
1const t=Math.min,e=Math.max,n=Math.round,o=Math.floor,i=t=>({x:t,y:t}),r={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function c(n,o,i){return e(n,t(o,i))}function s(t,e){return"function"==typeof t?t(e):t}function a(t){return t.split("-")[0]}function f(t){return t.split("-")[1]}function u(t){return"x"===t?"y":"x"}function d(t){return"y"===t?"height":"width"}const h=new Set(["top","bottom"]);function m(t){return h.has(a(t))?"y":"x"}function p(t){return u(m(t))}function g(t){return t.replace(/start|end/g,t=>l[t])}const y=["left","right"],w=["right","left"],x=["top","bottom"],v=["bottom","top"];function b(t){return t.replace(/left|right|bottom|top/g,t=>r[t])}function R(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function L(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 T(t,e,n){let{reference:o,floating:i}=t;const r=m(e),l=p(e),c=d(l),s=a(e),u="y"===r,h=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[c]/2-i[c]/2;let w;switch(s){case"top":w={x:h,y:o.y-i.height};break;case"bottom":w={x:h,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:g};break;case"left":w={x:o.x-i.width,y:g};break;default:w={x:o.x,y:o.y}}switch(f(e)){case"start":w[l]-=y*(n&&u?-1:1);break;case"end":w[l]+=y*(n&&u?-1:1)}return w}async function E(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=s(e,t),p=R(m),g=c[h?"floating"===d?"reference":"floating":d],y=L(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:a})),w="floating"===d?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),v=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},b=L(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:a}):w);return{top:(y.top-b.top+p.top)/v.y,bottom:(b.bottom-y.bottom+p.bottom)/v.y,left:(y.left-b.left+p.left)/v.x,right:(b.right-y.right+p.right)/v.x}}const S=new Set(["left","top"]);function A(){return"undefined"!=typeof window}function O(t){return F(t)?(t.nodeName||"").toLowerCase():"#document"}function D(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function C(t){var e;return null==(e=(F(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function F(t){return!!A()&&(t instanceof Node||t instanceof D(t).Node)}function P(t){return!!A()&&(t instanceof Element||t instanceof D(t).Element)}function k(t){return!!A()&&(t instanceof HTMLElement||t instanceof D(t).HTMLElement)}function W(t){return!(!A()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof D(t).ShadowRoot)}const B=new Set(["inline","contents"]);function H(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=G(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!B.has(i)}const M=new Set(["table","td","th"]);function V(t){return M.has(O(t))}const z=[":popover-open",":modal"];function N(t){return z.some(e=>{try{return t.matches(e)}catch(n){return!1}})}const I=["transform","translate","scale","rotate","perspective"],j=["transform","translate","scale","rotate","perspective","filter"],q=["paint","layout","strict","content"];function X(t){const e=Y(),n=P(t)?G(t):t;return I.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||j.some(t=>(n.willChange||"").includes(t))||q.some(t=>(n.contain||"").includes(t))}function Y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const $=new Set(["html","body","#document"]);function _(t){return $.has(O(t))}function G(t){return D(t).getComputedStyle(t)}function J(t){return P(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if("html"===O(t))return t;const e=t.assignedSlot||t.parentNode||W(t)&&t.host||C(t);return W(e)?e.host:e}function Q(t){const e=K(t);return _(e)?t.ownerDocument?t.ownerDocument.body:t.body:k(e)&&H(e)?e:Q(e)}function U(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Q(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=D(i);if(r){const t=Z(l);return e.concat(l,l.visualViewport||[],H(i)?i:[],t&&n?U(t):[])}return e.concat(i,U(i,[],n))}function Z(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function tt(t){const e=G(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=k(t),l=r?t.offsetWidth:o,c=r?t.offsetHeight:i,s=n(o)!==l||n(i)!==c;return s&&(o=l,i=c),{width:o,height:i,$:s}}function et(t){return P(t)?t:t.contextElement}function nt(t){const e=et(t);if(!k(e))return i(1);const o=e.getBoundingClientRect(),{width:r,height:l,$:c}=tt(e);let s=(c?n(o.width):o.width)/r,a=(c?n(o.height):o.height)/l;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ot=i(0);function it(t){const e=D(t);return Y()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ot}function rt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),l=et(t);let c=i(1);e&&(o?P(o)&&(c=nt(o)):c=nt(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==D(t))&&e}(l,n,o)?it(l):i(0);let a=(r.left+s.x)/c.x,f=(r.top+s.y)/c.y,u=r.width/c.x,d=r.height/c.y;if(l){const t=D(l),e=o&&P(o)?D(o):o;let n=t,i=Z(n);for(;i&&o&&e!==n;){const t=nt(i),e=i.getBoundingClientRect(),o=G(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=r,f+=l,n=D(i),i=Z(n)}}return L({width:u,height:d,x:a,y:f})}function lt(t,e){const n=J(t).scrollLeft;return e?e.left+n:rt(C(t)).left+n}function ct(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-lt(t,n),y:n.top+e.scrollTop}}const st=new Set(["absolute","fixed"]);function at(t,n,o){let r;if("viewport"===n)r=function(t,e){const n=D(t),o=C(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=Y();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}const a=lt(o);if(a<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(o.clientWidth-e.clientWidth-i);l<=25&&(r-=l)}else a<=25&&(r+=a);return{width:r,height:l,x:c,y:s}}(t,o);else if("document"===n)r=function(t){const n=C(t),o=J(t),i=t.ownerDocument.body,r=e(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),l=e(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let c=-o.scrollLeft+lt(t);const s=-o.scrollTop;return"rtl"===G(i).direction&&(c+=e(n.clientWidth,i.clientWidth)-r),{width:r,height:l,x:c,y:s}}(C(t));else if(P(n))r=function(t,e){const n=rt(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,l=k(t)?nt(t):i(1);return{width:t.clientWidth*l.x,height:t.clientHeight*l.y,x:r*l.x,y:o*l.y}}(n,o);else{const e=it(t);r={x:n.x-e.x,y:n.y-e.y,width:n.width,height:n.height}}return L(r)}function ft(t,e){const n=K(t);return!(n===e||!P(n)||_(n))&&("fixed"===G(n).position||ft(n,e))}function ut(t,e,n){const o=k(e),r=C(e),l="fixed"===n,c=rt(t,!0,l,e);let s={scrollLeft:0,scrollTop:0};const a=i(0);function f(){a.x=lt(r)}if(o||!o&&!l)if(("body"!==O(e)||H(r))&&(s=J(e)),o){const t=rt(e,!0,l,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else r&&f();l&&!o&&r&&f();const u=!r||o||l?i(0):ct(r,s);return{x:c.left+s.scrollLeft-a.x-u.x,y:c.top+s.scrollTop-a.y-u.y,width:c.width,height:c.height}}function dt(t){return"static"===G(t).position}function ht(t,e){if(!k(t)||"fixed"===G(t).position)return null;if(e)return e(t);let n=t.offsetParent;return C(t)===n&&(n=n.ownerDocument.body),n}function mt(t,e){const n=D(t);if(N(t))return n;if(!k(t)){let e=K(t);for(;e&&!_(e);){if(P(e)&&!dt(e))return e;e=K(e)}return n}let o=ht(t,e);for(;o&&V(o)&&dt(o);)o=ht(o,e);return o&&_(o)&&dt(o)&&!X(o)?n:o||function(t){let e=K(t);for(;k(e)&&!_(e);){if(X(e))return e;if(N(e))return null;e=K(e)}return null}(t)||n}const pt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const l="fixed"===r,c=C(o),s=!!e&&N(e.floating);if(o===c||s&&l)return n;let a={scrollLeft:0,scrollTop:0},f=i(1);const u=i(0),d=k(o);if((d||!d&&!l)&&(("body"!==O(o)||H(c))&&(a=J(o)),k(o))){const t=rt(o);f=nt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const h=!c||d||l?i(0):ct(c,a);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x+h.x,y:n.y*f.y-a.scrollTop*f.y+u.y+h.y}},getDocumentElement:C,getClippingRect:function(n){let{element:o,boundary:i,rootBoundary:r,strategy:l}=n;const c=[..."clippingAncestors"===i?N(o)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=U(t,[],!1).filter(t=>P(t)&&"body"!==O(t)),i=null;const r="fixed"===G(t).position;let l=r?K(t):t;for(;P(l)&&!_(l);){const e=G(l),n=X(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&st.has(i.position)||H(l)&&!n&&ft(t,l))?o=o.filter(t=>t!==l):i=e,l=K(l)}return e.set(t,o),o}(o,this._c):[].concat(i),r],s=c[0],a=c.reduce((n,i)=>{const r=at(o,i,l);return n.top=e(r.top,n.top),n.right=t(r.right,n.right),n.bottom=t(r.bottom,n.bottom),n.left=e(r.left,n.left),n},at(o,s,l));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:mt,getElementRects:async function(t){const e=this.getOffsetParent||mt,n=this.getDimensions,o=await n(t.floating);return{reference:ut(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=tt(t);return{width:e,height:n}}
vendor: 5,990 bytes, line 1
1,getScale:nt,isElement:P,isRTL:function(t){return"rtl"===G(t).direction}};function gt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function yt(n,i,r,l){void 0===l&&(l={});const{ancestorScroll:c=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=l,d=et(n),h=c||s?[...d?U(d):[],...U(i)]:[];h.forEach(t=>{c&&t.addEventListener("scroll",r,{passive:!0}),s&&t.addEventListener("resize",r)});const m=d&&f?function(n,i){let r,l=null;const c=C(n);function s(){var t;clearTimeout(r),null==(t=l)||t.disconnect(),l=null}return function a(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),s();const d=n.getBoundingClientRect(),{left:h,top:m,width:p,height:g}=d;if(f||i(),!p||!g)return;const y={rootMargin:-o(m)+"px "+-o(c.clientWidth-(h+p))+"px "+-o(c.clientHeight-(m+g))+"px "+-o(h)+"px",threshold:e(0,t(1,u))||1};let w=!0;function x(t){const e=t[0].intersectionRatio;if(e!==u){if(!w)return a();e?a(!1,e):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==e||gt(d,n.getBoundingClientRect())||a(),w=!1}try{l=new IntersectionObserver(x,{...y,root:c.ownerDocument})}catch(v){l=new IntersectionObserver(x,y)}l.observe(n)}(!0),s}(d,r):null;let p,g=-1,y=null;a&&(y=new ResizeObserver(t=>{let[e]=t;e&&e.target===d&&y&&(y.unobserve(i),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(i)})),r()}),d&&!u&&y.observe(d),y.observe(i));let w=u?rt(n):null;return u&&function t(){const e=rt(n);w&&!gt(w,e)&&r(),w=e,p=requestAnimationFrame(t)}(),r(),()=>{var t;h.forEach(t=>{c&&t.removeEventListener("scroll",r),s&&t.removeEventListener("resize",r)}),null==m||m(),null==(t=y)||t.disconnect(),y=null,u&&cancelAnimationFrame(p)}}const wt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:c}=e,u=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=a(n),c=f(n),u="y"===m(n),d=S.has(l)?-1:1,h=r&&u?-1:1,p=s(e,t);let{mainAxis:g,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&"number"==typeof w&&(y="end"===c?-1*w:w),u?{x:y*h,y:g*d}:{x:g*d,y:y*h}}(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+u.x,y:r+u.y,data:{...u,placement:l}}}}},xt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:r}=e,{mainAxis:l=!0,crossAxis:f=!1,limiter:d={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...h}=s(t,e),p={x:n,y:o},g=await r.detectOverflow(e,h),y=m(a(i)),w=u(y);let x=p[w],v=p[y];if(l){const t="y"===w?"bottom":"right";x=c(x+g["y"===w?"top":"left"],x,x-g[t])}if(f){const t="y"===y?"bottom":"right";v=c(v+g["y"===y?"top":"left"],v,v-g[t])}const b=d.fn({...e,[w]:x,[y]:v});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[w]:l,[y]:f}}}}}},vt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:u,elements:h}=e,{mainAxis:R=!0,crossAxis:L=!0,fallbackPlacements:T,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:A=!0,...O}=s(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const D=a(i),C=m(c),F=a(c)===c,P=await(null==u.isRTL?void 0:u.isRTL(h.floating)),k=T||(F||!A?[b(c)]:function(t){const e=b(t);return[g(t),e,g(e)]}(c)),W="none"!==S;!T&&W&&k.push(...function(t,e,n,o){const i=f(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?w:y:e?y:w;case"left":case"right":return e?x:v;default:return[]}}(a(t),"start"===n,o);return i&&(r=r.map(t=>t+"-"+i),e&&(r=r.concat(r.map(g)))),r}(c,A,S,P));const B=[c,...k],H=await u.detectOverflow(e,O),M=[];let V=(null==(o=r.flip)?void 0:o.overflows)||[];if(R&&M.push(H[D]),L){const t=function(t,e,n){void 0===n&&(n=!1);const o=f(t),i=p(t),r=d(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=b(l)),[l,b(l)]}(i,l,P);M.push(H[t[0]],H[t[1]])}if(V=[...V,{placement:i,overflows:M}],!M.every(t=>t<=0)){var z,N;const t=((null==(z=r.flip)?void 0:z.index)||0)+1,e=B[t];if(e&&("alignment"!==L||C===m(e)||V.every(t=>m(t.placement)!==C||t.overflows[0]>0)))return{data:{index:t,overflows:V},reset:{placement:e}};let n=null==(N=V.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:N.placement;if(!n)switch(E){case"bestFit":{var I;const t=null==(I=V.filter(t=>{if(W){const e=m(t.placement);return e===C||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:I[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},bt=e=>({name:"arrow",options:e,async fn(n){const{x:o,y:i,placement:r,rects:l,platform:a,elements:u,middlewareData:h}=n,{element:m,padding:g=0}=s(e,n)||{};if(null==m)return{};const y=R(g),w={x:o,y:i},x=p(r),v=d(x),b=await a.getDimensions(m),L="y"===x,T=L?"top":"left",E=L?"bottom":"right",S=L?"clientHeight":"clientWidth",A=l.reference[v]+l.reference[x]-w[x]-l.floating[v],O=w[x]-l.reference[x],D=await(null==a.getOffsetParent?void 0:a.getOffsetParent(m));let C=D?D[S]:0;C&&await(null==a.isElement?void 0:a.isElement(D))||(C=u.floating[S]||l.floating[v]);const F=A/2-O/2,P=C/2-b[v]/2-1,k=t(y[T],P),W=t(y[E],P),B=k,H=C-b[v]-W,M=C/2-b[v]/2+F,V=c(B,M,H),z=!h.arrow&&null!=f(r)&&M!==V&&l.reference[v]/2-(M<B?k:W)-b[v]/2<0,N=z?M<B?M-B:M-H:0;return{[x]:w[x]+N,data:{[x]:V,centerOffset:M-V-N,...z&&{alignmentOffset:N}},reset:z}}}),Rt=(t,e,n)=>{const o=new Map,i={platform:pt,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}
vendor: 682 bytes, line 1
1),{x:f,y:u}=T(a,o,s),d=o,h={},m=0;for(let g=0;g<c.length;g++){var p;const{name:n,fn:r}=c[g],{x:y,y:w,data:x,reset:v}=await r({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:h,rects:a,platform:{...l,detectOverflow:null!=(p=l.detectOverflow)?p:E},elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=w?w:u,h={...h,[n]:{...h[n],...x}},v&&m<=50&&(m++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(a=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:u}=T(a,d,s))),g=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:h}})(t,e,{...i,platform:r})};export{bt as a,yt as b,Rt as c,vt as f,wt as o,xt as s};
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.