@trendyol/baklava
Version:
Trendyol Baklava Design System
3 lines (2 loc) • 17.4 kB
JavaScript
var D=Math.min,O=Math.max,tt=Math.round,et=Math.floor,Y=t=>({x:t,y:t}),Mt={left:"right",right:"left",bottom:"top",top:"bottom"},Bt={start:"end",end:"start"};function st(t,e,n){return O(t,D(e,n))}function $(t,e){return typeof t=="function"?t(e):t}function F(t){return t.split("-")[0]}function _(t){return t.split("-")[1]}function dt(t){return t==="x"?"y":"x"}function rt(t){return t==="y"?"height":"width"}function q(t){return["top","bottom"].includes(F(t))?"y":"x"}function ct(t){return dt(q(t))}function ht(t,e,n){n===void 0&&(n=!1);let o=_(t),i=ct(t),s=rt(i),r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=Z(r)),[r,Z(r)]}function pt(t){let e=Z(t);return[it(t),e,it(e)]}function it(t){return t.replace(/start|end/g,e=>Bt[e])}function Ft(t,e,n){let o=["left","right"],i=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:r;default:return[]}}function xt(t,e,n,o){let i=_(t),s=Ft(F(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(it)))),s}function Z(t){return t.replace(/left|right|bottom|top/g,e=>Mt[e])}function Nt(t){return{top:0,right:0,bottom:0,left:0,...t}}function lt(t){return typeof t!="number"?Nt(t):{top:t,right:t,bottom:t,left:t}}function j(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function wt(t,e,n){let{reference:o,floating:i}=t,s=q(e),r=ct(e),l=rt(r),c=F(e),f=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[l]/2-i[l]/2,a;switch(c){case"top":a={x:d,y:o.y-i.height};break;case"bottom":a={x:d,y:o.y+o.height};break;case"right":a={x:o.x+o.width,y:u};break;case"left":a={x:o.x-i.width,y:u};break;default:a={x:o.x,y:o.y}}switch(_(e)){case"start":a[r]-=h*(n&&f?-1:1);break;case"end":a[r]+=h*(n&&f?-1:1);break}return a}var yt=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=s.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e)),f=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=wt(f,o,c),h=o,a={},m=0;for(let g=0;g<l.length;g++){let{name:x,fn:p}=l[g],{x:w,y,data:A,reset:v}=await p({x:d,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:a,rects:f,platform:r,elements:{reference:t,floating:e}});if(d=w!=null?w:d,u=y!=null?y:u,a={...a,[x]:{...a[x],...A}},v&&m<=50){m++,typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(f=v.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:d,y:u}=wt(f,h,c)),g=-1;continue}}return{x:d,y:u,placement:h,strategy:i,middlewareData:a}};async function ft(t,e){var n;e===void 0&&(e={});let{x:o,y:i,platform:s,rects:r,elements:l,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:a=0}=$(e,t),m=lt(a),x=l[h?u==="floating"?"reference":"floating":u],p=j(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:f,rootBoundary:d,strategy:c})),w=u==="floating"?{...r.floating,x:o,y:i}:r.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),A=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},v=j(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:y,strategy:c}):w);return{top:(p.top-v.top+m.top)/A.y,bottom:(v.bottom-p.bottom+m.bottom)/A.y,left:(p.left-v.left+m.left)/A.x,right:(v.right-p.right+m.right)/A.x}}var Wt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:o,placement:i,rects:s,platform:r,elements:l,middlewareData:c}=e,{element:f,padding:d=0}=$(t,e)||{};if(f==null)return{};let u=lt(d),h={x:n,y:o},a=ct(i),m=rt(a),g=await r.getDimensions(f),x=a==="y",p=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",A=s.reference[m]+s.reference[a]-h[a]-s.floating[m],v=h[a]-s.reference[a],b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f)),R=b?b[y]:0;(!R||!await(r.isElement==null?void 0:r.isElement(b)))&&(R=l.floating[y]||s.floating[m]);let M=A/2-v/2,W=R/2-g[m]/2-1,C=D(u[p],W),z=D(u[w],W),T=C,I=R-g[m]-z,E=R/2-g[m]/2+M,S=st(T,E,I),L=!c.arrow&&_(i)!=null&&E!=S&&s.reference[m]/2-(E<T?C:z)-g[m]/2<0,B=L?E<T?E-T:E-I:0;return{[a]:h[a]+B,data:{[a]:S,centerOffset:E-S-B,...L&&{alignmentOffset:B}},reset:L}}});var Ht=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;let{placement:i,middlewareData:s,rects:r,initialPlacement:l,platform:c,elements:f}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:a="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=$(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};let p=F(i),w=F(l)===l,y=await(c.isRTL==null?void 0:c.isRTL(f.floating)),A=h||(w||!g?[Z(l)]:pt(l));!h&&m!=="none"&&A.push(...xt(l,g,m,y));let v=[l,...A],b=await ft(e,x),R=[],M=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&R.push(b[p]),u){let T=ht(i,r,y);R.push(b[T[0]],b[T[1]])}if(M=[...M,{placement:i,overflows:R}],!R.every(T=>T<=0)){var W,C;let T=(((W=s.flip)==null?void 0:W.index)||0)+1,I=v[T];if(I)return{data:{index:T,overflows:M},reset:{placement:I}};let E=(C=M.filter(S=>S.overflows[0]<=0).sort((S,L)=>S.overflows[1]-L.overflows[1])[0])==null?void 0:C.placement;if(!E)switch(a){case"bestFit":{var z;let S=(z=M.map(L=>[L.placement,L.overflows.filter(B=>B>0).reduce((B,mt)=>B+mt,0)]).sort((L,B)=>L[1]-B[1])[0])==null?void 0:z[0];S&&(E=S);break}case"initialPlacement":E=l;break}if(i!==E)return{reset:{placement:E}}}return{}}}};function vt(t){let e=D(...t.map(s=>s.left)),n=D(...t.map(s=>s.top)),o=O(...t.map(s=>s.right)),i=O(...t.map(s=>s.bottom));return{x:e,y:n,width:o-e,height:i-n}}function Vt(t){let e=t.slice().sort((i,s)=>i.y-s.y),n=[],o=null;for(let i=0;i<e.length;i++){let s=e[i];!o||s.y-o.y>o.height/2?n.push([s]):n[n.length-1].push(s),o=s}return n.map(i=>j(vt(i)))}var zt=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){let{placement:n,elements:o,rects:i,platform:s,strategy:r}=e,{padding:l=2,x:c,y:f}=$(t,e),d=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(o.reference))||[]),u=Vt(d),h=j(vt(d)),a=lt(l);function m(){if(u.length===2&&u[0].left>u[1].right&&c!=null&&f!=null)return u.find(x=>c>x.left-a.left&&c<x.right+a.right&&f>x.top-a.top&&f<x.bottom+a.bottom)||h;if(u.length>=2){if(q(n)==="y"){let C=u[0],z=u[u.length-1],T=F(n)==="top",I=C.top,E=z.bottom,S=T?C.left:z.left,L=T?C.right:z.right,B=L-S,mt=E-I;return{top:I,bottom:E,left:S,right:L,width:B,height:mt,x:S,y:I}}let x=F(n)==="left",p=O(...u.map(C=>C.right)),w=D(...u.map(C=>C.left)),y=u.filter(C=>x?C.left===w:C.right===p),A=y[0].top,v=y[y.length-1].bottom,b=w,R=p,M=R-b,W=v-A;return{top:A,bottom:v,left:b,right:R,width:M,height:W,x:b,y:A}}return h}let g=await s.getElementRects({reference:{getBoundingClientRect:m},floating:o.floating,strategy:r});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};async function It(t,e){let{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=F(n),l=_(n),c=q(n)==="y",f=["left","top"].includes(r)?-1:1,d=s&&c?-1:1,u=$(e,t),{mainAxis:h,crossAxis:a,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof m=="number"&&(a=l==="end"?m*-1:m),c?{x:a*d,y:h*f}:{x:h*f,y:a*d}}var Yt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){let{x:n,y:o}=e,i=await It(e,t);return{x:n+i.x,y:o+i.y,data:i}}}},jt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:l={fn:x=>{let{x:p,y:w}=x;return{x:p,y:w}}},...c}=$(t,e),f={x:n,y:o},d=await ft(e,c),u=q(F(i)),h=dt(u),a=f[h],m=f[u];if(s){let x=h==="y"?"top":"left",p=h==="y"?"bottom":"right",w=a+d[x],y=a-d[p];a=st(w,a,y)}if(r){let x=u==="y"?"top":"left",p=u==="y"?"bottom":"right",w=m+d[x],y=m-d[p];m=st(w,m,y)}let g=l.fn({...e,[h]:a,[u]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}};var Xt=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:n,rects:o,platform:i,elements:s}=e,{apply:r=()=>{},...l}=$(t,e),c=await ft(e,l),f=F(n),d=_(n),u=q(n)==="y",{width:h,height:a}=o.floating,m,g;f==="top"||f==="bottom"?(m=f,g=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,m=d==="end"?"top":"bottom");let x=a-c[m],p=h-c[g],w=!e.middlewareData.shift,y=x,A=p;if(u){let b=h-c.left-c.right;A=d||w?D(p,b):b}else{let b=a-c.top-c.bottom;y=d||w?D(x,b):b}if(w&&!d){let b=O(c.left,0),R=O(c.right,0),M=O(c.top,0),W=O(c.bottom,0);u?A=h-2*(b!==0||R!==0?b+R:O(c.left,c.right)):y=a-2*(M!==0||W!==0?M+W:O(c.top,c.bottom))}await r({...e,availableWidth:A,availableHeight:y});let v=await i.getDimensions(s.floating);return h!==v.width||a!==v.height?{reset:{rects:!0}}:{}}}};function X(t){return At(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(At(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function At(t){return t instanceof Node||t instanceof P(t).Node}function V(t){return t instanceof Element||t instanceof P(t).Element}function N(t){return t instanceof HTMLElement||t instanceof P(t).HTMLElement}function bt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}function J(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=k(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ot(t){return["table","td","th"].includes(X(t))}function at(t){let e=ut(),n=k(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Rt(t){let e=K(t);for(;N(e)&&!nt(e);){if(at(e))return e;e=K(e)}return null}function ut(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nt(t){return["html","body","#document"].includes(X(t))}function k(t){return P(t).getComputedStyle(t)}function ot(t){return V(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(t){if(X(t)==="html")return t;let e=t.assignedSlot||t.parentNode||bt(t)&&t.host||H(t);return bt(e)?e.host:e}function Ct(t){let e=K(t);return nt(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&J(e)?e:Ct(e)}function G(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=Ct(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=P(i);return s?e.concat(r,r.visualViewport||[],J(i)?i:[],r.frameElement&&n?G(r.frameElement):[]):e.concat(i,G(i,[],n))}function St(t){let e=k(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=N(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,l=tt(n)!==s||tt(o)!==r;return l&&(n=s,o=r),{width:n,height:o,$:l}}function gt(t){return V(t)?t:t.contextElement}function Q(t){let e=gt(t);if(!N(e))return Y(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:s}=St(e),r=(s?tt(n.width):n.width)/o,l=(s?tt(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}var $t=Y(0);function Pt(t){let e=P(t);return!ut()||!e.visualViewport?$t:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _t(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function U(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),s=gt(t),r=Y(1);e&&(o?V(o)&&(r=Q(o)):r=Q(t));let l=_t(s,n,o)?Pt(s):Y(0),c=(i.left+l.x)/r.x,f=(i.top+l.y)/r.y,d=i.width/r.x,u=i.height/r.y;if(s){let h=P(s),a=o&&V(o)?P(o):o,m=h.frameElement;for(;m&&o&&a!==h;){let g=Q(m),x=m.getBoundingClientRect(),p=k(m),w=x.left+(m.clientLeft+parseFloat(p.paddingLeft))*g.x,y=x.top+(m.clientTop+parseFloat(p.paddingTop))*g.y;c*=g.x,f*=g.y,d*=g.x,u*=g.y,c+=w,f+=y,m=P(m).frameElement}}return j({width:d,height:u,x:c,y:f})}function qt(t){let{rect:e,offsetParent:n,strategy:o}=t,i=N(n),s=H(n);if(n===s)return e;let r={scrollLeft:0,scrollTop:0},l=Y(1),c=Y(0);if((i||!i&&o!=="fixed")&&((X(n)!=="body"||J(s))&&(r=ot(n)),N(n))){let f=U(n);l=Q(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-r.scrollLeft*l.x+c.x,y:e.y*l.y-r.scrollTop*l.y+c.y}}function Kt(t){return Array.from(t.getClientRects())}function Lt(t){return U(H(t)).left+ot(t).scrollLeft}function Ut(t){let e=H(t),n=ot(t),o=t.ownerDocument.body,i=O(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=O(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),r=-n.scrollLeft+Lt(t),l=-n.scrollTop;return k(o).direction==="rtl"&&(r+=O(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:l}}function Gt(t,e){let n=P(t),o=H(t),i=n.visualViewport,s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;let f=ut();(!f||f&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:r,x:l,y:c}}function Jt(t,e){let n=U(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=N(t)?Q(t):Y(1),r=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,f=o*s.y;return{width:r,height:l,x:c,y:f}}function Et(t,e,n){let o;if(e==="viewport")o=Gt(t,n);else if(e==="document")o=Ut(H(t));else if(V(e))o=Jt(e,n);else{let i=Pt(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return j(o)}function Dt(t,e){let n=K(t);return n===e||!V(n)||nt(n)?!1:k(n).position==="fixed"||Dt(n,e)}function Qt(t,e){let n=e.get(t);if(n)return n;let o=G(t,[],!1).filter(l=>V(l)&&X(l)!=="body"),i=null,s=k(t).position==="fixed",r=s?K(t):t;for(;V(r)&&!nt(r);){let l=k(r),c=at(r);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||J(r)&&!c&&Dt(t,r))?o=o.filter(d=>d!==r):i=l,r=K(r)}return e.set(t,o),o}function Zt(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,r=[...n==="clippingAncestors"?Qt(e,this._c):[].concat(n),o],l=r[0],c=r.reduce((f,d)=>{let u=Et(e,d,i);return f.top=O(u.top,f.top),f.right=D(u.right,f.right),f.bottom=D(u.bottom,f.bottom),f.left=O(u.left,f.left),f},Et(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function te(t){return St(t)}function ee(t,e,n){let o=N(e),i=H(e),s=n==="fixed",r=U(t,!0,s,e),l={scrollLeft:0,scrollTop:0},c=Y(0);if(o||!o&&!s)if((X(e)!=="body"||J(i))&&(l=ot(e)),o){let f=U(e,!0,s,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else i&&(c.x=Lt(i));return{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}function Tt(t,e){return!N(t)||k(t).position==="fixed"?null:e?e(t):t.offsetParent}function kt(t,e){let n=P(t);if(!N(t))return n;let o=Tt(t,e);for(;o&&Ot(o)&&k(o).position==="static";)o=Tt(o,e);return o&&(X(o)==="html"||X(o)==="body"&&k(o).position==="static"&&!at(o))?n:o||Rt(t)||n}var ne=async function(t){let{reference:e,floating:n,strategy:o}=t,i=this.getOffsetParent||kt,s=this.getDimensions;return{reference:ee(e,await i(n),o),floating:{x:0,y:0,...await s(n)}}};function oe(t){return k(t).direction==="rtl"}var ie={convertOffsetParentRelativeRectToViewportRelativeRect:qt,getDocumentElement:H,getClippingRect:Zt,getOffsetParent:kt,getElementRects:ne,getClientRects:Kt,getDimensions:te,getScale:Q,isElement:V,isRTL:oe};function se(t,e){let n=null,o,i=H(t);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function r(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();let{left:f,top:d,width:u,height:h}=t.getBoundingClientRect();if(l||e(),!u||!h)return;let a=et(d),m=et(i.clientWidth-(f+u)),g=et(i.clientHeight-(d+h)),x=et(f),w={rootMargin:-a+"px "+-m+"px "+-g+"px "+-x+"px",threshold:O(0,D(1,c))||1},y=!0;function A(v){let b=v[0].intersectionRatio;if(b!==c){if(!y)return r();b?r(!1,b):o=setTimeout(()=>{r(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(A,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,w)}n.observe(t)}return r(!0),s}function ye(t,e,n,o){o===void 0&&(o={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=gt(t),d=i||s?[...f?G(f):[],...G(e)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),s&&p.addEventListener("resize",n)});let u=f&&l?se(f,n):null,h=-1,a=null;r&&(a=new ResizeObserver(p=>{let[w]=p;w&&w.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{a&&a.observe(e)})),n()}),f&&!c&&a.observe(f),a.observe(e));let m,g=c?U(t):null;c&&x();function x(){let p=U(t);g&&(p.x!==g.x||p.y!==g.y||p.width!==g.width||p.height!==g.height)&&n(),g=p,m=requestAnimationFrame(x)}return n(),()=>{d.forEach(p=>{i&&p.removeEventListener("scroll",n),s&&p.removeEventListener("resize",n)}),u&&u(),a&&a.disconnect(),a=null,c&&cancelAnimationFrame(m)}}var ve=(t,e,n)=>{let o=new Map,i={platform:ie,...n},s={...i.platform,_c:o};return yt(t,e,{...i,platform:s})};export{Wt as a,Ht as b,zt as c,Yt as d,jt as e,Xt as f,ye as g,ve as h};
//# sourceMappingURL=chunk-EZSEQHRH.js.map