`,{'class':`exit-message`}).html(`
Press ESC to exit
`).appendTo($(`body`)).delay(2000).animate({opacity:l},500,function(){$(this).remove()})}}),zoomOut:(()=>{$(t).fadeIn();$(`.exit-message`).hide();$(u).fadeIn();$(x).removeClass(z).addClass(y);setTimeout((()=>{$(k).addClass(v).removeClass(w);resizeViewport()}),l)})}});if($.isTouch)$(p).bind(`zoom.doubleTap`,zoomTo);else $(p).bind(`zoom.tap`,zoomTo);$(document).keydown((a=>{var b=37,c=39,d=27;switch(a.keyCode){case b:$(k).turn(s);a.preventDefault();break;case c:$(k).turn(r);a.preventDefault();break;case d:$(p).zoom(`zoomOut`);a.preventDefault();break}}));Hash.on(`^page\\/([0-9]*)\$`,{yep:((a,b)=>{var c=b[o];if(c!==undefined){if($(k).turn(A))$(k).turn(m,c)}}),nop:(a=>{if($(k).turn(A))$(k).turn(m,o)})});$(window).resize((()=>{resizeViewport()})).bind(`orientationchange`,(()=>{resizeViewport()}));if($.isTouch){$(k).bind(`touchstart`,regionClick)}else{$(k).click(regionClick)};$(`.next-button`).bind($.mouseEvents.over,function(){$(this).addClass(B)}).bind($.mouseEvents.out,function(){$(this).removeClass(B)}).bind($.mouseEvents.down,function(){$(this).addClass(C)}).bind($.mouseEvents.up,function(){$(this).removeClass(C)}).click((()=>{$(k).turn(r)}));$(`.last-button`).click((()=>{$(k).turn(m,$(k).turn(n))}));$(`.first-button`).click((()=>{$(k).turn(m,o)}));$(`.previous-button`).bind($.mouseEvents.over,function(){$(this).addClass(D)}).bind($.mouseEvents.out,function(){$(this).removeClass(D)}).bind($.mouseEvents.down,function(){$(this).addClass(E)}).bind($.mouseEvents.up,function(){$(this).removeClass(E)}).click((()=>{$(k).turn(s)}));resizeViewport();$(k).addClass(v)});$(`.zoom-button`).bind(`click`,function(){let a=`.magazine-viewport`;if($(this).hasClass(`fa-search-plus`))$(a).zoom(`zoomIn`);else if($(this).hasClass(`fa-search-minus`))$(a).zoom(`zoomOut`)});$(`#canvas`).hide();yepnope({test:Modernizr.csstransforms,yep:[`js/lib/turn.min.js`],nope:[`js/lib/turn.html4.min.js`,`css/jquery.ui.html4.css`],both:[`js/lib/zoom.js`,`css/jquery.ui.css`,`js/magazine.js`,`css/magazine.css`],complete:loadApp})