Domain Name - benmingo.com Updates every 10s

Id Host Class Type Status Target
1 benmingo.com IN A 1 198.199.103.119
2 benmingo.com IN NS 1 ns1.digitalocean.com
3 benmingo.com IN NS 1 ns2.digitalocean.com
4 benmingo.com IN NS 1 ns3.digitalocean.com
5 benmingo.com IN SOA 1 hostmaster.benmingo.com ns1.digitalocean.com
1 Robots 1 1 all
2 Viewport 1 1 width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no
3 Format-Detection 1 1 telephone=no
4 Description 1 1 Portfolio of graphic and interactive designer Ben Mingo, currently based in Southern California.
5 Twitter:Card 1 1 summary_large_image
6 Twitter:Site 1 1 @benmingo
7 Twitter:Title 1 1 Ben Mingo — Interactive & Graphic Designer
8 Twitter:Description 1 1 Portfolio of graphic and interactive designer Ben Mingo, currently based in Southern California.
9 Twitter:Image 1 1 /static/media/fav/open-graph/1200-630.png
10 Twitter:Creator 1 1 @benmingo
11 Og:Type 1 1 website
12 Og:Url 1 1 http://www.benmingo.com
13 Og:Title 1 1 Ben Mingo — Interactive & Graphic Designer
14 Og:Description 1 1 Portfolio of graphic and interactive designer Ben Mingo, currently based in Southern California.
15 Og:Image 1 1 /static/media/fav/open-graph/1200-630.png
16 Og:Image:Width 1 1 1200
17 Og:Image:Height 1 1 630
18 Msapplication-Config 1 1 /static/media/fav/browserconfig.xml
19 Theme-Color 1 1 #000
20 Title 1 1 Ben Mingo — Interactive & Graphic Designer

HTML header Tag

