1!function(e){"use strict";var t="spritespin",a={};window.SpriteSpin=a,a.namespace=t,a.mods={},a.eventNames=["mousedown","mousemove","mouseup","mouseenter","mouseover","mouseleave","dblclick","mousewheel","touchstart","touchmove","touchend","touchcancel","selectstart","gesturestart","gesturechange","gestureend"],a.eventsToPrevent=["dragstart"],a.defaults={source:void 0,width:void 0,height:void 0,frames:void 0,framesX:void 0,lanes:1,sizeMode:void 0,module:"360",behavior:"drag",renderer:"canvas",lane:0,frame:0,frameTime:40,animate:!0,reverse:!1,loop:!0,stopFrame:0,wrap:!0,wrapLane:!1,sense:1,senseLane:void 0,orientation:"horizontal",detectSubsampling:!0,scrollThreshold:50,preloadCount:void 0,onInit:void 0,onProgress:void 0,onLoad:void 0,onFrame:void 0,onDraw:void 0};var n=0,i={};function o(a){e(window.document).bind(a+"."+t,(function(e){!function(e,t){for(var a in i)if(i.hasOwnProperty(a)){var n,o,r=i[a];for(n=0;n<r.mods.length;n+=1)"function"==typeof(o=r.mods[n])[e]&&o[e].apply(r.target,[t,r])}}("document"+a,e)}))}function r(){for(var e in i)if(i.hasOwnProperty(e)){var t=i[e];t.responsive&&a.boot(t)}}a.instances=i;var s=null;e(window).on("resize",(function(){clearTimeout(s),s=setTimeout(r,100)}));for(var u=0;u<a.eventNames.length;u+=1)o(a.eventNames[u]);function c(e,t,a){for(e=String(e);e.length<t;)e=String(a)+e;return e}function l(e,t,a){return e>a?a:e<t?t:e}function d(e,t,a,n){for(;e>a;)e-=n;for(;e<t;)e+=n;return e}function m(e){return e.preventDefault(),!1}function g(e,a,n){n&&e.bind(a+"."+t,(function(t){n.apply(e,[t,e.spritespin("data")])}))}function h(e){e.unbind("."+t)}function f(e,t){var a,n=(t||e).width;if(n*(t||e).height<=1048576)return!1;if(!(a=document.createElement("canvas"))||!a.getContext)return!1;var i=a.getContext("2d");if(!i)return!1;a.width=a.height=1,i.fillStyle="#FF00FF",i.fillRect(0,0,1,1),i.drawImage(e,1-n,0);try{var o=i.getImageData(0,0,1,1).data;return 255===o[0]&&0===o[1]&&255===o[2]}catch(e){return function(){window.console&&window.console.log&&window.console.log.apply(window.console,arguments)}(e.message,e.stack),!1}}a.clamp=l,a.wrap=d,a.bind=g,a.sourceArray=function(e,t){var a=0,n=0,i=0,o=0,r=t.digits||2;t.frame&&(a=t.frame[0],n=t.frame[1]),t.lane&&(i=t.lane[0],o=t.lane[1]);var s,u,l,d=[];for(s=i;s<=o;s+=1)for(u=a;u<=n;u+=1)l=(l=e.replace("{lane}",c(s,r,0))).replace("{frame}",c(u,r,0)),d.push(l);return d},a.measureSource=function(e){var t=e.images[0],a=function(e){if(null!=e.naturalWidth)return{width:e.naturalWidth,height:e.naturalHeight};var t=new Image;return t.src=e.src,{width:t.width,height:t.height}}(t);if(1===e.images.length){if(e.sourceWidth=a.width,e.sourceHeight=a.height,e.detectSubsampling&&f(t,a)&&(e.sourceWidth/=2,e.sourceHeight/=2),e.framesX=e.framesX||e.frames,!e.frameWidth||!e.frameHeight)if(e.framesX){e.frameWidth=Math.floor(e.sourceWidth/e.framesX);var n=Math.ceil(e.frames*e.lanes/e.framesX);e.frameHeight=Math.floor(e.sourceHeight/n)}else e.frameWidth=a.width,e.frameHeight=a.height}else e.sourceWidth=e.frameWidth=a.width,e.sourceHeight=e.frameHeight=a.height,f(t,a)&&(e.sourceWidth=e.frameWidth=a.width/2,e.sourceHeight=e.frameHeight=a.height/2),e.frames=e.frames||e.images.length},a.resetInput=function(e){e.startX=e.startY=void 0,e.currentX=e.currentY=void 0,e.oldX=e.oldY=void 0,e.dX=e.dY=e.dW=0,e.ddX=e.ddY=e.ddW=0},a.updateInput=function(e,t){void 0===e.touches&&void 0!==e.originalEvent&&(e.touches=e.originalEvent.touches),t.oldX=t.currentX,t.oldY=t.currentY,void 0!==e.touches&&e.touches.length>0?(t.currentX=e.touches[0].clientX||0,t.currentY=e.touches[0].clientY||0):(t.currentX=e.clientX||0,t.currentY=e.clientY||0),void 0!==t.oldX&&void 0!==t.oldY||(t.oldX=t.currentX,t.oldY=t.currentY),void 0!==t.startX&&void 0!==t.startY||(t.startX=t.currentX,t.startY=t.currentY,t.clickframe=t.frame,t.clicklane=t.lane),t.dX=t.currentX-t.startX,t.dY=t.currentY-t.startY,t.ddX=t.currentX-t.oldX,t.ddY=t.currentY-t.oldY,t.ndX=t.dX/t.width,t.ndY=t.dY/t.height,t.nddX=t.ddX/t.width,t.nddY=t.ddY/t.height},a.updateFrame=function(e,t,n){e.lastFrame=e.frame,e.lastLane=e.lane,void 0!==t?e.frame=Number(t):e.animation&&(e.frame+=e.reverse?-1:1),e.animation?(e.frame=d(e.frame,0,e.frames-1,e.frames),e.loop||e.frame!==e.stopFrame||a.stopAnimation(e)):e.wrap?e.frame=d(e.frame,0,e.frames-1,e.frames):e.frame=l(e.frame,0,e.frames-1),void 0!==n&&(e.lane=n,e.wrapLane?e.lane=d(e.lane,0,e.lanes-1,e.lanes):e.lane=l(e.lane,0,e.lanes-1)),e.lastFrame==e.frame&&e.lastLane==e.lane||e.target.trigger("onFrameChanged",e),e.target.trigger("onFrame",e),e.target.trigger("onDraw",e)},a.stopAnimation=function(e){e.animate=!1,e.animation&&(window.clearInterval(e.animation),e.animation=null)},a.setAnimation=function(e){e.animate?a.requestFrame(e):a.stopAnimation(e)},a.requestFrame=function(e){e.animation||(void 0===e.frameFunction&&(e.frameFunction=function(){try{a.updateFrame(e)}catch(e){}}),e.animation=window.setInterval(e.frameFunction,e.frameTime))},a.setModules=function(t){var n,i,o;for(n=0;n<t.mods.length;n+=1)"string"==typeof(i=t.mods[n])&&((o=a.mods[i])?t.mods[n]=o:e.error("No module found with name "+i))},a.displaySize=function(e){var t=Math.floor(e.width||e.frameWidth||e.target.innerWidth()),a=Math.floor(e.height||e.frameHeight||e.target.innerHe
1ight());return{width:t,height:a,aspect:t/a}},a.calculateInnerLayout=function(e){var t=Math.floor(e.width||e.frameWidth||e.target.innerWidth()),a=Math.floor(e.height||e.frameHeight||e.target.innerHeight()),n=t/a,i=e.frameWidth||t,o=e.frameHeight||a,r=i/o,s={width:"100%",height:"100%",top:0,left:0,bottom:0,right:0,position:"absolute",overflow:"hidden"},u=e.sizeMode;return u&&"scale"!=u?("original"==u?(s.width=i,s.height=o):"fit"==u?r>=n?(s.width=t,s.height=t/r):(s.height=a,s.width=a*r):"fill"==u?r>=n?(s.height=a,s.width=a*r):(s.width=t,s.height=t/r):(s.width=t,s.height=a),s.width=0|s.width,s.height=0|s.height,s.top=(a-s.height)/2|0,s.left=(t-s.width)/2|0,s.right=s.left,s.bottom=s.top,s):s},a.setLayout=function(e){e.target.attr("unselectable","on").css({width:"",height:"","-ms-user-select":"none","-moz-user-select":"none","-khtml-user-select":"none","-webkit-user-select":"none","user-select":"none"});var t=Math.floor(e.width||e.frameWidth||e.target.innerWidth()),n=Math.floor(e.height||e.frameHeight||e.target.innerHeight());if(e.responsive&&"function"==typeof window.getComputedStyle){var i=getComputedStyle(e.target[0]);if(i.width){var o=t/n;n=(t=0|Number(i.width.replace("px","")))/o|0}}e.target.css({width:t,height:n,position:"relative",overflow:"hidden"});var r,s=a.calculateInnerLayout(e);e.stage.css(s).hide(),e.canvas&&(e.canvasRatio=e.canvasRatio||(r=e.context,(window.devicePixelRatio||1)/(r.webkitBackingStorePixelRatio||r.mozBackingStorePixelRatio||r.msBackingStorePixelRatio||r.oBackingStorePixelRatio||r.backingStorePixelRatio||1)),e.canvas[0].width=s.width*e.canvasRatio||t,e.canvas[0].height=s.height*e.canvasRatio||n,e.canvas.css(s).hide(),e.context.scale(e.canvasRatio,e.canvasRatio))},a.setEvents=function(e){var t,n,i,o=e.target;for(h(o),n=0;n<a.eventsToPrevent.length;n+=1)g(o,a.eventsToPrevent[n],m);for(t=0;t<e.mods.length;t+=1){for(i=e.mods[t],n=0;n<a.eventNames.length;n+=1)g(o,a.eventNames[n],i[a.eventNames[n]]);g(o,"onInit",i.onInit),g(o,"onProgress",i.onProgress),g(o,"onLoad",i.onLoad),g(o,"onFrameChanged",i.onFrameChanged),g(o,"onFrame",i.onFrame),g(o,"onDraw",i.onDraw)}g(o,"onLoad",(function(e,t){a.setAnimation(t)})),g(o,"onInit",e.onInit),g(o,"onProgress",e.onProgress),g(o,"onLoad",e.onLoad),g(o,"onFrameChanged",i.onFrameChanged),g(o,"onFrame",e.onFrame),g(o,"onDraw",e.onDraw)},a.boot=function(t){a.setModules(t),a.setLayout(t),a.setEvents(t),t.target.addClass("loading").trigger("onInit",t),t.loading=!0,function(t){var a,n,i="string"==typeof t.source?[t.source]:t.source,o=0,r=[],s=t.preloadCount||i.length,u=!1,c=!1,l=function(){o+=1,"function"==typeof t.progress&&t.progress({index:e.inArray(this,r),loaded:o,total:i.length,percent:Math.round(o/i.length*100)}),c=c||this===r[0],!u&&o>=s&&c&&"function"==typeof t.complete&&(u=!0,t.complete(r))};for(a=0;a<i.length;a+=1)n=new Image,r.push(n),n.onload=n.onabort=n.onerror=l,n.src=i[a];"function"==typeof t.initiated&&t.initiated(r)}({source:t.source,preloadCount:t.preloadCount,progress:function(e){t.target.trigger("onProgress",[e,t])},complete:function(e){t.images=e,t.loading=!1,a.measureSource(t),a.setLayout(t),t.stage.show(),t.target.removeClass("loading").trigger("onLoad",t).trigger("onFrame",t).trigger("onDraw",t)}})},a.create=function(o){var r=o.target,s=r.data(t);if(s)e.extend(s,o);else{if((s=e.extend({},a.defaults,o)).source=s.source||[],r.find("img").each((function(){s.source.push(e(this).attr("src"))})),r.empty().addClass("spritespin-instance").append("<div class='spritespin-stage'></div>
1"),"canvas"===s.renderer){var u=e("<canvas class='spritespin-canvas'></canvas>")[0];u.getContext&&u.getContext("2d")?(s.canvas=e(u),s.context=u.getContext("2d"),r.append(s.canvas),r.addClass("with-canvas")):s.renderer="image"}s.target=r,s.stage=r.find(".spritespin-stage"),r.data(t,s),function(e){n+=1,e.id=n,i[n]=e}(s)}"string"==typeof s.source&&(s.source=[s.source]),s.mods&&(delete s.behavior,delete s.module),(s.behavior||s.module)&&(s.mods=[],s.behavior&&s.mods.push(s.behavior),s.module&&s.mods.push(s.module),delete s.behavior,delete s.module),a.boot(s)},a.destroy=function(e){e&&(!function(e){delete i[e.id]}(e),a.stopAnimation(e),h(e.target),e.target.removeData(t))},a.registerModule=function(t,n){return a.mods[t]&&e.error("Module name is already taken: "+t),n=n||{},a.mods[t]=n,n},a.Api=function(e){this.data=e},a.extendApi=function(t){var n,i=a.Api.prototype;for(n in t)t.hasOwnProperty(n)&&(i[n]?e.error("API method is already defined: "+n):i[n]=t[n]);return i},e.fn.spritespin=function(n,i){if("data"===n)return this.data(t);if("api"===n){var o=this.data(t);return o.api=o.api||new a.Api(o),o.api}if("destroy"===n)return e(this).each((function(){a.destroy(e(this).data(t))}));if(2===arguments.length&&"string"==typeof n){var r={};r[n]=i,n=r}return"object"==typeof n?(n.target=n.target||e(this),a.create(n),n.target):e.error("Invalid call to spritespin")}}(window.jQuery||window.Zepto||window.$),function(e){"use strict";var t=window.SpriteSpin;t.extendApi({isPlaying:function(){return null!==this.data.animation},isLooping:function(){return this.data.loop},toggleAnimation:function(){this.data.animate=!this.data.animate,t.setAnimation(this.data)},stopAnimation:function(){this.data.animate=!1,t.setAnimation(this.data)},startAnimation:function(){this.data.animate=!0,t.setAnimation(this.data)},loop:function(e){return this.data.loop=e,t.setAnimation(this.data),this},currentFrame:function(){return this.data.frame},updateFrame:function(e){return t.updateFrame(this.data,e),this},skipFrames:function(e){var a=this.data;return t.updateFrame(a,a.frame+(a.reverse?-e:+e)),this},nextFrame:function(){return this.skipFrames(1)},prevFrame:function(){return this.skipFrames(-1)},playTo:function(e,a){var n=this.data;if((a=a||{}).force||n.frame!==e){if(a.nearest){var i=e-n.frame,o=e>n.frame?i-n.frames:i+n.frames,r=Math.abs(i)<Math.abs(o)?i:o;n.reverse=r<0}return n.animate=!0,n.loop=!1,n.stopFrame=e,t.setAnimation(n),this}}})}(window.jQuery||window.Zepto||window.$),function(e){"use strict";var t=function(){for(var e,t,a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=a.length,o={};n<i;n++)if((e=a[n])&&e[1]in document){for(n=0,t=e.length;n<t;n++)o[a[0][n]]=e[n];return o}return!1}();function a(){return document[t.fullscreenElement]}function n(){return!!a()}var i=t.fullscreenchange+"."+SpriteSpin.namespace+"-fullscreen";function o(){e(document).unbind(i)}var r="orientationchange."+SpriteSpin.namespace+"-fullscreen";function s(){e(window).unbind(r)}SpriteSpin.extendApi({fullscreenEnabled:function(){return document[t.fullscreenEnabled]},fullscreenElement:a,exitFullscreen:function(){return document[t.exitFullscreen]()},toggleFullscreen:function(e){n()?this.requestFullscreen(e):this.exitFullscreen()},requestFullscreen:function(a){a=a||{};var u,c=this.data,l=c.width,d=c.height,m=c.source,g=c.sizeMode,h=c.responsive,f=function(){c.width=window.screen.width,c.height=window.screen.height,c.source=a.source||m,c.sizeMode=a.sizeMode||"fit",c.responsive=!1,SpriteSpin.boot(c)};u=function(){var t;n()?(f(),t=f,s(),e(window).bind(r,t)):(o(),s(),c.width=l,c.height=d,c.source=m,c.sizeMode=g,c.responsive=h,SpriteSpin.boot(c))},o(),e(document).bind(i,u),(c.target[0]||document.documentElement)[t.requestFullscreen]()}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function a(e,a){if(!a.loading&&a.stage.is(":visible")){t.updateInput(e,a);var n,i,o=a.target,r=o.offset();"horizontal"===a.orientation?(n=o.innerWidth()/2,i=a.currentX-r.left):(n=o.innerHeight()/2,i=a.currentY-r.top),t.updateFrame(a,a.frame+(i>n?1:-1))}}t.registerModule("click",{mouseup:a,touchend:a})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function a(e,a){a.loading||a.dragging||!a.stage.is(":visible")||(a.dragFrame=a.frame||0,a.dragLane=a.lane||0,a.dragging=!0,t.updateInput(e,a))}function n(e,a){a.dragging&&(a.dragging=!1,t.resetInput(a))}function i(e,a){if(a.dragging){if(t.updateInput(e,a),Math.abs(a.ddX)+Math.abs(a.ddY)>a.scrollThreshold)return a.dragging=!1,void t.resetInput(a);e.preventDefault();var n=0;n="number"==typeof a.orientation?(Number(a.orientation)||0)*Math.PI/180:"horizontal"===a.orientation?0:Math.PI/2;var i=Math.sin(n),o=Math.cos(n),r=(a.nddX*o-a.nddY*i)*a.sense||0,s=(a.nddX*i+a.nddY*o)*(a.senseLane||a.sense)||
10;a.dragFrame+=a.frames*r,a.dragLane+=a.lanes*s;var u=Math.floor(a.dragFrame),c=Math.floor(a.dragLane);t.updateFrame(a,u,c),t.stopAnimation(a)}}t.registerModule("drag",{mousedown:a,mousemove:i,mouseup:n,documentmousemove:i,documentmouseup:n,touchstart:a,touchmove:i,touchend:n,touchcancel:n}),t.registerModule("move",{mousemove:function(e,t){a.call(this,e,t),i.call(this,e,t)},mouseleave:n,touchstart:a,touchmove:i,touchend:n,touchcancel:n})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function a(e,a){a.loading||a.dragging||!a.stage.is(":visible")||(t.updateInput(e,a),a.dragging=!0,a.animate=!0,t.setAnimation(a))}function n(e,a){a.dragging=!1,t.resetInput(a),t.stopAnimation(a)}function i(e,a){if(a.dragging){t.updateInput(e,a);var n,i,o=a.target,r=o.offset();"horizontal"===a.orientation?(n=o.innerWidth()/2,i=(a.currentX-r().left-n)/n):(n=a.height/2,i=(a.currentY-r().top-n)/n),a.reverse=i<0,i=i<0?-i:i,a.frameTime=80*(1-i)+20,("horizontal"===a.orientation&&a.dX<a.dY||"vertical"===a.orientation&&a.dX<a.dY)&&e.preventDefault()}}t.registerModule("hold",{mousedown:a,mousemove:i,mouseup:n,mouseleave:n,touchstart:a,touchmove:i,touchend:n,touchcancel:n,onFrame:function(){e(this).spritespin("api").startAnimation()}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function a(e,a){a.loading||a.dragging||(t.updateInput(e,a),a.dragging=!0)}function n(e,a){if(a.dragging){t.updateInput(e,a);var n=a.frame,i=a.lane;t.updateFrame(a,n,i)}}function i(e,a){if(a.dragging){a.dragging=!1;var n,i,o=a.frame,r=a.lane,s=a.swipeSnap,u=a.swipeFling;"horizontal"===a.orientation?(n=a.ndX,i=a.ddX):(n=a.ndY,i=a.ddY),n>s||i>u?o=a.frame-1:(n<-s||i<-u)&&(o=a.frame+1),t.resetInput(a),t.updateFrame(a,o,r),t.stopAnimation(a)}}t.registerModule("swipe",{onLoad:function(e,t){t.swipeFling=t.swipeFling||10,t.swipeSnap=t.swipeSnap||.5},mousedown:a,mousemove:n,mouseup:i,mouseleave:i,touchstart:a,touchmove:n,touchend:i,touchcancel:i})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";var a=Math.floor;t.registerModule("360",{onLoad:function(t,n){if(n.width&&n.frameWidth?n.scaleWidth=n.width/n.frameWidth:n.scaleWidth=1,n.height&&n.frameHeight?n.scaleHeight=n.height/n.frameHeight:n.scaleHeight=1,n.sourceIsSprite=1===n.images.length,n.stage.empty().css({"background-image":"none"}).show(),"canvas"===n.renderer){var i=n.canvas[0].width/n.canvasRatio,o=n.canvas[0].height/n.canvasRatio;n.context.clearRect(0,0,i,o),n.canvas.show()}else if("background"===n.renderer){n.sourceIsSprite?(i=a(n.sourceWidth*n.scaleWidth),o=a(n.sourceHeight*n.scaleHeight)):(i=a(n.frameWidth*n.scaleWidth),o=a(n.frameHeight*n.scaleHeight));var r=[i,"px ",o,"px"].join("");n.stage.css({"background-repeat":"no-repeat","-webkit-background-size":r,"-moz-background-size":r,"-o-background-size":r,"background-size":r})}else"image"===n.renderer&&(n.sourceIsSprite?(i=a(n.sourceWidth*n.scaleWidth),o=a(n.sourceHeight*n.scaleHeight)):i=o="100%",e(n.images).appendTo(n.stage).css({width:i,height:o,position:"absolute"}))},onDraw:function(t,n){n.sourceIsSprite?function(t){var n=t.lane*t.frames+t.frame,i=t.frameWidth*(n%t.framesX),o=t.frameHeight*a(n/t.framesX);if("canvas"===t.renderer){var r=t.canvas[0].width/t.canvasRatio,s=t.canvas[0].height/t.canvasRatio;return t.context.clearRect(0,0,r,s),void t.context.drawImage(t.images[0],i,o,t.frameWidth,t.frameHeight,0,0,r,s)}i=-a(i*t.scaleWidth),o=-a(o*t.scaleHeight),"background"===t.renderer?t.stage.css({"background-image":["url('",t.source[0],"')"].join(""),"background-position":[i,"px ",o,"px"].join("")}):e(t.images).css({top:o,left:i,"max-width":"initial"})}(n):function(t){var a=t.lane*t.frames+t.frame,n=t.images[a];if("canvas"===t.renderer){if(n&&!1!==n.complete){var i=t.canvas[0].width/t.canvasRatio,o=t.canvas[0].height/t.canvasRatio;t.context.clearRect(0,0,i,o),t.context.drawImage(n,0,0,i,o)}}else"background"===t.renderer?t.stage.css({"background-image":["url('",t.source[a],"')"].join(""),"background-position":[0,"px ",0,"px"].join("")}):(e(t.images).hide(),e(t.images[a]).show())}(n)}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function a(t){t.blurScope=t.blurScope||{};var a=t.blurScope;return a.canvas=a.canvas||e("<canvas class='blur-layer'></canvas>"),a.context=a.context||a.canvas[0].getContext("2d"),a.steps=a.steps||[],a.fadeTime=Math.max(t.blurFadeTime||200,1),a.frameTime=Math.max(t.blurFrameTime||t.frameTime,16),a.trackTime=null,a.cssBlur=!!t.blurCss,a}var n=[];function i(e,t){t.timeout=window.setTimeout((function(){!function(e,t){if(function(e,t){window.clearTimeout(t.timeout),t.timeout=null}(0,t),!t.context)return;var a,r,s=t.context,u=0;for(s.clearRect(0,0,e.width,e.height),a=0;a<t.steps.length;a+=1)(r=t.steps[a]).live=Math.max(r.live-r.step,0),r.alpha=Math.max(r.live-.25,0),o(e,t,r),u+=r.alpha+r.d;t.cssBlur&&function(e,t){t=Math.min(Math.max(t/2-4,0),1.5),e.css({"-webkit-filter":"blur("+t+"px)",filter:"blur("+t+"px)"})}(t.canvas,u);(function(e){var t;for(n.length=0,t=0;t<e.length;t+=1)e[t].alpha<=0&&n.push(t);for(t=0;t<n.length;t+=1)e.splice(n[t],1)})(t.steps),t.steps.length&&i(e,t)}(e,t)}),t.frameTime)}function o(e,t,a){var n=t.context,i=a.index,o=e.sourceIsSprite?e.images[0]:e.images[i];if(!(a.alpha<=0)&&o&&!1!==o.complete)if(n.globalAlpha=a.alpha,e.sourceIsSprite){var r=e.frameWidth*(i%e.framesX),s=e.frameHeight*Math.floor(i/e.framesX);n.drawImage(o,r,s,e.frameWidth,e.frameHeight,0,0,e.width,e.height)}else n.drawImage(o,0,0,e.width,e.height)}t.registerModule("blur",{onLoad:function(e,n){var i=a(n),o=t.calculateInnerLayout(n);i.canvas[0].width=n.width*n.canvasRatio,i.canvas[0].height=n.height*n.canvasRatio,i.canvas.css(o).show(),i.context.scale(n.canvasRatio,n.canvasRatio),n.target.append(i.canvas)},onFrameChanged:function(e,t){var n=a(t);!function(e,t){var a=Math.abs(e.frame-e.lastFrame);a>=e.frames/2&&(a=e.frames-a);t.steps.unshift({index:e.lane*e.frames+e.frame,live:1,step:t.frameTime/t.fadeTime,d:a})}
1(t,n),null==n.timeout&&i(t,n)}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";var a=Math.max,n=Math.min;function i(e,t){t.dragging&&(r(t,t.easeScope),function(e,t){t.samples.push({time:(new Date).getTime(),frame:e.dragFrame,lane:e.dragLane});for(;t.samples.length>e.easeSamples;)t.samples.shift()}(t,t.easeScope))}function o(e,t){for(var a,n,i=t.easeScope,o=i.samples,u=0,c=0,l=0,d=0;d<o.length;d+=1)if(n=o[d],a){var m=n.time-a.time;if(m>t.easeAbortAfterMs)return u=c=l=0,r(t,i);c+=n.frame-a.frame,u+=n.lane-a.lane,l+=m,a=n}else a=n;o.length=0,l&&(i.ms=t.easeUpdateTime,i.lane=t.lane,i.lanes=0,i.laneStep=u/l*i.ms,i.frame=t.frame,i.frames=0,i.frameStep=c/l*i.ms,s(t,i))}function r(e,t){null!=t.timeout&&(window.clearTimeout(t.timeout),t.timeout=null)}function s(e,a){a.timeout=window.setTimeout((function(){!function(e,a){a.lanes+=a.laneStep,a.frames+=a.frameStep,a.laneStep*=e.easeDamping,a.frameStep*=e.easeDamping;var n=Math.floor(a.frame+a.frames),i=Math.floor(a.lane+a.lanes);t.updateFrame(e,n,i),e.dragging?r(0,a):Math.abs(a.frameStep)>.005||Math.abs(a.laneStep)>.005?s(e,a):r(0,a)}(e,a)}),a.ms)}t.registerModule("ease",{onLoad:function(e,t){t.easeAbortAfterMs=a(t.easeAbortAfterMs||250,0),t.easeDamping=a(n(t.easeDamping||.9,.999),0),t.easeSamples=a(t.easeSamples||5,1),t.easeUpdateTime=a(t.easeUpdateTime||t.frameTime,16),t.easeScope={samples:[],steps:[]}},mousemove:i,mouseup:o,mouseleave:o,touchmove:i,touchend:o,touchcancel:o})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";t.registerModule("gallery",{onLoad:function(a,n){n.galleryImages=[],n.galleryOffsets=[],n.gallerySpeed=500,n.galleryOpacity=.25,n.galleryFrame=0,n.galleryStage=n.galleryStage||e("<div/>"),n.stage.prepend(n.galleryStage),n.galleryStage.empty();var i,o=0;for(i=0;i<n.source.length;i+=1){var r=e("<img src='"+n.source[i]+"'/>");n.galleryStage.append(r),n.galleryImages.push(r);var s=n.height/r[0].height;n.galleryOffsets.push(-o+(n.width-r[0].width*s)/2),o+=n.width,r.css({"max-width":"initial",opacity:n.galleryOpacity,width:n.width,height:n.height})}var u=t.calculateInnerLayout(n);n.galleryStage.css(u).css({width:o}),n.galleryImages[n.galleryFrame].animate({opacity:1},n.gallerySpeed)},onDraw:function(e,t){t.galleryFrame===t.frame||t.dragging?(t.dragging||t.dX!=t.gallerydX)&&(t.galleryDX=t.DX,t.galleryDDX=t.DDX,t.galleryStage.stop(!0,!0).animate({left:t.galleryOffsets[t.frame]+t.dX})):(t.galleryStage.stop(!0,!1),t.galleryStage.animate({left:t.galleryOffsets[t.frame]},t.gallerySpeed),t.galleryImages[t.galleryFrame].animate({opacity:t.galleryOpacity},t.gallerySpeed),t.galleryFrame=t.frame,t.galleryImages[t.galleryFrame].animate({opacity:1},t.gallerySpeed))}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";var a=Math.floor;t.registerModule("panorama",{onLoad:function(e,t){t.stage.empty().show(),t.frames=t.sourceWidth,"horizontal"===t.orientation?(t.scale=t.height/t.sourceHeight,t.frames=t.sourceWidth):(t.scale=t.width/t.sourceWidth,t.frames=t.sourceHeight);
1var n=[a(t.sourceWidth*t.scale),"px ",a(t.sourceHeight*t.scale),"px"].join("");t.stage.css({"max-width":"initial","background-image":["url('",t.source[0],"')"].join(""),"background-repeat":"repeat-both","-webkit-background-size":n,"-moz-background-size":n,"-o-background-size":n,"background-size":n})},onDraw:function(e,t){var n=0,i=0;"horizontal"===t.orientation?n=-a(t.frame%t.frames*t.scale):i=-a(t.frame%t.frames*t.scale),t.stage.css({"background-position":[n,"px ",i,"px"].join("")})}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin),function(e,t){"use strict";function a(e,a){var n,i,o,r;e.preventDefault(),a.dragging=!1,!e.touches&&e.originalEvent&&(e.touches=e.originalEvent.touches),e.touches&&e.touches.length?(n=e.touches[0].clientX||0,i=e.touches[0].clientY||0):(n=e.clientX||0,i=e.clientY||0),n/=a.width,i/=a.height,null==a.zoomPX&&(a.zoomPX=n,a.zoomPY=i),null==a.zoomX&&(a.zoomX=n,a.zoomY=i),o=n-a.zoomPX,r=i-a.zoomPY,a.zoomPX=n,a.zoomPY=i,e.type.match(/touch/)&&(o=-o,r=-r),a.zoomX=t.clamp(a.zoomX+o,0,1),a.zoomY=t.clamp(a.zoomY+r,0,1),t.updateFrame(a)}function n(t,n){t.preventDefault();var i=(new Date).getTime();n.zoomClickTime?i-n.zoomClickTime>(n.zoomDoubleClickTime||500)?n.zoomClickTime=i:(n.zoomClickTime=0,e(this).spritespin("api").toggleZoom()&&a(t,n)):n.zoomClickTime=i}function i(e,t){t.zoomStage.is(":visible")&&a(e,t)}t.registerModule("zoom",{mousedown:n,touchstart:n,mousemove:i,touchmove:i,onInit:function(t,a){a.zoomStage||(a.zoomStage=e("<div class='spritezoom-stage'></div>").css({width:"100%",height:"100%",top:0,left:0,bottom:0,right:0,position:"absolute"}).appendTo(a.target).hide())},onDestroy:function(e,t){t.zoomStage&&t.zoomStage.remove()},onDraw:function(t,a){var n=a.lane*a.frames+a.frame,i=(a.zoomSource||a.source)[n];if(i){var o=a.zoomX,r=a.zoomY;null!=o&&null!=r||(o=a.zoomX=.5,r=a.zoomY=.5),o=100*o|0,r=100*r|0,a.zoomStage.css({"background-repeat":"no-repeat","background-image":["url('",i,"')"].join(""),"background-position":[o,"% ",r,"%"].join("")})}else e.error("'zoomSource' option is missing or it contains unsufficient number of frames.")}}),t.extendApi({toggleZoom:function(){var t=this.data;return t.zoomStage?t.zoomStage.is(":visible")?(t.zoomStage.fadeOut(),t.stage.fadeIn(),!1):(t.zoomStage.fadeIn(),t.stage.fadeOut(),!0):(e.error("zoom module is not initialized or is not available."),!1)}})}(window.jQuery||window.Zepto||window.$,window.SpriteSpin);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.