i(Y,k))neZ&&ee());){var U=p.callback;if(typeof U=="function"){p.callback=null,b=p.priorityLevel;var z=U(p.expirationTime<=Z);if(Z=e.unstable_now(),typeof z=="function"){p.callback=z,N(Z),I=!0;break t}p===n(d)&&r(d),N(Z)}else r(d);p=n(d)}if(p!==null)I=!0;else{var P=n(f);P!==null&&se(F,P.startTime-Z),I=!1}}break e}finally{p=null,b=k,_=!1}I=void 0}}finally{I?te():$=!1}}}var te;if(typeof O=="function")te=function(){O(J)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,X=he.port2;he.port1.onmessage=J,te=function(){X.postMessage(null)}}else te=function(){T(J,0)};function se(Z,I){K=T(function(){Z(e.unstable_now())},I)}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(Z){Z.callback=null},e.unstable_forceFrameRate=function(Z){0>Z||125