You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
radium/compiled/radium.min.js

7 lines
172 KiB
JavaScript

!function(){var e,t=function(e,t){return function(){return e.apply(t,arguments)}};window.pass=void 0,e=function(){function e(e){this.resource_manager=e,this.getTileset=t(this.getTileset,this),this.getSprite=t(this.getSprite,this),this.getSound=t(this.getSound,this),this.getObject=t(this.getObject,this),this.getScene=t(this.getScene,this),this.createTileset=t(this.createTileset,this),this.createSprite=t(this.createSprite,this),this.createSound=t(this.createSound,this),this.createObject=t(this.createObject,this),this.createScene=t(this.createScene,this),this.setPreloadScene=t(this.setPreloadScene,this),this.setInitialScene=t(this.setInitialScene,this),this.skipTimers=t(this.skipTimers,this),this.updateTimers=t(this.updateTimers,this),this.iteration=t(this.iteration,this),this.loop=t(this.loop,this),this.start=t(this.start,this),this.updateCanvasSize=t(this.updateCanvasSize,this),this.getSurface=t(this.getSurface,this),this.createSurface=t(this.createSurface,this),this.addCanvas=t(this.addCanvas,this),this.canvases={},this.fps=45,this.last_frameskip_collection=Math.floor(Date.now()),this.frameskip=0,this.current_frameskip=0,this.current_frame=0,this.scenes={},this.objects={},this.sounds={},this.sprites={},this.tilesets={},this.named_timers={},this.unnamed_timers=[],this.ease.engine=this}return e.prototype.addCanvas=function(e,t){return null==t&&(t=""),this.canvases[t]=d.unpackElement(e)},e.prototype.createSurface=function(e){return this.canvases[e]=document.createElement("canvas")},e.prototype.getSurface=function(e){var t;return"string"==typeof e?null!=(t=this.canvases[e])?t.getContext("2d"):void 0:"CANVAS"===e.tagName?e.getContext("2d"):e},e.prototype.updateCanvasSize=function(e,t,n){return e.width=t,e.height=n,e.style.width=""+t+"px",e.style.height=""+n+"px"},e.prototype.start=function(){return this.initial_scene.addTargetSurface(this.canvases[""]),this.loop()},e.prototype.loop=function(){return this.iteration()},e.prototype.iteration=function(){var e,t,n,i,r,s,o,a,u;n=1e3/this.fps,t=Date.now(),r=t+n,this.current_frame+=1,Math.floor(t)>this.last_frameskip_collection&&(this.frameskip=this.current_frameskip,this.current_frameskip=0,this.last_frameskip_collection=Math.floor(t)),this.updateTimers(),u=this.scenes;for(i in u)o=u[i],o.active&&o.iteration();return Date.now()<r?setTimeout(this.iteration,r-Date.now()):(s=Date.now()-r,a=Math.floor(s/n),this.current_frameskip+=a,this.current_frame+=a,this.skipTimers(a),e=s%n,setTimeout(this.iteration,e))},e.prototype.updateTimers=function(){var e,t,n,i,r,s,o,a,u;for(o=this.unnamed_timers.concat(function(){var t,n;t=this.named_timers,n=[];for(e in t)i=t[e],n.push(i);return n}.call(this)),r=0,s=o.length;s>r;r++)t=o[r],t.step();this.unnamed_timers=this.unnamed_timers.filter(function(e){return!e.finished}),a=this.named_timers,u=[];for(n in a)t=a[n],u.push(t.finished?delete this.named_timers[n]:void 0);return u},e.prototype.skipTimers=function(e){var t,n,i,r,s,o,a;for(o=this.unnamed_timers.concat(function(){var e,n;e=this.named_timers,n=[];for(t in e)i=e[t],n.push(i);return n}.call(this)),a=[],r=0,s=o.length;s>r;r++)n=o[r],a.push(n.skip(e));return a},e.prototype.setInitialScene=function(e){return this.initial_scene=e},e.prototype.setPreloadScene=function(e){return this.preload_scene=e},e.prototype.createScene=function(e){var t;return t=new a(this,e),null==this.initial_scene&&(this.initial_scene=t),this.scenes[e]=t},e.prototype.createObject=function(e){return this.objects[e]=new s(this,e)},e.prototype.createSound=function(e,t){return this.sounds[e]=new u(this,e,this.resource_manager.getSound(t))},e.prototype.createSprite=function(e,t){return console.log("gget",this.resource_manager.getImage(t)),this.sprites[e]=new l(this,e,this.resource_manager.getImage(t))},e.prototype.createTileset=function(e,t,n,i){return this.tilesets[e]=new c(this,e,this.resource_manager.getImage(t),n,i)},e.prototype.getScene=function(e){return"string"==typeof e?this.scenes[e]:e},e.prototype.getObject=function(e){return"string"==typeof e?this.objects[e]:e},e.prototype.getSound=function(e){return"string"==typeof e?this.sounds[e]:e},e.prototype.getSprite=function(e){return"string"==typeof e?this.sprites[e]:e},e.prototype.getTileset=function(e){return"string"==typeof e?this.tilesets[e]:e},e}(),e.prototype.draw={_startPath:function(e){return function(t,n){var i;return t=e.getSurface(t),(null!=(i=!n._is_text)?i:!1)&&t.beginPath(),t}}(this),_finishPath:function(){return function(e,t){var n,i,r,s,o,a,u,l,c,h,d,p,f;return(null!=(n=t.stroke)?n:!0)&&(e.lineWidth=null!=(i=null!=(a=t.lineWidth)?a:null!=(u=t.pen)?u.lineWidth:void 0)?i:1,e.strokeStyle=null!=(l=null!=(c=t.lineColor)?c:null!=(h=t.pen)?h.lineColor:void 0)?l:"black",(null!=(d=t._is_text)?d:!1)?e.strokeText(t.text,t.x,t.y):e.stroke()),(null!=(p=t.fill)?p:!1)?(e.fillStyle=null!=(f=null!=(r=t.fillColor)?r:null!=(s=t.pen)?s.fillColor:void 0)?f:"white",(null!=(o=t._is_text)?o:!1)?e.fillText(t.text,t.x,t.y):e.fill()):void 0}}(this),_getTextWidth:function(e){return function(t,n,i){var r;return e._applyTextContext(t,i),r=t.measureText(n).width,t.restore(),r}}(this),_applyTextContext:function(){return function(e,t){var n,i,r,s,o,a,u,l,c,h,d;return n=null!=(a=t.font)?a:"sans-serif",i=null!=(u=t.size)?u:16,s=null!=(l=t.weight)?l:"normal",r=null!=(c=t.style)?c:"normal",o=null!=(h=t.scale)?h:1,e.save(),e.font=""+s+" "+r+" "+i+"px '"+n+"'",e.globalAlpha=null!=(d=t.alpha)?d:1,e.scale(o,o)}}(this),line:function(e){return function(t,n,i,r,s,o){return null==s&&(s={}),null==o&&(o=""),o=e._startPath(o,s),o.moveTo(t,n),o.lineTo(i,r),e._finishPath(o,s)}}(this),rectangle:function(e){return function(t,n,i,r,s,o){return null==s&&(s={}),null==o&&(o=""),o=e._startPath(o,s),o.rect(t,n,i-t,r-n),e._finishPath(o,s)}}(this),boxEllipse:function(e){return function(t,n,i,r,s,o){var a,u,l,c;return null==s&&(s={}),null==o&&(o=""),l=(t+i)/2,c=(n+r)/2,a=(i-t)/2,u=(r-n)/2,e.radiusEllipse(l,c,a,u,s,o)}}(this),radiusEllipse:function(e){return function(t,n,i,r,s,o){var a,u,l,c,h;if(null==s&&(s={}),null==o&&(o=""),o=e._startPath(o,s),u=null!=(c=s.step)?c:.1,i===r)o.arc(t,n,i,0,2*Math.PI,!1);else for(o.moveTo(t+i,n),a=l=0,h=2*Math.PI+u;h>=0?h>=l:l>=h;a=h>=0?++l:--l)o.lineTo(t+Math.cos(a)*i,n+Math.sin(a)*r);return e._finishPath(o,s)}}(this),boxPolygon:function(){return function(e,t,n,i,r,s,o){return null==s&&(s={}),null==o&&(o=""),pass}}(this),radiusPolygon:function(){return function(e,t,n,i,r,s){return null==r&&(r={}),null==s&&(s=""),pass}}(this),text:function(e){return function(t,n,i,r,s){var o;return null==r&&(r={}),null==s&&(s=""),null==r.alignment&&(r.alignment="left"),null==r.scale&&(r.scale=1),r._is_text=!0,r.text=i,r.y=n,null==r.fill&&(r.fill=!0),null==r.fillColor&&(r.fillColor="black"),null==r.stroke&&(r.stroke=!1),"left"===alignment?r.x=t:(o=e._getTextWidth(i,r),"center"===alignment?r.x=t-o/2*scale*scale:"right"===alignment&&(r.x=t-o)),e._startPath(s,r),e._finishPath(s,r),s.restore()}}(this)};var n,t=function(e,t){return function(){return e.apply(t,arguments)}},i=[].slice;e.prototype.ease={_calculateElasticValues:function(e,t,n,i,r){var s;return null==r&&(r=!1),null==n&&(n=r?.3*e*1.5:.3*e),null==t||t<Math.abs(i)?(t=i,s=n/4):s=n/(2*Math.PI)*Math.asin(i/t),[t,n,i,s]},backIn:function(e,t,i,r,s,o,a){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),null==a&&(a=1.70158),new n(this.engine,"backIn",s,e,t,this.engine.current_frame,i,o,r,a)},backOut:function(e,t,i,r,s,o,a){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),null==a&&(a=1.70158),new n(this.engine,"backOut",s,e,t,this.engine.current_frame,i,o,r,a)},backInOut:function(e,t,i,r,s,o,a){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),null==a&&(a=1.70158),new n(this.engine,"backInOut",s,e,t,this.engine.current_frame,i,o,r,a)},bounceOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"bounceOut",s,e,t,this.engine.current_frame,i,o,r)},bounceIn:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"bounceIn",s,e,t,this.engine.current_frame,i,o,r)},bounceInOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"bounceInOut",s,e,t,this.engine.current_frame,i,o,r)},circOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"circOut",s,e,t,this.engine.current_frame,i,o,r)},circIn:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"circIn",s,e,t,this.engine.current_frame,i,o,r)},circInOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"circInOut",s,e,t,this.engine.current_frame,i,o,r)},cubicOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"cubicOut",s,e,t,this.engine.current_frame,i,o,r)},cubicIn:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"cubicIn",s,e,t,this.engine.current_frame,i,o,r)},cubicInOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"cubicInOut",s,e,t,this.engine.current_frame,i,o,r)},elasticOut:function(e,t,i,r,s,o,a,u){var l,c,h;return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),null==a&&(a=null),null==u&&(u=null),h=this._calculateElasticValues(i,a,u,t-e),a=h[0],u=h[1],l=h[2],c=h[3],t=e+l,new n(this.engine,"elasticOut",s,e,t,this.engine.current_frame,i,o,r,a,u,c)},elasticIn:function(e,t,i,r,s,o,a,u){var l,c,h;return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),null==a&&(a=null),null==u&&(u=null),h=this._calculateElasticValues(i,a,u,t-e),a=h[0],u=h[1],l=h[2],c=h[3],t=e+l,new n(this.engine,"elasticIn",s,e,t,this.engine.current_frame,i,o,r,a,u,c)},elasticInOut:function(e,t,i,r,s,o,a,u){var l,c,h;return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),null==a&&(a=null),null==u&&(u=null),h=this._calculateElasticValues(i,a,u,t-e,!0),a=h[0],u=h[1],l=h[2],c=h[3],t=e+l,new n(this.engine,"elasticInOut",s,e,t,this.engine.current_frame,i,o,r,a,u,c)},expoOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"expoOut",s,e,t,this.engine.current_frame,i,o,r)},expoIn:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"expoIn",s,e,t,this.engine.current_frame,i,o,r)},expoInOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"expoInOut",s,e,t,this.engine.current_frame,i,o,r)},linearNone:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"linearNone",s,e,t,this.engine.current_frame,i,o,r)},linearOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"linearNone",s,e,t,this.engine.current_frame,i,o,r)},linearIn:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"linearNone",s,e,t,this.engine.current_frame,i,o,r)},linearInOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"linearNone",s,e,t,this.engine.current_frame,i,o,r)},quadOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"quadOut",s,e,t,this.engine.current_frame,i,o,r)},quadIn:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"quadIn",s,e,t,this.engine.current_frame,i,o,r)},quadInOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"quadInOut",s,e,t,this.engine.current_frame,i,o,r)},quartOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"quartOut",s,e,t,this.engine.current_frame,i,o,r)},quartIn:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"quartIn",s,e,t,this.engine.current_frame,i,o,r)},quartInOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"quartInOut",s,e,t,this.engine.current_frame,i,o,r)},sineOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"sineOut",s,e,t,this.engine.current_frame,i,o,r)},sineIn:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"sineIn",s,e,t,this.engine.current_frame,i,o,r)},sineInOut:function(e,t,i,r,s,o){return null==r&&(r=null),null==s&&(s=!1),null==o&&(o=!1),new n(this.engine,"sineInOut",s,e,t,this.engine.current_frame,i,o,r)}},n=function(){function e(){var e,n,r,s,o,a,u,l,c,h;r=arguments[0],h=arguments[1],s=arguments[2],l=arguments[3],n=arguments[4],c=arguments[5],e=arguments[6],o=arguments[7],a=arguments[8],u=10<=arguments.length?i.call(arguments,9):[],this.engine=r,this.type=h,this.infinite=s,this.start=l,this.end=n,this.start_frame=c,this.duration=e,this.invert_repeat=o,this.next=a,this.params=u,this.quadInOut=t(this.quadInOut,this),this.quadOut=t(this.quadOut,this),this.quadIn=t(this.quadIn,this),this.linearNone=t(this.linearNone,this),this.expoInOut=t(this.expoInOut,this),this.expoOut=t(this.expoOut,this),this.expoIn=t(this.expoIn,this),this.elasticInOut=t(this.elasticInOut,this),this.elasticIn=t(this.elasticIn,this),this.elasticOut=t(this.elasticOut,this),this.cubicInOut=t(this.cubicInOut,this),this.cubicOut=t(this.cubicOut,this),this.cubicIn=t(this.cubicIn,this),this.circInOut=t(this.circInOut,this),this.circOut=t(this.circOut,this),this.circIn=t(this.circIn,this),this.bounceInOut=t(this.bounceInOut,this),this.bounceIn=t(this.bounceIn,this),this.bounceOut=t(this.bounceOut,this),this.backInOut=t(this.backInOut,this),this.backOut=t(this.backOut,this),this.backIn=t(this.backIn,this),this.valueOf=t(this.valueOf,this),this.updateValue=t(this.updateValue,this),this.goToNext=t(this.goToNext,this),this.func=this[this.type],this.change=this.end-this.start,this.value=this.start,this.last_updated=this.start_frame,this.finished=!1}return e.prototype.goToNext=function(){return this.func=this[this.next.type],this.change=this.next.change,this.value=this.next.value,this.start_frame=this.last_updated=this.engine.current_frame,this.infinite=this.next.infinite,this.end=this.next.end,this.start=this.next.start,this.change=this.next.change,this.invert_repeat=this.next.invert_repeat,this.params=this.next.params,this.duration=this.next.duration,this.finished=!1,this.next=this.next.next},e.prototype.updateValue=function(e){return this.change=this.end-this.start,e>=this.start_frame+this.duration?this.infinite?(this.start_frame=e,this.invert_repeat&&(this.start=this.start+this.change,this.change=-this.change),this.value=this.start):null!=this.next?this.goToNext():(this.finished=!0,this.value=this.start+this.change):this.value=this.func(e-this.start_frame)},e.prototype.valueOf=function(){return!this.finished&&this.engine.current_frame>this.last_updated&&(this.updateValue(this.engine.current_frame),this.last_updated=this.engine.current_frame),this.value},e.prototype.backIn=function(e){var t;return e/=this.duration,t=this.params[0],this.change*e*e*((t+1)*e-t)+this.start},e.prototype.backOut=function(e){var t;return e=e/this.duration-1,t=this.params[0],this.change*(e*e*((t+1)*e+t)+1)+this.start},e.prototype.backInOut=function(e){var t;return e/=this.duration/2,t=1.525*this.params[0],1>e?this.change/2*e*e*((t+1)*e-t)+this.start:(e-=2,this.change/2*(e*e*((t+1)*e+t)+2)+this.start)},e.prototype.bounceOut=function(e,t){return null==t&&(t=null),e/=this.duration,t=null!=t?t:this.start,1/2.75>e?7.5625*this.change*e*e+t:2/2.75>e?(e-=1.5/2.75,this.change*(7.5625*e*e+.75)+t):2.5/2.75>e?(e-=2.25/2.75,this.change*(7.5625*e*e+.9375)+t):(e-=2.625/2.75,this.change*(7.5625*e*e+.984375)+t)},e.prototype.bounceIn=function(e,t){return null==t&&(t=null),t=null!=t?t:this.start,this.change-this.bounceOut(this.duration-e,0)+t},e.prototype.bounceInOut=function(e){return e<this.duration/2?this.bounceIn(2*e,0)+this.start:this.bounceOut(2*e-this.duration,0)+this.start},e.prototype.circIn=function(e){return e/=this.duration,-this.change*(Math.sqrt(1-e*e)-1)+this.start},e.prototype.circOut=function(e){return e=e/this.duration-1,this.change*Math.sqrt(1-e*e)+this.start},e.prototype.circInOut=function(e){return e/=this.duration/2,1>e?-this.change/2*(Math.sqrt(1-e*e)-1)+this.start:(e-=2,this.change/2*(Math.sqrt(1-e*e)+1)+this.start)},e.prototype.cubicIn=function(e){return e/=this.duration,this.change*e*e*e+this.start},e.prototype.cubicOut=function(e){return e=e/this.duration-1,this.change*(e*e*e+1)+this.start},e.prototype.cubicInOut=function(e){return e/=this.duration/2,1>e?change/2*e*e*e+this.start:(e-=2,change/2*(e*e*e+2)+begin)},e.prototype.elasticOut=function(e){var t,n,i;return e/=this.duration,t=this.params[0],i=this.params[1],n=this.params[2],t*Math.pow(2,-10*e)*Math.sin(2*(e*this.duration-n)*Math.PI/i)+this.change+this.start},e.prototype.elasticIn=function(e){var t,n,i;return e/=this.duration,t=this.params[0],i=this.params[1],n=this.params[2],-(t*Math.pow(2,-10*e))*Math.sin(2*(e*this.duration-n)*Math.PI/i)+this.start},e.prototype.elasticInOut=function(e){var t,n,i;return e=e/(this.duration/2)-1,t=this.params[0],i=this.params[1],n=this.params[2],1>e?-.5*t*Math.pow(2,-10*e)*Math.sin((e*this.duration-n)*(2*Math.PI/i))+this.start:t*Math.pow(2,-10*e)*Math.sin(2*(e*this.duration-n)*Math.PI/i)+this.change+this.start},e.prototype.expoIn=function(e){return this.change*Math.pow(2,10*(e/this.duration-1))+this.start},e.prototype.expoOut=function(e){return this.change*(-Math.pow(2,-10*e/this.duration)+1)+this.start},e.prototype.expoInOut=function(e){return e/=this.duration/2,1>e?this.change/2*Math.pow(2,10*(e-1))+this.start:this.change/2*(-Math.pow(2,-10*(e-1))+2)+this.start},e.prototype.linearNone=function(e){return this.change*e/this.duration+this.start},e.prototype.quadIn=function(e){return e/=this.duration,this.change*e*e+this.start},e.prototype.quadOut=function(e){return e/=this.duration,-this.change*e*(e-2)+this.start},e.prototype.quadInOut=function(e){return e/=this.duration/2,1>e?this.change/2*e*e+this.start:(e-=1,-this.change/2*(e*(e-2)-1)+this.start)},e}();var i=[].slice;e.prototype.random={number:function(){return function(e,t,n){var i,r,s;return i=Math.random(),s=Math.abs(t-e),r=1/(null!=n?n:1e-8),Math.floor((e+i*s)*r)/r}}(this),pick:function(){return function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],e[Math.floor(Math.random()*e.length)]}}(this),string:function(){return function(e,t){var n;return null==t&&(t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"),function(){var i,r,s;for(s=[],n=i=0,r=e-1;r>=0?r>=i:i>=r;n=r>=0?++i:--i)s.push(t[Math.floor(Math.random()*t.length)]);return s}().join("")}}(this)};var r,t=function(e,t){return function(){return e.apply(t,arguments)}};e.prototype.timing={startTimer:function(e){return function(t,n,i,s){var o;return null==i&&(i=null),null==s&&(s=!1),o=new r(t,n,s),null!=i?e.named_timers[i]=o:e.unnamed_timers.push(o)}}(this),stopTimer:function(e){return function(t){return e.timers[t].stop()}}(this)},r=function(){function e(e,n,i){this.frames=e,this.callback=n,this.repeat=i,this.stop=t(this.stop,this),this.skip=t(this.skip,this),this.step=t(this.step,this),this.current_frame=0,this.finished=!1}return e.prototype.step=function(){return this.current_frame>=this.frames?(this.callback(),repeat?this.current_frame=0:this.finished=!0):void 0},e.prototype.skip=function(e){return this.current_frame+=e},e.prototype.stop=function(){return this.finished=!0},e}();var s;s=function(){function e(e,t){this.engine=e,this.name=t,this.sprite=null,this.instances=[],this.x=0,this.y=0}return e.prototype.callEvent=function(e,t){var n,i,r;switch(null==t&&(t={}),n={mouseover:this.onMouseOver,mouseout:this.onMouseOut,create:this.onCreate,step:this.onStep,click:this.onClick,click_global:this.onClickGlobal},e){case"draw":return this.drawSelf(null!=(i=t.surface)?i:""),"function"==typeof this.onDraw?this.onDraw(t):void 0;default:return null!=(r=n[e])?r.bind(this)(t):void 0}},e.prototype.drawSelf=function(e){return this.drawSprite(e)},e.prototype.drawSprite=function(e){var t;return null==e&&(e=""),null!=this.sprite&&(null!=(t=this.draw_sprite)?t:"true")?this.sprite.draw(this.x,this.y,{},e):void 0},e.prototype.getBoundingBox=function(){var e,t;return e=null!=(t=this.sprite)?t.getSize():void 0,{x1:this.x,x2:this.x+(null!=e?e.width:void 0),y1:this.y,y2:this.y+(null!=e?e.height:void 0)}},e.prototype.getInstances=function(){return this.instances},e.prototype.checkPointCollision=function(e,t){var n;return n=this.getBoundingBox(),e>=(null!=n?n.x1:void 0)&&e<=(null!=n?n.x2:void 0)&&t>=(null!=n?n.y1:void 0)&&t<=(null!=n?n.y2:void 0)},e}();var o,t=function(e,t){return function(){return e.apply(t,arguments)}};o=function(){function e(e){this.base_path=null!=e?e:"",this.preload=t(this.preload,this),this.prepare=t(this.prepare,this),this.getImage=t(this.getImage,this),this.addSounds=t(this.addSounds,this),this.addScripts=t(this.addScripts,this),this.addImages=t(this.addImages,this),this.addScript=t(this.addScript,this),this.addSound=t(this.addSound,this),this.addImage=t(this.addImage,this),this.joinPath=t(this.joinPath,this),this.resources={stage1_images:[],stage1_audio:[],stage1_scripts:[],images:[],audio:[],scripts:[]},this.resource_objects={images:{},audio:{},scripts:{}}}return e.prototype.joinPath=function(e){return""===this.base_path?e:d.stripRight(this.base_path,"/")+"/"+e},e.prototype.addImage=function(e,t){return null==t&&(t=!1),t?this.resources.stage1_images.push(this.joinPath(e)):this.resources.images.push(this.joinPath(e))},e.prototype.addSound=function(e,t){return null==t&&(t=!1),t?this.resources.stage1_audio.push(this.joinPath(e)):this.resources.audio.push(this.joinPath(e))},e.prototype.addScript=function(e,t){return null==t&&(t=!1),t?this.resources.stage1_scripts.push(this.joinPath(e)):this.resources.scripts.push(this.joinPath(e))},e.prototype.addImages=function(e,t){var n,i,r,s;for(null==t&&(t=!1),s=[],i=0,r=e.length;r>i;i++)n=e[i],s.push(this.addImage(n,t));return s},e.prototype.addScripts=function(e,t){var n,i,r,s;for(null==t&&(t=!1),s=[],i=0,r=e.length;r>i;i++)n=e[i],s.push(this.addScript(n,t));return s},e.prototype.addSounds=function(e,t){var n,i,r,s;for(null==t&&(t=!1),s=[],i=0,r=e.length;r>i;i++)n=e[i],s.push(this.addSound(n,t));return s},e.prototype.getImage=function(e){return console.log("objs",this.resource_objects),console.log("path",e),this.resource_objects.images[this.joinPath(e)]},e.prototype.prepare=function(e){return null==e&&(e=function(){}),pass},e.prototype.preload=function(e,t){var n,i,r,s,o;for(null==e&&(e=function(){}),null==t&&(t=function(){}),o=this.resources.images,r=0,s=o.length;s>r;r++)n=o[r],i=document.createElement("img"),i.src=n,this.resource_objects.images[n]=i;return t()},e}();var a,t=function(e,t){return function(){return e.apply(t,arguments)}};a=function(){function e(e,n){this.engine=e,this.name=n,this.changeScene=t(this.changeScene,this),this.createInstance=t(this.createInstance,this),this.checkMouseCollisions=t(this.checkMouseCollisions,this),this.redraw=t(this.redraw,this),this.iteration=t(this.iteration,this),this.checkActive=t(this.checkActive,this),this.removeTargetSurface=t(this.removeTargetSurface,this),this.handleClick=t(this.handleClick,this),this.addTargetSurface=t(this.addTargetSurface,this),this.instances={},this.surfaces=[],this.dirty=!0,this.last_instance_id=100,this.active=!1,this.width=800,this.height=600,this.last_width=800,this.last_height=600}return e.prototype.addTargetSurface=function(e){return this.surfaces.push(e),this.engine.updateCanvasSize(e,this.width,this.height),$(e).on("mousemove.radium",function(t){return function(n){var i;return i=e.getBoundingClientRect(),t.mouse_x=n.clientX-i.left|0,t.mouse_y=n.clientY-i.top|0,t.checkMouseCollisions()}}(this)),$(e).on("click.radium",function(e){return function(t){return e.handleClick("click",t)}}(this)),$(e).on("mouseup.radium",function(e){return function(t){return e.handleClick("mouse_up",t)}}(this)),$(e).on("mousedown.radium",function(e){return function(t){return e.handleClick("mouse_down",t)}}(this)),this.checkActive()},e.prototype.handleClick=function(e,t){var n,i,r;r=this.instances;for(n in r)i=r[n],i.callEvent(""+e+"_global",{x:this.mouse_x,y:this.mouse_y,button:t.which}),i.checkPointCollision(this.mouse_x,this.mouse_y)&&i.callEvent(e,{x:this.mouse_x,y:this.mouse_y,button:t.which});return t.preventDefault(),t.stopPropagation(),!1},e.prototype.removeTargetSurface=function(e){return this.surfaces=this.surfaces.filter(function(t){return t!==e}),$(e).off("mousemove.radium"),this.checkActive()},e.prototype.checkActive=function(){return this.active=this.surfaces.length>0},e.prototype.iteration=function(){var e,t,n,i,r,s,o,a;if(this.width!==this.last_width||this.height!==this.last_height){for(s=this.surfaces,i=0,r=s.length;r>i;i++)n=s[i],this.engine.updateCanvasSize(n,this.width,this.height);o=[this.width,this.height],this.last_width=o[0],this.last_height=o[1]}a=this.instances;for(e in a)t=a[e],t.callEvent("step")&&(this.dirty=!0);return this.dirty?(this.redraw(),this.dirty=!1):void 0},e.prototype.redraw=function(){var e,t,n,i,r,s,o,a;for(o=this.surfaces,a=[],r=0,s=o.length;s>r;r++)i=o[r],e=this.engine.getSurface(i),e.clearRect(0,0,i.width,i.height),a.push(function(){var e,r;e=this.instances,r=[];for(t in e)n=e[t],r.push(n.callEvent("draw",{surface:i}));return r}.call(this));return a},e.prototype.checkMouseCollisions=function(){var e,t,n,i,r;i=this.instances,r=[];for(t in i)n=i[t],e=n.checkPointCollision(this.mouse_x,this.mouse_y),e&&!n._moused_over?(n.callEvent("mouseover"),r.push(n._moused_over=!0)):!e&&n._moused_over?(n.callEvent("mouseout"),r.push(n._moused_over=!1)):r.push(void 0);return r},e.prototype.createInstance=function(e,t,n){var i,r,s;return null==t&&(t=0),null==n&&(n=0),i=this.last_instance_id+=1,s=this.engine.getObject(e),r=window.Object.create(s),r.x=t,r.y=n,r.id=i,r.scene=this,this.instances[i]=r,s.instances.push(r),r.callEvent("create"),r},e.prototype.changeScene=function(){return pass},e}();var u;u=function(){function e(){}return e}();var l,t=function(e,t){return function(){return e.apply(t,arguments)}};l=function(){function e(e,n,i){this.engine=e,this.name=n,this.image=i,this.getSize=t(this.getSize,this),this.draw=t(this.draw,this)}return e.prototype.draw=function(e,t,n,i){var r;return null==n&&(n={}),null==i&&(i=""),i=this.engine.getSurface(i),i.globalAlpha=null!=(r=n.alpha)?r:1,i.drawImage(this.image,e,t)},e.prototype.getSize=function(){return{width:this.image.width,height:this.image.height}},e}();var c,h,t=function(e,t){return function(){return e.apply(t,arguments)}};c=function(){function e(e,n,i,r,s){this.engine=e,this.name=n,this.image=i,this.tile_width=r,this.tile_height=s,this.tile=t(this.tile,this),this.tiles={}}return e.prototype.tile=function(e,t,n,i,r){var s,o;return null==n&&(n=!1),null==i&&(i=0),null==r&&(r=0),s=""+e+"/"+t+"/"+i+"/"+r+"/"+(n?1:0),null!=(o=this.tiles[s])?o:tiles[s]=new h(this.engine,this,e,t,n,i,r)},e}(),h=function(){function e(e,n,i,r,s,o,a){this.engine=e,this.tileset=n,this.x=i,this.y=r,this.precise=null!=s?s:!1,this.w=null!=o?o:0,this.h=null!=a?a:0,this.getSize=t(this.getSize,this),this.draw=t(this.draw,this)}return e.prototype.draw=function(e,t){var n,i,r,s,o;return this.precise?(r=this.x,s=this.y,i=this.w,n=this.h):(r=this.x*this.tileset.tile_width,s=this.y*this.tileset.tile_height,i=this.tileset.tile_width,n=this.tileset.tile_height),o=this.engine.getSurface(),o.drawImage(r,s,source_width,source_height,e,t)},e.prototype.getSize=function(){return this.precise?{width:this.w,height:this.h}:{width:this.tileset.tile_width,height:this.tileset.tile_height}},e}();var d;d={stripRight:function(e,t){return e.replace(new RegExp(t+"*$","g"),"")},unpackElement:function(e){return console.log(e),e instanceof jQuery?e[0]:e}},window.ResourceManager=o,window.Engine=e}(),function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=Z.type(e);return"function"===n||Z.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(Z.isFunction(t))return Z.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return Z.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(at.test(t))return Z.filter(t,e,n);t=Z.filter(t,e)}return Z.grep(e,function(e){return V.call(t,e)>=0!==n})}function r(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t=ft[e]={};return Z.each(e.match(pt)||[],function(e,n){t[n]=!0}),t}function o(){G.removeEventListener("DOMContentLoaded",o,!1),e.removeEventListener("load",o,!1),Z.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Z.expando+Math.random()}function u(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(xt,"-$1").toLowerCase(),n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:_t.test(n)?Z.parseJSON(n):n}catch(r){}yt.set(e,t,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function h(){try{return G.activeElement}catch(e){}}function d(e,t){return Z.nodeName(e,"table")&&Z.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function p(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function f(e){var t=Mt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function g(e,t){for(var n=0,i=e.length;i>n;n++)vt.set(e[n],"globalEval",!t||vt.get(t[n],"globalEval"))}function m(e,t){var n,i,r,s,o,a,u,l;if(1===t.nodeType){if(vt.hasData(e)&&(s=vt.access(e),o=vt.set(t,s),l=s.events)){delete o.handle,o.events={};for(r in l)for(n=0,i=l[r].length;i>n;n++)Z.event.add(t,r,l[r][n])}yt.hasData(e)&&(a=yt.access(e),u=Z.extend({},a),yt.set(t,u))}}function v(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&Z.nodeName(e,t)?Z.merge([e],n):n}function y(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Et.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function _(t,n){var i,r=Z(n.createElement(t)).appendTo(n.body),s=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(r[0]))?i.display:Z.css(r[0],"display");return r.detach(),s}function x(e){var t=G,n=Ft[e];return n||(n=_(e,t),"none"!==n&&n||(qt=(qt||Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=qt[0].contentDocument,t.write(),t.close(),n=_(e,t),qt.detach()),Ft[e]=n),n}function b(e,t,n){var i,r,s,o,a=e.style;return n=n||Ut(e),n&&(o=n.getPropertyValue(t)||n[t]),n&&(""!==o||Z.contains(e.ownerDocument,e)||(o=Z.style(e,t)),Qt.test(o)&&Bt.test(t)&&(i=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=i,a.minWidth=r,a.maxWidth=s)),void 0!==o?o+"":o}function S(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function w(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),i=t,r=zt.length;r--;)if(t=zt[r]+n,t in e)return t;return i}function E(e,t,n){var i=Wt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function T(e,t,n,i,r){for(var s=n===(i?"border":"content")?4:"width"===t?1:0,o=0;4>s;s+=2)"margin"===n&&(o+=Z.css(e,n+St[s],!0,r)),i?("content"===n&&(o-=Z.css(e,"padding"+St[s],!0,r)),"margin"!==n&&(o-=Z.css(e,"border"+St[s]+"Width",!0,r))):(o+=Z.css(e,"padding"+St[s],!0,r),"padding"!==n&&(o+=Z.css(e,"border"+St[s]+"Width",!0,r)));return o}function L(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,s=Ut(e),o="border-box"===Z.css(e,"boxSizing",!1,s);if(0>=r||null==r){if(r=b(e,t,s),(0>r||null==r)&&(r=e.style[t]),Qt.test(r))return r;
i=o&&(Y.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+T(e,t,n||(o?"border":"content"),i,s)+"px"}function j(e,t){for(var n,i,r,s=[],o=0,a=e.length;a>o;o++)i=e[o],i.style&&(s[o]=vt.get(i,"olddisplay"),n=i.style.display,t?(s[o]||"none"!==n||(i.style.display=""),""===i.style.display&&wt(i)&&(s[o]=vt.access(i,"olddisplay",x(i.nodeName)))):(r=wt(i),"none"===n&&r||vt.set(i,"olddisplay",r?n:Z.css(i,"display"))));for(o=0;a>o;o++)i=e[o],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?s[o]||"":"none"));return e}function P(e,t,n,i,r){return new P.prototype.init(e,t,n,i,r)}function N(){return setTimeout(function(){Yt=void 0}),Yt=Z.now()}function I(e,t){var n,i=0,r={height:e};for(t=t?1:0;4>i;i+=2-t)n=St[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function C(e,t,n){for(var i,r=(nn[t]||[]).concat(nn["*"]),s=0,o=r.length;o>s;s++)if(i=r[s].call(n,t,e))return i}function A(e,t,n){var i,r,s,o,a,u,l,c,h=this,d={},p=e.style,f=e.nodeType&&wt(e),g=vt.get(e,"fxshow");n.queue||(a=Z._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,Z.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=Z.css(e,"display"),c="none"===l?vt.get(e,"olddisplay")||x(e.nodeName):l,"inline"===c&&"none"===Z.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(i in t)if(r=t[i],Kt.exec(r)){if(delete t[i],s=s||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;f=!0}d[i]=g&&g[i]||Z.style(e,i)}else l=void 0;if(Z.isEmptyObject(d))"inline"===("none"===l?x(e.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(f=g.hidden):g=vt.access(e,"fxshow",{}),s&&(g.hidden=!f),f?Z(e).show():h.done(function(){Z(e).hide()}),h.done(function(){var t;vt.remove(e,"fxshow");for(t in d)Z.style(e,t,d[t])});for(i in d)o=C(f?g[i]:0,i,h),i in g||(g[i]=o.start,f&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}function O(e,t){var n,i,r,s,o;for(n in e)if(i=Z.camelCase(n),r=t[i],s=e[n],Z.isArray(s)&&(r=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),o=Z.cssHooks[i],o&&"expand"in o){s=o.expand(s),delete e[i];for(n in s)n in e||(e[n]=s[n],t[n]=r)}else t[i]=r}function k(e,t,n){var i,r,s=0,o=tn.length,a=Z.Deferred().always(function(){delete u.elem}),u=function(){if(r)return!1;for(var t=Yt||N(),n=Math.max(0,l.startTime+l.duration-t),i=n/l.duration||0,s=1-i,o=0,u=l.tweens.length;u>o;o++)l.tweens[o].run(s);return a.notifyWith(e,[l,s,n]),1>s&&u?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:Z.extend({},t),opts:Z.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Yt||N(),duration:n.duration,tweens:[],createTween:function(t,n){var i=Z.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,i=t?l.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)l.tweens[n].run(1);return t?a.resolveWith(e,[l,t]):a.rejectWith(e,[l,t]),this}}),c=l.props;for(O(c,l.opts.specialEasing);o>s;s++)if(i=tn[s].call(l,e,c,l.opts))return i;return Z.map(c,C,l),Z.isFunction(l.opts.start)&&l.opts.start.call(e,l),Z.fx.timer(Z.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function D(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,s=t.toLowerCase().match(pt)||[];if(Z.isFunction(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function M(e,t,n,i){function r(a){var u;return s[a]=!0,Z.each(e[a]||[],function(e,a){var l=a(t,n,i);return"string"!=typeof l||o||s[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),r(l),!1)}),u}var s={},o=e===Sn;return r(t.dataTypes[0])||!s["*"]&&r("*")}function R(e,t){var n,i,r=Z.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&Z.extend(!0,e,i),e}function H(e,t,n){for(var i,r,s,o,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){u.unshift(r);break}if(u[0]in n)s=u[0];else{for(r in n){if(!u[0]||e.converters[r+" "+u[0]]){s=r;break}o||(o=r)}s=s||o}return s?(s!==u[0]&&u.unshift(s),n[s]):void 0}function q(e,t,n,i){var r,s,o,a,u,l={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(s=c.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!u&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=s,s=c.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(o=l[u+" "+s]||l["* "+s],!o)for(r in l)if(a=r.split(" "),a[1]===s&&(o=l[u+" "+a[0]]||l["* "+a[0]])){o===!0?o=l[r]:l[r]!==!0&&(s=a[0],c.unshift(a[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(h){return{state:"parsererror",error:o?h:"No conversion from "+u+" to "+s}}}return{state:"success",data:t}}function F(e,t,n,i){var r;if(Z.isArray(t))Z.each(t,function(t,r){n||Ln.test(e)?i(e,r):F(e+"["+("object"==typeof r?t:"")+"]",r,n,i)});else if(n||"object"!==Z.type(t))i(e,t);else for(r in t)F(e+"["+r+"]",t[r],n,i)}function B(e){return Z.isWindow(e)?e:9===e.nodeType&&e.defaultView}var Q=[],U=Q.slice,X=Q.concat,W=Q.push,V=Q.indexOf,J={},$=J.toString,z=J.hasOwnProperty,Y={},G=e.document,K="2.1.1",Z=function(e,t){return new Z.fn.init(e,t)},et=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,tt=/^-ms-/,nt=/-([\da-z])/gi,it=function(e,t){return t.toUpperCase()};Z.fn=Z.prototype={jquery:K,constructor:Z,selector:"",length:0,toArray:function(){return U.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:U.call(this)},pushStack:function(e){var t=Z.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Z.each(this,e,t)},map:function(e){return this.pushStack(Z.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(U.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:W,sort:Q.sort,splice:Q.splice},Z.extend=Z.fn.extend=function(){var e,t,n,i,r,s,o=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||Z.isFunction(o)||(o={}),a===u&&(o=this,a--);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=o[t],i=e[t],o!==i&&(l&&i&&(Z.isPlainObject(i)||(r=Z.isArray(i)))?(r?(r=!1,s=n&&Z.isArray(n)?n:[]):s=n&&Z.isPlainObject(n)?n:{},o[t]=Z.extend(l,s,i)):void 0!==i&&(o[t]=i));return o},Z.extend({expando:"jQuery"+(K+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!Z.isArray(e)&&e-parseFloat(e)>=0},isPlainObject:function(e){return"object"!==Z.type(e)||e.nodeType||Z.isWindow(e)?!1:e.constructor&&!z.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?J[$.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=Z.trim(e),e&&(1===e.indexOf("use strict")?(t=G.createElement("script"),t.text=e,G.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(tt,"ms-").replace(nt,it)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var r,s=0,o=e.length,a=n(e);if(i){if(a)for(;o>s&&(r=t.apply(e[s],i),r!==!1);s++);else for(s in e)if(r=t.apply(e[s],i),r===!1)break}else if(a)for(;o>s&&(r=t.call(e[s],s,e[s]),r!==!1);s++);else for(s in e)if(r=t.call(e[s],s,e[s]),r===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(et,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?Z.merge(i,"string"==typeof e?[e]:e):W.call(i,e)),i},inArray:function(e,t,n){return null==t?-1:V.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;n>i;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],s=0,o=e.length,a=!n;o>s;s++)i=!t(e[s],s),i!==a&&r.push(e[s]);return r},map:function(e,t,i){var r,s=0,o=e.length,a=n(e),u=[];if(a)for(;o>s;s++)r=t(e[s],s,i),null!=r&&u.push(r);else for(s in e)r=t(e[s],s,i),null!=r&&u.push(r);return X.apply([],u)},guid:1,proxy:function(e,t){var n,i,r;return"string"==typeof t&&(n=e[t],t=e,e=n),Z.isFunction(e)?(i=U.call(arguments,2),r=function(){return e.apply(t||this,i.concat(U.call(arguments)))},r.guid=e.guid=e.guid||Z.guid++,r):void 0},now:Date.now,support:Y}),Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){J["[object "+t+"]"]=t.toLowerCase()});var rt=function(e){function t(e,t,n,i){var r,s,o,a,u,l,h,p,f,g;if((t?t.ownerDocument||t:F)!==A&&C(t),t=t||A,n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=t.nodeType)&&9!==a)return[];if(k&&!i){if(r=yt.exec(e))if(o=r[1]){if(9===a){if(s=t.getElementById(o),!s||!s.parentNode)return n;if(s.id===o)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(o))&&H(t,s)&&s.id===o)return n.push(s),n}else{if(r[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((o=r[3])&&b.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(o)),n}if(b.qsa&&(!D||!D.test(e))){if(p=h=q,f=t,g=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(l=T(e),(h=t.getAttribute("id"))?p=h.replace(xt,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",u=l.length;u--;)l[u]=p+d(l[u]);f=_t.test(e)&&c(t.parentNode)||t,g=l.join(",")}if(g)try{return Z.apply(n,f.querySelectorAll(g)),n}catch(m){}finally{h||t.removeAttribute("id")}}}return j(e.replace(ut,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>S.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[q]=!0,e}function r(e){var t=A.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var n=e.split("|"),i=e.length;i--;)S.attrHandle[n[i]]=t}function o(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||$)-(~e.sourceIndex||$);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return i(function(t){return t=+t,i(function(n,i){for(var r,s=e([],n.length,t),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))})})}function c(e){return e&&typeof e.getElementsByTagName!==J&&e}function h(){}function d(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function p(e,t,n){var i=t.dir,r=n&&"parentNode"===i,s=Q++;return t.first?function(t,n,s){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,s)}:function(t,n,o){var a,u,l=[B,s];if(o){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,o))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if(u=t[q]||(t[q]={}),(a=u[i])&&a[0]===B&&a[1]===s)return l[2]=a[2];if(u[i]=l,l[2]=e(t,n,o))return!0}}}function f(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function g(e,n,i){for(var r=0,s=n.length;s>r;r++)t(e,n[r],i);return i}function m(e,t,n,i,r){for(var s,o=[],a=0,u=e.length,l=null!=t;u>a;a++)(s=e[a])&&(!n||n(s,i,r))&&(o.push(s),l&&t.push(a));return o}function v(e,t,n,r,s,o){return r&&!r[q]&&(r=v(r)),s&&!s[q]&&(s=v(s,o)),i(function(i,o,a,u){var l,c,h,d=[],p=[],f=o.length,v=i||g(t||"*",a.nodeType?[a]:a,[]),y=!e||!i&&t?v:m(v,d,e,a,u),_=n?s||(i?e:f||r)?[]:o:y;if(n&&n(y,_,a,u),r)for(l=m(_,p),r(l,[],a,u),c=l.length;c--;)(h=l[c])&&(_[p[c]]=!(y[p[c]]=h));if(i){if(s||e){if(s){for(l=[],c=_.length;c--;)(h=_[c])&&l.push(y[c]=h);s(null,_=[],l,u)}for(c=_.length;c--;)(h=_[c])&&(l=s?tt.call(i,h):d[c])>-1&&(i[l]=!(o[l]=h))}}else _=m(_===o?_.splice(f,_.length):_),s?s(null,o,_,u):Z.apply(o,_)})}function y(e){for(var t,n,i,r=e.length,s=S.relative[e[0].type],o=s||S.relative[" "],a=s?1:0,u=p(function(e){return e===t},o,!0),l=p(function(e){return tt.call(t,e)>-1},o,!0),c=[function(e,n,i){return!s&&(i||n!==P)||((t=n).nodeType?u(e,n,i):l(e,n,i))}];r>a;a++)if(n=S.relative[e[a].type])c=[p(f(c),n)];else{if(n=S.filter[e[a].type].apply(null,e[a].matches),n[q]){for(i=++a;r>i&&!S.relative[e[i].type];i++);return v(a>1&&f(c),a>1&&d(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ut,"$1"),n,i>a&&y(e.slice(a,i)),r>i&&y(e=e.slice(i)),r>i&&d(e))}c.push(n)}return f(c)}function _(e,n){var r=n.length>0,s=e.length>0,o=function(i,o,a,u,l){var c,h,d,p=0,f="0",g=i&&[],v=[],y=P,_=i||s&&S.find.TAG("*",l),x=B+=null==y?1:Math.random()||.1,b=_.length;for(l&&(P=o!==A&&o);f!==b&&null!=(c=_[f]);f++){if(s&&c){for(h=0;d=e[h++];)if(d(c,o,a)){u.push(c);break}l&&(B=x)}r&&((c=!d&&c)&&p--,i&&g.push(c))}if(p+=f,r&&f!==p){for(h=0;d=n[h++];)d(g,v,o,a);if(i){if(p>0)for(;f--;)g[f]||v[f]||(v[f]=G.call(u));v=m(v)}Z.apply(u,v),l&&!i&&v.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(B=x,P=y),g};return r?i(o):o}var x,b,S,w,E,T,L,j,P,N,I,C,A,O,k,D,M,R,H,q="sizzle"+-new Date,F=e.document,B=0,Q=0,U=n(),X=n(),W=n(),V=function(e,t){return e===t&&(I=!0),0},J="undefined",$=1<<31,z={}.hasOwnProperty,Y=[],G=Y.pop,K=Y.push,Z=Y.push,et=Y.slice,tt=Y.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},nt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st=rt.replace("w","w#"),ot="\\["+it+"*("+rt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+st+"))|)"+it+"*\\]",at=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",ut=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),ct=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ht=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),dt=new RegExp(at),pt=new RegExp("^"+st+"$"),ft={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+nt+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_t=/[+~]/,xt=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),St=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{Z.apply(Y=et.call(F.childNodes),F.childNodes),Y[F.childNodes.length].nodeType}catch(wt){Z={apply:Y.length?function(e,t){K.apply(e,et.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}b=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},C=t.setDocument=function(e){var t,n=e?e.ownerDocument||e:F,i=n.defaultView;return n!==A&&9===n.nodeType&&n.documentElement?(A=n,O=n.documentElement,k=!E(n),i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",function(){C()},!1):i.attachEvent&&i.attachEvent("onunload",function(){C()})),b.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=r(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=vt.test(n.getElementsByClassName)&&r(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),b.getById=r(function(e){return O.appendChild(e).id=q,!n.getElementsByName||!n.getElementsByName(q).length}),b.getById?(S.find.ID=function(e,t){if(typeof t.getElementById!==J&&k){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},S.filter.ID=function(e){var t=e.replace(bt,St);return function(e){return e.getAttribute("id")===t}}):(delete S.find.ID,S.filter.ID=function(e){var t=e.replace(bt,St);return function(e){var n=typeof e.getAttributeNode!==J&&e.getAttributeNode("id");return n&&n.value===t}}),S.find.TAG=b.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==J?t.getElementsByTagName(e):void 0}:function(e,t){var n,i=[],r=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[r++];)1===n.nodeType&&i.push(n);return i}return s},S.find.CLASS=b.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==J&&k?t.getElementsByClassName(e):void 0},M=[],D=[],(b.qsa=vt.test(n.querySelectorAll))&&(r(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&D.push("[*^$]="+it+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||D.push("\\["+it+"*(?:value|"+nt+")"),e.querySelectorAll(":checked").length||D.push(":checked")}),r(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&D.push("name"+it+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||D.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),D.push(",.*:")})),(b.matchesSelector=vt.test(R=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&r(function(e){b.disconnectedMatch=R.call(e,"div"),R.call(e,"[s!='']:x"),M.push("!=",at)}),D=D.length&&new RegExp(D.join("|")),M=M.length&&new RegExp(M.join("|")),t=vt.test(O.compareDocumentPosition),H=t||vt.test(O.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return I=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!b.sortDetached&&t.compareDocumentPosition(e)===i?e===n||e.ownerDocument===F&&H(F,e)?-1:t===n||t.ownerDocument===F&&H(F,t)?1:N?tt.call(N,e)-tt.call(N,t):0:4&i?-1:1)}:function(e,t){if(e===t)return I=!0,0;var i,r=0,s=e.parentNode,a=t.parentNode,u=[e],l=[t];if(!s||!a)return e===n?-1:t===n?1:s?-1:a?1:N?tt.call(N,e)-tt.call(N,t):0;if(s===a)return o(e,t);for(i=e;i=i.parentNode;)u.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;u[r]===l[r];)r++;return r?o(u[r],l[r]):u[r]===F?-1:l[r]===F?1:0},n):A},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==A&&C(e),n=n.replace(ht,"='$1']"),!(!b.matchesSelector||!k||M&&M.test(n)||D&&D.test(n)))try{var i=R.call(e,n);if(i||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(r){}return t(n,A,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==A&&C(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==A&&C(e);var n=S.attrHandle[t.toLowerCase()],i=n&&z.call(S.attrHandle,t.toLowerCase())?n(e,t,!k):void 0;return void 0!==i?i:b.attributes||!k?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(I=!b.detectDuplicates,N=!b.sortStable&&e.slice(0),e.sort(V),I){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return N=null,e},w=t.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=w(t);return n},S=t.selectors={cacheLength:50,createPseudo:i,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(bt,St),e[3]=(e[3]||e[4]||e[5]||"").replace(bt,St),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ft.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&dt.test(n)&&(t=T(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(bt,St).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+it+")"+e+"("+it+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==J&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(r){var s=t.attr(r,e);return null==s?"!="===n:n?(s+="","="===n?s===i:"!="===n?s!==i:"^="===n?i&&0===s.indexOf(i):"*="===n?i&&s.indexOf(i)>-1:"$="===n?i&&s.slice(-i.length)===i:"~="===n?(" "+s+" ").indexOf(i)>-1:"|="===n?s===i||s.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(e,t,n,i,r){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,u){var l,c,h,d,p,f,g=s!==o?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!u&&!a;if(m){if(s){for(;g;){for(h=t;h=h[g];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&y){for(c=m[q]||(m[q]={}),l=c[e]||[],p=l[0]===B&&l[1],d=l[0]===B&&l[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(d=p=0)||f.pop();)if(1===h.nodeType&&++d&&h===t){c[e]=[B,p,d];break}}else if(y&&(l=(t[q]||(t[q]={}))[e])&&l[0]===B)d=l[1];else for(;(h=++p&&h&&h[g]||(d=p=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++d||(y&&((h[q]||(h[q]={}))[e]=[B,d]),h!==t)););return d-=r,d===i||d%i===0&&d/i>=0}}},PSEUDO:function(e,n){var r,s=S.pseudos[e]||S.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return s[q]?s(n):s.length>1?(r=[e,e,"",n],S.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,r=s(e,n),o=r.length;o--;)i=tt.call(e,r[o]),e[i]=!(t[i]=r[o])}):function(e){return s(e,0,r)}):s}},pseudos:{not:i(function(e){var t=[],n=[],r=L(e.replace(ut,"$1"));return r[q]?i(function(e,t,n,i){for(var s,o=r(e,null,i,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}}),lang:i(function(e){return pt.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(bt,St).toLowerCase(),function(t){var n;do if(n=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===O},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return mt.test(e.nodeName)},input:function(e){return gt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:l(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},S.pseudos.nth=S.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[x]=a(x);for(x in{submit:!0,reset:!0})S.pseudos[x]=u(x);return h.prototype=S.filters=S.pseudos,S.setFilters=new h,T=t.tokenize=function(e,n){var i,r,s,o,a,u,l,c=X[e+" "];if(c)return n?0:c.slice(0);for(a=e,u=[],l=S.preFilter;a;){(!i||(r=lt.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),u.push(s=[])),i=!1,(r=ct.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(ut," ")}),a=a.slice(i.length));for(o in S.filter)!(r=ft[o].exec(a))||l[o]&&!(r=l[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?t.error(e):X(e,u).slice(0)},L=t.compile=function(e,t){var n,i=[],r=[],s=W[e+" "];if(!s){for(t||(t=T(e)),n=t.length;n--;)s=y(t[n]),s[q]?i.push(s):r.push(s);s=W(e,_(r,i)),s.selector=e}return s},j=t.select=function(e,t,n,i){var r,s,o,a,u,l="function"==typeof e&&e,h=!i&&T(e=l.selector||e);if(n=n||[],1===h.length){if(s=h[0]=h[0].slice(0),s.length>2&&"ID"===(o=s[0]).type&&b.getById&&9===t.nodeType&&k&&S.relative[s[1].type]){if(t=(S.find.ID(o.matches[0].replace(bt,St),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(r=ft.needsContext.test(e)?0:s.length;r--&&(o=s[r],!S.relative[a=o.type]);)if((u=S.find[a])&&(i=u(o.matches[0].replace(bt,St),_t.test(s[0].type)&&c(t.parentNode)||t))){if(s.splice(r,1),e=i.length&&d(s),!e)return Z.apply(n,i),n;break}}return(l||L(e,h))(i,t,!k,n,_t.test(e)&&c(t.parentNode)||t),n},b.sortStable=q.split("").sort(V).join("")===q,b.detectDuplicates=!!I,C(),b.sortDetached=r(function(e){return 1&e.compareDocumentPosition(A.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||s("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||s("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||s(nt,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);Z.find=rt,Z.expr=rt.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=rt.uniqueSort,Z.text=rt.getText,Z.isXMLDoc=rt.isXML,Z.contains=rt.contains;var st=Z.expr.match.needsContext,ot=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,at=/^.[^:#\[\.,]*$/;Z.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?Z.find.matchesSelector(i,e)?[i]:[]:Z.find.matches(e,Z.grep(t,function(e){return 1===e.nodeType}))},Z.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(Z(e).filter(function(){for(t=0;n>t;t++)if(Z.contains(r[t],this))return!0}));for(t=0;n>t;t++)Z.find(e,r[t],i);return i=this.pushStack(n>1?Z.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&st.test(e)?Z(e):e||[],!1).length}});var ut,lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=Z.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:lt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||ut).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof Z?t[0]:t,Z.merge(this,Z.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:G,!0)),ot.test(n[1])&&Z.isPlainObject(t))for(n in t)Z.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return i=G.getElementById(n[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=G,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):Z.isFunction(e)?"undefined"!=typeof ut.ready?ut.ready(e):e(Z):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this))};ct.prototype=Z.fn,ut=Z(G);var ht=/^(?:parents|prev(?:Until|All))/,dt={children:!0,contents:!0,next:!0,prev:!0};Z.extend({dir:function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&Z(e).is(n))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),Z.fn.extend({has:function(e){var t=Z(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(Z.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,s=[],o=st.test(e)||"string"!=typeof e?Z(e,t||this.context):0;r>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&Z.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?Z.unique(s):s)},index:function(e){return e?"string"==typeof e?V.call(Z(e),this[0]):V.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Z.unique(Z.merge(this.get(),Z(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Z.dir(e,"parentNode",n)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Z.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Z.dir(e,"previousSibling",n)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return e.contentDocument||Z.merge([],e.childNodes)}},function(e,t){Z.fn[e]=function(n,i){var r=Z.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=Z.filter(i,r)),this.length>1&&(dt[e]||Z.unique(r),ht.test(e)&&r.reverse()),this.pushStack(r)}});var pt=/\S+/g,ft={};Z.Callbacks=function(e){e="string"==typeof e?ft[e]||s(e):Z.extend({},e);var t,n,i,r,o,a,u=[],l=!e.once&&[],c=function(s){for(t=e.memory&&s,n=!0,a=r||0,r=0,o=u.length,i=!0;u&&o>a;a++)if(u[a].apply(s[0],s[1])===!1&&e.stopOnFalse){t=!1;break}i=!1,u&&(l?l.length&&c(l.shift()):t?u=[]:h.disable())},h={add:function(){if(u){var n=u.length;!function s(t){Z.each(t,function(t,n){var i=Z.type(n);"function"===i?e.unique&&h.has(n)||u.push(n):n&&n.length&&"string"!==i&&s(n)})}(arguments),i?o=u.length:t&&(r=n,c(t))}return this},remove:function(){return u&&Z.each(arguments,function(e,t){for(var n;(n=Z.inArray(t,u,n))>-1;)u.splice(n,1),i&&(o>=n&&o--,a>=n&&a--)}),this},has:function(e){return e?Z.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],o=0,this},disable:function(){return u=l=t=void 0,this},disabled:function(){return!u
},lock:function(){return l=void 0,t||h.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!u||n&&!l||(t=t||[],t=[e,t.slice?t.slice():t],i?l.push(t):c(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},Z.extend({Deferred:function(e){var t=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Z.Deferred(function(n){Z.each(t,function(t,s){var o=Z.isFunction(e[t])&&e[t];r[s[1]](function(){var e=o&&o.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+"With"](this===i?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?Z.extend(e,i):i}},r={};return i.pipe=i.then,Z.each(t,function(e,s){var o=s[2],a=s[3];i[s[1]]=o.add,a&&o.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),r[s[0]]=function(){return r[s[0]+"With"](this===r?i:this,arguments),this},r[s[0]+"With"]=o.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,s=U.call(arguments),o=s.length,a=1!==o||e&&Z.isFunction(e.promise)?o:0,u=1===a?e:Z.Deferred(),l=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?U.call(arguments):r,i===t?u.notifyWith(n,i):--a||u.resolveWith(n,i)}};if(o>1)for(t=new Array(o),n=new Array(o),i=new Array(o);o>r;r++)s[r]&&Z.isFunction(s[r].promise)?s[r].promise().done(l(r,i,s)).fail(u.reject).progress(l(r,n,t)):--a;return a||u.resolveWith(i,s),u.promise()}});var gt;Z.fn.ready=function(e){return Z.ready.promise().done(e),this},Z.extend({isReady:!1,readyWait:1,holdReady:function(e){e?Z.readyWait++:Z.ready(!0)},ready:function(e){(e===!0?--Z.readyWait:Z.isReady)||(Z.isReady=!0,e!==!0&&--Z.readyWait>0||(gt.resolveWith(G,[Z]),Z.fn.triggerHandler&&(Z(G).triggerHandler("ready"),Z(G).off("ready"))))}}),Z.ready.promise=function(t){return gt||(gt=Z.Deferred(),"complete"===G.readyState?setTimeout(Z.ready):(G.addEventListener("DOMContentLoaded",o,!1),e.addEventListener("load",o,!1))),gt.promise(t)},Z.ready.promise();var mt=Z.access=function(e,t,n,i,r,s,o){var a=0,u=e.length,l=null==n;if("object"===Z.type(n)){r=!0;for(a in n)Z.access(e,t,a,n[a],!0,s,o)}else if(void 0!==i&&(r=!0,Z.isFunction(i)||(o=!0),l&&(o?(t.call(e,i),t=null):(l=t,t=function(e,t,n){return l.call(Z(e),n)})),t))for(;u>a;a++)t(e[a],n,o?i:i.call(e[a],a,t(e[a],n)));return r?e:l?t.call(e):u?t(e[0],n):s};Z.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},a.uid=1,a.accepts=Z.acceptData,a.prototype={key:function(e){if(!a.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=a.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(i){t[this.expando]=n,Z.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var i,r=this.key(e),s=this.cache[r];if("string"==typeof t)s[t]=n;else if(Z.isEmptyObject(s))Z.extend(this.cache[r],t);else for(i in t)s[i]=t[i];return s},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?(i=this.get(e,t),void 0!==i?i:this.get(e,Z.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,r,s=this.key(e),o=this.cache[s];if(void 0===t)this.cache[s]={};else{Z.isArray(t)?i=t.concat(t.map(Z.camelCase)):(r=Z.camelCase(t),t in o?i=[t,r]:(i=r,i=i in o?[i]:i.match(pt)||[])),n=i.length;for(;n--;)delete o[i[n]]}},hasData:function(e){return!Z.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var vt=new a,yt=new a,_t=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xt=/([A-Z])/g;Z.extend({hasData:function(e){return yt.hasData(e)||vt.hasData(e)},data:function(e,t,n){return yt.access(e,t,n)},removeData:function(e,t){yt.remove(e,t)},_data:function(e,t,n){return vt.access(e,t,n)},_removeData:function(e,t){vt.remove(e,t)}}),Z.fn.extend({data:function(e,t){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===e){if(this.length&&(r=yt.get(s),1===s.nodeType&&!vt.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=Z.camelCase(i.slice(5)),u(s,i,r[i])));vt.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){yt.set(this,e)}):mt(this,function(t){var n,i=Z.camelCase(e);if(s&&void 0===t){if(n=yt.get(s,e),void 0!==n)return n;if(n=yt.get(s,i),void 0!==n)return n;if(n=u(s,i,void 0),void 0!==n)return n}else this.each(function(){var n=yt.get(this,i);yt.set(this,i,t),-1!==e.indexOf("-")&&void 0!==n&&yt.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){yt.remove(this,e)})}}),Z.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=vt.get(e,t),n&&(!i||Z.isArray(n)?i=vt.access(e,t,Z.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=Z.queue(e,t),i=n.length,r=n.shift(),s=Z._queueHooks(e,t),o=function(){Z.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete s.stop,r.call(e,o,s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return vt.get(e,n)||vt.access(e,n,{empty:Z.Callbacks("once memory").add(function(){vt.remove(e,[t+"queue",n])})})}}),Z.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Z.queue(this[0],e):void 0===t?this:this.each(function(){var n=Z.queue(this,e,t);Z._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Z.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Z.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=Z.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)n=vt.get(s[o],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var bt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,St=["Top","Right","Bottom","Left"],wt=function(e,t){return e=t||e,"none"===Z.css(e,"display")||!Z.contains(e.ownerDocument,e)},Et=/^(?:checkbox|radio)$/i;!function(){var e=G.createDocumentFragment(),t=e.appendChild(G.createElement("div")),n=G.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),Y.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",Y.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Tt="undefined";Y.focusinBubbles="onfocusin"in e;var Lt=/^key/,jt=/^(?:mouse|pointer|contextmenu)|click/,Pt=/^(?:focusinfocus|focusoutblur)$/,Nt=/^([^.]*)(?:\.(.+)|)$/;Z.event={global:{},add:function(e,t,n,i,r){var s,o,a,u,l,c,h,d,p,f,g,m=vt.get(e);if(m)for(n.handler&&(s=n,n=s.handler,r=s.selector),n.guid||(n.guid=Z.guid++),(u=m.events)||(u=m.events={}),(o=m.handle)||(o=m.handle=function(t){return typeof Z!==Tt&&Z.event.triggered!==t.type?Z.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(pt)||[""],l=t.length;l--;)a=Nt.exec(t[l])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p&&(h=Z.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,h=Z.event.special[p]||{},c=Z.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&Z.expr.match.needsContext.test(r),namespace:f.join(".")},s),(d=u[p])||(d=u[p]=[],d.delegateCount=0,h.setup&&h.setup.call(e,i,f,o)!==!1||e.addEventListener&&e.addEventListener(p,o,!1)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),Z.event.global[p]=!0)},remove:function(e,t,n,i,r){var s,o,a,u,l,c,h,d,p,f,g,m=vt.hasData(e)&&vt.get(e);if(m&&(u=m.events)){for(t=(t||"").match(pt)||[""],l=t.length;l--;)if(a=Nt.exec(t[l])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p){for(h=Z.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,d=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)c=d[s],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(s,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(e,c));o&&!d.length&&(h.teardown&&h.teardown.call(e,f,m.handle)!==!1||Z.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)Z.event.remove(e,p+t[l],n,i,!0);Z.isEmptyObject(u)&&(delete m.handle,vt.remove(e,"events"))}},trigger:function(t,n,i,r){var s,o,a,u,l,c,h,d=[i||G],p=z.call(t,"type")?t.type:t,f=z.call(t,"namespace")?t.namespace.split("."):[];if(o=a=i=i||G,3!==i.nodeType&&8!==i.nodeType&&!Pt.test(p+Z.event.triggered)&&(p.indexOf(".")>=0&&(f=p.split("."),p=f.shift(),f.sort()),l=p.indexOf(":")<0&&"on"+p,t=t[Z.expando]?t:new Z.Event(p,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=f.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:Z.makeArray(n,[t]),h=Z.event.special[p]||{},r||!h.trigger||h.trigger.apply(i,n)!==!1)){if(!r&&!h.noBubble&&!Z.isWindow(i)){for(u=h.delegateType||p,Pt.test(u+p)||(o=o.parentNode);o;o=o.parentNode)d.push(o),a=o;a===(i.ownerDocument||G)&&d.push(a.defaultView||a.parentWindow||e)}for(s=0;(o=d[s++])&&!t.isPropagationStopped();)t.type=s>1?u:h.bindType||p,c=(vt.get(o,"events")||{})[t.type]&&vt.get(o,"handle"),c&&c.apply(o,n),c=l&&o[l],c&&c.apply&&Z.acceptData(o)&&(t.result=c.apply(o,n),t.result===!1&&t.preventDefault());return t.type=p,r||t.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),n)!==!1||!Z.acceptData(i)||l&&Z.isFunction(i[p])&&!Z.isWindow(i)&&(a=i[l],a&&(i[l]=null),Z.event.triggered=p,i[p](),Z.event.triggered=void 0,a&&(i[l]=a)),t.result}},dispatch:function(e){e=Z.event.fix(e);var t,n,i,r,s,o=[],a=U.call(arguments),u=(vt.get(this,"events")||{})[e.type]||[],l=Z.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(o=Z.event.handlers.call(this,e,u),t=0;(r=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(s.namespace))&&(e.handleObj=s,e.data=s.data,i=((Z.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,s,o=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(i=[],n=0;a>n;n++)s=t[n],r=s.selector+" ",void 0===i[r]&&(i[r]=s.needsContext?Z(r,this).index(u)>=0:Z.find(r,this,null,[u]).length),i[r]&&i.push(s);i.length&&o.push({elem:u,handlers:i})}return a<t.length&&o.push({elem:this,handlers:t.slice(a)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||G,i=n.documentElement,r=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[Z.expando])return e;var t,n,i,r=e.type,s=e,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=jt.test(r)?this.mouseHooks:Lt.test(r)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,e=new Z.Event(s),t=i.length;t--;)n=i[t],e[n]=s[n];return e.target||(e.target=G),3===e.target.nodeType&&(e.target=e.target.parentNode),o.filter?o.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==h()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===h()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Z.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return Z.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var r=Z.extend(new Z.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?Z.event.trigger(r,null,t):Z.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},Z.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},Z.Event=function(e,t){return this instanceof Z.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?l:c):this.type=e,t&&Z.extend(this,t),this.timeStamp=e&&e.timeStamp||Z.now(),void(this[Z.expando]=!0)):new Z.Event(e,t)},Z.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=l,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=l,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=l,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},Z.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Z.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,s=e.handleObj;return(!r||r!==i&&!Z.contains(i,r))&&(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}}),Y.focusinBubbles||Z.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Z.event.simulate(t,e.target,Z.event.fix(e),!0)};Z.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=vt.access(i,t);r||i.addEventListener(e,n,!0),vt.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=vt.access(i,t)-1;r?vt.access(i,t,r):(i.removeEventListener(e,n,!0),vt.remove(i,t))}}}),Z.fn.extend({on:function(e,t,n,i,r){var s,o;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(o in e)this.on(o,t,n,e[o],r);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),i===!1)i=c;else if(!i)return this;return 1===r&&(s=i,i=function(e){return Z().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=Z.guid++)),this.each(function(){Z.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,Z(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=c),this.each(function(){Z.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){Z.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?Z.event.trigger(e,t,n,!0):void 0}});var It=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ct=/<([\w:]+)/,At=/<|&#?\w+;/,Ot=/<(?:script|style|link)/i,kt=/checked\s*(?:[^=]|=\s*.checked.)/i,Dt=/^$|\/(?:java|ecma)script/i,Mt=/^true\/(.*)/,Rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ht={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ht.optgroup=Ht.option,Ht.tbody=Ht.tfoot=Ht.colgroup=Ht.caption=Ht.thead,Ht.th=Ht.td,Z.extend({clone:function(e,t,n){var i,r,s,o,a=e.cloneNode(!0),u=Z.contains(e.ownerDocument,e);if(!(Y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Z.isXMLDoc(e)))for(o=v(a),s=v(e),i=0,r=s.length;r>i;i++)y(s[i],o[i]);if(t)if(n)for(s=s||v(e),o=o||v(a),i=0,r=s.length;r>i;i++)m(s[i],o[i]);else m(e,a);return o=v(a,"script"),o.length>0&&g(o,!u&&v(e,"script")),a},buildFragment:function(e,t,n,i){for(var r,s,o,a,u,l,c=t.createDocumentFragment(),h=[],d=0,p=e.length;p>d;d++)if(r=e[d],r||0===r)if("object"===Z.type(r))Z.merge(h,r.nodeType?[r]:r);else if(At.test(r)){for(s=s||c.appendChild(t.createElement("div")),o=(Ct.exec(r)||["",""])[1].toLowerCase(),a=Ht[o]||Ht._default,s.innerHTML=a[1]+r.replace(It,"<$1></$2>")+a[2],l=a[0];l--;)s=s.lastChild;Z.merge(h,s.childNodes),s=c.firstChild,s.textContent=""}else h.push(t.createTextNode(r));for(c.textContent="",d=0;r=h[d++];)if((!i||-1===Z.inArray(r,i))&&(u=Z.contains(r.ownerDocument,r),s=v(c.appendChild(r),"script"),u&&g(s),n))for(l=0;r=s[l++];)Dt.test(r.type||"")&&n.push(r);return c},cleanData:function(e){for(var t,n,i,r,s=Z.event.special,o=0;void 0!==(n=e[o]);o++){if(Z.acceptData(n)&&(r=n[vt.expando],r&&(t=vt.cache[r]))){if(t.events)for(i in t.events)s[i]?Z.event.remove(n,i):Z.removeEvent(n,i,t.handle);vt.cache[r]&&delete vt.cache[r]}delete yt.cache[n[yt.expando]]}}}),Z.fn.extend({text:function(e){return mt(this,function(e){return void 0===e?Z.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=d(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=d(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?Z.filter(e,this):this,r=0;null!=(n=i[r]);r++)t||1!==n.nodeType||Z.cleanData(v(n)),n.parentNode&&(t&&Z.contains(n.ownerDocument,n)&&g(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Z.cleanData(v(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return Z.clone(this,e,t)})},html:function(e){return mt(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ot.test(e)&&!Ht[(Ct.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(It,"<$1></$2>");try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(Z.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,Z.cleanData(v(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=X.apply([],e);var n,i,r,s,o,a,u=0,l=this.length,c=this,h=l-1,d=e[0],g=Z.isFunction(d);if(g||l>1&&"string"==typeof d&&!Y.checkClone&&kt.test(d))return this.each(function(n){var i=c.eq(n);g&&(e[0]=d.call(this,n,i.html())),i.domManip(e,t)});if(l&&(n=Z.buildFragment(e,this[0].ownerDocument,!1,this),i=n.firstChild,1===n.childNodes.length&&(n=i),i)){for(r=Z.map(v(n,"script"),p),s=r.length;l>u;u++)o=n,u!==h&&(o=Z.clone(o,!0,!0),s&&Z.merge(r,v(o,"script"))),t.call(this[u],o,u);if(s)for(a=r[r.length-1].ownerDocument,Z.map(r,f),u=0;s>u;u++)o=r[u],Dt.test(o.type||"")&&!vt.access(o,"globalEval")&&Z.contains(a,o)&&(o.src?Z._evalUrl&&Z._evalUrl(o.src):Z.globalEval(o.textContent.replace(Rt,"")))}return this}}),Z.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Z.fn[e]=function(e){for(var n,i=[],r=Z(e),s=r.length-1,o=0;s>=o;o++)n=o===s?this:this.clone(!0),Z(r[o])[t](n),W.apply(i,n.get());return this.pushStack(i)}});var qt,Ft={},Bt=/^margin/,Qt=new RegExp("^("+bt+")(?!px)[a-z%]+$","i"),Ut=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)};!function(){function t(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(s);var t=e.getComputedStyle(o,null);n="1%"!==t.top,i="4px"===t.width,r.removeChild(s)}var n,i,r=G.documentElement,s=G.createElement("div"),o=G.createElement("div");o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",Y.clearCloneStyle="content-box"===o.style.backgroundClip,s.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",s.appendChild(o),e.getComputedStyle&&Z.extend(Y,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==i&&t(),i},reliableMarginRight:function(){var t,n=o.appendChild(G.createElement("div"));return n.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",o.style.width="1px",r.appendChild(s),t=!parseFloat(e.getComputedStyle(n,null).marginRight),r.removeChild(s),t}}))}(),Z.swap=function(e,t,n,i){var r,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];r=n.apply(e,i||[]);for(s in t)e.style[s]=o[s];return r};var Xt=/^(none|table(?!-c[ea]).+)/,Wt=new RegExp("^("+bt+")(.*)$","i"),Vt=new RegExp("^([+-])=("+bt+")","i"),Jt={position:"absolute",visibility:"hidden",display:"block"},$t={letterSpacing:"0",fontWeight:"400"},zt=["Webkit","O","Moz","ms"];Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=b(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,o,a=Z.camelCase(t),u=e.style;return t=Z.cssProps[a]||(Z.cssProps[a]=w(u,a)),o=Z.cssHooks[t]||Z.cssHooks[a],void 0===n?o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:u[t]:(s=typeof n,"string"===s&&(r=Vt.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(Z.css(e,t)),s="number"),null!=n&&n===n&&("number"!==s||Z.cssNumber[a]||(n+="px"),Y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(u[t]=n)),void 0)}},css:function(e,t,n,i){var r,s,o,a=Z.camelCase(t);return t=Z.cssProps[a]||(Z.cssProps[a]=w(e.style,a)),o=Z.cssHooks[t]||Z.cssHooks[a],o&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=b(e,t,i)),"normal"===r&&t in $t&&(r=$t[t]),""===n||n?(s=parseFloat(r),n===!0||Z.isNumeric(s)?s||0:r):r}}),Z.each(["height","width"],function(e,t){Z.cssHooks[t]={get:function(e,n,i){return n?Xt.test(Z.css(e,"display"))&&0===e.offsetWidth?Z.swap(e,Jt,function(){return L(e,t,i)}):L(e,t,i):void 0},set:function(e,n,i){var r=i&&Ut(e);return E(e,n,i?T(e,t,i,"border-box"===Z.css(e,"boxSizing",!1,r),r):0)}}}),Z.cssHooks.marginRight=S(Y.reliableMarginRight,function(e,t){return t?Z.swap(e,{display:"inline-block"},b,[e,"marginRight"]):void 0}),Z.each({margin:"",padding:"",border:"Width"},function(e,t){Z.cssHooks[e+t]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];4>i;i++)r[e+St[i]+t]=s[i]||s[i-2]||s[0];return r}},Bt.test(e)||(Z.cssHooks[e+t].set=E)}),Z.fn.extend({css:function(e,t){return mt(this,function(e,t,n){var i,r,s={},o=0;if(Z.isArray(t)){for(i=Ut(e),r=t.length;r>o;o++)s[t[o]]=Z.css(e,t[o],!1,i);return s}return void 0!==n?Z.style(e,t,n):Z.css(e,t)},e,t,arguments.length>1)},show:function(){return j(this,!0)},hide:function(){return j(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){wt(this)?Z(this).show():Z(this).hide()})}}),Z.Tween=P,P.prototype={constructor:P,init:function(e,t,n,i,r,s){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(Z.cssNumber[n]?"":"px")},cur:function(){var e=P.propHooks[this.prop];return e&&e.get?e.get(this):P.propHooks._default.get(this)},run:function(e){var t,n=P.propHooks[this.prop];return this.pos=t=this.options.duration?Z.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):P.propHooks._default.set(this),this}},P.prototype.init.prototype=P.prototype,P.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Z.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Z.fx.step[e.prop]?Z.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Z.cssProps[e.prop]]||Z.cssHooks[e.prop])?Z.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Z.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Z.fx=P.prototype.init,Z.fx.step={};var Yt,Gt,Kt=/^(?:toggle|show|hide)$/,Zt=new RegExp("^(?:([+-])=|)("+bt+")([a-z%]*)$","i"),en=/queueHooks$/,tn=[A],nn={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),r=Zt.exec(t),s=r&&r[3]||(Z.cssNumber[e]?"":"px"),o=(Z.cssNumber[e]||"px"!==s&&+i)&&Zt.exec(Z.css(n.elem,e)),a=1,u=20;if(o&&o[3]!==s){s=s||o[3],r=r||[],o=+i||1;do a=a||".5",o/=a,Z.style(n.elem,e,o+s);while(a!==(a=n.cur()/i)&&1!==a&&--u)}return r&&(o=n.start=+o||+i||0,n.unit=s,n.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),n}]};Z.Animation=Z.extend(k,{tweener:function(e,t){Z.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,r=e.length;r>i;i++)n=e[i],nn[n]=nn[n]||[],nn[n].unshift(t)},prefilter:function(e,t){t?tn.unshift(e):tn.push(e)}}),Z.speed=function(e,t,n){var i=e&&"object"==typeof e?Z.extend({},e):{complete:n||!n&&t||Z.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Z.isFunction(t)&&t};return i.duration=Z.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in Z.fx.speeds?Z.fx.speeds[i.duration]:Z.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){Z.isFunction(i.old)&&i.old.call(this),i.queue&&Z.dequeue(this,i.queue)},i},Z.fn.extend({fadeTo:function(e,t,n,i){return this.filter(wt).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=Z.isEmptyObject(e),s=Z.speed(t,n,i),o=function(){var t=k(this,Z.extend({},e),s);(r||vt.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",s=Z.timers,o=vt.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&en.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=e&&s[r].queue!==e||(s[r].anim.stop(n),t=!1,s.splice(r,1));(t||!n)&&Z.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=vt.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],s=Z.timers,o=i?i.length:0;for(n.finish=!0,Z.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;o>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),Z.each(["toggle","show","hide"],function(e,t){var n=Z.fn[t];Z.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(I(t,!0),e,i,r)}}),Z.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Z.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),Z.timers=[],Z.fx.tick=function(){var e,t=0,n=Z.timers;for(Yt=Z.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Z.fx.stop(),Yt=void 0},Z.fx.timer=function(e){Z.timers.push(e),e()?Z.fx.start():Z.timers.pop()},Z.fx.interval=13,Z.fx.start=function(){Gt||(Gt=setInterval(Z.fx.tick,Z.fx.interval))},Z.fx.stop=function(){clearInterval(Gt),Gt=null},Z.fx.speeds={slow:600,fast:200,_default:400},Z.fn.delay=function(e,t){return e=Z.fx?Z.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},function(){var e=G.createElement("input"),t=G.createElement("select"),n=t.appendChild(G.createElement("option"));e.type="checkbox",Y.checkOn=""!==e.value,Y.optSelected=n.selected,t.disabled=!0,Y.optDisabled=!n.disabled,e=G.createElement("input"),e.value="t",e.type="radio",Y.radioValue="t"===e.value}();var rn,sn,on=Z.expr.attrHandle;Z.fn.extend({attr:function(e,t){return mt(this,Z.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Z.removeAttr(this,e)})}}),Z.extend({attr:function(e,t,n){var i,r,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===Tt?Z.prop(e,t,n):(1===s&&Z.isXMLDoc(e)||(t=t.toLowerCase(),i=Z.attrHooks[t]||(Z.expr.match.bool.test(t)?sn:rn)),void 0===n?i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=Z.find.attr(e,t),null==r?void 0:r):null!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void Z.removeAttr(e,t))},removeAttr:function(e,t){var n,i,r=0,s=t&&t.match(pt);if(s&&1===e.nodeType)for(;n=s[r++];)i=Z.propFix[n]||n,Z.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!Y.radioValue&&"radio"===t&&Z.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),sn={set:function(e,t,n){return t===!1?Z.removeAttr(e,n):e.setAttribute(n,n),n}},Z.each(Z.expr.match.bool.source.match(/\w+/g),function(e,t){var n=on[t]||Z.find.attr;on[t]=function(e,t,i){var r,s;return i||(s=on[t],on[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,on[t]=s),r}});var an=/^(?:input|select|textarea|button)$/i;Z.fn.extend({prop:function(e,t){return mt(this,Z.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Z.propFix[e]||e]})}}),Z.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var i,r,s,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return s=1!==o||!Z.isXMLDoc(e),s&&(t=Z.propFix[t]||t,r=Z.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||an.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),Y.optSelected||(Z.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),Z.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Z.propFix[this.toLowerCase()]=this});var un=/[\t\r\n\f]/g;Z.fn.extend({addClass:function(e){var t,n,i,r,s,o,a="string"==typeof e&&e,u=0,l=this.length;if(Z.isFunction(e))return this.each(function(t){Z(this).addClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(pt)||[];l>u;u++)if(n=this[u],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(un," "):" ")){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o=Z.trim(i),n.className!==o&&(n.className=o)}return this},removeClass:function(e){var t,n,i,r,s,o,a=0===arguments.length||"string"==typeof e&&e,u=0,l=this.length;if(Z.isFunction(e))return this.each(function(t){Z(this).removeClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(pt)||[];l>u;u++)if(n=this[u],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(un," "):"")){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");
o=e?Z.trim(i):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(Z.isFunction(e)?function(n){Z(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,i=0,r=Z(this),s=e.match(pt)||[];t=s[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(n===Tt||"boolean"===n)&&(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||e===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(un," ").indexOf(t)>=0)return!0;return!1}});var ln=/\r/g;Z.fn.extend({val:function(e){var t,n,i,r=this[0];{if(arguments.length)return i=Z.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,Z(this).val()):e,null==r?r="":"number"==typeof r?r+="":Z.isArray(r)&&(r=Z.map(r,function(e){return null==e?"":e+""})),t=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=Z.valHooks[r.type]||Z.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(ln,""):null==n?"":n)}}}),Z.extend({valHooks:{option:{get:function(e){var t=Z.find.attr(e,"value");return null!=t?t:Z.trim(Z.text(e))}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,s="select-one"===e.type||0>r,o=s?null:[],a=s?r+1:i.length,u=0>r?a:s?r:0;a>u;u++)if(n=i[u],!(!n.selected&&u!==r||(Y.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&Z.nodeName(n.parentNode,"optgroup"))){if(t=Z(n).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var n,i,r=e.options,s=Z.makeArray(t),o=r.length;o--;)i=r[o],(i.selected=Z.inArray(i.value,s)>=0)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),Z.each(["radio","checkbox"],function(){Z.valHooks[this]={set:function(e,t){return Z.isArray(t)?e.checked=Z.inArray(Z(e).val(),t)>=0:void 0}},Y.checkOn||(Z.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),Z.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){Z.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),Z.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var cn=Z.now(),hn=/\?/;Z.parseJSON=function(e){return JSON.parse(e+"")},Z.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(i){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&Z.error("Invalid XML: "+e),t};var dn,pn,fn=/#.*$/,gn=/([?&])_=[^&]*/,mn=/^(.*?):[ \t]*([^\r\n]*)$/gm,vn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,yn=/^(?:GET|HEAD)$/,_n=/^\/\//,xn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,bn={},Sn={},wn="*/".concat("*");try{pn=location.href}catch(En){pn=G.createElement("a"),pn.href="",pn=pn.href}dn=xn.exec(pn.toLowerCase())||[],Z.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pn,type:"GET",isLocal:vn.test(dn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?R(R(e,Z.ajaxSettings),t):R(Z.ajaxSettings,e)},ajaxPrefilter:D(bn),ajaxTransport:D(Sn),ajax:function(e,t){function n(e,t,n,o){var u,c,v,y,x,S=t;2!==_&&(_=2,a&&clearTimeout(a),i=void 0,s=o||"",b.readyState=e>0?4:0,u=e>=200&&300>e||304===e,n&&(y=H(h,b,n)),y=q(h,y,b,u),u?(h.ifModified&&(x=b.getResponseHeader("Last-Modified"),x&&(Z.lastModified[r]=x),x=b.getResponseHeader("etag"),x&&(Z.etag[r]=x)),204===e||"HEAD"===h.type?S="nocontent":304===e?S="notmodified":(S=y.state,c=y.data,v=y.error,u=!v)):(v=S,(e||!S)&&(S="error",0>e&&(e=0))),b.status=e,b.statusText=(t||S)+"",u?f.resolveWith(d,[c,S,b]):f.rejectWith(d,[b,S,v]),b.statusCode(m),m=void 0,l&&p.trigger(u?"ajaxSuccess":"ajaxError",[b,h,u?c:v]),g.fireWith(d,[b,S]),l&&(p.trigger("ajaxComplete",[b,h]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,s,o,a,u,l,c,h=Z.ajaxSetup({},t),d=h.context||h,p=h.context&&(d.nodeType||d.jquery)?Z(d):Z.event,f=Z.Deferred(),g=Z.Callbacks("once memory"),m=h.statusCode||{},v={},y={},_=0,x="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(2===_){if(!o)for(o={};t=mn.exec(s);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===_?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return _||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return _||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>_)for(t in e)m[t]=[m[t],e[t]];else b.always(e[b.status]);return this},abort:function(e){var t=e||x;return i&&i.abort(t),n(0,t),this}};if(f.promise(b).complete=g.add,b.success=b.done,b.error=b.fail,h.url=((e||h.url||pn)+"").replace(fn,"").replace(_n,dn[1]+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=Z.trim(h.dataType||"*").toLowerCase().match(pt)||[""],null==h.crossDomain&&(u=xn.exec(h.url.toLowerCase()),h.crossDomain=!(!u||u[1]===dn[1]&&u[2]===dn[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(dn[3]||("http:"===dn[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Z.param(h.data,h.traditional)),M(bn,h,t,b),2===_)return b;l=h.global,l&&0===Z.active++&&Z.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!yn.test(h.type),r=h.url,h.hasContent||(h.data&&(r=h.url+=(hn.test(r)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=gn.test(r)?r.replace(gn,"$1_="+cn++):r+(hn.test(r)?"&":"?")+"_="+cn++)),h.ifModified&&(Z.lastModified[r]&&b.setRequestHeader("If-Modified-Since",Z.lastModified[r]),Z.etag[r]&&b.setRequestHeader("If-None-Match",Z.etag[r])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&b.setRequestHeader("Content-Type",h.contentType),b.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+wn+"; q=0.01":""):h.accepts["*"]);for(c in h.headers)b.setRequestHeader(c,h.headers[c]);if(h.beforeSend&&(h.beforeSend.call(d,b,h)===!1||2===_))return b.abort();x="abort";for(c in{success:1,error:1,complete:1})b[c](h[c]);if(i=M(Sn,h,t,b)){b.readyState=1,l&&p.trigger("ajaxSend",[b,h]),h.async&&h.timeout>0&&(a=setTimeout(function(){b.abort("timeout")},h.timeout));try{_=1,i.send(v,n)}catch(S){if(!(2>_))throw S;n(-1,S)}}else n(-1,"No Transport");return b},getJSON:function(e,t,n){return Z.get(e,t,n,"json")},getScript:function(e,t){return Z.get(e,void 0,t,"script")}}),Z.each(["get","post"],function(e,t){Z[t]=function(e,n,i,r){return Z.isFunction(n)&&(r=r||i,i=n,n=void 0),Z.ajax({url:e,type:t,dataType:r,data:n,success:i})}}),Z.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Z.fn[t]=function(e){return this.on(t,e)}}),Z._evalUrl=function(e){return Z.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Z.fn.extend({wrapAll:function(e){var t;return Z.isFunction(e)?this.each(function(t){Z(this).wrapAll(e.call(this,t))}):(this[0]&&(t=Z(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return this.each(Z.isFunction(e)?function(t){Z(this).wrapInner(e.call(this,t))}:function(){var t=Z(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Z.isFunction(e);return this.each(function(n){Z(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)}).end()}}),Z.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)};var Tn=/%20/g,Ln=/\[\]$/,jn=/\r?\n/g,Pn=/^(?:submit|button|image|reset|file)$/i,Nn=/^(?:input|select|textarea|keygen)/i;Z.param=function(e,t){var n,i=[],r=function(e,t){t=Z.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,function(){r(this.name,this.value)});else for(n in e)F(n,e[n],t,r);return i.join("&").replace(Tn,"+")},Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Z.prop(this,"elements");return e?Z.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Z(this).is(":disabled")&&Nn.test(this.nodeName)&&!Pn.test(e)&&(this.checked||!Et.test(e))}).map(function(e,t){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,function(e){return{name:t.name,value:e.replace(jn,"\r\n")}}):{name:t.name,value:n.replace(jn,"\r\n")}}).get()}}),Z.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var In=0,Cn={},An={0:200,1223:204},On=Z.ajaxSettings.xhr();e.ActiveXObject&&Z(e).on("unload",function(){for(var e in Cn)Cn[e]()}),Y.cors=!!On&&"withCredentials"in On,Y.ajax=On=!!On,Z.ajaxTransport(function(e){var t;return Y.cors||On&&!e.crossDomain?{send:function(n,i){var r,s=e.xhr(),o=++In;if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)s[r]=e.xhrFields[r];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)s.setRequestHeader(r,n[r]);t=function(e){return function(){t&&(delete Cn[o],t=s.onload=s.onerror=null,"abort"===e?s.abort():"error"===e?i(s.status,s.statusText):i(An[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:void 0,s.getAllResponseHeaders()))}},s.onload=t(),s.onerror=t("error"),t=Cn[o]=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(a){if(t)throw a}},abort:function(){t&&t()}}:void 0}),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Z.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,r){t=Z("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),G.head.appendChild(t[0])},abort:function(){n&&n()}}}});var kn=[],Dn=/(=)\?(?=&|$)|\?\?/;Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=kn.pop()||Z.expando+"_"+cn++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",function(t,n,i){var r,s,o,a=t.jsonp!==!1&&(Dn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=Z.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Dn,"$1"+r):t.jsonp!==!1&&(t.url+=(hn.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||Z.error(r+" was not called"),o[0]},t.dataTypes[0]="json",s=e[r],e[r]=function(){o=arguments},i.always(function(){e[r]=s,t[r]&&(t.jsonpCallback=n.jsonpCallback,kn.push(r)),o&&Z.isFunction(s)&&s(o[0]),o=s=void 0}),"script"):void 0}),Z.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||G;var i=ot.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=Z.buildFragment([e],t,r),r&&r.length&&Z(r).remove(),Z.merge([],i.childNodes))};var Mn=Z.fn.load;Z.fn.load=function(e,t,n){if("string"!=typeof e&&Mn)return Mn.apply(this,arguments);var i,r,s,o=this,a=e.indexOf(" ");return a>=0&&(i=Z.trim(e.slice(a)),e=e.slice(0,a)),Z.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&Z.ajax({url:e,type:r,dataType:"html",data:t}).done(function(e){s=arguments,o.html(i?Z("<div>").append(Z.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){o.each(n,s||[e.responseText,t,e])}),this},Z.expr.filters.animated=function(e){return Z.grep(Z.timers,function(t){return e===t.elem}).length};var Rn=e.document.documentElement;Z.offset={setOffset:function(e,t,n){var i,r,s,o,a,u,l,c=Z.css(e,"position"),h=Z(e),d={};"static"===c&&(e.style.position="relative"),a=h.offset(),s=Z.css(e,"top"),u=Z.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(s+u).indexOf("auto")>-1,l?(i=h.position(),o=i.top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(u)||0),Z.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(d.top=t.top-a.top+o),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):h.css(d)}},Z.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Z.offset.setOffset(this,e,t)});var t,n,i=this[0],r={top:0,left:0},s=i&&i.ownerDocument;if(s)return t=s.documentElement,Z.contains(t,i)?(typeof i.getBoundingClientRect!==Tt&&(r=i.getBoundingClientRect()),n=B(s),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===Z.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),Z.nodeName(e[0],"html")||(i=e.offset()),i.top+=Z.css(e[0],"borderTopWidth",!0),i.left+=Z.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-Z.css(n,"marginTop",!0),left:t.left-i.left-Z.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Rn;e&&!Z.nodeName(e,"html")&&"static"===Z.css(e,"position");)e=e.offsetParent;return e||Rn})}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i="pageYOffset"===n;Z.fn[t]=function(r){return mt(this,function(t,r,s){var o=B(t);return void 0===s?o?o[n]:t[r]:void(o?o.scrollTo(i?e.pageXOffset:s,i?s:e.pageYOffset):t[r]=s)},t,r,arguments.length,null)}}),Z.each(["top","left"],function(e,t){Z.cssHooks[t]=S(Y.pixelPosition,function(e,n){return n?(n=b(e,t),Qt.test(n)?Z(e).position()[t]+"px":n):void 0})}),Z.each({Height:"height",Width:"width"},function(e,t){Z.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){Z.fn[i]=function(i,r){var s=arguments.length&&(n||"boolean"!=typeof i),o=n||(i===!0||r===!0?"margin":"border");return mt(this,function(t,n,i){var r;return Z.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?Z.css(t,n,o):Z.style(t,n,i,o)},t,s?i:void 0,s,null)}})}),Z.fn.size=function(){return this.length},Z.fn.andSelf=Z.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Z});var Hn=e.jQuery,qn=e.$;return Z.noConflict=function(t){return e.$===Z&&(e.$=qn),t&&e.jQuery===Z&&(e.jQuery=Hn),Z},typeof t===Tt&&(e.jQuery=e.$=Z),Z}),this.createjs=this.createjs||{},function(){"use strict";var e=createjs.PreloadJS=createjs.PreloadJS||{};e.version="0.4.1",e.buildDate="Thu, 12 Dec 2013 23:33:38 GMT"}(),this.createjs=this.createjs||{},function(){"use strict";var e=function(e,t,n){this.initialize(e,t,n)},t=e.prototype;t.type=null,t.target=null,t.currentTarget=null,t.eventPhase=0,t.bubbles=!1,t.cancelable=!1,t.timeStamp=0,t.defaultPrevented=!1,t.propagationStopped=!1,t.immediatePropagationStopped=!1,t.removed=!1,t.initialize=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n,this.timeStamp=(new Date).getTime()},t.preventDefault=function(){this.defaultPrevented=!0},t.stopPropagation=function(){this.propagationStopped=!0},t.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},t.remove=function(){this.removed=!0},t.clone=function(){return new e(this.type,this.bubbles,this.cancelable)},t.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=e}(),this.createjs=this.createjs||{},function(){"use strict";var e=function(){},t=e.prototype;e.initialize=function(e){e.addEventListener=t.addEventListener,e.on=t.on,e.removeEventListener=e.off=t.removeEventListener,e.removeAllEventListeners=t.removeAllEventListeners,e.hasEventListener=t.hasEventListener,e.dispatchEvent=t.dispatchEvent,e._dispatchEvent=t._dispatchEvent,e.willTrigger=t.willTrigger},t._listeners=null,t._captureListeners=null,t.initialize=function(){},t.addEventListener=function(e,t,n){var i;i=n?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var r=i[e];return r&&this.removeEventListener(e,t,n),r=i[e],r?r.push(t):i[e]=[t],t},t.on=function(e,t,n,i,r,s){return t.handleEvent&&(n=n||t,t=t.handleEvent),n=n||this,this.addEventListener(e,function(e){t.call(n,e,r),i&&e.remove()},s)},t.removeEventListener=function(e,t,n){var i=n?this._captureListeners:this._listeners;if(i){var r=i[e];if(r)for(var s=0,o=r.length;o>s;s++)if(r[s]==t){1==o?delete i[e]:r.splice(s,1);break}}},t.off=t.removeEventListener,t.removeAllEventListeners=function(e){e?(this._listeners&&delete this._listeners[e],this._captureListeners&&delete this._captureListeners[e]):this._listeners=this._captureListeners=null},t.dispatchEvent=function(e,t){if("string"==typeof e){var n=this._listeners;if(!n||!n[e])return!1;e=new createjs.Event(e)}if(e.target=t||this,e.bubbles&&this.parent){for(var i=this,r=[i];i.parent;)r.push(i=i.parent);var s,o=r.length;for(s=o-1;s>=0&&!e.propagationStopped;s--)r[s]._dispatchEvent(e,1+(0==s));for(s=1;o>s&&!e.propagationStopped;s++)r[s]._dispatchEvent(e,3)}else this._dispatchEvent(e,2);return e.defaultPrevented},t.hasEventListener=function(e){var t=this._listeners,n=this._captureListeners;return!!(t&&t[e]||n&&n[e])},t.willTrigger=function(e){for(var t=this;t;){if(t.hasEventListener(e))return!0;t=t.parent}return!1},t.toString=function(){return"[EventDispatcher]"},t._dispatchEvent=function(e,t){var n,i=1==t?this._captureListeners:this._listeners;if(e&&i){var r=i[e.type];if(!r||!(n=r.length))return;e.currentTarget=this,e.eventPhase=t,e.removed=!1,r=r.slice();for(var s=0;n>s&&!e.immediatePropagationStopped;s++){var o=r[s];o.handleEvent?o.handleEvent(e):o(e),e.removed&&(this.off(e.type,o,1==t),e.removed=!1)}}},createjs.EventDispatcher=e}(),this.createjs=this.createjs||{},function(){"use strict";createjs.indexOf=function(e,t){for(var n=0,i=e.length;i>n;n++)if(t===e[n])return n;return-1}}(),this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){return e.apply(t,Array.prototype.slice.call(arguments,0).concat(n))}}}(),this.createjs=this.createjs||{},function(){"use strict";var e=function(){this.init()};e.prototype=new createjs.EventDispatcher;var t=e.prototype,n=e;n.FILE_PATTERN=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?)|(.{0,2}\/{1}))?([/.]*?(?:[^?]+)?\/)?((?:[^/?]+)\.(\w+))(?:\?(\S+)?)?$/,n.PATH_PATTERN=/^(?:(\w+:)\/{2})|(.{0,2}\/{1})?([/.]*?(?:[^?]+)?\/?)?$/,t.loaded=!1,t.canceled=!1,t.progress=0,t._item=null,t.getItem=function(){return this._item},t.init=function(){},t.load=function(){},t.close=function(){},t._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")},t._sendProgress=function(e){if(!this._isCanceled()){var t=null;"number"==typeof e?(this.progress=e,t=new createjs.Event("progress"),t.loaded=this.progress,t.total=1):(t=e,this.progress=e.loaded/e.total,(isNaN(this.progress)||1/0==this.progress)&&(this.progress=0)),t.progress=this.progress,this.hasEventListener("progress")&&this.dispatchEvent(t)}},t._sendComplete=function(){this._isCanceled()||this.dispatchEvent("complete")},t._sendError=function(e){!this._isCanceled()&&this.hasEventListener("error")&&(null==e&&(e=new createjs.Event("error")),this.dispatchEvent(e))},t._isCanceled=function(){return null==window.createjs||this.canceled?!0:!1},t._parseURI=function(e){return e?e.match(n.FILE_PATTERN):null},t._parsePath=function(e){return e?e.match(n.PATH_PATTERN):null},t._formatQueryString=function(e,t){if(null==e)throw new Error("You must specify data.");var n=[];for(var i in e)n.push(i+"="+escape(e[i]));return t&&(n=n.concat(t)),n.join("&")},t.buildPath=function(e,t){if(null==t)return e;var n=[],i=e.indexOf("?");if(-1!=i){var r=e.slice(i+1);n=n.concat(r.split("&"))}return-1!=i?e.slice(0,i)+"?"+this._formatQueryString(t,n):e+"?"+this._formatQueryString(t,n)},t._isCrossDomain=function(e){var t=document.createElement("a");t.href=e.src;var n=document.createElement("a");n.href=location.href;var i=""!=t.hostname&&(t.port!=n.port||t.protocol!=n.protocol||t.hostname!=n.hostname);return i},t._isLocal=function(e){var t=document.createElement("a");return t.href=e.src,""==t.hostname&&"file:"==t.protocol},t.toString=function(){return"[PreloadJS AbstractLoader]"},createjs.AbstractLoader=e}(),this.createjs=this.createjs||{},function(){"use strict";var e=function(e,t,n){this.init(e,t,n)},t=e.prototype=new createjs.AbstractLoader,n=e;n.loadTimeout=8e3,n.LOAD_TIMEOUT=0,n.BINARY="binary",n.CSS="css",n.IMAGE="image",n.JAVASCRIPT="javascript",n.JSON="json",n.JSONP="jsonp",n.MANIFEST="manifest",n.SOUND="sound",n.SVG="svg",n.TEXT="text",n.XML="xml",n.POST="POST",n.GET="GET",t._basePath=null,t._crossOrigin="",t.useXHR=!0,t.stopOnError=!1,t.maintainScriptOrder=!0,t.next=null,t._typeCallbacks=null,t._extensionCallbacks=null,t._loadStartWasDispatched=!1,t._maxConnections=1,t._currentlyLoadingScript=null,t._currentLoads=null,t._loadQueue=null,t._loadQueueBackup=null,t._loadItemsById=null,t._loadItemsBySrc=null,t._loadedResults=null,t._loadedRawResults=null,t._numItems=0,t._numItemsLoaded=0,t._scriptOrder=null,t._loadedScripts=null,t.init=function(e,t,n){this._numItems=this._numItemsLoaded=0,this._paused=!1,this._loadStartWasDispatched=!1,this._currentLoads=[],this._loadQueue=[],this._loadQueueBackup=[],this._scriptOrder=[],this._loadedScripts=[],this._loadItemsById={},this._loadItemsBySrc={},this._loadedResults={},this._loadedRawResults={},this._typeCallbacks={},this._extensionCallbacks={},this._basePath=t,this.setUseXHR(e),this._crossOrigin=n===!0?"Anonymous":n===!1||null==n?"":n},t.setUseXHR=function(e){return this.useXHR=0!=e&&null!=window.XMLHttpRequest,this.useXHR},t.removeAll=function(){this.remove()},t.remove=function(e){var t=null;if(!e||e instanceof Array){if(e)t=e;else if(arguments.length>0)return}else t=[e];var n=!1;if(t){for(;t.length;){var i=t.pop(),r=this.getResult(i);for(s=this._loadQueue.length-1;s>=0;s--)if(o=this._loadQueue[s].getItem(),o.id==i||o.src==i){this._loadQueue.splice(s,1)[0].cancel();break}for(s=this._loadQueueBackup.length-1;s>=0;s--)if(o=this._loadQueueBackup[s].getItem(),o.id==i||o.src==i){this._loadQueueBackup.splice(s,1)[0].cancel();break}if(r)delete this._loadItemsById[r.id],delete this._loadItemsBySrc[r.src],this._disposeItem(r);else for(var s=this._currentLoads.length-1;s>=0;s--){var o=this._currentLoads[s].getItem();if(o.id==i||o.src==i){this._currentLoads.splice(s,1)[0].cancel(),n=!0;break}}}n&&this._loadNext()}else{this.close();for(var a in this._loadItemsById)this._disposeItem(this._loadItemsById[a]);this.init(this.useXHR)}},t.reset=function(){this.close();for(var e in this._loadItemsById)this._disposeItem(this._loadItemsById[e]);for(var t=[],n=0,i=this._loadQueueBackup.length;i>n;n++)t.push(this._loadQueueBackup[n].getItem());this.loadManifest(t,!1)},n.isBinary=function(e){switch(e){case createjs.LoadQueue.IMAGE:case createjs.LoadQueue.BINARY:return!0;default:return!1}},n.isText=function(e){switch(e){case createjs.LoadQueue.TEXT:case createjs.LoadQueue.JSON:case createjs.LoadQueue.MANIFEST:case createjs.LoadQueue.XML:case createjs.LoadQueue.HTML:case createjs.LoadQueue.CSS:case createjs.LoadQueue.SVG:case createjs.LoadQueue.JAVASCRIPT:return!0;default:return!1}},t.installPlugin=function(e){if(null!=e&&null!=e.getPreloadHandlers){var t=e.getPreloadHandlers();if(t.scope=e,null!=t.types)for(var n=0,i=t.types.length;i>n;n++)this._typeCallbacks[t.types[n]]=t;if(null!=t.extensions)for(n=0,i=t.extensions.length;i>n;n++)this._extensionCallbacks[t.extensions[n]]=t}},t.setMaxConnections=function(e){this._maxConnections=e,!this._paused&&this._loadQueue.length>0&&this._loadNext()},t.loadFile=function(e,t,n){if(null==e){var i=new createjs.Event("error");return i.text="PRELOAD_NO_FILE",void this._sendError(i)}this._addItem(e,null,n),this.setPaused(t!==!1?!1:!0)},t.loadManifest=function(e,t,i){var r=null,s=null;if(e instanceof Array){if(0==e.length){var o=new createjs.Event("error");return o.text="PRELOAD_MANIFEST_EMPTY",void this._sendError(o)}r=e}else if("string"==typeof e)r=[{src:e,type:n.MANIFEST}];else{if("object"!=typeof e){var o=new createjs.Event("error");return o.text="PRELOAD_MANIFEST_NULL",void this._sendError(o)}if(void 0!==e.src){if(null==e.type)e.type=n.MANIFEST;else if(e.type!=n.MANIFEST){var o=new createjs.Event("error");o.text="PRELOAD_MANIFEST_ERROR",this._sendError(o)}r=[e]}else void 0!==e.manifest&&(r=e.manifest,s=e.path)}for(var a=0,u=r.length;u>a;a++)this._addItem(r[a],s,i);this.setPaused(t!==!1?!1:!0)},t.load=function(){this.setPaused(!1)},t.getItem=function(e){return this._loadItemsById[e]||this._loadItemsBySrc[e]},t.getResult=function(e,t){var n=this._loadItemsById[e]||this._loadItemsBySrc[e];if(null==n)return null;var i=n.id;return t&&this._loadedRawResults[i]?this._loadedRawResults[i]:this._loadedResults[i]},t.setPaused=function(e){this._paused=e,this._paused||this._loadNext()},t.close=function(){for(;this._currentLoads.length;)this._currentLoads.pop().cancel();this._scriptOrder.length=0,this._loadedScripts.length=0,this.loadStartWasDispatched=!1},t._addItem=function(e,t,n){var i=this._createLoadItem(e,t,n);if(null!=i){var r=this._createLoader(i);null!=r&&(this._loadQueue.push(r),this._loadQueueBackup.push(r),this._numItems++,this._updateProgress(),this.maintainScriptOrder&&i.type==createjs.LoadQueue.JAVASCRIPT&&r instanceof createjs.XHRLoader&&(this._scriptOrder.push(i),this._loadedScripts.push(null)))}},t._createLoadItem=function(e,t,n){var i=null;switch(typeof e){case"string":i={src:e};break;case"object":i=window.HTMLAudioElement&&e instanceof window.HTMLAudioElement?{tag:e,src:i.tag.src,type:createjs.LoadQueue.SOUND}:e;break;default:return null}var r=this._parseURI(i.src);null!=r&&(i.ext=r[6]),null==i.type&&(i.type=this._getTypeByExtension(i.ext));var s="",o=n||this._basePath,a=i.src;if(r&&null==r[1]&&null==r[3])if(t){s=t;var u=this._parsePath(t);a=t+a,null!=o&&u&&null==u[1]&&null==u[2]&&(s=o+s)}else null!=o&&(s=o);if(i.src=s+i.src,i.path=s,(i.type==createjs.LoadQueue.JSON||i.type==createjs.LoadQueue.MANIFEST)&&(i._loadAsJSONP=null!=i.callback),i.type==createjs.LoadQueue.JSONP&&null==i.callback)throw new Error("callback is required for loading JSONP requests.");(void 0===i.tag||null===i.tag)&&(i.tag=this._createTag(i)),(void 0===i.id||null===i.id||""===i.id)&&(i.id=a);var l=this._typeCallbacks[i.type]||this._extensionCallbacks[i.ext];if(l){var c=l.callback.call(l.scope,i.src,i.type,i.id,i.data,s,this);if(c===!1)return null;c===!0||(null!=c.src&&(i.src=c.src),null!=c.id&&(i.id=c.id),null!=c.tag&&(i.tag=c.tag),null!=c.completeHandler&&(i.completeHandler=c.completeHandler),c.type&&(i.type=c.type),r=this._parseURI(i.src),null!=r&&null!=r[6]&&(i.ext=r[6].toLowerCase()))}return this._loadItemsById[i.id]=i,this._loadItemsBySrc[i.src]=i,i},t._createLoader=function(e){var t=this.useXHR;switch(e.type){case createjs.LoadQueue.JSON:case createjs.LoadQueue.MANIFEST:t=!e._loadAsJSONP;break;case createjs.LoadQueue.XML:case createjs.LoadQueue.TEXT:t=!0;break;case createjs.LoadQueue.SOUND:case createjs.LoadQueue.JSONP:t=!1;break;case null:return null}return t?new createjs.XHRLoader(e,this._crossOrigin):new createjs.TagLoader(e)},t._loadNext=function(){if(!this._paused){this._loadStartWasDispatched||(this._sendLoadStart(),this._loadStartWasDispatched=!0),this._numItems==this._numItemsLoaded?(this.loaded=!0,this._sendComplete(),this.next&&this.next.load&&this.next.load()):this.loaded=!1;for(var e=0;e<this._loadQueue.length&&!(this._currentLoads.length>=this._maxConnections);e++){var t=this._loadQueue[e];if(this.maintainScriptOrder&&t instanceof createjs.TagLoader&&t.getItem().type==createjs.LoadQueue.JAVASCRIPT){if(this._currentlyLoadingScript)continue;this._currentlyLoadingScript=!0}this._loadQueue.splice(e,1),e--,this._loadItem(t)}}},t._loadItem=function(e){e.on("progress",this._handleProgress,this),e.on("complete",this._handleFileComplete,this),e.on("error",this._handleFileError,this),this._currentLoads.push(e),this._sendFileStart(e.getItem()),e.load()},t._handleFileError=function(e){var t=e.target;this._numItemsLoaded++,this._updateProgress();var n=new createjs.Event("error");n.text="FILE_LOAD_ERROR",n.item=t.getItem(),this._sendError(n),this.stopOnError||(this._removeLoadItem(t),this._loadNext())},t._handleFileComplete=function(e){var t=e.target,n=t.getItem();if(this._loadedResults[n.id]=t.getResult(),t instanceof createjs.XHRLoader&&(this._loadedRawResults[n.id]=t.getResult(!0)),this._removeLoadItem(t),this.maintainScriptOrder&&n.type==createjs.LoadQueue.JAVASCRIPT){if(!(t instanceof createjs.TagLoader))return this._loadedScripts[createjs.indexOf(this._scriptOrder,n)]=n,void this._checkScriptLoadOrder(t);this._currentlyLoadingScript=!1}if(delete n._loadAsJSONP,n.type==createjs.LoadQueue.MANIFEST){var i=t.getResult();null!=i&&void 0!==i.manifest&&this.loadManifest(i,!0)}this._processFinishedLoad(n,t)},t._processFinishedLoad=function(e,t){this._numItemsLoaded++,this._updateProgress(),this._sendFileComplete(e,t),this._loadNext()},t._checkScriptLoadOrder=function(){for(var e=this._loadedScripts.length,t=0;e>t;t++){var n=this._loadedScripts[t];if(null===n)break;if(n!==!0){var i=this._loadedResults[n.id];(document.body||document.getElementsByTagName("body")[0]).appendChild(i),this._processFinishedLoad(n),this._loadedScripts[t]=!0}}},t._removeLoadItem=function(e){for(var t=this._currentLoads.length,n=0;t>n;n++)if(this._currentLoads[n]==e){this._currentLoads.splice(n,1);break}},t._handleProgress=function(e){var t=e.target;this._sendFileProgress(t.getItem(),t.progress),this._updateProgress()},t._updateProgress=function(){var e=this._numItemsLoaded/this._numItems,t=this._numItems-this._numItemsLoaded;if(t>0){for(var n=0,i=0,r=this._currentLoads.length;r>i;i++)n+=this._currentLoads[i].progress;e+=n/t*(t/this._numItems)}this._sendProgress(e)},t._disposeItem=function(e){delete this._loadedResults[e.id],delete this._loadedRawResults[e.id],delete this._loadItemsById[e.id],delete this._loadItemsBySrc[e.src]},t._createTag=function(e){var t=null;switch(e.type){case createjs.LoadQueue.IMAGE:return t=document.createElement("img"),""==this._crossOrigin||this._isLocal(e)||(t.crossOrigin=this._crossOrigin),t;case createjs.LoadQueue.SOUND:return t=document.createElement("audio"),t.autoplay=!1,t;case createjs.LoadQueue.JSON:case createjs.LoadQueue.JSONP:case createjs.LoadQueue.JAVASCRIPT:case createjs.LoadQueue.MANIFEST:return t=document.createElement("script"),t.type="text/javascript",t;case createjs.LoadQueue.CSS:return t=document.createElement(this.useXHR?"style":"link"),t.rel="stylesheet",t.type="text/css",t;case createjs.LoadQueue.SVG:return this.useXHR?t=document.createElement("svg"):(t=document.createElement("object"),t.type="image/svg+xml"),t
}return null},t._getTypeByExtension=function(e){if(null==e)return createjs.LoadQueue.TEXT;switch(e.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.LoadQueue.IMAGE;case"ogg":case"mp3":case"wav":return createjs.LoadQueue.SOUND;case"json":return createjs.LoadQueue.JSON;case"xml":return createjs.LoadQueue.XML;case"css":return createjs.LoadQueue.CSS;case"js":return createjs.LoadQueue.JAVASCRIPT;case"svg":return createjs.LoadQueue.SVG;default:return createjs.LoadQueue.TEXT}},t._sendFileProgress=function(e,t){if(this._isCanceled())return void this._cleanUp();if(this.hasEventListener("fileprogress")){var n=new createjs.Event("fileprogress");n.progress=t,n.loaded=t,n.total=1,n.item=e,this.dispatchEvent(n)}},t._sendFileComplete=function(e,t){if(!this._isCanceled()){var n=new createjs.Event("fileload");n.loader=t,n.item=e,n.result=this._loadedResults[e.id],n.rawResult=this._loadedRawResults[e.id],e.completeHandler&&e.completeHandler(n),this.hasEventListener("fileload")&&this.dispatchEvent(n)}},t._sendFileStart=function(e){var t=new createjs.Event("filestart");t.item=e,this.hasEventListener("filestart")&&this.dispatchEvent(t)},t.toString=function(){return"[PreloadJS LoadQueue]"},createjs.LoadQueue=e;var i=function(){};i.init=function(){var e=navigator.userAgent;i.isFirefox=e.indexOf("Firefox")>-1,i.isOpera=null!=window.opera,i.isChrome=e.indexOf("Chrome")>-1,i.isIOS=e.indexOf("iPod")>-1||e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1},i.init(),createjs.LoadQueue.BrowserDetect=i}(),this.createjs=this.createjs||{},function(){"use strict";var e=function(e){this.init(e)},t=e.prototype=new createjs.AbstractLoader;t._loadTimeout=null,t._tagCompleteProxy=null,t._isAudio=!1,t._tag=null,t._jsonResult=null,t.init=function(e){this._item=e,this._tag=e.tag,this._isAudio=window.HTMLAudioElement&&e.tag instanceof window.HTMLAudioElement,this._tagCompleteProxy=createjs.proxy(this._handleLoad,this)},t.getResult=function(){return this._item.type==createjs.LoadQueue.JSONP||this._item.type==createjs.LoadQueue.MANIFEST?this._jsonResult:this._tag},t.cancel=function(){this.canceled=!0,this._clean()},t.load=function(){var e=this._item,t=this._tag;clearTimeout(this._loadTimeout);var n=createjs.LoadQueue.LOAD_TIMEOUT;0==n&&(n=createjs.LoadQueue.loadTimeout),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),n),this._isAudio&&(t.src=null,t.preload="auto"),t.onerror=createjs.proxy(this._handleError,this),this._isAudio?(t.onstalled=createjs.proxy(this._handleStalled,this),t.addEventListener("canplaythrough",this._tagCompleteProxy,!1)):(t.onload=createjs.proxy(this._handleLoad,this),t.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this));var i=this.buildPath(e.src,e.values);switch(e.type){case createjs.LoadQueue.CSS:t.href=i;break;case createjs.LoadQueue.SVG:t.data=i;break;default:t.src=i}if(e.type==createjs.LoadQueue.JSONP||e.type==createjs.LoadQueue.JSON||e.type==createjs.LoadQueue.MANIFEST){if(null==e.callback)throw new Error("callback is required for loading JSONP requests.");if(null!=window[e.callback])throw new Error('JSONP callback "'+e.callback+'" already exists on window. You need to specify a different callback. Or re-name the current one.');window[e.callback]=createjs.proxy(this._handleJSONPLoad,this)}(e.type==createjs.LoadQueue.SVG||e.type==createjs.LoadQueue.JSONP||e.type==createjs.LoadQueue.JSON||e.type==createjs.LoadQueue.MANIFEST||e.type==createjs.LoadQueue.JAVASCRIPT||e.type==createjs.LoadQueue.CSS)&&(this._startTagVisibility=t.style.visibility,t.style.visibility="hidden",(document.body||document.getElementsByTagName("body")[0]).appendChild(t)),null!=t.load&&t.load()},t._handleJSONPLoad=function(e){this._jsonResult=e},t._handleTimeout=function(){this._clean();var e=new createjs.Event("error");e.text="PRELOAD_TIMEOUT",this._sendError(e)},t._handleStalled=function(){},t._handleError=function(){this._clean();var e=new createjs.Event("error");this._sendError(e)},t._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var e=this.getItem().tag;("loaded"==e.readyState||"complete"==e.readyState)&&this._handleLoad()},t._handleLoad=function(){if(!this._isCanceled()){var e=this.getItem(),t=e.tag;if(!(this.loaded||this._isAudio&&4!==t.readyState)){switch(this.loaded=!0,e.type){case createjs.LoadQueue.SVG:case createjs.LoadQueue.JSON:case createjs.LoadQueue.JSONP:case createjs.LoadQueue.MANIFEST:case createjs.LoadQueue.CSS:t.style.visibility=this._startTagVisibility,(document.body||document.getElementsByTagName("body")[0]).removeChild(t)}this._clean(),this._sendComplete()}}},t._clean=function(){clearTimeout(this._loadTimeout);var e=this.getItem(),t=e.tag;null!=t&&(t.onload=null,t.removeEventListener&&t.removeEventListener("canplaythrough",this._tagCompleteProxy,!1),t.onstalled=null,t.onprogress=null,t.onerror=null,null!=t.parentNode&&e.type==createjs.LoadQueue.SVG&&e.type==createjs.LoadQueue.JSON&&e.type==createjs.LoadQueue.MANIFEST&&e.type==createjs.LoadQueue.CSS&&e.type==createjs.LoadQueue.JSONP&&t.parentNode.removeChild(t));var e=this.getItem();(e.type==createjs.LoadQueue.JSONP||e.type==createjs.LoadQueue.MANIFEST)&&(window[e.callback]=null)},t.toString=function(){return"[PreloadJS TagLoader]"},createjs.TagLoader=e}(),this.createjs=this.createjs||{},function(){"use strict";var e=function(e,t){this.init(e,t)},t=e.prototype=new createjs.AbstractLoader;t._request=null,t._loadTimeout=null,t._xhrLevel=1,t._response=null,t._rawResponse=null,t._crossOrigin="",t.init=function(e,t){this._item=e,this._crossOrigin=t,!this._createXHR(e)},t.getResult=function(e){return e&&this._rawResponse?this._rawResponse:this._response},t.cancel=function(){this.canceled=!0,this._clean(),this._request.abort()},t.load=function(){if(null==this._request)return void this._handleError();if(this._request.onloadstart=createjs.proxy(this._handleLoadStart,this),this._request.onprogress=createjs.proxy(this._handleProgress,this),this._request.onabort=createjs.proxy(this._handleAbort,this),this._request.onerror=createjs.proxy(this._handleError,this),this._request.ontimeout=createjs.proxy(this._handleTimeout,this),1==this._xhrLevel){var e=createjs.LoadQueue.LOAD_TIMEOUT;if(0==e)e=createjs.LoadQueue.loadTimeout;else try{console.warn("LoadQueue.LOAD_TIMEOUT has been deprecated in favor of LoadQueue.loadTimeout")}catch(t){}this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),e)}this._request.onload=createjs.proxy(this._handleLoad,this),this._request.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this);try{this._item.values&&this._item.method!=createjs.LoadQueue.GET?this._item.method==createjs.LoadQueue.POST&&this._request.send(this._formatQueryString(this._item.values)):this._request.send()}catch(n){var i=new createjs.Event("error");i.error=n,this._sendError(i)}},t.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null},t.getResponseHeader=function(e){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(e):null},t._handleProgress=function(e){if(e&&!(e.loaded>0&&0==e.total)){var t=new createjs.Event("progress");t.loaded=e.loaded,t.total=e.total,this._sendProgress(t)}},t._handleLoadStart=function(){clearTimeout(this._loadTimeout),this._sendLoadStart()},t._handleAbort=function(){this._clean();var e=new createjs.Event("error");e.text="XHR_ABORTED",this._sendError(e)},t._handleError=function(){this._clean();var e=new createjs.Event("error");this._sendError(e)},t._handleReadyStateChange=function(){4==this._request.readyState&&this._handleLoad()},t._handleLoad=function(){if(!this.loaded){if(this.loaded=!0,!this._checkError())return void this._handleError();this._response=this._getResponse(),this._clean();var e=this._generateTag();e&&this._sendComplete()}},t._handleTimeout=function(e){this._clean();var t=new createjs.Event("error");t.text="PRELOAD_TIMEOUT",this._sendError(e)},t._checkError=function(){var e=parseInt(this._request.status);switch(e){case 404:case 0:return!1}return!0},t._getResponse=function(){if(null!=this._response)return this._response;if(null!=this._request.response)return this._request.response;try{if(null!=this._request.responseText)return this._request.responseText}catch(e){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(e){}return null},t._createXHR=function(e){var t=this._isCrossDomain(e),n=null;if(t&&window.XDomainRequest)n=new XDomainRequest;else if(window.XMLHttpRequest)n=new XMLHttpRequest;else try{n=new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(i){try{n=new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(i){try{n=new ActiveXObject("Msxml2.XMLHTTP")}catch(i){return!1}}}createjs.LoadQueue.isText(e.type)&&n.overrideMimeType&&n.overrideMimeType("text/plain; charset=utf-8"),this._xhrLevel="string"==typeof n.responseType?2:1;var r=null;return r=e.method==createjs.LoadQueue.GET?this.buildPath(e.src,e.values):e.src,n.open(e.method||createjs.LoadQueue.GET,r,!0),t&&n instanceof XMLHttpRequest&&1==this._xhrLevel&&n.setRequestHeader("Origin",location.origin),e.values&&e.method==createjs.LoadQueue.POST&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),createjs.LoadQueue.isBinary(e.type)&&(n.responseType="arraybuffer"),this._request=n,!0},t._clean=function(){clearTimeout(this._loadTimeout);var e=this._request;e.onloadstart=null,e.onprogress=null,e.onabort=null,e.onerror=null,e.onload=null,e.ontimeout=null,e.onloadend=null,e.onreadystatechange=null},t._generateTag=function(){var e=this._item.type,t=this._item.tag;switch(e){case createjs.LoadQueue.IMAGE:return t.onload=createjs.proxy(this._handleTagReady,this),""!=this._crossOrigin&&(t.crossOrigin="Anonymous"),t.src=this.buildPath(this._item.src,this._item.values),this._rawResponse=this._response,this._response=t,!1;case createjs.LoadQueue.JAVASCRIPT:return t=document.createElement("script"),t.text=this._response,this._rawResponse=this._response,this._response=t,!0;case createjs.LoadQueue.CSS:var n=document.getElementsByTagName("head")[0];if(n.appendChild(t),t.styleSheet)t.styleSheet.cssText=this._response;else{var i=document.createTextNode(this._response);t.appendChild(i)}return this._rawResponse=this._response,this._response=t,!0;case createjs.LoadQueue.XML:var r=this._parseXML(this._response,"text/xml");return this._rawResponse=this._response,this._response=r,!0;case createjs.LoadQueue.SVG:var r=this._parseXML(this._response,"image/svg+xml");return this._rawResponse=this._response,null!=r.documentElement?(t.appendChild(r.documentElement),this._response=t):this._response=r,!0;case createjs.LoadQueue.JSON:case createjs.LoadQueue.MANIFEST:var s={};try{s=JSON.parse(this._response)}catch(o){s=o}return this._rawResponse=this._response,this._response=s,!0}return!0},t._parseXML=function(e,t){var n=null;try{if(window.DOMParser){var i=new DOMParser;n=i.parseFromString(e,t)}else n=new ActiveXObject("Microsoft.XMLDOM"),n.async=!1,n.loadXML(e)}catch(r){}return n},t._handleTagReady=function(){this._sendComplete()},t.toString=function(){return"[PreloadJS XHRLoader]"},createjs.XHRLoader=e}(),"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(e){return 10>e?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,i,r,s,o,a=gap,u=t[e];switch(u&&"object"==typeof u&&"function"==typeof u.toJSON&&(u=u.toJSON(e)),"function"==typeof rep&&(u=rep.call(t,e,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(u)){for(s=u.length,n=0;s>n;n+=1)o[n]=str(n,u)||"null";return r=0===o.length?"[]":gap?"[\n"+gap+o.join(",\n"+gap)+"\n"+a+"]":"["+o.join(",")+"]",gap=a,r}if(rep&&"object"==typeof rep)for(s=rep.length,n=0;s>n;n+=1)"string"==typeof rep[n]&&(i=rep[n],r=str(i,u),r&&o.push(quote(i)+(gap?": ":":")+r));else for(i in u)Object.prototype.hasOwnProperty.call(u,i)&&(r=str(i,u),r&&o.push(quote(i)+(gap?": ":":")+r));return r=0===o.length?"{}":gap?"{\n"+gap+o.join(",\n"+gap)+"\n"+a+"}":"{"+o.join(",")+"}",gap=a,r}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,t,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;n>i;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,i,r=e[t];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(i=walk(r,n),void 0!==i?r[n]=i:delete r[n]);return reviver.call(e,t,r)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),this.createjs=this.createjs||{},function(){var e=createjs.SoundJS=createjs.SoundJS||{};e.version="0.5.2",e.buildDate="Thu, 12 Dec 2013 23:33:37 GMT"}(),this.createjs=this.createjs||{},function(){"use strict";var e=function(){},t=e.prototype;e.initialize=function(e){e.addEventListener=t.addEventListener,e.on=t.on,e.removeEventListener=e.off=t.removeEventListener,e.removeAllEventListeners=t.removeAllEventListeners,e.hasEventListener=t.hasEventListener,e.dispatchEvent=t.dispatchEvent,e._dispatchEvent=t._dispatchEvent,e.willTrigger=t.willTrigger},t._listeners=null,t._captureListeners=null,t.initialize=function(){},t.addEventListener=function(e,t,n){var i;i=n?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var r=i[e];return r&&this.removeEventListener(e,t,n),r=i[e],r?r.push(t):i[e]=[t],t},t.on=function(e,t,n,i,r,s){return t.handleEvent&&(n=n||t,t=t.handleEvent),n=n||this,this.addEventListener(e,function(e){t.call(n,e,r),i&&e.remove()},s)},t.removeEventListener=function(e,t,n){var i=n?this._captureListeners:this._listeners;if(i){var r=i[e];if(r)for(var s=0,o=r.length;o>s;s++)if(r[s]==t){1==o?delete i[e]:r.splice(s,1);break}}},t.off=t.removeEventListener,t.removeAllEventListeners=function(e){e?(this._listeners&&delete this._listeners[e],this._captureListeners&&delete this._captureListeners[e]):this._listeners=this._captureListeners=null},t.dispatchEvent=function(e,t){if("string"==typeof e){var n=this._listeners;if(!n||!n[e])return!1;e=new createjs.Event(e)}if(e.target=t||this,e.bubbles&&this.parent){for(var i=this,r=[i];i.parent;)r.push(i=i.parent);var s,o=r.length;for(s=o-1;s>=0&&!e.propagationStopped;s--)r[s]._dispatchEvent(e,1+(0==s));for(s=1;o>s&&!e.propagationStopped;s++)r[s]._dispatchEvent(e,3)}else this._dispatchEvent(e,2);return e.defaultPrevented},t.hasEventListener=function(e){var t=this._listeners,n=this._captureListeners;return!!(t&&t[e]||n&&n[e])},t.willTrigger=function(e){for(var t=this;t;){if(t.hasEventListener(e))return!0;t=t.parent}return!1},t.toString=function(){return"[EventDispatcher]"},t._dispatchEvent=function(e,t){var n,i=1==t?this._captureListeners:this._listeners;if(e&&i){var r=i[e.type];if(!r||!(n=r.length))return;e.currentTarget=this,e.eventPhase=t,e.removed=!1,r=r.slice();for(var s=0;n>s&&!e.immediatePropagationStopped;s++){var o=r[s];o.handleEvent?o.handleEvent(e):o(e),e.removed&&(this.off(e.type,o,1==t),e.removed=!1)}}},createjs.EventDispatcher=e}(),this.createjs=this.createjs||{},function(){"use strict";var e=function(e,t,n){this.initialize(e,t,n)},t=e.prototype;t.type=null,t.target=null,t.currentTarget=null,t.eventPhase=0,t.bubbles=!1,t.cancelable=!1,t.timeStamp=0,t.defaultPrevented=!1,t.propagationStopped=!1,t.immediatePropagationStopped=!1,t.removed=!1,t.initialize=function(e,t,n){this.type=e,this.bubbles=t,this.cancelable=n,this.timeStamp=(new Date).getTime()},t.preventDefault=function(){this.defaultPrevented=!0},t.stopPropagation=function(){this.propagationStopped=!0},t.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},t.remove=function(){this.removed=!0},t.clone=function(){return new e(this.type,this.bubbles,this.cancelable)},t.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=e}(),this.createjs=this.createjs||{},function(){"use strict";createjs.indexOf=function(e,t){for(var n=0,i=e.length;i>n;n++)if(t===e[n])return n;return-1}}(),this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){return e.apply(t,Array.prototype.slice.call(arguments,0).concat(n))}}}(),this.createjs=this.createjs||{},function(){"use strict";function e(){throw"Sound cannot be instantiated"}function t(e,t){this.init(e,t)}function n(){this.isDefault=!0,this.addEventListener=this.removeEventListener=this.removeAllEventListeners=this.dispatchEvent=this.hasEventListener=this._listeners=this._interrupt=this._playFailed=this.pause=this.resume=this.play=this._beginPlaying=this._cleanUp=this.stop=this.setMasterVolume=this.setVolume=this.mute=this.setMute=this.getMute=this.setPan=this.getPosition=this.setPosition=this.playFailed=function(){return!1},this.getVolume=this.getPan=this.getDuration=function(){return 0},this.playState=e.PLAY_FAILED,this.toString=function(){return"[Sound Default Sound Instance]"}}function i(){}var r=e;r.DELIMITER="|",r.INTERRUPT_ANY="any",r.INTERRUPT_EARLY="early",r.INTERRUPT_LATE="late",r.INTERRUPT_NONE="none",r.PLAY_INITED="playInited",r.PLAY_SUCCEEDED="playSucceeded",r.PLAY_INTERRUPTED="playInterrupted",r.PLAY_FINISHED="playFinished",r.PLAY_FAILED="playFailed",r.SUPPORTED_EXTENSIONS=["mp3","ogg","mpeg","wav","m4a","mp4","aiff","wma","mid"],r.EXTENSION_MAP={m4a:"mp4"},r.FILE_PATTERN=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([/.]*?(?:[^?]+)?\/)?((?:[^/?]+)\.(\w+))(?:\?(\S+)?)?$/,r.defaultInterruptBehavior=r.INTERRUPT_NONE,r.alternateExtensions=[],r._lastID=0,r.activePlugin=null,r._pluginsRegistered=!1,r._masterVolume=1,r._masterMute=!1,r._instances=[],r._idHash={},r._preloadHash={},r._defaultSoundInstance=null,r.addEventListener=null,r.removeEventListener=null,r.removeAllEventListeners=null,r.dispatchEvent=null,r.hasEventListener=null,r._listeners=null,createjs.EventDispatcher.initialize(r),r._sendFileLoadEvent=function(e){if(r._preloadHash[e])for(var t=0,n=r._preloadHash[e].length;n>t;t++){var i=r._preloadHash[e][t];if(r._preloadHash[e][t]=!0,r.hasEventListener("fileload")){var s=new createjs.Event("fileload");s.src=i.src,s.id=i.id,s.data=i.data,r.dispatchEvent(s)}}},r.getPreloadHandlers=function(){return{callback:createjs.proxy(r.initLoad,r),types:["sound"],extensions:r.SUPPORTED_EXTENSIONS}},r.registerPlugin=function(e){try{console.log("createjs.Sound.registerPlugin has been deprecated. Please use registerPlugins.")}catch(t){}return r._registerPlugin(e)},r._registerPlugin=function(e){return r._pluginsRegistered=!0,null==e?!1:e.isSupported()?(r.activePlugin=new e,!0):!1},r.registerPlugins=function(e){for(var t=0,n=e.length;n>t;t++){var i=e[t];if(r._registerPlugin(i))return!0}return!1},r.initializeDefaultPlugins=function(){return null!=r.activePlugin?!0:r._pluginsRegistered?!1:r.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin])?!0:!1},r.isReady=function(){return null!=r.activePlugin},r.getCapabilities=function(){return null==r.activePlugin?null:r.activePlugin._capabilities},r.getCapability=function(e){return null==r.activePlugin?null:r.activePlugin._capabilities[e]},r.initLoad=function(e,t,n,i,s){e=e.replace(s,"");var o=r.registerSound(e,n,i,!1,s);return null==o?!1:o},r.registerSound=function(e,n,i,s,o){if(!r.initializeDefaultPlugins())return!1;if(e instanceof Object&&(o=n,n=e.id,i=e.data,e=e.src),r.alternateExtensions.length)var a=r._parsePath2(e,"sound",n,i);else var a=r._parsePath(e,"sound",n,i);if(null==a)return!1;null!=o&&(e=o+e,a.src=o+a.src),null!=n&&(r._idHash[n]=a.src);var u=null;null!=i&&(isNaN(i.channels)?isNaN(i)||(u=parseInt(i)):u=parseInt(i.channels));var l=r.activePlugin.register(a.src,u);if(null!=l&&(null!=l.numChannels&&(u=l.numChannels),t.create(a.src,u),null!=i&&isNaN(i)?i.channels=a.data.channels=u||t.maxPerChannel():i=a.data=u||t.maxPerChannel(),null!=l.tag?a.tag=l.tag:l.src&&(a.src=l.src),null!=l.completeHandler&&(a.completeHandler=l.completeHandler),l.type&&(a.type=l.type)),0!=s)if(r._preloadHash[a.src]||(r._preloadHash[a.src]=[]),r._preloadHash[a.src].push({src:e,id:n,data:i}),1==r._preloadHash[a.src].length)r.activePlugin.preload(a.src,l);else if(1==r._preloadHash[a.src][0])return!0;return a},r.registerManifest=function(e,t){for(var n=[],i=0,r=e.length;r>i;i++)n[i]=createjs.Sound.registerSound(e[i].src,e[i].id,e[i].data,e[i].preload,t);return n},r.removeSound=function(e,n){if(null==r.activePlugin)return!1;if(e instanceof Object&&(e=e.src),e=r._getSrcById(e),r.alternateExtensions.length)var i=r._parsePath2(e);else var i=r._parsePath(e);if(null==i)return!1;null!=n&&(i.src=n+i.src),e=i.src;for(var s in r._idHash)r._idHash[s]==e&&delete r._idHash[s];return t.removeSrc(e),delete r._preloadHash[e],r.activePlugin.removeSound(e),!0},r.removeManifest=function(e,t){for(var n=[],i=0,r=e.length;r>i;i++)n[i]=createjs.Sound.removeSound(e[i].src,t);return n},r.removeAllSounds=function(){r._idHash={},r._preloadHash={},t.removeAll(),r.activePlugin.removeAllSounds()},r.loadComplete=function(e){if(r.alternateExtensions.length)var t=r._parsePath2(e,"sound");else var t=r._parsePath(e,"sound");return e=r._getSrcById(t?t.src:e),1==r._preloadHash[e][0]},r._parsePath=function(e,t,n,i){"string"!=typeof e&&(e=e.toString());var s=e.split(r.DELIMITER);if(s.length>1)try{console.log('createjs.Sound.DELIMITER "|" loading approach has been deprecated. Please use the new alternateExtensions property.')}catch(o){}for(var a={type:t||"sound",id:n,data:i},u=r.getCapabilities(),l=0,c=s.length;c>l;l++){var h=s[l],d=h.match(r.FILE_PATTERN);if(null==d)return!1;var p=d[4],f=d[5];if(u[f]&&createjs.indexOf(r.SUPPORTED_EXTENSIONS,f)>-1)return a.name=p,a.src=h,a.extension=f,a}return null},r._parsePath2=function(e,t,n,i){"string"!=typeof e&&(e=e.toString());var s=e.match(r.FILE_PATTERN);if(null==s)return!1;for(var o=s[4],a=s[5],u=r.getCapabilities(),l=0;!u[a];)if(a=r.alternateExtensions[l++],l>r.alternateExtensions.length)return null;e=e.replace("."+s[5],"."+a);var c={type:t||"sound",id:n,data:i};return c.name=o,c.src=e,c.extension=a,c},r.play=function(e,t,n,i,s,o,a){var u=r.createInstance(e),l=r._playInstance(u,t,n,i,s,o,a);return l||u.playFailed(),u},r.createInstance=function(n){if(!r.initializeDefaultPlugins())return r._defaultSoundInstance;if(n=r._getSrcById(n),r.alternateExtensions.length)var i=r._parsePath2(n,"sound");else var i=r._parsePath(n,"sound");var s=null;return null!=i&&null!=i.src?(t.create(i.src),s=r.activePlugin.create(i.src)):s=e._defaultSoundInstance,s.uniqueId=r._lastID++,s},r.setVolume=function(e){if(null==Number(e))return!1;if(e=Math.max(0,Math.min(1,e)),r._masterVolume=e,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(e))for(var t=this._instances,n=0,i=t.length;i>n;n++)t[n].setMasterVolume(e)},r.getVolume=function(){return r._masterVolume},r.setMute=function(e){if(null==e||void 0==e)return!1;if(this._masterMute=e,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(e))for(var t=this._instances,n=0,i=t.length;i>n;n++)t[n].setMasterMute(e);return!0},r.getMute=function(){return this._masterMute},r.stop=function(){for(var e=this._instances,t=e.length;t--;)e[t].stop()},r._playInstance=function(e,t,n,i,s,o,a){if(t instanceof Object&&(n=t.delay,i=t.offset,s=t.loop,o=t.volume,a=t.pan,t=t.interrupt),t=t||r.defaultInterruptBehavior,null==n&&(n=0),null==i&&(i=e.getPosition()),null==s&&(s=0),null==o&&(o=e.volume),null==a&&(a=e.pan),0==n){var u=r._beginPlaying(e,t,i,s,o,a);if(!u)return!1}else{var l=setTimeout(function(){r._beginPlaying(e,t,i,s,o,a)},n);e._delayTimeoutId=l}return this._instances.push(e),!0},r._beginPlaying=function(e,n,i,r,s,o){if(!t.add(e,n))return!1;var a=e._beginPlaying(i,r,s,o);if(!a){var u=createjs.indexOf(this._instances,e);return u>-1&&this._instances.splice(u,1),!1}return!0},r._getSrcById=function(e){return null==r._idHash||null==r._idHash[e]?e:r._idHash[e]},r._playFinished=function(e){t.remove(e);var n=createjs.indexOf(this._instances,e);n>-1&&this._instances.splice(n,1)},createjs.Sound=e,t.channels={},t.create=function(e,n){var i=t.get(e);return null==i?(t.channels[e]=new t(e,n),!0):!1},t.removeSrc=function(e){var n=t.get(e);return null==n?!1:(n.removeAll(),delete t.channels[e],!0)},t.removeAll=function(){for(var e in t.channels)t.channels[e].removeAll();t.channels={}},t.add=function(e,n){var i=t.get(e.src);return null==i?!1:i.add(e,n)},t.remove=function(e){var n=t.get(e.src);return null==n?!1:(n.remove(e),!0)},t.maxPerChannel=function(){return s.maxDefault},t.get=function(e){return t.channels[e]};var s=t.prototype;s.src=null,s.max=null,s.maxDefault=100,s.length=0,s.init=function(e,t){this.src=e,this.max=t||this.maxDefault,-1==this.max&&(this.max=this.maxDefault),this._instances=[]},s.get=function(e){return this._instances[e]},s.add=function(e,t){return this.getSlot(t,e)?(this._instances.push(e),this.length++,!0):!1},s.remove=function(e){var t=createjs.indexOf(this._instances,e);return-1==t?!1:(this._instances.splice(t,1),this.length--,!0)},s.removeAll=function(){for(var e=this.length-1;e>=0;e--)this._instances[e].stop()},s.getSlot=function(t){for(var n,i,r=0,s=this.max;s>r;r++){if(n=this.get(r),null==n)return!0;(t!=e.INTERRUPT_NONE||n.playState==e.PLAY_FINISHED)&&(0!=r?n.playState==e.PLAY_FINISHED||n.playState==e.PLAY_INTERRUPTED||n.playState==e.PLAY_FAILED?i=n:(t==e.INTERRUPT_EARLY&&n.getPosition()<i.getPosition()||t==e.INTERRUPT_LATE&&n.getPosition()>i.getPosition())&&(i=n):i=n)}return null!=i?(i._interrupt(),this.remove(i),!0):!1},s.toString=function(){return"[Sound SoundChannel]"},e._defaultSoundInstance=new n,i.init=function(){var e=window.navigator.userAgent;i.isFirefox=e.indexOf("Firefox")>-1,i.isOpera=null!=window.opera,i.isChrome=e.indexOf("Chrome")>-1,i.isIOS=e.indexOf("iPod")>-1||e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1,i.isAndroid=e.indexOf("Android")>-1,i.isBlackberry=e.indexOf("Blackberry")>-1},i.init(),createjs.Sound.BrowserDetect=i}(),this.createjs=this.createjs||{},function(){"use strict";function e(){this._init()}var t=e;t._capabilities=null,t.isSupported=function(){var e=createjs.Sound.BrowserDetect.isIOS||createjs.Sound.BrowserDetect.isAndroid||createjs.Sound.BrowserDetect.isBlackberry;return"file:"!=location.protocol||e||this._isFileXHRSupported()?(t._generateCapabilities(),null==t.context?!1:!0):!1},t._isFileXHRSupported=function(){var e=!0,t=new XMLHttpRequest;try{t.open("GET","fail.fail",!1)}catch(n){return e=!1}t.onerror=function(){e=!1},t.onload=function(){e=404==this.status||200==this.status||0==this.status&&""!=this.response};try{t.send()}catch(n){e=!1}return e},t._generateCapabilities=function(){if(null==t._capabilities){var e=document.createElement("audio");if(null==e.canPlayType)return null;if(window.webkitAudioContext)t.context=new webkitAudioContext;else{if(!window.AudioContext)return null;t.context=new AudioContext}t._compatibilitySetUp(),t.playEmptySound(),t._capabilities={panning:!0,volume:!0,tracks:-1};for(var n=createjs.Sound.SUPPORTED_EXTENSIONS,i=createjs.Sound.EXTENSION_MAP,r=0,s=n.length;s>r;r++){var o=n[r],a=i[o]||o;t._capabilities[o]="no"!=e.canPlayType("audio/"+o)&&""!=e.canPlayType("audio/"+o)||"no"!=e.canPlayType("audio/"+a)&&""!=e.canPlayType("audio/"+a)}t.context.destination.numberOfChannels<2&&(t._capabilities.panning=!1),t.dynamicsCompressorNode=t.context.createDynamicsCompressor(),t.dynamicsCompressorNode.connect(t.context.destination),t.gainNode=t.context.createGain(),t.gainNode.connect(t.dynamicsCompressorNode)}},t._compatibilitySetUp=function(){if(!t.context.createGain){t.context.createGain=t.context.createGainNode;var e=t.context.createBufferSource();e.__proto__.start=e.__proto__.noteGrainOn,e.__proto__.stop=e.__proto__.noteOff,this._panningModel=0}},t.playEmptySound=function(){var e=this.context.createBuffer(1,1,22050),t=this.context.createBufferSource();t.buffer=e,t.connect(this.context.destination),t.start(0,0,0)};var n=e.prototype;n._capabilities=null,n._volume=1,n.context=null,n._panningModel="equalpower",n.dynamicsCompressorNode=null,n.gainNode=null,n._arrayBuffers=null,n._init=function(){this._capabilities=t._capabilities,this._arrayBuffers={},this.context=t.context,this.gainNode=t.gainNode,this.dynamicsCompressorNode=t.dynamicsCompressorNode},n.register=function(e){this._arrayBuffers[e]=!0;var t=new createjs.WebAudioPlugin.Loader(e,this);return{tag:t}},n.isPreloadStarted=function(e){return null!=this._arrayBuffers[e]},n.isPreloadComplete=function(e){return!(null==this._arrayBuffers[e]||1==this._arrayBuffers[e])},n.removeSound=function(e){delete this._arrayBuffers[e]},n.removeAllSounds=function(){this._arrayBuffers={}},n.addPreloadResults=function(e,t){this._arrayBuffers[e]=t},n._handlePreloadComplete=function(){createjs.Sound._sendFileLoadEvent(this.src)},n.preload=function(e){this._arrayBuffers[e]=!0;var t=new createjs.WebAudioPlugin.Loader(e,this);t.onload=this._handlePreloadComplete,t.load()},n.create=function(e){return this.isPreloadStarted(e)||this.preload(e),new createjs.WebAudioPlugin.SoundInstance(e,this)},n.setVolume=function(e){return this._volume=e,this._updateVolume(),!0},n._updateVolume=function(){var e=createjs.Sound._masterMute?0:this._volume;e!=this.gainNode.gain.value&&(this.gainNode.gain.value=e)},n.getVolume=function(){return this._volume},n.setMute=function(){return this._updateVolume(),!0},n.toString=function(){return"[WebAudioPlugin]"},createjs.WebAudioPlugin=e}(),function(){"use strict";function e(e,t){this._init(e,t)}var t=e.prototype=new createjs.EventDispatcher;t.src=null,t.uniqueId=-1,t.playState=null,t._owner=null,t._offset=0,t._delay=0,t._volume=1;try{Object.defineProperty(t,"volume",{get:function(){return this._volume},set:function(e){return null==Number(e)?!1:(e=Math.max(0,Math.min(1,e)),this._volume=e,void this._updateVolume())}})}catch(n){}t._pan=0;try{Object.defineProperty(t,"pan",{get:function(){return this._pan},set:function(e){return this._owner._capabilities.panning&&null!=Number(e)?(e=Math.max(-1,Math.min(1,e)),this._pan=e,void this.panNode.setPosition(e,0,-.5)):!1}})}catch(n){}t._duration=0,t._remainingLoops=0,t._delayTimeoutId=null,t._soundCompleteTimeout=null,t.gainNode=null,t.panNode=null,t.sourceNode=null,t._sourceNodeNext=null,t._muted=!1,t._paused=!1,t._startTime=0,t._endedHandler=null,t._sendEvent=function(e){var t=new createjs.Event(e);this.dispatchEvent(t)},t._init=function(e,t){this._owner=t,this.src=e,this.gainNode=this._owner.context.createGain(),this.panNode=this._owner.context.createPanner(),this.panNode.panningModel=this._owner._panningModel,this.panNode.connect(this.gainNode),this._owner.isPreloadComplete(this.src)&&(this._duration=1e3*this._owner._arrayBuffers[this.src].duration),this._endedHandler=createjs.proxy(this._handleSoundComplete,this)
},t._cleanUp=function(){this.sourceNode&&this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._delayTimeoutId),clearTimeout(this._soundCompleteTimeout),this._startTime=0,null!=window.createjs&&createjs.Sound._playFinished(this)},t._cleanUpAudioNode=function(e){return e&&(e.stop(0),e.disconnect(this.panNode),e=null),e},t._interrupt=function(){this._cleanUp(),this.playState=createjs.Sound.PLAY_INTERRUPTED,this._paused=!1,this._sendEvent("interrupted")},t._handleSoundReady=function(){if(null!=window.createjs){if(1e3*this._offset>this.getDuration())return void this.playFailed();this._offset<0&&(this._offset=0),this.playState=createjs.Sound.PLAY_SUCCEEDED,this._paused=!1,this.gainNode.connect(this._owner.gainNode);var e=this._owner._arrayBuffers[this.src].duration;this.sourceNode=this._createAndPlayAudioNode(this._owner.context.currentTime-e,this._offset),this._duration=1e3*e,this._startTime=this.sourceNode.startTime-this._offset,this._soundCompleteTimeout=setTimeout(this._endedHandler,1e3*(e-this._offset)),0!=this._remainingLoops&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._startTime,0))}},t._createAndPlayAudioNode=function(e,t){var n=this._owner.context.createBufferSource();return n.buffer=this._owner._arrayBuffers[this.src],n.connect(this.panNode),this._owner.context.currentTime,n.startTime=e+n.buffer.duration,n.start(n.startTime,t,n.buffer.duration-t),n},t.play=function(e,t,n,i,r,s){this._cleanUp(),createjs.Sound._playInstance(this,e,t,n,i,r,s)},t._beginPlaying=function(e,t,n,i){return null!=window.createjs&&this.src?(this._offset=e/1e3,this._remainingLoops=t,this.volume=n,this.pan=i,this._owner.isPreloadComplete(this.src)?(this._handleSoundReady(null),this._sendEvent("succeeded"),1):void this.playFailed()):void 0},t.pause=function(){return this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED?!1:(this._paused=!0,this._offset=this._owner.context.currentTime-this._startTime,this._cleanUpAudioNode(this.sourceNode),this._cleanUpAudioNode(this._sourceNodeNext),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(),clearTimeout(this._delayTimeoutId),clearTimeout(this._soundCompleteTimeout),!0)},t.resume=function(){return this._paused?(this._handleSoundReady(null),!0):!1},t.stop=function(){return this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this._offset=0,!0},t.setVolume=function(e){return this.volume=e,!0},t._updateVolume=function(){var e=this._muted?0:this._volume;return e!=this.gainNode.gain.value?(this.gainNode.gain.value=e,!0):!1},t.getVolume=function(){return this.volume},t.setMute=function(e){return null==e||void 0==e?!1:(this._muted=e,this._updateVolume(),!0)},t.getMute=function(){return this._muted},t.setPan=function(e){return this.pan=e,this.pan!=e?!1:void 0},t.getPan=function(){return this.pan},t.getPosition=function(){if(this._paused||null==this.sourceNode)var e=this._offset;else var e=this._owner.context.currentTime-this._startTime;return 1e3*e},t.setPosition=function(e){return this._offset=e/1e3,this.sourceNode&&this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._cleanUpAudioNode(this.sourceNode),this._cleanUpAudioNode(this._sourceNodeNext),clearTimeout(this._soundCompleteTimeout)),this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED||this._handleSoundReady(null),!0},t.getDuration=function(){return this._duration},t._handleSoundComplete=function(){return this._offset=0,0!=this._remainingLoops?(this._remainingLoops--,this._sourceNodeNext?(this._cleanUpAudioNode(this.sourceNode),this.sourceNode=this._sourceNodeNext,this._startTime=this.sourceNode.startTime,this._sourceNodeNext=this._createAndPlayAudioNode(this._startTime,0),this._soundCompleteTimeout=setTimeout(this._endedHandler,this._duration)):this._handleSoundReady(null),void this._sendEvent("loop")):void(null!=window.createjs&&(this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this._sendEvent("complete")))},t.playFailed=function(){null!=window.createjs&&(this._cleanUp(),this.playState=createjs.Sound.PLAY_FAILED,this._sendEvent("failed"))},t.toString=function(){return"[WebAudioPlugin SoundInstance]"},createjs.WebAudioPlugin.SoundInstance=e}(),function(){"use strict";function e(e,t){this._init(e,t)}var t=e.prototype;t.request=null,t.owner=null,t.progress=-1,t.src=null,t.originalSrc=null,t.result=null,t.onload=null,t.onprogress=null,t.onError=null,t._init=function(e,t){this.src=e,this.originalSrc=e,this.owner=t},t.load=function(e){null!=e&&(this.src=e),this.request=new XMLHttpRequest,this.request.open("GET",this.src,!0),this.request.responseType="arraybuffer",this.request.onload=createjs.proxy(this.handleLoad,this),this.request.onError=createjs.proxy(this.handleError,this),this.request.onprogress=createjs.proxy(this.handleProgress,this),this.request.send()},t.handleProgress=function(e,t){this.progress=e/t,null!=this.onprogress&&this.onprogress({loaded:e,total:t,progress:this.progress})},t.handleLoad=function(){this.owner.context.decodeAudioData(this.request.response,createjs.proxy(this.handleAudioDecoded,this),createjs.proxy(this.handleError,this))},t.handleAudioDecoded=function(e){this.progress=1,this.result=e,this.src=this.originalSrc,this.owner.addPreloadResults(this.src,this.result),this.onload&&this.onload()},t.handleError=function(e){this.owner.removeSound(this.src),this.onerror&&this.onerror(e)},t.toString=function(){return"[WebAudioPlugin Loader]"},createjs.WebAudioPlugin.Loader=e}(),this.createjs=this.createjs||{},function(){"use strict";function e(){this._init()}var t=e;t.MAX_INSTANCES=30,t._AUDIO_READY="canplaythrough",t._AUDIO_ENDED="ended",t._AUDIO_SEEKED="seeked",t._AUDIO_STALLED="stalled",t._capabilities=null,t.enableIOS=!1,t.isSupported=function(){if(createjs.Sound.BrowserDetect.isIOS&&!t.enableIOS)return!1;t._generateCapabilities();var e=t.tag;return null==e||null==t._capabilities?!1:!0},t._generateCapabilities=function(){if(null==t._capabilities){var e=t.tag=document.createElement("audio");if(null==e.canPlayType)return null;t._capabilities={panning:!0,volume:!0,tracks:-1};for(var n=createjs.Sound.SUPPORTED_EXTENSIONS,i=createjs.Sound.EXTENSION_MAP,r=0,s=n.length;s>r;r++){var o=n[r],a=i[o]||o;t._capabilities[o]="no"!=e.canPlayType("audio/"+o)&&""!=e.canPlayType("audio/"+o)||"no"!=e.canPlayType("audio/"+a)&&""!=e.canPlayType("audio/"+a)}}};var n=e.prototype;n._capabilities=null,n._audioSources=null,n.defaultNumChannels=2,n.loadedHandler=null,n._init=function(){this._capabilities=t._capabilities,this._audioSources={}},n.register=function(e,t){this._audioSources[e]=!0;for(var n=createjs.HTMLAudioPlugin.TagPool.get(e),i=null,r=t||this.defaultNumChannels,s=0;r>s;s++)i=this._createTag(e),n.add(i);if(i.id=e,this.loadedHandler=createjs.proxy(this._handleTagLoad,this),i.addEventListener&&i.addEventListener("canplaythrough",this.loadedHandler),null==i.onreadystatechange)i.onreadystatechange=this.loadedHandler;else{var o=i.onreadystatechange;i.onreadystatechange=function(){o(),this.loadedHandler()}}return{tag:i,numChannels:r}},n._handleTagLoad=function(e){e.target.removeEventListener&&e.target.removeEventListener("canplaythrough",this.loadedHandler),e.target.onreadystatechange=null,e.target.src!=e.target.id&&createjs.HTMLAudioPlugin.TagPool.checkSrc(e.target.id)},n._createTag=function(e){var t=document.createElement("audio");return t.autoplay=!1,t.preload="none",t.src=e,t},n.removeSound=function(e){delete this._audioSources[e],createjs.HTMLAudioPlugin.TagPool.remove(e)},n.removeAllSounds=function(){this._audioSources={},createjs.HTMLAudioPlugin.TagPool.removeAll()},n.create=function(e){if(!this.isPreloadStarted(e)){var t=createjs.HTMLAudioPlugin.TagPool.get(e),n=this._createTag(e);n.id=e,t.add(n),this.preload(e,{tag:n})}return new createjs.HTMLAudioPlugin.SoundInstance(e,this)},n.isPreloadStarted=function(e){return null!=this._audioSources[e]},n.preload=function(e,t){this._audioSources[e]=!0,new createjs.HTMLAudioPlugin.Loader(e,t.tag)},n.toString=function(){return"[HTMLAudioPlugin]"},createjs.HTMLAudioPlugin=e}(),function(){"use strict";function e(e,t){this._init(e,t)}var t=e.prototype=new createjs.EventDispatcher;t.src=null,t.uniqueId=-1,t.playState=null,t._owner=null,t.loaded=!1,t._offset=0,t._delay=0,t._volume=1;try{Object.defineProperty(t,"volume",{get:function(){return this._volume},set:function(e){null!=Number(e)&&(e=Math.max(0,Math.min(1,e)),this._volume=e,this._updateVolume())}})}catch(n){}t.pan=0,t._duration=0,t._remainingLoops=0,t._delayTimeoutId=null,t.tag=null,t._muted=!1,t._paused=!1,t._endedHandler=null,t._readyHandler=null,t._stalledHandler=null,t.loopHandler=null,t._init=function(e,t){this.src=e,this._owner=t,this._endedHandler=createjs.proxy(this._handleSoundComplete,this),this._readyHandler=createjs.proxy(this._handleSoundReady,this),this._stalledHandler=createjs.proxy(this._handleSoundStalled,this),this.loopHandler=createjs.proxy(this.handleSoundLoop,this)},t._sendEvent=function(e){var t=new createjs.Event(e);this.dispatchEvent(t)},t._cleanUp=function(){var e=this.tag;if(null!=e){e.pause(),e.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),e.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),e.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this.loopHandler,!1);try{e.currentTime=0}catch(t){}createjs.HTMLAudioPlugin.TagPool.setInstance(this.src,e),this.tag=null}clearTimeout(this._delayTimeoutId),null!=window.createjs&&createjs.Sound._playFinished(this)},t._interrupt=function(){null!=this.tag&&(this.playState=createjs.Sound.PLAY_INTERRUPTED,this._cleanUp(),this._paused=!1,this._sendEvent("interrupted"))},t.play=function(e,t,n,i,r,s){this._cleanUp(),createjs.Sound._playInstance(this,e,t,n,i,r,s)},t._beginPlaying=function(e,t,n,i){if(null==window.createjs)return-1;var r=this.tag=createjs.HTMLAudioPlugin.TagPool.getInstance(this.src);return null==r?(this.playFailed(),-1):(r.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._offset=e,this.volume=n,this.pan=i,this._updateVolume(),this._remainingLoops=t,4!==r.readyState?(r.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),r.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),r.preload="auto",r.load()):this._handleSoundReady(null),this._sendEvent("succeeded"),1)},t._handleSoundStalled=function(){this._cleanUp(),this._sendEvent("failed")},t._handleSoundReady=function(){if(null!=window.createjs){if(this._duration=1e3*this.tag.duration,this.playState=createjs.Sound.PLAY_SUCCEEDED,this._paused=!1,this.tag.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),this._offset>=this.getDuration())return void this.playFailed();this._offset>0&&(this.tag.currentTime=.001*this._offset),-1==this._remainingLoops&&(this.tag.loop=!0),0!=this._remainingLoops&&(this.tag.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this.loopHandler,!1),this.tag.loop=!0),this.tag.play()}},t.pause=function(){return this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED||null==this.tag?!1:(this._paused=!0,this.tag.pause(),clearTimeout(this._delayTimeoutId),!0)},t.resume=function(){return this._paused&&null!=this.tag?(this._paused=!1,this.tag.play(),!0):!1},t.stop=function(){return this._offset=0,this.pause(),this.playState=createjs.Sound.PLAY_FINISHED,this._cleanUp(),!0},t.setMasterVolume=function(){return this._updateVolume(),!0},t.setVolume=function(e){return this.volume=e,!0},t._updateVolume=function(){if(null!=this.tag){var e=this._muted||createjs.Sound._masterMute?0:this._volume*createjs.Sound._masterVolume;return e!=this.tag.volume&&(this.tag.volume=e),!0}return!1},t.getVolume=function(){return this.volume},t.setMasterMute=function(){return this._updateVolume(),!0},t.setMute=function(e){return null==e||void 0==e?!1:(this._muted=e,this._updateVolume(),!0)},t.getMute=function(){return this._muted},t.setPan=function(){return!1},t.getPan=function(){return 0},t.getPosition=function(){return null==this.tag?this._offset:1e3*this.tag.currentTime},t.setPosition=function(e){if(null==this.tag)this._offset=e;else{this.tag.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this.loopHandler,!1);try{this.tag.currentTime=.001*e}catch(t){return!1}this.tag.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this.loopHandler,!1)}return!0},t.getDuration=function(){return this._duration},t._handleSoundComplete=function(){this._offset=0,null!=window.createjs&&(this.playState=createjs.Sound.PLAY_FINISHED,this._cleanUp(),this._sendEvent("complete"))},t.handleSoundLoop=function(){this._offset=0,this._remainingLoops--,0==this._remainingLoops&&(this.tag.loop=!1,this.tag.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this.loopHandler,!1)),this._sendEvent("loop")},t.playFailed=function(){null!=window.createjs&&(this.playState=createjs.Sound.PLAY_FAILED,this._cleanUp(),this._sendEvent("failed"))},t.toString=function(){return"[HTMLAudioPlugin SoundInstance]"},createjs.HTMLAudioPlugin.SoundInstance=e}(),function(){"use strict";function e(e,t){this._init(e,t)}var t=e.prototype;t.src=null,t.tag=null,t.preloadTimer=null,t.loadedHandler=null,t._init=function(e,t){if(this.src=e,this.tag=t,this.preloadTimer=setInterval(createjs.proxy(this.preloadTick,this),200),this.loadedHandler=createjs.proxy(this.sendLoadedEvent,this),this.tag.addEventListener&&this.tag.addEventListener("canplaythrough",this.loadedHandler),null==this.tag.onreadystatechange)this.tag.onreadystatechange=createjs.proxy(this.sendLoadedEvent,this);else{var n=this.tag.onreadystatechange;this.tag.onreadystatechange=function(){n(),this.tag.onreadystatechange=createjs.proxy(this.sendLoadedEvent,this)}}this.tag.preload="auto",this.tag.load()},t.preloadTick=function(){var e=this.tag.buffered,t=this.tag.duration;e.length>0&&e.end(0)>=t-1&&this.handleTagLoaded()},t.handleTagLoaded=function(){clearInterval(this.preloadTimer)},t.sendLoadedEvent=function(){this.tag.removeEventListener&&this.tag.removeEventListener("canplaythrough",this.loadedHandler),this.tag.onreadystatechange=null,createjs.Sound._sendFileLoadEvent(this.src)},t.toString=function(){return"[HTMLAudioPlugin Loader]"},createjs.HTMLAudioPlugin.Loader=e}(),function(){"use strict";function e(e){this._init(e)}var t=e;t.tags={},t.get=function(n){var i=t.tags[n];return null==i&&(i=t.tags[n]=new e(n)),i},t.remove=function(e){var n=t.tags[e];return null==n?!1:(n.removeAll(),delete t.tags[e],!0)},t.removeAll=function(){for(var e in t.tags)t.tags[e].removeAll();t.tags={}},t.getInstance=function(e){var n=t.tags[e];return null==n?null:n.get()},t.setInstance=function(e,n){var i=t.tags[e];return null==i?null:i.set(n)},t.checkSrc=function(e){var n=t.tags[e];return null==n?null:void n.checkSrcChange()};var n=e.prototype;n.src=null,n.length=0,n.available=0,n.tags=null,n._init=function(e){this.src=e,this.tags=[]},n.add=function(e){this.tags.push(e),this.length++,this.available++},n.removeAll=function(){for(;this.length--;)delete this.tags[this.length];this.src=null,this.tags.length=0},n.get=function(){if(0==this.tags.length)return null;this.available=this.tags.length;var e=this.tags.pop();return null==e.parentNode&&document.body.appendChild(e),e},n.set=function(e){var t=createjs.indexOf(this.tags,e);-1==t&&this.tags.push(e),this.available=this.tags.length},n.checkSrcChange=function(){for(var e=this.tags.length-1,t=this.tags[e].src;e--;)this.tags[e].src=t},n.toString=function(){return"[HTMLAudioPlugin TagPool]"},createjs.HTMLAudioPlugin.TagPool=e}();