PageSourceSearch

https://redbarrelsgames.com/wp-content/themes/redbarrelsgames/dist…ons_index_js.a02d3fa14be46039bc7f.bundle.js

js redbarrelsgames.com collected 2026-10-02 05:06:53 UTC 31,271 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkredbarrelsgames=self.webpackChunkredbarrelsgames||[]).push([["src_js_transitions_index_js"],{
1"./src/js/components/Video.js":(t,e,n)=>{n.d(e,{Z:()=>l});var i=n("./src/js/core/power-mode.js"),o=n("./src/js/utils/breakpoint.js"),r=n("./src/js/utils/viewport.js");function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=["(min-width: 768px)","(min-width: 1200px)"];const l=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this._action=this.el.paused?"pause":"play",this._src=this.el.dataset.src||this.el.src,this._src_mobile=this.el.dataset.srcMobile,this._src_tablet=this.el.dataset.srcTablet,this._poster=this.el.dataset.poster,this._powerModeLow=i.Z.low&&!1===n,this._onBreakpointChange=this._onBreakpointChange.bind(this),this._powerModeLow||this._src&&(this._src_mobile||this._src_tablet)&&(this._bp=new o.Z(a,this._onBreakpointChange)),this.init()}var e,n,l;return e=t,n=[{key:"init",value:function(){this._bindEvents(),this._powerModeLow?this._poster&&this.el.setAttribute("poster",this._poster):(this._bp||this._src)&&this.el.src!==this.src&&(this.el.setAttribute("src",this.src),this["play"===this._action?"play":"pause"]())}},{key:"destroy",value:function(){this._unbindEvents(),this._bp&&this._bp.dispose(),this.el=null,this._action=null,this._playPromise=null,this._src=null,this._src_mobile=null,this._src_tablet=null,this._poster=null,this._bp=null,this._powerModeLow=null,this._onBreakpointChange=null}},{key:"play",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this;this.el&&(this._powerModeLow||"play"===this._action&&!1===e||(this._action="play",this._playPromise||(this._playPromise=null===(t=this.el)||void 0===t?void 0:t.play(),this._playPromise.finally((function(){n._playPromise=null})),this._playPromise.catch((function(){n._action=null})))))}},{key:"pause",value:function(){var t,e=this;this.el&&(this._powerModeLow||"pause"!==this._action&&(this._action="pause",this._playPromise?this._playPromise.then((function(){var t;return null===(t=e.el)||void 0===t?void 0:t.pause()})):null===(t=this.el)||void 0===t||t.pause()))}},{key:"seek",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.el&&(this.el.currentTime=t)}},{key:"_bindEvents",value:function(){var t;null===(t=this._bp)||void 0===t||t.on()}},{key:"_unbindEvents",value:function(){var t;null===(t=this._bp)||void 0===t||t.off()}},{key:"_onBreakpointChange",value:function(){this.src!==this.el.src&&(this._powerModeLow||("play"===this._action&&this.el.pause(),this.el.setAttribute("src",this.src)),"play"===this._action&&this.play(!0))}},{key:"playing",get:function(){return"play"===this._action}},{key:"src",get:function(){return this._src_mobile||this._src_tablet?r.Z.width<768?this._src_mobile?this._src_mobile:this._src_tablet:r.Z.width<1200&&this._src_tablet?this._src_tablet:this._src:this._src}}],n&&s(e.prototype,n),l&&s(e,l),t}()},
1"./src/js/core/sfx.js":(t,e,n)=>{n.d(e,{Z:()=>y});var i=n("./node_modules/animejs/lib/anime.es.js"),o=n("./node_modules/eventemitter2/lib/eventemitter2.js"),r=n.n(o),s=n("./src/js/core/emitter.js"),a=n("./src/js/core/windmill.js"),l=n("./src/js/utils/dom.js"),u=n("./src/js/utils/listener.js");function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e){return!e||"object"!=((n=e)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof e?c(t):e;var n}function p(t,e){return p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},p(t,e)}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}const y=new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(h,t);var e,n,o,r=_(h);function h(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(t=r.call(this)).target=null,t.click=(0,l.$)("#sfx-click"),t.rollover=(0,l.$)("#sfx-rollover"),t.menuOpen=(0,l.$)("#sfx-menu-open"),t.menuClose=(0,l.$)("#sfx-menu-close"),t.soundtrack=(0,l.$)("#sfx-soundtrack"),t.click&&(t.click.volume=.1),t.soundtrack&&(t.soundtrack.volume=1),t._interacted=!1,t._muted=!0,t._playing=!1,t._ready=!1,t._volume={volume:1},t._siteVideoOpened=!1,t._onClick=t._onClick.bind(c(t)),t._onRollover=t._onRollover.bind(c(t)),t._onReady=t._onReady.bind(c(t)),t._onFadeUpdate=t._onFadeUpdate.bind(c(t)),t._onFadeOutCompleted=t._onFadeOutCompleted.bind(c(t)),t._onSiteVideoPlay=t._onSiteVideoPlay.bind(c(t)),t._onSiteVideoClosed=t._onSiteVideoClosed.bind(c(t)),t}return e=h,n=[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.d1;this._muted||(this.click&&this.click.setAttribute("preload","auto"),this.rollover&&this.rollover.setAttribute("preload","auto"),this.menuOpen&&this.menuOpen.setAttribute("preload","auto"),this.menuClose&&this.menuClose.setAttribute("preload","auto"),this.soundtrack&&this.soundtrack.setAttribute("preload","auto")),a.Z.once("done",this._onReady),(0,u.on)(t,"pointerdown",this._onClick),s.Z.on("SiteVideo.play",this._onSiteVideoPlay),s.Z.on("SiteVideo.oembed",this._onSiteVideoPlay),s.Z.on("SiteVideo.closed",this._onSiteVideoClosed),this.rollover&&(0,u.on)("a, button","mouseenter",this._onRollover)}},{key:"toggle",value:function(){this.muted=!this._muted}},{key:"menu",value:function(){var t,e,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!this._muted&&this._interacted&&(n?null===(t=this.menuOpen)||void 0===t||t.play():null===(e=this.menuClose)||void 0===e||e.play())}},{key:"_startSoundtrack",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.soundtrack&&(t&&(0,i.Z)({targets:this._volume,volume:1,duration:3e3,easing:"linear",begin:this._onFadeUpdate,update:this._onFadeUpdate}),this._playing||this.soundtrack.play(),this._playing=!0)}},{key:"_stopSoundtrack",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.soundtrack&&(t?(0,i.Z)({targets:this._volume,volume:0,duration:2e3,easing:"linear",update:this._onFadeUpdate,complete:this._onFadeOutCompleted}):this._onFadeOutCompleted())}},{key:"_onClick",value:function(t){this._muted||(this._interacted=!0,t&&t.target.hasAttribute("data-sfx-prevent")||(this.click&&this.click.play(),this._ready&&this._startSoundtrack()))}},{key:"_onRollover",value:function(){!this._muted&&this._interacted&&this.rollover&&this.rollover.play()}},{key:"_onReady",value:function(){this._ready=!0,!this._muted&&this.soundtrack&&this._interacted&&this._startSoundtrack()}},{key:"_onFadeUpdate",value:function(){this.soundtrack&&(this.soundtrack.volume=this._volume.volume)}},{key:"_onFadeOutCompleted",value:function(){this.soundtrack&&this.soundtrack.pause(),this._playing=!1}},{key:"_onSiteVideoPlay",value:function(){this._muted||this._siteVideoOpened||(this._siteVideoOpened=!0,this._stopSoundtrack(!0))}},{key:"_onSiteVideoClosed",value:function(){!this._muted&&this._siteVideoOpened&&(this._startSoundtrack(!0),this._siteVideoOpened=!1)}},{key:"muted",get:function(){return this._muted}
1,set:function(t){t!==this._muted&&(this._muted=t,this.emit("change"),this._ready&&this._interacted&&this.soundtrack&&(this._muted?this._stopSoundtrack(!0):this._startSoundtrack(!0)))}}],n&&d(e.prototype,n),o&&d(e,o),h}(r()))},
1"./src/js/scroll/utils.js":(t,e,n)=>{n.d(e,{JV:()=>h,Pw:()=>a,U9:()=>p,bt:()=>c,os:()=>u,sj:()=>l,xC:()=>d,zP:()=>f});var i=n("./src/js/utils/dom.js"),o=n("./src/js/utils/easings.js"),r=n("./src/js/utils/mobile.js"),s=n("./src/js/utils/viewport.js"),a=function(t){if(!t.hasAttribute("data-scroll-call"))return null;var e=t.dataset.scrollCall.split(",").map((function(t){return t.trim()}));return 1===e.length?e[0]:e},l=function(t){if(!t.hasAttribute("data-scroll-delay"))return!1;var e,n=null!==(e=parseFloat(t.getAttribute("data-scroll-delay")))&&void 0!==e?e:0;return!(n<=0||n>=1)&&n},u=function(t){if(!t.hasAttribute("data-scroll-offset"))return null;var e=(r.ai&&t.hasAttribute("data-scroll-offset-native")?t.dataset.scrollOffsetNative:t.dataset.scrollOffset).split(",");return e?(e.forEach((function(t,n){"string"==typeof t&&(t.includes("%")?e[n]=parseInt(t.replace("%","")*s.Z.height/100):e[n]=parseInt(t))})),e):null},c=function(t){return t.getAttribute("data-scroll-position")},d=function(t){return t.hasAttribute("data-scroll-progress")?[parseFloat(getComputedStyle(t).getPropertyValue("--scroll-progress")||0),o.ZP[t.getAttribute("data-scroll-progress")]||null]:[!1,null]},h=function(t){if(!t.hasAttribute("data-scroll-repeat"))return null;var e=t.dataset.scrollRepeat;return"false"!=e&&(null!=e||null)},f=function(t){return!!t.hasAttribute("data-scroll-speed")&&.1*parseFloat(t.getAttribute("data-scroll-speed"))},p=function(t){if(!t.hasAttribute("data-scroll-target"))return null;var e=t.dataset.scrollTarget;if(null==e)return null;var n=(0,i.$)(e);return n||(console.error("Cannot find ".concat(t,"'s data-scroll-target=").concat(e," in DOM.")),null)}},
1"./src/js/transitions/index.js":(t,e,n)=>{n.r(e),n.d(e,{default:()=>H});var i=n("./src/js/components/ButtonGlitchEffect.js"),o=n("./src/js/components/Video.js");function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}const s=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._locked=1!=localStorage.getItem("ageGate")}var e,n,i;return e=t,(n=[{key:"unlock",value:function(){localStorage.setItem("ageGate",1),this._locked=!1}},{key:"locked",get:function(){return this._locked}}])&&r(e.prototype,n),i&&r(e,i),t}());var a=n("./src/js/core/power-mode.js"),l=n("./src/js/core/sfx.js"),u=n("./src/js/utils/dom.js"),c=n("./src/js/utils/interval.js"),d=n("./src/js/utils/listener.js"),h=n("./src/js/utils/mobile.js"),f=n("./src/js/utils/resize.js"),p=n("./src/js/transitions/utils.js");function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(r.push(i.value),!e||r.length!==e);s=!0);}catch(t){a=!0,o=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return r}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var v="age-gate";const g=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=(0,u.$)("[data-site-loader]"),this.bg=(0,u.$)(".site-loader__bg"),this.intro=(0,u.$)(".site-loader__intro",this.el),this.bgVideo=(0,u.$)(".site-loader__bgVideo",this.el),this.introVideo=(0,u.$)(".site-loader__introVideo",this.el),this.content=(0,u.$)(".site-loader__content",this.el),this.acceptBtn=(0,u.$)(".site-loader__acceptBtn",this.el),this.rejectBtn=(0,u.$)(".site-loader__rejectBtn",this.el),this.audioBtn=(0,u.$)(".site-loader__audioBtn",this.el),this.sorry=(0,u.$)(".site-loader__sorry",this.el),this._acceptBtn=null,this._rejectBtn=null,this._audioBtn=null,this._ageGate=!1,this._ageIsValid=!0,this._readyPromise=null,this._tick=null,this._timecode=this.intro?this.intro.dataset.timecode:null,this._onAccept=this._onAccept.bind(this),this._onReject=this._onReject.bind(this),this._onAudioBtnClick=this._onAudioBtnClick.bind(this),this._onSFXChange=this._onSFXChange.bind(this),this._onAnimateOutCompleted=this._onAnimateOutCompleted.bind(this),this._onGoToIntroCompleted=this._onGoToIntroCompleted.bind(this),this._onIntroTimecode=this._onIntroTimecode.bind(this),this._onIntroEnded=this._onIntroEnded.bind(this)}var e,n,r;return e=t,(n=[{key:"init",value:function(){s.locked?(u.dy.classList.add(v),this._ageGate=!0,this._ageIsValid=!1,this.bgVideo&&(this.bgVideo=new o.Z(this.bgVideo)),this.introVideo&&(h.ai?this.introVideo.muted=!0:this.introVideo.volume=.5,this.introVideo.setAttribute("preload","metadata"),this.introVideo=new o.Z(this.introVideo)),this.acceptBtn&&!h.ai&&(this._acceptBtn=new i.Z(this.acceptBtn)),this.rejectBtn&&!h.ai&&(this._rejectBtn=new i.Z(this.rejectBtn)),this.audioBtn&&!h.ai&&(l.Z.muted=!1,this._audioBtn=new i.Z(this.audioBtn),this._onSFXChange()),this._bindEvents(),this._animateIn()):(this.bgVideo=null,this.introVideo=null)}},{key:"loaded",value:function(){(0,p.lv)(350,150)}},{key:"ready",value:function(){var t=this;return new Promise((function(e){t._readyPromise=e,t._ageIsValid&&
1(t._ageGate?t._goToIntro():t._animateOut())}))}},{key:"_bindEvents",value:function(){this.acceptBtn&&(0,d.on)(this.acceptBtn,"click",this._onAccept),this.rejectBtn&&(0,d.on)(this.rejectBtn,"click",this._onReject),this.audioBtn&&(l.Z.on("change",this._onSFXChange),(0,d.on)(this.audioBtn,"click",this._onAudioBtnClick))}},{key:"_unbindEvents",value:function(){this.el&&(0,d.S1)(this.el,"transitionend",this._onAnimateOutCompleted),this.introVideo&&((0,d.S1)(this.introVideo.el,"ended",this._onIntroTimecode),(0,d.S1)(this.introVideo.el,"ended",this._onIntroEnded)),this.content&&(0,d.S1)(this.content,"animationend",this._onGoToIntroCompleted),this.acceptBtn&&(0,d.S1)(this.acceptBtn,"click",this._onAccept),this.rejectBtn&&(0,d.S1)(this.rejectBtn,"click",this._onReject),this.audioBtn&&(l.Z.off("change",this._onSFXChange),(0,d.S1)(this.audioBtn,"click",this._onAudioBtnClick),(0,d.S1)(this.audioBtn,"animationend",this._onGoToIntroCompleted))}},{key:"_destroy",value:function(){this._unbindEvents(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el),this._acceptBtn&&this._acceptBtn.destroy(),this._rejectBtn&&this._rejectBtn.destroy(),this._audioBtn&&this._audioBtn.destroy(),this.bgVideo&&(this.bgVideo.pause(),this.bgVideo.destroy()),this.introVideo&&(this.introVideo.pause(),this.introVideo.destroy()),this.el=null,this.bg=null,this.intro=null,this.bgVideo=null,this.introVideo=null,this.content=null,this.acceptBtn=null,this.rejectBtn=null,this.audioBtn=null,this.sorry=null,this._acceptBtn=null,this._rejectBtn=null,this._audioBtn=null,this._ageGate=null,this._ageIsValid=null,this._readyPromise=null,this._tick=null,this._timecode=null,this._onAccept=null,this._onReject=null,this._onAudioBtnClick=null,this._onSFXChange=null,this._onAnimateOutCompleted=null,this._onGoToIntroCompleted=null,this._onIntroTimecode=null,this._onIntroEnded=null}},{key:"_animateIn",value:function(){this.el.classList.add("--animate-in"),this.bgVideo&&this.bgVideo.play()}},{key:"_animateOut",value:function(){u.dy.classList.remove(v),u.dy.classList.add("--js-ready"),this._ageGate&&f.ZP.trigger(),(0,d.on)(this.el,"transitionend",this._onAnimateOutCompleted),this.el.classList.add("--animate-out"),this._readyPromise(),this._readyPromise=null}},{key:"_goToIntro",value:function(){!this.intro||a.Z.low?this._animateOut():((0,d.on)(this.content,"animationend",this._onGoToIntroCompleted),this.el.classList.add("--intro"))}},{key:"_onAccept",value:function(t){if(t&&(t.preventDefault(),t.stopImmediatePropagation()),this._ageIsValid)return!1;this.content.classList.add("pointer-events-none"),this._ageIsValid=!0,s.unlock(),this._readyPromise&&this._goToIntro()}},{key:"_onReject",value:function(t){t&&(t.preventDefault(),t.stopImmediatePropagation()),this.sorry.setAttribute("aria-hidden",!1)}},{key:"_onAudioBtnClick",value:function(){l.Z.toggle()}},{key:"_onSFXChange",value:function(){this.audioBtn.classList[l.Z.muted?"add":"remove"]("--muted"),this.audioBtn.setAttribute("aria-label",this.audioBtn.dataset[l.Z.muted?"ariaOff":"ariaOn"]),this.introVideo&&!h.ai&&(this.introVideo.el.muted=l.Z.muted)}},{key:"_onAnimateOutCompleted",value:function(t){t.target===this.el&&this._destroy()}},{key:"_onGoToIntroCompleted",value:function(){(0,d.S1)(this.content,"animationend",this._onGoToIntroCompleted),this.intro&&this.intro.classList.remove("visibility-hidden"),this.introVideo&&(this._timecode?(this._timecode=this._convertTimecodeToMS(this._timecode),this._tick=(0,c.c)(this._onIntroTimecode,1e3/30)):(0,d.on)(this.introVideo.el,"ended",this._onIntroTimecode),(0,d.on)(this.introVideo.el,"ended",this._onIntroEnded),this.introVideo.play()),this.bgVideo&&this.bgVideo.pause(),this.bg&&this.bg.classList.add("visibility-hidden")}},{key:"_onIntroTimecode",value:function(){var t;this._timecode&&this.introVideo.el.currentTime<this._timecode||(this._tick&&this._tick(),this._tick=null,(null===(t=document.activeElement)||void 0===t?void 0:t.blur)&&document.activeElement.blur(),this.el.setAttribute("inert",""),this.el.setAttribute("aria-hidden",!0),u.dy.classList.remove(v),u.dy.classList.add("--js-ready"),f.ZP.trigger(),this._readyPromise(),this._readyPromise=null)}},{key:"_onIntroEnded",value:function(){this._readyPromise&&(this._timecode=null,this._onIntroTimecode()),this._destroy()}},{key:"_convertTimecodeToMS",value:function(t){if(t.indexOf(":")<0)return null;var e=m(t.split(":"),2),n=e[0],i=e[1];return n||(n=0),i||(i=0),n=parseInt(n),i=parseInt(i),0===n&&0===i?null:n+(i/=30)}}])&&y(e.prototype,n),r&&y(e,r),t}();var b=n("./node_modules/animejs/lib/anime.es.js");function j(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}const k=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=(0,u.$)("[data-site-transition]")}var e,n,i;return e=t,(n=[{key:"exit",value:function(){var t=this;return this.el.classList.remove("pointer-events-none"),new Promise((function(e){(0,b.Z)({targets:t.el,opacity:[0,1],delay:150,duration:450,easing:"linear",complete:function(){return e()}}),t.el.classList.remove("visibility-hidden")}))}},{key:"entering",value:function(){(0,p.lv)(350,150)}},{key:"enter",value:function(){var t=this;return new Promise((function(e){(0,b.Z)({targets:t.el,opacity:[1,0],duration:250,easing:"linear",complete:function(){t.el.classList.add("visibility-hidden","pointer-events-none"),e()}})}))}}])&&j(e.prototype,n),i&&j(e,i),t}();var w=n("./src/js/core/emitter.js"),O=n("./src/js/utils/viewport.js");function P(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function C(t,e,n){return C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=V(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n||t):o.value}},C(t,e,n||t)}
1function V(t){return V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},V(t)}function A(t,e){return!e||"object"!=((n=e)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e;var n}function S(t,e){return S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},S(t,e)}function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=V(t);if(e){var o=V(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return A(this,n)}}var B=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(r,t);var e,n,i,o=I(r);function r(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this)).gameHeader=(0,u.$)(".game-header-transition"),t.gameHeaderBg=(0,u.$)(".game-header-transition__bg",t.gameHeader),t._active=!1,t._dummy={y:0,height:0,opacity:0},t._target=null,t}return e=r,(n=[{key:"toString",value:function(){return"GameHeaderTransition"}},{key:"exit",value:function(t){var e=this;this._active=!1,this._target=null;var n=t.next.trigger.dataset.gameHeaderTransitionTarget;if(!n||a.Z.low)return C(V(r.prototype),"exit",this).call(this,t);var i=(0,u.$)(n);if(!i)return C(V(r.prototype),"exit",this).call(this,t);this._active=!0,this._target=i;var o,s=(0,u.JA)(this._target);return o=O.Z.width<768?O.Z.width/.75:O.Z.width<1200?O.Z.width/1.40651801:O.Z.height,this.gameHeader.style.setProperty("--target-y","".concat(s.y,"px")),this.gameHeader.style.setProperty("--target-height","".concat(s.height,"px")),this.gameHeader.style.setProperty("--gradient-opacity",0),this.gameHeader.setAttribute("aria-hidden",!1),this.gameHeader.appendChild(this._target),t.current.container.classList.add("pointer-events-none"),new Promise((function(n){(0,b.Z)({targets:e._dummy,y:[s.y,0],height:[s.height,o],opacity:{value:[0,1],duration:450,easing:"linear"},duration:950,easing:"easeInOutQuart",update:function(){e.gameHeader.style.setProperty("--target-y","".concat(e._dummy.y,"px")),e.gameHeader.style.setProperty("--target-height","".concat(e._dummy.height,"px")),e.gameHeader.style.setProperty("--gradient-opacity",e._dummy.opacity)}}),(0,b.Z)({targets:t.current.container,opacity:0,duration:650,easing:"linear",complete:function(){e.gameHeader.classList.add("z-10000"),n()}})}))}},{key:"enter",value:function(t){if(!this._active)return C(V(r.prototype),"enter",this).call(this,t);var e=(0,u.$)("video[data-game-header-transition-destination]",t.next.container),n=e?e.parentElement:null;e&&(w.Z.emit("Video.destroy",e),e.remove()),n?n.appendChild(this._target):this._target.remove(),this.gameHeader.setAttribute("aria-hidden",!0),this.gameHeader.classList.remove("z-10000"),this._target=null,this._active=!1}}])&&P(e.prototype,n),i&&P(e,i),r}(k);const T=B;function x(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Z(t,e,n){return Z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=R(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n||t):o.value}},Z(t,e,n||t)}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}function F(t,e){return!e||"object"!=((n=e)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof e?x(t):e;var n}
1function M(t,e){return M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},M(t,e)}function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return F(this,n)}}var L=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M(t,e)}(r,t);var e,n,i,o=$(r);function r(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this)).videoTransition=(0,u.$)(".video-transition"),t.video=(0,u.$)(".video-transition__video",t.videoTransition),t._active=!1,t._exitPromise=null,t._onVideoEnded=t._onVideoEnded.bind(x(t)),t}return e=r,(n=[{key:"toString",value:function(){return"VideoTransition"}},{key:"exit",value:function(t){var e=this;this._active=!1;var n=t.next.trigger.dataset.videoTransition,i=t.next.trigger.dataset.videoTransitionMobile;return a.Z.low||!n&&!i?Z(R(r.prototype),"exit",this).call(this,t):(this._active=!0,this.videoTransition.setAttribute("aria-hidden",!1),(0,d.S1)(this.video,"ended",this._onVideoEnded),(0,d.on)(this.video,"ended",this._onVideoEnded),new Promise((function(t){e._exitPromise=t,O.Z.width<768?e.video.src=i||n:e.video.src=n||i})))}},{key:"entering",value:function(){(0,p.lv)(350,this._active?0:150)}},{key:"enter",value:function(t){if(!this._active)return Z(R(r.prototype),"enter",this).call(this,t);this.videoTransition.setAttribute("aria-hidden",!0),this.video.src=""}},{key:"_onVideoEnded",value:function(){(0,d.S1)(this.video,"ended",this._onVideoEnded),this._active&&this._exitPromise(),this._exitPromise=null}}])&&E(e.prototype,n),i&&E(e,i),r}(k);const G=L,H=[new g,new k,new T,new G]},
1"./src/js/transitions/utils.js":(t,e,n)=>{n.d(e,{UD:()=>u,lv:()=>c});var i=n("./src/js/scroll/utils.js"),o=n("./src/js/utils/dom.js"),r=n("./src/js/utils/transform.js"),s=n("./src/js/utils/viewport.js");function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function l(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(t){if(!t)return!1;var e,n=(0,o.JA)(t),a=null!==(e=(0,i.os)(t))&&void 0!==e?e:[0,0],l=(0,r.R)(t),u=n.top-l.y+a[0],c=n.top-l.y+n.height-a[1];return u<s.Z.height&&c>0},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;l((0,o.$$)("[data-module-delay]")).forEach((function(n){var i=u(n);n.setAttribute("data-module-delay",i),i&&n.style.setProperty("--module-delay","".concat(e,"ms")),i&&(e+=n.hasAttribute("data-module-delay-increment")?parseInt(n.dataset.moduleDelayIncrement):t)}))}},
1"./src/js/utils/breakpoint.js":(t,e,n)=>{n.d(e,{Z:()=>i});const i=function(t,e){var n,i=function(t){n=t,r||(requestAnimationFrame(s),r=!0)},o=t.map((function(t){return window.matchMedia(t)})),r=!1,s=function(){e(n),r=!1};return{dispose:function(){r=!0,n=null,o=null},on:function(){o.forEach((function(t){return t.addListener(i)}))},off:function(){o.forEach((function(t){return t.removeListener(i)}))},run:s}}},
vendor: 1,785 bytes, line 1
1"./src/js/utils/easings.js":(t,e,n)=>{n.d(e,{ZP:()=>o,hl:()=>i});var i=function(t,e,n,i){return-n*(t/=i)*(t-2)+e};const o={easeInQuad:function(t,e,n,i){return n*(t/=i)*t+e},easeOutQuad:i,easeInOutQuad:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,i){return n*(t/=i)*t*t+e},easeOutCubic:function(t,e,n,i){return n*((t=t/i-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,i){return n*(t/=i)*t*t*t+e},easeOutQuart:function(t,e,n,i){return-n*((t=t/i-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,i){return n*(t/=i)*t*t*t*t+e},easeOutQuint:function(t,e,n,i){return n*((t=t/i-1)*t*t*t*t+1)+e},easeInOutQuint:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(t/=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:1)/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,i){return-n*Math.cos(t/i*(Math.PI/2))+n+e},easeOutSine:function(t,e,n,i){return n*Math.sin(t/i*(Math.PI/2))+e},easeInOutSine:function(t,e,n,i){return-n/2*(Math.cos(Math.PI*t/i)-1)+e},easeInExpo:function(t,e,n,i){return 0==t?e:n*Math.pow(2,10*(t/i-1))+e},easeOutExpo:function(t,e,n,i){return t==i?e+n:n*(1-Math.pow(2,-10*t/i))+e},easeInOutExpo:function(t,e,n,i){return 0==t?e:t==i?e+n:(t/=i/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,n,i){return-n*(Math.sqrt(1-(t/=i)*t)-1)+e},easeOutCirc:function(t,e,n,i){return n*Math.sqrt(1-(t=t/i-1)*t)+e},easeInOutCirc:function(t,e,n,i){return(t/=i/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e}}},
1"./src/js/utils/interval.js":(t,e,n)=>{n.d(e,{c:()=>i});var i=function(t,e){var n,i=(new Date).getTime(),o=!1;return n=requestAnimationFrame((function r(){!0!==o&&(n=requestAnimationFrame(r),(new Date).getTime()-i>=e&&(t.call(),i=(new Date).getTime()))})),function(){n&&cancelAnimationFrame(n),n=null,o=!0}}},
1"./src/js/utils/transform.js":(t,e,n)=>{function i(t){var e={};if(window.getComputedStyle){var n=getComputedStyle(t),i=n.transform||n.webkitTransform||n.mozTransform,o=i.match(/^matrix3d\((.+)\)$/);return o?(e.x=o?parseFloat(o[1].split(", ")[12]):0,e.y=o?parseFloat(o[1].split(", ")[13]):0):(o=i.match(/^matrix\((.+)\)$/),e.x=o?parseFloat(o[1].split(", ")[4]):0,e.y=o?parseFloat(o[1].split(", ")[5]):0),e}}n.d(e,{R:()=>i})}
1}]);
2//# sourceMappingURL=src_js_transitions_index_js.a02d3fa14be46039bc7f.bundle.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.