if (self.CavalryLogger) { CavalryLogger.start_js(["GAIna"]); }

__d("KeyframesEnvironment",["Promise","KeyframesLoop","NavigationMetrics","debounceCore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=24,i=1e3/h,j=325,k="tti";c("NavigationMetrics").addRetroactiveListener(c("NavigationMetrics").Events.EVENT_OCCURRED,function(r,s){var event=s.event;return k=event});function l(){var r=arguments.length<=0||arguments[0]===undefined?j:arguments[0];return new(c("Promise"))(function(s){var t=c("debounceCore")(function(u){u.cancel();s()},r),u=new(c("KeyframesLoop"))(function(v){if(v>i)t(u)});t(u)})}var m=new(c("Promise"))(function(r){__p&&__p();var s=false,t=null;t=c("NavigationMetrics").addRetroactiveListener(c("NavigationMetrics").Events.NAVIGATION_DONE,function(){if(t){t.remove();t=null}if(!s){s=true;r()}})});function n(r){return m.then(function(){return l(r)})}var o=n(),p=false;o.done(function(){return p=true});var q={waitForRenderLoopToStabilize:function r(s){return l(s)},waitForRenderLoopToStabilizeOncePageIsLoaded:function r(s){return n(s)},whenRenderLoopHasBeenStableOnce:function r(){return o},hasRenderLoopBeenStableOnce:function r(){return p},getCurrentWWWSitePhase:function r(){return k}};f.exports=q}),null);