!function(e,t){"use strict";"object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)thrownewError("jQuery requires a window with a document");returnt(e)}:t(e)}("undefined"!=typeofwindow?window:this,(function(e,t){"use strict";varn=[],r=Object.getPrototypeOf,i=n.slice,a=n.flat?function(e){returnn.flat.call(e)}:function(e){returnn.concat.apply([],e)},o=n.push,s=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,A=c.toString,d=A.call(Object),h={},f=function(e){return"function"==typeofe&&"number"!=typeofe.nodeType&&"function"!=typeofe.item},p=function(e){returnnull!=e&&e===e.window},g=e.document,m={type:!0,src:!0,nonce:!0,noModule:!0};functiony(e,t,n){varr,i,a=(n=n||g).createElement("script");if(a.text=e,t)for(rinm)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}functionv(e){returnnull==e?e+"":"object"==typeofe||"function"==typeofe?u[l.call(e)]||"object":typeofe}varw="3.6.0",x=function(e,t){returnnewx.fn.init(e,t)};functionb(e){vart=!!e&&"length"ine&&e.length,n=v(e);return!f(e)&&!p(e)&&("array"===n||0===t||"number"==typeoft&&t>0&&t-1ine)}x.fn=x.prototype={jquery:w,constructor:x,length:0,toArray:function(){returni.call(this)},get:function(e){returnnull==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){vart=x.merge(this.constructor(),e);returnt.prevObject=this,t},each:function(e){returnx.each(this,e)},map:function(e){returnthis.pushStack(x.map(this,(function(t,n){returne.call(t,n,t)})))},slice:function(){returnthis.pushStack(i.apply(this,arguments))},first:function(){returnthis.eq(0)},last:function(){returnthis.eq(-1)},even:function(){returnthis.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){returnthis.pushStack(x.grep(this,(function(e,t){returnt%2})))},eq:function(e){vart=this.length,n=+e+(e<0?t:0);returnthis.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){returnthis.prevObject||this.constructor()},push:o,sort:n.sort,splice:n.splice},x.extend=x.fn.extend=function(){vare,t,n,r,i,a,o=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeofo&&(l=o,o=arguments[s]||{},s++),"object"==typeofo||f(o)||(o={}),s===u&&(o=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(tine)r=e[t],"__proto__"!==t&&o!==r&&(l&&r&&(x.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],a=i&&!Array.isArray(n)?[]:i||x.isPlainObject(n)?n:{},i=!1,o[t]=x.extend(l,a,r)):void0!==r&&(o[t]=r));returno},x.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){thrownewError(e)},noop:function(){},isPlainObject:function(e){vart,n;return!(!e||"[object Object]"!==l.call(e))&&(!(t=r(e))||"function"==typeof(n=c.call(t,"constructor")&&t.constructor)&&A.call(n)===d)},isEmptyObject:function(e){vart;for(tine)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){varn,r=0;if(b(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);elsefor(rine)if(!1===t.call(e[r],r,e[r]))break;returne},makeArray:function(e,t){varn=t||[];returnnull!=e&&(b(Object(e))?x.merge(n,"string"==typeofe?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){returnnull==t?-1:s.call(t,e,n)},merge:function(e,t){for(varn=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];returne.length=i,e},grep:function(e,t,n){for(varr=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!==o&&r.push(e[i]);returnr},map:function(e,t,n){varr,i,o=0,s=[];if(b(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);elsefor(oine)null!=(i=t(e[o],o,n))&&s.push(i);returna(s)},guid:1,support:h}),"function"==typeofSymbol&&(x.fn[Symbol.iterator]=n[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));varC=
function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define([],t):"object"==typeofexports?exports.NoSleep=t():e.NoSleep=t()}(this,(function(){returnfunction(e){vart={};functionn(r){if(t[r])returnt[r].exports;vari=t[r]={i:r,l:!1,exports:{}};returne[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}returnn.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varr=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(variine)n.d(r,i,function(t){returne[t]}.bind(null,i));returnr},n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,"a",t),t},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";varr=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}();vari=n(1),a=i.webm,o=i.mp4,s=function(){return"undefined"!=typeofnavigator&&parseFloat((""+(/CPU.*OS ([0-9_]{3,4})[0-9_]{0,1}|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))<10&&!window.MSStream},u=function(){return"wakeLock"innavigator},l=function(){functione(){vart=this;if(function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,e),this.enabled=!1,u()){this._wakeLock=null;varn=function(){null!==t._wakeLock&&"visible"===document.visibilityState&&t.enable()};document.addEventListener("visibilitychange",n),document.addEventListener("fullscreenchange",n)}elses()?this.noSleepTimer=null:(this.noSleepVideo=document.createElement("video"),this.noSleepVideo.setAttribute("title","No Sleep"),this.noSleepVideo.setAttribute("playsinline",""),this._addSourceToVideo(this.noSleepVideo,"webm",a),this._addSourceToVideo(this.noSleepVideo,"mp4",o),this.noSleepVideo.addEventListener("loadedmetadata",(function(){t.noSleepVideo.duration<=1?t.noSleepVideo.setAttribute("loop",""):t.noSleepVideo.addEventListener("timeupdate",(function(){t.noSleepVideo.currentTime>.5&&(t.noSleepVideo.currentTime=Math.random())}))})))}returnr(e,[{key:"_addSourceToVideo",value:function(e,t,n){varr=document.createElement("source");r.src=n,r.type="video/"+t,e.appendChild(r)}},{key:"enable",value:function(){vare=this;returnu()?navigator.wakeLock.request("screen").then((function(t){e._wakeLock=t,e.enabled=!0,console.log("Wake Lock active."),e._wakeLock.addEventListener("release",(function(){console.log("Wake Lock released.")}))})).catch((function(t){throwe.enabled=!1,console.error(t.name+", "+t.message),t})):s()?(this.disable(),console.warn("\n NoSleep enabled for older iOS devices. This can interrupt\n active or long-running network requests from completing successfully.\n See https://github.com/richtr/NoSleep.js/issues/15 for more details.\n "),this.noSleepTimer=window.setInterval((function(){document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))}),15e3),this.enabled=!0,Promise.resolve()):this.noSleepVideo.play().then((function(t){returne.enabled=!0,t})).catch((function(t){throwe.enabled=!1,t}))}},{key:"disable",value:function(){u()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):s()?this.noSleepTimer&&(console.warn("\n NoSleep now disabled for older iOS devices.\n "),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}},{key:"isEnabled",get:function(){returnthis.enabled}}]),e}(