/**
 * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
 * Original file: /npm/scheduler@0.23.0/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var e={exports:{}},n={};
/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
!function(e){function n(e,n){var t=e.length;e.push(n);e:for(;0<t;){var r=t-1>>>1,l=e[r];if(!(0<a(l,n)))break e;e[r]=n,e[t]=l,t=r}}function t(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,l=e.length,i=l>>>1;r<i;){var o=2*(r+1)-1,u=e[o],s=o+1,c=e[s];if(0>a(u,t))s<l&&0>a(c,u)?(e[r]=c,e[s]=t,r=s):(e[r]=u,e[o]=t,r=o);else{if(!(s<l&&0>a(c,t)))break e;e[r]=c,e[s]=t,r=s}}}return n}function a(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var u=[],s=[],c=1,f=null,b=3,p=!1,d=!1,_=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,x="undefined"!=typeof setImmediate?setImmediate:null;function m(e){for(var a=t(s);null!==a;){if(null===a.callback)r(s);else{if(!(a.startTime<=e))break;r(s),a.sortIndex=a.expirationTime,n(u,a)}a=t(s)}}function g(e){if(_=!1,m(e),!d)if(null!==t(u))d=!0,N(k);else{var n=t(s);null!==n&&R(g,n.startTime-e)}}function k(n,a){d=!1,_&&(_=!1,y(I),I=-1),p=!0;var l=b;try{for(m(a),f=t(u);null!==f&&(!(f.expirationTime>a)||n&&!L());){var i=f.callback;if("function"==typeof i){f.callback=null,b=f.priorityLevel;var o=i(f.expirationTime<=a);a=e.unstable_now(),"function"==typeof o?f.callback=o:f===t(u)&&r(u),m(a)}else r(u);f=t(u)}if(null!==f)var c=!0;else{var v=t(s);null!==v&&R(g,v.startTime-a),c=!1}return c}finally{f=null,b=l,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var h,w=!1,P=null,I=-1,C=5,T=-1;function L(){return!(e.unstable_now()-T<C)}function F(){if(null!==P){var n=e.unstable_now();T=n;var t=!0;try{t=P(!0,n)}finally{t?h():(w=!1,P=null)}}else w=!1}if("function"==typeof x)h=function(){x(F)};else if("undefined"!=typeof MessageChannel){var E=new MessageChannel,M=E.port2;E.port1.onmessage=F,h=function(){M.postMessage(null)}}else h=function(){v(F,0)};function N(e){P=e,w||(w=!0,h())}function R(n,t){I=v((function(){n(e.unstable_now())}),t)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){d||p||(d=!0,N(k))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return t(u)},e.unstable_next=function(e){switch(b){case 1:case 2:case 3:var n=3;break;default:n=b}var t=b;b=n;try{return e()}finally{b=t}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=b;b=e;try{return n()}finally{b=t}},e.unstable_scheduleCallback=function(r,a,l){var i=e.unstable_now();switch("object"==typeof l&&null!==l?l="number"==typeof(l=l.delay)&&0<l?i+l:i:l=i,r){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return r={id:c++,callback:a,priorityLevel:r,startTime:l,expirationTime:o=l+o,sortIndex:-1},l>i?(r.sortIndex=l,n(s,r),null===t(u)&&r===t(s)&&(_?(y(I),I=-1):_=!0,R(g,l-i))):(r.sortIndex=o,n(u,r),d||p||(d=!0,N(k))),r},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(e){var n=b;return function(){var t=b;b=n;try{return e.apply(this,arguments)}finally{b=t}}}}(n),e.exports=n;var t=e.exports,r=e.exports.unstable_IdlePriority,a=e.exports.unstable_ImmediatePriority,l=e.exports.unstable_LowPriority,i=e.exports.unstable_NormalPriority,o=e.exports.unstable_Profiling,u=e.exports.unstable_UserBlockingPriority,s=e.exports.unstable_cancelCallback,c=e.exports.unstable_continueExecution,f=e.exports.unstable_forceFrameRate,b=e.exports.unstable_getCurrentPriorityLevel,p=e.exports.unstable_getFirstCallbackNode,d=e.exports.unstable_next,_=e.exports.unstable_now,v=e.exports.unstable_pauseExecution,y=e.exports.unstable_requestPaint,x=e.exports.unstable_runWithPriority,m=e.exports.unstable_scheduleCallback,g=e.exports.unstable_shouldYield,k=e.exports.unstable_wrapCallback;export{t as default,r as unstable_IdlePriority,a as unstable_ImmediatePriority,l as unstable_LowPriority,i as unstable_NormalPriority,o as unstable_Profiling,u as unstable_UserBlockingPriority,s as unstable_cancelCallback,c as unstable_continueExecution,f as unstable_forceFrameRate,b as unstable_getCurrentPriorityLevel,p as unstable_getFirstCallbackNode,d as unstable_next,_ as unstable_now,v as unstable_pauseExecution,y as unstable_requestPaint,x as unstable_runWithPriority,m as unstable_scheduleCallback,g as unstable_shouldYield,k as unstable_wrapCallback};