<script>(function(){"use strict";function createCommonjsModule(t,e){return e={exports:{}},t(e,e.exports),e.exports}var skylake=createCommonjsModule(function(t){function e(t,e){return 1-3*e+3*t}function i(t,e){return 3*e-6*t}function s(t){return 3*t}function r(t,r,a){return((e(r,a)*t+i(r,a))*t+s(r))*t}function a(t,r,a){return 3*e(r,a)*t*t+2*i(r,a)*t+s(r)}var n={};t.exports=n,n.Merom=function(t){n.BindMaker(this,["getRaf","loop","propUpd","propSvg"]),this.v=this.varsInit(t)},n.Merom.prototype={varsInit:function(t){var e={el:n.Selector.el(t.el),e:{value:t.e||"linear"},d:{origin:t.d||0,curr:0},delay:t.delay||0,cb:t.cb||!1,cbDelay:t.cbDelay||0,reverse:t.reverse||!1,round:t.round,update:n.Has(t,"update")?function(){t.update(e)}:n.Has(t,"svg")?this.propSvg:this.propUpd,progress:0,time:{elapsed:0}};e.elL=e.el.length;var i=t.p||!1,s=t.svg||!1;if(i){e.prop={},e.propPos=[];var r=Object.keys(i);e.propL=r.length;for(var a=0;a<e.propL;a++){var o=r[a];e.prop[a]={name:o,origin:{start:i[o][0],end:i[o][1]},curr:i[o][0],start:i[o][0],end:i[o][1],unit:i[o][2]||"%"},e.propPos[o.charAt(0)]=a}}else s&&(e.svg={type:s.type,attr:"polygon"===s.type?"points":"d",end:s.end,originArr:{},arr:{},val:[]},e.svg.start=s.start||e.el[0].getAttribute(e.svg.attr),e.svg.curr=e.svg.start,e.svg.originArr.start=this.svgSplit(e.svg.start),e.svg.originArr.end=this.svgSplit(e.svg.end),e.svg.arr.start=e.svg.originArr.start,e.svg.arr.end=e.svg.originArr.end,e.svg.arrL=e.svg.arr.start.length);return e},play:function(t){this.pause(),this.varsUpd(t),setTimeout(this.getRaf,this.v.delay)},pause:function(){cancelAnimationFrame(this.raf),this.needEnd=!0},varsUpd:function(t){var e=t||{},i=n.Has(e,"reverse")&&e.reverse?"start":"end";if(n.Has(this.v,"prop"))for(var s=0;s<this.v.propL;s++)this.v.prop[s].end=this.v.prop[s].origin[i],this.v.prop[s].start=this.v.prop[s].curr,n.Has(e,"p")&&n.Has(e.p,this.v.prop[s].name)&&(n.Has(e.p[this.v.prop[s].name],"newEnd")&&(this.v.prop[s].end=e.p[this.v.prop[s].name].newEnd),n.Has(e.p[this.v.prop[s].name],"newStart")&&(this.v.prop[s].start=e.p[this.v.prop[s].name].newStart));else n.Has(this.v,"svg")&&(n.Has(e,"svg")&&n.Has(e.svg,"start")?this.v.svg.arr.start=e.svg.start:this.v.svg.arr.start=this.svgSplit(this.v.svg.curr),n.Has(e,"svg")&&n.Has(e.svg,"end")?this.v.svg.arr.end=e.svg.end:this.v.svg.arr.end=this.v.svg.originArr[i]);this.v.d.curr=n.Has(e,"d")?e.d:this.v.d.origin-this.v.d.curr+this.v.time.elapsed,this.v.e.value=e.e||this.v.e.value,this.v.e.calc=n.Is.string(this.v.e.value)?n.EasePack[this.v.e.value]:n.EaseCSS(this.v.e.value[0],this.v.e.value[1],this.v.e.value[2],this.v.e.value[3]),this.v.delay=n.Has(e,"delay")?e.delay:this.v.delay,this.v.cbDelay=n.Has(e,"cbDelay")?e.cbDelay:this.v.cbDelay,this.v.cb=n.Has(e,"cb")?e.cb:this.v.cb},getRaf:function(){this.v.time.start=0,this.raf=requestAnimationFrame(this.loop)},loop:function(t){this.v.time.start||(this.v.time.start=t),this.v.time.elapsed=t-this.v.time.start,this.v.progress=this.v.d.curr>0?this.v.e.calc(Math.min(this.v.time.elapsed/this.v.d.curr,1)):1,this.v.update(),this.v.progress<1?this.raf=requestAnimationFrame(this.loop):this.needEnd&&(this.needEnd=!1,this.v.update(),this.v.cb&&setTimeout(this.v.cb,this.v.cbDelay))},propUpd:function(){for(var t=0;t<this.v.propL;t++)this.v.prop[t].curr=this.lerp(this.v.prop[t].start,this.v.prop[t].end);var e=n.Has(this.v.propPos,"x")?this.v.prop[this.v.propPos.x].curr+this.v.prop[this.v.propPos.x].unit:0,i=n.Has(this.v.propPos,"y")?this.v.prop[this.v.propPos.y].curr+this.v.prop[this.v.propPos.y].unit:0,s=e+i===0?0:"translate3d("+e+","+i+",0)",r=n.Has(this.v.propPos,"r")?this.v.prop[this.v.propPos.r].name+"("+this.v.prop[this.v.propPos.r].curr+"deg)":0,a=n.Has(this.v.propPos,"s")?this.v.prop[this.v.propPos.s].name+"("+this.v.prop[this.v.propPos.s].curr+")":0,o=s+r+a===0?0:[s,r,a].filter(function(t){return 0!==t}).join(" "),h=n.Has(this.v.propPos,"o")?this.v.prop[this.v.propPos.o].curr:-1;for(t=0;t<this.v.elL;t++)0!==o&&(this.v.el[t].style.transform=o),h>=0&&(this.v.el[t].style.opacity=h)},propSvg:function(){this.v.svg.currTemp="";for(var t=0;t<this.v.svg.arrL;t++)this.v.svg.val[t]=this.isSvgLetter(this.v.svg.arr.start[t])?this.v.svg.arr.start[t]:this.lerp(+this.v.svg.arr.start[t],+this.v.svg.arr.end[t]),this.v.svg.currTemp+=this.v.svg.val[t]+" ",this.v.svg.curr=this.v.svg.currTemp.trim();for(t=0;t<this.v.elL;t++)this.v.el[t].setAttribute(this.v.svg.attr,this.v.svg.curr)},lerp:function(t,e){return n.Round(n.Lerp.init(t,e,this.v.progress),this.v.round)},svgSplit:function(t){for(var e=t.split(" "),i=e.length,s=[],r=0;r<i;r++)for(var a=e[r].split(","),n=a.length,o=0;o<n;o++)s.push(+a[o]);return s},isSvgLetter:function(t){return"M"===t||"L"===t||"C"===t||"Z"===t}},n.AnimatedLine=function(t){var e=this;this.el=n.Selector.el(t.el),this.elL=this.el.length;var i=t.elWithLength,s=t.d,r=t.e,a=t.dashed||!1,o=(100-+(t.start||0))/100,h=(100-+(t.end||100))/100,l=[],c=[],u=[],d=[];this.merom=[];for(var p=0;p<this.elL;p++){if(u[p]=function(t){if("circle"===t.tagName)return 2*t.getAttribute("r")*Math.PI;if("line"===t.tagName){var e=t.getAttribute("x1"),s=t.getAttribute("x2"),r=t.getAttribute("y1"),a=t.getAttribute("y2");return Math.sqrt((s-=e)*s+(a-=r)*a)}return(t=i||t).getTotalLength()}(this.el[p]),d[p]=p===this.elL-1&&t.cb,a){for(var m=0,g=a.split(/[\s,]/),v=g.length,f=0;f<v;f++)m+=parseFloat(g[f])||0;var y="",k=Math.ceil(u[p]/m);for(f=0;f<k;f++)y+=a+" ";this.el[p].style.strokeDasharray=y+"0 "+u[p]}else this.el[p].style.strokeDasharray=u[p];l[p]=o*u[p],c[p]=h*u[p],this.merom[p]=new n.Merom({d:s,e:r,update:function(t){for(var i=0;i<e.elL;i++)e.el[i].style.strokeDashoffset=Math.round(1e3*n.Lerp.init(l[i],c[i],t.progress))/1e3},cb:d[p]})}},n.AnimatedLine.prototype={play:function(t){for(var e=0;e<this.elL;e++)this.el[e].style.opacity=1,this.merom[e].play(t)},pause:function(){for(var t=0;t<this.elL;t++)this.merom[t].pause()}},n.Timeline=function(){this.arr=[],this.delay=0},n.Timeline.prototype={from:function(t){this.delay+=n.Has(t,"delay")?t.delay:0,t.delay=this.delay,this.arr.push(new n.Merom(t))},play:function(t){this.run("play",t)},pause:function(){this.run("pause")},run:function(t,e){for(var i=this.arr.length,s=0;s<i;s++){var r=e?e[s]:void 0;this.arr[s][t](r)}}},n.BindMaker=function(t,e){for(var i=e.length,s=0;s<i;s++)t[e[s]]=t[e[s]].bind(t)};var o={s:1.70158,q:2.25,r:1.525,u:.984375,v:7.5625,w:.9375,x:2.75,y:2.625,z:.75};n.EasePack={linear:function(t){return t},Power1In:function(t){return 1-Math.cos(t*(Math.PI/2))},Power1Out:function(t){return Math.sin(t*(Math.PI/2))},Power1InOut:function(t){return-.5*(Math.cos(Math.PI*t)-1)},Power2In:function(t){return t*t},Power2Out:function(t){return t*(2-t)},Power2InOut:function(t){return t<.5?2*t*t:(4-2*t)*t-1},Power3In:function(t){return t*t*t},Power3Out:function(t){return--t*t*t+1},Power3InOut:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},Power4In:function(t){return t*t*t*t},Power4Out:function(t){return 1- --t*t*t*t},Power4InOut:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},Power5In:function(t){return t*t*t*t*t},Power5Out:function(t){return 1+--t*t*t*t*t},Power5InOut:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t},ExpoIn:function(t){return 0===t?0:Math.pow(2,10*(t-1))},ExpoOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},ExpoInOut:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},CircIn:function(t){return-(Math.sqrt(1-t*t)-1)},CircOut:function(t){return Math.sqrt(1-Math.pow(t-1,2))},CircInOut:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},BackIn:function(t){return t*t*((o.s+1)*t-o.s)},BackOut:function(t){return(t-=1)*t*((o.s+1)*t+o.s)+1},BackInOut:function(t){return(t/=.5)<1?t*t*((1+(o.s*=o.r))*t-o.s)*.5:.5*((t-=2)*t*((1+(o.s*=o.r))*t+o.s)+2)},Elastic:function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},SwingFromTo:function(t){return(t/=.5)<1?t*t*((1+(o.s*=o.r))*t-o.s)*.5:.5*((t-=2)*t*((1+(o.s*=o.r))*t+o.s)+2)},SwingFrom:function(t){return t*t*((o.s+1)*t-o.s)},SwingTo:function(t){return(t-=1)*t*((o.s+1)*t+o.s)+1},Bounce:function(t){return t<1/o.x?o.v*t*t:t<2/o.x?o.v*(t-=1.5/o.x)*t+o.z:t<2.5/o.x?o.v*(t-=o.q/o.x)*t+o.w:o.v*(t-=o.y/o.x)*t+o.u},BouncePast:function(t){return t<1/o.x?o.v*t*t:t<2/o.x?2-(o.v*(t-=1.5/o.x)*t+o.z):t<2.5/o.x?2-(o.v*(t-=o.q/o.x)*t+o.w):2-(o.v*(t-=o.y/o.x)*t+o.u)}};var h=4,l=1e-7,c=10;n.EaseCSS=function(t,e,i,s){var n=new Float32Array(11);if(t!==e||i!==s)for(var o=0;o<11;++o)n[o]=r(.1*o,t,i);return function(o){return t===e&&i===s?o:0===o?0:1===o?1:r(function(e){for(var s=0,o=1;10!==o&&n[o]<=e;++o)s+=.1;var u=s+(e-n[--o])/(n[o+1]-n[o])*.1;return(s=a(u,t,i))>=.001?function(t,e,i,s){for(var n=0;n<h;++n){var o=a(e,i,s);if(0===o)return e;e-=(r(e,i,s)-t)/o}return e}(e,u,t,i):0===s?u:function(t,e,i,s,a){var n,o,h=0;do{(n=r(o=e+(i-e)/2,s,a)-t)>0?i=o:e=o}while(Math.abs(n)>l&&++h<c);return o}(e,s,s+.1,t,i)}(o),e,s)}},n.Has=function(t,e){return!!t&&hasOwnProperty.call(t,e)},n.Is={string:function(t){return"string"==typeof t},object:function(t){return t===Object(t)},array:function(t){return t.constructor===Array}},n.Lerp={init:function(t,e,i){return t+(e-t)*i},extend:function(t,e,i,s,r){return s+(r-s)/(i-e)*(t-1)}},n.Round=function(t,e){return e=e?Math.pow(10,e):1e3,Math.round(t*e)/e},n.Sniffer={uA:navigator.userAgent.toLowerCase(),get isMobileIE(){return/iemobile/i.test(this.uA)},get isMobileOpera(){return/opera mini/i.test(this.uA)},get isIOS(){return/iphone|ipad|ipod/i.test(this.uA)},get isBlackberry(){return/blackberry/i.test(this.uA)},get isMobileAndroid(){return/android.*mobile/.test(this.uA)},get isAndroid(){return this.isMobileAndroid||!this.isMobileAndroid&&/android/i.test(this.uA)},get isFirefox(){return this.uA.indexOf("firefox")>-1},get safari(){return this.uA.match(/version\/[\d\.]+.*safari/)},get isSafari(){return!!this.safari&&!this.isAndroid},get isSafariOlderThan8(){var t=8;return this.isSafari&&(t=+this.safari[0].match(/version\/\d{1,2}/)[0].split("/")[1]),t<8},get isIEolderThan11(){return this.uA.indexOf("msie")>-1},get isIE11(){return navigator.appVersion.indexOf("Trident/")>0},get isIE(){return this.isIEolderThan11||this.isIE11},get isMac(){return navigator.platform.toLowerCase().indexOf("mac")>-1},get isMobile(){return this.isMobileAndroid||this.isBlackberry||this.isIOS||this.isMobileOpera||this.isMobileIE},get isTouch(){return"ontouchstart"in window}},n.Throttle=function(t){this.delay=t.delay,this.cb=t.callback,this.onlyAtEnd=t.onlyAtEnd,this.last,this.timer},n.Throttle.prototype={init:function(){var t=this,e=!0,i=Date.now();this.last&&i<this.last+this.delay||e?(e=!1,clearTimeout(this.timer),this.timer=setTimeout(function(){t.last=i,t.cb()},this.delay)):(this.last=i,this.onlyAtEnd||(e=!1,this.cb()))}},n.Geb={parent:function(t){return t||document},id:function(t,e){return this.parent(e).getElementById(t)},class:function(t,e){return this.parent(e).getElementsByClassName(t)},tag:function(t,e){return this.parent(e).getElementsByTagName(t)}},n.Dom={html:document.documentElement,body:document.body},n.Selector={el:function(t){var e=[];if(n.Is.string(t)){var i=t.substring(1);"#"===t.charAt(0)?e[0]=n.Geb.id(i):e=n.Geb.class(i)}else e[0]=t;return e},type:function(t){return"#"===t.charAt(0)?"id":"class"},name:function(t){return t.substring(1)}},n.Index={index:function(t,e){for(var i=e.length,s=0;s<i;s++)if(t===e[s])return s;return-1},list:function(t){var e=t.parentNode.children;return this.index(t,e)},class:function(t,e){var i=n.Geb.class(e);return this.index(t,i)}},n.MM=function(t){this.el=n.Selector.el(t.element)[0]||document,this.cb=t.callback,this.iM=n.Sniffer.isMobile,this.tick=!1,n.BindMaker(this,["getRaf","run"])},n.MM.prototype={on:function(){this.listener("add")},off:function(){this.listener("remove")},listener:function(t){var e=this.iM?"touch":"mouse";n.Listen(this.el,t,e+"move",this.getRaf)},getRaf:function(t){this.e=t,this.tick||(this.raf=requestAnimationFrame(this.run),this.tick=!0)},run:function(){var t=this.iM?this.e.changedTouches[0]:this.e;this.cb(t.pageX,t.pageY,this.e),this.tick=!1}},n.RO=function(t){this.cb=t.callback,this.iM=n.Sniffer.isMobile,this.tick=!1,n.BindMaker(this,["getThrottle","getRaf","run"]),this.throttle=new n.Throttle({callback:this.getRaf,delay:t.throttle.delay,onlyAtEnd:t.throttle.onlyAtEnd})},n.RO.prototype={on:function(){this.listener("add")},off:function(){this.listener("remove")},listener:function(t){this.iM?n.Listen(window,t,"orientationchange",this.getThrottle):n.Listen(window,t,"resize",this.getThrottle)},getThrottle:function(t){this.e=t,this.throttle.init()},getRaf:function(){this.tick||(this.raf=requestAnimationFrame(this.run),this.tick=!0)},run:function(){this.cb(this.e),this.tick=!1}},n.Scroll=function(t){this.cb=t,this.tick=!1,n.BindMaker(this,["getRaf","run"])},n.Scroll.prototype={on:function(){this.startScrollY=pageYOffset,this.listener("add")},off:function(){this.listener("remove")},listener:function(t){n.Listen(window,t,"scroll",this.getRaf)},getRaf:function(t){this.e=t,this.tick||(this.raf=requestAnimationFrame(this.run),this.tick=!0)},run:function(){var t=pageYOffset,e=-(t-this.startScrollY);this.startScrollY=t,this.cb(t,e,this.e),this.tick=!1}},n.WTDisable={prevent:function(t){t.preventDefault()},listener:function(t){var e;if(n.Sniffer.isMobile){var i="add"===t?"none":"";n.Dom.body.style.touchAction=i,e="touchmove"}else e="mouseWheel";n.Listen(document,t,e,this.prevent)},on:function(){this.listener("add")},off:function(){this.listener("remove")}},n.WT=function(t){this.cb=t,this.iM=n.Sniffer.isMobile,this.tick=!1,n.BindMaker(this,["touchStart","getRaf","run"])},n.WT.prototype={on:function(){this.listener("add")},off:function(){this.listener("remove")},listener:function(t){var e=document;this.iM?(n.Listen(e,t,"touchstart",this.touchStart),n.Listen(e,t,"touchmove",this.getRaf)):n.Listen(e,t,"mouseWheel",this.getRaf)},getRaf:function(t){this.e=t,this.e.preventDefault(),this.tick||(this.raf=requestAnimationFrame(this.run),this.tick=!0)},run:function(){var t=this.e.type;"wheel"===t?this.onWheel():"mousewheel"===t?this.onMouseWheel():"touchmove"===t&&this.touchMove()},onWheel:function(){this.type="scroll",this.delta=this.e.wheelDeltaY||-1*this.e.deltaY,n.Sniffer.isFirefox&&1===this.e.deltaMode&&(this.delta*=40),this.getCb()},onMouseWheel:function(){this.type="scroll",this.delta=this.e.wheelDeltaY?this.e.wheelDeltaY:this.e.wheelDelta,this.getCb()},touchStart:function(t){this.start=t.targetTouches[0].pageY},touchMove:function(){this.type="touch",this.delta=this.e.targetTouches[0].pageY-this.start,this.getCb()},getCb:function(){this.cb(this.delta,this.type,this.e),this.tick=!1}},n.Listen=function(t,e,i,s){var r,a=document,o=(t=n.Selector.el(t)).length;r="mouseWheel"===i?"onwheel"in a?"wheel":void 0!==a.onmousewheel?"mousewheel":"DOMMouseScroll":"focusOut"===i?n.Sniffer.isFirefox?"blur":"focusout":i;for(var h=0;h<o;h++)t[h][e+"EventListener"](r,s)},n.ScrollToTop=function(t){var e=pageYOffset,i={dest:0,d:function(){var i=n.Lerp.init(300,1500,e/t.totalH);return 0===e?0:i}(),e:e<=2500?"Power"+Math.ceil(e/500)+"InOut":"ExpoInOut",cb:t.cb};n.ScrollTo(i)},n.ScrollTo=function(t){function e(){n.WTDisable.off(),t.cb&&t.cb()}var i=document,s=i.scrollingElement?i.scrollingElement:n.Dom.body,r=n.Sniffer.isFirefox||n.Sniffer.isIE?i.documentElement:s,a=pageYOffset,o=t.dest,h=new n.Merom({d:t.d,e:t.e,update:function(t){r.scrollTop=Math.round(1e3*n.Lerp.init(a,o,t.progress))/1e3},cb:e});a===o?e():(n.WTDisable.on(),h.play())},n.ScrollZero=function(){window.scrollTo(0,0)},n.TopWhenRefresh=function(){window.onbeforeunload=function(){window.scrollTo(0,0)}},n.Win={get w(){return innerWidth},get h(){return innerHeight},get path(){return location.pathname},get hostname(){return location.hostname},get href(){return location.href}}}),classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),Support=function(){function t(){classCallCheck(this,t)}return createClass(t,null,[{key:"init",value:function(){skylake.Sniffer.isIEolderThan11||skylake.Sniffer.isSafariOlderThan8?skylake.Dom.html.className="old-browser":skylake.Sniffer.isIE11&&(skylake.Dom.html.className="ie11"),skylake.Sniffer.isMobile&&(skylake.Dom.body.className="is-mobile")}}]),t}(),Xhr=function(){function t(){classCallCheck(this,t)}return createClass(t,null,[{key:"controller",value:function(t,e,i){var s="index.php?url="+t+"&xhr=true",r=new XMLHttpRequest;r.open("GET",s,!0),r.onreadystatechange=function(s){if(4===r.readyState&&200===r.status){var a=JSON.parse(r.responseText).xhrController;skylake.Geb.tag("title")[0].textContent=a.title,function(){var e="home"===t?"/":t;history.pushState({key:"value"},"titre",e)}(),e(a.view,i)}},r.send(null)}},{key:"onPopstate",value:function(){var t=document,e=window,i="complete"!==t.readyState;skylake.Listen(e,"add","load",function(){setTimeout(function(t){i=!1},0)}),skylake.Listen(e,"add","popstate",function(e){i&&"complete"===t.readyState&&(e.preventDefault(),e.stopImmediatePropagation())}),e.onpopstate=function(t){e.location.href=skylake.Win.path}}}]),t}(),Listeners=function(){function t(){classCallCheck(this,t)}return createClass(t,[{key:"init",value:function(t){var e=this,i=t,s=[];this.normEvs=[],this.moduleArr=[],this.speOpts={};for(var r={scroll:{throttle:!0,skylake:"Scroll"},ro:{throttle:!0,skylake:"RO"},wt:{throttle:!1,skylake:"WT"},mm:{throttle:!0,skylake:"MM"}},a=Object.keys(i),n=a.length,o=0;o<n;o++)for(var h=a[o],l=i[a[o]],c=void 0!==r[h],u=!!c&&r[h].throttle,d=c?1:l.length,p=c?s:this.normEvs,m=0;m<d;m++){var g=c?l:l[m],v=g.module,f={event:h,module:v,method:g.method};u?(f.throttle=g.throttle,f.element=g.element):f.el=g.el||document,p.push(f),this.moduleArr.indexOf(v)<0&&this.moduleArr.push({module:v,arg:g.arg,alreadyCalled:this.getAlreadyCalled(v)})}this.normEvsL=this.normEvs.length,this.speEvsL=s.length,this.moduleArrL=this.moduleArr.length,this.speEvInstance=[];for(var y=function(t){var i=e.normEvs[t];i.callback=function(t){var s={event:t,listeners:e,outroM:e.outroM};i.module[i.method](s)}},k=0;k<this.normEvsL;k++)y(k);for(var x=function(t){var i=s[t],a=r[i.event].skylake,n=void 0;e.speOpts.listeners=e,"Scroll"===a?n={callback:function(t,s){e.speOpts.currentScrollY=t,e.speOpts.delta=s,i.module[i.method](e.speOpts)},throttle:i.throttle}:"WT"===a?n=function(t,s,r){e.speOpts.delta=t,e.speOpts.type=s,e.speOpts.event=r,i.module[i.method](e.speOpts)}:"RO"===a?n={callback:function(t){i.module[i.method](n)},throttle:i.throttle}:"MM"===a&&(n={callback:function(t,s){e.speOpts.posX=t,e.speOpts.posY=s,i.module[i.method](e.speOpts)},throttle:i.throttle,element:i.element}),e.speEvInstance[t]=new skylake[a](n)},w=0;w<this.speEvsL;w++)x(w)}},{key:"getAlreadyCalled",value:function(t){for(var e=this.moduleArr.length,i=0;i<e;i++)if(t===this.moduleArr[i].module)return!0;return!1}},{key:"add",value:function(t){t&&t.moduleInit&&(this.outroM=this.speOpts.outroM=t.outroM,this.methodCall("init")),this.listen("add")}},{key:"remove",value:function(t){!(!t||void 0===t.destroy)&&t.destroy&&this.methodCall("destroy"),this.listen("remove")}},{key:"methodCall",value:function(t){for(var e=0;e<this.moduleArrL;e++){var i=this.moduleArr[e].module;this.moduleArr[e].alreadyCalled||"function"!=typeof i[t]||i[t]({outroM:this.outroM,listeners:this,arg:this.moduleArr[e].arg})}}},{key:"listen",value:function(t){for(var e=0;e<this.speEvsL;e++){var i="add"===t?"on":"off";this.speEvInstance[e][i]()}for(var s=0;s<this.normEvsL;s++){var r=this.normEvs[s];skylake.Listen(r.el,t,r.event,r.callback)}}}]),t}(),EventDelegation=function(){function t(e){classCallCheck(this,t),this.isXhr=e.isXhr,this.getInstance=e.getInstance,this.outroM=e.outroM,this.xhr=skylake.Geb.id("xhr"),skylake.BindMaker(this,["eventDelegation","done","xhrCallback"])}return createClass(t,[{key:"run",value:function(){skylake.Listen(skylake.Dom.body,"add","click",this.eventDelegation)}},{key:"eventDelegation",value:function(t){function e(){t.preventDefault()}for(var i=t.target,s=!1,r=!1;i;){if("A"===i.tagName){s=!0;break}if(("INPUT"===i.tagName||"BUTTON"===i.tagName)&&"submit"===i.type){r=!0;break}i=i.parentNode}if(s){var a=i.href;if(i.classList.contains("_tb"))e(),window.open(a);else if(i.classList.contains("_tbs"))e(),this.isTouch&&this.isSafari?window.location.href=a:window.open(a);else if(this.isXhr){var n="#"===a.charAt(a.length-1),o="mailto"!==a.substring(0,6),h=!i.classList.contains("_ost");n?e():o&&h&&(e(),this.outroM.enable&&(this.path={old:skylake.Win.path,new:a.replace(/^.*\/\/[^/]+/,"")},this.path.old!==this.path.new&&(this.outroM.off(),this.target=i,this.xhrReq())))}else i.classList.contains("_pr")&&e()}else r&&this.isXhr&&e()}},{key:"xhrReq",value:function(){var t=this.getInstance(this.path.old);t.controller.outro({done:this.done,outroM:this.outroM,path:this.path,listeners:t.listeners,target:this.target})}},{key:"done",value:function(t){Xhr.controller(this.path.new,this.xhrCallback,t)}},{key:"xhrCallback",value:function(t,e){var i=this,s=this.getInstance(this.path.new),r={insertNew:function(e){i.xhr.insertAdjacentHTML("beforeend",t)},removeOld:function(t){var e=i.xhr.children[0];e.parentNode.removeChild(e)}};this.outroM.on(),s.controller.intro({outroArgs:e,xhr:r,outroM:this.outroM,path:this.path,listeners:s.listeners,target:this.target})}}]),t}(),Router=function(){function t(e){var i=this;classCallCheck(this,t),this.isXhr=e.xhr,this.routes=[],skylake.BindMaker(this,["getInstance"]),this.outroM={enable:!0},this.outroM.on=function(t){i.outroM.enable=!0},this.outroM.off=function(t){i.outroM.enable=!1},this.isXhr&&Xhr.onPopstate(),this.eventDelegation=new EventDelegation({isXhr:this.isXhr,getInstance:this.getInstance,outroM:this.outroM})}return createClass(t,[{key:"init",value:function(t,e){this.route={path:this.slashTrim(t),controller:e,params:[],instance:{},args:""},this.routes.push(this.route);var i=this.route.controller;return this.route.instance.listeners=new Listeners,this.route.instance.controller=new i(this.route.instance.listeners),this}},{key:"with",value:function(t,e){return this.route.params[t]=e,this}},{key:"error",value:function(t){var e=t;this.error.listeners=new Listeners,this.error.controller=new e(this.error.listeners)}},{key:"run",value:function(){this.eventDelegation.run();var t=skylake.Win.path,e=this.getInstance(t);void 0!==e.controller.preload&&e.controller.preload({listeners:e.listeners,outroM:this.outroM,error:e.error,path:{new:t}})}},{key:"getInstance",value:function(t){this.url=this.slashTrim(t);for(var e=this.routes.length,i=0;i<e;i++)if(this.match(this.routes[i]))return{listeners:this.routes[i].instance.listeners,controller:this.routes[i].instance.controller,error:!1};return{listeners:this.error.listeners,controller:this.error.controller,error:!0}}},{key:"match",value:function(t){if(t.path===this.url)return!0;var e=t.path.replace(/:([\w]+)/g,function(e,i){return"("+t.params[i]+")"});e=e.replace(/\//g,"\\/");var i=new RegExp(e),s=this.url.match(i);return null!==s&&s.length>1&&(s.shift(),t.args=s,!0)}},{key:"slashTrim",value:function(t){return t.replace(/^\/|\/$/g,"")}}]),t}(),ErrorController=function(){function t(e){classCallCheck(this,t),this.intro=skylake.Geb.id("intro");var i=skylake.Geb.id("p404-sail");this.sailAnim=new skylake.Merom({el:i,p:{opacity:[1,0]},d:1e3,e:"linear",cb:function(t){i.style.transform="translate3d(-100%,0,0)"}})}return createClass(t,[{key:"preload",value:function(t){var e=this;this.intro.style.transform="translate3d(-100%,0,0)",setTimeout(function(t){e.sailAnim.play()},500)}}]),t}(),HomeText=function(){function t(){classCallCheck(this,t),this.arr=[];for(var e=0;e<5;e++)this.arr[e]={titleAnim:[],titleStrokeAnim:[],d:[]};this.arr[0].d[0]=0,this.arr[0].d[1]=40,this.arr[0].d[2]=80,this.arr[0].d[3]=120,this.arr[1].d[0]=0,this.arr[1].d[1]=40,this.arr[1].d[2]=80,this.arr[1].d[3]=120,this.arr[2].d[0]=0,this.arr[2].d[1]=20,this.arr[2].d[2]=20,this.arr[2].d[3]=40,this.arr[2].d[4]=80,this.arr[2].d[5]=110,this.arr[2].d[6]=70,this.arr[2].d[7]=140,this.arr[3].d[0]=0,this.arr[3].d[1]=20,this.arr[3].d[2]=40,this.arr[3].d[3]=140,this.arr[4].d[0]=0,this.arr[4].d[1]=30,this.arr[4].d[2]=60,this.arr[4].d[3]=120,this.arr[4].d[4]=120}return createClass(t,[{key:"prepare",value:function(){for(var t=0;t<5;t++){this.arr[t].section=skylake.Geb.class("h-section")[t],this.arr[t].titleOver=skylake.Geb.class("h-title-over")[t],this.arr[t].title=skylake.Geb.class("h-title",this.arr[t].titleOver),this.arr[t].titleStroke=skylake.Geb.class("h-title-stroke",this.arr[t].titleOver),this.arr[t].titleL=this.arr[t].title.length;for(var e=0;e<this.arr[t].titleL;e++)this.arr[t].titleAnim[e]=new skylake.Merom({el:this.arr[t].title[e],p:{x:[-110,0]},d:1300,e:"ExpoOut"}),this.arr[t].titleStrokeAnim[e]=new skylake.Merom({el:this.arr[t].titleStroke[e],p:{x:[-110,0]},d:1300,e:"ExpoOut"});this.arr[t].line=skylake.Geb.class("h-line",this.arr[t].titleOver)[0],this.arr[t].lineAnim=new skylake.Merom({el:this.arr[t].line,p:{x:[-102,0]},d:1300,e:"ExpoOut"}),this.arr[t].no=skylake.Geb.class("h-no",this.arr[t].titleOver)[0],this.arr[t].noAnim=new skylake.Merom({el:this.arr[t].no,p:{y:[100,0]},d:1300,e:"ExpoOut"}),this.arr[t].type=skylake.Geb.class("h-type",this.arr[t].section)[0],this.arr[t].typeAnim=new skylake.Merom({el:this.arr[t].type,p:{y:[100,0]},d:1300,e:"ExpoOut"}),this.arr[t].year=skylake.Geb.class("h-year",this.arr[t].section)[0],this.arr[t].yearAnim=new skylake.Merom({el:this.arr[t].year,p:{y:[100,0]},d:1300,e:"ExpoOut"})}var i=skylake.Geb.id("h-drag");this.dragAnim=new skylake.Merom({el:i,p:{y:[100,0]},d:1300,e:"ExpoOut"});var s=skylake.Geb.id("h-pagi");this.pagiAnim=new skylake.Merom({el:s,p:{y:[100,0]},d:1300,e:"ExpoOut"}),this.pagiCurr=skylake.Geb.id("h-pagi-curr")}},{key:"intro",value:function(t){for(var e=t.startDelay,i=t.no,s=t.d,r=t.e,a=t.d+200,n=t.fromLoader?500:300,o=t.fromLoader?900:500,h=0;h<this.arr[i].titleL;h++){var l=0===h?e:e+this.arr[i].d[h];this.arr[i].titleAnim[h].play({delay:l,d:a,e:r}),this.arr[i].titleStrokeAnim[h].play({delay:l,d:a,e:r})}this.arr[i].lineAnim.play({p:{x:{newStart:-102}},delay:e+n,d:s,e:r}),this.arr[i].noAnim.play({delay:e+n,d:s,e:r}),this.arr[i].typeAnim.play({delay:e+o,d:s,e:r}),this.arr[i].yearAnim.play({delay:e+o,d:s,e:r}),this.dragAnim.play({delay:e+o,d:s,e:r}),this.pagiAnim.play({delay:e+o,d:s,e:r}),this.enableOver(1800,i)}},{key:"hide",value:function(t){for(var e=0;e<this.arr[t].titleL;e++)this.arr[t].titleAnim[e].play({d:400,e:"Power2Out",delay:0,reverse:!0}),this.arr[t].titleStrokeAnim[e].play({d:400,e:"Power2Out",delay:0,reverse:!0});this.arr[t].lineAnim.play({p:{x:{newEnd:102}},d:400,e:"Power2Out",delay:0,reverse:!0}),this.arr[t].noAnim.play({d:400,e:"Power2Out",delay:0,reverse:!0}),this.arr[t].typeAnim.play({d:400,e:"Power2Out",delay:0,reverse:!0}),this.arr[t].yearAnim.play({d:400,e:"Power2Out",delay:0,reverse:!0}),clearTimeout(this.id),this.arr[t].titleOver.classList.remove("active")}},{key:"show",value:function(t){for(var e=0;e<this.arr[t].titleL;e++)this.arr[t].titleAnim[e].play({d:1300,e:"ExpoOut",delay:this.arr[t].d[e]}),this.arr[t].titleStrokeAnim[e].play({d:1300,e:"ExpoOut",delay:this.arr[t].d[e]});this.arr[t].lineAnim.play({p:{x:{newStart:-102}},d:1300,e:"ExpoOut",delay:300}),this.arr[t].noAnim.play({d:1300,e:"ExpoOut",delay:300}),this.arr[t].typeAnim.play({d:1300,e:"ExpoOut",delay:500}),this.arr[t].yearAnim.play({d:1300,e:"ExpoOut",delay:500}),this.enableOver(400,t)}},{key:"pagiChange",value:function(t){this.pagiCurr.textContent=t+1}},{key:"enableOver",value:function(t,e){var i=this;this.id=setTimeout(function(t){i.arr[e].titleOver.classList.add("active")},t)}},{key:"disableAllOver",value:function(){clearTimeout(this.id);for(var t=0;t<5;t++)this.arr[t].titleOver.classList.remove("active")}},{key:"outro",value:function(t,e){for(var i=0;i<this.arr[t].titleL;i++)this.arr[t].titleAnim[i].play({p:{x:{newEnd:110}},d:e.d,e:e.e,delay:0,reverse:!0}),this.arr[t].titleStrokeAnim[i].play({p:{x:{newEnd:110}},d:e.d,e:e.e,delay:0,reverse:!0});this.arr[t].lineAnim.play({p:{x:{newEnd:102}},d:e.d,e:e.e,delay:0,reverse:!0}),this.arr[t].noAnim.play({p:{y:{newEnd:-100}},d:e.d,e:e.e,delay:0,reverse:!0}),this.arr[t].typeAnim.play({p:{y:{newEnd:-100}},d:e.d,e:e.e,delay:0,reverse:!0}),this.arr[t].yearAnim.play({p:{y:{newEnd:-100}},d:e.d,e:e.e,delay:0,reverse:!0}),this.dragAnim.play({p:{y:{newEnd:-100}},d:e.d,e:e.e,delay:0}),this.pagiAnim.play({p:{y:{newEnd:-100}},d:e.d,e:e.e,delay:0})}}]),t}(),HomeText$1=new HomeText,BgChange=function(){function t(){classCallCheck(this,t),this.bgDark=skylake.Geb.id("bg-dark"),this.navLinkBlack=skylake.Geb.class("nav-link-black"),this.navLinkWhite=skylake.Geb.class("nav-link-white")}return createClass(t,[{key:"lightToDark",value:function(t){var e=new skylake.Timeline;if(e.from({el:this.bgDark,p:{opacity:[0,1]},d:t.d,e:t.e}),"home"===t.from)for(var i=0;i<5;i++)e.from({el:".h-section-cover-dark",p:{opacity:[0,1]},d:t.d,e:t.e});for(var s=0;s<3;s++)e.from({el:this.navLinkBlack[s],p:{opacity:[1,0]},d:t.d,e:t.e}),e.from({el:this.navLinkWhite[s],p:{opacity:[0,1]},d:t.d,e:t.e});e.play()}},{key:"darkToLight",value:function(t){var e=new skylake.Timeline;if(e.from({el:this.bgDark,p:{opacity:[1,0]},d:t.d,e:t.e}),"home"===t.from)for(var i=0;i<5;i++)e.from({el:".h-section-cover-dark",p:{opacity:[1,0]},d:t.d,e:t.e});for(var s=0;s<3;s++)e.from({el:this.navLinkBlack[s],p:{opacity:[0,1]},d:t.d,e:t.e}),e.from({el:this.navLinkWhite[s],p:{opacity:[1,0]},d:t.d,e:t.e});e.play()}}]),t}(),BgChange$1=new BgChange,LoaderHome=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["cb","webGlInit","showPage"])}return createClass(t,[{key:"run",value:function(t){this.homeWebGL=t.homeWebGL,this.intro=t.intro,this.stickyMouse=t.stickyMouse,this.controllerGetImg=t.controllerGetImg,this.nav=t.nav,HomeText$1.prepare(),this.intro.run(this.webGlInit,this.showPage,"h")}},{key:"webGlInit",value:function(t){this.controllerGetImg(t),this.homeWebGL.init({no:0,imgs:t,needIntro:!0})}},{key:"showPage",value:function(){setTimeout(function(t){BgChange$1.darkToLight({d:1e3,e:"linear",from:"home"})},1e3),this.nav.show({d:1300,e:"ExpoOut"}),HomeText$1.intro({no:0,d:1500,e:"ExpoOut",startDelay:1e3,fromLoader:!0}),this.homeWebGL.run({d:2e3,e:"ExpoInOut",cb:this.cb}),this.stickyMouse.on({isCase:!1,direction:"vertical",rgb:0})}},{key:"cb",value:function(){this.homeWebGL.addListeners()}}]),t}(),LoaderHome$1=new LoaderHome,Imgs=["/static/media/img/home/00.jpg","/static/media/img/home/01.jpg","/static/media/img/home/02.jpg","/static/media/img/home/03.jpg","/static/media/img/home/04.jpg","/static/media/img/d/00.jpg","/static/media/img/d/01.jpg","/static/media/img/d/02.jpg","/static/media/img/archive/00.jpg","/static/media/img/archive/01.jpg","/static/media/img/archive/02.jpg","/static/media/img/archive/03.jpg","/static/media/img/archive/04.jpg","/static/media/img/archive/05.jpg","/static/media/img/archive/06.jpg","/static/media/img/archive/07.jpg","/static/media/img/archive/08.png","/static/media/img/archive/09.jpg","/static/media/img/archive/10.jpg","/static/media/img/archive/11.png","/static/media/img/case/aristide/3.jpg","/static/media/img/case/nokia/4.jpg","/static/media/img/case/rise/2.jpg","/static/media/img/case/ueno/5.jpg","/static/media/img/case/aristide/3.jpg","/static/media/img/case/aristide/10.jpg","/static/media/img/case/zero/5.jpg"],ImgLoader=function(){function t(){classCallCheck(this,t),this.preloaderCurr=skylake.Geb.id("intro-preloader-current")}return createClass(t,[{key:"run",value:function(t){function e(t,e,s){var r=new Image;return r.src=t,r.onload=e,setTimeout(function(t){i.preloaderCurr.textContent=s},20*s),r}var i=this;!function(t,s){function r(){+i.preloaderCurr.textContent==n-1?s(a):requestAnimationFrame(r)}for(var a=[],n=t.length,o=n,h=function(){0==--o&&r()},l=0;l<o;++l){var c=e(t[l],h,l);a.push(c)}}(t.imgArr,t.callback)}}]),t}(),ImgLoader$1=new ImgLoader,StickyMouse=function(){function t(){classCallCheck(this,t),this.introStripDrag=skylake.Geb.id("intro-strip-drag"),this.canvas=skylake.Geb.id("intro-cursor"),this.ctx=this.canvas.getContext("2d"),skylake.BindMaker(this,["loop","move","resize","mousedown","mouseup","stop"]),this.MM=new skylake.MM({element:document,callback:this.move}),this.RO=new skylake.RO({callback:this.resize,throttle:{delay:100,onlyAtEnd:!0}}),this.percentEase={normal:.13,triangleDistance:.1},this.dragSensibility=.4,this.posY=0,this.prevPosY=0,this.start=0,this.currStrip=90,this.psd={win:{w:2400,h:1400},circle:{start:{x:1200,y:700},radius:{normal:70,hold:50}},triangle:{w:16,h:9,circleDistance:{normal:60,hold:12}}},this.circle={circ:2*Math.PI,initialAngle:Math.PI/2,x:{},y:{},opacity:{curr:1,target:1},radius:{curr:0,target:0}},this.triangle={circleDistance:{normal:0,hold:0,target:0,curr:0},xLeft:[],yBottom:[],opacity:{curr:0,target:0}}}return createClass(t,[{key:"on",value:function(){this.resize(),this.RO.on(),this.MM.on()}},{key:"run",value:function(t){this.cb=t,this.drawLine={curr:0},this.isHold=!1,this.drawLine.start=0,this.drawLine.end=1,this.drawLine.duration=2e3,this.drawLine.ease=skylake.EasePack.ExpoInOut,this.drawLine.timeStart=0,this.drawLine.need=!0,this.drawLine.cb=!1,requestAnimationFrame(this.loop)}},{key:"loop",value:function(t){this.drawLine.need&&(this.drawLine.timeStart||(this.drawLine.timeStart=t),this.drawLine.progress=this.drawLine.ease(Math.min((t-this.drawLine.timeStart)/this.drawLine.duration,1)),this.drawLine.curr=skylake.Round(skylake.Lerp.init(this.drawLine.start,this.drawLine.end,this.drawLine.progress)),1===this.drawLine.progress&&(this.drawLine.need=!1,this.drawLine.cb?this.drawLine.cb():this.mousedownListener("add"))),this.circle.x.curr+=skylake.Round((this.circle.x.target-this.circle.x.curr)*this.percentEase.normal),this.circle.y.curr+=skylake.Round((this.circle.y.target-this.circle.y.curr)*this.percentEase.normal),this.circle.radius.curr+=skylake.Round((this.circle.radius.target-this.circle.radius.curr)*this.percentEase.normal),this.triangle.circleDistance.curr+=skylake.Round((this.triangle.circleDistance.target-this.triangle.circleDistance.curr)*this.percentEase.triangleDistance);var e=this.circle.radius.hold+this.triangle.circleDistance.curr+this.triangle.h,i=this.circle.radius.hold+this.triangle.circleDistance.curr,s=this.circle.radius.hold+this.triangle.circleDistance.curr;this.triangle.xLeft[0]=this.circle.x.curr,this.triangle.xLeft[1]=this.circle.x.curr-this.triangle.demiW,this.triangle.xLeft[2]=this.circle.x.curr+this.triangle.demiW,this.triangle.yBottom[0]=this.circle.y.curr-e,this.triangle.yBottom[1]=this.circle.y.curr-i,this.triangle.yBottom[2]=this.circle.y.curr-s,this.triangle.opacity.curr+=skylake.Round((this.triangle.opacity.target-this.triangle.opacity.curr)*this.percentEase.normal);var r=void 0;skylake.Round(this.currStrip,2)>1?r=-1*(this.posY-90):(r=0,this.stripIsFull||this.callStripIsFull()),this.currStrip+=(r-this.currStrip)*this.percentEase.normal,this.draw(),this.needStop||requestAnimationFrame(this.loop)}},{key:"callStripIsFull",value:function(){var t=this;this.mouseupListener("remove"),this.mousedownListener("remove"),this.stripIsFull=!0,this.isHold=!1,this.circle.radius.target=this.circle.radius.normal,this.triangle.circleDistance.target=this.triangle.circleDistance.normal,this.triangle.opacity.target=0,this.drawLine={start:1,end:0,duration:800,ease:skylake.EasePack.Power2Out,timeStart:0,need:!0,cb:this.stop},setTimeout(function(e){t.cb()},300)}},{key:"stop",value:function(){this.RO.off(),this.MM.off(),this.needStop=!0}},{key:"mousedown",value:function(t){this.mousedownListener("remove"),this.isHold=!0,this.circle.radius.target=this.circle.radius.hold,this.triangle.circleDistance.target=this.triangle.circleDistance.hold,this.triangle.opacity.target=1,this.start=t.pageY,this.prevPosY=this.posY,this.mouseupListener("add")}},{key:"move",value:function(t,e){this.circle.x.target=2*t,this.circle.y.target=2*e,this.circle.radius.target=this.isHold?this.circle.radius.hold:this.circle.radius.normal,this.triangle.circleDistance.target=this.isHold?this.triangle.circleDistance.hold:this.triangle.circleDistance.normal,this.triangle.opacity.target=this.isHold?1:0,this.isHold&&(this.posY=-(e-this.start)*this.dragSensibility+this.prevPosY,this.posY=Math.max(this.posY,0),this.posY=Math.min(this.posY,90))}},{key:"mouseup",value:function(){this.mouseupListener("remove"),this.isHold=!1,this.circle.radius.target=this.circle.radius.normal,this.triangle.circleDistance.target=this.triangle.circleDistance.normal,this.triangle.opacity.target=0,this.mousedownListener("add")}},{key:"draw",value:function(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.ctx.beginPath(),this.ctx.strokeStyle="rgba(255,255,255,0.6)",this.ctx.arc(this.circle.x.curr,this.circle.y.curr,this.circle.radius.curr,-this.circle.initialAngle,this.circle.circ*this.drawLine.curr-this.circle.initialAngle,!1),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.fillStyle="rgba(255,255,255,"+this.triangle.opacity.curr+")",this.ctx.moveTo(this.triangle.xLeft[0],this.triangle.yBottom[0]),this.ctx.lineTo(this.triangle.xLeft[1],this.triangle.yBottom[1]),this.ctx.lineTo(this.triangle.xLeft[2],this.triangle.yBottom[2]),this.ctx.fill(),this.introStripDrag.style.transform="translate3d(0,"+skylake.Round(this.currStrip)+"%,0)"}},{key:"resize",value:function(){var t=skylake.Win.w,e=skylake.Win.h;this.canvas.width=2*t,this.canvas.height=2*e,this.ctx.lineWidth=2;var i=t/this.psd.win.w,s=e/this.psd.win.h;this.circle.radius.normal=this.psd.circle.radius.normal*i,this.circle.radius.hold=this.psd.circle.radius.hold*i,this.circle.radius.target=this.circle.radius.normal,this.circle.x.curr=this.psd.circle.start.x*i*2,this.circle.y.curr=this.psd.circle.start.y*s*2,this.circle.x.target=this.circle.x.curr,this.circle.y.target=this.circle.y.curr,this.triangle.w=this.psd.triangle.w*i,this.triangle.h=this.psd.triangle.h*i,this.triangle.demiW=this.triangle.w/2,this.triangle.circleDistance.hold=this.psd.triangle.circleDistance.hold,this.triangle.circleDistance.normal=this.psd.triangle.circleDistance.normal,this.triangle.circleDistance.target=this.triangle.circleDistance.normal,this.triangle.circleDistance.curr=this.triangle.circleDistance.normal}},{key:"mousedownListener",value:function(t){skylake.Listen(document,t,"mousedown",this.mousedown)}},{key:"mouseupListener",value:function(t){skylake.Listen(document,t,"mouseup",this.mouseup)}}]),t}(),Mouse=new StickyMouse,Intro=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["hidePreloader","showTuto","hideTuto"]);var e=skylake.Geb.id("intro-preloader-current"),i=skylake.Geb.id("intro-preloader-line"),s=skylake.Geb.id("intro-preloader-total"),r=skylake.Geb.id("intro-preloader"),a=skylake.Geb.id("intro-title-top"),n=skylake.Geb.id("intro-title-bottom"),o=skylake.Geb.id("intro-txt-top"),h=skylake.Geb.id("intro-txt-bottom");this.stripDragWrap=skylake.Geb.id("intro-strip-drag-wrap");var l=skylake.Geb.id("intro-strip-drag"),c=skylake.Geb.id("intro-strip");this.intro=skylake.Geb.id("intro"),this.preloaderTotal=skylake.Geb.id("intro-preloader-total"),this.currShow=new skylake.Merom({el:e,p:{x:[-100,0]},d:1300,e:"ExpoOut",delay:500}),this.lineShow=new skylake.Merom({el:i,p:{scaleX:[0,1]},d:1300,e:"ExpoOut",delay:550}),this.totalShow=new skylake.Merom({el:s,p:{x:[100,0]},d:1300,e:"ExpoOut",delay:600}),this.preloaderHide=new skylake.Merom({el:r,p:{y:[0,-100]},d:1300,e:"ExpoOut",delay:500}),this.stripDragWrapAnim=new skylake.Merom({el:this.stripDragWrap,p:{y:[101,0]},d:2600,e:"ExpoInOut"}),this.titleTopAnim=new skylake.Merom({el:a,p:{y:[100,0]},d:1300,e:"ExpoOut"}),this.titleBottomAnim=new skylake.Merom({el:n,p:{y:[100,0]},d:1300,e:"ExpoOut"}),this.txtTopAnim=new skylake.Merom({el:o,p:{y:[-100,0]},d:1300,e:"ExpoOut"}),this.txtBottomAnim=new skylake.Merom({el:h,p:{y:[-100,0]},d:1300,e:"ExpoOut"}),this.stripDragAnim=new skylake.Merom({el:l,p:{y:[101,90]},d:2e3,e:"ExpoInOut"}),this.stripAnim=new skylake.Merom({el:c,p:{x:[-101,0]},d:2e3,e:"ExpoInOut"}),this.introAnimHome=new skylake.Merom({el:this.intro,p:{opacity:[1,0]},d:1e3,e:"linear"}),this.introAnimOthers=new skylake.Merom({el:c,p:{x:[0,101]},d:1500,e:"ExpoInOut"})}return createClass(t,[{key:"run",value:function(t,e,i){var s=this;this.isHome="h"===i,this.webGlInit=t,this.showPage=e,Mouse.on(),this.preloaderTotal.textContent=Imgs.length-1,this.currShow.play(),this.lineShow.play(),this.totalShow.play(),setTimeout(function(t){ImgLoader$1.run({imgArr:Imgs,callback:s.hidePreloader})},1500)}},{key:"hidePreloader",value:function(t){this.images=t,this.webGlInit(this.images),this.preloaderHide.play(),this.stripDragWrapAnim.play(),setTimeout(this.showTuto,1300)}},{key:"showTuto",value:function(){this.titleTopAnim.play(),this.titleBottomAnim.play(),this.txtTopAnim.play(),this.txtBottomAnim.play(),this.stripDragAnim.play(),Mouse.run(this.hideTuto)}},{key:"hideTuto",value:function(){var t=this;this.stripAnim.play();var e=this.isHome?0:500;setTimeout(function(e){t.titleTopAnim.play({p:{y:{newEnd:-100}},d:1e3,e:"ExpoIn",reverse:!0}),t.titleBottomAnim.play({p:{y:{newEnd:-100}},d:1e3,e:"ExpoIn",reverse:!0}),t.txtTopAnim.play({p:{y:{newEnd:100}},d:1e3,e:"ExpoIn",reverse:!0}),t.txtBottomAnim.play({p:{y:{newEnd:100}},d:1e3,e:"ExpoIn",reverse:!0})},1e3),setTimeout(function(e){t.stripDragWrap.style.transform="translate3d(-100%,0,0)",t.isHome?(skylake.Geb.id("h-webgl").style.opacity=1,t.introAnimHome.play()):t.introAnimOthers.play()},2e3),setTimeout(function(e){t.showPage(),t.intro.style.transform="translate3d(-100%,0,0)"},3e3+e)}}]),t}(),Intro$1=new Intro,StickyMouse$1=function(){function t(){classCallCheck(this,t),this.app=skylake.Geb.id("app"),this.canvas=skylake.Geb.id("cursor"),this.ctx=this.canvas.getContext("2d"),skylake.BindMaker(this,["loop","move","resize","mousedown","mouseup","clickNav","clickLink"]),this.MM=new skylake.MM({element:document,callback:this.move}),this.RO=new skylake.RO({callback:this.resize,throttle:{delay:100,onlyAtEnd:!0}}),this.percentEase={normal:.13,overOpacity:.3,triangleDistance:.1},this.psd={win:{w:2400,h:1400},circle:{start:{x:1884,y:700},radius:{sticky:120,normal:70,hold:50,hide:25}},triangle:{w:16,h:9,circleDistance:{normal:60,hold:12,hide:0}},zone:[{normal:{x:{start:44,end:244},y:{start:30,end:230}},extend:{x:{start:0,end:500},y:{start:0,end:500}}},{normal:{x:{start:2160,end:2360},y:{start:30,end:230}},extend:{x:{start:1900,end:2400},y:{start:0,end:500}}},{normal:{x:{start:56,end:256},y:{start:1170,end:1370}},extend:{x:{start:0,end:500},y:{start:900,end:1400}}}]},this.zoneL=this.psd.zone.length,this.zone=[];for(var e=0;e<this.zoneL;e++)this.zone[e]={normal:{x:{},y:{}},extend:{x:{},y:{}},normalCenter:{}};this.circle={circ:2*Math.PI,initialAngle:Math.PI/2,x:{},y:{},opacity:{curr:1,target:1},radius:{curr:0,target:0}},this.triangle={circleDistance:{normal:0,hold:0,target:0,curr:0},xLeft:[],xRight:[],yTop:[],yBottom:[],opacity:{curr:0,target:0}},this.isRunning=!1}return createClass(t,[{key:"on",value:function(t){this.stickyEl=t.isCase?skylake.Geb.class("c-close-wrap"):skylake.Geb.class("nav-link"),this.stickyElL=this.stickyEl.length,this.isVertical="vertical"===t.direction,this.rgb=t.rgb,0===this.rgb?(this.circle.opacity.normal=.35,this.circle.opacity.sticky=.1):(this.circle.opacity.normal=.5,this.circle.opacity.sticky=.2),this.circle.opacity.target=this.circle.opacity.normal,this.inZoneNo=-1,this.drawLine={curr:0},this.navLink={curr:{x:[0,0,0],y:[0,0,0]},target:{x:[0,0,0],y:[0,0,0]}},this.isHold=!1,this.canClick=!1,this.drawLine.start=0,this.drawLine.end=1,this.drawLine.duration=2e3,this.drawLine.ease=skylake.EasePack.ExpoInOut,this.drawLine.timeStart=0,this.drawLine.need=!0,this.resize(),this.RO.on(),this.MM.on(),this.needRepositionNav=!1,this.isRunning||(this.isRunning=!0,requestAnimationFrame(this.loop)),this.mousedownListener("add")}},{key:"loop",value:function(t){this.drawLine.need&&(this.drawLine.timeStart||(this.drawLine.timeStart=t),this.drawLine.progress=this.drawLine.ease(Math.min((t-this.drawLine.timeStart)/this.drawLine.duration,1)),this.drawLine.curr=skylake.Round(skylake.Lerp.init(this.drawLine.start,this.drawLine.end,this.drawLine.progress)),1===this.drawLine.progress&&(this.canClick=!0,this.drawLine.need=!1)),this.circle.x.curr+=skylake.Round((this.circle.x.target-this.circle.x.curr)*this.percentEase.normal),this.circle.y.curr+=skylake.Round((this.circle.y.target-this.circle.y.curr)*this.percentEase.normal),this.circle.radius.curr+=skylake.Round((this.circle.radius.target-this.circle.radius.curr)*this.percentEase.normal),this.circle.opacity.curr+=skylake.Round((this.circle.opacity.target-this.circle.opacity.curr)*this.percentEase.overOpacity),this.triangle.circleDistance.curr+=skylake.Round((this.triangle.circleDistance.target-this.triangle.circleDistance.curr)*this.percentEase.triangleDistance);var e=this.circle.radius.hold+this.triangle.circleDistance.curr+this.triangle.h,i=this.circle.radius.hold+this.triangle.circleDistance.curr,s=this.circle.radius.hold+this.triangle.circleDistance.curr;this.isVertical?(this.triangle.xLeft[0]=this.circle.x.curr,this.triangle.xLeft[1]=this.circle.x.curr-this.triangle.demiW,this.triangle.xLeft[2]=this.circle.x.curr+this.triangle.demiW,this.triangle.yTop[0]=this.circle.y.curr-e,this.triangle.yTop[1]=this.circle.y.curr-i,this.triangle.yTop[2]=this.circle.y.curr-s,this.triangle.yBottom[0]=this.circle.y.curr+e,this.triangle.yBottom[1]=this.circle.y.curr+i,this.triangle.yBottom[2]=this.circle.y.curr+s):(this.triangle.xLeft[0]=this.circle.x.curr-e,this.triangle.xLeft[1]=this.circle.x.curr-i,this.triangle.xLeft[2]=this.circle.x.curr-s,this.triangle.xRight[0]=this.circle.x.curr+e,this.triangle.xRight[1]=this.circle.x.curr+i,this.triangle.xRight[2]=this.circle.x.curr+s,this.triangle.yTop[0]=this.circle.y.curr,this.triangle.yTop[1]=this.circle.y.curr-this.triangle.demiW,this.triangle.yTop[2]=this.circle.y.curr+this.triangle.demiW),this.triangle.opacity.curr+=skylake.Round((this.triangle.opacity.target-this.triangle.opacity.curr)*this.percentEase.normal);for(var r=0;r<this.stickyElL;r++)this.navLink.curr.x[r]+=skylake.Round((this.navLink.target.x[r]-this.navLink.curr.x[r])*this.percentEase.normal),this.navLink.curr.y[r]+=skylake.Round((this.navLink.target.y[r]-this.navLink.curr.y[r])*this.percentEase.normal);if(this.draw(),this.needRepositionNav){this.navLink.target.x[this.inZoneNo]=0,this.navLink.target.y[this.inZoneNo]=0,this.circle.x.target=2*this.zone[this.inZoneNo].normalCenter.x,this.circle.y.target=2*this.zone[this.inZoneNo].normalCenter.y;if(skylake.Round(this.navLink.curr.x[this.inZoneNo],2)!==skylake.Round(this.navLink.target.x[this.inZoneNo],2)||skylake.Round(this.navLink.curr.y[this.inZoneNo],2)!==skylake.Round(this.navLink.target.y[this.inZoneNo],2))requestAnimationFrame(this.loop);else{for(var a=0;a<this.stickyElL;a++)this.stickyEl[a].style.transform="translate3d(0,0,0)";this.isRunning=!1}}else requestAnimationFrame(this.loop)}},{key:"mousedown",value:function(t){this.inZoneNo>-1||t.target.classList.contains("cursor-hide")||(this.mousedownListener("remove"),this.isHold=!0,this.circle.radius.target=this.circle.radius.hold,this.triangle.circleDistance.target=this.triangle.circleDistance.hold,this.triangle.opacity.target=1,this.mouseupListener("add"))}},{key:"mouseup",value:function(){this.mouseupListener("remove"),this.isHold=!1,this.circle.radius.target=this.circle.radius.normal,this.triangle.circleDistance.target=this.triangle.circleDistance.normal,this.triangle.opacity.target=0,this.mousedownListener("add")}},{key:"draw",value:function(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.ctx.beginPath(),this.ctx.strokeStyle="rgba("+this.rgb+","+this.rgb+","+this.rgb+","+this.circle.opacity.curr+")",this.ctx.arc(this.circle.x.curr,this.circle.y.curr,this.circle.radius.curr,-this.circle.initialAngle,this.circle.circ*this.drawLine.curr-this.circle.initialAngle,!1),this.ctx.stroke();for(var t=0;t<this.stickyElL;t++)skylake.Round(this.navLink.curr.x[t],2)!==skylake.Round(this.navLink.target.x[t],2)&&(this.stickyEl[t].style.transform="translate3d("+this.navLink.curr.x[t]+"px,"+this.navLink.curr.y[t]+"px,0)");this.isVertical?(this.ctx.beginPath(),this.ctx.fillStyle="rgba("+this.rgb+","+this.rgb+","+this.rgb+","+this.triangle.opacity.curr+")",this.ctx.moveTo(this.triangle.xLeft[0],this.triangle.yTop[0]),this.ctx.lineTo(this.triangle.xLeft[1],this.triangle.yTop[1]),this.ctx.lineTo(this.triangle.xLeft[2],this.triangle.yTop[2]),this.ctx.fill(),this.ctx.beginPath(),this.ctx.fillStyle="rgba("+this.rgb+","+this.rgb+","+this.rgb+","+this.triangle.opacity.curr+")",this.ctx.moveTo(this.triangle.xLeft[0],this.triangle.yBottom[0]),this.ctx.lineTo(this.triangle.xLeft[1],this.triangle.yBottom[1]),this.ctx.lineTo(this.triangle.xLeft[2],this.triangle.yBottom[2]),this.ctx.fill()):(this.ctx.beginPath(),this.ctx.fillStyle="rgba("+this.rgb+","+this.rgb+","+this.rgb+","+this.triangle.opacity.curr+")",this.ctx.moveTo(this.triangle.xLeft[0],this.triangle.yTop[0]),this.ctx.lineTo(this.triangle.xLeft[1],this.triangle.yTop[1]),this.ctx.lineTo(this.triangle.xLeft[2],this.triangle.yTop[2]),this.ctx.fill(),this.ctx.beginPath(),this.ctx.fillStyle="rgba("+this.rgb+","+this.rgb+","+this.rgb+","+this.triangle.opacity.curr+")",this.ctx.moveTo(this.triangle.xRight[0],this.triangle.yTop[0]),this.ctx.lineTo(this.triangle.xRight[1],this.triangle.yTop[1]),this.ctx.lineTo(this.triangle.xRight[2],this.triangle.yTop[2]),this.ctx.fill())}},{key:"resize",value:function(){var t=skylake.Win.w,e=skylake.Win.h;this.canvas.width=2*t,this.canvas.height=2*e,this.ctx.lineWidth=2;var i=t/this.psd.win.w,s=e/this.psd.win.h;this.circle.radius.normal=this.psd.circle.radius.normal*i,this.circle.radius.hold=this.psd.circle.radius.hold*i,this.circle.radius.hide=this.psd.circle.radius.hide*i,this.circle.radius.sticky=this.psd.circle.radius.sticky*i,this.circle.radius.target=this.circle.radius.normal,this.circle.x.curr=this.psd.circle.start.x*i*2,this.circle.y.curr=this.psd.circle.start.y*s*2,this.circle.x.target=this.circle.x.curr,this.circle.y.target=this.circle.y.curr,this.triangle.w=this.psd.triangle.w*i,this.triangle.h=this.psd.triangle.h*i,this.triangle.demiW=this.triangle.w/2,this.triangle.circleDistance.hold=this.psd.triangle.circleDistance.hold,this.triangle.circleDistance.normal=this.psd.triangle.circleDistance.normal,this.triangle.circleDistance.hide=this.psd.triangle.circleDistance.hide,this.triangle.circleDistance.target=this.triangle.circleDistance.normal,this.triangle.circleDistance.curr=this.triangle.circleDistance.normal;for(var r=0;r<this.zoneL;r++)this.zone[r].normal.x.start=this.psd.zone[r].normal.x.start*i,this.zone[r].normal.x.end=this.psd.zone[r].normal.x.end*i,this.zone[r].normal.y.start=this.psd.zone[r].normal.y.start*s,this.zone[r].normal.y.end=this.psd.zone[r].normal.y.end*s,this.zone[r].extend.x.start=this.psd.zone[r].extend.x.start*i,this.zone[r].extend.x.end=this.psd.zone[r].extend.x.end*i,this.zone[r].extend.y.start=this.psd.zone[r].extend.y.start*s,this.zone[r].extend.y.end=this.psd.zone[r].extend.y.end*s,this.zone[r].normalCenter.x=this.zone[r].normal.x.start+(this.zone[r].normal.x.end-this.zone[r].normal.x.start)/2,this.zone[r].normalCenter.y=this.zone[r].normal.y.start+(this.zone[r].normal.y.end-this.zone[r].normal.y.start)/2}},{key:"move",value:function(t,e,i){var s=i.target,r=e-pageYOffset,a=2*t,n=2*r;if(this.inZoneNo>-1&&!this.isHold){var o=t-this.zone[this.inZoneNo].normalCenter.x,h=r-this.zone[this.inZoneNo].normalCenter.y;this.circle.x.target=2*(this.zone[this.inZoneNo].normalCenter.x+.25*o),this.circle.y.target=2*(this.zone[this.inZoneNo].normalCenter.y+.25*h),this.navLink.target.x[this.inZoneNo]=.2*o,this.navLink.target.y[this.inZoneNo]=.2*h,this.circle.opacity.target=this.circle.opacity.sticky,this.stickyEl[this.inZoneNo].classList.add("over"),this.app.className="pointer",this.circle.radius.target=this.circle.radius.sticky,this.needRepositionNav||this.clickNavListener("add");var l=t<this.zone[this.inZoneNo].extend.x.start||t>this.zone[this.inZoneNo].extend.x.end,c=r<this.zone[this.inZoneNo].extend.y.start||r>this.zone[this.inZoneNo].extend.y.end;(l||c)&&(this.clickNavListener("remove"),this.stickyEl[this.inZoneNo].classList.remove("over"),this.app.className="",this.canvas.className="",this.navLink.target.x[this.inZoneNo]=0,this.navLink.target.y[this.inZoneNo]=0,this.needRepositionNav||(this.inZoneNo=-1))}else if(this.circle.x.target=a,this.circle.y.target=n,s.classList.contains("cursor-hide")?(this.circle.opacity.target=0,this.circle.radius.target=this.circle.radius.hide,this.triangle.circleDistance.target=this.triangle.circleDistance.hide,this.triangle.opacity.target=0,s.classList.contains("link")&&(this.clickLinkListener("add"),this.linkListenerOn=!0)):(this.circle.opacity.target=this.circle.opacity.normal,this.circle.radius.target=this.isHold?this.circle.radius.hold:this.circle.radius.normal,this.triangle.circleDistance.target=this.isHold?this.triangle.circleDistance.hold:this.triangle.circleDistance.normal,this.triangle.opacity.target=this.isHold?1:0,this.linkListenerOn&&this.clickLinkListener("remove")),!this.isHold)for(var u=0;u<this.stickyElL;u++){var d=t>=this.zone[u].normal.x.start&&t<=this.zone[u].normal.x.end,p=r>=this.zone[u].normal.y.start&&r<=this.zone[u].normal.y.end;if(d&&p&&!this.stickyEl[u].classList.contains("active")){this.canvas.className="sticky",this.inZoneNo=u;break}}}},{key:"clickLinkListener",value:function(t){skylake.Listen(document,t,"click",this.clickLink)}},{key:"clickNavListener",value:function(t){skylake.Listen(document,t,"click",this.clickNav)}},{key:"mousedownListener",value:function(t){skylake.Listen(document,t,"mousedown",this.mousedown)}},{key:"mouseupListener",value:function(t){skylake.Listen(document,t,"mouseup",this.mouseup)}},{key:"clickLink",value:function(t){if(this.canClick){this.clickLinkListener("remove"),this.RO.off(),this.MM.off(),this.mouseupListener("remove"),this.mousedownListener("remove"),this.app.className="",this.canClick=!1;var e=t.target;e.classList.add("transition"),skylake.Geb.class("link-href",e)[0].click()}}},{key:"clickNav",value:function(t){if(this.canClick){this.clickNavListener("remove"),this.RO.off(),this.MM.off(),this.mouseupListener("remove"),this.mousedownListener("remove"),this.canClick=!1,this.drawLine={start:1,end:0,duration:700,ease:skylake.EasePack.Power3Out,timeStart:0,need:!0},this.stickyEl[this.inZoneNo].classList.remove("over"),this.stickyEl[this.inZoneNo].classList.add("active");for(var e=0;e<this.stickyElL;e++)e!==this.inZoneNo&&this.stickyEl[e].classList.remove("active");this.canvas.className="",this.app.className="",this.needRepositionNav=!0,this.stickyEl[this.inZoneNo].classList.add("click"),this.stickyEl[this.inZoneNo].click(),this.stickyEl[this.inZoneNo].classList.remove("click")}}}]),t}(),StickyMouse$2=new StickyMouse$1,Core=function(){function t(){classCallCheck(this,t)}return createClass(t,[{key:"createProgram",value:function(t,e){var i=this.createShader(t,e[0],t.VERTEX_SHADER),s=this.createShader(t,e[1],t.FRAGMENT_SHADER),r=t.createProgram();return t.attachShader(r,i),t.attachShader(r,s),t.linkProgram(r),r}},{key:"createShader",value:function(t,e,i){var s=t.createShader(i);return t.shaderSource(s,e),t.compileShader(s),s}},{key:"resizeCanvasToDisplaySize",value:function(t){var e=t.clientWidth,i=t.clientHeight;return(t.width!==e||t.height!==i)&&(t.width=e,t.height=i,!0)}},{key:"setRectangle",value:function(t,e,i,s,r){var a=e,n=e+s,o=i,h=i+r;t.bufferData(t.ARRAY_BUFFER,new Float32Array([a,o,n,o,a,h,a,h,n,o,n,h]),t.STATIC_DRAW)}}]),t}(),Core$1=new Core,vertex=["precision mediump float;","attribute vec2 a_position;","attribute vec2 a_texCoord;","uniform vec2 u_resolution;","varying vec2 vertex_texCoord;","void main() {"," vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0;"," gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);"," vertex_texCoord = a_texCoord;","}"].join("\n"),fragment=["precision mediump float;","varying vec2 vertex_texCoord;","uniform sampler2D u_image;","uniform sampler2D u_distortion;","uniform float u_time;","uniform float u_amount;","void main() {"," float speed = 0.0008;"," float invscale = 1.0 / 3.0;"," "," float time = u_time * speed;"," "," vec2 distort1 = texture2D(u_distortion, vertex_texCoord * invscale + time * vec2(0.5, -0.7)).rg;"," vec2 distort2 = texture2D(u_distortion, vertex_texCoord * invscale + time * vec2(-0.3, 1.1)).gb;"," vec2 distort = (2.0 * (distort1 + distort2) - 2.0) * u_amount;"," "," gl_FragColor = texture2D(u_image, vertex_texCoord + distort);","}"].join("\n"),Shader={vertex:vertex,fragment:fragment},HomeWebGL=function(){function t(){classCallCheck(this,t),this.cursorCanvas=skylake.Geb.id("cursor"),this.qty=5,this.dragSensibility=3.4,this.smoothEase=.13,this.elasticEase=[],this.amount={origin:[.05,.04,.05,.06,.08],curr:[],target:[],texture:[0,2,0,0,1]},this.psd={win:{w:2400,h:1400},el:{size:{normal:{w:740,h:1090},drag:{w:1170,h:468},img:{w:1170,h:1090}},position:{top:155,left:615},distance:{li:779,drag:312,delay:220}}},this.ratioPsdElImg=this.psd.el.size.img.w/this.psd.el.size.img.h,this.section={currY:0,targetY:0},this.pagi={no:0},this.percent={},this.time=0,this.lastTime=0,this.frame=1e3/60,this.curr=[];for(var e=0;e<this.qty;e++)this.curr[e]={};skylake.BindMaker(this,["mousedown","move","resize","mouseup","loop"]),this.MM=new skylake.MM({element:document,callback:this.move}),this.RO=new skylake.RO({callback:this.resize,throttle:{delay:100,onlyAtEnd:!0}})}return createClass(t,[{key:"init",value:function(t){var e=t.imgs,i=t.needIntro;this.no=t.no,this.pagi.no=t.no,HomeText$1.pagiChange(this.no),this.posY=0,this.posYPrev=0,this.amount.curr=[0,0,0,0,0],this.amount.target=this.amount.origin,this.loopNeedEnd=!1,this.canvasIsHidden=!0,this.percent.need=!1,this.state="normal",this.transitionState="normal",this.section.el=skylake.Geb.id("h-section-wrap"),this.pagi.el=skylake.Geb.id("h-pagi-wrap"),this.el=[];for(var s=0;s<this.qty;s++)this.el[s]={},this.el[s].top={},this.el[s].left={},this.el[s].h={},this.el[s].w={};this.img={top:{},left:{}},this.img.top.normal=[],this.img.top.drag=[],this.img.left.normal=[],this.img.left.transition=[],this.canvas=skylake.Geb.id("h-webgl");var r=Shader.vertex,a=Shader.fragment;this.gl=this.canvas.getContext("webgl",{antialias:!0,alpha:!0})||this.canvas.getContext("experimental-webgl"),this.program=Core$1.createProgram(this.gl,[r,a]),this.gl.useProgram(this.program),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.resolutionLocation=this.gl.getUniformLocation(this.program,"u_resolution"),this.imgTextures=[];for(var n=0;n<this.qty;n++){var o=this.gl.createTexture();this.gl.bindTexture(this.gl.TEXTURE_2D,o),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,e[n]),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.imgTextures[n]=o}this.uImageLocation=this.gl.getUniformLocation(this.program,"u_image"),this.gl.uniform1i(this.uImageLocation,0),this.distortionTextures=[];for(var h=0;h<3;h++){var l=this.gl.createTexture();this.gl.bindTexture(this.gl.TEXTURE_2D,l),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,e[h+5]),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.REPEAT),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.REPEAT),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.distortionTextures[h]=l}this.uDistortionLocation=this.gl.getUniformLocation(this.program,"u_distortion"),this.gl.uniform1i(this.uDistortionLocation,0),this.positionLocation=this.gl.getAttribLocation(this.program,"a_position"),this.positionBuffer=this.gl.createBuffer(),this.gl.enableVertexAttribArray(this.positionLocation),this.texcoordLocation=this.gl.getAttribLocation(this.program,"a_texCoord"),this.texcoordBuffer=this.gl.createBuffer(),this.gl.enableVertexAttribArray(this.texcoordLocation),this.resize(),this.RO.on();for(var c=i?"drag":"normal",u=0;u<this.qty;u++){var d=u===this.no?c:"normal",p=u===this.no&&i?this.el[u].w[d]:0;this.curr[u].width=p,this.curr[u].height=this.el[u].h[d],this.curr[u].top=this.el[u].top[d],this.curr[u].left=this.el[u].left.normal,this.curr[u].topImg=this.img.top[d][u],this.curr[u].leftImg=this.img.left.normal[u]}this.getElasticEase(),i&&(this.canvasIsHidden=!1,this.draw())}},{key:"run",value:function(t){this.curve={duration:t.d,easeCalc:skylake.EasePack[t.e],start:{w:this.curr[this.no].width,h:this.curr[this.no].height,top:this.curr[this.no].top,left:this.curr[this.no].left,topImg:this.curr[this.no].topImg,leftImg:this.curr[this.no].leftImg,amount:this.amount.curr},timeStart:0,progress:0,need:!0,cb:t.cb},requestAnimationFrame(this.loop)}},{key:"addListeners",value:function(){this.mousedownListener("add"),this.percent.need=!0}},{key:"loop",value:function(t){if(this.curve.need){this.curve.timeStart||(this.curve.timeStart=t),this.curve.progress=this.curve.easeCalc(Math.min((t-this.curve.timeStart)/this.curve.duration,1)),this.curr[this.no].width=this.curveLerp(this.curve.start.w,this.el[this.no].w[this.state]),this.curr[this.no].height=this.curveLerp(this.curve.start.h,this.el[this.no].h[this.state]),this.curr[this.no].top=this.curveLerp(this.curve.start.top,this.el[this.no].top[this.state]),this.curr[this.no].left=this.curveLerp(this.curve.start.left,this.el[this.no].left[this.transitionState]),this.curr[this.no].topImg=this.curveLerp(this.curve.start.topImg,this.img.top[this.state][this.no]),this.curr[this.no].leftImg=this.curveLerp(this.curve.start.leftImg,this.img.left[this.transitionState][this.no]);for(var e=0;e<5;e++)this.amount.curr[e]=this.curveLerp(this.curve.start.amount[e],this.amount.target[e]);1===this.curve.progress&&(this.curve.need=!1,this.curve.cb())}else if(this.percent.need){if(this.needStop&&(this.posY=0),skylake.Round(this.curr[this.no].top)!==skylake.Round(this.el[this.no].top[this.state]-this.posY)){for(var i=0;i<this.qty;i++)this.curr[i].width+=(this.el[i].w[this.state]-this.curr[i].width)*this.smoothEase,this.curr[i].height+=(this.el[i].h[this.state]-this.curr[i].height)*this.smoothEase,this.curr[i].top+=(this.el[i].top[this.state]-this.posY-this.curr[i].top)*this.elasticEase[i],this.curr[i].topImg+=(this.img.top[this.state][i]-this.curr[i].topImg)*this.smoothEase;this.section.currY+=skylake.Round((this.section.targetY-this.posY-this.section.currY)*this.smoothEase);var s=Math.floor((-this.section.currY+this.pagi.marge)/this.viewportEl.distance.li);s!==this.pagi.no&&(HomeText$1.pagiChange(s),this.pagi.no=s),this.pagi.y=skylake.Round(-this.section.currY/this.totalH*this.pagi.yMax)}for(var r=0;r<5;r++)this.amount.curr[r]+=(this.amount.target[r]-this.amount.curr[r])*this.smoothEase}var a=t-this.lastTime;this.lastTime=t;var n=a/this.frame;this.time+=n,this.canvasIsHidden&&(this.canvas.style.opacity=1,this.canvasIsHidden=!1),this.draw(),this.loopNeedEnd||requestAnimationFrame(this.loop)}},{key:"curveLerp",value:function(t,e){return skylake.Lerp.init(t,e,this.curve.progress)}},{key:"draw",value:function(){for(var t=0;t<this.qty;t++){this.gl.uniform1i(this.uImageLocation,0),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.imgTextures[t]),this.gl.uniform1i(this.uDistortionLocation,1),this.gl.activeTexture(this.gl.TEXTURE1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.distortionTextures[this.amount.texture[t]]),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.positionBuffer),this.gl.vertexAttribPointer(this.positionLocation,2,this.gl.FLOAT,!1,0,0),Core$1.setRectangle(this.gl,this.curr[t].left,this.curr[t].top,this.curr[t].width,this.curr[t].height),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.texcoordBuffer),this.gl.vertexAttribPointer(this.texcoordLocation,2,this.gl.FLOAT,!1,0,0),Core$1.setRectangle(this.gl,this.curr[t].leftImg,this.curr[t].topImg,this.curr[t].width/this.img.w,this.curr[t].height/this.img.h);var e=this.gl.getUniformLocation(this.program,"u_time");this.gl.uniform1f(e,this.time);var i=this.gl.getUniformLocation(this.program,"u_amount");this.gl.uniform1f(i,this.amount.curr[t]),this.gl.drawArrays(this.gl.TRIANGLES,0,6)}this.pagi.el.style.transform="translate3d("+this.pagi.y+"px,0,0)",this.section.el.style.transform="translate3d(0,"+this.section.currY+"px,0)"}},{key:"mousedown",value:function(t){"sticky"!==this.cursorCanvas.className&&(t.target.classList.contains("h-title-over")||(this.mousedownListener("remove"),this.MM.on(),this.needStop=!1,this.start=t.pageY,this.amount.target=[0,0,0,0,0],this.state="drag",this.getElasticEase(),HomeText$1.hide(this.no),this.mouseupListener("add")))}},{key:"move",value:function(t,e){e>this.posYPrev&&this.posY===this.min?this.start=e+this.min/this.dragSensibility:e<this.posYPrev&&this.posY===this.max&&(this.start=e+this.max/this.dragSensibility),this.posY=-(e-this.start)*this.dragSensibility,this.posY=Math.min(Math.max(this.posY,this.min),this.max),this.posYPrev=e}},{key:"mouseup",value:function(){this.mouseupListener("remove"),this.MM.off(),this.no=this.no+Math.floor((this.posY+this.carre/2)/this.carre),this.min=-this.viewportEl.distance.li*this.no,this.max=this.totalH-this.viewportEl.distance.li*this.no,this.pagi.no=this.no,this.dependanceOfNo(),this.amount.target=this.amount.origin,this.state="normal",this.getElasticEase(),HomeText$1.show(this.no),HomeText$1.pagiChange(this.no),this.needStop=!0,this.mousedownListener("add")}},{key:"mousedownListener",value:function(t){skylake.Listen(document,t,"mousedown",this.mousedown)}},{key:"mouseupListener",value:function(t){skylake.Listen(document,t,"mouseup",this.mouseup)}},{key:"resize",value:function(){Core$1.resizeCanvasToDisplaySize(this.gl.canvas),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.uniform2f(this.resolutionLocation,this.gl.canvas.width,this.gl.canvas.height);var t=skylake.Win.w/this.psd.win.w,e=skylake.Win.h/this.psd.win.h;this.viewportEl={size:{normal:{w:this.psd.el.size.normal.w*t,h:this.psd.el.size.normal.h*e},drag:{w:this.psd.el.size.drag.w*t,h:this.psd.el.size.drag.h*e},img:{w:this.psd.el.size.img.w*t,h:this.psd.el.size.img.h*e}},position:{top:this.psd.el.position.top*e,left:this.psd.el.position.left*t},distance:{li:this.psd.el.distance.li*e,drag:this.psd.el.distance.drag*e,delay:this.psd.el.distance.delay*e}},this.totalH=4*this.viewportEl.distance.li,this.min=-this.viewportEl.distance.li*this.no,this.max=this.totalH-this.viewportEl.distance.li*this.no,this.pagi.marge=this.viewportEl.distance.li/2,this.pagi.yMax=758*e-this.pagi.el.offsetWidth,this.carre=this.viewportEl.distance.li;this.viewportEl.size.img.w/this.viewportEl.size.img.h>this.ratioPsdElImg?(this.img.w=this.viewportEl.size.img.w,this.img.h=this.img.w/this.ratioPsdElImg,this.img.topNormal=(this.viewportEl.size.img.h/this.img.h-1)/2*-1,this.img.leftNormal=0):(this.img.h=this.viewportEl.size.img.h,this.img.w=this.img.h*this.ratioPsdElImg,this.img.topNormal=0,this.img.leftNormal=(this.viewportEl.size.img.w/this.img.w-1)/2*-1),this.img.topDrag=(this.viewportEl.size.normal.h-this.viewportEl.size.drag.h)/2/this.viewportEl.size.img.h+this.img.topNormal/2,this.img.leftTransition=this.img.leftNormal+this.viewportEl.size.normal.w/this.viewportEl.size.drag.w,this.dependanceOfNo();for(var i=0;i<this.qty;i++)this.curr[i].width=this.el[i].w.normal,this.curr[i].height=this.el[i].h.normal,this.curr[i].top=this.el[i].top.normal,this.curr[i].left=this.el[i].left.normal,this.curr[i].topImg=this.img.top.normal[i],this.curr[i].topLeft=this.img.left.normal[i];this.section.currY=this.section.targetY,this.pagi.y=skylake.Round(-this.section.currY/this.totalH*this.pagi.yMax)}},{key:"dependanceOfNo",value:function(){for(var t=0;t<this.qty;t++)if(this.el[t].w.drag=this.viewportEl.size.drag.w,this.el[t].h.drag=this.viewportEl.size.drag.h,this.el[t].left.normal=this.viewportEl.position.left,this.el[t].left.transition=this.viewportEl.position.left+this.viewportEl.size.normal.w,t===this.no)this.el[t].top.normal=this.viewportEl.position.top,this.el[t].top.drag=this.el[t].top.normal+this.viewportEl.distance.drag,this.el[t].w.normal=this.viewportEl.size.normal.w,this.el[t].h.normal=this.viewportEl.size.normal.h;else{var e=t<this.no?-1:1;this.el[t].top.normal=this.viewportEl.position.top+this.viewportEl.distance.li*(t-this.no)+this.viewportEl.distance.drag+this.viewportEl.distance.delay*e,this.el[t].top.drag=this.viewportEl.position.top+this.viewportEl.distance.li*(t-this.no)+this.viewportEl.distance.drag,this.el[t].w.normal=0,this.el[t].h.normal=this.viewportEl.size.drag.h}for(var i=0;i<this.qty;i++)this.img.left.normal[i]=this.img.leftNormal,this.img.left.transition[i]=this.img.leftTransition,this.img.top.drag[i]=this.img.topDrag,i===this.no?this.img.top.normal[i]=this.img.topNormal:this.img.top.normal[i]=this.img.topDrag;this.section.targetY=this.no*-this.viewportEl.distance.li}},{key:"getElasticEase",value:function(){for(var t=0;t<this.qty;t++)"normal"===this.state?this.elasticEase[t]=this.smoothEase:this.elasticEase[t]=this.smoothEase-.01*t}},{key:"hide",value:function(t){var e=this;this.mousedownListener("remove"),this.mouseupListener("remove"),this.MM.off(),this.percent.need=!1,this.transitionState="transition";for(var i=0;i<this.qty;i++)this.el[i].w.normal=0;HomeText$1.disableAllOver(),this.curve={duration:t.d,easeCalc:skylake.EasePack[t.e],start:{w:this.curr[this.no].width,h:this.curr[this.no].height,top:this.curr[this.no].top,left:this.curr[this.no].left,topImg:this.curr[this.no].topImg,leftImg:this.curr[this.no].leftImg,amount:this.amount.curr},timeStart:0,progress:0,need:!0,cb:function(i){e.loopNeedEnd=!0,t.cb(t.cbArg)}},HomeText$1.outro(this.no,t)}}]),t}(),HomeWebGL$1=new HomeWebGL,FromInfoToHome=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["cb"])}return createClass(t,[{key:"run",value:function(t){var e=t.opts;this.homeWebGL=t.homeWebGL;var i=t.stickyMouse,s=e.xhr,r=t.controllerGetImg,a=e.outroArgs,n=t.bgChange;s.insertNew(),s.removeOld(),HomeText$1.prepare(),r(a),this.homeWebGL.init({no:0,imgs:a,needIntro:!1}),n.darkToLight({d:1e3,e:"linear",from:"home"}),i.on({isCase:!1,direction:"vertical",rgb:0}),HomeText$1.intro({no:0,d:1300,e:"ExpoOut",startDelay:700,fromLoader:!1}),this.homeWebGL.run({d:1500,e:"ExpoInOut",cb:this.cb})}},{key:"cb",value:function(){this.homeWebGL.addListeners()}}]),t}(),FromInfoToHome$1=new FromInfoToHome,FromCAndAToHome=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["cb"])}return createClass(t,[{key:"run",value:function(t){var e=t.opts;this.homeWebGL=t.homeWebGL;var i=t.stickyMouse;this.xhr=e.xhr;var s=t.controllerGetImg,r=t.nav,a=e.outroArgs,n=["/zero","/rise","/aristide","/ueno","/nokia"].indexOf(e.path.old),o=-1!==n,h=o?n:0;this.xhr.insertNew(),this.xhr.removeOld(),HomeText$1.prepare(),s(a),this.homeWebGL.init({no:h,imgs:a,needIntro:!1}),i.on({isCase:!1,direction:"vertical",rgb:0}),o&&r.show({d:1300,e:"ExpoOut"}),HomeText$1.intro({no:h,d:1300,e:"ExpoOut",startDelay:700,fromLoader:!1}),this.homeWebGL.run({d:1500,e:"ExpoInOut",cb:this.cb})}},{key:"cb",value:function(){this.homeWebGL.addListeners()}}]),t}(),FromCAndAToHome$1=new FromCAndAToHome,Nav=function(){function t(){classCallCheck(this,t),this.navLinkI=skylake.Geb.class("nav-link-inner")}return createClass(t,[{key:"show",value:function(t){var e=new skylake.Timeline;e.from({el:this.navLinkI[0],p:{y:[-100,0]},d:t.d,e:t.e}),e.from({el:this.navLinkI[1],p:{y:[-100,0]},d:t.d,e:t.e}),e.from({el:this.navLinkI[2],p:{y:[100,0]},d:t.d,e:t.e}),e.play()}},{key:"hide",value:function(t){var e=new skylake.Timeline;e.from({el:this.navLinkI[0],p:{y:[0,-100]},d:t.d,e:t.e}),e.from({el:this.navLinkI[1],p:{y:[0,-100]},d:t.d,e:t.e}),e.from({el:this.navLinkI[2],p:{y:[0,100]},d:t.d,e:t.e}),e.play()}}]),t}(),Nav$1=new Nav,HomeController=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["controllerGetImg"])}return createClass(t,[{key:"preload",value:function(t){LoaderHome$1.run({opts:t,intro:Intro$1,homeWebGL:HomeWebGL$1,stickyMouse:StickyMouse$2,controllerGetImg:this.controllerGetImg,nav:Nav$1})}},{key:"intro",value:function(t){"/info"===t.path.old?FromInfoToHome$1.run({opts:t,homeWebGL:HomeWebGL$1,stickyMouse:StickyMouse$2,controllerGetImg:this.controllerGetImg,bgChange:BgChange$1}):FromCAndAToHome$1.run({opts:t,homeWebGL:HomeWebGL$1,stickyMouse:StickyMouse$2,controllerGetImg:this.controllerGetImg,nav:Nav$1})}},{key:"controllerGetImg",value:function(t){this.img=t}},{key:"outro",value:function(t){var e=t.path.new,i="/archive"===e;"/info"===e?BgChange$1.lightToDark({d:1e3,e:"linear",from:"home"}):i||Nav$1.hide({d:1e3,e:"Power4Out"}),HomeWebGL$1.hide({d:1e3,e:"Power5Out",cb:t.done,cbArg:this.img})}}]),t}(),LoaderInfo=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["webGlInit","showPage"])}return createClass(t,[{key:"run",value:function(t){this.opts=t.opts,this.intro=t.intro,this.parallaxRun=t.parallaxRun,this.stickyMouse=t.stickyMouse,this.info=t.info,this.controllerGetImg=t.controllerGetImg,this.bgChange=t.bgChange,this.nav=t.nav,this.info.init(),this.intro.run(this.webGlInit,this.showPage,"i")}},{key:"webGlInit",value:function(t){this.controllerGetImg(t)}},{key:"showPage",value:function(){this.parallaxRun.init(this.opts),this.stickyMouse.on({isCase:!1,direction:"vertical",rgb:255}),this.nav.show({d:1300,e:"ExpoOut"}),this.info.show({d:1e3,e:"linear"}),this.parallaxRun.on()}}]),t}(),LoaderInfo$1=new LoaderInfo,Parallax=function(){function t(e,i){classCallCheck(this,t),this.isInfo=i,this.dragSensibility=3;var s=document,r=s.scrollingElement?s.scrollingElement:skylake.Dom.body;this.scrollable=skylake.Sniffer.isFirefox||skylake.Sniffer.isIE?s.documentElement:r,this.dom=skylake.Dom.body,this.elH=skylake.Geb.class("content")[0],this.els=e,this.elsL=this.els.length,this.limit=this.elsL-1,this.isInfo||(this.progress=skylake.Geb.class("c-progress")[0]),this.elsArr=[];for(var a=0;a<this.elsL;a++)this.elsArr[a]={element:skylake.Selector.el(this.els[a].selector),ease:this.els[a].ease,speed:this.els[a].speed};this.target=0,this.save=0,this.curr=[],this.currClear=[];for(var n=0;n<this.elsL;n++)this.curr[n]=0,this.currClear[n]=0;this.isMoving=!1,skylake.BindMaker(this,["loop","resize","move","mousedown","mouseup","scrollCb"]),this.RO=new skylake.RO({callback:this.resize,throttle:{delay:100,endOnly:!0}}),this.MM=new skylake.MM({element:document,callback:this.move}),this.scroll=new skylake.Scroll(this.scrollCb),this.resize()}return createClass(t,[{key:"on",value:function(){this.RO.on(),this.scroll.on(),this.mousedownListener("add")}},{key:"mousedown",value:function(t){this.mousedownListener("remove"),this.scroll.off(),skylake.WTDisable.on(),this.prevTarget=this.target,this.start=t.pageY,this.MM.on(),this.mouseupListener("add")}},{key:"move",value:function(t,e,i){this.target=-(e-this.start)*this.dragSensibility+this.prevTarget,this.target=Math.min(Math.max(this.target,0),this.max),this.isMoving||(this.isMoving=!0,requestAnimationFrame(this.loop))}},{key:"mouseup",value:function(){this.mouseupListener("remove"),this.MM.off(),this.scrollable.scrollTop=this.target,this.mousedownListener("add"),this.scroll.on(),skylake.WTDisable.off()}},{key:"scrollCb",value:function(t){this.target=t,this.isMoving||(this.isMoving=!0,requestAnimationFrame(this.loop))}},{key:"mousedownListener",value:function(t){skylake.Listen(document,t,"mousedown",this.mousedown)}},{key:"mouseupListener",value:function(t){skylake.Listen(document,t,"mouseup",this.mouseup)}},{key:"loop",value:function(){for(var t=0;t<this.elsL;t++)this.curr[t]+=(this.target-this.curr[t])*this.elsArr[t].ease,this.currClear[t]=skylake.Round(this.curr[t],3);this.isInfo||(this.currP=this.curr[0]/this.max*100-100),this.update(this.currClear),this.currClear[this.limit]===skylake.Round(this.target,3)?(this.update(this.target),this.isMoving=!1):requestAnimationFrame(this.loop)}},{key:"update",value:function(t,e){for(var i=0;i<this.elsL;i++){var s=this.elsArr[i];s.element[0].style.transform="translate3d(0,-"+t[i]*s.speed+"px,0)"}this.isInfo||(this.progress.style.transform="translate3d(0,"+this.currP+"%,0)")}},{key:"off",value:function(){skylake.WTDisable.on(),this.mousedownListener("remove"),this.mouseupListener("remove"),this.MM.off(),this.RO.off(),this.scroll.off()}},{key:"resize",value:function(){this.max=this.elH.offsetHeight-skylake.Win.h,this.dom.style.height=this.elH.offsetHeight+"px"}}]),t}(),ParallaxRun=function(){function t(){classCallCheck(this,t),this.body=skylake.Dom.body}return createClass(t,[{key:"init",value:function(t){skylake.WTDisable.on();var e="/info"===t.path.new;e?this.getInfoEls():this.getCaseEls(),this.parallax=new Parallax(this.els,e)}},{key:"on",value:function(){this.parallax.on(),skylake.WTDisable.off()}},{key:"off",value:function(t){this.parallax.off(),skylake.ScrollZero(),skylake.WTDisable.on()}},{key:"destroy",value:function(){this.body.setAttribute("style","")}},{key:"getInfoEls",value:function(){var t=skylake.Geb.id("i-h1-wrap"),e=skylake.Geb.class("organic");this.els=[{selector:t,ease:.13,speed:.6},{selector:e[0],ease:.125,speed:1},{selector:e[1],ease:.119,speed:1},{selector:e[2],ease:.113,speed:1},{selector:e[3],ease:.107,speed:1},{selector:e[4],ease:.101,speed:1},{selector:e[5],ease:.095,speed:1},{selector:e[6],ease:.089,speed:1},{selector:e[7],ease:.083,speed:1}]}},{key:"getCaseEls",value:function(){var t=skylake.Geb.class("c-move")[0];this.els=[{selector:t,ease:.1,speed:1}]}}]),t}(),ParallaxRun$1=new ParallaxRun,FromHAndAToInfo=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["cb"])}return createClass(t,[{key:"run",value:function(t){var e=t.opts;this.parallaxRun=t.parallaxRun;var i=t.stickyMouse,s=e.xhr,r=t.info;(0,t.controllerGetImg)(e.outroArgs),s.insertNew(),s.removeOld(),this.parallaxRun.init(e),r.init(),i.on({isCase:!1,direction:"vertical",rgb:255}),r.show({d:1e3,e:"linear",cb:this.cb})}},{key:"cb",value:function(){this.parallaxRun.on()}}]),t}(),FromHAndAToInfo$1=new FromHAndAToInfo,Info=function(){function t(){classCallCheck(this,t)}return createClass(t,[{key:"init",value:function(){this.i=skylake.Geb.id("i")}},{key:"show",value:function(t){var e=new skylake.Timeline;e.from({el:this.i,p:{opacity:[0,1]},d:t.d,e:t.e,cb:t.cb}),e.play()}},{key:"hide",value:function(t){var e=new skylake.Timeline;e.from({el:this.i,p:{opacity:[1,0]},d:t.d,e:t.e,delay:300,cb:t.cb}),e.play()}}]),t}(),Info$1=new Info,InfoController=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["controllerGetImg"])}return createClass(t,[{key:"preload",value:function(t){LoaderInfo$1.run({opts:t,intro:Intro$1,parallaxRun:ParallaxRun$1,stickyMouse:StickyMouse$2,info:Info$1,controllerGetImg:this.controllerGetImg,bgChange:BgChange$1,nav:Nav$1})}},{key:"intro",value:function(t){FromHAndAToInfo$1.run({opts:t,parallaxRun:ParallaxRun$1,stickyMouse:StickyMouse$2,controllerGetImg:this.controllerGetImg,info:Info$1})}},{key:"controllerGetImg",value:function(t){this.img=t}},{key:"outro",value:function(t){var e=this;ParallaxRun$1.off(),Info$1.hide({d:600,e:"linear",cb:function(i){ParallaxRun$1.destroy(),t.done(e.img)}})}}]),t}(),ArchiveText=function(){function t(){classCallCheck(this,t),this.anim=[]}return createClass(t,[{key:"prepare",value:function(){this.titleWrap=skylake.Geb.id("a-title-wrap"),this.progressWrap=skylake.Geb.id("a-progress-wrap"),this.anim=new skylake.Merom({el:this.titleWrap,p:{opacity:[0,1]},d:1300,e:"ExpoOut"}),this.animProgress=new skylake.Merom({el:this.progressWrap,p:{y:[100,0]},d:1300,e:"ExpoOut"})}},{key:"intro",value:function(t){this.anim.play({d:t.d,e:t.e,delay:t.startDelay}),this.animProgress.play({d:t.d,e:t.e,delay:t.startDelay})}},{key:"outro",value:function(t){this.anim.play({d:t.d,e:t.e,delay:0,reverse:!0}),this.animProgress.play({d:t.d,e:t.e,delay:0,reverse:!0})}}]),t}(),ArchiveText$1=new ArchiveText,LoaderArchive=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["cb","webGlInit","showPage"])}return createClass(t,[{key:"run",value:function(t){this.archiveWebGL=t.archiveWebGL,this.intro=t.intro,this.stickyMouse=t.stickyMouse,this.controllerGetImg=t.controllerGetImg,this.nav=t.nav,ArchiveText$1.prepare(),this.intro.run(this.webGlInit,this.showPage,"i")}},{key:"webGlInit",value:function(t){this.controllerGetImg(t),this.archiveWebGL.init({imgs:t})}},{key:"showPage",value:function(){setTimeout(function(t){BgChange$1.darkToLight({d:1e3,e:"linear",from:"home"})},1e3),this.nav.show({d:1300,e:"ExpoOut"}),ArchiveText$1.intro({d:1500,e:"Power3Out",startDelay:0}),this.archiveWebGL.run({d:2e3,e:"ExpoInOut",cb:this.cb}),this.stickyMouse.on({isCase:!1,direction:"horizontal",rgb:0})}},{key:"cb",value:function(){this.archiveWebGL.addListeners()}}]),t}(),LoaderArchive$1=new LoaderArchive,HomeWebGL$2=function(){function t(){classCallCheck(this,t),this.cursorCanvas=skylake.Geb.id("cursor"),this.dragSensibility=1.1,this.smoothEase=.07,this.amountMax=.05,this.amoutTexture=[2,1,0,1,0,1,0,1,0,1,0,2],this.archive={ease:.07,speed:.2,curr:0},this.psd={win:{w:2400,h:1400},container:[{top:234,left:288,w:746,h:499,speed:1},{top:871,left:1223,w:684,h:455,speed:.7},{top:355,left:2400,w:588,h:392,speed:.85},{top:560,left:4170,w:482,h:723,speed:1.15},{top:205,left:4300,w:754,h:503,speed:.9},{top:730,left:6100,w:696,h:464,speed:1.05},{top:380,left:5600,w:428,h:642,speed:.75},{top:656,left:7500,w:438,h:659,speed:.9},{top:290,left:10400,w:658,h:439,speed:1.15},{top:452,left:10100,w:466,h:699,speed:1},{top:250,left:1e4,w:838,h:559,speed:.9},{top:484,left:10252,w:465,h:698,speed:.8}],border:40,posXLimit:13e3},this.qty=this.psd.container.length,this.container=[],this.texture=[],this.curr={container:[],texture:[]};for(var e=0;e<this.qty;e++)this.curr.container[e]={},this.curr.texture[e]={};this.curve={start:{container:[],texture:[]}};for(var i=0;i<this.qty;i++)this.curve.start.container[i]={},this.curve.start.texture[i]={};this.amount={},this.time=0,this.lastTime=0,this.frame=1e3/60,skylake.BindMaker(this,["mousedown","move","resize","mouseup","loop"]),this.MM=new skylake.MM({element:document,callback:this.move}),this.RO=new skylake.RO({callback:this.resize,throttle:{delay:100,onlyAtEnd:!0}})}return createClass(t,[{key:"init",value:function(t){var e=t.imgs;this.progress=skylake.Geb.id("a-progress"),this.title=skylake.Geb.id("a-title"),this.canvas=skylake.Geb.id("a-webgl");var i=Shader.vertex,s=Shader.fragment;this.gl=this.canvas.getContext("webgl",{antialias:!0,alpha:!0})||this.canvas.getContext("experimental-webgl"),this.program=Core$1.createProgram(this.gl,[i,s]),this.gl.useProgram(this.program),this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.resolutionLocation=this.gl.getUniformLocation(this.program,"u_resolution"),this.imgTextures=[];for(var r=0;r<this.qty;++r){var a=this.gl.createTexture();this.gl.bindTexture(this.gl.TEXTURE_2D,a),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,e[r+8]),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.imgTextures[r]=a}this.uImageLocation=this.gl.getUniformLocation(this.program,"u_image"),this.gl.uniform1i(this.uImageLocation,0),this.distortionTextures=[];for(var n=0;n<3;n++){var o=this.gl.createTexture();this.gl.bindTexture(this.gl.TEXTURE_2D,o),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,e[n+5]),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.REPEAT),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.REPEAT),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.distortionTextures[n]=o}this.uDistortionLocation=this.gl.getUniformLocation(this.program,"u_distortion"),this.gl.uniform1i(this.uDistortionLocation,0),this.positionLocation=this.gl.getAttribLocation(this.program,"a_position"),this.positionBuffer=this.gl.createBuffer(),this.gl.enableVertexAttribArray(this.positionLocation),this.texcoordLocation=this.gl.getAttribLocation(this.program,"a_texCoord"),this.texcoordBuffer=this.gl.createBuffer(),this.gl.enableVertexAttribArray(this.texcoordLocation),this.state="intro",this.archive.curr=0,this.progressCurr=-100,this.amount.curr=0,this.amount.target=0,this.posX=0,this.posXPrev=0,this.resize(),this.RO.on(),this.draw()}},{key:"run",value:function(t){this.percentNeed=!1,this.state="normal",this.curve.duration=t.d,this.curve.easeCalc=skylake.EasePack[t.e],this.curve.timeStart=0,this.curve.progress=0,this.curve.need=!0,this.curve.cb=t.cb;for(var e=0;e<this.qty;e++)this.curve.start.container[e].top=this.container[e].intro.top,this.curve.start.container[e].left=this.container[e].intro.left,this.curve.start.container[e].w=this.container[e].intro.w,this.curve.start.container[e].h=this.container[e].intro.h,this.curve.start.texture[e].top=this.texture[e].intro.top,this.curve.start.texture[e].left=this.texture[e].intro.left,this.curve.start.texture[e].w=this.texture[e].intro.w,this.curve.start.texture[e].h=this.texture[e].intro.h;this.curve.start.amount=this.amountMax+.04,this.loopNeedEnd=!1,requestAnimationFrame(this.loop)}},{key:"addListeners",value:function(){this.mousedownListener("add"),this.percentNeed=!0}},{key:"loop",value:function(t){if(this.curve.need){this.curve.timeStart||(this.curve.timeStart=t),this.curve.progress=this.curve.easeCalc(Math.min((t-this.curve.timeStart)/this.curve.duration,1));for(var e=0;e<this.qty;e++)this.curr.container[e].top=this.curveLerp(this.curve.start.container[e].top,this.container[e][this.state].top),this.curr.container[e].left=this.curveLerp(this.curve.start.container[e].left,this.container[e][this.state].left),this.curr.container[e].w=this.curveLerp(this.curve.start.container[e].w,this.container[e][this.state].w),this.curr.container[e].h=this.curveLerp(this.curve.start.container[e].h,this.container[e][this.state].h),this.curr.texture[e].top=this.curveLerp(this.curve.start.texture[e].top,this.texture[e][this.state].top),this.curr.texture[e].left=this.curveLerp(this.curve.start.texture[e].left,this.texture[e][this.state].left),this.curr.texture[e].w=this.curveLerp(this.curve.start.texture[e].w,this.texture[e][this.state].w),this.curr.texture[e].h=this.curveLerp(this.curve.start.texture[e].h,this.texture[e][this.state].h);this.amount.curr=this.curveLerp(this.curve.start.amount,this.amount.target),1===this.curve.progress&&(this.curve.need=!1,this.curve.cb())}else if(this.percentNeed){var i=skylake.Round(this.curr.container[0].top)===skylake.Round(this.container[0][this.state].top),s=skylake.Round(this.curr.container[0].left)===skylake.Round(this.container[0][this.state].left+this.posX*this.psd.container[0].speed);if(!i||!s){for(var r=0;r<this.qty;r++)this.curr.container[r].top+=(this.container[r][this.state].top-this.curr.container[r].top)*this.smoothEase,this.curr.container[r].left+=(this.container[r][this.state].left+this.posX*this.psd.container[r].speed-this.curr.container[r].left)*this.smoothEase,this.curr.container[r].w+=(this.container[r][this.state].w-this.curr.container[r].w)*this.smoothEase,this.curr.container[r].h+=(this.container[r][this.state].h-this.curr.container[r].h)*this.smoothEase,this.curr.texture[r].top+=(this.texture[r][this.state].top-this.curr.texture[r].top)*this.smoothEase,this.curr.texture[r].left+=(this.texture[r][this.state].left-this.curr.texture[r].left)*this.smoothEase,this.curr.texture[r].w+=(this.texture[r][this.state].w-this.curr.texture[r].w)*this.smoothEase,this.curr.texture[r].h+=(this.texture[r][this.state].h-this.curr.texture[r].h)*this.smoothEase;this.archive.curr+=(this.posX*this.archive.speed-this.archive.curr)*this.archive.ease,this.progressCurr+=(this.posX/this.posXLimit*-100-100-this.progressCurr)*this.smoothEase}this.amount.curr+=(this.amount.target-this.amount.curr)*this.smoothEase}var a=t-this.lastTime;this.lastTime=t;var n=a/this.frame;this.time+=n,this.draw(),this.loopNeedEnd||requestAnimationFrame(this.loop)}},{key:"curveLerp",value:function(t,e){return skylake.Lerp.init(t,e,this.curve.progress)}},{key:"draw",value:function(){for(var t=0;t<this.qty;t++){this.gl.uniform1i(this.uImageLocation,0),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.imgTextures[t]),this.gl.uniform1i(this.uDistortionLocation,1),this.gl.activeTexture(this.gl.TEXTURE1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.distortionTextures[this.amoutTexture[t]]),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.positionBuffer),this.gl.vertexAttribPointer(this.positionLocation,2,this.gl.FLOAT,!1,0,0),Core$1.setRectangle(this.gl,this.curr.container[t].left,this.curr.container[t].top,this.curr.container[t].w,this.curr.container[t].h),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.texcoordBuffer),this.gl.vertexAttribPointer(this.texcoordLocation,2,this.gl.FLOAT,!1,0,0),Core$1.setRectangle(this.gl,this.curr.texture[t].left,this.curr.texture[t].top,this.curr.container[t].w/this.curr.texture[t].w,this.curr.container[t].h/this.curr.texture[t].h);var e=this.gl.getUniformLocation(this.program,"u_time");this.gl.uniform1f(e,this.time);var i=this.gl.getUniformLocation(this.program,"u_amount");this.gl.uniform1f(i,this.amount.curr),this.gl.drawArrays(this.gl.TRIANGLES,0,6)}this.title.style.transform="translate3d("+skylake.Round(this.archive.curr)+"px,0,0)",this.progress.style.transform="translate3d("+skylake.Round(this.progressCurr)+"%,0,0)"}},{key:"mousedown",value:function(t){"sticky"!==this.cursorCanvas.className&&(this.mousedownListener("remove"),this.MM.on(),this.start=t.pageX,this.prevPosX=this.posX,this.amount.target=this.amountMax,this.state="drag",this.mouseupListener("add"))}},{key:"move",value:function(t){t>this.posXPrev&&0===this.posX?this.start=t+this.prevPosX:t<this.posXPrev&&this.posX===-this.posXLimit&&(this.start=t+this.prevPosX+this.posXLimit),this.posX=(t-this.start)*this.dragSensibility+this.prevPosX,this.posX=Math.min(this.posX,0),this.posX=Math.max(this.posX,-this.posXLimit),this.posXPrev=t}},{key:"mouseup",value:function(){this.mouseupListener("remove"),this.MM.off(),this.amount.target=0,this.state="normal",this.mousedownListener("add")}},{key:"mousedownListener",value:function(t){skylake.Listen(document,t,"mousedown",this.mousedown)}},{key:"mouseupListener",value:function(t){skylake.Listen(document,t,"mouseup",this.mouseup)}},{key:"resize",value:function(){Core$1.resizeCanvasToDisplaySize(this.gl.canvas),this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.gl.uniform2f(this.resolutionLocation,this.gl.canvas.width,this.gl.canvas.height);var t=skylake.Win.w/this.psd.win.w,e=skylake.Win.h/this.psd.win.h;this.border=this.psd.border*t;for(var i=0;i<this.qty;i++){this.container[i]={intro:{},normal:{},drag:{},outro:{}},this.container[i].normal.top=this.psd.container[i].top*e,this.container[i].normal.left=this.psd.container[i].left*t,this.container[i].normal.w=this.psd.container[i].w*t,this.container[i].normal.h=this.psd.container[i].h*e,this.container[i].intro.top=this.container[i].normal.top,this.container[i].intro.left=this.container[i].normal.left,this.container[i].intro.w=0,this.container[i].intro.h=this.container[i].normal.h,this.container[i].drag.top=this.container[i].normal.top+this.border,this.container[i].drag.left=this.container[i].normal.left+this.border,this.container[i].drag.w=this.container[i].normal.w-2*this.border,this.container[i].drag.h=this.container[i].normal.h-2*this.border,this.texture[i]={intro:{},normal:{},drag:{},outro:{}};var s=this.psd.container[i].w/this.psd.container[i].h;this.container[i].normal.w/this.container[i].normal.h>s?(this.texture[i].normal.w=this.container[i].normal.w,this.texture[i].normal.h=this.container[i].normal.w/s,this.texture[i].normal.top=(this.container[i].normal.h/this.texture[i].normal.h-1)/2*-1,this.texture[i].normal.left=0):(this.texture[i].normal.h=this.container[i].normal.h,this.texture[i].normal.w=this.container[i].normal.h*s,this.texture[i].normal.top=0,this.texture[i].normal.left=(this.container[i].normal.w/this.texture[i].normal.w-1)/2*-1),this.texture[i].intro.w=this.texture[i].normal.w,this.texture[i].intro.h=this.texture[i].normal.h,this.texture[i].intro.top=this.texture[i].normal.top,this.texture[i].intro.left=this.texture[i].normal.left,this.texture[i].drag.w=this.texture[i].normal.w,this.texture[i].drag.h=this.texture[i].normal.h,this.texture[i].drag.top=this.texture[i].normal.top+this.border/this.texture[i].normal.h,this.texture[i].drag.left=this.texture[i].normal.left+this.border/this.texture[i].normal.w}for(var r=0;r<this.qty;r++)this.curr.container[r].top=this.container[r][this.state].top,this.curr.container[r].left=this.container[r][this.state].left+this.posX*this.psd.container[r].speed,this.curr.container[r].w=this.container[r][this.state].w,this.curr.container[r].h=this.container[r][this.state].h,this.curr.texture[r].top=this.texture[r][this.state].top,this.curr.texture[r].left=this.texture[r][this.state].left,this.curr.texture[r].w=this.texture[r][this.state].w,this.curr.texture[r].h=this.texture[r][this.state].h;this.posXLimit=(this.psd.posXLimit-skylake.Win.w)*t}},{key:"hide",value:function(t){var e=this;this.mousedownListener("remove"),this.mouseupListener("remove"),this.MM.off();for(var i=0;i<this.qty;i++)this.container[i].outro.top=this.container[i].normal.top,this.container[i].outro.left=this.curr.container[i].left+this.container[i].normal.w,this.container[i].outro.w=0,this.container[i].outro.h=this.container[i].normal.h,this.texture[i].outro.w=this.texture[i].normal.w,this.texture[i].outro.h=this.texture[i].normal.h,this.texture[i].outro.top=this.texture[i].normal.top,this.texture[i].outro.left=1,this.curve.start.container[i].top=this.curr.container[i].top,this.curve.start.container[i].left=this.curr.container[i].left,this.curve.start.container[i].w=this.curr.container[i].w,this.curve.start.container[i].h=this.curr.container[i].h,this.curve.start.texture[i].top=this.curr.texture[i].top,this.curve.start.texture[i].left=this.curr.texture[i].left,this.curve.start.texture[i].w=this.curr.texture[i].w,this.curve.start.texture[i].h=this.curr.texture[i].h;this.curve.duration=t.d,this.curve.easeCalc=skylake.EasePack[t.e],this.curve.timeStart=0,this.curve.progress=0,this.curve.cb=function(i){e.loopNeedEnd=!0,t.cb(t.cbArg)},this.curve.start.amount=0,this.percentNeed=!1,this.state="outro",this.curve.need=!0,ArchiveText$1.outro(t)}}]),t}(),ArchiveWebGL=new HomeWebGL$2,FromHomeToArchive=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["cb"])}return createClass(t,[{key:"run",value:function(t){var e=t.opts,i=t.stickyMouse,s=e.xhr;this.archiveWebGL=t.archiveWebGL;var r=t.controllerGetImg,a=e.outroArgs;r(a),s.insertNew(),s.removeOld(),ArchiveText$1.prepare(),this.archiveWebGL.init({imgs:a}),i.on({isCase:!1,direction:"horizontal",rgb:0}),ArchiveText$1.intro({d:1500,e:"Power3Out",startDelay:0}),this.archiveWebGL.run({d:1500,e:"ExpoInOut",cb:this.cb})}},{key:"cb",value:function(){this.archiveWebGL.addListeners()}}]),t}(),FromHomeToArchive$1=new FromHomeToArchive,FromInfoToArchive=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["cb"])}return createClass(t,[{key:"run",value:function(t){var e=t.opts;this.archiveWebGL=t.archiveWebGL;var i=t.stickyMouse,s=e.xhr,r=t.controllerGetImg,a=e.outroArgs,n=t.bgChange;s.insertNew(),s.removeOld(),ArchiveText$1.prepare(),r(a),this.archiveWebGL.init({no:0,imgs:a,needIntro:!1}),n.darkToLight({d:1e3,e:"linear",from:"home"}),i.on({isCase:!1,direction:"horizontal",rgb:0}),ArchiveText$1.intro({d:1500,e:"Power3Out",startDelay:0}),this.archiveWebGL.run({d:1500,e:"ExpoInOut",cb:this.cb})}},{key:"cb",value:function(){this.archiveWebGL.addListeners()}}]),t}(),FromInfoToArchive$1=new FromInfoToArchive,ArchiveController=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["controllerGetImg"])}return createClass(t,[{key:"preload",value:function(t){LoaderArchive$1.run({opts:t,intro:Intro$1,archiveWebGL:ArchiveWebGL,stickyMouse:StickyMouse$2,controllerGetImg:this.controllerGetImg,nav:Nav$1})}},{key:"intro",value:function(t){"/info"===t.path.old?FromInfoToArchive$1.run({opts:t,archiveWebGL:ArchiveWebGL,stickyMouse:StickyMouse$2,controllerGetImg:this.controllerGetImg,bgChange:BgChange$1}):FromHomeToArchive$1.run({opts:t,archiveWebGL:ArchiveWebGL,stickyMouse:StickyMouse$2,controllerGetImg:this.controllerGetImg})}},{key:"controllerGetImg",value:function(t){this.img=t}},{key:"outro",value:function(t){"/info"===t.path.new&&BgChange$1.lightToDark({d:1e3,e:"linear",from:"home"}),ArchiveWebGL.hide({d:1e3,e:"Power5Out",cb:t.done,cbArg:this.img})}}]),t}(),LoaderCase=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["webGlInit","showPage"])}return createClass(t,[{key:"run",value:function(t){this.opts=t.opts,this.intro=t.intro,this.parallaxRun=t.parallaxRun,this.stickyMouse=t.stickyMouse,this.case=t.case,this.controllerGetImg=t.controllerGetImg,this.case.init(),this.intro.run(this.webGlInit,this.showPage,"c")}},{key:"webGlInit",value:function(t){this.controllerGetImg(t)}},{key:"showPage",value:function(){var t=this;this.parallaxRun.init(this.opts),this.stickyMouse.on({isCase:!0,direction:"vertical",rgb:0}),this.case.show({d:1300,e:"ExpoOut"}),setTimeout(function(e){BgChange$1.darkToLight({d:1e3,e:"linear",from:"home"}),t.parallaxRun.on()},1e3)}}]),t}(),LoaderCase$1=new LoaderCase,FromHomeToCase=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["cb"])}return createClass(t,[{key:"run",value:function(t){var e=this,i=t.opts;this.parallaxRun=t.parallaxRun;var s=t.stickyMouse,r=i.xhr,a=t.case,n=t.controllerGetImg,o="/"===i.path.old?100:500;n(i.outroArgs),r.insertNew(),r.removeOld(),this.parallaxRun.init(i),a.init(),s.on({isCase:!0,direction:"vertical",rgb:0}),setTimeout(function(t){a.show({d:1300,e:"ExpoOut",cb:e.cb})},o)}},{key:"cb",value:function(){this.parallaxRun.on()}}]),t}(),FromHomeToCase$1=new FromHomeToCase,Case=function(){function t(){classCallCheck(this,t)}return createClass(t,[{key:"init",value:function(){this.close=skylake.Geb.class("c-close")[0],this.project=skylake.Geb.class("c-header-project")[0],this.no=skylake.Geb.class("c-header-no")[0],this.title=skylake.Geb.class("c-header-title")[0],this.view=skylake.Geb.class("c-header-view")[0],this.year=skylake.Geb.class("c-header-year")[0],this.credits=skylake.Geb.class("c-footer-credits")[0],this.next=skylake.Geb.class("c-footer-next")[0],this.progressWrap=skylake.Geb.class("c-progress-wrap")[0]}},{key:"show",value:function(t){var e=new skylake.Timeline;e.from({el:this.close,p:{y:[100,0]},d:t.d,e:t.e}),e.from({el:this.project,p:{y:[100,0]},d:t.d,e:t.e}),e.from({el:this.no,p:{y:[100,0]},d:t.d,e:t.e}),e.from({el:".c-header-title",p:{x:[110,0]},d:t.d,e:t.e}),e.from({el:this.view,p:{y:[100,0]},d:t.d,e:t.e}),e.from({el:".c-header-role",p:{y:[100,0]},d:t.d,e:t.e}),e.from({el:this.year,p:{y:[100,0]},d:t.d,e:t.e,cb:t.cb}),e.play()}},{key:"hide",value:function(t,e,i){var s=new skylake.Timeline;s.from({el:this.close,p:{y:[0,-100]},d:t.d,e:t.e}),s.from({el:this.project,p:{y:[0,-100]},d:t.d,e:t.e}),s.from({el:this.no,p:{y:[0,-100]},d:t.d,e:t.e}),s.from({el:".c-header-title",p:{x:[0,110]},d:t.d,e:t.e}),s.from({el:this.view,p:{y:[0,-100]},d:t.d,e:t.e}),s.from({el:".c-header-role",p:{y:[0,-100]},d:t.d,e:t.e}),s.from({el:this.year,p:{y:[0,-100]},d:t.d,e:t.e}),s.from({el:".c-media",p:{opacity:[1,0]},d:t.d,e:"linear"}),s.from({el:this.credits,p:{y:[0,-100]},d:t.d,e:t.e}),s.from({el:".c-footer-credits-name",p:{y:[0,-100]},d:t.d,e:t.e}),s.from({el:".c-footer-credits-role",p:{y:[0,-100]},d:t.d,e:t.e}),s.from({el:".c-footer-no",p:{x:[0,110]},d:t.d,e:t.e}),s.from({el:".c-footer-no-stroke",p:{x:[0,110]},d:t.d,e:t.e}),s.from({el:this.next,p:{y:[0,-100]},d:t.d,e:t.e,cb:t.cb}),s.from({el:this.progressWrap,p:{x:[0,-100]},d:t.d,e:t.e}),s.play()}}]),t}(),Case$1=new Case,CaseController=function(){function t(){classCallCheck(this,t),skylake.BindMaker(this,["controllerGetImg"])}return createClass(t,[{key:"preload",value:function(t){LoaderCase$1.run({opts:t,intro:Intro$1,parallaxRun:ParallaxRun$1,stickyMouse:StickyMouse$2,case:Case$1,controllerGetImg:this.controllerGetImg})}},{key:"intro",value:function(t){FromHomeToCase$1.run({opts:t,parallaxRun:ParallaxRun$1,stickyMouse:StickyMouse$2,controllerGetImg:this.controllerGetImg,case:Case$1})}},{key:"controllerGetImg",value:function(t){this.img=t}},{key:"outro",value:function(t){var e=this;ParallaxRun$1.off(),Case$1.hide({d:700,e:"Power3In",cb:function(i){ParallaxRun$1.destroy(),t.done(e.img)}})}}]),t}(),Route=function t(){classCallCheck(this,t);var e=new Router({xhr:!0});e.init("/",HomeController),e.init("/info",InfoController),e.init("/archive",ArchiveController),e.init("/zero",CaseController),e.init("/rise",CaseController),e.init("/aristide",CaseController),e.init("/ueno",CaseController),e.init("/nokia",CaseController),e.error(ErrorController),e.run()},App=function t(){classCallCheck(this,t),Support.init(),skylake.TopWhenRefresh(),new Route};new App;})();</script><script async src="https://www.googletagmanager.com/gtag/js?id=UA-48904664-3"></script><script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','UA-48904664-3');</script>