this.createjs=this.createjs||{};createjs.extend=function(n,t){"use strict";function i(){this.constructor=n}return i.prototype=t.prototype,n.prototype=new i};this.createjs=this.createjs||{};createjs.promote=function(n,t){"use strict";var i=n.prototype,r=Object.getPrototypeOf&&Object.getPrototypeOf(i)||i.__proto__,u;if(r){i[(t+="_")+"constructor"]=r.constructor;for(u in r)i.hasOwnProperty(u)&&"function"==typeof r[u]&&(i[t+u]=r[u])}return n};this.createjs=this.createjs||{};createjs.indexOf=function(n,t){"use strict";for(var i=0,r=n.length;r>i;i++)if(t===n[i])return i;return-1};this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.type=n;this.target=null;this.currentTarget=null;this.eventPhase=0;this.bubbles=!!t;this.cancelable=!!i;this.timeStamp=(new Date).getTime();this.defaultPrevented=!1;this.propagationStopped=!1;this.immediatePropagationStopped=!1;this.removed=!1}var n=t.prototype;n.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0};n.stopPropagation=function(){this.propagationStopped=!0};n.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0};n.remove=function(){this.removed=!0};n.clone=function(){return new t(this.type,this.bubbles,this.cancelable)};n.set=function(n){for(var t in n)this[t]=n[t];return this};n.toString=function(){return"[Event (type="+this.type+")]"};createjs.Event=t}();this.createjs=this.createjs||{},function(){"use strict";function t(){this._listeners=null;this._captureListeners=null}var n=t.prototype;t.initialize=function(t){t.addEventListener=n.addEventListener;t.on=n.on;t.removeEventListener=t.off=n.removeEventListener;t.removeAllEventListeners=n.removeAllEventListeners;t.hasEventListener=n.hasEventListener;t.dispatchEvent=n.dispatchEvent;t._dispatchEvent=n._dispatchEvent;t.willTrigger=n.willTrigger};n.addEventListener=function(n,t,i){var u,r;return u=i?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{},r=u[n],r&&this.removeEventListener(n,t,i),r=u[n],r?r.push(t):u[n]=[t],t};n.on=function(n,t,i,r,u,f){return t.handleEvent&&(i=i||t,t=t.handleEvent),i=i||this,this.addEventListener(n,function(n){t.call(i,n,u);r&&n.remove()},f)};n.removeEventListener=function(n,t,i){var f=i?this._captureListeners:this._listeners,r,u,e;if(f&&(r=f[n],r))for(u=0,e=r.length;e>u;u++)if(r[u]==t){1==e?delete f[n]:r.splice(u,1);break}};n.off=n.removeEventListener;n.removeAllEventListeners=function(n){n?(this._listeners&&delete this._listeners[n],this._captureListeners&&delete this._captureListeners[n]):this._listeners=this._captureListeners=null};n.dispatchEvent=function(n,t,i){var e,u,f,r,o;if("string"==typeof n){if(e=this._listeners,!(t||e&&e[n]))return!0;n=new createjs.Event(n,t,i)}else n.target&&n.clone&&(n=n.clone());try{n.target=this}catch(s){}if(n.bubbles&&this.parent){for(u=this,f=[u];u.parent;)f.push(u=u.parent);for(o=f.length,r=o-1;r>=0&&!n.propagationStopped;r--)f[r]._dispatchEvent(n,1+(0==r));for(r=1;o>r&&!n.propagationStopped;r++)f[r]._dispatchEvent(n,3)}else this._dispatchEvent(n,2);return!n.defaultPrevented};n.hasEventListener=function(n){var t=this._listeners,i=this._captureListeners;return!!(t&&t[n]||i&&i[n])};n.willTrigger=function(n){for(var t=this;t;){if(t.hasEventListener(n))return!0;t=t.parent}return!1};n.toString=function(){return"[EventDispatcher]"};n._dispatchEvent=function(n,t){var f,e=1==t?this._captureListeners:this._listeners,i,u,r;if(n&&e){if(i=e[n.type],!i||!(f=i.length))return;try{n.currentTarget=this}catch(o){}try{n.eventPhase=t}catch(o){}for(n.removed=!1,i=i.slice(),u=0;f>u&&!n.immediatePropagationStopped;u++)r=i[u],r.handleEvent?r.handleEvent(n):r(n),n.removed&&(this.off(n.type,r,1==t),n.removed=!1)}};createjs.EventDispatcher=t}();this.createjs=this.createjs||{},function(){"use strict";function n(){throw"Ticker cannot be instantiated.";}n.RAF_SYNCHED="synched";n.RAF="raf";n.TIMEOUT="timeout";n.useRAF=!1;n.timingMode=null;n.maxDelta=0;n.paused=!1;n.removeEventListener=null;n.removeAllEventListeners=null;n.dispatchEvent=null;n.hasEventListener=null;n._listeners=null;createjs.EventDispatcher.initialize(n);n._addEventListener=n.addEventListener;n.addEventListener=function(){return!n._inited&&n.init(),n._addEventListener.apply(n,arguments)};n._inited=!1;n._startTime=0;n._pausedTime=0;n._ticks=0;n._pausedTicks=0;n._interval=50;n._lastTime=0;n._times=null;n._tickTimes=null;n._timerId=null;n._raf=!0;n.setInterval=function(t){n._interval=t;n._inited&&n._setupTick()};n.getInterval=function(){return n._interval};n.setFPS=function(t){n.setInterval(1e3/t)};n.getFPS=function(){return 1e3/n._interval};try{Object.defineProperties(n,{interval:{get:n.getInterval,set:n.setInterval},framerate:{get:n.getFPS,set:n.setFPS}})}catch(i){console.log(i)}n.init=function(){n._inited||(n._inited=!0,n._times=[],n._tickTimes=[],n._startTime=n._getTime(),n._times.push(n._lastTime=0),n.interval=n._interval)};n.reset=function(){if(n._raf){var t=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;t&&t(n._timerId)}else clearTimeout(n._timerId);n.removeAllEventListeners("tick");n._timerId=n._times=n._tickTimes=null;n._startTime=n._lastTime=n._ticks=0;n._inited=!1};n.getMeasuredTickTime=function(t){var u=0,i=n._tickTimes,r;if(!i||i.length<1)return-1;for(t=Math.min(i.length,t||0|n.getFPS()),r=0;t>r;r++)u+=i[r];return u/t};n.getMeasuredFPS=function(t){var i=n._times;return!i||i.length<2?-1:(t=Math.min(i.length-1,t||0|n.getFPS()),1e3/((i[0]-i[t])/t))};n.setPaused=function(t){n.paused=t};n.getPaused=function(){return n.paused};n.getTime=function(t){return n._startTime?n._getTime()-(t?n._pausedTime:0):-1};n.getEventTime=function(t){return n._startTime?(n._lastTime||n._startTime)-(t?n._pausedTime:0):-1};n.getTicks=function(t){return n._ticks-(t?n._pausedTicks:0)};n._handleSynch=function(){n._timerId=null;n._setupTick();n._getTime()-n._lastTime>=.97*(n._interval-1)&&n._tick()};n._handleRAF=function(){n._timerId=null;n._setupTick();n._tick()};n._handleTimeout=function(){n._timerId=null;n._setupTick();n._tick()};n._setupTick=function(){var t,i;if(null==n._timerId){if(t=n.timingMode||n.useRAF&&n.RAF_SYNCHED,(t==n.RAF_SYNCHED||t==n.RAF)&&(i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,i))return n._timerId=i(t==n.RAF?n._handleRAF:n._handleSynch),void(n._raf=!0);n._raf=!1;n._timerId=setTimeout(n._handleTimeout,n._interval)}};n._tick=function(){var f=n.paused,t=n._getTime(),u=t-n._lastTime,i,r;for((n._lastTime=t,n._ticks++,f&&(n._pausedTicks++,n._pausedTime+=u),n.hasEventListener("tick"))&&(i=new createjs.Event("tick"),r=n.maxDelta,i.delta=r&&u>r?r:u,i.paused=f,i.time=t,i.runTime=t-n._pausedTime,n.dispatchEvent(i)),n._tickTimes.unshift(n._getTime()-t);n._tickTimes.length>100;)n._tickTimes.pop();for(n._times.unshift(t);n._times.length>100;)n._times.pop()};var t=window.performance&&(performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow);n._getTime=function(){return(t&&t.call(performance)||(new Date).getTime())-n._startTime};createjs.Ticker=n}();this.createjs=this.createjs||{},function(){"use strict";function n(){throw"UID cannot be instantiated";}n._nextID=0;n.get=function(){return n._nextID++};createjs.UID=n}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i,r,u,f,e,o,s,h,c){this.Event_constructor(n,t,i);this.stageX=r;this.stageY=u;this.rawX=null==s?r:s;this.rawY=null==h?u:h;this.nativeEvent=f;this.pointerID=e;this.primary=!!o;this.relatedTarget=c}var n=createjs.extend(t,createjs.Event);n._get_localX=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).x};n._get_localY=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).y};n._get_isTouch=function(){return-1!==this.pointerID};try{Object.defineProperties(n,{localX:{get:n._get_localX},localY:{get:n._get_localY},isTouch:{get:n._get_isTouch}})}catch(i){}n.clone=function(){return new t(this.type,this.bubbles,this.cancelable,this.stageX,this.stageY,this.nativeEvent,this.pointerID,this.primary,this.rawX,this.rawY)};n.toString=function(){return"[MouseEvent (type="+this.type+" stageX="+this.stageX+" stageY="+this.stageY+")]"};createjs.MouseEvent=createjs.promote(t,"Event")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i,r,u,f){this.setValues(n,t,i,r,u,f)}var n=t.prototype;t.DEG_TO_RAD=Math.PI/180;t.identity=null;n.setValues=function(n,t,i,r,u,f){return this.a=null==n?1:n,this.b=t||0,this.c=i||0,this.d=null==r?1:r,this.tx=u||0,this.ty=f||0,this};n.append=function(n,t,i,r,u,f){var e=this.a,o=this.b,s=this.c,h=this.d;return(1!=n||0!=t||0!=i||1!=r)&&(this.a=e*n+s*t,this.b=o*n+h*t,this.c=e*i+s*r,this.d=o*i+h*r),this.tx=e*u+s*f+this.tx,this.ty=o*u+h*f+this.ty,this};n.prepend=function(n,t,i,r,u,f){var e=this.a,o=this.c,s=this.tx;return this.a=n*e+i*this.b,this.b=t*e+r*this.b,this.c=n*o+i*this.d,this.d=t*o+r*this.d,this.tx=n*s+i*this.ty+u,this.ty=t*s+r*this.ty+f,this};n.appendMatrix=function(n){return this.append(n.a,n.b,n.c,n.d,n.tx,n.ty)};n.prependMatrix=function(n){return this.prepend(n.a,n.b,n.c,n.d,n.tx,n.ty)};n.appendTransform=function(n,i,r,u,f,e,o,s,h){if(f%360)var a=f*t.DEG_TO_RAD,c=Math.cos(a),l=Math.sin(a);else c=1,l=0;return e||o?(e*=t.DEG_TO_RAD,o*=t.DEG_TO_RAD,this.append(Math.cos(o),Math.sin(o),-Math.sin(e),Math.cos(e),n,i),this.append(c*r,l*r,-l*u,c*u,0,0)):this.append(c*r,l*r,-l*u,c*u,n,i),(s||h)&&(this.tx-=s*this.a+h*this.c,this.ty-=s*this.b+h*this.d),this};n.prependTransform=function(n,i,r,u,f,e,o,s,h){if(f%360)var a=f*t.DEG_TO_RAD,c=Math.cos(a),l=Math.sin(a);else c=1,l=0;return(s||h)&&(this.tx-=s,this.ty-=h),e||o?(e*=t.DEG_TO_RAD,o*=t.DEG_TO_RAD,this.prepend(c*r,l*r,-l*u,c*u,0,0),this.prepend(Math.cos(o),Math.sin(o),-Math.sin(e),Math.cos(e),n,i)):this.prepend(c*r,l*r,-l*u,c*u,n,i),this};n.rotate=function(n){n*=t.DEG_TO_RAD;var i=Math.cos(n),r=Math.sin(n),u=this.a,f=this.b;return this.a=u*i+this.c*r,this.b=f*i+this.d*r,this.c=-u*r+this.c*i,this.d=-f*r+this.d*i,this};n.skew=function(n,i){return n*=t.DEG_TO_RAD,i*=t.DEG_TO_RAD,this.append(Math.cos(i),Math.sin(i),-Math.sin(n),Math.cos(n),0,0),this};n.scale=function(n,t){return this.a*=n,this.b*=n,this.c*=t,this.d*=t,this};n.translate=function(n,t){return this.tx+=this.a*n+this.c*t,this.ty+=this.b*n+this.d*t,this};n.identity=function(){return this.a=this.d=1,this.b=this.c=this.tx=this.ty=0,this};n.invert=function(){var t=this.a,i=this.b,r=this.c,u=this.d,f=this.tx,n=t*u-i*r;return this.a=u/n,this.b=-i/n,this.c=-r/n,this.d=t/n,this.tx=(r*this.ty-u*f)/n,this.ty=-(t*this.ty-i*f)/n,this};n.isIdentity=function(){return 0===this.tx&&0===this.ty&&1===this.a&&0===this.b&&0===this.c&&1===this.d};n.equals=function(n){return this.tx===n.tx&&this.ty===n.ty&&this.a===n.a&&this.b===n.b&&this.c===n.c&&this.d===n.d};n.transformPoint=function(n,t,i){return i=i||{},i.x=n*this.a+t*this.c+this.tx,i.y=n*this.b+t*this.d+this.ty,i};n.decompose=function(n){null==n&&(n={});n.x=this.tx;n.y=this.ty;n.scaleX=Math.sqrt(this.a*this.a+this.b*this.b);n.scaleY=Math.sqrt(this.c*this.c+this.d*this.d);var r=Math.atan2(-this.c,this.d),i=Math.atan2(this.b,this.a),u=Math.abs(1-r/i);return 1e-5>u?(n.rotation=i/t.DEG_TO_RAD,this.a<0&&this.d>=0&&(n.rotation+=n.rotation<=0?180:-180),n.skewX=n.skewY=0):(n.skewX=r/t.DEG_TO_RAD,n.skewY=i/t.DEG_TO_RAD),n};n.copy=function(n){return this.setValues(n.a,n.b,n.c,n.d,n.tx,n.ty)};n.clone=function(){return new t(this.a,this.b,this.c,this.d,this.tx,this.ty)};n.toString=function(){return"[Matrix2D (a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+")]"};t.identity=new t;createjs.Matrix2D=t}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i,r,u){this.setValues(n,t,i,r,u)}var n=t.prototype;n.setValues=function(n,t,i,r,u){return this.visible=null==n?!0:!!n,this.alpha=null==t?1:t,this.shadow=i,this.compositeOperation=r,this.matrix=u||this.matrix&&this.matrix.identity()||new createjs.Matrix2D,this};n.append=function(n,t,i,r,u){return this.alpha*=t,this.shadow=i||this.shadow,this.compositeOperation=r||this.compositeOperation,this.visible=this.visible&&n,u&&this.matrix.appendMatrix(u),this};n.prepend=function(n,t,i,r,u){return this.alpha*=t,this.shadow=this.shadow||i,this.compositeOperation=this.compositeOperation||r,this.visible=this.visible&&n,u&&this.matrix.prependMatrix(u),this};n.identity=function(){return this.visible=!0,this.alpha=1,this.shadow=this.compositeOperation=null,this.matrix.identity(),this};n.clone=function(){return new t(this.alpha,this.shadow,this.compositeOperation,this.visible,this.matrix.clone())};createjs.DisplayProps=t}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t){this.setValues(n,t)}var n=t.prototype;n.setValues=function(n,t){return this.x=n||0,this.y=t||0,this};n.copy=function(n){return this.x=n.x,this.y=n.y,this};n.clone=function(){return new t(this.x,this.y)};n.toString=function(){return"[Point (x="+this.x+" y="+this.y+")]"};createjs.Point=t}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i,r){this.setValues(n,t,i,r)}var n=t.prototype;n.setValues=function(n,t,i,r){return this.x=n||0,this.y=t||0,this.width=i||0,this.height=r||0,this};n.extend=function(n,t,i,r){return i=i||0,r=r||0,n+i>this.x+this.width&&(this.width=n+i-this.x),t+r>this.y+this.height&&(this.height=t+r-this.y),n<this.x&&(this.width+=this.x-n,this.x=n),t<this.y&&(this.height+=this.y-t,this.y=t),this};n.pad=function(n,t,i,r){return this.x-=t,this.y-=n,this.width+=t+r,this.height+=n+i,this};n.copy=function(n){return this.setValues(n.x,n.y,n.width,n.height)};n.contains=function(n,t,i,r){return i=i||0,r=r||0,n>=this.x&&n+i<=this.x+this.width&&t>=this.y&&t+r<=this.y+this.height};n.union=function(n){return this.clone().extend(n.x,n.y,n.width,n.height)};n.intersection=function(n){var i=n.x,r=n.y,u=i+n.width,f=r+n.height;return this.x>i&&(i=this.x),this.y>r&&(r=this.y),this.x+this.width<u&&(u=this.x+this.width),this.y+this.height<f&&(f=this.y+this.height),i>=u||r>=f?null:new t(i,r,u-i,f-r)};n.intersects=function(n){return n.x<=this.x+this.width&&this.x<=n.x+n.width&&n.y<=this.y+this.height&&this.y<=n.y+n.height};n.isEmpty=function(){return this.width<=0||this.height<=0};n.clone=function(){return new t(this.x,this.y,this.width,this.height)};n.toString=function(){return"[Rectangle (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+")]"};createjs.Rectangle=t}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i,r,u,f,e){n.addEventListener&&(this.target=n,this.overLabel=null==i?"over":i,this.outLabel=null==t?"out":t,this.downLabel=null==r?"down":r,this.play=u,this._isPressed=!1,this._isOver=!1,this._enabled=!1,n.mouseChildren=!1,this.enabled=!0,this.handleEvent({}),f&&(e&&(f.actionsEnabled=!1,f.gotoAndStop&&f.gotoAndStop(e)),n.hitArea=f))}var n=t.prototype;n.setEnabled=function(n){if(n!=this._enabled){var t=this.target;this._enabled=n;n?(t.cursor="pointer",t.addEventListener("rollover",this),t.addEventListener("rollout",this),t.addEventListener("mousedown",this),t.addEventListener("pressup",this),t._reset&&(t.__reset=t._reset,t._reset=this._reset)):(t.cursor=null,t.removeEventListener("rollover",this),t.removeEventListener("rollout",this),t.removeEventListener("mousedown",this),t.removeEventListener("pressup",this),t.__reset&&(t._reset=t.__reset,delete t.__reset))}};n.getEnabled=function(){return this._enabled};try{Object.defineProperties(n,{enabled:{get:n.getEnabled,set:n.setEnabled}})}catch(i){}n.toString=function(){return"[ButtonHelper]"};n.handleEvent=function(n){var t,i=this.target,r=n.type;"mousedown"==r?(this._isPressed=!0,t=this.downLabel):"pressup"==r?(this._isPressed=!1,t=this._isOver?this.overLabel:this.outLabel):"rollover"==r?(this._isOver=!0,t=this._isPressed?this.downLabel:this.overLabel):(this._isOver=!1,t=this._isPressed?this.overLabel:this.outLabel);this.play?i.gotoAndPlay&&i.gotoAndPlay(t):i.gotoAndStop&&i.gotoAndStop(t)};n._reset=function(){var n=this.paused;this.__reset();this.paused=n};createjs.ButtonHelper=t}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t,i,r){this.color=n||"black";this.offsetX=t||0;this.offsetY=i||0;this.blur=r||0}var t=n.prototype;n.identity=new n("transparent",0,0,0);t.toString=function(){return"[Shadow]"};t.clone=function(){return new n(this.color,this.offsetX,this.offsetY,this.blur)};createjs.Shadow=n}();this.createjs=this.createjs||{},function(){"use strict";function t(n){this.EventDispatcher_constructor();this.complete=!0;this.framerate=0;this._animations=null;this._frames=null;this._images=null;this._data=null;this._loadCount=0;this._frameHeight=0;this._frameWidth=0;this._numFrames=0;this._regX=0;this._regY=0;this._spacing=0;this._margin=0;this._parseData(n)}var n=createjs.extend(t,createjs.EventDispatcher);n.getAnimations=function(){return this._animations.slice()};try{Object.defineProperties(n,{animations:{get:n.getAnimations}})}catch(i){}n.getNumFrames=function(n){if(null==n)return this._frames?this._frames.length:this._numFrames||0;var t=this._data[n];return null==t?0:t.frames.length};n.getAnimation=function(n){return this._data[n]};n.getFrame=function(n){var t;return this._frames&&(t=this._frames[n])?t:null};n.getFrameBounds=function(n,t){var i=this.getFrame(n);return i?(t||new createjs.Rectangle).setValues(-i.regX,-i.regY,i.rect.width,i.rect.height):null};n.toString=function(){return"[SpriteSheet]"};n.clone=function(){throw"SpriteSheet cannot be cloned.";};n._parseData=function(n){var r,h,u,f,e,c,o,s,t,i,l;if(null!=n){if(this.framerate=n.framerate||0,n.images&&(h=n.images.length)>0)for(f=this._images=[],r=0;h>r;r++)e=n.images[r],"string"==typeof e&&(c=e,e=document.createElement("img"),e.src=c),f.push(e),e.getContext||e.naturalWidth||(this._loadCount++,this.complete=!1,function(n,t){e.onload=function(){n._handleImageLoad(t)}}(this,c),function(n,t){e.onerror=function(){n._handleImageError(t)}}(this,c));if(null!=n.frames)if(Array.isArray(n.frames))for(this._frames=[],f=n.frames,r=0,h=f.length;h>r;r++)o=f[r],this._frames.push({image:this._images[o[4]?o[4]:0],rect:new createjs.Rectangle(o[0],o[1],o[2],o[3]),regX:o[5]||0,regY:o[6]||0});else u=n.frames,this._frameWidth=u.width,this._frameHeight=u.height,this._regX=u.regX||0,this._regY=u.regY||0,this._spacing=u.spacing||0,this._margin=u.margin||0,this._numFrames=u.count,0==this._loadCount&&this._calculateFrames();if(this._animations=[],null!=(u=n.animations)){this._data={};for(s in u){if(t={name:s},i=u[s],"number"==typeof i)f=t.frames=[i];else if(Array.isArray(i))if(1==i.length)t.frames=[i[0]];else for(t.speed=i[3],t.next=i[2],f=t.frames=[],r=i[0];r<=i[1];r++)f.push(r);else t.speed=i.speed,t.next=i.next,l=i.frames,f=t.frames="number"==typeof l?[l]:l.slice(0);(t.next===!0||void 0===t.next)&&(t.next=s);(t.next===!1||f.length<2&&t.next==s)&&(t.next=null);t.speed||(t.speed=1);this._animations.push(s);this._data[s]=t}}}};n._handleImageLoad=function(){0==--this._loadCount&&(this._calculateFrames(),this.complete=!0,this.dispatchEvent("complete"))};n._handleImageError=function(n){var t=new createjs.Event("error");t.src=n;this.dispatchEvent(t);0==--this._loadCount&&this.dispatchEvent("complete")};n._calculateFrames=function(){var t,e,i;if(!this._frames&&0!=this._frameWidth){this._frames=[];var c=this._numFrames||1e5,r=0,u=this._frameWidth,f=this._frameHeight,h=this._spacing,n=this._margin;n:for(t=0,e=this._images;t<e.length;t++)for(var o=e[t],l=o.width,a=o.height,s=n;a-n-f>=s;){for(i=n;l-n-u>=i;){if(r>=c)break n;r++;this._frames.push({image:o,rect:new createjs.Rectangle(i,s,u,f),regX:this._regX,regY:this._regY});i+=u+h}s+=f+h}this._numFrames=r}};createjs.SpriteSheet=createjs.promote(t,"EventDispatcher")}();this.createjs=this.createjs||{},function(){"use strict";function i(){this.command=null;this._stroke=null;this._strokeStyle=null;this._oldStrokeStyle=null;this._strokeDash=null;this._oldStrokeDash=null;this._strokeIgnoreScale=!1;this._fill=null;this._instructions=[];this._commitIndex=0;this._activeInstructions=[];this._dirty=!1;this._storeIndex=0;this.clear()}var n=i.prototype,t=i,r;i.getRGB=function(n,t,i,r){return null!=n&&null==i&&(r=t,i=255&n,t=n>>8&255,n=n>>16&255),null==r?"rgb("+n+","+t+","+i+")":"rgba("+n+","+t+","+i+","+r+")"};i.getHSL=function(n,t,i,r){return null==r?"hsl("+n%360+","+t+"%,"+i+"%)":"hsla("+n%360+","+t+"%,"+i+"%,"+r+")"};i.BASE_64={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,0:52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"+":62,"/":63};i.STROKE_CAPS_MAP=["butt","round","square"];i.STROKE_JOINTS_MAP=["miter","round","bevel"];r=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");r.getContext&&(i._ctx=r.getContext("2d"),r.width=r.height=1);n.getInstructions=function(){return this._updateInstructions(),this._instructions};try{Object.defineProperties(n,{instructions:{get:n.getInstructions}})}catch(u){}n.isEmpty=function(){return!(this._instructions.length||this._activeInstructions.length)};n.draw=function(n,t){this._updateInstructions();for(var r=this._instructions,i=this._storeIndex,u=r.length;u>i;i++)r[i].exec(n,t)};n.drawAsPath=function(n){this._updateInstructions();for(var i,r=this._instructions,t=this._storeIndex,u=r.length;u>t;t++)(i=r[t]).path!==!1&&i.exec(n)};n.moveTo=function(n,i){return this.append(new t.MoveTo(n,i),!0)};n.lineTo=function(n,i){return this.append(new t.LineTo(n,i))};n.arcTo=function(n,i,r,u,f){return this.append(new t.ArcTo(n,i,r,u,f))};n.arc=function(n,i,r,u,f,e){return this.append(new t.Arc(n,i,r,u,f,e))};n.quadraticCurveTo=function(n,i,r,u){return this.append(new t.QuadraticCurveTo(n,i,r,u))};n.bezierCurveTo=function(n,i,r,u,f,e){return this.append(new t.BezierCurveTo(n,i,r,u,f,e))};n.rect=function(n,i,r,u){return this.append(new t.Rect(n,i,r,u))};n.closePath=function(){return this._activeInstructions.length?this.append(new t.ClosePath):this};n.clear=function(){return this._instructions.length=this._activeInstructions.length=this._commitIndex=0,this._strokeStyle=this._oldStrokeStyle=this._stroke=this._fill=this._strokeDash=this._oldStrokeDash=null,this._dirty=this._strokeIgnoreScale=!1,this};n.beginFill=function(n){return this._setFill(n?new t.Fill(n):null)};n.beginLinearGradientFill=function(n,i,r,u,f,e){return this._setFill((new t.Fill).linearGradient(n,i,r,u,f,e))};n.beginRadialGradientFill=function(n,i,r,u,f,e,o,s){return this._setFill((new t.Fill).radialGradient(n,i,r,u,f,e,o,s))};n.beginBitmapFill=function(n,i,r){return this._setFill(new t.Fill(null,r).bitmap(n,i))};n.endFill=function(){return this.beginFill()};n.setStrokeStyle=function(n,i,r,u,f){return this._updateInstructions(!0),this._strokeStyle=this.command=new t.StrokeStyle(n,i,r,u,f),this._stroke&&(this._stroke.ignoreScale=f),this._strokeIgnoreScale=f,this};n.setStrokeDash=function(n,i){return this._updateInstructions(!0),this._strokeDash=this.command=new t.StrokeDash(n,i),this};n.beginStroke=function(n){return this._setStroke(n?new t.Stroke(n):null)};n.beginLinearGradientStroke=function(n,i,r,u,f,e){return this._setStroke((new t.Stroke).linearGradient(n,i,r,u,f,e))};n.beginRadialGradientStroke=function(n,i,r,u,f,e,o,s){return this._setStroke((new t.Stroke).radialGradient(n,i,r,u,f,e,o,s))};n.beginBitmapStroke=function(n,i){return this._setStroke((new t.Stroke).bitmap(n,i))};n.endStroke=function(){return this.beginStroke()};n.curveTo=n.quadraticCurveTo;n.drawRect=n.rect;n.drawRoundRect=function(n,t,i,r,u){return this.drawRoundRectComplex(n,t,i,r,u,u,u,u)};n.drawRoundRectComplex=function(n,i,r,u,f,e,o,s){return this.append(new t.RoundRect(n,i,r,u,f,e,o,s))};n.drawCircle=function(n,i,r){return this.append(new t.Circle(n,i,r))};n.drawEllipse=function(n,i,r,u){return this.append(new t.Ellipse(n,i,r,u))};n.drawPolyStar=function(n,i,r,u,f,e){return this.append(new t.PolyStar(n,i,r,u,f,e))};n.append=function(n,t){return this._activeInstructions.push(n),this.command=n,t||(this._dirty=!0),this};n.decodePath=function(n){for(var y,l,u,t,p,w=[this.moveTo,this.lineTo,this.quadraticCurveTo,this.bezierCurveTo,this.closePath],b=[2,2,4,6,0],r=0,k=n.length,e=[],o=0,s=0,f=i.BASE_64;k>r;){var a=n.charAt(r),h=f[a],c=h>>3,v=w[c];if(!v||3&h)throw"bad path data (@"+r+"): "+a;for(y=b[c],c||(o=s=0),e.length=0,r++,l=(h>>2&1)+2,u=0;y>u;u++)t=f[n.charAt(r)],p=t>>5?-1:1,t=(31&t)<<6|f[n.charAt(r+1)],3==l&&(t=t<<6|f[n.charAt(r+2)]),t=p*t/10,u%2?o=t+=o:s=t+=s,e[u]=t,r+=l;v.apply(this,e)}return this};n.store=function(){return this._updateInstructions(!0),this._storeIndex=this._instructions.length,this};n.unstore=function(){return this._storeIndex=0,this};n.clone=function(){var n=new i;return n.command=this.command,n._stroke=this._stroke,n._strokeStyle=this._strokeStyle,n._strokeDash=this._strokeDash,n._strokeIgnoreScale=this._strokeIgnoreScale,n._fill=this._fill,n._instructions=this._instructions.slice(),n._commitIndex=this._commitIndex,n._activeInstructions=this._activeInstructions.slice(),n._dirty=this._dirty,n._storeIndex=this._storeIndex,n};n.toString=function(){return"[Graphics]"};n.mt=n.moveTo;n.lt=n.lineTo;n.at=n.arcTo;n.bt=n.bezierCurveTo;n.qt=n.quadraticCurveTo;n.a=n.arc;n.r=n.rect;n.cp=n.closePath;n.c=n.clear;n.f=n.beginFill;n.lf=n.beginLinearGradientFill;n.rf=n.beginRadialGradientFill;n.bf=n.beginBitmapFill;n.ef=n.endFill;n.ss=n.setStrokeStyle;n.sd=n.setStrokeDash;n.s=n.beginStroke;n.ls=n.beginLinearGradientStroke;n.rs=n.beginRadialGradientStroke;n.bs=n.beginBitmapStroke;n.es=n.endStroke;n.dr=n.drawRect;n.rr=n.drawRoundRect;n.rc=n.drawRoundRectComplex;n.dc=n.drawCircle;n.de=n.drawEllipse;n.dp=n.drawPolyStar;n.p=n.decodePath;n._updateInstructions=function(n){var t=this._instructions,u=this._activeInstructions,o=this._commitIndex,f,e,r;if(this._dirty&&u.length){for(t.length=o,t.push(i.beginCmd),f=u.length,e=t.length,t.length=e+f,r=0;f>r;r++)t[r+e]=u[r];this._fill&&t.push(this._fill);this._stroke&&(this._strokeDash!==this._oldStrokeDash&&(this._oldStrokeDash=this._strokeDash,t.push(this._strokeDash)),this._strokeStyle!==this._oldStrokeStyle&&(this._oldStrokeStyle=this._strokeStyle,t.push(this._strokeStyle)),t.push(this._stroke));this._dirty=!1}n&&(u.length=0,this._commitIndex=t.length)};n._setFill=function(n){return this._updateInstructions(!0),this.command=this._fill=n,this};n._setStroke=function(n){return this._updateInstructions(!0),(this.command=this._stroke=n)&&(n.ignoreScale=this._strokeIgnoreScale),this};(t.LineTo=function(n,t){this.x=n;this.y=t}).prototype.exec=function(n){n.lineTo(this.x,this.y)};(t.MoveTo=function(n,t){this.x=n;this.y=t}).prototype.exec=function(n){n.moveTo(this.x,this.y)};(t.ArcTo=function(n,t,i,r,u){this.x1=n;this.y1=t;this.x2=i;this.y2=r;this.radius=u}).prototype.exec=function(n){n.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)};(t.Arc=function(n,t,i,r,u,f){this.x=n;this.y=t;this.radius=i;this.startAngle=r;this.endAngle=u;this.anticlockwise=!!f}).prototype.exec=function(n){n.arc(this.x,this.y,this.radius,this.startAngle,this.endAngle,this.anticlockwise)};(t.QuadraticCurveTo=function(n,t,i,r){this.cpx=n;this.cpy=t;this.x=i;this.y=r}).prototype.exec=function(n){n.quadraticCurveTo(this.cpx,this.cpy,this.x,this.y)};(t.BezierCurveTo=function(n,t,i,r,u,f){this.cp1x=n;this.cp1y=t;this.cp2x=i;this.cp2y=r;this.x=u;this.y=f}).prototype.exec=function(n){n.bezierCurveTo(this.cp1x,this.cp1y,this.cp2x,this.cp2y,this.x,this.y)};(t.Rect=function(n,t,i,r){this.x=n;this.y=t;this.w=i;this.h=r}).prototype.exec=function(n){n.rect(this.x,this.y,this.w,this.h)};(t.ClosePath=function(){}).prototype.exec=function(n){n.closePath()};(t.BeginPath=function(){}).prototype.exec=function(n){n.beginPath()};n=(t.Fill=function(n,t){this.style=n;this.matrix=t}).prototype;n.exec=function(n){if(this.style){n.fillStyle=this.style;var t=this.matrix;t&&(n.save(),n.transform(t.a,t.b,t.c,t.d,t.tx,t.ty));n.fill();t&&n.restore()}};n.linearGradient=function(n,t,r,u,f,e){for(var s=this.style=i._ctx.createLinearGradient(r,u,f,e),o=0,h=n.length;h>o;o++)s.addColorStop(t[o],n[o]);return s.props={colors:n,ratios:t,x0:r,y0:u,x1:f,y1:e,type:"linear"},this};n.radialGradient=function(n,t,r,u,f,e,o,s){for(var c=this.style=i._ctx.createRadialGradient(r,u,f,e,o,s),h=0,l=n.length;l>h;h++)c.addColorStop(t[h],n[h]);return c.props={colors:n,ratios:t,x0:r,y0:u,r0:f,x1:e,y1:o,r1:s,type:"radial"},this};n.bitmap=function(n,t){if(n.naturalWidth||n.getContext||n.readyState>=2){var r=this.style=i._ctx.createPattern(n,t||"");r.props={image:n,repetition:t,type:"bitmap"}}return this};n.path=!1;n=(t.Stroke=function(n,t){this.style=n;this.ignoreScale=t}).prototype;n.exec=function(n){this.style&&(n.strokeStyle=this.style,this.ignoreScale&&(n.save(),n.setTransform(1,0,0,1,0,0)),n.stroke(),this.ignoreScale&&n.restore())};n.linearGradient=t.Fill.prototype.linearGradient;n.radialGradient=t.Fill.prototype.radialGradient;n.bitmap=t.Fill.prototype.bitmap;n.path=!1;n=(t.StrokeStyle=function(n,t,i,r,u){this.width=n;this.caps=t;this.joints=i;this.miterLimit=r;this.ignoreScale=u}).prototype;n.exec=function(n){n.lineWidth=null==this.width?"1":this.width;n.lineCap=null==this.caps?"butt":isNaN(this.caps)?this.caps:i.STROKE_CAPS_MAP[this.caps];n.lineJoin=null==this.joints?"miter":isNaN(this.joints)?this.joints:i.STROKE_JOINTS_MAP[this.joints];n.miterLimit=null==this.miterLimit?"10":this.miterLimit;n.ignoreScale=null==this.ignoreScale?!1:this.ignoreScale};n.path=!1;(t.StrokeDash=function(n,t){this.segments=n;this.offset=t||0}).prototype.exec=function(n){n.setLineDash&&(n.setLineDash(this.segments||t.StrokeDash.EMPTY_SEGMENTS),n.lineDashOffset=this.offset||0)};t.StrokeDash.EMPTY_SEGMENTS=[];(t.RoundRect=function(n,t,i,r,u,f,e,o){this.x=n;this.y=t;this.w=i;this.h=r;this.radiusTL=u;this.radiusTR=f;this.radiusBR=e;this.radiusBL=o}).prototype.exec=function(n){var o=(h>s?s:h)/2,c=0,l=0,a=0,v=0,t=this.x,i=this.y,s=this.w,h=this.h,r=this.radiusTL,u=this.radiusTR,f=this.radiusBR,e=this.radiusBL;0>r&&(r*=c=-1);r>o&&(r=o);0>u&&(u*=l=-1);u>o&&(u=o);0>f&&(f*=a=-1);f>o&&(f=o);0>e&&(e*=v=-1);e>o&&(e=o);n.moveTo(t+s-u,i);n.arcTo(t+s+u*l,i-u*l,t+s,i+u,u);n.lineTo(t+s,i+h-f);n.arcTo(t+s+f*a,i+h+f*a,t+s-f,i+h,f);n.lineTo(t+e,i+h);n.arcTo(t-e*v,i+h+e*v,t,i+h-e,e);n.lineTo(t,i+r);n.arcTo(t-r*c,i-r*c,t+r,i,r);n.closePath()};(t.Circle=function(n,t,i){this.x=n;this.y=t;this.radius=i}).prototype.exec=function(n){n.arc(this.x,this.y,this.radius,0,2*Math.PI)};(t.Ellipse=function(n,t,i,r){this.x=n;this.y=t;this.w=i;this.h=r}).prototype.exec=function(n){var i=this.x,u=this.y,o=this.w,s=this.h,l=.5522848,f=o/2*l,e=s/2*l,h=i+o,c=u+s,r=i+o/2,t=u+s/2;n.moveTo(i,t);n.bezierCurveTo(i,t-e,r-f,u,r,u);n.bezierCurveTo(r+f,u,h,t-e,h,t);n.bezierCurveTo(h,t+e,r+f,c,r,c);n.bezierCurveTo(r-f,c,i,t+e,i,t)};(t.PolyStar=function(n,t,i,r,u,f){this.x=n;this.y=t;this.radius=i;this.sides=r;this.pointSize=u;this.angle=f}).prototype.exec=function(n){var r=this.x,u=this.y,i=this.radius,t=(this.angle||0)/180*Math.PI,o=this.sides,f=1-(this.pointSize||0),s=Math.PI/o,e;for(n.moveTo(r+Math.cos(t)*i,u+Math.sin(t)*i),e=0;o>e;e++)t+=s,1!=f&&n.lineTo(r+Math.cos(t)*i*f,u+Math.sin(t)*i*f),t+=s,n.lineTo(r+Math.cos(t)*i,u+Math.sin(t)*i);n.closePath()};i.beginCmd=new t.BeginPath;createjs.Graphics=i}();this.createjs=this.createjs||{},function(){"use strict";function t(){this.EventDispatcher_constructor();this.alpha=1;this.cacheCanvas=null;this.cacheID=0;this.id=createjs.UID.get();this.mouseEnabled=!0;this.tickEnabled=!0;this.name=null;this.parent=null;this.regX=0;this.regY=0;this.rotation=0;this.scaleX=1;this.scaleY=1;this.skewX=0;this.skewY=0;this.shadow=null;this.visible=!0;this.x=0;this.y=0;this.transformMatrix=null;this.compositeOperation=null;this.snapToPixel=!0;this.filters=null;this.mask=null;this.hitArea=null;this.cursor=null;this._cacheOffsetX=0;this._cacheOffsetY=0;this._filterOffsetX=0;this._filterOffsetY=0;this._cacheScale=1;this._cacheDataURLID=0;this._cacheDataURL=null;this._props=new createjs.DisplayProps;this._rectangle=new createjs.Rectangle;this._bounds=null}var n=createjs.extend(t,createjs.EventDispatcher),i;t._MOUSE_EVENTS=["click","dblclick","mousedown","mouseout","mouseover","pressmove","pressup","rollout","rollover"];t.suppressCrossDomainErrors=!1;t._snapToPixelEnabled=!1;i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");i.getContext&&(t._hitTestCanvas=i,t._hitTestContext=i.getContext("2d"),i.width=i.height=1);t._nextCacheID=1;n.getStage=function(){for(var n=this,t=createjs.Stage;n.parent;)n=n.parent;return n instanceof t?n:null};try{Object.defineProperties(n,{stage:{get:n.getStage}})}catch(r){}n.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)};n.draw=function(n,t){var i=this.cacheCanvas,r;return t||!i?!1:(r=this._cacheScale,n.drawImage(i,this._cacheOffsetX+this._filterOffsetX,this._cacheOffsetY+this._filterOffsetY,i.width/r,i.height/r),!0)};n.updateContext=function(n){var r=this,u=r.mask,i=r._props.matrix,f,e;u&&u.graphics&&!u.graphics.isEmpty()&&(u.getMatrix(i),n.transform(i.a,i.b,i.c,i.d,i.tx,i.ty),u.graphics.drawAsPath(n),n.clip(),i.invert(),n.transform(i.a,i.b,i.c,i.d,i.tx,i.ty));this.getMatrix(i);f=i.tx;e=i.ty;t._snapToPixelEnabled&&r.snapToPixel&&(f=f+(0>f?-.5:.5)|0,e=e+(0>e?-.5:.5)|0);n.transform(i.a,i.b,i.c,i.d,f,e);n.globalAlpha*=r.alpha;r.compositeOperation&&(n.globalCompositeOperation=r.compositeOperation);r.shadow&&this._applyShadow(n,r.shadow)};n.cache=function(n,t,i,r,u){u=u||1;this.cacheCanvas||(this.cacheCanvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"));this._cacheWidth=i;this._cacheHeight=r;this._cacheOffsetX=n;this._cacheOffsetY=t;this._cacheScale=u;this.updateCache()};n.updateCache=function(n){var i=this.cacheCanvas;if(!i)throw"cache() must be called before updateCache()";var r=this._cacheScale,s=this._cacheOffsetX*r,h=this._cacheOffsetY*r,f=this._cacheWidth,e=this._cacheHeight,u=i.getContext("2d"),o=this._getFilterBounds();s+=this._filterOffsetX=o.x;h+=this._filterOffsetY=o.y;f=Math.ceil(f*r)+o.width;e=Math.ceil(e*r)+o.height;f!=i.width||e!=i.height?(i.width=f,i.height=e):n||u.clearRect(0,0,f+1,e+1);u.save();u.globalCompositeOperation=n;u.setTransform(r,0,0,r,-s,-h);this.draw(u,!0);this._applyFilters();u.restore();this.cacheID=t._nextCacheID++};n.uncache=function(){this._cacheDataURL=this.cacheCanvas=null;this.cacheID=this._cacheOffsetX=this._cacheOffsetY=this._filterOffsetX=this._filterOffsetY=0;this._cacheScale=1};n.getCacheDataURL=function(){return this.cacheCanvas?(this.cacheID!=this._cacheDataURLID&&(this._cacheDataURL=this.cacheCanvas.toDataURL()),this._cacheDataURL):null};n.localToGlobal=function(n,t,i){return this.getConcatenatedMatrix(this._props.matrix).transformPoint(n,t,i||new createjs.Point)};n.globalToLocal=function(n,t,i){return this.getConcatenatedMatrix(this._props.matrix).invert().transformPoint(n,t,i||new createjs.Point)};n.localToLocal=function(n,t,i,r){return r=this.localToGlobal(n,t,r),i.globalToLocal(r.x,r.y,r)};n.setTransform=function(n,t,i,r,u,f,e,o,s){return this.x=n||0,this.y=t||0,this.scaleX=null==i?1:i,this.scaleY=null==r?1:r,this.rotation=u||0,this.skewX=f||0,this.skewY=e||0,this.regX=o||0,this.regY=s||0,this};n.getMatrix=function(n){var t=this,i=n&&n.identity()||new createjs.Matrix2D;return t.transformMatrix?i.copy(t.transformMatrix):i.appendTransform(t.x,t.y,t.scaleX,t.scaleY,t.rotation,t.skewX,t.skewY,t.regX,t.regY)};n.getConcatenatedMatrix=function(n){for(var t=this,i=this.getMatrix(n);t=t.parent;)i.prependMatrix(t.getMatrix(t._props.matrix));return i};n.getConcatenatedDisplayProps=function(n){n=n?n.identity():new createjs.DisplayProps;var t=this,i=t.getMatrix(n.matrix);do n.prepend(t.visible,t.alpha,t.shadow,t.compositeOperation),t!=this&&i.prependMatrix(t.getMatrix(t._props.matrix));while(t=t.parent);return n};n.hitTest=function(n,i){var r=t._hitTestContext,u;return r.setTransform(1,0,0,1,-n,-i),this.draw(r),u=this._testHit(r),r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,2,2),u};n.set=function(n){for(var t in n)this[t]=n[t];return this};n.getBounds=function(){var n,t;return this._bounds?this._rectangle.copy(this._bounds):(n=this.cacheCanvas,n)?(t=this._cacheScale,this._rectangle.setValues(this._cacheOffsetX,this._cacheOffsetY,n.width/t,n.height/t)):null};n.getTransformedBounds=function(){return this._getBounds()};n.setBounds=function(n,t,i,r){null==n&&(this._bounds=n);this._bounds=(this._bounds||new createjs.Rectangle).setValues(n,t,i,r)};n.clone=function(){return this._cloneProps(new t)};n.toString=function(){return"[DisplayObject (name="+this.name+")]"};n._cloneProps=function(n){return n.alpha=this.alpha,n.mouseEnabled=this.mouseEnabled,n.tickEnabled=this.tickEnabled,n.name=this.name,n.regX=this.regX,n.regY=this.regY,n.rotation=this.rotation,n.scaleX=this.scaleX,n.scaleY=this.scaleY,n.shadow=this.shadow,n.skewX=this.skewX,n.skewY=this.skewY,n.visible=this.visible,n.x=this.x,n.y=this.y,n.compositeOperation=this.compositeOperation,n.snapToPixel=this.snapToPixel,n.filters=null==this.filters?null:this.filters.slice(0),n.mask=this.mask,n.hitArea=this.hitArea,n.cursor=this.cursor,n._bounds=this._bounds,n};n._applyShadow=function(n,t){t=t||Shadow.identity;n.shadowColor=t.color;n.shadowOffsetX=t.offsetX;n.shadowOffsetY=t.offsetY;n.shadowBlur=t.blur};n._tick=function(n){var t=this._listeners;t&&t.tick&&(n.target=null,n.propagationStopped=n.immediatePropagationStopped=!1,this.dispatchEvent(n))};n._testHit=function(n){try{var i=n.getImageData(0,0,1,1).data[3]>1}catch(r){if(!t.suppressCrossDomainErrors)throw"An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images.";}return i};n._applyFilters=function(){if(this.filters&&0!=this.filters.length&&this.cacheCanvas)for(var t=this.filters.length,i=this.cacheCanvas.getContext("2d"),r=this.cacheCanvas.width,u=this.cacheCanvas.height,n=0;t>n;n++)this.filters[n].applyFilter(i,0,0,r,u)};n._getFilterBounds=function(){var r,u=this.filters,t=this._rectangle.setValues(0,0,0,0),n,i;if(!u||!(r=u.length))return t;for(n=0;r>n;n++)i=this.filters[n],i.getBounds&&i.getBounds(t);return t};n._getBounds=function(n,t){return this._transformBounds(this.getBounds(),n,t)};n._transformBounds=function(n,t,i){if(!n)return n;var r=n.x,u=n.y,a=n.width,v=n.height,f=this._props.matrix;f=i?f.identity():this.getMatrix(f);(r||u)&&f.appendTransform(0,0,1,1,0,0,0,-r,-u);t&&f.prependMatrix(t);var y=a*f.a,p=a*f.b,w=v*f.c,b=v*f.d,c=f.tx,l=f.ty,e=c,s=c,o=l,h=l;return(r=y+c)<e?e=r:r>s&&(s=r),(r=y+w+c)<e?e=r:r>s&&(s=r),(r=w+c)<e?e=r:r>s&&(s=r),(u=p+l)<o?o=u:u>h&&(h=u),(u=p+b+l)<o?o=u:u>h&&(h=u),(u=b+l)<o?o=u:u>h&&(h=u),n.setValues(e,o,s-e,h-o)};n._hasMouseEventListener=function(){for(var i=t._MOUSE_EVENTS,n=0,r=i.length;r>n;n++)if(this.hasEventListener(i[n]))return!0;return!!this.cursor};createjs.DisplayObject=createjs.promote(t,"EventDispatcher")}();this.createjs=this.createjs||{},function(){"use strict";function t(){this.DisplayObject_constructor();this.children=[];this.mouseChildren=!0;this.tickChildren=!0}var n=createjs.extend(t,createjs.DisplayObject);n.getNumChildren=function(){return this.children.length};try{Object.defineProperties(n,{numChildren:{get:n.getNumChildren}})}catch(i){}n.initialize=t;n.isVisible=function(){var n=this.cacheCanvas||this.children.length;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&n)};n.draw=function(n,t){var i;if(this.DisplayObject_draw(n,t))return!0;for(var u=this.children.slice(),r=0,f=u.length;f>r;r++)i=u[r],i.isVisible()&&(n.save(),i.updateContext(n),i.draw(n),n.restore());return!0};n.addChild=function(n){var t,i;if(null==n)return n;if(t=arguments.length,t>1){for(i=0;t>i;i++)this.addChild(arguments[i]);return arguments[t-1]}return n.parent&&n.parent.removeChild(n),n.parent=this,this.children.push(n),n.dispatchEvent("added"),n};n.addChildAt=function(n,t){var i=arguments.length,u=arguments[i-1],r;if(0>u||u>this.children.length)return arguments[i-2];if(i>2){for(r=0;i-1>r;r++)this.addChildAt(arguments[r],u+r);return arguments[i-2]}return n.parent&&n.parent.removeChild(n),n.parent=this,this.children.splice(t,0,n),n.dispatchEvent("added"),n};n.removeChild=function(n){var r=arguments.length,t,i;if(r>1){for(t=!0,i=0;r>i;i++)t=t&&this.removeChild(arguments[i]);return t}return this.removeChildAt(createjs.indexOf(this.children,n))};n.removeChildAt=function(n){var f=arguments.length,i,r,t,u;if(f>1){for(i=[],t=0;f>t;t++)i[t]=arguments[t];for(i.sort(function(n,t){return t-n}),r=!0,t=0;f>t;t++)r=r&&this.removeChildAt(i[t]);return r}return 0>n||n>this.children.length-1?!1:(u=this.children[n],u&&(u.parent=null),this.children.splice(n,1),u.dispatchEvent("removed"),!0)};n.removeAllChildren=function(){for(var n=this.children;n.length;)this.removeChildAt(0)};n.getChildAt=function(n){return this.children[n]};n.getChildByName=function(n){for(var i=this.children,t=0,r=i.length;r>t;t++)if(i[t].name==n)return i[t];return null};n.sortChildren=function(n){this.children.sort(n)};n.getChildIndex=function(n){return createjs.indexOf(this.children,n)};n.swapChildrenAt=function(n,t){var i=this.children,r=i[n],u=i[t];r&&u&&(i[n]=u,i[t]=r)};n.swapChildren=function(n,t){for(var u,f,r=this.children,i=0,e=r.length;e>i&&(r[i]==n&&(u=i),r[i]==t&&(f=i),null==u||null==f);i++);i!=e&&(r[u]=t,r[f]=n)};n.setChildIndex=function(n,t){var r=this.children,u=r.length,i;if(!(n.parent!=this||0>t||t>=u)){for(i=0;u>i&&r[i]!=n;i++);i!=u&&i!=t&&(r.splice(i,1),r.splice(t,0,n))}};n.contains=function(n){for(;n;){if(n==this)return!0;n=n.parent}return!1};n.hitTest=function(n,t){return null!=this.getObjectUnderPoint(n,t)};n.getObjectsUnderPoint=function(n,t,i){var r=[],u=this.localToGlobal(n,t);return this._getObjectsUnderPoint(u.x,u.y,r,i>0,1==i),r};n.getObjectUnderPoint=function(n,t,i){var r=this.localToGlobal(n,t);return this._getObjectsUnderPoint(r.x,r.y,null,i>0,1==i)};n.getBounds=function(){return this._getBounds(null,!0)};n.getTransformedBounds=function(){return this._getBounds()};n.clone=function(n){var i=this._cloneProps(new t);return n&&this._cloneChildren(i),i};n.toString=function(){return"[Container (name="+this.name+")]"};n._tick=function(n){var t,i;if(this.tickChildren)for(t=this.children.length-1;t>=0;t--)i=this.children[t],i.tickEnabled&&i._tick&&i._tick(n);this.DisplayObject__tick(n)};n._cloneChildren=function(n){var i;n.children.length&&n.removeAllChildren();for(var r=n.children,t=0,u=this.children.length;u>t;t++)i=this.children[t].clone(!0),i.parent=n,r.push(i)};n._getObjectsUnderPoint=function(n,i,r,u,f,e){var h,c,o,s,v,l;if(e=e||0,!e&&!this._testMask(this,n,i))return null;c=createjs.DisplayObject._hitTestContext;f=f||u&&this._hasMouseEventListener();for(var y=this.children,p=y.length,a=p-1;a>=0;a--)if(o=y[a],s=o.hitArea,o.visible&&(s||o.isVisible())&&(!u||o.mouseEnabled)&&(s||this._testMask(o,n,i)))if(!s&&o instanceof t){if(v=o._getObjectsUnderPoint(n,i,r,u,f,e+1),!r&&v)return u&&!this.mouseChildren?this:v}else{if(u&&!f&&!o._hasMouseEventListener())continue;if(l=o.getConcatenatedDisplayProps(o._props),h=l.matrix,s&&(h.appendMatrix(s.getMatrix(s._props.matrix)),l.alpha=s.alpha),c.globalAlpha=l.alpha,c.setTransform(h.a,h.b,h.c,h.d,h.tx-n,h.ty-i),(s||o).draw(c),!this._testHit(c))continue;if(c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,2,2),!r)return u&&!this.mouseChildren?this:o;r.push(o)}return null};n._testMask=function(n,t,i){var f=n.mask,r,e,u;return!f||!f.graphics||f.graphics.isEmpty()?!0:(r=this._props.matrix,e=n.parent,r=e?e.getConcatenatedMatrix(r):r.identity(),r=f.getMatrix(f._props.matrix).prependMatrix(r),u=createjs.DisplayObject._hitTestContext,u.setTransform(r.a,r.b,r.c,r.d,r.tx-t,r.ty-i),f.graphics.drawAsPath(u),u.fillStyle="#000",u.fill(),this._testHit(u)?(u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,2,2),!0):!1)};n._getBounds=function(n,t){var i=this.DisplayObject_getBounds(),r,e;if(i)return this._transformBounds(i,n,t);r=this._props.matrix;r=t?r.identity():this.getMatrix(r);n&&r.prependMatrix(n);for(var o=this.children.length,u=null,f=0;o>f;f++)e=this.children[f],e.visible&&(i=e._getBounds(r))&&(u?u.extend(i.x,i.y,i.width,i.height):u=i.clone());return u};createjs.Container=createjs.promote(t,"DisplayObject")}();this.createjs=this.createjs||{},function(){"use strict";function t(n){this.Container_constructor();this.autoClear=!0;this.canvas="string"==typeof n?document.getElementById(n):n;this.mouseX=0;this.mouseY=0;this.drawRect=null;this.snapToPixelEnabled=!1;this.mouseInBounds=!1;this.tickOnUpdate=!0;this.mouseMoveOutside=!1;this.preventSelection=!0;this._pointerData={};this._pointerCount=0;this._primaryPointerID=null;this._mouseOverIntervalID=null;this._nextStage=null;this._prevStage=null;this.enableDOMEvents(!0)}var n=createjs.extend(t,createjs.Container);n._get_nextStage=function(){return this._nextStage};n._set_nextStage=function(n){this._nextStage&&(this._nextStage._prevStage=null);n&&(n._prevStage=this);this._nextStage=n};try{Object.defineProperties(n,{nextStage:{get:n._get_nextStage,set:n._set_nextStage}})}catch(i){}n.update=function(n){if(this.canvas&&(this.tickOnUpdate&&this.tick(n),this.dispatchEvent("drawstart",!1,!0)!==!1)){createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var i=this.drawRect,t=this.canvas.getContext("2d");t.setTransform(1,0,0,1,0,0);this.autoClear&&(i?t.clearRect(i.x,i.y,i.width,i.height):t.clearRect(0,0,this.canvas.width+1,this.canvas.height+1));t.save();this.drawRect&&(t.beginPath(),t.rect(i.x,i.y,i.width,i.height),t.clip());this.updateContext(t);this.draw(t,!1);t.restore();this.dispatchEvent("drawend")}};n.tick=function(n){var i,t;if(this.tickEnabled&&this.dispatchEvent("tickstart",!1,!0)!==!1){if(i=new createjs.Event("tick"),n)for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);this._tick(i);this.dispatchEvent("tickend")}};n.handleEvent=function(n){"tick"==n.type&&this.update(n)};n.clear=function(){if(this.canvas){var n=this.canvas.getContext("2d");n.setTransform(1,0,0,1,0,0);n.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)}};n.toDataURL=function(n,t){var r,i=this.canvas.getContext("2d"),u=this.canvas.width,f=this.canvas.height,e,o;return n&&(r=i.getImageData(0,0,u,f),e=i.globalCompositeOperation,i.globalCompositeOperation="destination-over",i.fillStyle=n,i.fillRect(0,0,u,f)),o=this.canvas.toDataURL(t||"image/png"),n&&(i.putImageData(r,0,0),i.globalCompositeOperation=e),o};n.enableMouseOver=function(n){if(this._mouseOverIntervalID&&(clearInterval(this._mouseOverIntervalID),this._mouseOverIntervalID=null,0==n&&this._testMouseOver(!0)),null==n)n=20;else if(0>=n)return;var t=this;this._mouseOverIntervalID=setInterval(function(){t._testMouseOver()},1e3/Math.min(50,n))};n.enableDOMEvents=function(n){var i,r,t,f,u;if(null==n&&(n=!0),t=this._eventListeners,!n&&t){for(i in t)r=t[i],r.t.removeEventListener(i,r.f,!1);this._eventListeners=null}else if(n&&!t&&this.canvas){f=window.addEventListener?window:document;u=this;t=this._eventListeners={};t.mouseup={t:f,f:function(n){u._handleMouseUp(n)}};t.mousemove={t:f,f:function(n){u._handleMouseMove(n)}};t.dblclick={t:this.canvas,f:function(n){u._handleDoubleClick(n)}};t.mousedown={t:this.canvas,f:function(n){u._handleMouseDown(n)}};for(i in t)r=t[i],r.t.addEventListener(i,r.f,!1)}};n.clone=function(){throw"Stage cannot be cloned.";};n.toString=function(){return"[Stage (name="+this.name+")]"};n._getElementRect=function(n){var i;try{i=n.getBoundingClientRect()}catch(h){i={top:n.offsetTop,left:n.offsetLeft,width:n.offsetWidth,height:n.offsetHeight}}var r=(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||document.body.clientLeft||0),u=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||document.body.clientTop||0),t=window.getComputedStyle?getComputedStyle(n,null):n.currentStyle,f=parseInt(t.paddingLeft)+parseInt(t.borderLeftWidth),e=parseInt(t.paddingTop)+parseInt(t.borderTopWidth),o=parseInt(t.paddingRight)+parseInt(t.borderRightWidth),s=parseInt(t.paddingBottom)+parseInt(t.borderBottomWidth);return{left:i.left+r+f,right:i.right+r-o,top:i.top+u+e,bottom:i.bottom+u-s}};n._getPointerData=function(n){var t=this._pointerData[n];return t||(t=this._pointerData[n]={x:0,y:0}),t};n._handleMouseMove=function(n){n||(n=window.event);this._handlePointerMove(-1,n,n.pageX,n.pageY)};n._handlePointerMove=function(n,t,i,r,u){if((!this._prevStage||void 0!==u)&&this.canvas){var o=this._nextStage,f=this._getPointerData(n),e=f.inBounds;this._updatePointerPosition(n,t,i,r);(e||f.inBounds||this.mouseMoveOutside)&&(-1===n&&f.inBounds==!e&&this._dispatchMouseEvent(this,e?"mouseleave":"mouseenter",!1,n,f,t),this._dispatchMouseEvent(this,"stagemousemove",!1,n,f,t),this._dispatchMouseEvent(f.target,"pressmove",!0,n,f,t));o&&o._handlePointerMove(n,t,i,r,null)}};n._updatePointerPosition=function(n,t,i,r){var f=this._getElementRect(this.canvas),e,o,u;i-=f.left;r-=f.top;e=this.canvas.width;o=this.canvas.height;i/=(f.right-f.left)/e;r/=(f.bottom-f.top)/o;u=this._getPointerData(n);(u.inBounds=i>=0&&r>=0&&e-1>=i&&o-1>=r)?(u.x=i,u.y=r):this.mouseMoveOutside&&(u.x=0>i?0:i>e-1?e-1:i,u.y=0>r?0:r>o-1?o-1:r);u.posEvtObj=t;u.rawX=i;u.rawY=r;(n===this._primaryPointerID||-1===n)&&(this.mouseX=u.x,this.mouseY=u.y,this.mouseInBounds=u.inBounds)};n._handleMouseUp=function(n){this._handlePointerUp(-1,n,!1)};n._handlePointerUp=function(n,t,i,r){var o=this._nextStage,u=this._getPointerData(n),f,e;this._prevStage&&void 0===r||(f=null,e=u.target,!r&&(e||o)&&(f=this._getObjectsUnderPoint(u.x,u.y,null,!0)),u.down&&(this._dispatchMouseEvent(this,"stagemouseup",!1,n,u,t,f),u.down=!1),f==e&&this._dispatchMouseEvent(e,"click",!0,n,u,t),this._dispatchMouseEvent(e,"pressup",!0,n,u,t),i?(n==this._primaryPointerID&&(this._primaryPointerID=null),delete this._pointerData[n]):u.target=null,o&&o._handlePointerUp(n,t,i,r||f&&this))};n._handleMouseDown=function(n){this._handlePointerDown(-1,n,n.pageX,n.pageY)};n._handlePointerDown=function(n,t,i,r,u){this.preventSelection&&t.preventDefault();(null==this._primaryPointerID||-1===n)&&(this._primaryPointerID=n);null!=r&&this._updatePointerPosition(n,t,i,r);var e=null,o=this._nextStage,f=this._getPointerData(n);u||(e=f.target=this._getObjectsUnderPoint(f.x,f.y,null,!0));f.inBounds&&(this._dispatchMouseEvent(this,"stagemousedown",!1,n,f,t,e),f.down=!0);this._dispatchMouseEvent(e,"mousedown",!0,n,f,t);o&&o._handlePointerDown(n,t,i,r,u||e&&this)};n._testMouseOver=function(n,t,i){var s,f;if(!this._prevStage||void 0!==t){if(s=this._nextStage,!this._mouseOverIntervalID)return void(s&&s._testMouseOver(n,t,i));if(f=this._getPointerData(-1),f&&(n||this.mouseX!=this._mouseOverX||this.mouseY!=this._mouseOverY||!this.mouseInBounds)){var e,r,y,o=f.posEvtObj,p=i||o&&o.target==this.canvas,u=null,v=-1,a="";!t&&(n||this.mouseInBounds&&p)&&(u=this._getObjectsUnderPoint(this.mouseX,this.mouseY,null,!0),this._mouseOverX=this.mouseX,this._mouseOverY=this.mouseY);var h=this._mouseOverTarget||[],c=h[h.length-1],l=this._mouseOverTarget=[];for(e=u;e;)l.unshift(e),a||(a=e.cursor),e=e.parent;for(this.canvas.style.cursor=a,!t&&i&&(i.canvas.style.cursor=a),r=0,y=l.length;y>r&&l[r]==h[r];r++)v=r;for(c!=u&&this._dispatchMouseEvent(c,"mouseout",!0,-1,f,o,u),r=h.length-1;r>v;r--)this._dispatchMouseEvent(h[r],"rollout",!1,-1,f,o,u);for(r=l.length-1;r>v;r--)this._dispatchMouseEvent(l[r],"rollover",!1,-1,f,o,c);c!=u&&this._dispatchMouseEvent(u,"mouseover",!0,-1,f,o,c);s&&s._testMouseOver(n,t||u&&this,i||p&&this)}}};n._handleDoubleClick=function(n,t){var i=null,u=this._nextStage,r=this._getPointerData(-1);t||(i=this._getObjectsUnderPoint(r.x,r.y,null,!0),this._dispatchMouseEvent(i,"dblclick",!0,-1,r,n));u&&u._handleDoubleClick(n,t||i&&this)};n._dispatchMouseEvent=function(n,t,i,r,u,f,e){if(n&&(i||n.hasEventListener(t))){var o=new createjs.MouseEvent(t,i,!1,u.x,u.y,f,r,r===this._primaryPointerID||-1===r,u.rawX,u.rawY,e);n.dispatchEvent(o)}};createjs.Stage=createjs.promote(t,"Container")}();this.createjs=this.createjs||{},function(){function t(n){this.DisplayObject_constructor();"string"==typeof n?(this.image=document.createElement("img"),this.image.src=n):this.image=n;this.sourceRect=null}var n=createjs.extend(t,createjs.DisplayObject);n.initialize=t;n.isVisible=function(){var n=this.image,t=this.cacheCanvas||n&&(n.naturalWidth||n.getContext||n.readyState>=2);return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&t)};n.draw=function(n,t){var f,u;if(this.DisplayObject_draw(n,t)||!this.image)return!0;if(f=this.image,u=this.sourceRect,u){var i=u.x,r=u.y,e=i+u.width,o=r+u.height,s=0,h=0,c=f.width,l=f.height;0>i&&(s-=i,i=0);e>c&&(e=c);0>r&&(h-=r,r=0);o>l&&(o=l);n.drawImage(f,i,r,e-i,o-r,s,h,e-i,o-r)}else n.drawImage(f,0,0);return!0};n.getBounds=function(){var t=this.DisplayObject_getBounds();if(t)return t;var n=this.image,i=this.sourceRect||n,r=n&&(n.naturalWidth||n.getContext||n.readyState>=2);return r?this._rectangle.setValues(0,0,i.width,i.height):null};n.clone=function(){var n=new t(this.image);return this.sourceRect&&(n.sourceRect=this.sourceRect.clone()),this._cloneProps(n),n};n.toString=function(){return"[Bitmap (name="+this.name+")]"};createjs.Bitmap=createjs.promote(t,"DisplayObject")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t){this.DisplayObject_constructor();this.currentFrame=0;this.currentAnimation=null;this.paused=!0;this.spriteSheet=n;this.currentAnimationFrame=0;this.framerate=0;this._animation=null;this._currentFrame=null;this._skipAdvance=!1;null!=t&&this.gotoAndPlay(t)}var n=createjs.extend(t,createjs.DisplayObject);n.initialize=t;n.isVisible=function(){var n=this.cacheCanvas||this.spriteSheet.complete;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&n)};n.draw=function(n,t){var r,i;return this.DisplayObject_draw(n,t)?!0:(this._normalizeFrame(),r=this.spriteSheet.getFrame(0|this._currentFrame),!r)?!1:(i=r.rect,i.width&&i.height&&n.drawImage(r.image,i.x,i.y,i.width,i.height,-r.regX,-r.regY,i.width,i.height),!0)};n.play=function(){this.paused=!1};n.stop=function(){this.paused=!0};n.gotoAndPlay=function(n){this.paused=!1;this._skipAdvance=!0;this._goto(n)};n.gotoAndStop=function(n){this.paused=!0;this._goto(n)};n.advance=function(n){var t=this.framerate||this.spriteSheet.framerate,i=t&&null!=n?n/(1e3/t):1;this._normalizeFrame(i)};n.getBounds=function(){return this.DisplayObject_getBounds()||this.spriteSheet.getFrameBounds(this.currentFrame,this._rectangle)};n.clone=function(){return this._cloneProps(new t(this.spriteSheet))};n.toString=function(){return"[Sprite (name="+this.name+")]"};n._cloneProps=function(n){return this.DisplayObject__cloneProps(n),n.currentFrame=this.currentFrame,n.currentAnimation=this.currentAnimation,n.paused=this.paused,n.currentAnimationFrame=this.currentAnimationFrame,n.framerate=this.framerate,n._animation=this._animation,n._currentFrame=this._currentFrame,n._skipAdvance=this._skipAdvance,n};n._tick=function(n){this.paused||(this._skipAdvance||this.advance(n&&n.delta),this._skipAdvance=!1);this.DisplayObject__tick(n)};n._normalizeFrame=function(n){var f,u,e;n=n||0;var t,i=this._animation,o=this.paused,r=this._currentFrame;if(i){if(f=i.speed||1,u=this.currentAnimationFrame,t=i.frames.length,u+n*f>=t){if(e=i.next,this._dispatchAnimationEnd(i,r,o,e,t-1))return;if(e)return this._goto(e,n-(t-u)/f);this.paused=!0;u=i.frames.length-1}else u+=n*f;this.currentAnimationFrame=u;this._currentFrame=i.frames[0|u]}else if(r=this._currentFrame+=n,t=this.spriteSheet.getNumFrames(),r>=t&&t>0&&!this._dispatchAnimationEnd(i,r,o,t-1)&&(this._currentFrame-=t)>=t)return this._normalizeFrame();r=0|this._currentFrame;this.currentFrame!=r&&(this.currentFrame=r,this.dispatchEvent("change"))};n._dispatchAnimationEnd=function(n,t,i,r,u){var o=n?n.name:null,f,e;return this.hasEventListener("animationend")&&(f=new createjs.Event("animationend"),f.name=o,f.next=r,this.dispatchEvent(f)),e=this._animation!=n||this._currentFrame!=t,e||i||!this.paused||(this.currentAnimationFrame=u,e=!0),e};n._goto=function(n,t){if(this.currentAnimationFrame=0,isNaN(n)){var i=this.spriteSheet.getAnimation(n);i&&(this._animation=i,this.currentAnimation=n,this._normalizeFrame(t))}else this.currentAnimation=this._animation=null,this._currentFrame=n,this._normalizeFrame()};createjs.Sprite=createjs.promote(t,"DisplayObject")}();this.createjs=this.createjs||{},function(){"use strict";function t(n){this.DisplayObject_constructor();this.graphics=n?n:new createjs.Graphics}var n=createjs.extend(t,createjs.DisplayObject);n.isVisible=function(){var n=this.cacheCanvas||this.graphics&&!this.graphics.isEmpty();return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&n)};n.draw=function(n,t){return this.DisplayObject_draw(n,t)?!0:(this.graphics.draw(n,this),!0)};n.clone=function(n){var i=n&&this.graphics?this.graphics.clone():this.graphics;return this._cloneProps(new t(i))};n.toString=function(){return"[Shape (name="+this.name+")]"};createjs.Shape=createjs.promote(t,"DisplayObject")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.DisplayObject_constructor();this.text=n;this.font=t;this.color=i;this.textAlign="left";this.textBaseline="top";this.maxWidth=null;this.outline=0;this.lineHeight=0;this.lineWidth=null}var n=createjs.extend(t,createjs.DisplayObject),i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");i.getContext&&(t._workingContext=i.getContext("2d"),i.width=i.height=1);t.H_OFFSETS={start:0,left:0,center:-.5,end:-1,right:-1};t.V_OFFSETS={top:0,hanging:-.01,middle:-.4,alphabetic:-.8,ideographic:-.85,bottom:-1};n.isVisible=function(){var n=this.cacheCanvas||null!=this.text&&""!==this.text;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&n)};n.draw=function(n,t){if(this.DisplayObject_draw(n,t))return!0;var i=this.color||"#000";return this.outline?(n.strokeStyle=i,n.lineWidth=1*this.outline):n.fillStyle=i,this._drawText(this._prepContext(n)),!0};n.getMeasuredWidth=function(){return this._getMeasuredWidth(this.text)};n.getMeasuredLineHeight=function(){return 1.2*this._getMeasuredWidth("M")};n.getMeasuredHeight=function(){return this._drawText(null,{}).height};n.getBounds=function(){var i=this.DisplayObject_getBounds();if(i)return i;if(null==this.text||""===this.text)return null;var n=this._drawText(null,{}),r=this.maxWidth&&this.maxWidth<n.width?this.maxWidth:n.width,u=r*t.H_OFFSETS[this.textAlign||"left"],f=this.lineHeight||this.getMeasuredLineHeight(),e=f*t.V_OFFSETS[this.textBaseline||"top"];return this._rectangle.setValues(u,e,r,n.height)};n.getMetrics=function(){var n={lines:[]};return n.lineHeight=this.lineHeight||this.getMeasuredLineHeight(),n.vOffset=n.lineHeight*t.V_OFFSETS[this.textBaseline||"top"],this._drawText(null,n,n.lines)};n.clone=function(){return this._cloneProps(new t(this.text,this.font,this.color))};n.toString=function(){return"[Text (text="+(this.text.length>20?this.text.substr(0,17)+"...":this.text)+")]"};n._cloneProps=function(n){return this.DisplayObject__cloneProps(n),n.textAlign=this.textAlign,n.textBaseline=this.textBaseline,n.maxWidth=this.maxWidth,n.outline=this.outline,n.lineHeight=this.lineHeight,n.lineWidth=this.lineWidth,n};n._prepContext=function(n){return n.font=this.font||"10px sans-serif",n.textAlign=this.textAlign||"left",n.textBaseline=this.textBaseline||"top",n};n._drawText=function(n,i,r){var c=!!n,u,f,e,o,p,v;c||(n=t._workingContext,n.save(),this._prepContext(n));for(var l=this.lineHeight||this.getMeasuredLineHeight(),s=0,h=0,y=String(this.text).split(/(?:\r\n|\r|\n)/),a=0,w=y.length;w>a;a++){if(u=y[a],f=null,null!=this.lineWidth&&(f=n.measureText(u).width)>this.lineWidth)for(e=u.split(/(\s)/),u=e[0],f=n.measureText(u).width,o=1,p=e.length;p>o;o+=2)v=n.measureText(e[o]+e[o+1]).width,f+v>this.lineWidth?(c&&this._drawTextLine(n,u,h*l),r&&r.push(u),f>s&&(s=f),u=e[o+1],f=n.measureText(u).width,h++):(u+=e[o]+e[o+1],f+=v);c&&this._drawTextLine(n,u,h*l);r&&r.push(u);i&&null==f&&(f=n.measureText(u).width);f>s&&(s=f);h++}return i&&(i.width=s,i.height=h*l),c||n.restore(),i};n._drawTextLine=function(n,t,i){this.outline?n.strokeText(t,0,i,this.maxWidth||65535):n.fillText(t,0,i,this.maxWidth||65535)};n._getMeasuredWidth=function(n){var i=t._workingContext,r;return i.save(),r=this._prepContext(i).measureText(n).width,i.restore(),r};createjs.Text=createjs.promote(t,"DisplayObject")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t){this.Container_constructor();this.text=n||"";this.spriteSheet=t;this.lineHeight=0;this.letterSpacing=0;this.spaceWidth=0;this._oldProps={text:0,spriteSheet:0,lineHeight:0,letterSpacing:0,spaceWidth:0}}var n=createjs.extend(t,createjs.Container);t.maxPoolSize=100;t._spritePool=[];n.draw=function(n,t){this.DisplayObject_draw(n,t)||(this._updateText(),this.Container_draw(n,t))};n.getBounds=function(){return this._updateText(),this.Container_getBounds()};n.isVisible=function(){var n=this.cacheCanvas||this.spriteSheet&&this.spriteSheet.complete&&this.text;return!!(this.visible&&this.alpha>0&&0!==this.scaleX&&0!==this.scaleY&&n)};n.clone=function(){return this._cloneProps(new t(this.text,this.spriteSheet))};n.addChild=n.addChildAt=n.removeChild=n.removeChildAt=n.removeAllChildren=function(){};n._cloneProps=function(n){return this.Container__cloneProps(n),n.lineHeight=this.lineHeight,n.letterSpacing=this.letterSpacing,n.spaceWidth=this.spaceWidth,n};n._getFrameIndex=function(n,t){var i,r=t.getAnimation(n);return r||(n!=(i=n.toUpperCase())||n!=(i=n.toLowerCase())||(i=null),i&&(r=t.getAnimation(i))),r&&r.frames[0]};n._getFrame=function(n,t){var i=this._getFrameIndex(n,t);return null==i?i:t.getFrame(i)};n._getLineHeight=function(n){var t=this._getFrame("1",n)||this._getFrame("T",n)||this._getFrame("L",n)||n.getFrame(0);return t?t.rect.height:1};n._getSpaceWidth=function(n){var t=this._getFrame("1",n)||this._getFrame("l",n)||this._getFrame("e",n)||this._getFrame("a",n)||n.getFrame(0);return t?t.rect.width:1};n._updateText=function(){var n,o=0,w=0,l=this._oldProps,b=!1,a=this.spaceWidth,v=this.lineHeight,u=this.spriteSheet,f=t._spritePool,s=this.children,h=0,c=s.length,e,y,i,k,r,p;for(e in l)l[e]!=this[e]&&(l[e]=this[e],b=!0);if(b){for(y=!!this._getFrame(" ",u),y||a||(a=this._getSpaceWidth(u)),v||(v=this._getLineHeight(u)),i=0,k=this.text.length;k>i;i++)r=this.text.charAt(i)," "!=r||y?"\n"!=r&&"\r"!=r?(p=this._getFrameIndex(r,u),null!=p&&(c>h?n=s[h]:(s.push(n=f.length?f.pop():new createjs.Sprite),n.parent=this,c++),n.spriteSheet=u,n.gotoAndStop(p),n.x=o,n.y=w,h++,o+=n.getBounds().width+this.letterSpacing)):("\r"==r&&"\n"==this.text.charAt(i+1)&&i++,o=0,w+=v):o+=a;for(;c>h;)f.push(n=s.pop()),n.parent=null,c--;f.length>t.maxPoolSize&&(f.length=t.maxPoolSize)}};createjs.BitmapText=createjs.promote(t,"Container")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,i,r,u){this.Container_constructor();!t.inited&&t.init();this.mode=n||t.INDEPENDENT;this.startPosition=i||0;this.loop=r;this.currentFrame=0;this.timeline=new createjs.Timeline(null,u,{paused:!0,position:i,useTicks:!0});this.paused=!1;this.actionsEnabled=!0;this.autoReset=!0;this.frameBounds=this.frameBounds||null;this.framerate=null;this._synchOffset=0;this._prevPos=-1;this._prevPosition=0;this._t=0;this._managed={}}function i(){throw"MovieClipPlugin cannot be instantiated.";}var n=createjs.extend(t,createjs.Container);t.INDEPENDENT="independent";t.SINGLE_FRAME="single";t.SYNCHED="synched";t.inited=!1;t.init=function(){t.inited||(i.install(),t.inited=!0)};n.getLabels=function(){return this.timeline.getLabels()};n.getCurrentLabel=function(){return this._updateTimeline(),this.timeline.getCurrentLabel()};n.getDuration=function(){return this.timeline.duration};try{Object.defineProperties(n,{labels:{get:n.getLabels},currentLabel:{get:n.getCurrentLabel},totalFrames:{get:n.getDuration},duration:{get:n.getDuration}})}catch(r){}n.initialize=t;n.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)};n.draw=function(n,t){return this.DisplayObject_draw(n,t)?!0:(this._updateTimeline(),this.Container_draw(n,t),!0)};n.play=function(){this.paused=!1};n.stop=function(){this.paused=!0};n.gotoAndPlay=function(n){this.paused=!1;this._goto(n)};n.gotoAndStop=function(n){this.paused=!0;this._goto(n)};n.advance=function(n){var e=t.INDEPENDENT,r,i,u,f;if(this.mode==e){for(r=this,i=r.framerate;(r=r.parent)&&null==i;)r.mode==e&&(i=r._framerate);for(this._framerate=i,u=null!=i&&-1!=i&&null!=n?n/(1e3/i)+this._t:1,f=0|u,this._t=u-f;!this.paused&&f--;)this._prevPosition=this._prevPos<0?0:this._prevPosition+1,this._updateTimeline()}};n.clone=function(){throw"MovieClip cannot be cloned.";};n.toString=function(){return"[MovieClip (name="+this.name+")]"};n._tick=function(n){this.advance(n&&n.delta);this.Container__tick(n)};n._goto=function(n){var t=this.timeline.resolve(n);null!=t&&(-1==this._prevPos&&(this._prevPos=NaN),this._prevPosition=t,this._t=0,this._updateTimeline())};n._reset=function(){this._prevPos=-1;this._t=this.currentFrame=0;this.paused=!1};n._updateTimeline=function(){var i=this.timeline,h=this.mode!=t.INDEPENDENT,f,c,l,u,r,e,o,s;if(i.loop=null==this.loop?!0:this.loop,f=h?this.startPosition+(this.mode==t.SINGLE_FRAME?0:this._synchOffset):this._prevPos<0?0:this._prevPosition,c=h||!this.actionsEnabled?createjs.Tween.NONE:null,this.currentFrame=i._calcPosition(f),i.setPosition(f,c),this._prevPosition=i._prevPosition,this._prevPos!=i._prevPos){this.currentFrame=this._prevPos=i._prevPos;for(l in this._managed)this._managed[l]=1;for(var a=i._tweens,n=0,v=a.length;v>n;n++)u=a[n],r=u._target,r==this||u.passive||(e=u._stepPosition,r instanceof createjs.DisplayObject?this._addManagedChild(r,e):this._setState(r.state,e));for(o=this.children,n=o.length-1;n>=0;n--)s=o[n].id,1==this._managed[s]&&(this.removeChildAt(n),delete this._managed[s])}};n._setState=function(n,t){var i,r;if(n)for(i=n.length-1;i>=0;i--){var u=n[i],f=u.t,e=u.p;for(r in e)f[r]=e[r];this._addManagedChild(f,t)}};n._addManagedChild=function(n,i){n._off||(this.addChildAt(n,0),n instanceof t&&(n._synchOffset=i,n.mode==t.INDEPENDENT&&n.autoReset&&!this._managed[n.id]&&n._reset()),this._managed[n.id]=2)};n._getBounds=function(n,t){var i=this.DisplayObject_getBounds();return i||(this._updateTimeline(),this.frameBounds&&(i=this._rectangle.copy(this.frameBounds[this.currentFrame]))),i?this._transformBounds(i,n,t):this.Container__getBounds(n,t)};createjs.MovieClip=createjs.promote(t,"Container");i.priority=100;i.install=function(){createjs.Tween.installPlugin(i,["startPosition"])};i.init=function(n,t,i){return i};i.step=function(){};i.tween=function(n,i,r,u,f,e){return n.target instanceof t?1==e?f[i]:u[i]:r}}();this.createjs=this.createjs||{},function(){"use strict";function n(){throw"SpriteSheetUtils cannot be instantiated";}var t=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");t.getContext&&(n._workingCanvas=t,n._workingContext=t.getContext("2d"),t.width=t.height=1);n.addFlippedFrames=function(t,i,r,u){if(i||r||u){var f=0;i&&n._flip(t,++f,!0,!1);r&&n._flip(t,++f,!1,!0);u&&n._flip(t,++f,!0,!0)}};n.extractFrame=function(t,i){var u,r,f,e;return(isNaN(i)&&(i=t.getAnimation(i).frames[0]),u=t.getFrame(i),!u)?null:(r=u.rect,f=n._workingCanvas,f.width=r.width,f.height=r.height,n._workingContext.drawImage(u.image,r.x,r.y,r.width,r.height,0,0,r.width,r.height),e=document.createElement("img"),e.src=f.toDataURL("image/png"),e)};n.mergeAlpha=function(n,t,i){i||(i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"));i.width=Math.max(t.width,n.width);i.height=Math.max(t.height,n.height);var r=i.getContext("2d");return r.save(),r.drawImage(n,0,0),r.globalCompositeOperation="destination-in",r.drawImage(t,0,0),r.restore(),i};n._flip=function(t,i,r,u){for(var f,s,h,w,o,y,k,c,p,tt,a=t._images,l=n._workingCanvas,v=n._workingContext,d=a.length/i,e=0;d>e;e++)f=a[e],f.__tmp=e,v.setTransform(1,0,0,1,0,0),v.clearRect(0,0,l.width+1,l.height+1),l.width=f.width,l.height=f.height,v.setTransform(r?-1:1,0,0,u?-1:1,r?f.width:0,u?f.height:0),v.drawImage(f,0,0),s=document.createElement("img"),s.src=l.toDataURL("image/png"),s.width=f.width,s.height=f.height,a.push(s);for(h=t._frames,w=h.length/i,e=0;w>e;e++)f=h[e],o=f.rect.clone(),s=a[f.image.__tmp+d*i],y={image:s,rect:o,regX:f.regX,regY:f.regY},r&&(o.x=s.width-o.x-o.width,y.regX=o.width-f.regX),u&&(o.y=s.height-o.y-o.height,y.regY=o.height-f.regY),h.push(y);var g="_"+(r?"h":"")+(u?"v":""),b=t._animations,nt=t._data,it=b.length/i;for(e=0;it>e;e++){for(k=b[e],f=nt[k],c={name:k+g,speed:f.speed,next:f.next,frames:[]},f.next&&(c.next+=g),h=f.frames,p=0,tt=h.length;tt>p;p++)c.frames.push(h[p]+w*i);nt[c.name]=c;b.push(c.name)}};createjs.SpriteSheetUtils=n}();this.createjs=this.createjs||{},function(){"use strict";function t(n){this.EventDispatcher_constructor();this.maxWidth=2048;this.maxHeight=2048;this.spriteSheet=null;this.scale=1;this.padding=1;this.timeSlice=.3;this.progress=-1;this.framerate=n||0;this._frames=[];this._animations={};this._data=null;this._nextFrameIndex=0;this._index=0;this._timerID=null;this._scale=1}var n=createjs.extend(t,createjs.EventDispatcher);t.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimensions";t.ERR_RUNNING="a build is already running";n.addFrame=function(n,i,r,u,f){if(this._data)throw t.ERR_RUNNING;var e=i||n.bounds||n.nominalBounds;return!e&&n.getBounds&&(e=n.getBounds()),e?(r=r||1,this._frames.push({source:n,sourceRect:e,scale:r,funct:u,data:f,index:this._frames.length,height:e.height*r})-1):null};n.addAnimation=function(n,i,r,u){if(this._data)throw t.ERR_RUNNING;this._animations[n]={frames:i,next:r,speed:u}};n.addMovieClip=function(n,i,r,u,f,e){var h,c,o,l,a,v,k,y,s,p;if(this._data)throw t.ERR_RUNNING;if(h=n.frameBounds,c=i||n.bounds||n.nominalBounds,!c&&n.getBounds&&(c=n.getBounds()),c||h){for(a=this._frames.length,v=n.timeline.duration,o=0;v>o;o++)k=h&&h[o]?h[o]:c,this.addFrame(n,k,r,this._setupMovieClipFrame,{i:o,f:u,d:f});y=n.timeline._labels;s=[];for(p in y)s.push({index:y[p],label:p});if(s.length)for(s.sort(function(n,t){return n.index-t.index}),o=0,l=s.length;l>o;o++){for(var w=s[o].label,d=a+s[o].index,g=a+(o==l-1?v:s[o+1].index),nt=[],b=d;g>b;b++)nt.push(b);(!e||(w=e(w,n,d,g)))&&this.addAnimation(w,nt,!0)}}};n.build=function(){if(this._data)throw t.ERR_RUNNING;for(this._startBuild();this._drawNext(););return this._endBuild(),this.spriteSheet};n.buildAsync=function(n){if(this._data)throw t.ERR_RUNNING;this.timeSlice=n;this._startBuild();var i=this;this._timerID=setTimeout(function(){i._run()},50-50*Math.max(.01,Math.min(.99,this.timeSlice||.3)))};n.stopAsync=function(){clearTimeout(this._timerID);this._data=null};n.clone=function(){throw"SpriteSheetBuilder cannot be cloned.";};n.toString=function(){return"[SpriteSheetBuilder]"};n._startBuild=function(){var s=this.padding||0,e,n,i,f;if(this.progress=0,this.spriteSheet=null,this._index=0,this._scale=this.scale,e=[],this._data={images:[],frames:e,framerate:this.framerate,animations:this._animations},n=this._frames.slice(),n.sort(function(n,t){return n.height<=t.height?-1:1}),n[n.length-1].height+2*s>this.maxHeight)throw t.ERR_DIMENSIONS;for(var r=0,u=0,o=0;n.length;)i=this._fillRow(n,r,o,e,s),(i.w>u&&(u=i.w),r+=i.h,i.h&&n.length)||(f=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"),f.width=this._getSize(u,this.maxWidth),f.height=this._getSize(r,this.maxHeight),this._data.images[o]=f,i.h||(u=r=0,o++))};n._setupMovieClipFrame=function(n,t){var i=n.actionsEnabled;n.actionsEnabled=!1;n.gotoAndStop(t.i);n.actionsEnabled=i;t.f&&t.f(n,t.d,t.i)};n._getSize=function(n,t){for(var i=4;Math.pow(2,++i)<n;);return Math.min(t,Math.pow(2,i))};n._fillRow=function(n,i,r,u,f){var y=this.maxWidth,w=this.maxHeight;i+=f;for(var b=w-i,s=f,v=0,c=n.length-1;c>=0;c--){var e=n[c],o=this._scale*e.scale,l=e.sourceRect,p=e.source,k=Math.floor(o*l.x-f),d=Math.floor(o*l.y-f),a=Math.ceil(o*l.height+2*f),h=Math.ceil(o*l.width+2*f);if(h>y)throw t.ERR_DIMENSIONS;a>b||s+h>y||(e.img=r,e.rect=new createjs.Rectangle(s,i,h,a),v=v||a,n.splice(c,1),u[e.index]=[s,i,h,a,r,Math.round(-k+o*p.regX-f),Math.round(-d+o*p.regY-f)],s+=h)}return{w:s,h:v}};n._endBuild=function(){this.spriteSheet=new createjs.SpriteSheet(this._data);this._data=null;this.progress=1;this.dispatchEvent("complete")};n._run=function(){for(var r,u,n,t=50*Math.max(.01,Math.min(.99,this.timeSlice||.3)),f=(new Date).getTime()+t,i=!1;f>(new Date).getTime();)if(!this._drawNext()){i=!0;break}i?this._endBuild():(r=this,this._timerID=setTimeout(function(){r._run()},50-t));u=this.progress=this._index/this._frames.length;this.hasEventListener("progress")&&(n=new createjs.Event("progress"),n.progress=u,this.dispatchEvent(n))};n._drawNext=function(){var n=this._frames[this._index],r=n.scale*this._scale,i=n.rect,u=n.sourceRect,f=this._data.images[n.img],t=f.getContext("2d");return n.funct&&n.funct(n.source,n.data),t.save(),t.beginPath(),t.rect(i.x,i.y,i.width,i.height),t.clip(),t.translate(Math.ceil(i.x-u.x*r),Math.ceil(i.y-u.y*r)),t.scale(r,r),n.source.draw(t),t.restore(),++this._index<this._frames.length};createjs.SpriteSheetBuilder=createjs.promote(t,"EventDispatcher")}();this.createjs=this.createjs||{},function(){"use strict";function t(n){this.DisplayObject_constructor();"string"==typeof n&&(n=document.getElementById(n));this.mouseEnabled=!1;var t=n.style;t.position="absolute";t.transformOrigin=t.WebkitTransformOrigin=t.msTransformOrigin=t.MozTransformOrigin=t.OTransformOrigin="0% 0%";this.htmlElement=n;this._oldProps=null}var n=createjs.extend(t,createjs.DisplayObject);n.isVisible=function(){return null!=this.htmlElement};n.draw=function(){return!0};n.cache=function(){};n.uncache=function(){};n.updateCache=function(){};n.hitTest=function(){};n.localToGlobal=function(){};n.globalToLocal=function(){};n.localToLocal=function(){};n.clone=function(){throw"DOMElement cannot be cloned.";};n.toString=function(){return"[DOMElement (name="+this.name+")]"};n._tick=function(n){var t=this.getStage();t&&t.on("drawend",this._handleDrawEnd,this,!0);this.DisplayObject__tick(n)};n._handleDrawEnd=function(){var e=this.htmlElement,f;if(e){var i=e.style,u=this.getConcatenatedDisplayProps(this._props),t=u.matrix,o=u.visible?"visible":"hidden";if(o!=i.visibility&&(i.visibility=o),u.visible){var r=this._oldProps,s=r&&r.matrix,n=1e4;s&&s.equals(t)||(f="matrix("+(t.a*n|0)/n+","+(t.b*n|0)/n+","+(t.c*n|0)/n+","+(t.d*n|0)/n+","+(t.tx+.5|0),i.transform=i.WebkitTransform=i.OTransform=i.msTransform=f+","+(t.ty+.5|0)+")",i.MozTransform=f+"px,"+(t.ty+.5|0)+"px)",r||(r=this._oldProps=new createjs.DisplayProps(!0,NaN)),r.matrix.copy(t));r.alpha!=u.alpha&&(i.opacity=""+(u.alpha*n|0)/n,r.alpha=u.alpha)}}};createjs.DOMElement=createjs.promote(t,"DisplayObject")}();this.createjs=this.createjs||{},function(){"use strict";function t(){}var n=t.prototype;n.getBounds=function(n){return n};n.applyFilter=function(n,t,i,r,u,f,e,o){f=f||n;null==e&&(e=t);null==o&&(o=i);try{var s=n.getImageData(t,i,r,u)}catch(h){return!1}return this._applyFilter(s)?(f.putImageData(s,e,o),!0):!1};n.toString=function(){return"[Filter]"};n.clone=function(){return new t};n._applyFilter=function(){return!0};createjs.Filter=t}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t,i){(isNaN(n)||0>n)&&(n=0);(isNaN(t)||0>t)&&(t=0);(isNaN(i)||1>i)&&(i=1);this.blurX=0|n;this.blurY=0|t;this.quality=0|i}var t=createjs.extend(n,createjs.Filter);n.MUL_TABLE=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37,145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87,173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1];n.SHG_TABLE=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15,16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16,17,14,17,16,17,16,17,16,17,9];t.getBounds=function(n){var i=0|this.blurX,r=0|this.blurY,t;return 0>=i&&0>=r?n:(t=Math.pow(this.quality,.2),(n||new createjs.Rectangle).pad(i*t+1,r*t+1,i*t+1,r*t+1))};t.clone=function(){return new n(this.blurX,this.blurY,this.quality)};t.toString=function(){return"[BlurFilter]"};t._applyFilter=function(t){var nt=this.blurX>>1,y,v,ut,o,h,c;if(isNaN(nt)||0>nt||(y=this.blurY>>1,isNaN(y)||0>y)||0==nt&&0==y)return!1;v=this.quality;(isNaN(v)||1>v)&&(v=1);v|=0;v>3&&(v=3);1>v&&(v=1);for(var i=t.data,a=0,p=0,e=0,r=0,lt=0,f=0,at=0,w=0,b=0,k=0,d=0,ft=0,et=0,ot=0,l=0,vt=nt+nt+1|0,yt=y+y+1|0,g=0|t.width,st=0|t.height,ht=g-1|0,rt=st-1|0,it=nt+1|0,tt=y+1|0,ct={r:0,b:0,g:0,a:0},s=ct,e=1;vt>e;e++)s=s.n={r:0,b:0,g:0,a:0};for(s.n=ct,ut={r:0,b:0,g:0,a:0},o=ut,e=1;yt>e;e++)o=o.n={r:0,b:0,g:0,a:0};o.n=ut;for(var u=null,pt=0|n.MUL_TABLE[nt],wt=0|n.SHG_TABLE[nt],bt=0|n.MUL_TABLE[y],kt=0|n.SHG_TABLE[y];v-->0;){for(at=f=0,h=pt,c=wt,p=st;--p>-1;){for(w=it*(ft=i[0|f]),b=it*(et=i[f+1|0]),k=it*(ot=i[f+2|0]),d=it*(l=i[f+3|0]),s=ct,e=it;--e>-1;)s.r=ft,s.g=et,s.b=ot,s.a=l,s=s.n;for(e=1;it>e;e++)r=f+((e>ht?ht:e)<<2)|0,w+=s.r=i[r],b+=s.g=i[r+1],k+=s.b=i[r+2],d+=s.a=i[r+3],s=s.n;for(u=ct,a=0;g>a;a++)i[f++]=w*h>>>c,i[f++]=b*h>>>c,i[f++]=k*h>>>c,i[f++]=d*h>>>c,r=at+((r=a+nt+1)<ht?r:ht)<<2,w-=u.r-(u.r=i[r]),b-=u.g-(u.g=i[r+1]),k-=u.b-(u.b=i[r+2]),d-=u.a-(u.a=i[r+3]),u=u.n;at+=g}for(h=bt,c=kt,a=0;g>a;a++){for(f=a<<2|0,w=tt*(ft=i[f])|0,b=tt*(et=i[f+1|0])|0,k=tt*(ot=i[f+2|0])|0,d=tt*(l=i[f+3|0])|0,o=ut,e=0;tt>e;e++)o.r=ft,o.g=et,o.b=ot,o.a=l,o=o.n;for(lt=g,e=1;y>=e;e++)f=lt+a<<2,w+=o.r=i[f],b+=o.g=i[f+1],k+=o.b=i[f+2],d+=o.a=i[f+3],o=o.n,rt>e&&(lt+=g);if(f=a,u=ut,v>0)for(p=0;st>p;p++)r=f<<2,i[r+3]=l=d*h>>>c,l>0?(i[r]=w*h>>>c,i[r+1]=b*h>>>c,i[r+2]=k*h>>>c):i[r]=i[r+1]=i[r+2]=0,r=a+((r=p+tt)<rt?r:rt)*g<<2,w-=u.r-(u.r=i[r]),b-=u.g-(u.g=i[r+1]),k-=u.b-(u.b=i[r+2]),d-=u.a-(u.a=i[r+3]),u=u.n,f+=g;else for(p=0;st>p;p++)r=f<<2,i[r+3]=l=d*h>>>c,l>0?(l=255/l,i[r]=(w*h>>>c)*l,i[r+1]=(b*h>>>c)*l,i[r+2]=(k*h>>>c)*l):i[r]=i[r+1]=i[r+2]=0,r=a+((r=p+tt)<rt?r:rt)*g<<2,w-=u.r-(u.r=i[r]),b-=u.g-(u.g=i[r+1]),k-=u.b-(u.b=i[r+2]),d-=u.a-(u.a=i[r+3]),u=u.n,f+=g}}return!0};createjs.BlurFilter=createjs.promote(n,"Filter")}();this.createjs=this.createjs||{},function(){"use strict";function t(n){this.alphaMap=n;this._alphaMap=null;this._mapData=null}var n=createjs.extend(t,createjs.Filter);n.clone=function(){var n=new t(this.alphaMap);return n._alphaMap=this._alphaMap,n._mapData=this._mapData,n};n.toString=function(){return"[AlphaMapFilter]"};n._applyFilter=function(n){if(!this.alphaMap)return!0;if(!this._prepAlphaMap())return!1;for(var i=n.data,r=this._mapData,t=0,u=i.length;u>t;t+=4)i[t+3]=r[t]||0;return!0};n._prepAlphaMap=function(){var i,n,t,r;if(!this.alphaMap)return!1;if(this.alphaMap==this._alphaMap&&this._mapData)return!0;this._mapData=null;n=this._alphaMap=this.alphaMap;t=n;n instanceof HTMLCanvasElement?i=t.getContext("2d"):(t=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"),t.width=n.width,t.height=n.height,i=t.getContext("2d"),i.drawImage(n,0,0));try{r=i.getImageData(0,0,n.width,n.height)}catch(u){return!1}return this._mapData=r.data,!0};createjs.AlphaMapFilter=createjs.promote(t,"Filter")}();this.createjs=this.createjs||{},function(){"use strict";function n(n){this.mask=n}var t=createjs.extend(n,createjs.Filter);t.applyFilter=function(n,t,i,r,u,f,e,o){return this.mask?(f=f||n,null==e&&(e=t),null==o&&(o=i),f.save(),n!=f?!1:(f.globalCompositeOperation="destination-in",f.drawImage(this.mask,e,o),f.restore(),!0)):!0};t.clone=function(){return new n(this.mask)};t.toString=function(){return"[AlphaMaskFilter]"};createjs.AlphaMaskFilter=createjs.promote(n,"Filter")}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t,i,r,u,f,e,o){this.redMultiplier=null!=n?n:1;this.greenMultiplier=null!=t?t:1;this.blueMultiplier=null!=i?i:1;this.alphaMultiplier=null!=r?r:1;this.redOffset=u||0;this.greenOffset=f||0;this.blueOffset=e||0;this.alphaOffset=o||0}var t=createjs.extend(n,createjs.Filter);t.toString=function(){return"[ColorFilter]"};t.clone=function(){return new n(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)};t._applyFilter=function(n){for(var i=n.data,r=i.length,t=0;r>t;t+=4)i[t]=i[t]*this.redMultiplier+this.redOffset,i[t+1]=i[t+1]*this.greenMultiplier+this.greenOffset,i[t+2]=i[t+2]*this.blueMultiplier+this.blueOffset,i[t+3]=i[t+3]*this.alphaMultiplier+this.alphaOffset;return!0};createjs.ColorFilter=createjs.promote(n,"Filter")}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t,i,r){this.setColor(n,t,i,r)}var t=n.prototype;n.DELTA_INDEX=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10];n.IDENTITY_MATRIX=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1];n.LENGTH=n.IDENTITY_MATRIX.length;t.setColor=function(n,t,i,r){return this.reset().adjustColor(n,t,i,r)};t.reset=function(){return this.copy(n.IDENTITY_MATRIX)};t.adjustColor=function(n,t,i,r){return this.adjustHue(r),this.adjustContrast(t),this.adjustBrightness(n),this.adjustSaturation(i)};t.adjustBrightness=function(n){return 0==n||isNaN(n)?this:(n=this._cleanValue(n,255),this._multiplyMatrix([1,0,0,0,n,0,1,0,0,n,0,0,1,0,n,0,0,0,1,0,0,0,0,0,1]),this)};t.adjustContrast=function(t){if(0==t||isNaN(t))return this;t=this._cleanValue(t,100);var i;return 0>t?i=127+t/100*127:(i=t%1,i=0==i?n.DELTA_INDEX[t]:n.DELTA_INDEX[t<<0]*(1-i)+n.DELTA_INDEX[(t<<0)+1]*i,i=127*i+127),this._multiplyMatrix([i/127,0,0,0,.5*(127-i),0,i/127,0,0,.5*(127-i),0,0,i/127,0,.5*(127-i),0,0,0,1,0,0,0,0,0,1]),this};t.adjustSaturation=function(n){if(0==n||isNaN(n))return this;n=this._cleanValue(n,100);var t=1+(n>0?3*n/100:n/100),i=.3086,r=.6094,u=.082;return this._multiplyMatrix([i*(1-t)+t,r*(1-t),u*(1-t),0,0,i*(1-t),r*(1-t)+t,u*(1-t),0,0,i*(1-t),r*(1-t),u*(1-t)+t,0,0,0,0,0,1,0,0,0,0,0,1]),this};t.adjustHue=function(n){if(0==n||isNaN(n))return this;n=this._cleanValue(n,180)/180*Math.PI;var t=Math.cos(n),i=Math.sin(n),r=.213,u=.715,f=.072;return this._multiplyMatrix([r+t*(1-r)+i*-r,u+t*-u+i*-u,f+t*-f+i*(1-f),0,0,r+t*-r+.143*i,u+t*(1-u)+.14*i,f+t*-f+i*-.283,0,0,r+t*-r+i*-(1-r),u+t*-u+i*u,f+t*(1-f)+i*f,0,0,0,0,0,1,0,0,0,0,0,1]),this};t.concat=function(t){return t=this._fixMatrix(t),t.length!=n.LENGTH?this:(this._multiplyMatrix(t),this)};t.clone=function(){return(new n).copy(this)};t.toArray=function(){for(var i=[],t=0,r=n.LENGTH;r>t;t++)i[t]=this[t];return i};t.copy=function(t){for(var r=n.LENGTH,i=0;r>i;i++)this[i]=t[i];return this};t.toString=function(){return"[ColorMatrix]"};t._multiplyMatrix=function(n){for(var t,r,f=[],u,i=0;5>i;i++){for(t=0;5>t;t++)f[t]=this[t+5*i];for(t=0;5>t;t++){for(u=0,r=0;5>r;r++)u+=n[t+5*r]*f[r];this[t+5*i]=u}}};t._cleanValue=function(n,t){return Math.min(t,Math.max(-t,n))};t._fixMatrix=function(t){return t instanceof n&&(t=t.toArray()),t.length<n.LENGTH?t=t.slice(0,t.length).concat(n.IDENTITY_MATRIX.slice(t.length,n.LENGTH)):t.length>n.LENGTH&&(t=t.slice(0,n.LENGTH)),t};createjs.ColorMatrix=n}();this.createjs=this.createjs||{},function(){"use strict";function n(n){this.matrix=n}var t=createjs.extend(n,createjs.Filter);t.toString=function(){return"[ColorMatrixFilter]"};t.clone=function(){return new n(this.matrix)};t._applyFilter=function(n){for(var u,f,e,o,r=n.data,s=r.length,t=this.matrix,h=t[0],c=t[1],l=t[2],a=t[3],v=t[4],y=t[5],p=t[6],w=t[7],b=t[8],k=t[9],d=t[10],g=t[11],nt=t[12],tt=t[13],it=t[14],rt=t[15],ut=t[16],ft=t[17],et=t[18],ot=t[19],i=0;s>i;i+=4)u=r[i],f=r[i+1],e=r[i+2],o=r[i+3],r[i]=u*h+f*c+e*l+o*a+v,r[i+1]=u*y+f*p+e*w+o*b+k,r[i+2]=u*d+f*g+e*nt+o*tt+it,r[i+3]=u*rt+f*ut+e*ft+o*et+ot;return!0};createjs.ColorMatrixFilter=createjs.promote(n,"Filter")}();this.createjs=this.createjs||{},function(){"use strict";function n(){throw"Touch cannot be instantiated";}n.isSupported=function(){return!!("ontouchstart"in window||window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>0||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>0)};n.enable=function(t,i,r){return t&&t.canvas&&n.isSupported()?t.__touch?!0:(t.__touch={pointers:{},multitouch:!i,preventDefault:!r,count:0},"ontouchstart"in window?n._IOS_enable(t):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&n._IE_enable(t),!0):!1};n.disable=function(t){t&&("ontouchstart"in window?n._IOS_disable(t):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&n._IE_disable(t),delete t.__touch)};n._IOS_enable=function(t){var i=t.canvas,r=t.__touch.f=function(i){n._IOS_handleEvent(t,i)};i.addEventListener("touchstart",r,!1);i.addEventListener("touchmove",r,!1);i.addEventListener("touchend",r,!1);i.addEventListener("touchcancel",r,!1)};n._IOS_disable=function(n){var t=n.canvas,i;t&&(i=n.__touch.f,t.removeEventListener("touchstart",i,!1),t.removeEventListener("touchmove",i,!1),t.removeEventListener("touchend",i,!1),t.removeEventListener("touchcancel",i,!1))};n._IOS_handleEvent=function(n,t){var i,u;if(n){n.__touch.preventDefault&&t.preventDefault&&t.preventDefault();for(var e=t.changedTouches,r=t.type,f=0,o=e.length;o>f;f++)i=e[f],u=i.identifier,i.target==n.canvas&&("touchstart"==r?this._handleStart(n,u,t,i.pageX,i.pageY):"touchmove"==r?this._handleMove(n,u,t,i.pageX,i.pageY):("touchend"==r||"touchcancel"==r)&&this._handleEnd(n,u,t))}};n._IE_enable=function(t){var r=t.canvas,i=t.__touch.f=function(i){n._IE_handleEvent(t,i)};void 0===window.navigator.pointerEnabled?(r.addEventListener("MSPointerDown",i,!1),window.addEventListener("MSPointerMove",i,!1),window.addEventListener("MSPointerUp",i,!1),window.addEventListener("MSPointerCancel",i,!1),t.__touch.preventDefault&&(r.style.msTouchAction="none")):(r.addEventListener("pointerdown",i,!1),window.addEventListener("pointermove",i,!1),window.addEventListener("pointerup",i,!1),window.addEventListener("pointercancel",i,!1),t.__touch.preventDefault&&(r.style.touchAction="none"));t.__touch.activeIDs={}};n._IE_disable=function(n){var t=n.__touch.f;void 0===window.navigator.pointerEnabled?(window.removeEventListener("MSPointerMove",t,!1),window.removeEventListener("MSPointerUp",t,!1),window.removeEventListener("MSPointerCancel",t,!1),n.canvas&&n.canvas.removeEventListener("MSPointerDown",t,!1)):(window.removeEventListener("pointermove",t,!1),window.removeEventListener("pointerup",t,!1),window.removeEventListener("pointercancel",t,!1),n.canvas&&n.canvas.removeEventListener("pointerdown",t,!1))};n._IE_handleEvent=function(n,t){if(n){n.__touch.preventDefault&&t.preventDefault&&t.preventDefault();var i=t.type,r=t.pointerId,u=n.__touch.activeIDs;if("MSPointerDown"==i||"pointerdown"==i){if(t.srcElement!=n.canvas)return;u[r]=!0;this._handleStart(n,r,t,t.pageX,t.pageY)}else u[r]&&("MSPointerMove"==i||"pointermove"==i?this._handleMove(n,r,t,t.pageX,t.pageY):("MSPointerUp"==i||"MSPointerCancel"==i||"pointerup"==i||"pointercancel"==i)&&(delete u[r],this._handleEnd(n,r,t)))}};n._handleStart=function(n,t,i,r,u){var f=n.__touch,e;(f.multitouch||!f.count)&&(e=f.pointers,e[t]||(e[t]=!0,f.count++,n._handlePointerDown(t,i,r,u)))};n._handleMove=function(n,t,i,r,u){n.__touch.pointers[t]&&n._handlePointerMove(t,i,r,u)};n._handleEnd=function(n,t,i){var r=n.__touch,u=r.pointers;u[t]&&(r.count--,n._handlePointerUp(t,i,!0),delete u[t])};createjs.Touch=n}();this.createjs=this.createjs||{},function(){"use strict";var n=createjs.EaselJS=createjs.EaselJS||{};n.version="0.8.2";n.buildDate="Thu, 26 Nov 2015 20:44:34 GMT"}();this.createjs=this.createjs||{},function(){"use strict";var n=createjs.PreloadJS=createjs.PreloadJS||{};n.version="0.6.2";n.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}();this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(n,t){var i=Array.prototype.slice.call(arguments,2);return function(){return n.apply(t,Array.prototype.slice.call(arguments,0).concat(i))}}}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t,i){this.Event_constructor("error");this.title=n;this.message=t;this.data=i}var t=createjs.extend(n,createjs.Event);t.clone=function(){return new createjs.ErrorEvent(this.title,this.message,this.data)};createjs.ErrorEvent=createjs.promote(n,"Event")}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.Event_constructor("progress");this.loaded=n;this.total=null==t?1:t;this.progress=0==t?0:this.loaded/this.total}var t=createjs.extend(n,createjs.Event);t.clone=function(){return new createjs.ProgressEvent(this.loaded,this.total)};createjs.ProgressEvent=createjs.promote(n,"Event")}(window),function(){function u(t,r){function l(n){var e,i,a,t,o,f,u;if(l[n]!==h)return l[n];if("bug-string-char-index"==n)e="a"!="a"[0];else if("json"==n)e=l("json-stringify")&&l("json-parse");else{if(a='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}',"json-stringify"==n){if(t=r.stringify,o="function"==typeof t&&c,o){(i=function(){return 1}).toJSON=i;try{o="0"===t(0)&&"0"===t(new lt)&&'""'==t(new et)&&t(s)===h&&t(h)===h&&t()===h&&"1"===t(i)&&"[1]"==t([i])&&"[null]"==t([h])&&"null"==t(null)&&"[null,null,null]"==t([h,s,null])&&t({a:[i,!0,!1,null,"\x00\b\n\f\r\t"]})==a&&"1"===t(null,i)&&"[\n 1,\n 2\n]"==t([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==t(new w(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==t(new w(864e13))&&'"-000001-01-01T00:00:00.000Z"'==t(new w(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==t(new w(-1))}catch(v){o=!1}}e=o}if("json-parse"==n){if(f=r.parse,"function"==typeof f)try{if(0===f("0")&&!f(!1)&&(i=f(a),u=5==i.a.length&&1===i.a[0],u)){try{u=!f('"\t"')}catch(v){}if(u)try{u=1!==f("01")}catch(v){}if(u)try{u=1!==f("1.")}catch(v){}}}catch(v){u=!1}e=u}}return l[n]=!!e}t||(t=n.Object());r||(r=n.Object());var lt=t.Number||n.Number,et=t.String||n.String,at=t.Object||n.Object,w=t.Date||n.Date,vt=t.SyntaxError||n.SyntaxError,yt=t.TypeError||n.TypeError,pt=t.Math||n.Math,g=t.JSON||n.JSON;"object"==typeof g&&g&&(r.stringify=g.stringify,r.parse=g.parse);var o,p,h,ot=at.prototype,s=ot.toString,c=new w(-0xc782b5b800cec);try{c=-109252==c.getUTCFullYear()&&0===c.getUTCMonth()&&1===c.getUTCDate()&&10==c.getUTCHours()&&37==c.getUTCMinutes()&&6==c.getUTCSeconds()&&708==c.getUTCMilliseconds()}catch(ri){}if(!l("json")){var b="[object Function]",wt="[object Date]",nt="[object Number]",tt="[object String]",it="[object Array]",bt="[object Boolean]",k=l("bug-string-char-index");if(!c)var a=pt.floor,kt=[0,31,59,90,120,151,181,212,243,273,304,334],d=function(n,t){return kt[t]+365*(n-1970)+a((n-1969+(t=+(t>1)))/4)-a((n-1901+t)/100)+a((n-1601+t)/400)};if((o=ot.hasOwnProperty)||(o=function(n){var i,t={};return(t.__proto__=null,t.__proto__={toString:1},t).toString!=s?o=function(n){var t=this.__proto__,i=n in(this.__proto__=null,this);return this.__proto__=t,i}:(i=t.constructor,o=function(n){var t=(this.constructor||i).prototype;return n in this&&!(n in t&&this[n]===t[n])}),t=null,o.call(this,n)}),p=function(n,t){var u,r,e,f=0;(u=function(){this.valueOf=0}).prototype.valueOf=0;r=new u;for(e in r)o.call(r,e)&&f++;return u=r=null,f?p=2==f?function(n,t){var i,r={},u=s.call(n)==b;for(i in n)(!u||"prototype"!=i)&&!o.call(r,i)&&(r[i]=1)&&o.call(n,i)&&t(i)}:function(n,t){var i,r,u=s.call(n)==b;for(i in n)u&&"prototype"==i||!o.call(n,i)||(r="constructor"===i)||t(i);(r||o.call(n,i="constructor"))&&t(i)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],p=function(n,t){var u,f,e=s.call(n)==b,h=!e&&"function"!=typeof n.constructor&&i[typeof n.hasOwnProperty]&&n.hasOwnProperty||o;for(u in n)e&&"prototype"==u||!h.call(n,u)||t(u);for(f=r.length;u=r[--f];h.call(n,u)&&t(u));}),p(n,t)},!l("json-stringify")){var dt={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},gt="000000",v=function(n,t){return(gt+(t||0)).slice(-n)},ni="\\u00",st=function(n){for(var i,r='"',t=0,u=n.length,f=!k||u>10,e=f&&(k?n.split(""):n);u>t;t++){i=n.charCodeAt(t);switch(i){case 8:case 9:case 10:case 12:case 13:case 34:case 92:r+=dt[i];break;default:if(32>i){r+=ni+v(2,i.toString(16));break}r+=f?e[t]:n.charAt(t)}}return r+'"'},ut=function(n,t,i,r,u,f,e){var c,y,l,k,w,g,et,ot,ht,ct,b,lt,ft,rt,at,vt;try{c=t[n]}catch(pt){}if("object"==typeof c&&c)if(y=s.call(c),y!=wt||o.call(c,"toJSON"))"function"==typeof c.toJSON&&(y!=nt&&y!=tt&&y!=it||o.call(c,"toJSON"))&&(c=c.toJSON(n));else if(c>-1/0&&1/0>c){if(d){for(w=a(c/864e5),l=a(w/365.2425)+1970-1;d(l+1,0)<=w;l++);for(k=a((w-d(l,0))/30.42);d(l,k+1)<=w;k++);w=1+w-d(l,k);g=(c%864e5+864e5)%864e5;et=a(g/36e5)%24;ot=a(g/6e4)%60;ht=a(g/1e3)%60;ct=g%1e3}else l=c.getUTCFullYear(),k=c.getUTCMonth(),w=c.getUTCDate(),et=c.getUTCHours(),ot=c.getUTCMinutes(),ht=c.getUTCSeconds(),ct=c.getUTCMilliseconds();c=(0>=l||l>=1e4?(0>l?"-":"+")+v(6,0>l?-l:l):v(4,l))+"-"+v(2,k+1)+"-"+v(2,w)+"T"+v(2,et)+":"+v(2,ot)+":"+v(2,ht)+"."+v(3,ct)+"Z"}else c=null;if(i&&(c=i.call(t,n,c)),null===c)return"null";if(y=s.call(c),y==bt)return""+c;if(y==nt)return c>-1/0&&1/0>c?""+c:"null";if(y==tt)return st(""+c);if("object"==typeof c){for(rt=e.length;rt--;)if(e[rt]===c)throw yt();if(e.push(c),b=[],at=f,f+=u,y==it){for(ft=0,rt=c.length;rt>ft;ft++)lt=ut(ft,c,i,r,u,f,e),b.push(lt===h?"null":lt);vt=b.length?u?"[\n"+f+b.join(",\n"+f)+"\n"+at+"]":"["+b.join(",")+"]":"[]"}else p(r||c,function(n){var t=ut(n,c,i,r,u,f,e);t!==h&&b.push(st(n)+":"+(u?" ":"")+t)}),vt=b.length?u?"{\n"+f+b.join(",\n"+f)+"\n"+at+"}":"{"+b.join(",")+"}":"{}";return e.pop(),vt}};r.stringify=function(n,t,r){var e,c,o,u,f,h,l;if(i[typeof t]&&t)if((u=s.call(t))==b)c=t;else if(u==it)for(o={},h=0,l=t.length;l>h;f=t[h++],u=s.call(f),(u==tt||u==nt)&&(o[f]=1));if(r)if((u=s.call(r))==nt){if((r-=r%1)>0)for(e="",r>10&&(r=10);e.length<r;e+=" ");}else u==tt&&(e=r.length<=10?r:r.slice(0,10));return ut("",(f={},f[""]=n,f),c,o,e,"",[])}}if(!l("json-parse")){var f,rt,ti=et.fromCharCode,ii={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},e=function(){throw f=rt=null,vt();},y=function(){for(var r,u,i,s,n,t=rt,o=t.length;o>f;)switch(n=t.charCodeAt(f)){case 9:case 10:case 13:case 32:f++;break;case 123:case 125:case 91:case 93:case 58:case 44:return r=k?t.charAt(f):t[f],f++,r;case 34:for(r="@",f++;o>f;)if(n=t.charCodeAt(f),32>n)e();else if(92==n)switch(n=t.charCodeAt(++f)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:r+=ii[n];f++;break;case 117:for(u=++f,i=f+4;i>f;f++)n=t.charCodeAt(f),n>=48&&57>=n||n>=97&&102>=n||n>=65&&70>=n||e();r+=ti("0x"+t.slice(u,f));break;default:e()}else{if(34==n)break;for(n=t.charCodeAt(f),u=f;n>=32&&92!=n&&34!=n;)n=t.charCodeAt(++f);r+=t.slice(u,f)}if(34==t.charCodeAt(f))return f++,r;e();default:if(u=f,45==n&&(s=!0,n=t.charCodeAt(++f)),n>=48&&57>=n){for(48==n&&(n=t.charCodeAt(f+1),n>=48&&57>=n)&&e(),s=!1;o>f&&(n=t.charCodeAt(f),n>=48&&57>=n);f++);if(46==t.charCodeAt(f)){for(i=++f;o>i&&(n=t.charCodeAt(i),n>=48&&57>=n);i++);i==f&&e();f=i}if(n=t.charCodeAt(f),101==n||69==n){for(n=t.charCodeAt(++f),(43==n||45==n)&&f++,i=f;o>i&&(n=t.charCodeAt(i),n>=48&&57>=n);i++);i==f&&e();f=i}return+t.slice(u,f)}if(s&&e(),"true"==t.slice(f,f+4))return f+=4,!0;if("false"==t.slice(f,f+5))return f+=5,!1;if("null"==t.slice(f,f+4))return f+=4,null;e()}return"$"},ft=function(n){var t,i;if("$"==n&&e(),"string"==typeof n){if("@"==(k?n.charAt(0):n[0]))return n.slice(1);if("["==n){for(t=[];n=y(),"]"!=n;i||(i=!0))i&&(","==n?(n=y(),"]"==n&&e()):e()),","==n&&e(),t.push(ft(n));return t}if("{"==n){for(t={};n=y(),"}"!=n;i||(i=!0))i&&(","==n?(n=y(),"}"==n&&e()):e()),(","==n||"string"!=typeof n||"@"!=(k?n.charAt(0):n[0])||":"!=y())&&e(),t[n.slice(1)]=ft(y());return t}e()}return n},ht=function(n,t,i){var r=ct(n,t,i);r===h?delete n[t]:n[t]=r},ct=function(n,t,i){var u,r=n[t];if("object"==typeof r&&r)if(s.call(r)==it)for(u=r.length;u--;)ht(r,u,i);else p(r,function(n){ht(r,n,i)});return i.call(n,t,r)};r.parse=function(n,t){var i,r;return f=0,rt=""+n,i=ft(y()),"$"!=y()&&e(),f=rt=null,t&&s.call(t)==b?ct((r={},r[""]=i,r),"",t):i}}}return r.runInContext=u,r}var e="function"==typeof define&&define.amd,i={"function":!0,object:!0},f=i[typeof exports]&&exports&&!exports.nodeType&&exports,n=i[typeof window]&&window||this,t=f&&i[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;if(!t||t.global!==t&&t.window!==t&&t.self!==t||(n=t),f&&!e)u(n,f);else{var o=n.JSON,s=n.JSON3,h=!1,r=u(n,n.JSON3={noConflict:function(){return h||(h=!0,n.JSON=o,n.JSON3=s,o=s=null),r}});n.JSON={parse:r.parse,stringify:r.stringify}}e&&define(function(){return r})}.call(this),function(){var n={};n.appendToHead=function(t){n.getHead().appendChild(t)};n.getHead=function(){return document.head||document.getElementsByTagName("head")[0]};n.getBody=function(){return document.body||document.getElementsByTagName("body")[0]};createjs.DomUtils=n}(),function(){var n={};n.parseXML=function(n,t){var i=null,r;try{window.DOMParser&&(r=new DOMParser,i=r.parseFromString(n,t))}catch(u){}if(!i)try{i=new ActiveXObject("Microsoft.XMLDOM");i.async=!1;i.loadXML(n)}catch(u){i=null}return i};n.parseJSON=function(n){if(null==n)return null;try{return JSON.parse(n)}catch(t){throw t;}};createjs.DataUtils=n}();this.createjs=this.createjs||{},function(){"use strict";function t(){this.src=null;this.type=null;this.id=null;this.maintainOrder=!1;this.callback=null;this.data=null;this.method=createjs.LoadItem.GET;this.values=null;this.headers=null;this.withCredentials=!1;this.mimeType=null;this.crossOrigin=null;this.loadTimeout=n.LOAD_TIMEOUT_DEFAULT}var i=t.prototype={},n=t;n.LOAD_TIMEOUT_DEFAULT=8e3;n.create=function(i){if("string"==typeof i){var r=new t;return r.src=i,r}if(i instanceof n)return i;if(i instanceof Object&&i.src)return null==i.loadTimeout&&(i.loadTimeout=n.LOAD_TIMEOUT_DEFAULT),i;throw new Error("Type not recognized.");};i.set=function(n){for(var t in n)this[t]=n[t];return this};createjs.LoadItem=n}(),function(){var n={};n.ABSOLUTE_PATT=/^(?:\w+:)?\/{2}/i;n.RELATIVE_PATT=/^[.\/]*?\//i;n.EXTENSION_PATT=/\/?[^\/]+\.(\w{1,5})$/i;n.parseURI=function(t){var i={absolute:!1,relative:!1},r,u;return null==t?i:(r=t.indexOf("?"),r>-1&&(t=t.substr(0,r)),n.ABSOLUTE_PATT.test(t)?i.absolute=!0:n.RELATIVE_PATT.test(t)&&(i.relative=!0),(u=t.match(n.EXTENSION_PATT))&&(i.extension=u[1].toLowerCase()),i)};n.formatQueryString=function(n,t){var i,r;if(null==n)throw new Error("You must specify data.");i=[];for(r in n)i.push(r+"="+escape(n[r]));return t&&(i=i.concat(t)),i.join("&")};n.buildPath=function(n,t){var i,r,u;return null==t?n:(i=[],r=n.indexOf("?"),-1!=r&&(u=n.slice(r+1),i=i.concat(u.split("&"))),-1!=r?n.slice(0,r)+"?"+this.formatQueryString(t,i):n+"?"+this.formatQueryString(t,i))};n.isCrossDomain=function(n){var t=document.createElement("a"),i;return t.href=n.src,i=document.createElement("a"),i.href=location.href,""!=t.hostname&&(t.port!=i.port||t.protocol!=i.protocol||t.hostname!=i.hostname)};n.isLocal=function(n){var t=document.createElement("a");return t.href=n.src,""==t.hostname&&"file:"==t.protocol};n.isBinary=function(n){switch(n){case createjs.AbstractLoader.IMAGE:case createjs.AbstractLoader.BINARY:return!0;default:return!1}};n.isImageTag=function(n){return n instanceof HTMLImageElement};n.isAudioTag=function(n){return window.HTMLAudioElement?n instanceof HTMLAudioElement:!1};n.isVideoTag=function(n){return window.HTMLVideoElement?n instanceof HTMLVideoElement:!1};n.isText=function(n){switch(n){case createjs.AbstractLoader.TEXT:case createjs.AbstractLoader.JSON:case createjs.AbstractLoader.MANIFEST:case createjs.AbstractLoader.XML:case createjs.AbstractLoader.CSS:case createjs.AbstractLoader.SVG:case createjs.AbstractLoader.JAVASCRIPT:case createjs.AbstractLoader.SPRITESHEET:return!0;default:return!1}};n.getTypeByExtension=function(n){if(null==n)return createjs.AbstractLoader.TEXT;switch(n.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.AbstractLoader.IMAGE;case"ogg":case"mp3":case"webm":return createjs.AbstractLoader.SOUND;case"mp4":case"webm":case"ts":return createjs.AbstractLoader.VIDEO;case"json":return createjs.AbstractLoader.JSON;case"xml":return createjs.AbstractLoader.XML;case"css":return createjs.AbstractLoader.CSS;case"js":return createjs.AbstractLoader.JAVASCRIPT;case"svg":return createjs.AbstractLoader.SVG;default:return createjs.AbstractLoader.TEXT}};createjs.RequestUtils=n}();this.createjs=this.createjs||{},function(){"use strict";function i(n,t,i){this.EventDispatcher_constructor();this.loaded=!1;this.canceled=!1;this.progress=0;this.type=i;this.resultFormatter=null;this._item=n?createjs.LoadItem.create(n):null;this._preferXHR=t;this._result=null;this._rawResult=null;this._loadedItems=null;this._tagSrcAttribute=null;this._tag=null}var n=createjs.extend(i,createjs.EventDispatcher),t=i;t.POST="POST";t.GET="GET";t.BINARY="binary";t.CSS="css";t.IMAGE="image";t.JAVASCRIPT="javascript";t.JSON="json";t.JSONP="jsonp";t.MANIFEST="manifest";t.SOUND="sound";t.VIDEO="video";t.SPRITESHEET="spritesheet";t.SVG="svg";t.TEXT="text";t.XML="xml";n.getItem=function(){return this._item};n.getResult=function(n){return n?this._rawResult:this._result};n.getTag=function(){return this._tag};n.setTag=function(n){this._tag=n};n.load=function(){this._createRequest();this._request.on("complete",this,this);this._request.on("progress",this,this);this._request.on("loadStart",this,this);this._request.on("abort",this,this);this._request.on("timeout",this,this);this._request.on("error",this,this);var n=new createjs.Event("initialize");n.loader=this._request;this.dispatchEvent(n);this._request.load()};n.cancel=function(){this.canceled=!0;this.destroy()};n.destroy=function(){this._request&&(this._request.removeAllEventListeners(),this._request.destroy());this._request=null;this._item=null;this._rawResult=null;this._result=null;this._loadItems=null;this.removeAllEventListeners()};n.getLoadedItems=function(){return this._loadedItems};n._createRequest=function(){this._request=this._preferXHR?new createjs.XHRRequest(this._item):new createjs.TagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)};n._createTag=function(){return null};n._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")};n._sendProgress=function(n){if(!this._isCanceled()){var t=null;"number"==typeof n?(this.progress=n,t=new createjs.ProgressEvent(this.progress)):(t=n,this.progress=n.loaded/n.total,t.progress=this.progress,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0));this.hasEventListener("progress")&&this.dispatchEvent(t)}};n._sendComplete=function(){if(!this._isCanceled()){this.loaded=!0;var n=new createjs.Event("complete");n.rawResult=this._rawResult;null!=this._result&&(n.result=this._result);this.dispatchEvent(n)}};n._sendError=function(n){!this._isCanceled()&&this.hasEventListener("error")&&(null==n&&(n=new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")),this.dispatchEvent(n))};n._isCanceled=function(){return null==window.createjs||this.canceled?!0:!1};n.resultFormatter=null;n.handleEvent=function(n){switch(n.type){case"complete":this._rawResult=n.target._response;var t=this.resultFormatter&&this.resultFormatter(this);t instanceof Function?t.call(this,createjs.proxy(this._resultFormatSuccess,this),createjs.proxy(this._resultFormatFailed,this)):(this._result=t||this._rawResult,this._sendComplete());break;case"progress":this._sendProgress(n);break;case"error":this._sendError(n);break;case"loadstart":this._sendLoadStart();break;case"abort":case"timeout":this._isCanceled()||this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_"+n.type.toUpperCase()+"_ERROR"))}};n._resultFormatSuccess=function(n){this._result=n;this._sendComplete()};n._resultFormatFailed=function(n){this._sendError(n)};n.buildPath=function(n,t){return createjs.RequestUtils.buildPath(n,t)};n.toString=function(){return"[PreloadJS AbstractLoader]"};createjs.AbstractLoader=createjs.promote(i,"EventDispatcher")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.AbstractLoader_constructor(n,t,i);this.resultFormatter=this._formatResult;this._tagSrcAttribute="src";this.on("initialize",this._updateXHR,this)}var n=createjs.extend(t,createjs.AbstractLoader);n.load=function(){this._tag||(this._tag=this._createTag(this._item.src));this._tag.preload="auto";this._tag.load();this.AbstractLoader_load()};n._createTag=function(){};n._createRequest=function(){this._request=this._preferXHR?new createjs.XHRRequest(this._item):new createjs.MediaTagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)};n._updateXHR=function(n){n.loader.setResponseType&&n.loader.setResponseType("blob")};n._formatResult=function(n){if(this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._preferXHR){var t=window.URL||window.webkitURL,i=n.getResult(!0);n.getTag().src=t.createObjectURL(i)}return n.getTag()};createjs.AbstractMediaLoader=createjs.promote(t,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";var t=function(n){this._item=n},n=createjs.extend(t,createjs.EventDispatcher);n.load=function(){};n.destroy=function(){};n.cancel=function(){};createjs.AbstractRequest=createjs.promote(t,"EventDispatcher")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.AbstractRequest_constructor(n);this._tag=t;this._tagSrcAttribute=i;this._loadedHandler=createjs.proxy(this._handleTagComplete,this);this._addedToDOM=!1;this._startTagVisibility=null}var n=createjs.extend(t,createjs.AbstractRequest);n.load=function(){this._tag.onload=createjs.proxy(this._handleTagComplete,this);this._tag.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this);this._tag.onerror=createjs.proxy(this._handleError,this);var n=new createjs.Event("initialize");n.loader=this._tag;this.dispatchEvent(n);this._hideTag();this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout);this._tag[this._tagSrcAttribute]=this._item.src;null==this._tag.parentNode&&(window.document.body.appendChild(this._tag),this._addedToDOM=!0)};n.destroy=function(){this._clean();this._tag=null;this.AbstractRequest_destroy()};n._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var n=this._tag;("loaded"==n.readyState||"complete"==n.readyState)&&this._handleTagComplete()};n._handleError=function(){this._clean();this.dispatchEvent("error")};n._handleTagComplete=function(){this._rawResult=this._tag;this._result=this.resultFormatter&&this.resultFormatter(this)||this._rawResult;this._clean();this._showTag();this.dispatchEvent("complete")};n._handleTimeout=function(){this._clean();this.dispatchEvent(new createjs.Event("timeout"))};n._clean=function(){this._tag.onload=null;this._tag.onreadystatechange=null;this._tag.onerror=null;this._addedToDOM&&null!=this._tag.parentNode&&this._tag.parentNode.removeChild(this._tag);clearTimeout(this._loadTimeout)};n._hideTag=function(){this._startTagVisibility=this._tag.style.visibility;this._tag.style.visibility="hidden"};n._showTag=function(){this._tag.style.visibility=this._startTagVisibility};n._handleStalled=function(){};createjs.TagRequest=createjs.promote(t,"AbstractRequest")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.AbstractRequest_constructor(n);this._tag=t;this._tagSrcAttribute=i;this._loadedHandler=createjs.proxy(this._handleTagComplete,this)}var n=createjs.extend(t,createjs.TagRequest);n.load=function(){var t=createjs.proxy(this._handleStalled,this),n;this._stalledCallback=t;n=createjs.proxy(this._handleProgress,this);this._handleProgress=n;this._tag.addEventListener("stalled",t);this._tag.addEventListener("progress",n);this._tag.addEventListener&&this._tag.addEventListener("canplaythrough",this._loadedHandler,!1);this.TagRequest_load()};n._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var n=this._tag;("loaded"==n.readyState||"complete"==n.readyState)&&this._handleTagComplete()};n._handleStalled=function(){};n._handleProgress=function(n){if(n&&!(n.loaded>0&&0==n.total)){var t=new createjs.ProgressEvent(n.loaded,n.total);this.dispatchEvent(t)}};n._clean=function(){this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler);this._tag.removeEventListener("stalled",this._stalledCallback);this._tag.removeEventListener("progress",this._progressCallback);this.TagRequest__clean()};createjs.MediaTagRequest=createjs.promote(t,"TagRequest")}();this.createjs=this.createjs||{},function(){"use strict";function t(n){this.AbstractRequest_constructor(n);this._request=null;this._loadTimeout=null;this._xhrLevel=1;this._response=null;this._rawResponse=null;this._canceled=!1;this._handleLoadStartProxy=createjs.proxy(this._handleLoadStart,this);this._handleProgressProxy=createjs.proxy(this._handleProgress,this);this._handleAbortProxy=createjs.proxy(this._handleAbort,this);this._handleErrorProxy=createjs.proxy(this._handleError,this);this._handleTimeoutProxy=createjs.proxy(this._handleTimeout,this);this._handleLoadProxy=createjs.proxy(this._handleLoad,this);this._handleReadyStateChangeProxy=createjs.proxy(this._handleReadyStateChange,this);!this._createXHR(n)}var n=createjs.extend(t,createjs.AbstractRequest);t.ACTIVEX_VERSIONS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];n.getResult=function(n){return n&&this._rawResponse?this._rawResponse:this._response};n.cancel=function(){this.canceled=!0;this._clean();this._request.abort()};n.load=function(){if(null==this._request)return void this._handleError();null!=this._request.addEventListener?(this._request.addEventListener("loadstart",this._handleLoadStartProxy,!1),this._request.addEventListener("progress",this._handleProgressProxy,!1),this._request.addEventListener("abort",this._handleAbortProxy,!1),this._request.addEventListener("error",this._handleErrorProxy,!1),this._request.addEventListener("timeout",this._handleTimeoutProxy,!1),this._request.addEventListener("load",this._handleLoadProxy,!1),this._request.addEventListener("readystatechange",this._handleReadyStateChangeProxy,!1)):(this._request.onloadstart=this._handleLoadStartProxy,this._request.onprogress=this._handleProgressProxy,this._request.onabort=this._handleAbortProxy,this._request.onerror=this._handleErrorProxy,this._request.ontimeout=this._handleTimeoutProxy,this._request.onload=this._handleLoadProxy,this._request.onreadystatechange=this._handleReadyStateChangeProxy);1==this._xhrLevel&&(this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout));try{this._item.values&&this._item.method!=createjs.AbstractLoader.GET?this._item.method==createjs.AbstractLoader.POST&&this._request.send(createjs.RequestUtils.formatQueryString(this._item.values)):this._request.send()}catch(n){this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,n))}};n.setResponseType=function(n){"blob"===n&&(n=window.URL?"blob":"arraybuffer",this._responseType=n);this._request.responseType=n};n.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null};n.getResponseHeader=function(n){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(n):null};n._handleProgress=function(n){if(n&&!(n.loaded>0&&0==n.total)){var t=new createjs.ProgressEvent(n.loaded,n.total);this.dispatchEvent(t)}};n._handleLoadStart=function(){clearTimeout(this._loadTimeout);this.dispatchEvent("loadstart")};n._handleAbort=function(n){this._clean();this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,n))};n._handleError=function(n){this._clean();this.dispatchEvent(new createjs.ErrorEvent(n.message))};n._handleReadyStateChange=function(){4==this._request.readyState&&this._handleLoad()};n._handleLoad=function(){var n,t;if(!this.loaded){if(this.loaded=!0,n=this._checkError(),n)return void this._handleError(n);if(this._response=this._getResponse(),"arraybuffer"===this._responseType)try{this._response=new Blob([this._response])}catch(i){(window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,"TypeError"===i.name&&window.BlobBuilder)&&(t=new BlobBuilder,t.append(this._response),this._response=t.getBlob())}this._clean();this.dispatchEvent(new createjs.Event("complete"))}};n._handleTimeout=function(n){this._clean();this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,n))};n._checkError=function(){var n=parseInt(this._request.status);switch(n){case 404:case 0:return new Error(n)}return null};n._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(n){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(n){}return null};n._createXHR=function(n){var f=createjs.RequestUtils.isCrossDomain(n),i={},t=null,u,o,h,e,r;if(window.XMLHttpRequest)t=new XMLHttpRequest,f&&void 0===t.withCredentials&&window.XDomainRequest&&(t=new XDomainRequest);else{for(u=0,o=s.ACTIVEX_VERSIONS.length;o>u;u++){h=s.ACTIVEX_VERSIONS[u];try{t=new ActiveXObject(h);break}catch(c){}}if(null==t)return!1}if(null==n.mimeType&&createjs.RequestUtils.isText(n.type)&&(n.mimeType="text/plain; charset=utf-8"),n.mimeType&&t.overrideMimeType&&t.overrideMimeType(n.mimeType),this._xhrLevel="string"==typeof t.responseType?2:1,e=null,e=n.method==createjs.AbstractLoader.GET?createjs.RequestUtils.buildPath(n.src,n.values):n.src,t.open(n.method||createjs.AbstractLoader.GET,e,!0),f&&t instanceof XMLHttpRequest&&1==this._xhrLevel&&(i.Origin=location.origin),n.values&&n.method==createjs.AbstractLoader.POST&&(i["Content-Type"]="application/x-www-form-urlencoded"),f||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),n.headers)for(r in n.headers)i[r]=n.headers[r];for(r in i)t.setRequestHeader(r,i[r]);return t instanceof XMLHttpRequest&&void 0!==n.withCredentials&&(t.withCredentials=n.withCredentials),this._request=t,!0};n._clean=function(){clearTimeout(this._loadTimeout);null!=this._request.removeEventListener?(this._request.removeEventListener("loadstart",this._handleLoadStartProxy),this._request.removeEventListener("progress",this._handleProgressProxy),this._request.removeEventListener("abort",this._handleAbortProxy),this._request.removeEventListener("error",this._handleErrorProxy),this._request.removeEventListener("timeout",this._handleTimeoutProxy),this._request.removeEventListener("load",this._handleLoadProxy),this._request.removeEventListener("readystatechange",this._handleReadyStateChangeProxy)):(this._request.onloadstart=null,this._request.onprogress=null,this._request.onabort=null,this._request.onerror=null,this._request.ontimeout=null,this._request.onload=null,this._request.onreadystatechange=null)};n.toString=function(){return"[PreloadJS XHRRequest]"};createjs.XHRRequest=createjs.promote(t,"AbstractRequest")}();this.createjs=this.createjs||{},function(){"use strict";function i(n,t,i){this.AbstractLoader_constructor();this._plugins=[];this._typeCallbacks={};this._extensionCallbacks={};this.next=null;this.maintainScriptOrder=!0;this.stopOnError=!1;this._maxConnections=1;this._availableLoaders=[createjs.ImageLoader,createjs.JavaScriptLoader,createjs.CSSLoader,createjs.JSONLoader,createjs.JSONPLoader,createjs.SoundLoader,createjs.ManifestLoader,createjs.SpriteSheetLoader,createjs.XMLLoader,createjs.SVGLoader,createjs.BinaryLoader,createjs.VideoLoader,createjs.TextLoader];this._defaultLoaderLength=this._availableLoaders.length;this.init(n,t,i)}var n=createjs.extend(i,createjs.AbstractLoader),t=i;n.init=function(n,t,i){this.useXHR=!0;this.preferXHR=!0;this._preferXHR=!0;this.setPreferXHR(n);this._paused=!1;this._basePath=t;this._crossOrigin=i;this._loadStartWasDispatched=!1;this._currentlyLoadingScript=null;this._currentLoads=[];this._loadQueue=[];this._loadQueueBackup=[];this._loadItemsById={};this._loadItemsBySrc={};this._loadedResults={};this._loadedRawResults={};this._numItems=0;this._numItemsLoaded=0;this._scriptOrder=[];this._loadedScripts=[];this._lastProgress=NaN};t.loadTimeout=8e3;t.LOAD_TIMEOUT=0;t.BINARY=createjs.AbstractLoader.BINARY;t.CSS=createjs.AbstractLoader.CSS;t.IMAGE=createjs.AbstractLoader.IMAGE;t.JAVASCRIPT=createjs.AbstractLoader.JAVASCRIPT;t.JSON=createjs.AbstractLoader.JSON;t.JSONP=createjs.AbstractLoader.JSONP;t.MANIFEST=createjs.AbstractLoader.MANIFEST;t.SOUND=createjs.AbstractLoader.SOUND;t.VIDEO=createjs.AbstractLoader.VIDEO;t.SVG=createjs.AbstractLoader.SVG;t.TEXT=createjs.AbstractLoader.TEXT;t.XML=createjs.AbstractLoader.XML;t.POST=createjs.AbstractLoader.POST;t.GET=createjs.AbstractLoader.GET;n.registerLoader=function(n){if(!n||!n.canLoadItem)throw new Error("loader is of an incorrect type.");if(-1!=this._availableLoaders.indexOf(n))throw new Error("loader already exists.");this._availableLoaders.unshift(n)};n.unregisterLoader=function(n){var t=this._availableLoaders.indexOf(n);-1!=t&&t<this._defaultLoaderLength-1&&this._availableLoaders.splice(t,1)};n.setUseXHR=function(n){return this.setPreferXHR(n)};n.setPreferXHR=function(n){return this.preferXHR=0!=n&&null!=window.XMLHttpRequest,this.preferXHR};n.removeAll=function(){this.remove()};n.remove=function(n){var u=null,f,i,e,t,r,o;if(n&&!Array.isArray(n))u=[n];else if(n)u=n;else if(arguments.length>0)return;if(f=!1,u){for(;u.length;){for(i=u.pop(),e=this.getResult(i),t=this._loadQueue.length-1;t>=0;t--)if(r=this._loadQueue[t].getItem(),r.id==i||r.src==i){this._loadQueue.splice(t,1)[0].cancel();break}for(t=this._loadQueueBackup.length-1;t>=0;t--)if(r=this._loadQueueBackup[t].getItem(),r.id==i||r.src==i){this._loadQueueBackup.splice(t,1)[0].cancel();break}if(e)this._disposeItem(this.getItem(i));else for(t=this._currentLoads.length-1;t>=0;t--)if(r=this._currentLoads[t].getItem(),r.id==i||r.src==i){this._currentLoads.splice(t,1)[0].cancel();f=!0;break}}f&&this._loadNext()}else{this.close();for(o in this._loadItemsById)this._disposeItem(this._loadItemsById[o]);this.init(this.preferXHR,this._basePath)}};n.reset=function(){var t;this.close();for(t in this._loadItemsById)this._disposeItem(this._loadItemsById[t]);for(var i=[],n=0,r=this._loadQueueBackup.length;r>n;n++)i.push(this._loadQueueBackup[n].getItem());this.loadManifest(i,!1)};n.installPlugin=function(n){var t,i,r;if(null!=n&&null!=n.getPreloadHandlers){if(this._plugins.push(n),t=n.getPreloadHandlers(),t.scope=n,null!=t.types)for(i=0,r=t.types.length;r>i;i++)this._typeCallbacks[t.types[i]]=t;if(null!=t.extensions)for(i=0,r=t.extensions.length;r>i;i++)this._extensionCallbacks[t.extensions[i]]=t}};n.setMaxConnections=function(n){this._maxConnections=n;!this._paused&&this._loadQueue.length>0&&this._loadNext()};n.loadFile=function(n,t,i){if(null==n){var r=new createjs.ErrorEvent("PRELOAD_NO_FILE");return void this._sendError(r)}this._addItem(n,null,i);t!==!1?this.setPaused(!1):this.setPaused(!0)};n.loadManifest=function(n,i,r){var f=null,o=null,u,e,s;if(Array.isArray(n)){if(0==n.length)return u=new createjs.ErrorEvent("PRELOAD_MANIFEST_EMPTY"),void this._sendError(u);f=n}else if("string"==typeof n)f=[{src:n,type:t.MANIFEST}];else{if("object"!=typeof n)return u=new createjs.ErrorEvent("PRELOAD_MANIFEST_NULL"),void this._sendError(u);void 0!==n.src?(null==n.type?n.type=t.MANIFEST:n.type!=t.MANIFEST&&(u=new createjs.ErrorEvent("PRELOAD_MANIFEST_TYPE"),this._sendError(u)),f=[n]):void 0!==n.manifest&&(f=n.manifest,o=n.path)}for(e=0,s=f.length;s>e;e++)this._addItem(f[e],o,r);i!==!1?this.setPaused(!1):this.setPaused(!0)};n.load=function(){this.setPaused(!1)};n.getItem=function(n){return this._loadItemsById[n]||this._loadItemsBySrc[n]};n.getResult=function(n,t){var r=this._loadItemsById[n]||this._loadItemsBySrc[n],i;return null==r?null:(i=r.id,t&&this._loadedRawResults[i]?this._loadedRawResults[i]:this._loadedResults[i])};n.getItems=function(n){var r=[],t,u,i;for(t in this._loadItemsById)u=this._loadItemsById[t],i=this.getResult(t),(n!==!0||null!=i)&&r.push({item:u,result:i,rawResult:this.getResult(t,!0)});return r};n.setPaused=function(n){this._paused=n;this._paused||this._loadNext()};n.close=function(){for(;this._currentLoads.length;)this._currentLoads.pop().cancel();this._scriptOrder.length=0;this._loadedScripts.length=0;this.loadStartWasDispatched=!1;this._itemCount=0;this._lastProgress=NaN};n._addItem=function(n,t,i){var u=this._createLoadItem(n,t,i),r;null!=u&&(r=this._createLoader(u),null!=r&&("plugins"in r&&(r.plugins=this._plugins),u._loader=r,this._loadQueue.push(r),this._loadQueueBackup.push(r),this._numItems++,this._updateProgress(),(this.maintainScriptOrder&&u.type==createjs.LoadQueue.JAVASCRIPT||u.maintainOrder===!0)&&(this._scriptOrder.push(u),this._loadedScripts.push(null))))};n._createLoadItem=function(n,t,i){var r=createjs.LoadItem.create(n),u,f,e,h,o,c,s;if(null==r)return null;if(u="",f=i||this._basePath,r.src instanceof Object){if(!r.type)return null;t?(u=t,o=createjs.RequestUtils.parseURI(t),null==f||o.absolute||o.relative||(u=f+u)):null!=f&&(u=f)}else e=createjs.RequestUtils.parseURI(r.src),e.extension&&(r.ext=e.extension),null==r.type&&(r.type=createjs.RequestUtils.getTypeByExtension(r.ext)),h=r.src,e.absolute||e.relative||(t?(u=t,o=createjs.RequestUtils.parseURI(t),h=t+h,null==f||o.absolute||o.relative||(u=f+u)):null!=f&&(u=f)),r.src=u+r.src;if(r.path=u,(void 0===r.id||null===r.id||""===r.id)&&(r.id=h),c=this._typeCallbacks[r.type]||this._extensionCallbacks[r.ext],c){if(s=c.callback.call(c.scope,r,this),s===!1)return null;s===!0||null!=s&&(r._loader=s);e=createjs.RequestUtils.parseURI(r.src);null!=e.extension&&(r.ext=e.extension)}return this._loadItemsById[r.id]=r,this._loadItemsBySrc[r.src]=r,null==r.crossOrigin&&(r.crossOrigin=this._crossOrigin),r};n._createLoader=function(n){var r,t,i;if(null!=n._loader)return n._loader;for(r=this.preferXHR,t=0;t<this._availableLoaders.length;t++)if(i=this._availableLoaders[t],i&&i.canLoadItem(n))return new i(n,r);return null};n._loadNext=function(){var n,t;if(!this._paused)for(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,n=0;n<this._loadQueue.length&&!(this._currentLoads.length>=this._maxConnections);n++)t=this._loadQueue[n],this._canStartLoad(t)&&(this._loadQueue.splice(n,1),n--,this._loadItem(t))};n._loadItem=function(n){n.on("fileload",this._handleFileLoad,this);n.on("progress",this._handleProgress,this);n.on("complete",this._handleFileComplete,this);n.on("error",this._handleError,this);n.on("fileerror",this._handleFileError,this);this._currentLoads.push(n);this._sendFileStart(n.getItem());n.load()};n._handleFileLoad=function(n){n.target=null;this.dispatchEvent(n)};n._handleFileError=function(n){var t=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,n.item);this._sendError(t)};n._handleError=function(n){var t=n.target,i;this._numItemsLoaded++;this._finishOrderedItem(t,!0);this._updateProgress();i=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,t.getItem());this._sendError(i);this.stopOnError?this.setPaused(!0):(this._removeLoadItem(t),this._cleanLoadItem(t),this._loadNext())};n._handleFileComplete=function(n){var t=n.target,r=t.getItem(),u=t.getResult(),i;this._loadedResults[r.id]=u;i=t.getResult(!0);null!=i&&i!==u&&(this._loadedRawResults[r.id]=i);this._saveLoadedItems(t);this._removeLoadItem(t);this._finishOrderedItem(t)||this._processFinishedLoad(r,t);this._cleanLoadItem(t)};n._saveLoadedItems=function(n){var r=n.getLoadedItems(),i,t;if(null!==r)for(i=0;i<r.length;i++)t=r[i].item,this._loadItemsBySrc[t.src]=t,this._loadItemsById[t.id]=t,this._loadedResults[t.id]=r[i].result,this._loadedRawResults[t.id]=r[i].rawResult};n._finishOrderedItem=function(n,t){var i=n.getItem(),r;return this.maintainScriptOrder&&i.type==createjs.LoadQueue.JAVASCRIPT||i.maintainOrder?(n instanceof createjs.JavaScriptLoader&&(this._currentlyLoadingScript=!1),r=createjs.indexOf(this._scriptOrder,i),-1==r?!1:(this._loadedScripts[r]=t===!0?!0:i,this._checkScriptLoadOrder(),!0)):!1};n._checkScriptLoadOrder=function(){for(var n,r,u,i=this._loadedScripts.length,t=0;i>t;t++){if(n=this._loadedScripts[t],null===n)break;n!==!0&&(r=this._loadedResults[n.id],n.type==createjs.LoadQueue.JAVASCRIPT&&createjs.DomUtils.appendToHead(r),u=n._loader,this._processFinishedLoad(n,u),this._loadedScripts[t]=!0)}};n._processFinishedLoad=function(n,t){if(this._numItemsLoaded++,!this.maintainScriptOrder&&n.type==createjs.LoadQueue.JAVASCRIPT){var i=t.getTag();createjs.DomUtils.appendToHead(i)}this._updateProgress();this._sendFileComplete(n,t);this._loadNext()};n._canStartLoad=function(n){var i,r,t,u;if(!this.maintainScriptOrder||n.preferXHR||(i=n.getItem(),i.type!=createjs.LoadQueue.JAVASCRIPT))return!0;if(this._currentlyLoadingScript)return!1;for(r=this._scriptOrder.indexOf(i),t=0;r>t;){if(u=this._loadedScripts[t],null==u)return!1;t++}return this._currentlyLoadingScript=!0,!0};n._removeLoadItem=function(n){for(var i=this._currentLoads.length,t=0;i>t;t++)if(this._currentLoads[t]==n){this._currentLoads.splice(t,1);break}};n._cleanLoadItem=function(n){var t=n.getItem();t&&delete t._loader};n._handleProgress=function(n){var t=n.target;this._sendFileProgress(t.getItem(),t.progress);this._updateProgress()};n._updateProgress=function(){var n=this._numItemsLoaded/this._numItems,t=this._numItems-this._numItemsLoaded;if(t>0){for(var r=0,i=0,u=this._currentLoads.length;u>i;i++)r+=this._currentLoads[i].progress;n+=r/t*(t/this._numItems)}this._lastProgress!=n&&(this._sendProgress(n),this._lastProgress=n)};n._disposeItem=function(n){delete this._loadedResults[n.id];delete this._loadedRawResults[n.id];delete this._loadItemsById[n.id];delete this._loadItemsBySrc[n.src]};n._sendFileProgress=function(n,t){if(!this._isCanceled()&&!this._paused&&this.hasEventListener("fileprogress")){var i=new createjs.Event("fileprogress");i.progress=t;i.loaded=t;i.total=1;i.item=n;this.dispatchEvent(i)}};n._sendFileComplete=function(n,t){if(!this._isCanceled()&&!this._paused){var i=new createjs.Event("fileload");i.loader=t;i.item=n;i.result=this._loadedResults[n.id];i.rawResult=this._loadedRawResults[n.id];n.completeHandler&&n.completeHandler(i);this.hasEventListener("fileload")&&this.dispatchEvent(i)}};n._sendFileStart=function(n){var t=new createjs.Event("filestart");t.item=n;this.hasEventListener("filestart")&&this.dispatchEvent(t)};n.toString=function(){return"[PreloadJS LoadQueue]"};createjs.LoadQueue=createjs.promote(i,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function n(n){this.AbstractLoader_constructor(n,!0,createjs.AbstractLoader.TEXT)}var t=(createjs.extend(n,createjs.AbstractLoader),n);t.canLoadItem=function(n){return n.type==createjs.AbstractLoader.TEXT};createjs.TextLoader=createjs.promote(n,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function n(n){this.AbstractLoader_constructor(n,!0,createjs.AbstractLoader.BINARY);this.on("initialize",this._updateXHR,this)}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.BINARY};t._updateXHR=function(n){n.loader.setResponseType("arraybuffer")};createjs.BinaryLoader=createjs.promote(n,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractLoader_constructor(n,t,createjs.AbstractLoader.CSS);this.resultFormatter=this._formatResult;this._tagSrcAttribute="href";this._tag=t?document.createElement("style"):document.createElement("link");this._tag.rel="stylesheet";this._tag.type="text/css"}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.CSS};t._formatResult=function(n){var t,i;return this._preferXHR?(t=n.getTag(),t.styleSheet?t.styleSheet.cssText=n.getResult(!0):(i=document.createTextNode(n.getResult(!0)),t.appendChild(i))):t=this._tag,createjs.DomUtils.appendToHead(t),t};createjs.CSSLoader=createjs.promote(n,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t){this.AbstractLoader_constructor(n,t,createjs.AbstractLoader.IMAGE);this.resultFormatter=this._formatResult;this._tagSrcAttribute="src";createjs.RequestUtils.isImageTag(n)?this._tag=n:createjs.RequestUtils.isImageTag(n.src)?this._tag=n.src:createjs.RequestUtils.isImageTag(n.tag)&&(this._tag=n.tag);null!=this._tag?this._preferXHR=!1:this._tag=document.createElement("img");this.on("initialize",this._updateXHR,this)}var n=createjs.extend(t,createjs.AbstractLoader),i=t;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.IMAGE};n.load=function(){if(""!=this._tag.src&&this._tag.complete)return void this._sendComplete();var n=this._item.crossOrigin;1==n&&(n="Anonymous");null==n||createjs.RequestUtils.isLocal(this._item.src)||(this._tag.crossOrigin=n);this.AbstractLoader_load()};n._updateXHR=function(n){n.loader.mimeType="text/plain; charset=x-user-defined-binary";n.loader.setResponseType&&n.loader.setResponseType("blob")};n._formatResult=function(){return this._formatImage};n._formatImage=function(n,t){var i=this._tag,r=window.URL||window.webkitURL,u;this._preferXHR&&(r?(u=r.createObjectURL(this.getResult(!0)),i.src=u,i.addEventListener("load",this._cleanUpURL,!1),i.addEventListener("error",this._cleanUpURL,!1)):i.src=this._item.src);i.complete?n(i):(i.onload=createjs.proxy(function(){n(this._tag)},this),i.onerror=createjs.proxy(function(){t(_this._tag)},this))};n._cleanUpURL=function(n){var t=window.URL||window.webkitURL;t.revokeObjectURL(n.target.src)};createjs.ImageLoader=createjs.promote(t,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractLoader_constructor(n,t,createjs.AbstractLoader.JAVASCRIPT);this.resultFormatter=this._formatResult;this._tagSrcAttribute="src";this.setTag(document.createElement("script"))}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.JAVASCRIPT};t._formatResult=function(n){var t=n.getTag();return this._preferXHR&&(t.text=n.getResult(!0)),t};createjs.JavaScriptLoader=createjs.promote(n,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function n(n){this.AbstractLoader_constructor(n,!0,createjs.AbstractLoader.JSON);this.resultFormatter=this._formatResult}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.JSON};t._formatResult=function(n){var t=null,r;try{t=createjs.DataUtils.parseJSON(n.getResult(!0))}catch(i){return r=new createjs.ErrorEvent("JSON_FORMAT",null,i),this._sendError(r),i}return t};createjs.JSONLoader=createjs.promote(n,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function t(n){this.AbstractLoader_constructor(n,!1,createjs.AbstractLoader.JSONP);this.setTag(document.createElement("script"));this.getTag().type="text/javascript"}var n=createjs.extend(t,createjs.AbstractLoader),i=t;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.JSONP};n.cancel=function(){this.AbstractLoader_cancel();this._dispose()};n.load=function(){if(null==this._item.callback)throw new Error("callback is required for loading JSONP requests.");if(null!=window[this._item.callback])throw new Error("JSONP callback '"+this._item.callback+"' already exists on window. You need to specify a different callback or re-name the current one.");window[this._item.callback]=createjs.proxy(this._handleLoad,this);window.document.body.appendChild(this._tag);this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout);this._tag.src=this._item.src};n._handleLoad=function(n){this._result=this._rawResult=n;this._sendComplete();this._dispose()};n._handleTimeout=function(){this._dispose();this.dispatchEvent(new createjs.ErrorEvent("timeout"))};n._dispose=function(){window.document.body.removeChild(this._tag);delete window[this._item.callback];clearTimeout(this._loadTimeout)};createjs.JSONPLoader=createjs.promote(t,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function i(n){this.AbstractLoader_constructor(n,null,createjs.AbstractLoader.MANIFEST);this.plugins=null;this._manifestQueue=null}var n=createjs.extend(i,createjs.AbstractLoader),t=i;t.MANIFEST_PROGRESS=.25;t.canLoadItem=function(n){return n.type==createjs.AbstractLoader.MANIFEST};n.load=function(){this.AbstractLoader_load()};n._createRequest=function(){var n=this._item.callback;this._request=null!=n?new createjs.JSONPLoader(this._item):new createjs.JSONLoader(this._item)};n.handleEvent=function(n){switch(n.type){case"complete":return this._rawResult=n.target.getResult(!0),this._result=n.target.getResult(),this._sendProgress(t.MANIFEST_PROGRESS),void this._loadManifest(this._result);case"progress":return n.loaded*=t.MANIFEST_PROGRESS,this.progress=n.loaded/n.total,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0),void this._sendProgress(n)}this.AbstractLoader_handleEvent(n)};n.destroy=function(){this.AbstractLoader_destroy();this._manifestQueue.close()};n._loadManifest=function(n){var t,i,r;if(n&&n.manifest){for(t=this._manifestQueue=new createjs.LoadQueue,t.on("fileload",this._handleManifestFileLoad,this),t.on("progress",this._handleManifestProgress,this),t.on("complete",this._handleManifestComplete,this,!0),t.on("error",this._handleManifestError,this,!0),i=0,r=this.plugins.length;r>i;i++)t.installPlugin(this.plugins[i]);t.loadManifest(n)}else this._sendComplete()};n._handleManifestFileLoad=function(n){n.target=null;this.dispatchEvent(n)};n._handleManifestComplete=function(){this._loadedItems=this._manifestQueue.getItems(!0);this._sendComplete()};n._handleManifestProgress=function(n){this.progress=n.progress*(1-t.MANIFEST_PROGRESS)+t.MANIFEST_PROGRESS;this._sendProgress(this.progress)};n._handleManifestError=function(n){var t=new createjs.Event("fileerror");t.item=n.data;this.dispatchEvent(t)};createjs.ManifestLoader=createjs.promote(i,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractMediaLoader_constructor(n,t,createjs.AbstractLoader.SOUND);createjs.RequestUtils.isAudioTag(n)?this._tag=n:createjs.RequestUtils.isAudioTag(n.src)?this._tag=n:createjs.RequestUtils.isAudioTag(n.tag)&&(this._tag=createjs.RequestUtils.isAudioTag(n)?n:n.src);null!=this._tag&&(this._preferXHR=!1)}var t=createjs.extend(n,createjs.AbstractMediaLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.SOUND};t._createTag=function(n){var t=document.createElement("audio");return t.autoplay=!1,t.preload="none",t.src=n,t};createjs.SoundLoader=createjs.promote(n,"AbstractMediaLoader")}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractMediaLoader_constructor(n,t,createjs.AbstractLoader.VIDEO);createjs.RequestUtils.isVideoTag(n)||createjs.RequestUtils.isVideoTag(n.src)?(this.setTag(createjs.RequestUtils.isVideoTag(n)?n:n.src),this._preferXHR=!1):this.setTag(this._createTag())}var t=createjs.extend(n,createjs.AbstractMediaLoader),i=n;t._createTag=function(){return document.createElement("video")};i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.VIDEO};createjs.VideoLoader=createjs.promote(n,"AbstractMediaLoader")}();this.createjs=this.createjs||{},function(){"use strict";function i(n,t){this.AbstractLoader_constructor(n,t,createjs.AbstractLoader.SPRITESHEET);this._manifestQueue=null}var n=createjs.extend(i,createjs.AbstractLoader),t=i;t.SPRITESHEET_PROGRESS=.25;t.canLoadItem=function(n){return n.type==createjs.AbstractLoader.SPRITESHEET};n.destroy=function(){this.AbstractLoader_destroy;this._manifestQueue.close()};n._createRequest=function(){var n=this._item.callback;this._request=null!=n?new createjs.JSONPLoader(this._item):new createjs.JSONLoader(this._item)};n.handleEvent=function(n){switch(n.type){case"complete":return this._rawResult=n.target.getResult(!0),this._result=n.target.getResult(),this._sendProgress(t.SPRITESHEET_PROGRESS),void this._loadManifest(this._result);case"progress":return n.loaded*=t.SPRITESHEET_PROGRESS,this.progress=n.loaded/n.total,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0),void this._sendProgress(n)}this.AbstractLoader_handleEvent(n)};n._loadManifest=function(n){if(n&&n.images){var t=this._manifestQueue=new createjs.LoadQueue(this._preferXHR,this._item.path,this._item.crossOrigin);t.on("complete",this._handleManifestComplete,this,!0);t.on("fileload",this._handleManifestFileLoad,this);t.on("progress",this._handleManifestProgress,this);t.on("error",this._handleManifestError,this,!0);t.loadManifest(n.images)}};n._handleManifestFileLoad=function(n){var i=n.result,t,r;null!=i&&(t=this.getResult().images,r=t.indexOf(n.item.src),t[r]=i)};n._handleManifestComplete=function(){this._result=new createjs.SpriteSheet(this._result);this._loadedItems=this._manifestQueue.getItems(!0);this._sendComplete()};n._handleManifestProgress=function(n){this.progress=n.progress*(1-t.SPRITESHEET_PROGRESS)+t.SPRITESHEET_PROGRESS;this._sendProgress(this.progress)};n._handleManifestError=function(n){var t=new createjs.Event("fileerror");t.item=n.data;this.dispatchEvent(t)};createjs.SpriteSheetLoader=createjs.promote(i,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function n(n,t){this.AbstractLoader_constructor(n,t,createjs.AbstractLoader.SVG);this.resultFormatter=this._formatResult;this._tagSrcAttribute="data";t?this.setTag(document.createElement("svg")):(this.setTag(document.createElement("object")),this.getTag().type="image/svg+xml")}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.SVG};t._formatResult=function(n){var i=createjs.DataUtils.parseXML(n.getResult(!0),"text/xml"),t=n.getTag();return!this._preferXHR&&document.body.contains(t)&&document.body.removeChild(t),null!=i.documentElement?(t.appendChild(i.documentElement),t.style.visibility="visible",t):i};createjs.SVGLoader=createjs.promote(n,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function n(n){this.AbstractLoader_constructor(n,!0,createjs.AbstractLoader.XML);this.resultFormatter=this._formatResult}var t=createjs.extend(n,createjs.AbstractLoader),i=n;i.canLoadItem=function(n){return n.type==createjs.AbstractLoader.XML};t._formatResult=function(n){return createjs.DataUtils.parseXML(n.getResult(!0),"text/xml")};createjs.XMLLoader=createjs.promote(n,"AbstractLoader")}();this.createjs=this.createjs||{},function(){var n=createjs.SoundJS=createjs.SoundJS||{};n.version="0.6.2";n.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}();this.createjs=this.createjs||{};createjs.indexOf=function(n,t){"use strict";for(var i=0,r=n.length;r>i;i++)if(t===n[i])return i;return-1};this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(n,t){var i=Array.prototype.slice.call(arguments,2);return function(){return n.apply(t,Array.prototype.slice.call(arguments,0).concat(i))}}}();this.createjs=this.createjs||{},function(){"use strict";function n(){throw"BrowserDetect cannot be instantiated";}var t=n.agent=window.navigator.userAgent;n.isWindowPhone=t.indexOf("IEMobile")>-1||t.indexOf("Windows Phone")>-1;n.isFirefox=t.indexOf("Firefox")>-1;n.isOpera=null!=window.opera;n.isChrome=t.indexOf("Chrome")>-1;n.isIOS=(t.indexOf("iPod")>-1||t.indexOf("iPhone")>-1||t.indexOf("iPad")>-1)&&!n.isWindowPhone;n.isAndroid=t.indexOf("Android")>-1&&!n.isWindowPhone;n.isBlackberry=t.indexOf("Blackberry")>-1;createjs.BrowserDetect=n}();this.createjs=this.createjs||{},function(){"use strict";var t=function(){this.interrupt=null;this.delay=null;this.offset=null;this.loop=null;this.volume=null;this.pan=null;this.startTime=null;this.duration=null},i=t.prototype={},n=t;n.create=function(t){if(t instanceof n||t instanceof Object){var i=new createjs.PlayPropsConfig;return i.set(t),i}throw new Error("Type not recognized.");};i.set=function(n){for(var t in n)this[t]=n[t];return this};i.toString=function(){return"[PlayPropsConfig]"};createjs.PlayPropsConfig=n}();this.createjs=this.createjs||{},function(){"use strict";function r(){throw"Sound cannot be instantiated";}function t(n,t){this.init(n,t)}var n=r,i;n.INTERRUPT_ANY="any";n.INTERRUPT_EARLY="early";n.INTERRUPT_LATE="late";n.INTERRUPT_NONE="none";n.PLAY_INITED="playInited";n.PLAY_SUCCEEDED="playSucceeded";n.PLAY_INTERRUPTED="playInterrupted";n.PLAY_FINISHED="playFinished";n.PLAY_FAILED="playFailed";n.SUPPORTED_EXTENSIONS=["mp3","ogg","opus","mpeg","wav","m4a","mp4","aiff","wma","mid"];n.EXTENSION_MAP={m4a:"mp4"};n.FILE_PATTERN=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([\/.]*?(?:[^?]+)?\/)?((?:[^\/?]+)\.(\w+))(?:\?(\S+)?)?$/;n.defaultInterruptBehavior=n.INTERRUPT_NONE;n.alternateExtensions=[];n.activePlugin=null;n._masterVolume=1;Object.defineProperty(n,"volume",{get:function(){return this._masterVolume},set:function(t){if(null==Number(t))return!1;if(t=Math.max(0,Math.min(1,t)),n._masterVolume=t,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(t))for(var r=this._instances,i=0,u=r.length;u>i;i++)r[i].setMasterVolume(t)}});n._masterMute=!1;Object.defineProperty(n,"muted",{get:function(){return this._masterMute},set:function(n){if(null==n)return!1;if(this._masterMute=n,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(n))for(var i=this._instances,t=0,r=i.length;r>t;t++)i[t].setMasterMute(n);return!0}});Object.defineProperty(n,"capabilities",{get:function(){return null==n.activePlugin?null:n.activePlugin._capabilities},set:function(){return!1}});n._pluginsRegistered=!1;n._lastID=0;n._instances=[];n._idHash={};n._preloadHash={};n._defaultPlayPropsHash={};n.addEventListener=null;n.removeEventListener=null;n.removeAllEventListeners=null;n.dispatchEvent=null;n.hasEventListener=null;n._listeners=null;createjs.EventDispatcher.initialize(n);n.getPreloadHandlers=function(){return{callback:createjs.proxy(n.initLoad,n),types:["sound"],extensions:n.SUPPORTED_EXTENSIONS}};n._handleLoadComplete=function(t){var u=t.target.getItem().src,i,f,r,t;if(n._preloadHash[u])for(i=0,f=n._preloadHash[u].length;f>i;i++)r=n._preloadHash[u][i],(n._preloadHash[u][i]=!0,n.hasEventListener("fileload"))&&(t=new createjs.Event("fileload"),t.src=r.src,t.id=r.id,t.data=r.data,t.sprite=r.sprite,n.dispatchEvent(t))};n._handleLoadError=function(t){var u=t.target.getItem().src,i,f,r,t;if(n._preloadHash[u])for(i=0,f=n._preloadHash[u].length;f>i;i++)r=n._preloadHash[u][i],(n._preloadHash[u][i]=!1,n.hasEventListener("fileerror"))&&(t=new createjs.Event("fileerror"),t.src=r.src,t.id=r.id,t.data=r.data,t.sprite=r.sprite,n.dispatchEvent(t))};n._registerPlugin=function(t){return t.isSupported()?(n.activePlugin=new t,!0):!1};n.registerPlugins=function(t){n._pluginsRegistered=!0;for(var i=0,r=t.length;r>i;i++)if(n._registerPlugin(t[i]))return!0;return!1};n.initializeDefaultPlugins=function(){return null!=n.activePlugin?!0:n._pluginsRegistered?!1:n.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin])?!0:!1};n.isReady=function(){return null!=n.activePlugin};n.getCapabilities=function(){return null==n.activePlugin?null:n.activePlugin._capabilities};n.getCapability=function(t){return null==n.activePlugin?null:n.activePlugin._capabilities[t]};n.initLoad=function(t){return n._registerSound(t)};n._registerSound=function(i){var f,r,e,u,s,o;if(!n.initializeDefaultPlugins()||(i.src instanceof Object?(f=n._parseSrc(i.src),f.src=i.path+f.src):f=n._parsePath(i.src),null==f))return!1;if(i.src=f.src,i.type="sound",r=i.data,e=null,null!=r&&(isNaN(r.channels)?isNaN(r)||(e=parseInt(r)):e=parseInt(r.channels),r.audioSprite))for(s=r.audioSprite.length;s--;)u=r.audioSprite[s],n._idHash[u.id]={src:i.src,startTime:parseInt(u.startTime),duration:parseInt(u.duration)},u.defaultPlayProps&&(n._defaultPlayPropsHash[u.id]=createjs.PlayPropsConfig.create(u.defaultPlayProps));return null!=i.id&&(n._idHash[i.id]={src:i.src}),o=n.activePlugin.register(i),t.create(i.src,e),null!=r&&isNaN(r)?i.data.channels=e||t.maxPerChannel():i.data=e||t.maxPerChannel(),o.type&&(i.type=o.type),i.defaultPlayProps&&(n._defaultPlayPropsHash[i.src]=createjs.PlayPropsConfig.create(i.defaultPlayProps)),o};n.registerSound=function(t,i,r,u,f){var e={src:t,id:i,data:r,defaultPlayProps:f},o;if(t instanceof Object&&t.src&&(u=i,e=t),e=createjs.LoadItem.create(e),e.path=u,null==u||e.src instanceof Object||(e.src=u+t),o=n._registerSound(e),!o)return!1;if(n._preloadHash[e.src]||(n._preloadHash[e.src]=[]),n._preloadHash[e.src].push(e),1==n._preloadHash[e.src].length)o.on("complete",createjs.proxy(this._handleLoadComplete,this)),o.on("error",createjs.proxy(this._handleLoadError,this)),n.activePlugin.preload(o);else if(1==n._preloadHash[e.src][0])return!0;return e};n.registerSounds=function(n,t){var r=[],i,u;for(n.path&&(t?t+=n.path:t=n.path,n=n.manifest),i=0,u=n.length;u>i;i++)r[i]=createjs.Sound.registerSound(n[i].src,n[i].id,n[i].data,t,n[i].defaultPlayProps);return r};n.removeSound=function(i,r){var u,f;if(null==n.activePlugin||(i instanceof Object&&i.src&&(i=i.src),i instanceof Object?u=n._parseSrc(i):(i=n._getSrcById(i).src,u=n._parsePath(i)),null==u))return!1;i=u.src;null!=r&&(i=r+i);for(f in n._idHash)n._idHash[f].src==i&&delete n._idHash[f];return t.removeSrc(i),delete n._preloadHash[i],n.activePlugin.removeSound(i),!0};n.removeSounds=function(n,t){var r=[],i,u;for(n.path&&(t?t+=n.path:t=n.path,n=n.manifest),i=0,u=n.length;u>i;i++)r[i]=createjs.Sound.removeSound(n[i].src,t);return r};n.removeAllSounds=function(){n._idHash={};n._preloadHash={};t.removeAll();n.activePlugin&&n.activePlugin.removeAllSounds()};n.loadComplete=function(t){if(!n.isReady())return!1;var i=n._parsePath(t);return t=i?n._getSrcById(i.src).src:n._getSrcById(t).src,void 0==n._preloadHash[t]?!1:1==n._preloadHash[t][0]};n._parsePath=function(t){var i;if("string"!=typeof t&&(t=t.toString()),i=t.match(n.FILE_PATTERN),null==i)return!1;for(var f=i[4],r=i[5],e=n.capabilities,u=0;!e[r];)if(r=n.alternateExtensions[u++],u>n.alternateExtensions.length)return null;return t=t.replace("."+i[5],"."+r),{name:f,src:t,extension:r}};n._parseSrc=function(t){var i={name:void 0,src:void 0,extension:void 0},f=n.capabilities,r,u;for(r in t)if(t.hasOwnProperty(r)&&f[r]){i.src=t[r];i.extension=r;break}return i.src?(u=i.src.lastIndexOf("/"),i.name=-1!=u?i.src.slice(u+1):i.src,i):!1};n.play=function(t,i,r,u,f,e,o,s,h){var c,l,a;return c=i instanceof Object||i instanceof createjs.PlayPropsConfig?createjs.PlayPropsConfig.create(i):createjs.PlayPropsConfig.create({interrupt:i,delay:r,offset:u,loop:f,volume:e,pan:o,startTime:s,duration:h}),l=n.createInstance(t,c.startTime,c.duration),a=n._playInstance(l,c),a||l._playFailed(),l};n.createInstance=function(i,r,u){var o,f,e;return n.initializeDefaultPlugins()?(o=n._defaultPlayPropsHash[i],i=n._getSrcById(i),f=n._parsePath(i.src),e=null,null!=f&&null!=f.src?(t.create(f.src),null==r&&(r=i.startTime),e=n.activePlugin.create(f.src,r,u||i.duration),o=o||n._defaultPlayPropsHash[f.src],o&&e.applyPlayProps(o)):e=new createjs.DefaultSoundInstance(i,r,u),e.uniqueId=n._lastID++,e):new createjs.DefaultSoundInstance(i,r,u)};n.stop=function(){for(var n=this._instances,t=n.length;t--;)n[t].stop()};n.setVolume=function(t){if(null==Number(t))return!1;if(t=Math.max(0,Math.min(1,t)),n._masterVolume=t,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(t))for(var r=this._instances,i=0,u=r.length;u>i;i++)r[i].setMasterVolume(t)};n.getVolume=function(){return this._masterVolume};n.setMute=function(n){if(null==n)return!1;if(this._masterMute=n,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(n))for(var i=this._instances,t=0,r=i.length;r>t;t++)i[t].setMasterMute(n);return!0};n.getMute=function(){return this._masterMute};n.setDefaultPlayProps=function(t,i){t=n._getSrcById(t);n._defaultPlayPropsHash[n._parsePath(t.src).src]=createjs.PlayPropsConfig.create(i)};n.getDefaultPlayProps=function(t){return t=n._getSrcById(t),n._defaultPlayPropsHash[n._parsePath(t.src).src]};n._playInstance=function(t,i){var r=n._defaultPlayPropsHash[t.src]||{},u,f;if(null==i.interrupt&&(i.interrupt=r.interrupt||n.defaultInterruptBehavior),null==i.delay&&(i.delay=r.delay||0),null==i.offset&&(i.offset=t.getPosition()),null==i.loop&&(i.loop=t.loop),null==i.volume&&(i.volume=t.volume),null==i.pan&&(i.pan=t.pan),0==i.delay){if(u=n._beginPlaying(t,i),!u)return!1}else f=setTimeout(function(){n._beginPlaying(t,i)},i.delay),t.delayTimeoutId=f;return this._instances.push(t),!0};n._beginPlaying=function(n,i){var u,r;return t.add(n,i.interrupt)?(u=n._beginPlaying(i),!u)?(r=createjs.indexOf(this._instances,n),r>-1&&this._instances.splice(r,1),!1):!0:!1};n._getSrcById=function(t){return n._idHash[t]||{src:t}};n._playFinished=function(n){t.remove(n);var i=createjs.indexOf(this._instances,n);i>-1&&this._instances.splice(i,1)};createjs.Sound=r;t.channels={};t.create=function(n,i){var r=t.get(n);return null==r?(t.channels[n]=new t(n,i),!0):!1};t.removeSrc=function(n){var i=t.get(n);return null==i?!1:(i._removeAll(),delete t.channels[n],!0)};t.removeAll=function(){for(var n in t.channels)t.channels[n]._removeAll();t.channels={}};t.add=function(n,i){var r=t.get(n.src);return null==r?!1:r._add(n,i)};t.remove=function(n){var i=t.get(n.src);return null==i?!1:(i._remove(n),!0)};t.maxPerChannel=function(){return i.maxDefault};t.get=function(n){return t.channels[n]};i=t.prototype;i.constructor=t;i.src=null;i.max=null;i.maxDefault=100;i.length=0;i.init=function(n,t){this.src=n;this.max=t||this.maxDefault;-1==this.max&&(this.max=this.maxDefault);this._instances=[]};i._get=function(n){return this._instances[n]};i._add=function(n,t){return this._getSlot(t,n)?(this._instances.push(n),this.length++,!0):!1};i._remove=function(n){var t=createjs.indexOf(this._instances,n);return-1==t?!1:(this._instances.splice(t,1),this.length--,!0)};i._removeAll=function(){for(var n=this.length-1;n>=0;n--)this._instances[n].stop()};i._getSlot=function(n){var t,i,u,f;if(n!=r.INTERRUPT_NONE&&(i=this._get(0),null==i))return!0;for(u=0,f=this.max;f>u;u++){if(t=this._get(u),null==t)return!0;if(t.playState==r.PLAY_FINISHED||t.playState==r.PLAY_INTERRUPTED||t.playState==r.PLAY_FAILED){i=t;break}n!=r.INTERRUPT_NONE&&(n==r.INTERRUPT_EARLY&&t.getPosition()<i.getPosition()||n==r.INTERRUPT_LATE&&t.getPosition()>i.getPosition())&&(i=t)}return null!=i?(i._interrupt(),this._remove(i),!0):!1};i.toString=function(){return"[Sound SoundChannel]"}}();this.createjs=this.createjs||{},function(){"use strict";var t=function(n,t,i,r){this.EventDispatcher_constructor();this.src=n;this.uniqueId=-1;this.playState=null;this.delayTimeoutId=null;this._volume=1;Object.defineProperty(this,"volume",{get:this.getVolume,set:this.setVolume});this._pan=0;Object.defineProperty(this,"pan",{get:this.getPan,set:this.setPan});this._startTime=Math.max(0,t||0);Object.defineProperty(this,"startTime",{get:this.getStartTime,set:this.setStartTime});this._duration=Math.max(0,i||0);Object.defineProperty(this,"duration",{get:this.getDuration,set:this.setDuration});this._playbackResource=null;Object.defineProperty(this,"playbackResource",{get:this.getPlaybackResource,set:this.setPlaybackResource});r!==!1&&r!==!0&&this.setPlaybackResource(r);this._position=0;Object.defineProperty(this,"position",{get:this.getPosition,set:this.setPosition});this._loop=0;Object.defineProperty(this,"loop",{get:this.getLoop,set:this.setLoop});this._muted=!1;Object.defineProperty(this,"muted",{get:this.getMuted,set:this.setMuted});this._paused=!1;Object.defineProperty(this,"paused",{get:this.getPaused,set:this.setPaused})},n=createjs.extend(t,createjs.EventDispatcher);n.play=function(n,t,i,r,u,f){var e;return e=n instanceof Object||n instanceof createjs.PlayPropsConfig?createjs.PlayPropsConfig.create(n):createjs.PlayPropsConfig.create({interrupt:n,delay:t,offset:i,loop:r,volume:u,pan:f}),this.playState==createjs.Sound.PLAY_SUCCEEDED?(this.applyPlayProps(e),void(this._paused&&this.setPaused(!1))):(this._cleanUp(),createjs.Sound._playInstance(this,e),this)};n.stop=function(){return this._position=0,this._paused=!1,this._handleStop(),this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this};n.destroy=function(){this._cleanUp();this.src=null;this.playbackResource=null;this.removeAllEventListeners()};n.applyPlayProps=function(n){return null!=n.offset&&this.setPosition(n.offset),null!=n.loop&&this.setLoop(n.loop),null!=n.volume&&this.setVolume(n.volume),null!=n.pan&&this.setPan(n.pan),null!=n.startTime&&(this.setStartTime(n.startTime),this.setDuration(n.duration)),this};n.toString=function(){return"[AbstractSoundInstance]"};n.getPaused=function(){return this._paused};n.setPaused=function(n){if((n===!0||n===!1)&&this._paused!=n&&(1!=n||this.playState==createjs.Sound.PLAY_SUCCEEDED))return(this._paused=n,n?this._pause():this._resume(),clearTimeout(this.delayTimeoutId),this)};n.setVolume=function(n){return n==this._volume?this:(this._volume=Math.max(0,Math.min(1,n)),this._muted||this._updateVolume(),this)};n.getVolume=function(){return this._volume};n.setMuted=function(n){if(n===!0||n===!1)return(this._muted=n,this._updateVolume(),this)};n.getMuted=function(){return this._muted};n.setPan=function(n){return n==this._pan?this:(this._pan=Math.max(-1,Math.min(1,n)),this._updatePan(),this)};n.getPan=function(){return this._pan};n.getPosition=function(){return this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED||(this._position=this._calculateCurrentPosition()),this._position};n.setPosition=function(n){return this._position=Math.max(0,n),this.playState==createjs.Sound.PLAY_SUCCEEDED&&this._updatePosition(),this};n.getStartTime=function(){return this._startTime};n.setStartTime=function(n){return n==this._startTime?this:(this._startTime=Math.max(0,n||0),this._updateStartTime(),this)};n.getDuration=function(){return this._duration};n.setDuration=function(n){return n==this._duration?this:(this._duration=Math.max(0,n||0),this._updateDuration(),this)};n.setPlaybackResource=function(n){return this._playbackResource=n,0==this._duration&&this._setDurationFromSource(),this};n.getPlaybackResource=function(){return this._playbackResource};n.getLoop=function(){return this._loop};n.setLoop=function(n){null!=this._playbackResource&&(0!=this._loop&&0==n?this._removeLooping(n):0==this._loop&&0!=n&&this._addLooping(n));this._loop=n};n._sendEvent=function(n){var t=new createjs.Event(n);this.dispatchEvent(t)};n._cleanUp=function(){clearTimeout(this.delayTimeoutId);this._handleCleanUp();this._paused=!1;createjs.Sound._playFinished(this)};n._interrupt=function(){this._cleanUp();this.playState=createjs.Sound.PLAY_INTERRUPTED;this._sendEvent("interrupted")};n._beginPlaying=function(n){return this.setPosition(n.offset),this.setLoop(n.loop),this.setVolume(n.volume),this.setPan(n.pan),null!=n.startTime&&(this.setStartTime(n.startTime),this.setDuration(n.duration)),null!=this._playbackResource&&this._position<this._duration?(this._paused=!1,this._handleSoundReady(),this.playState=createjs.Sound.PLAY_SUCCEEDED,this._sendEvent("succeeded"),!0):(this._playFailed(),!1)};n._playFailed=function(){this._cleanUp();this.playState=createjs.Sound.PLAY_FAILED;this._sendEvent("failed")};n._handleSoundComplete=function(){return this._position=0,0!=this._loop?(this._loop--,this._handleLoop(),void this._sendEvent("loop")):(this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,void this._sendEvent("complete"))};n._handleSoundReady=function(){};n._updateVolume=function(){};n._updatePan=function(){};n._updateStartTime=function(){};n._updateDuration=function(){};n._setDurationFromSource=function(){};n._calculateCurrentPosition=function(){};n._updatePosition=function(){};n._removeLooping=function(){};n._addLooping=function(){};n._pause=function(){};n._resume=function(){};n._handleStop=function(){};n._handleCleanUp=function(){};n._handleLoop=function(){};createjs.AbstractSoundInstance=createjs.promote(t,"EventDispatcher");createjs.DefaultSoundInstance=createjs.AbstractSoundInstance}();this.createjs=this.createjs||{},function(){"use strict";var t=function(){this._capabilities=null;this._loaders={};this._audioSources={};this._soundInstances={};this._volume=1;this._loaderClass;this._soundInstanceClass},n=t.prototype;t._capabilities=null;t.isSupported=function(){return!0};n.register=function(n){var t=this._loaders[n.src];return t&&!t.canceled?this._loaders[n.src]:(this._audioSources[n.src]=!0,this._soundInstances[n.src]=[],t=new this._loaderClass(n),t.on("complete",this._handlePreloadComplete,this),this._loaders[n.src]=t,t)};n.preload=function(n){n.on("error",this._handlePreloadError,this);n.load()};n.isPreloadStarted=function(n){return null!=this._audioSources[n]};n.isPreloadComplete=function(n){return!(null==this._audioSources[n]||1==this._audioSources[n])};n.removeSound=function(n){var t,i;if(this._soundInstances[n]){for(t=this._soundInstances[n].length;t--;)i=this._soundInstances[n][t],i.destroy();delete this._soundInstances[n];delete this._audioSources[n];this._loaders[n]&&this._loaders[n].destroy();delete this._loaders[n]}};n.removeAllSounds=function(){for(var n in this._audioSources)this.removeSound(n)};n.create=function(n,t,i){this.isPreloadStarted(n)||this.preload(this.register(n));var r=new this._soundInstanceClass(n,t,i,this._audioSources[n]);return this._soundInstances[n].push(r),r};n.setVolume=function(n){return this._volume=n,this._updateVolume(),!0};n.getVolume=function(){return this._volume};n.setMute=function(){return this._updateVolume(),!0};n.toString=function(){return"[AbstractPlugin]"};n._handlePreloadComplete=function(n){var t=n.target.getItem().src,i,r,u;for(this._audioSources[t]=n.result,i=0,r=this._soundInstances[t].length;r>i;i++)u=this._soundInstances[t][i],u.setPlaybackResource(this._audioSources[t])};n._handlePreloadError=function(){};n._updateVolume=function(){};createjs.AbstractPlugin=t}();this.createjs=this.createjs||{},function(){"use strict";function n(n){this.AbstractLoader_constructor(n,!0,createjs.AbstractLoader.SOUND)}var t=createjs.extend(n,createjs.AbstractLoader);n.context=null;t.toString=function(){return"[WebAudioLoader]"};t._createRequest=function(){this._request=new createjs.XHRRequest(this._item,!1);this._request.setResponseType("arraybuffer")};t._sendComplete=function(){n.context.decodeAudioData(this._rawResult,createjs.proxy(this._handleAudioDecoded,this),createjs.proxy(this._sendError,this))};t._handleAudioDecoded=function(n){this._result=n;this.AbstractLoader__sendComplete()};createjs.WebAudioLoader=createjs.promote(n,"AbstractLoader")}();this.createjs=this.createjs||{},function(){"use strict";function i(n,i,r,u){this.AbstractSoundInstance_constructor(n,i,r,u);this.gainNode=t.context.createGain();this.panNode=t.context.createPanner();this.panNode.panningModel=t._panningModel;this.panNode.connect(this.gainNode);this._updatePan();this.sourceNode=null;this._soundCompleteTimeout=null;this._sourceNodeNext=null;this._playbackStartTime=0;this._endedHandler=createjs.proxy(this._handleSoundComplete,this)}var n=createjs.extend(i,createjs.AbstractSoundInstance),t=i;t.context=null;t._scratchBuffer=null;t.destinationNode=null;t._panningModel="equalpower";n.destroy=function(){this.AbstractSoundInstance_destroy();this.panNode.disconnect(0);this.panNode=null;this.gainNode.disconnect(0);this.gainNode=null};n.toString=function(){return"[WebAudioSoundInstance]"};n._updatePan=function(){this.panNode.setPosition(this._pan,0,-.5)};n._removeLooping=function(){this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)};n._addLooping=function(){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))};n._setDurationFromSource=function(){this._duration=1e3*this.playbackResource.duration};n._handleCleanUp=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._soundCompleteTimeout);this._playbackStartTime=0};n._cleanUpAudioNode=function(n){if(n){n.stop(0);n.disconnect(0);try{n.buffer=t._scratchBuffer}catch(i){}n=null}return n};n._handleSoundReady=function(){this.gainNode.connect(t.destinationNode);var i=.001*this._duration,n=.001*this._position;n>i&&(n=i);this.sourceNode=this._createAndPlayAudioNode(t.context.currentTime-i,n);this._playbackStartTime=this.sourceNode.startTime-n;this._soundCompleteTimeout=setTimeout(this._endedHandler,1e3*(i-n));0!=this._loop&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))};n._createAndPlayAudioNode=function(n,i){var r=t.context.createBufferSource(),u;return r.buffer=this.playbackResource,r.connect(this.panNode),u=.001*this._duration,r.startTime=n+u,r.start(r.startTime,i+.001*this._startTime,u-i),r};n._pause=function(){this._position=1e3*(t.context.currentTime-this._playbackStartTime);this.sourceNode=this._cleanUpAudioNode(this.sourceNode);this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext);0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0);clearTimeout(this._soundCompleteTimeout)};n._resume=function(){this._handleSoundReady()};n._updateVolume=function(){var n=this._muted?0:this._volume;n!=this.gainNode.gain.value&&(this.gainNode.gain.value=n)};n._calculateCurrentPosition=function(){return 1e3*(t.context.currentTime-this._playbackStartTime)};n._updatePosition=function(){this.sourceNode=this._cleanUpAudioNode(this.sourceNode);this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext);clearTimeout(this._soundCompleteTimeout);this._paused||this._handleSoundReady()};n._handleLoop=function(){this._cleanUpAudioNode(this.sourceNode);this.sourceNode=this._sourceNodeNext;this._playbackStartTime=this.sourceNode.startTime;this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0);this._soundCompleteTimeout=setTimeout(this._endedHandler,this._duration)};n._updateDuration=function(){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._pause(),this._resume())};createjs.WebAudioSoundInstance=createjs.promote(i,"AbstractSoundInstance")}();this.createjs=this.createjs||{},function(){"use strict";function t(){this.AbstractPlugin_constructor();this._panningModel=n._panningModel;this.context=n.context;this.dynamicsCompressorNode=this.context.createDynamicsCompressor();this.dynamicsCompressorNode.connect(this.context.destination);this.gainNode=this.context.createGain();this.gainNode.connect(this.dynamicsCompressorNode);createjs.WebAudioSoundInstance.destinationNode=this.gainNode;this._capabilities=n._capabilities;this._loaderClass=createjs.WebAudioLoader;this._soundInstanceClass=createjs.WebAudioSoundInstance;this._addPropsToClasses()}var i=createjs.extend(t,createjs.AbstractPlugin),n=t;n._capabilities=null;n._panningModel="equalpower";n.context=null;n._scratchBuffer=null;n._unlocked=!1;n.isSupported=function(){var t=createjs.BrowserDetect.isIOS||createjs.BrowserDetect.isAndroid||createjs.BrowserDetect.isBlackberry;return"file:"!=location.protocol||t||this._isFileXHRSupported()?(n._generateCapabilities(),null==n.context?!1:!0):!1};n.playEmptySound=function(){if(null!=n.context){var t=n.context.createBufferSource();t.buffer=n._scratchBuffer;t.connect(n.context.destination);t.start(0,0,0)}};n._isFileXHRSupported=function(){var n=!0,t=new XMLHttpRequest;try{t.open("GET","WebAudioPluginTest.fail",!1)}catch(i){return n=!1}t.onerror=function(){n=!1};t.onload=function(){n=404==this.status||200==this.status||0==this.status&&""!=this.response};try{t.send()}catch(i){n=!1}return n};n._generateCapabilities=function(){var t,i,u;if(null==n._capabilities){if(t=document.createElement("audio"),null==t.canPlayType)return null;if(null==n.context)if(window.AudioContext)n.context=new AudioContext;else{if(!window.webkitAudioContext)return null;n.context=new webkitAudioContext}null==n._scratchBuffer&&(n._scratchBuffer=n.context.createBuffer(1,1,22050));n._compatibilitySetUp();"ontouchstart"in window&&"running"!=n.context.state&&(n._unlock(),document.addEventListener("mousedown",n._unlock,!0),document.addEventListener("touchend",n._unlock,!0));n._capabilities={panning:!0,volume:!0,tracks:-1};for(var f=createjs.Sound.SUPPORTED_EXTENSIONS,e=createjs.Sound.EXTENSION_MAP,r=0,o=f.length;o>r;r++)i=f[r],u=e[i]||i,n._capabilities[i]="no"!=t.canPlayType("audio/"+i)&&""!=t.canPlayType("audio/"+i)||"no"!=t.canPlayType("audio/"+u)&&""!=t.canPlayType("audio/"+u);n.context.destination.numberOfChannels<2&&(n._capabilities.panning=!1)}};n._compatibilitySetUp=function(){if(n._panningModel="equalpower",!n.context.createGain){n.context.createGain=n.context.createGainNode;var t=n.context.createBufferSource();t.__proto__.start=t.__proto__.noteGrainOn;t.__proto__.stop=t.__proto__.noteOff;n._panningModel=0}};n._unlock=function(){n._unlocked||(n.playEmptySound(),"running"==n.context.state&&(document.removeEventListener("mousedown",n._unlock,!0),document.removeEventListener("touchend",n._unlock,!0),n._unlocked=!0))};i.toString=function(){return"[WebAudioPlugin]"};i._addPropsToClasses=function(){var t=this._soundInstanceClass;t.context=this.context;t._scratchBuffer=n._scratchBuffer;t.destinationNode=this.gainNode;t._panningModel=this._panningModel;this._loaderClass.context=this.context};i._updateVolume=function(){var n=createjs.Sound._masterMute?0:this._volume;n!=this.gainNode.gain.value&&(this.gainNode.gain.value=n)};createjs.WebAudioPlugin=createjs.promote(t,"AbstractPlugin")}();this.createjs=this.createjs||{},function(){"use strict";function r(){throw"HTMLAudioTagPool cannot be instantiated";}function i(){this._tags=[]}var n=r,t;n._tags={};n._tagPool=new i;n._tagUsed={};n.get=function(t){var i=n._tags[t];return null==i?(i=n._tags[t]=n._tagPool.get(),i.src=t):n._tagUsed[t]?(i=n._tagPool.get(),i.src=t):n._tagUsed[t]=!0,i};n.set=function(t,i){i==n._tags[t]?n._tagUsed[t]=!1:n._tagPool.set(i)};n.remove=function(t){var i=n._tags[t];return null==i?!1:(n._tagPool.set(i),delete n._tags[t],delete n._tagUsed[t],!0)};n.getDuration=function(t){var i=n._tags[t];return null!=i&&i.duration?1e3*i.duration:0};createjs.HTMLAudioTagPool=r;t=i.prototype;t.constructor=i;t.get=function(){var n;return n=0==this._tags.length?this._createTag():this._tags.pop(),null==n.parentNode&&document.body.appendChild(n),n};t.set=function(n){var t=createjs.indexOf(this._tags,n);-1==t&&(this._tags.src=null,this._tags.push(n))};t.toString=function(){return"[TagPool]"};t._createTag=function(){var n=document.createElement("audio");return n.autoplay=!1,n.preload="none",n}}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i,r){this.AbstractSoundInstance_constructor(n,t,i,r);this._audioSpriteStopTime=null;this._delayTimeoutId=null;this._endedHandler=createjs.proxy(this._handleSoundComplete,this);this._readyHandler=createjs.proxy(this._handleTagReady,this);this._stalledHandler=createjs.proxy(this._playFailed,this);this._audioSpriteEndHandler=createjs.proxy(this._handleAudioSpriteLoop,this);this._loopHandler=createjs.proxy(this._handleSoundComplete,this);i?this._audioSpriteStopTime=.001*(t+i):this._duration=createjs.HTMLAudioTagPool.getDuration(this.src)}var n=createjs.extend(t,createjs.AbstractSoundInstance);n.setMasterVolume=function(){this._updateVolume()};n.setMasterMute=function(){this._updateVolume()};n.toString=function(){return"[HTMLAudioSoundInstance]"};n._removeLooping=function(){null!=this._playbackResource&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))};n._addLooping=function(){null==this._playbackResource||this._audioSpriteStopTime||(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)};n._handleCleanUp=function(){var n=this._playbackResource;if(null!=n){n.pause();n.loop=!1;n.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1);n.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1);n.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1);n.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1);n.removeEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1);try{n.currentTime=this._startTime}catch(t){}createjs.HTMLAudioTagPool.set(this.src,n);this._playbackResource=null}};n._beginPlaying=function(n){return this._playbackResource=createjs.HTMLAudioTagPool.get(this.src),this.AbstractSoundInstance__beginPlaying(n)};n._handleSoundReady=function(){if(4!==this._playbackResource.readyState){var n=this._playbackResource;return n.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),n.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),n.preload="auto",void n.load()}this._updateVolume();this._playbackResource.currentTime=.001*(this._startTime+this._position);this._audioSpriteStopTime?this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1):(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),0!=this._loop&&(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0));this._playbackResource.play()};n._handleTagReady=function(){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1);this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1);this._handleSoundReady()};n._pause=function(){this._playbackResource.pause()};n._resume=function(){this._playbackResource.play()};n._updateVolume=function(){if(null!=this._playbackResource){var n=this._muted||createjs.Sound._masterMute?0:this._volume*createjs.Sound._masterVolume;n!=this._playbackResource.volume&&(this._playbackResource.volume=n)}};n._calculateCurrentPosition=function(){return 1e3*this._playbackResource.currentTime-this._startTime};n._updatePosition=function(){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1);this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1);try{this._playbackResource.currentTime=.001*(this._position+this._startTime)}catch(n){this._handleSetPositionSeek(null)}};n._handleSetPositionSeek=function(){null!=this._playbackResource&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))};n._handleAudioSpriteLoop=function(){this._playbackResource.currentTime<=this._audioSpriteStopTime||(this._playbackResource.pause(),0==this._loop?this._handleSoundComplete(null):(this._position=0,this._loop--,this._playbackResource.currentTime=.001*this._startTime,this._paused||this._playbackResource.play(),this._sendEvent("loop")))};n._handleLoop=function(){0==this._loop&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))};n._updateStartTime=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration);this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))};n._updateDuration=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration);this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))};n._setDurationFromSource=function(){this._duration=createjs.HTMLAudioTagPool.getDuration(this.src);this._playbackResource=null};createjs.HTMLAudioSoundInstance=createjs.promote(t,"AbstractSoundInstance")}();this.createjs=this.createjs||{},function(){"use strict";function i(){this.AbstractPlugin_constructor();this.defaultNumChannels=2;this._capabilities=n._capabilities;this._loaderClass=createjs.SoundLoader;this._soundInstanceClass=createjs.HTMLAudioSoundInstance}var t=createjs.extend(i,createjs.AbstractPlugin),n=i;n.MAX_INSTANCES=30;n._AUDIO_READY="canplaythrough";n._AUDIO_ENDED="ended";n._AUDIO_SEEKED="seeked";n._AUDIO_STALLED="stalled";n._TIME_UPDATE="timeupdate";n._capabilities=null;n.isSupported=function(){return n._generateCapabilities(),null!=n._capabilities};n._generateCapabilities=function(){var t,i,u;if(null==n._capabilities){if(t=document.createElement("audio"),null==t.canPlayType)return null;n._capabilities={panning:!1,volume:!0,tracks:-1};for(var f=createjs.Sound.SUPPORTED_EXTENSIONS,e=createjs.Sound.EXTENSION_MAP,r=0,o=f.length;o>r;r++)i=f[r],u=e[i]||i,n._capabilities[i]="no"!=t.canPlayType("audio/"+i)&&""!=t.canPlayType("audio/"+i)||"no"!=t.canPlayType("audio/"+u)&&""!=t.canPlayType("audio/"+u)}};t.register=function(n){var i=createjs.HTMLAudioTagPool.get(n.src),t=this.AbstractPlugin_register(n);return t.setTag(i),t};t.removeSound=function(n){this.AbstractPlugin_removeSound(n);createjs.HTMLAudioTagPool.remove(n)};t.create=function(n,t,i){var r=this.AbstractPlugin_create(n,t,i);return r.setPlaybackResource(null),r};t.toString=function(){return"[HTMLAudioPlugin]"};t.setVolume=t.getVolume=t.setMute=null;createjs.HTMLAudioPlugin=createjs.promote(i,"AbstractPlugin")}();this.createjs=this.createjs||{},function(){"use strict";function n(t,i,r){this.ignoreGlobalPause=!1;this.loop=!1;this.duration=0;this.pluginData=r||{};this.target=t;this.position=null;this.passive=!1;this._paused=!1;this._curQueueProps={};this._initQueueProps={};this._steps=[];this._actions=[];this._prevPosition=0;this._stepPosition=0;this._prevPos=-1;this._target=t;this._useTicks=!1;this._inited=!1;this._registered=!1;i&&(this._useTicks=i.useTicks,this.ignoreGlobalPause=i.ignoreGlobalPause,this.loop=i.loop,i.onChange&&this.addEventListener("change",i.onChange),i.override&&n.removeTweens(t));i&&i.paused?this._paused=!0:createjs.Tween._register(this,!0);i&&null!=i.position&&this.setPosition(i.position,n.NONE)}var t=createjs.extend(n,createjs.EventDispatcher);n.NONE=0;n.LOOP=1;n.REVERSE=2;n.IGNORE={};n._tweens=[];n._plugins={};n.get=function(t,i,r,u){return u&&n.removeTweens(t),new n(t,i,r)};n.tick=function(t,i){for(var r,f=n._tweens.slice(),u=f.length-1;u>=0;u--)r=f[u],i&&!r.ignoreGlobalPause||r._paused||r.tick(r._useTicks?1:t)};n.handleEvent=function(n){"tick"==n.type&&this.tick(n.delta,n.paused)};n.removeTweens=function(t){var r,i,u;if(t.tweenjs_count){for(r=n._tweens,i=r.length-1;i>=0;i--)u=r[i],u._target==t&&(u._paused=!0,r.splice(i,1));t.tweenjs_count=0}};n.removeAllTweens=function(){for(var t,i=n._tweens,r=0,u=i.length;u>r;r++)t=i[r],t._paused=!0,t.target&&(t.target.tweenjs_count=0);i.length=0};n.hasActiveTweens=function(t){return t?null!=t.tweenjs_count&&!!t.tweenjs_count:n._tweens&&!!n._tweens.length};n.installPlugin=function(t,i){var e=t.priority,r;null==e&&(t.priority=e=0);for(var o=0,h=i.length,u=n._plugins;h>o;o++)if(r=i[o],u[r]){for(var s=u[r],f=0,c=s.length;c>f&&!(e<s[f].priority);f++);u[r].splice(f,0,t)}else u[r]=[t]};n._register=function(t,i){var r=t._target,u=n._tweens,f;if(i&&!t._registered)r&&(r.tweenjs_count=r.tweenjs_count?r.tweenjs_count+1:1),u.push(t),!n._inited&&createjs.Ticker&&(createjs.Ticker.addEventListener("tick",n),n._inited=!0);else if(!i&&t._registered)for(r&&r.tweenjs_count--,f=u.length;f--;)if(u[f]==t){u.splice(f,1);break}t._registered=i};t.wait=function(n,t){if(null==n||0>=n)return this;var i=this._cloneProps(this._curQueueProps);return this._addStep({d:n,p0:i,e:this._linearEase,p1:i,v:t})};t.to=function(n,t,i){return(isNaN(t)||0>t)&&(t=0),this._addStep({d:t||0,p0:this._cloneProps(this._curQueueProps),e:i,p1:this._cloneProps(this._appendQueueProps(n))})};t.call=function(n,t,i){return this._addAction({f:n,p:t?t:[this],o:i?i:this._target})};t.set=function(n,t){return this._addAction({f:this._set,o:this,p:[n,t?t:this._target]})};t.play=function(n){return n||(n=this),this.call(n.setPaused,[!1],n)};t.pause=function(n){return n||(n=this),this.call(n.setPaused,[!0],n)};t.setPosition=function(n,t){var i,r,u,f,o,e;if(0>n&&(n=0),null==t&&(t=1),i=n,r=!1,i>=this.duration&&(this.loop?i%=this.duration:(i=this.duration,r=!0)),i==this._prevPos)return r;if(u=this._prevPos,this.position=this._prevPos=i,this._prevPosition=n,this._target)if(r)this._updateTargetProps(null,1);else if(this._steps.length>0){for(f=0,o=this._steps.length;o>f&&!(this._steps[f].t>i);f++);e=this._steps[f-1];this._updateTargetProps(e,(this._stepPosition=i-e.t)/e.d)}return 0!=t&&this._actions.length>0&&(this._useTicks?this._runActions(i,i):1==t&&u>i?(u!=this.duration&&this._runActions(u,this.duration),this._runActions(0,i,!0)):this._runActions(u,i)),r&&this.setPaused(!0),this.dispatchEvent("change"),r};t.tick=function(n){this._paused||this.setPosition(this._prevPosition+n)};t.setPaused=function(t){return this._paused===!!t?this:(this._paused=!!t,n._register(this,!t),this)};t.w=t.wait;t.t=t.to;t.c=t.call;t.s=t.set;t.toString=function(){return"[Tween]"};t.clone=function(){throw"Tween can not be cloned.";};t._updateTargetProps=function(t,i){var f,e,s,u,o,c,r,l,h,v,a;if(t||1!=i){if(this.passive=!!t.v,this.passive)return;t.e&&(i=t.e(i,0,1,1));f=t.p0;e=t.p1}else this.passive=!1,f=e=this._curQueueProps;for(r in this._initQueueProps){if(null==(u=f[r])&&(f[r]=u=this._initQueueProps[r]),null==(o=e[r])&&(e[r]=o=u),s=u==o||0==i||1==i||"number"!=typeof u?1==i?o:u:u+(o-u)*i,l=!1,c=n._plugins[r])for(h=0,v=c.length;v>h;h++)a=c[h].tween(this,r,s,f,e,i,!!t&&f==e,!t),a==n.IGNORE?l=!0:s=a;l||(this._target[r]=s)}};t._runActions=function(n,t,i){var s=n,f=t,e=-1,o=this._actions.length,h=1,r,u;for(n>t&&(s=t,f=n,e=o,o=h=-1);(e+=h)!=o;)r=this._actions[e],u=r.t,(u==f||u>s&&f>u||i&&u==n)&&r.f.apply(r.o,r.p)};t._appendQueueProps=function(t){var f,u,r,o,e,i;for(i in t)if(void 0===this._initQueueProps[i]){if(u=this._target[i],f=n._plugins[i])for(r=0,o=f.length;o>r;r++)u=f[r].init(this,i,u);this._initQueueProps[i]=this._curQueueProps[i]=void 0===u?null:u}else u=this._curQueueProps[i];for(i in t){if(u=this._curQueueProps[i],f=n._plugins[i])for(e=e||{},r=0,o=f.length;o>r;r++)f[r].step&&f[r].step(this,i,u,t[i],e);this._curQueueProps[i]=t[i]}return e&&this._appendQueueProps(e),this._curQueueProps};t._cloneProps=function(n){var i={},t;for(t in n)i[t]=n[t];return i};t._addStep=function(n){return n.d>0&&(this._steps.push(n),n.t=this.duration,this.duration+=n.d),this};t._addAction=function(n){return n.t=this.duration,this._actions.push(n),this};t._set=function(n,t){for(var i in n)t[i]=n[i]};createjs.Tween=createjs.promote(n,"EventDispatcher")}();this.createjs=this.createjs||{},function(){"use strict";function t(n,t,i){this.EventDispatcher_constructor();this.ignoreGlobalPause=!1;this.duration=0;this.loop=!1;this.position=null;this._paused=!1;this._tweens=[];this._labels=null;this._labelList=null;this._prevPosition=0;this._prevPos=-1;this._useTicks=!1;this._registered=!1;i&&(this._useTicks=i.useTicks,this.loop=i.loop,this.ignoreGlobalPause=i.ignoreGlobalPause,i.onChange&&this.addEventListener("change",i.onChange));n&&this.addTween.apply(this,n);this.setLabels(t);i&&i.paused?this._paused=!0:createjs.Tween._register(this,!0);i&&null!=i.position&&this.setPosition(i.position,createjs.Tween.NONE)}var n=createjs.extend(t,createjs.EventDispatcher);n.addTween=function(n){var i=arguments.length,t;if(i>1){for(t=0;i>t;t++)this.addTween(arguments[t]);return arguments[0]}return 0==i?null:(this.removeTween(n),this._tweens.push(n),n.setPaused(!0),n._paused=!1,n._useTicks=this._useTicks,n.duration>this.duration&&(this.duration=n.duration),this._prevPos>=0&&n.setPosition(this._prevPos,createjs.Tween.NONE),n)};n.removeTween=function(n){var u=arguments.length,i,r,t;if(u>1){for(i=!0,t=0;u>t;t++)i=i&&this.removeTween(arguments[t]);return i}if(0==u)return!1;for(r=this._tweens,t=r.length;t--;)if(r[t]==n)return r.splice(t,1),n.duration>=this.duration&&this.updateDuration(),!0;return!1};n.addLabel=function(n,t){var i,r,u;if(this._labels[n]=t,i=this._labelList,i){for(r=0,u=i.length;u>r&&!(t<i[r].position);r++);i.splice(r,0,{label:n,position:t})}};n.setLabels=function(n){this._labels=n?n:{}};n.getLabels=function(){var n=this._labelList,t,i;if(!n){n=this._labelList=[];t=this._labels;for(i in t)n.push({label:i,position:t[i]});n.sort(function(n,t){return n.position-t.position})}return n};n.getCurrentLabel=function(){var t=this.getLabels(),r=this.position,i=t.length,n;if(i){for(n=0;i>n&&!(r<t[n].position);n++);return 0==n?null:t[n-1].label}return null};n.gotoAndPlay=function(n){this.setPaused(!1);this._goto(n)};n.gotoAndStop=function(n){this.setPaused(!0);this._goto(n)};n.setPosition=function(n,t){var i=this._calcPosition(n),u=!this.loop&&n>=this.duration,r,f;if(i==this._prevPos)return u;for(this._prevPosition=n,this.position=this._prevPos=i,r=0,f=this._tweens.length;f>r;r++)if(this._tweens[r].setPosition(i,t),i!=this._prevPos)return!1;return u&&this.setPaused(!0),this.dispatchEvent("change"),u};n.setPaused=function(n){this._paused=!!n;createjs.Tween._register(this,!n)};n.updateDuration=function(){var n,i,t;for(this.duration=0,n=0,i=this._tweens.length;i>n;n++)t=this._tweens[n],t.duration>this.duration&&(this.duration=t.duration)};n.tick=function(n){this.setPosition(this._prevPosition+n)};n.resolve=function(n){var t=Number(n);return isNaN(t)&&(t=this._labels[n]),t};n.toString=function(){return"[Timeline]"};n.clone=function(){throw"Timeline can not be cloned.";};n._goto=function(n){var t=this.resolve(n);null!=t&&this.setPosition(t)};n._calcPosition=function(n){return 0>n?0:n<this.duration?n:this.loop?n%this.duration:this.duration};createjs.Timeline=createjs.promote(t,"EventDispatcher")}();this.createjs=this.createjs||{},function(){"use strict";function n(){throw"Ease cannot be instantiated.";}n.linear=function(n){return n};n.none=n.linear;n.get=function(n){return-1>n&&(n=-1),n>1&&(n=1),function(t){return 0==n?t:0>n?t*(t*-n+1+n):t*((2-t)*n+(1-n))}};n.getPowIn=function(n){return function(t){return Math.pow(t,n)}};n.getPowOut=function(n){return function(t){return 1-Math.pow(1-t,n)}};n.getPowInOut=function(n){return function(t){return(t*=2)<1?.5*Math.pow(t,n):1-.5*Math.abs(Math.pow(2-t,n))}};n.quadIn=n.getPowIn(2);n.quadOut=n.getPowOut(2);n.quadInOut=n.getPowInOut(2);n.cubicIn=n.getPowIn(3);n.cubicOut=n.getPowOut(3);n.cubicInOut=n.getPowInOut(3);n.quartIn=n.getPowIn(4);n.quartOut=n.getPowOut(4);n.quartInOut=n.getPowInOut(4);n.quintIn=n.getPowIn(5);n.quintOut=n.getPowOut(5);n.quintInOut=n.getPowInOut(5);n.sineIn=function(n){return 1-Math.cos(n*Math.PI/2)};n.sineOut=function(n){return Math.sin(n*Math.PI/2)};n.sineInOut=function(n){return-.5*(Math.cos(Math.PI*n)-1)};n.getBackIn=function(n){return function(t){return t*t*((n+1)*t-n)}};n.backIn=n.getBackIn(1.7);n.getBackOut=function(n){return function(t){return--t*t*((n+1)*t+n)+1}};n.backOut=n.getBackOut(1.7);n.getBackInOut=function(n){return n*=1.525,function(t){return(t*=2)<1?.5*t*t*((n+1)*t-n):.5*((t-=2)*t*((n+1)*t+n)+2)}};n.backInOut=n.getBackInOut(1.7);n.circIn=function(n){return-(Math.sqrt(1-n*n)-1)};n.circOut=function(n){return Math.sqrt(1- --n*n)};n.circInOut=function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)};n.bounceIn=function(t){return 1-n.bounceOut(1-t)};n.bounceOut=function(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375};n.bounceInOut=function(t){return.5>t?.5*n.bounceIn(2*t):.5*n.bounceOut(2*t-1)+.5};n.getElasticIn=function(n,t){var i=2*Math.PI;return function(r){if(0==r||1==r)return r;var u=t/i*Math.asin(1/n);return-(n*Math.pow(2,10*(r-=1))*Math.sin((r-u)*i/t))}};n.elasticIn=n.getElasticIn(1,.3);n.getElasticOut=function(n,t){var i=2*Math.PI;return function(r){if(0==r||1==r)return r;var u=t/i*Math.asin(1/n);return n*Math.pow(2,-10*r)*Math.sin((r-u)*i/t)+1}};n.elasticOut=n.getElasticOut(1,.3);n.getElasticInOut=function(n,t){var i=2*Math.PI;return function(r){var u=t/i*Math.asin(1/n);return(r*=2)<1?-.5*n*Math.pow(2,10*(r-=1))*Math.sin((r-u)*i/t):n*Math.pow(2,-10*(r-=1))*Math.sin((r-u)*i/t)*.5+1}};n.elasticInOut=n.getElasticInOut(1,.3*1.5);createjs.Ease=n}();this.createjs=this.createjs||{},function(){"use strict";function n(){throw"MotionGuidePlugin cannot be instantiated.";}n.priority=0;n._rotOffS;n._rotOffE;n._rotNormS;n._rotNormE;n.install=function(){return createjs.Tween.installPlugin(n,["guide","x","y","rotation"]),createjs.Tween.IGNORE};n.init=function(n,t,i){var r=n.target;return r.hasOwnProperty("x")||(r.x=0),r.hasOwnProperty("y")||(r.y=0),r.hasOwnProperty("rotation")||(r.rotation=0),"rotation"==t&&(n.__needsRot=!0),"guide"==t?null:i};n.step=function(t,i,r,u,f){var l,e,o,v,y,s,h,c,a;if(("rotation"==i&&(t.__rotGlobalS=r,t.__rotGlobalE=u,n.testRotData(t,f)),"guide"!=i)||(e=u,e.hasOwnProperty("path")||(e.path=[]),o=e.path,e.hasOwnProperty("end")||(e.end=1),e.hasOwnProperty("start")||(e.start=r&&r.hasOwnProperty("end")&&r.path===o?r.end:0),e.hasOwnProperty("_segments")&&e._length))return u;if(v=o.length,y=10,!(v>=6&&(v-2)%4==0))throw"invalid 'path' data, please see documentation for valid paths";for(e._segments=[],e._length=0,s=2;v>s;s+=4){for(var p,w,g=o[s-2],nt=o[s-1],rt=o[s+0],ut=o[s+1],ft=o[s+2],et=o[s+3],tt=g,it=nt,b=0,k=[],d=1;y>=d;d++)h=d/y,c=1-h,p=c*c*g+2*c*h*rt+h*h*ft,w=c*c*nt+2*c*h*ut+h*h*et,b+=k[k.push(Math.sqrt((l=p-tt)*l+(l=w-it)*l))-1],tt=p,it=w;e._segments.push(b);e._segments.push(k);e._length+=b}return l=e.orient,e.orient=!0,a={},n.calc(e,e.start,a),t.__rotPathS=Number(a.rotation.toFixed(5)),n.calc(e,e.end,a),t.__rotPathE=Number(a.rotation.toFixed(5)),e.orient=!1,n.calc(e,e.end,f),e.orient=l,e.orient?(t.__guideData=e,n.testRotData(t,f),u):u};n.testRotData=function(n,t){if(void 0===n.__rotGlobalS||void 0===n.__rotGlobalE){if(n.__needsRot)return;n.__rotGlobalS=void 0!==n._curQueueProps.rotation?n.__rotGlobalE=n._curQueueProps.rotation:n.__rotGlobalE=t.rotation=n.target.rotation||0}if(void 0!==n.__guideData){var u=n.__guideData,r=n.__rotGlobalE-n.__rotGlobalS,f=n.__rotPathE-n.__rotPathS,i=r-f;if("auto"==u.orient)i>180?i-=360:-180>i&&(i+=360);else if("cw"==u.orient){for(;0>i;)i+=360;0==i&&r>0&&180!=r&&(i+=360)}else if("ccw"==u.orient){for(i=r-(f>180?360-f:f);i>0;)i-=360;0==i&&0>r&&-180!=r&&(i-=360)}u.rotDelta=i;u.rotOffS=n.__rotGlobalS-n.__rotPathS;n.__rotGlobalS=n.__rotGlobalE=n.__guideData=n.__needsRot=void 0}};n.tween=function(t,i,r,u,f,e,o){var s=f.guide,h;if(void 0==s||s===u.guide)return r;if(s.lastRatio!=e){h=(s.end-s.start)*(o?s.end:e)+s.start;switch(n.calc(s,h,t.target),s.orient){case"cw":case"ccw":case"auto":t.target.rotation+=s.rotOffS+s.rotDelta*e;break;case"fixed":default:t.target.rotation+=s.rotOffS}s.lastRatio=e}return"rotation"!=i||s.orient&&"false"!=s.orient?t.target[i]:r};n.calc=function(n,t,i){var c,o,f,e;if(void 0==n._segments)throw"Missing critical pre-calculated information, please file a bug";void 0==i&&(i={x:0,y:0,rotation:0});for(var l=n._segments,u=n.path,s=n._length*t,h=l.length-2,r=0;s>l[r]&&h>r;)s-=l[r],r+=2;for(c=l[r+1],o=0,h=c.length-1;s>c[o]&&h>o;)s-=c[o],o++;return f=o/++h+s/(h*c[o]),r=2*r+2,e=1-f,i.x=e*e*u[r-2]+2*e*f*u[r+0]+f*f*u[r+2],i.y=e*e*u[r-1]+2*e*f*u[r+1]+f*f*u[r+3],n.orient&&(i.rotation=57.2957795*Math.atan2((u[r+1]-u[r-1])*e+(u[r+3]-u[r+1])*f,(u[r+0]-u[r-2])*e+(u[r+2]-u[r+0])*f)),i};createjs.MotionGuidePlugin=n}();this.createjs=this.createjs||{},function(){"use strict";var n=createjs.TweenJS=createjs.TweenJS||{};n.version="0.6.2";n.buildDate="Thu, 26 Nov 2015 20:44:31 GMT"}(),function(n,t,i){function u(){var n=this._cloneProps(new this.constructor(this.mode,this.startPosition,this.loop));return n.gotoAndStop(this.currentFrame),n.paused=this.paused,n.framerate=this.framerate,n}function f(n,t,r){var f=i.extend(n,i.MovieClip);return f.clone=u,f.nominalBounds=t,f.frameBounds=r,f}var r;n.ssMetadata=[];(n.banners=function(){this.initialize(t.banners)}).prototype=r=new i.Bitmap;r.nominalBounds=new i.Rectangle(0,0,2498,475);(n.main=function(){this.initialize(t.main)}).prototype=r=new i.Bitmap;r.nominalBounds=new i.Rectangle(0,0,1200,938);(n.Symbol2=function(t,r,u){this.initialize(t,r,u,{});this.instance=new n.banners;this.instance.parent=this;this.instance_1=new n.banners;this.instance_1.parent=this;this.instance_1.setTransform(2497,0);this.timeline.addTween(i.Tween.get({}).to({state:[{t:this.instance_1},{t:this.instance}]}).wait(1))}).prototype=f(n.Symbol2,new i.Rectangle(0,0,4995,475),null);(n.Symbol1=function(t,r,u){this.initialize(t,r,u,{});this.instance=new n.Symbol2;this.instance.parent=this;this.instance.setTransform(.5,237.5,1,1,0,0,0,2497.5,237.5);this.timeline.addTween(i.Tween.get(this.instance).to({x:2497.5},840).wait(1))}).prototype=r=new i.MovieClip;r.nominalBounds=new i.Rectangle(-2497,0,4995,475);(n._1200x938=function(t,r,u){this.initialize(t,r,u,{});this.instance=new n.main;this.instance.parent=this;this.timeline.addTween(i.Tween.get(this.instance).wait(1));this.instance_1=new n.Symbol1;this.instance_1.parent=this;this.instance_1.setTransform(-49,237.5,1,1,0,0,0,1249,237.5);this.timeline.addTween(i.Tween.get(this.instance_1).wait(1))}).prototype=r=new i.MovieClip;r.nominalBounds=new i.Rectangle(-3195,469,4995,938);n.properties={width:1200,height:938,fps:33,color:"#FFFFFF",opacity:1,manifest:[{src:"https://www.armcofx.com/Content/tradelanding/banners.jpg?14877907221047",id:"banners"},{src:"https://www.armcofx.com/Content/tradelanding/main.png?14877907122047",id:"main"}],preloads:[]}}(lib=lib||{},images=images||{},createjs=createjs||{},ss=ss||{},AdobeAn=AdobeAn||{});var lib,images,createjs,ss,AdobeAn