// source --> https://limmudfsu.org.il/site/wp-content/themes/illdy/layout/js/pace/pace.min.js?ver=6.8.5 
(function(){function t(t,e){for(var n in e)Y.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t}var c,u,e,n,o,r,s,i,a,v,l,p,w,h,f,d,g,b,k,m,y,S,q,L,x,P,T,R,j,E,O,M,A,N,_,F,C,U,W,X,D,H,I,z,G,B,J,K,Q,V=[].slice,Y={}.hasOwnProperty,Z=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};function $(){}for(y={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},j=function(){var t;return null!=(t="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?t:+new Date},O=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,m=window.cancelAnimationFrame||window.mozCancelAnimationFrame,null==O&&(O=function(t){return setTimeout(t,50)},m=function(t){return clearTimeout(t)}),A=function(e){var n=j(),r=function(){var t=j()-n;return 33<=t?(n=j(),e(t,function(){return O(r)})):setTimeout(r,33-t)};return r()},M=function(){var t=arguments[0],e=arguments[1],n=3<=arguments.length?V.call(arguments,2):[];return"function"==typeof t[e]?t[e].apply(t,n):t[e]},S=function(){for(var t,e,n,r=arguments[0],s=2<=arguments.length?V.call(arguments,1):[],o=0,i=s.length;o<i;o++)if(e=s[o])for(t in e)Y.call(e,t)&&(n=e[t],null!=r[t]&&"object"==typeof r[t]&&null!=n&&"object"==typeof n?S(r[t],n):r[t]=n);return r},g=function(t){for(var e,n,r=e=0,s=0,o=t.length;s<o;s++)n=t[s],r+=Math.abs(n),e++;return r/e},L=function(t,e){var n,r;if(null==t&&(t="options"),null==e&&(e=!0),r=document.querySelector("[data-pace-"+t+"]")){if(n=r.getAttribute("data-pace-"+t),!e)return n;try{return JSON.parse(n)}catch(t){return"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",t):void 0}}},$.prototype.on=function(t,e,n,r){var s;return null==r&&(r=!1),null==this.bindings&&(this.bindings={}),null==(s=this.bindings)[t]&&(s[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:r})},$.prototype.once=function(t,e,n){return this.on(t,e,n,!0)},$.prototype.off=function(t,e){var n,r,s;if(null!=(null!=(r=this.bindings)?r[t]:void 0)){if(null==e)return delete this.bindings[t];for(n=0,s=[];n<this.bindings[t].length;)this.bindings[t][n].handler===e?s.push(this.bindings[t].splice(n,1)):s.push(n++);return s}},$.prototype.trigger=function(){var t,e,n,r,s,o,i,a=arguments[0],u=2<=arguments.length?V.call(arguments,1):[];if(null!=(s=this.bindings)&&s[a]){for(n=0,i=[];n<this.bindings[a].length;)e=(o=this.bindings[a][n]).handler,t=o.ctx,r=o.once,e.apply(null!=t?t:this,u),r?i.push(this.bindings[a].splice(n,1)):i.push(n++);return i}},s=$,v=window.Pace||{},window.Pace=v,S(v,s.prototype),E=v.options=S({},y,window.paceOptions,L()),I=0,G=(J=["ajax","document","eventLag","elements"]).length;I<G;I++)!0===E[C=J[I]]&&(E[C]=y[C]);function tt(){return tt.__super__.constructor.apply(this,arguments)}function et(){this.progress=0}function nt(){this.bindings={}}function rt(){var n,o=this;rt.__super__.constructor.apply(this,arguments),n=function(r){var s=r.open;return r.open=function(t,e,n){return F(t)&&o.trigger("request",{type:t,url:e,request:r}),s.apply(r,arguments)}},window.XMLHttpRequest=function(t){var e=new H(t);return n(e),e};try{q(window.XMLHttpRequest,H)}catch(t){}if(null!=D){window.XDomainRequest=function(){var t=new D;return n(t),t};try{q(window.XDomainRequest,D)}catch(t){}}if(null!=X&&E.ajax.trackWebSockets){window.WebSocket=function(t,e){var n=null!=e?new X(t,e):new X(t);return F("socket")&&o.trigger("request",{type:"socket",url:t,protocols:e,request:n}),n};try{q(window.WebSocket,X)}catch(t){}}}function st(){var t=this;this.elements=[],x().on("request",function(){return t.watch.apply(t,arguments)})}function ot(t){this.selector=t,this.progress=0,this.check()}function it(){var t,e,n=this;this.progress=null!=(e=this.states[document.readyState])?e:100,t=document.onreadystatechange,document.onreadystatechange=function(){return null!=n.states[document.readyState]&&(n.progress=n.states[document.readyState]),"function"==typeof t?t.apply(null,arguments):void 0}}function at(t){this.source=t,this.last=this.sinceLastUpdate=0,this.rate=E.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=M(this.source,"progress"))}Q=Error,t(tt,Q),a=tt,et.prototype.getElement=function(){var t;if(null==this.el){if(!(t=document.querySelector(E.target)))throw new a;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/pace-done/g,""),document.body.className+=" pace-running",this.el.innerHTML='<div class="pace-progress">\n  <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>',null!=t.firstChild?t.insertBefore(this.el,t.firstChild):t.appendChild(this.el)}return this.el},et.prototype.finish=function(){var t=this.getElement();return t.className=t.className.replace("pace-active",""),t.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},et.prototype.update=function(t){return this.progress=t,this.render()},et.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(t){a=t}return this.el=void 0},et.prototype.render=function(){var t,e,n,r,s,o,i;if(null==document.querySelector(E.target))return!1;for(t=this.getElement(),r="translate3d("+this.progress+"%, 0, 0)",s=0,o=(i=["webkitTransform","msTransform","transform"]).length;s<o;s++)e=i[s],t.children[0].style[e]=r;return(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0)&&(t.children[0].setAttribute("data-progress-text",(0|this.progress)+"%"),100<=this.progress?n="99":(n=this.progress<10?"0":"",n+=0|this.progress),t.children[0].setAttribute("data-progress",""+n)),this.lastRenderedProgress=this.progress},et.prototype.done=function(){return 100<=this.progress},u=et,nt.prototype.trigger=function(t,e){var n,r,s,o,i;if(null!=this.bindings[t]){for(i=[],r=0,s=(o=this.bindings[t]).length;r<s;r++)n=o[r],i.push(n.call(this,e));return i}},nt.prototype.on=function(t,e){var n;return null==(n=this.bindings)[t]&&(n[t]=[]),this.bindings[t].push(e)},i=nt,H=window.XMLHttpRequest,D=window.XDomainRequest,X=window.WebSocket,q=function(t,e){var n,r=[];for(n in e.prototype)try{null==t[n]&&"function"!=typeof e[n]?"function"==typeof Object.defineProperty?r.push(Object.defineProperty(t,n,{get:function(){return e.prototype[n]},configurable:!0,enumerable:!0})):r.push(t[n]=e.prototype[n]):r.push(void 0)}catch(t){0}return r},T=[],v.ignore=function(){var t,e=arguments[0],n=2<=arguments.length?V.call(arguments,1):[];return T.unshift("ignore"),t=e.apply(null,n),T.shift(),t},v.track=function(){var t,e=arguments[0],n=2<=arguments.length?V.call(arguments,1):[];return T.unshift("track"),t=e.apply(null,n),T.shift(),t},F=function(t){var e;if(null==t&&(t="GET"),"track"===T[0])return"force";if(!T.length&&E.ajax){if("socket"===t&&E.ajax.trackWebSockets)return!0;if(e=t.toUpperCase(),0<=Z.call(E.ajax.trackMethods,e))return!0}return!1},t(rt,i),l=rt,z=null,_=function(t){for(var e,n=E.ajax.ignoreURLs,r=0,s=n.length;r<s;r++)if("string"==typeof(e=n[r])){if(-1!==t.indexOf(e))return!0}else if(e.test(t))return!0;return!1},(x=function(){return null==z&&(z=new l),z})().on("request",function(t){var e,i,a=t.type,u=t.request,n=t.url;if(!_(n))return v.running||!1===E.restartOnRequestAfter&&"force"!==F(a)?void 0:(i=arguments,"boolean"==typeof(e=E.restartOnRequestAfter||0)&&(e=0),setTimeout(function(){var t,e,n,r,s,o="socket"===a?u.readyState<2:0<(n=u.readyState)&&n<4;if(o){for(v.restart(),s=[],t=0,e=(r=v.sources).length;t<e;t++){if((C=r[t])instanceof c){C.watch.apply(C,i);break}s.push(void 0)}return s}},e))}),st.prototype.watch=function(t){var e,n=t.type,r=t.request,s=t.url;if(!_(s))return e=new("socket"===n?h:f)(r),this.elements.push(e)},c=st,f=function(e){var t,n,r,s,o,i=this;if(this.progress=0,null!=window.ProgressEvent)for(e.addEventListener("progress",function(t){return t.lengthComputable?i.progress=100*t.loaded/t.total:i.progress=i.progress+(100-i.progress)/2},!1),n=0,r=(o=["load","abort","timeout","error"]).length;n<r;n++)t=o[n],e.addEventListener(t,function(){return i.progress=100},!1);else s=e.onreadystatechange,e.onreadystatechange=function(){var t;return 0===(t=e.readyState)||4===t?i.progress=100:3===e.readyState&&(i.progress=50),"function"==typeof s?s.apply(null,arguments):void 0}},h=function(t){for(var e,n,r=this,s=this.progress=0,o=(n=["error","open"]).length;s<o;s++)e=n[s],t.addEventListener(e,function(){return r.progress=100},!1)},n=function(t){var e,n,r,s;for(null==t&&(t={}),this.elements=[],null==t.selectors&&(t.selectors=[]),n=0,r=(s=t.selectors).length;n<r;n++)e=s[n],this.elements.push(new o(e))},ot.prototype.check=function(){var t=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return t.check()},E.elements.checkInterval)},ot.prototype.done=function(){return this.progress=100},o=ot,it.prototype.states={loading:0,interactive:50,complete:100},e=it,r=function(){var e,n,r,s,o,i=this;this.progress=0,o=[],s=0,r=j(),n=setInterval(function(){var t=j()-r-50;return r=j(),o.push(t),o.length>E.eventLag.sampleCount&&o.shift(),e=g(o),++s>=E.eventLag.minSamples&&e<E.eventLag.lagThreshold?(i.progress=100,clearInterval(n)):i.progress=3/(e+3)*100},50)},at.prototype.tick=function(t,e){var n;return null==e&&(e=M(this.source,"progress")),100<=e&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/E.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),n=1-Math.pow(this.progress/100,E.easeFactor),this.progress+=n*this.rate*t,this.progress=Math.min(this.lastProgress+E.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},w=at,k=d=W=b=N=U=null,v.running=!1,P=function(){if(E.restartOnPushState)return v.restart()},null!=window.history.pushState&&(B=window.history.pushState,window.history.pushState=function(){return P(),B.apply(window.history,arguments)}),null!=window.history.replaceState&&(K=window.history.replaceState,window.history.replaceState=function(){return P(),K.apply(window.history,arguments)}),p={ajax:c,elements:n,document:e,eventLag:r},(R=function(){var t,e,n,r,s,o,i,a;for(v.sources=U=[],e=0,r=(o=["ajax","elements","document","eventLag"]).length;e<r;e++)!1!==E[t=o[e]]&&U.push(new p[t](E[t]));for(n=0,s=(a=null!=(i=E.extraSources)?i:[]).length;n<s;n++)C=a[n],U.push(new C(E));return v.bar=b=new u,N=[],W=new w})(),v.stop=function(){return v.trigger("stop"),v.running=!1,b.destroy(),k=!0,null!=d&&("function"==typeof m&&m(d),d=null),R()},v.restart=function(){return v.trigger("restart"),v.stop(),v.start()},v.go=function(){var y;return v.running=!0,b.render(),y=j(),k=!1,d=A(function(t,e){b.progress;for(var n,r,s,o,i,a,u,c,l,p,h,f=u=0,d=!0,g=c=0,m=U.length;c<m;g=++c)for(C=U[g],a=null!=N[g]?N[g]:N[g]=[],o=l=0,p=(s=null!=(h=C.elements)?h:[C]).length;l<p;o=++l)r=s[o],d&=(i=null!=a[o]?a[o]:a[o]=new w(r)).done,i.done||(f++,u+=i.tick(t));return n=u/f,b.update(W.tick(t,n)),b.done()||d||k?(b.update(100),v.trigger("done"),setTimeout(function(){return b.finish(),v.running=!1,v.trigger("hide")},Math.max(E.ghostTime,Math.max(E.minTime-(j()-y),0)))):e()})},v.start=function(t){S(E,t),v.running=!0;try{b.render()}catch(t){a=t}return document.querySelector(".pace")?(v.trigger("start"),v.go()):setTimeout(v.start,50)},"function"==typeof define&&define.amd?define(["pace"],function(){return v}):"object"==typeof exports?module.exports=v:E.startOnPageLoad&&v.start()}).call(this);
//# sourceMappingURL=pace.min.js.map;