import{g as h,c as y}from"./apexcharts.js";import{p as _}from"./performance-now.js";var i={exports:{}},d=_,r=typeof window>"u"?y:window,f=["moz","webkit"],a="AnimationFrame",e=r["request"+a],l=r["cancel"+a]||r["cancelRequest"+a];for(var c=0;!e&&c<f.length;c++)e=r[f[c]+"Request"+a],l=r[f[c]+"Cancel"+a]||r[f[c]+"CancelRequest"+a];if(!e||!l){var p=0,x=0,o=[],v=1e3/60;e=function(n){if(o.length===0){var t=d(),m=Math.max(0,v-(t-p));p=m+t,setTimeout(function(){var u=o.slice(0);o.length=0;for(var s=0;s<u.length;s++)if(!u[s].cancelled)try{u[s].callback(p)}catch(g){setTimeout(function(){throw g},0)}},Math.round(m))}return o.push({handle:++x,callback:n,cancelled:!1}),x},l=function(n){for(var t=0;t<o.length;t++)o[t].handle===n&&(o[t].cancelled=!0)}}i.exports=function(n){return e.call(r,n)};i.exports.cancel=function(){l.apply(r,arguments)};i.exports.polyfill=function(n){n||(n=r),n.requestAnimationFrame=e,n.cancelAnimationFrame=l};var w=i.exports;const R=h(w);export{R as r};
