Build 533169stable
Module 193439
7,802 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{BN:()=>F,ER:()=>j,Ej:()=>B,RK:()=>G,UU:()=>V,cY:()=>U,jD:()=>H,ll:()=>k,rD:()=>Y});var r=n(56027),i=n(764647),s=n(84157);function a(e){let t=(0,s.L9)(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,a=(0,s.sb)(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:i,u=(0,r.LI)(n)!==o||(0,r.LI)(i)!==l;return u&&(n=o,i=l),{width:n,height:i,$:u}}function o(e){return(0,s.vq)(e)?e:e.contextElement}function l(e){let t=o(e);if(!(0,s.sb)(t))return(0,r.Jx)(1);let n=t.getBoundingClientRect(),{width:i,height:l,$:u}=a(t),c=(u?(0,r.LI)(n.width):n.width)/i,d=(u?(0,r.LI)(n.height):n.height)/l;return c&&Number.isFinite(c)||(c=1),d&&Number.isFinite(d)||(d=1),{x:c,y:d}}let u=(0,r.Jx)(0);function c(e){let t=(0,s.zk)(e);return(0,s.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:u}function d(e,t,n){return void 0===t&&(t=!1),!!n&&(!t||n===(0,s.zk)(e))&&t}function _(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),u=o(e),_=(0,r.Jx)(1);t&&(i?(0,s.vq)(i)&&(_=l(i)):_=l(e));let f=d(u,n,i)?c(u):(0,r.Jx)(0),p=(a.left+f.x)/_.x,h=(a.top+f.y)/_.y,m=a.width/_.x,E=a.height/_.y;if(u){let e=(0,s.zk)(u),t=i&&(0,s.vq)(i)?(0,s.zk)(i):i,n=e,r=(0,s._m)(n);for(;r&&i&&t!==n;){let e=l(r),t=r.getBoundingClientRect(),i=(0,s.L9)(r),a=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;p*=e.x,h*=e.y,m*=e.x,E*=e.y,p+=a,h+=o,n=(0,s.zk)(r),r=(0,s._m)(n)}}return(0,r.B1)({width:m,height:E,x:p,y:h})}function f(e,t){let n=(0,s.CP)(e).scrollLeft;return t?t.left+n:_((0,s.ep)(e)).left+n}function p(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-f(e,n),y:n.top+t.scrollTop}}function h(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e,o="fixed"===a,u=(0,s.ep)(i),c=!!t&&(0,s.Tf)(t.floating);if(i===u||c&&o)return n;let d={scrollLeft:0,scrollTop:0},f=(0,r.Jx)(1),h=(0,r.Jx)(0),m=(0,s.sb)(i);if((m||!m&&!o)&&(("body"!==(0,s.mq)(i)||(0,s.ZU)(u))&&(d=(0,s.CP)(i)),(0,s.sb)(i))){let e=_(i);f=l(i),h.x=e.x+i.clientLeft,h.y=e.y+i.clientTop}let E=!u||m||o?(0,r.Jx)(0):p(u,d);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+h.x+E.x,y:n.y*f.y-d.scrollTop*f.y+h.y+E.y}}function m(e){return Array.from(e.getClientRects())}function E(e){let t=(0,s.ep)(e),n=(0,s.CP)(e),i=e.ownerDocument.body,a=(0,r.T9)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=(0,r.T9)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),l=-n.scrollLeft+f(e),u=-n.scrollTop;return"rtl"===(0,s.L9)(i).direction&&(l+=(0,r.T9)(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:l,y:u}}let g=25;function A(e,t){let n=(0,s.zk)(e),r=(0,s.ep)(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,u=0;if(i){a=i.width,o=i.height;let e=(0,s.Tc)();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,u=i.offsetTop)}let c=f(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=g&&(a-=s)}else c<=g&&(a+=c);return{width:a,height:o,x:l,y:u}}let I=new Set(["absolute","fixed"]);function T(e,t){let n=_(e,!0,"fixed"===t),i=n.top+e.clientTop,a=n.left+e.clientLeft,o=(0,s.sb)(e)?l(e):(0,r.Jx)(1),u=e.clientWidth*o.x,c=e.clientHeight*o.y;return{width:u,height:c,x:a*o.x,y:i*o.y}}function S(e,t,n){let i;if("viewport"===t)i=A(e,n);else if("document"===t)i=E((0,s.ep)(e));else if((0,s.vq)(t))i=T(t,n);else{let n=c(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(i)}function y(e,t){let n=(0,s.$4)(e);return!(n===t||!(0,s.vq)(n)||(0,s.eu)(n))&&("fixed"===(0,s.L9)(n).position||y(n,t))}function v(e,t){let n=t.get(e);if(n)return n;let r=(0,s.v9)(e,[],!1).filter(e=>(0,s.vq)(e)&&"body"!==(0,s.mq)(e)),i=null,a="fixed"===(0,s.L9)(e).position,o=a?(0,s.$4)(e):e;for(;(0,s.vq)(o)&&!(0,s.eu)(o);){let t=(0,s.L9)(o),n=(0,s.sQ)(o);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&!!i&&I.has(i.position)||(0,s.ZU)(o)&&!n&&y(e,o))?r=r.filter(e=>e!==o):i=t,o=(0,s.$4)(o)}return t.set(e,r),r}function N(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e,o=[..."clippingAncestors"===n?(0,s.Tf)(t)?[]:v(t,this._c):[].concat(n),i],l=o[0],u=o.reduce((e,n)=>{let i=S(t,n,a);return e.top=(0,r.T9)(i.top,e.top),e.right=(0,r.jk)(i.right,e.right),e.bottom=(0,r.jk)(i.bottom,e.bottom),e.left=(0,r.T9)(i.left,e.left),e},S(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function C(e){let{width:t,height:n}=a(e);return{width:t,height:n}}function R(e,t,n){let i=(0,s.sb)(t),a=(0,s.ep)(t),o="fixed"===n,l=_(e,!0,o,t),u={scrollLeft:0,scrollTop:0},c=(0,r.Jx)(0);function d(){c.x=f(a)}if(i||!i&&!o)if(("body"!==(0,s.mq)(t)||(0,s.ZU)(a))&&(u=(0,s.CP)(t)),i){let e=_(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else a&&d();o&&!i&&a&&d();let h=!a||i||o?(0,r.Jx)(0):p(a,u);return{x:l.left+u.scrollLeft-c.x-h.x,y:l.top+u.scrollTop-c.y-h.y,width:l.width,height:l.height}}function O(e){return"static"===(0,s.L9)(e).position}function b(e,t){if(!(0,s.sb)(e)||"fixed"===(0,s.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,s.ep)(e)===n&&(n=n.ownerDocument.body),n}function D(e,t){let n=(0,s.zk)(e);if((0,s.Tf)(e))return n;if(!(0,s.sb)(e)){let t=(0,s.$4)(e);for(;t&&!(0,s.eu)(t);){if((0,s.vq)(t)&&!O(t))return t;t=(0,s.$4)(t)}return n}let r=b(e,t);for(;r&&(0,s.Lv)(r)&&O(r);)r=b(r,t);return r&&(0,s.eu)(r)&&O(r)&&!(0,s.sQ)(r)?n:r||(0,s.gJ)(e)||n}let L=async function(e){let t=this.getOffsetParent||D,n=this.getDimensions,r=await n(e.floating);return{reference:R(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function w(e){return"rtl"===(0,s.L9)(e).direction}let M={convertOffsetParentRelativeRectToViewportRelativeRect:h,getDocumentElement:s.ep,getClippingRect:N,getOffsetParent:D,getElementRects:L,getClientRects:m,getDimensions:C,getScale:l,isElement:s.vq,isRTL:w};function P(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function x(e,t){let n,i=null,a=(0,s.ep)(e);function o(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}function l(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),o();let c=e.getBoundingClientRect(),{left:d,top:_,width:f,height:p}=c;if(s||t(),!f||!p)return;let h={rootMargin:-(0,r.RI)(_)+"px "+-(0,r.RI)(a.clientWidth-(d+f))+"px "+-(0,r.RI)(a.clientHeight-(_+p))+"px "+-(0,r.RI)(d)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1},m=!0;function E(t){let r=t[0].intersectionRatio;if(r!==u){if(!m)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||P(c,e.getBoundingClientRect())||l(),m=!1}try{i=new IntersectionObserver(E,{...h,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(E,h)}i.observe(e)}return l(!0),o}function k(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,f=o(e),p=a||l?[...f?(0,s.v9)(f):[],...(0,s.v9)(t)]:[];p.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let h=f&&c?x(f,n):null,m=-1,E=null;u&&(E=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&E&&(E.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=E)||e.observe(t)})),n()}),f&&!d&&E.observe(f),E.observe(t));let g=d?_(e):null;function A(){let t=_(e);g&&!P(g,t)&&n(),g=t,i=requestAnimationFrame(A)}return d&&A(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=E)||e.disconnect(),E=null,d&&cancelAnimationFrame(i)}}let U=i.cY,G=i.RK,F=i.BN,V=i.UU,B=i.Ej,H=i.jD,j=i.ER,Y=(e,t,n)=>{let r=new Map,s={platform:M,...n},a={...s.platform,_c:r};return(0,i.rD)(e,t,{...s,platform:a})}}