www.l-p-a.com Open in urlscan Pro
52.157.255.58  Public Scan

Submitted URL: http://l-p-a.com/build/indexAnimation.59580ba8.js
Effective URL: https://www.l-p-a.com/build/indexAnimation.59580ba8.js
Submission: On July 11 via api from CH — Scanned from NL

Form analysis 0 forms found in the DOM

Text Content

(window.webpackJsonp=window.webpackJsonp||[]).push([["indexAnimation"],{"4h0Y":function(t,e,i){var s=i("I+eb"),n=i("0Dky"),a=i("hh1v"),r=Object.isFrozen;s({target:"Object",stat:!0,forced:n((function(){r(1)}))},{isFrozen:function(t){return!a(t)||!!r&&r(t)}})},"5DmW":function(t,e,i){var s=i("I+eb"),n=i("0Dky"),a=i("/GqU"),r=i("Bs8V").f,o=i("g6v/"),h=n((function(){r(1)}));s({target:"Object",stat:!0,forced:!o||h,sham:!o},{getOwnPropertyDescriptor:function(t,e){return r(a(t),e)}})},"5Yz+":function(t,e,i){"use strict";var s=i("/GqU"),n=i("ppGB"),a=i("UMSQ"),r=i("pkCn"),o=i("rkAj"),h=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,c=r("lastIndexOf"),d=o("indexOf",{ACCESSORS:!0,1:0}),_=u||!c||!d;t.exports=_?function(t){if(u)return l.apply(this,arguments)||0;var e=s(this),i=a(e.length),r=i-1;for(arguments.length>1&&(r=h(r,n(arguments[1]))),r<0&&(r=i+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}:l},DB7T:function(t,e,i){i("MD8v"),i("Qp7O"),new BlobAnimation("blob",{BLOB_SIZE:300,BLOB_DISTANCE:200,DETALISATION:60,PERSPECTIVE_DISTORTION:3,ROTATION_SPEED:1,DOT_SIZE:1,DOT_COLOR:"#6984F1",MOUSE_DISTANCE_MIN:20,MOUSE_DISTANCE_MAX:2e4,MOUSE_SENSITIVITY:.1,INERTIAL_TIME:2,INITIAL_SHAPE:{wave1:{amplitude:0,frequency:0,phase:0},wave2:{amplitude:0,frequency:0,phase:0},wave3:{amplitude:35,frequency:10,phase:0}},USE_MORPHING:!1,USE_WAVE_MOTION:!0,USE_WAVE_SWING:!1,WAVE_3_MOTION_SPEED:2})},HRxU:function(t,e,i){var s=i("I+eb"),n=i("g6v/");s({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperties:i("N+g0")})},Junv:function(t,e,i){"use strict";var s=i("I+eb"),n=i("6LWA"),a=[].reverse,r=[1,2];s({target:"Array",proto:!0,forced:String(r)===String(r.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),a.call(this)}})},MD8v:function(module,exports,__webpack_require__){__webpack_require__("ma9I"),__webpack_require__("yyme"),__webpack_require__("QWBl"),__webpack_require__("yXV3"),__webpack_require__("oVuX"),__webpack_require__("uqXc"),__webpack_require__("Junv"),__webpack_require__("+2oP"),__webpack_require__("pDQq"),__webpack_require__("sMBO"),__webpack_require__("qePV"),__webpack_require__("HRxU"),__webpack_require__("eoL8"),__webpack_require__("5DmW"),__webpack_require__("4h0Y"),__webpack_require__("4l63"),__webpack_require__("rB9j"),__webpack_require__("UxlC"),__webpack_require__("EnZy"),__webpack_require__("SYor"),__webpack_require__("zHFu"),__webpack_require__("FZtP"),function(){var PASSKEY={},DO_NOTHING=function(){},TRANSFORMATION_OWN_PROPS=["x","y","rotation","scaleX","scaleY","originX","originY"],LAYER_COMMON_OWN_PROPS=TRANSFORMATION_OWN_PROPS.concat(["alpha"]);function trace(t){console.log(t)}function use(str){str=str.split(" ").join("");var targetObjectName,dotStarIndex=str.lastIndexOf(".*");if(dotStarIndex==str.length-2){var parentObj=eval(str.substring(0,dotStarIndex));for(targetObjectName in parentObj)window[targetObjectName]=parentObj[targetObjectName]}else{var arr=str.split(".");targetObjectName=arr[arr.length-1],window[targetObjectName]=eval(str)}}function extend(t,e){var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.prototype.super=e,"OWN_PROPS"in e&&(t.OWN_PROPS=e.OWN_PROPS.slice())}function createClass(t,e,i){function s(){if(e)for(var t in e)this[t]=e[t];i&&i(this)}return s.prototype=t,s.prototype.constructor=s,s}var colourNameToRgb={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgrey:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:216},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:216,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},instanceID;function getColorComponents(t){if(-1!=(t=t.replace(/ /g,"")).indexOf("#"))return(i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16),a:1}:null;var e=t.toLowerCase();if(-1!=e.indexOf("rgb(")||-1!=e.indexOf("rgba(")){var i=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(",");return{r:Number(i[0]),g:Number(i[1]),b:Number(i[2]),a:i.length>3?Number(i[3]):1}}if(void 0!==colourNameToRgb[e])return(a=colourNameToRgb[e]).a=1,a;var s=CanvasComposition.PIXEL;s.save(),s.fillStyle=t,s.fillRect(0,0,1,1);var n=s.getImageData(0,0,1,1).data,a={r:n[0],g:n[1],b:n[2],a:n[3]/255};return s.restore(),s.clearRect(0,0,2,2),a}function validNonNegative(t,e){return isNaN(t)||t<0?e:t}function validMinMax(t,e,i,s){return isNaN(t)?s:t<e?e:t>i?i:t}function copyThisWithOwnProps(){var t=new this.constructor,e=this.constructor.OWN_PROPS;for(i=e.length;i--;)t[e[i]]=this[e[i]];return t}function copyThisLayerCommonMethod(){var t=copyThisWithOwnProps.call(this);for(var e in t.listeners={},this.listeners)t.listeners[e]=this.listeners[e].slice();var i=DragBehavior.of(this);return i&&i.addTo(t),t}function CommonMap(){var t,e=[],i=[];this.get=function(s){for(t=e.length;t--;)if(e[t]===s)return i[t]},this.set=function(s,n){for(t=e.length;t--;){if(k=e[t],k===s)return void(i[t]=n);this.useGC&&this.gcCondition(k,i[t])&&(e.splice(t,1),i.splice(t,1),this.useGCEvents&&this.dispatchEvent("removedByGC",{key:k,value:i[t]}))}e.push(s),i.push(n)},this.has=function(i){for(t=e.length;t--;)if(e[t]===i)return!0;return!1},this.delete=function(s){for(t=e.length;t--;)if(e[t]===s){e.splice(t,1),i.splice(t,1);break}},Object.defineProperty(this,"size",{get:function(){return e.length},enumerable:!0,configurable:!1}),this.log=function(){for(trace(""),trace('Hash-table "'+this.name+'" log:'),trace(""),t=0,n=e.length;t<n;t++)trace(t+". key = "+e[t]+", value = "+i[t])},this.name="untitled",this.gcCondition=CommonMap.EMPTY_GC_CONDITION,this.useGC=!1,this.useGCEvents=!1,EventDispatcherBehaivor.init(this)}function SoftMap(){if(arguments.length&&arguments[0]===PASSKEY){var t=arguments[1],e=t.errorType;if(t.hostClass)var i=t.hostClass.getID(),s=t.hostClass.prototype.className;else i=SoftMap.getID(),s="SoftMap"}else e='SoftMap "set"',i=SoftMap.getID(),s="SoftMap";var n=0,a=__Collection.createHiddenZone,r=__Collection.keyIsObject,o=__Collection.keyIsFixed,h=__Collection.hiddenZoneOf,l=__Collection.keyHasHiddenZone,u=__Collection.keyKnowsID;this.set=function(t,s){if(!r(t))return trace(e+" ERROR: "+t+" is not an Object"),!1;if(l(t))u(t,i)||(n++,h(t).propsTotal++);else{if(o(t))return trace(e+" ERROR: "+t+' is frozen or its "valueOf" is not configurable'),!1;a(t),n++,h(t).propsTotal++}return h(t)[i]=s,!0},this.get=function(t){if(r(t)&&l(t))return h(t)[i]},this.has=function(t){return r(t)&&l(t)&&u(t,i)},this.hasPair=function(t,e){return this.has(t)&&h(t)[i]===e},this.delete=function(t){return!!this.has(t)&&(delete h(t)[i],h(t).propsTotal--,n--,!0)},Object.defineProperty(this,"size",{get:function(){return n}}),this.traceID=function(){trace(s+" instance id == "+i)},this.traceCollectionsOf=__Collection.traceCollectionsOf}function SoftSet(){var t=new SoftMap(PASSKEY,{hostClass:SoftSet,errorType:'SoftSet "add"'});this.add=function(e){return t.set(e,!0)},this.has=function(e){return t.has(e)},this.delete=function(e){return t.delete(e)},Object.defineProperty(this,"size",{get:function(){return t.size}}),this.traceID=function(){t.traceID()},this.traceCollectionsOf=__Collection.traceCollectionsOf}function HardMap(){if(arguments.length&&arguments[0]===PASSKEY)var t=arguments[1],e=t.errorType,i=t.hostClass;var s=new SoftMap(PASSKEY,t?{hostClass:i||HardMap,errorType:e||'HardMap "set"'}:{hostClass:HardMap,errorType:'HardMap "set"'}),n={},a={},r={},o=0;this.set=function(t,e){var i=!__Collection.keyIsObject(t);if(i){var h=t;r.hasOwnProperty(t)&&(t=r[t])}if(s.has(t)){var l=s.get(t);return a[l]=e,!0}return i&&(r[h]=t={$:t}),s.set(t,++o)?(n[o]=i?h:t,a[o]=e,!0):(o--,!1)},this.get=function(t){return __Collection.keyIsObject(t)?a[s.get(t)]:r.hasOwnProperty(t)?a[s.get(r[t])]:void 0},this.has=function(t){return __Collection.keyIsObject(t)?s.has(t):r.hasOwnProperty(t)},this.hasPair=function(t,e){return this.has(t)&&this.get(t)===e},this.delete=function(t){if(!__Collection.keyIsObject(t)&&r.hasOwnProperty(t)){var e=r[t];delete r[t],t=e}var i=s.get(t);return void 0!==i&&(delete n[i],delete a[i],s.delete(t),!0)},this.forEach=function(t){for(id in n)t(a[id],n[id],this)},this.forEachKey=function(t,e){for(id in n)t(n[id],e)},this.randomKey=function(){var t=Math.ceil(this.size*Math.random())||1,e=0;for(id in n)if(++e==t)return n[id]},this.clear=function(){for(id in n){var t=n[id];s.delete(__Collection.keyIsObject(t)?t:r[t])}n={},a={},r={},o=0},Object.defineProperty(this,"size",{get:function(){return s.size}}),this.traceID=function(){s.traceID()},this.traceCollectionsOf=__Collection.traceCollectionsOf}function HardSet(){var t=new HardMap(PASSKEY,{hostClass:HardSet,errorType:'HardSet "add"'});this.add=function(e){return t.set(e,!0)},this.has=function(e){return t.has(e)},this.delete=function(e){return t.delete(e)},this.forEach=function(e){t.forEachKey(e,this)},this.clear=function(){t.clear()},this.random=function(){return t.randomKey()},Object.defineProperty(this,"size",{get:function(){return t.size}}),this.traceID=function(){t.traceID()},this.traceCollectionsOf=__Collection.traceCollectionsOf}function IdChain(t){if(t&&t instanceof Object){var e=new IdChain;for(var i in t)e.add(i);return e}var s,n,a,r={},o=0;function h(t){return!r[t][0]}function l(t){return!r[t][2]}function u(t){return r[t][2]}function c(t){return r[t][0]}this.add=function(t){return t=String(t),!this.has(t)&&""!==t&&(o?(a[2]=t,a=r[t]=[a[1],t,0]):r[t]=n=a=[0,t,0],o++,!0)},this.addBefore=function(t,e){if(this.has(t)&&e!=t&&""!==e){if(e=String(e),this.has(e)){if(c(t)==e)return!1;h(t)?(l(e)?(a=r[(n=a)[0]])[2]=0:(n=r[e],r[n[0]][2]=n[2],r[n[2]][0]=n[0]),n[2]=t,n[0]=0,r[t][0]=e):(l(e)?(a=r[(s=a)[0]])[2]=0:(s=r[e],r[s[0]][2]=s[2],r[s[2]][0]=s[0]),s[2]=t,s[0]=r[t][0],r[s[0]][2]=r[t][0]=e)}else{if(h(t))n[0]=e,n=r[e]=[0,e,t];else{var i=r[t][0];r[i][2]=e,r[t][0]=e,r[e]=[i,e,t]}o++}return!0}return!1},this.addAfter=function(t,e){if(this.has(t)&&e!=t&&u(t)!=e&&""!==e){if(l(t)){a[2]="",a=r[""]=[t,"",0];var i=this.addBefore("",e);return(a=r[a[0]])[2]=0,delete r[""],i}return this.addBefore(r[t][2],e)}return!1},this.has=function(t){return r.hasOwnProperty(t)},this.nextTo=function(t){return this.has(t)?u(t):void 0},this.prevTo=function(t){return this.has(t)?c(t):void 0},this.delete=function(t){return!!this.has(t)&&(h(t)?(n=r[r[t][2]])[0]=0:l(t)?(a=r[r[t][0]])[2]=0:(s=r[t],r[s[0]][2]=s[2],r[s[2]][0]=s[0]),delete r[t],o--,!0)},this.isFirst=function(t){return this.has(t)&&h(t)},this.isLast=function(t){return this.has(t)&&l(t)},Object.defineProperty(this,"size",{get:function(){return o}}),Object.defineProperty(this,"first",{get:function(){return o?n[1]:void 0}}),Object.defineProperty(this,"last",{get:function(){return o?a[1]:void 0}}),this.traceLinks=function(){trace(""),trace("----- IdChain links: -----");for(var t=n[1];t;)trace(t+": ["+r[t]+"]"),t=r[t][2]}}function __KeyHiddenZone(){Object.defineProperty(this,"propsTotal",{value:0,configurable:!1,wrirable:!0,enumerable:!1})}CommonMap.prototype={className:"CommonMap",superclassName:"Object",constructor:CommonMap},CommonMap.EMPTY_GC_CONDITION=function(t,e){return!1},SoftMap.prototype={className:"SoftMap",superclassName:"Object",constructor:SoftMap},instanceID=0,SoftMap.getID=function(){return"SoftMap_"+ ++instanceID},SoftSet.prototype={className:"SoftSet",superclassName:"Object",constructor:SoftSet},function(){var t=0;SoftSet.getID=function(){return"SoftSet_"+ ++t}}(),HardMap.prototype={className:"HardMap",superclassName:"Object",constructor:HardMap,get forEachProxy(){var t=this;return{forEach:function(e){t.forEach(e)}}}},function(){var t=0;HardMap.getID=function(){return"HardMap_"+ ++t}}(),HardSet.prototype={className:"HardSet",superclassName:"Object",constructor:HardSet,get forEachProxy(){var t=this;return{forEach:function(e){t.forEach(e)}}}},function(){var t=0;HardSet.getID=function(){return"HardSet_"+ ++t}}(),IdChain.prototype={className:"IdChain",superclassName:"Object",constructor:IdChain},__KeyHiddenZone.prototype={className:"__KeyHiddenZone",superclassName:"Object",constructor:__KeyHiddenZone};var __Collection={};function EnterFrameSignal(t,e,i){(i||arguments.length<3)&&(EnterFrameSignal.__defaultInstance=this);var s=60==(t=isNaN(t)||t<=0?60:t);this.frameDuration=1e3/t,e=arguments.length<2||e;var n,a=null,r=[],o=[],h=0,l=!1,u=!1,c=0,d=0,_=this,f={object:{func:function(){_.removeListener(f.object,"func")}},methodName:"func"},p=function(){for(u=!0,c=r.length;c--;)r[c]&&r[c].object[r[c].methodName]();if(u=!1,h)for(d=o.length;d--;)o[d]&&o[d].object[o[d].methodName]();l&&w()},m=function(){for(n=(new Date).getTime(),u=!0,c=r.length;c--;)r[c]&&r[c].object[r[c].methodName](n,n);if(u=!1,h)for(d=o.length;d--;)o[d]&&o[d].object[o[d].methodName]();l&&w()},g=function(){a=setTimeout(y,_.frameDuration)},v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,_.frameDuration)},b=function(){a=v(y)},x=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.cancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.webkitCancelRequestAnimationFrame||clearTimeout,y=e?m:p,w=s?b:g;this.addListener=function(t,e,i){arguments.length<2?e="call":"boolean"==typeof arguments[1]&&(i=e,e="call");
//!!!!!!!!!!!!!!!!!!!	
for(var s=r.length;s--;)if(r[s].object===t&&r[s].methodName===e)return;var n={object:t,methodName:e,debugStr:"debugStr"};i?n.isHidden=i:h++,r.push(n),l||(l=!0,u||w())},this.removeListener=function(t,e){arguments.length<2&&(e="call");
//!!!!!!!!!!!!!!!!!!!
for(var i=r.length;i--;)if(r[i].object===t&&r[i].methodName===e){var n=!r[i].isHidden;if(n&&h--,r.splice(i,1),i<c&&c--,r.length){if(!h&&n)for(u=o.length;u--;)o[u].object[o[u].methodName]()}else if(l=!1,s?x(a):clearTimeout(a),n)for(var u=o.length;u--;)o[u].object[o[u].methodName]();return}},this.removeAllListeners=function(){s?x(a):clearTimeout(a),l=!1,r.length=h=c=0;for(var t=o.length;t--;)o[t].object[o[t].methodName]()},this.addUpdateListener=function(t,e){for(var i=o.length;i--;)if(o[i].object===t&&o[i].methodName===e)return;o.push({object:t,methodName:e})},this.removeUpdateListener=function(t,e){for(var i=o.length;i--;)if(o[i].object===t&&o[i].methodName===e)return o.splice(i,1),void(i<d&&d--)},this.doNextTick=function(t,e){var i=this;function s(){i.removeListener(s),t()}e?this.addListener(s,e):this.addListener(s)},this.doLater=function(t,e,i){var s=this,n=(new Date).getTime();function a(){(new Date).getTime()-n>e&&(s.removeListener(a),t())}i?this.addListener(a,i):this.addListener(a)},this.addTimerListener=function(t,e,i,s){if(arguments.length>1&&isNaN(arguments[1])){var n=t,a=e;t=function(){n[a]()},e=i,i=s,s=arguments[4]}e=e||1e3;var r,o=this,h=(new Date).getTime(),l=0;if(s){var u=1,c=s.repeats||0,d=s.precision||1,_=s.randomization||0,f=e*(1+_*(2*Math.random()-1)),p=d*f,m=function(){if(r=(new Date).getTime(),(l+=r-h)>p){for(;l>p;)t(),l-=f;++u>c&&c?o.removeListener(m):(f=e*(1+_*(2*Math.random()-1)),p=d*f)}h=r};Object.defineProperty(m,"delay",{get:function(){return e},set:function(t){f=(e=t)*(1+_*(2*Math.random()-1)),p=d*f}})}else{m=function(){for(r=(new Date).getTime(),l+=r-h;l>e;)t(),l-=e;h=r};Object.defineProperty(m,"delay",{get:function(){return e},set:function(t){e=t}})}return i?this.addListener(m,i):this.addListener(m),m},this.ensureNextTickUpdate=function(){h||(h++,r.push(f),l||(l=!0,w()))},this.listenersTotal=function(){return r.length},this.getListeners=function(){return r}}!function(t){function e(t){return t&&t instanceof Object}function i(t){return t.valueOf(__KeyHiddenZone)}function s(t){return t.hasOwnProperty("valueOf")&&i(t)instanceof __KeyHiddenZone}t.createHiddenZone=function(t){var e=new __KeyHiddenZone,i=t.valueOf;Object.defineProperty(t,"valueOf",{value:function(t){return t&&t===__KeyHiddenZone?e:i.apply(this,arguments)},configurable:!1,wrirable:!1})},t.keyIsObject=e,t.keyIsFixed=function(t){var e=Object.getOwnPropertyDescriptor(t,"valueOf");return e&&!e.configurable||Object.isFrozen(t)},t.hiddenZoneOf=i,t.keyHasHiddenZone=s,t.keyKnowsID=function(t,e){return i(t).hasOwnProperty(e)},t.traceCollectionsOf=function(t){if(e(t)&&s(t)){trace(""),trace("Collections of "+t+":");var n=i(t);for(str in n)"className"!=str&&"superclassName"!=str&&"constructor"!=str&&trace(str)}}}(__Collection),EnterFrameSignal.prototype={className:"EnterFrameSignal",superclassName:"Object",constructor:EnterFrameSignal,get frameRate(){return 1e3/this.frameDuration}},EnterFrameSignal.getInstance=function(){return EnterFrameSignal.__defaultInstance?EnterFrameSignal.__defaultInstance:new EnterFrameSignal};var events={CustomEvent:{CUSTOM_STRING_CONSTANT_1:"customEventName_1",CUSTOM_STRING_CONSTANT_2:"customEventName_2"},CustomEventData:function(t,e,i){this.eventProp_1=t,this.eventProp_2=e,this.eventProp_3=i}},EventDispatcherBehaivor={},invokeListenerMethod=function(t,e){t.object[t.methodName](e)},invokeListenerFunction=function(t,e){t.object(e)};EventDispatcherBehaivor.addEventListener=function(t,e,i){this.listeners[t]||(this.listeners[t]=[]);for(var s=arguments.length<3?invokeListenerFunction:invokeListenerMethod,n=this.listeners[t],a=n.length;a--;)if(n[a].object===e&&n[a].methodName===i)return;var r={object:e,methodName:i,invokeListenerType:s,debugStr:"debugStr"};n.push(r)},EventDispatcherBehaivor.removeEventListener=function(t,e,i){if(this.listeners[t])for(var s=this.listeners[t],n=s.length;n--;)if(s[n].object===e&&s[n].methodName===i)return s.splice(n,1),void(s.length||delete this.listeners[t])},EventDispatcherBehaivor.dispatchEvent=function(t,e){if(this.listeners[t])for(var i=this.listeners[t],s=i.length,n={type:t,currentTarget:this,target:e&&e.target?e.target:this,data:e},a=0;a<s;a++)i[a].invokeListenerType(i[a],n)},EventDispatcherBehaivor.init=function(t){t.listeners={},t.addEventListener=this.addEventListener,t.removeEventListener=this.removeEventListener,t.dispatchEvent=this.dispatchEvent};var Ease={lin:function(){return function(t,e,i){return t+(e-t)*i}},circ:function(){return function(t,e,i){return i<.5?t+(e-t)/2*(1-Math.sqrt(1-4*i*i)):e-(e-t)/2*(1-Math.sqrt(1-4*(1-i)*(1-i)))}},circIn:function(){return function(t,e,i){return t+(e-t)*(1-Math.sqrt(1-i*i))}},circOut:function(){return function(t,e,i){return e-(e-t)*(1-Math.sqrt(1-(1-i)*(1-i)))}},elps:function(t,e){return t=t||.618,e=e||9,function(i,s,n){return n<.5?i+(s-i)/2*t*(1-Math.sqrt(1-Math.pow(2*n,e))):s-(s-i)/2*t*(1-Math.sqrt(1-Math.pow(2-2*n,e)))}},elpsIn:function(t,e){return t=t||.618,e=e||9,function(i,s,n){return i+(s-i)*t*(1-Math.sqrt(1-Math.pow(n,e)))}},elpsOut:function(t,e){return t=t||.618,e=e||9,function(i,s,n){return s-(s-i)*t*(1-Math.sqrt(1-Math.pow(1-n,e)))}},pow:function(t){return t=t||3,function(e,i,s){return s<.5?e+(i-e)/2*Math.pow(2*s,t):i-(i-e)/2*Math.pow(2*(1-s),t)}},powIn:function(t){return t=t||3,function(e,i,s){return e+(i-e)*Math.pow(s,t)}},powOut:function(t){return t=t||3,function(e,i,s){return i-(i-e)*Math.pow(1-s,t)}},sin:function(){return function(t,e,i){return t-(e-t)/2*(Math.cos(Math.PI*i)-1)}},sinIn:function(){return function(t,e,i){return e-(e-t)*Math.cos(i*(Math.PI/2))}},sinOut:function(){return function(t,e,i){return t+(e-t)*Math.sin(i*(Math.PI/2))}},exp:function(){return function(t,e,i){return 0==i?t:1==i?e:(i*=2)<1?t+(e-t)/2*Math.pow(2,10*(i-1)):t+(e-t)/2*(2-Math.pow(2,10*(1-i)))}},expIn:function(){return function(t,e,i){return 0==i?t:t+(e-t)*Math.pow(2,10*(i-1))}},expOut:function(){return function(t,e,i){return 1==i?e:t+(e-t)*(1-Math.pow(2,-10*i))}},osc:function(t,e){return t=t||4,e=e||11,function(i,s,n){return n<.5?i+(s-i)/2*Math.abs(Math.pow((n=1-2*n)-1,t))*Math.sin(Math.PI/2*(e*n+1)):s-(s-i)/2*Math.abs(Math.pow((n=2*n-1)-1,t))*Math.sin(Math.PI/2*(e*n+1))}},oscOut:function(t,e){return t=t||4,e=e||11,function(i,s,n){return s-(s-i)*Math.abs(Math.pow(n-1,t))*Math.sin(Math.PI/2*(e*n+1))}},oscIn:function(t,e){return t=t||4,e=e||11,function(i,s,n){return i+(s-i)*Math.abs(Math.pow(n,t))*Math.sin(Math.PI/2*(e*(1-n)+1))}},osc2:function(t,e){return t=t||9,e=e||11,function(i,s,n){return n<.5?i+(s-i)/2*Math.exp(-t*(n=1-2*n))*Math.sin(Math.PI/2*(e*n+1)):s-(s-i)/2*Math.exp(-t*(n=2*n-1))*Math.sin(Math.PI/2*(e*n+1))}},osc2Out:function(t,e){return t=t||9,e=e||11,function(i,s,n){return s-(s-i)*Math.exp(-t*n)*Math.sin(Math.PI/2*(e*n+1))}},osc2In:function(t,e){return t=t||9,e=e||11,function(i,s,n){return i+(s-i)*Math.exp(-t*(1-n))*Math.sin(Math.PI/2*(e*(1-n)+1))}},_bncGetParams:function(t,e){for(var i=Math.sqrt(e),s=[{tMax:1,tOffset:0,fOffset:0}],n=0,a=0,r=0;r++<t;){n=a,a+=2*Math.pow(i,r),(h={}).tMax=1+a,h.tOffset=1+n+Math.pow(i,r),h.fOffset=1-Math.pow(e,r),s.push(h)}for(var o=1/s[t-1].tMax;r--;){var h;(h=s[r]).tMax*=o,h.tOffset*=o}return{f:s,s:1/(o*o)}},bncOut:function(t,e){t=t||5,e=e||.25;var i=Ease._bncGetParams(t,e),s=i.f,n=i.s;return function(e,i,a){for(var r=0;r<t;r++){var o=s[r];if(a<o.tMax)return e+(i-e)*(n*(a-o.tOffset)*(a-o.tOffset)+o.fOffset)}}},bncIn:function(t,e){t=t||5,e=e||.25;var i=Ease._bncGetParams(t,e),s=i.f,n=i.s;return function(e,i,a){a=1-a;for(var r=0;r<t;r++){var o=s[r];if(a<o.tMax)return i-(i-e)*(n*(a-o.tOffset)*(a-o.tOffset)+o.fOffset)}}},bnc:function(t,e){t=t||5,e=e||.25;var i=Ease._bncGetParams(t,e),s=i.f,n=i.s;return function(e,i,a){if(a<.5){a=1-2*a;for(var r=0;r<t;r++){if(a<(o=s[r]).tMax)return i-(i-e)/2*(n*(a-o.tOffset)*(a-o.tOffset)+o.fOffset+1)}}a=2*a-1;for(r=0;r<t;r++){var o;if(a<(o=s[r]).tMax)return e+(i-e)/2*(n*(a-o.tOffset)*(a-o.tOffset)+o.fOffset+1)}}},backIn:function(t){var e=-2*(t=t||2.7)-1,i=t+2;return function(s,n,a){return n-(n-s)*(t*(a=1-a)*a*a+e*a*a+i*a)}},backOut:function(t){var e=-2*(t=t||2.7)-1,i=t+2;return function(s,n,a){return s+(n-s)*(t*a*a*a+e*a*a+i*a)}},back:function(t){var e=-2*(t=t||2.7)-1,i=t+2;return function(s,n,a){return a<.5?n-(n-s)/2*(t*(a=1-2*a)*a*a+e*a*a+i*a+1):s+(n-s)/2*(t*(a=2*a-1)*a*a+e*a*a+i*a+1)}},powLin:function(t,e){var i=(t=t||3)*(1/(e=null==e||e<0||e>1?.309:e/2)-2)+2;return e?function(s,n,a){return a<=e?s+(n-s)/i*Math.pow(a/e,t):a>1-e?n-(n-s)/i*Math.pow((1-a)/e,t):s+(n-s)*(1/i+(1-2/i)*(a-e)/(1-2*e))}:Ease.lin()},powLinIn:function(t,e){var i=(t=t||3)*(1/(e=null==e||e<0||e>1?.618:e)-1)+1;return e?function(s,n,a){return a<e?s+(n-s)/i*Math.pow(a/e,t):s+(n-s)*(1/i+(1-1/i)*(a-e)/(1-e))}:Ease.lin()},powLinOut:function(t,e){var i=(t=t||3)*(1/(e=null==e||e<0||e>1?.618:e)-1)+1;return e?function(s,n,a){return a>1-e?n-(n-s)/i*Math.pow((1-a)/e,t):n-(n-s)*(1+a*(1-i)/(i*(1-e)))}:Ease.lin()},powCombo:function(t,e,i){var s=(t=t||3)/((e=e||5)*(1/(i=i||.618)-1)+t);return function(n,a,r){return r<s?n+(a-n)*i*Math.pow(r/s,t):a-(a-n)*(1-i)*Math.pow((1-r)/(1-s),e)}},powCombo2:function(t,e,i){var s=1/((t=t||3)/(e=e||5)*(1/(i=i||.618)-1)+1);return function(n,a,r){return r<i?n+(a-n)*s*Math.pow(r/i,t):a-(a-n)*(1-s)*Math.pow((1-r)/(1-i),e)}},morph:function(t,e,i){return t=t||Ease.circ(),e=e||Ease.pow(5),i?function(s,n,a){return i(t(s,n,a),e(s,n,a),a)}:function(i,s,n){return(1-n)*t(i,s,n)+n*e(i,s,n)}},custom:function(t){return function(e,i,s){return s<.5?e+(i-e)/2*t(2*s):i-(i-e)/2*t(2-2*s)}},customIn:function(t){return function(e,i,s){return e+(i-e)*t(s)}},customOut:function(t){return function(e,i,s){return i-(i-e)*t(1-s)}}};Ease.def=Ease.pow;var Pause={frames:function(t,e){var i={},s=e||EnterFrameSignal.getInstance(),n=0;return q=Queue.ref,s.addListener((function e(){n++>t&&(s.removeListener(e),i.hasOwnProperty("onComplete")&&setTimeout((function(){i.onComplete()}),0),q.end())}),!0),i},seconds:function(t){var e={},i=Queue.ref;return setTimeout((function(){e.onComplete&&e.onComplete(),i.end()}),1e3*t),e}},Wait={run:function(t,e){var i={},s=e||EnterFrameSignal.getInstance(),n=Queue.ref;function a(){t()&&(s.removeListener(a),i.hasOwnProperty("onComplete")&&setTimeout((function(){i.onComplete()}),0),n.end())}return Object.defineProperty(i,"abort",{value:function(){s.removeListener(a)},writable:!1}),s.addListener(a,!0),i},abort:function(t){t.abort()}},MonoTween={run:function(t,e,i,s,n,a){var r,o=Queue.ref,h={object:t},l=n||30,u=s||Ease.lin(),c=t[e],d="change"+e;r=a||(t.__stage&&t.__stage.metronome?t.__stage.metronome:EnterFrameSignal.getInstance());var _=1;return t[d]=function(){this[e]=u(c,i,_++/l),_>l&&(this[e]=i,r.removeListener(this,d),delete this[d],h.hasOwnProperty("onComplete")&&setTimeout((function(){h.onComplete()}),0),o.end())},r.addListener(t,d),h}},ColorTween={};function PropModifier(t,e){var i=t[e];Object.defineProperty(this,"value",{get:function(){return i},set:function(s){t[e]=s,i=s}})}ColorTween.run=function(t,e,i,s,n,a){var r,o=Queue.ref,h={object:t},l=n||30,u=s||Ease.lin(),c=getColorComponents(t[e]),d=getColorComponents(i),_="change"+e;r=a||(t.__stage&&t.__stage.metronome?t.__stage.metronome:EnterFrameSignal.getInstance());var f,p=1;return t[_]=function(){f=p/l,this[e]="rgba("+Math.round(u(c.r,d.r,f))+","+Math.round(u(c.g,d.g,f))+","+Math.round(u(c.b,d.b,f))+","+u(c.a,d.a,f)+")",++p>l&&(this[e]=i,r.removeListener(this,_),delete this[_],h.hasOwnProperty("onComplete")&&setTimeout((function(){h.onComplete()}),0),o.end())},r.addListener(t,_),h};var ColorTweenTimebased={run:function(t,e,i,s,n,a){if(t instanceof HTMLElement&&!t.hasOwnProperty(e)&&e in t.style)return t.style[e]=window.getComputedStyle(t)[e],(!t.hasOwnProperty("cssPropModifier")||!t.cssPropModifier instanceof PropModifier)&&(t.cssPropModifier=new PropModifier(t.style,e)),ColorTweenTimebased.run(t.cssPropModifier,"value",i,s,n,a);var r,o=Queue.ref,h={object:t},l=n||500,u=s||Ease.lin(),c=getColorComponents(t[e]),d=getColorComponents(i),_="change"+e;r=a||(t.__stage&&t.__stage.metronome?t.__stage.metronome:EnterFrameSignal.getInstance());var f,p=0,m=(new Date).getTime();return t[_]=function(t){f=p/l,this[e]="rgba("+Math.round(u(c.r,d.r,f))+","+Math.round(u(c.g,d.g,f))+","+Math.round(u(c.b,d.b,f))+","+u(c.a,d.a,f)+")",(p=t-m)>l&&(this[e]=i,r.removeListener(this,_),delete this[_],h.hasOwnProperty("onComplete")&&h.onComplete(),o.end())},r.addListener(t,_),h}},MonoTweenTimebased={run:function(t,e,i,s,n,a){var r,o=Queue.ref,h={object:t},l=n||500,u=s||Ease.lin(),c=t[e],d="change"+e;r=a||(t.__stage&&t.__stage.metronome?t.__stage.metronome:EnterFrameSignal.getInstance());var _=0,f=(new Date).getTime();return t[d]=function(t){this[e]=u(c,i,_/l),(_=t-f)>l&&(this[e]=i,r.removeListener(this,d),delete this[d],h.hasOwnProperty("onComplete")&&h.onComplete(),o.end())},r.addListener(t,d),h}},PolyTween={run:function(t,e,i,s,n,a){var r,o,h,l=Queue.ref,u={object:t},c=s||30,d=i||Ease.lin();r=n||(t.__stage&&t.__stage.metronome?t.__stage.metronome:EnterFrameSignal.getInstance()),a?(o=a.startFrame||1,h=a.looped):(o=1,h=!1);var _,f=0,p={};for(_ in e)p[_]=t[_],f++;var m=f;for(_ in e){var g="change"+_;t[g]=function(){m=m?m-1:f-1;var t=arguments.callee,i=t.p,s=t.updateFunctionName;this[i]=d(p[i],e[i],t.n++/c),t.n>c&&(this[i]=e[i],h?t.n=1:(r.removeListener(this,s),delete this[s],m||(u.hasOwnProperty("onComplete")&&setTimeout((function(){u.onComplete()}),0),l.end())))},t[g].p=_,t[g].n=o,t[g].updateFunctionName=g,r.addListener(t,g)}return u}},PolyTweenTimebased={run:function(t,e,i,s,n){var a,r=Queue.ref,o={object:t},h=s||500,l=i||Ease.lin();a=n||(t.__stage&&t.__stage.metronome?t.__stage.metronome:EnterFrameSignal.getInstance());var u,c,d=0,_={},f={};for(u in e)"string"==typeof e[u]?(c=e[u].replace(/ /g,"")).indexOf("+")||(f[u]=t[u]+Number(c.substring(1,c.length))):f[u]=e[u],_[u]=t[u],d++;var p=d,m=(new Date).getTime();for(u in f){var g="change"+u;t[g]=function(t){var e=arguments.callee,i=e.p,s=e.updateFunctionName;this[i]=l(_[i],f[i],e.t/h),e.t=t-m,e.t>h&&(this[i]=f[i],a.removeListener(this,s),delete this[s],e.propsCounter||(o.hasOwnProperty("onComplete")&&o.onComplete(),r.end()))},t[g].p=u,t[g].t=0,t[g].propsCounter=--p,t[g].updateFunctionName=g,a.addListener(t,g)}return o.stop=function(){for(u in f)a.removeListener(t,"change"+u)},o}},Boom={osc:function(t,e,i){return t=t||3,e=e||1,i=i||2,function(s){return Math.pow(s-1,i)*Math.sin((2*t+1.5)*Math.PI*Math.pow(s,e))}}},Boomerang={run:function(t,e,i,s,n,a){var r,o,h,l=Queue.ref,u={object:t},c=s||30,d=i||Boom.osc();r=n||(t.__stage&&t.__stage.metronome?t.__stage.metronome:EnterFrameSignal.getInstance()),a?(o=a.startFrame||1,h=a.looped):(o=1,h=!1);var _,f=0,p={},m={};for(_ in e)p[_]=t[_],m[_]=e[_]-p[_],f++;var g=f;for(_ in e){var v="change"+_;t[v]=function(){g=g?g-1:f-1;var t=arguments.callee,e=t.p,i=t.updateFunctionName;this[e]=p[e]+m[e]*d(t.n++/c),t.n>c&&(this[e]=p[e],h?t.n=1:(r.removeListener(this,i),delete this[i],g||(u.hasOwnProperty("onComplete")&&setTimeout((function(){u.onComplete()}),0),l.end())))},t[v].p=_,t[v].n=o,t[v].updateFunctionName=v,r.addListener(t,v)}return u}},BoomerangTimebased={};function Shift(t,e,i,s){for(var n in this.__object=t,this.__delta=e||{},this.__deltaInit={},this.__delta)this.__deltaInit[n]=this.__delta[n];for(var n in this.__ratio=i||{},this.__ratioInit={},this.__ratio)this.__ratioInit[n]=this.__ratio[n];this.__efs,this.__isPlayed=!1,s?this.__efs=s:t.__stage&&t.__stage.metronome?this.__efs=t.__stage.metronome:this.__efs=EnterFrameSignal.getInstance()}function ShiftTimebased(t,e,i){for(var s in this.__object=t,this.__delta=e||{},this.__deltaInit={},e)this.__deltaInit[s]=e[s];i?this.__efs=i:t.__stage&&t.__stage.metronome?this.__efs=t.__stage.metronome:this.__efs=EnterFrameSignal.getInstance(),this.__frameDuration=this.__efs.frameDuration,this.__isPlayed=!1}function Motion(t,e,i){for(var s in this.__object=t,this.__speed=e||{},this.__speedInit={},e)this.__speedInit[s]=e[s];i?this.__efs=i:t.__stage&&t.__stage.metronome?this.__efs=t.__stage.metronome:this.__efs=EnterFrameSignal.getInstance(),this.__isPlayed=!1}function Motion2D(t,e,i,s){this.__speed=isNaN(e)?0:e,this.__angle=isNaN(i)?0:i*Math.PI/180,this.__motion=new Motion(t,{x:this.__speed*Math.cos(this.__angle),y:this.__speed*Math.sin(this.__angle)},s)}BoomerangTimebased.run=function(t,e,i,s,n){var a,r=Queue.ref,o={object:t},h=s||500,l=i||Boom.osc();a=n||(t.__stage&&t.__stage.metronome?t.__stage.metronome:EnterFrameSignal.getInstance());var u,c=0,d={},_={};for(u in e)d[u]=t[u],_[u]=e[u]-d[u],c++;var f=c,p=(new Date).getTime();for(u in e){var m="change"+u;t[m]=function(t){var e=arguments.callee,i=e.p,s=e.updateFunctionName;this[i]=d[i]+_[i]*l(e.t/h),e.t=t-p,e.t>h&&(this[i]=d[i],a.removeListener(this,s),delete this[s],e.propsCounter||(o.hasOwnProperty("onComplete")&&o.onComplete(),r.end()))},t[m].p=u,t[m].t=0,t[m].propsCounter=--f,t[m].updateFunctionName=m,a.addListener(t,m)}return o},Shift.prototype={className:"Shift",superclassName:"Object",constructor:Shift,get delta(){return this.__delta},get ratio(){return this.__ratio},get isPlayed(){return this.__isPlayed},update:function(){var t;for(t in this.__deltaInit)this.__object[t]+=this.__delta[t];for(t in this.__ratioInit)this.__object[t]*=this.__ratio[t]},play:function(){this.__isPlayed=!0,this.__efs.addListener(this,"update")},stop:function(){this.__efs.removeListener(this,"update"),this.__isPlayed=!1}},ShiftTimebased.prototype={className:"ShiftTimebased",superclassName:"Object",constructor:ShiftTimebased,get delta(){return this.__delta},get isPlayed(){return this.__isPlayed},update:function(t){var e=(t-this.__currentTimer)/this.__frameDuration;for(var i in this.__deltaInit)this.__object[i]+=this.__delta[i]*e;this.__currentTimer=t},play:function(){this.__isPlayed||(this.__isPlayed=!0,this.__currentTimer=(new Date).getTime(),this.__efs.addListener(this,"update"))},stop:function(){this.__efs.removeListener(this,"update"),this.__isPlayed=!1}},Motion.prototype={className:"Motion",superclassName:"Object",constructor:Motion,get speed(){return this.__speed},get isPlayed(){return this.__isPlayed},update:function(t){var e=(t-this.__currentTimer)/1e3;for(var i in this.__speedInit)this.__object[i]+=e*this.__speed[i];this.__currentTimer=t},play:function(){this.__isPlayed||(this.__isPlayed=!0,this.__currentTimer=(new Date).getTime(),this.__efs.addListener(this,"update"))},stop:function(){this.__efs.removeListener(this,"update"),this.__isPlayed=!1}},Motion2D.prototype={className:"Motion2D",superclassName:"Object",constructor:Motion2D,get speed(){return this.__speed},set speed(t){this.__speed=t,this.updateSpeedVector(this.__motion.speed,t,this.__angle)},get angle(){return 180*this.__angle/Math.PI},set angle(t){this.__angle=t*Math.PI/180,this.updateSpeedVector(this.__motion.speed,this.__speed,this.__angle)},get isPlayed(){return this.__motion.isPlayed},updateSpeedVector:function(t,e,i){t.x=e*Math.cos(i),t.y=e*Math.sin(i)},play:function(){this.__motion.play()},stop:function(){this.__motion.stop()}};var Wave={},cnv;function Swing(t,e,i,s){this.__object=t,this.__propName=e,this.__propValue=t[e],i?(this.wave="wave"in i?i.wave:Wave.sin,this.amplitude="amplitude"in i?i.amplitude:10,this.frequency="frequency"in i?i.frequency:1,this.phase="phase"in i?i.phase:0):(this.wave=Wave.sin,this.amplitude=10,this.frequency=1,this.phase=0),s?this.__efs=s:t.__stage&&t.__stage.metronome?this.__efs=t.__stage.metronome:this.__efs=EnterFrameSignal.getInstance(),this.__isPlayed=!1,this.__startTime=void 0,this.__stopTime}function CanvasContainer(){this.__context=null,this.__stage=null,this.__children=[],this.parent=null,this.x=this.y=0,this.rotation=0,this.scaleX=this.scaleY=1,this.originX=this.originY=0,this.alpha=1,this.matrixLocal=void 0,this.matrixGlobal=Matrix.ZERO,EventDispatcherBehaivor.init(this),this.masks=[],this.holes=[],this.draw=this.drawNormal,this.getHitAsset=this.getHitAssetNormal}function CanvasComposition(t){this.__canvasID=null,this.__canvas=null,this.__context=null,this.__width=null,this.__height=null,this.__container=null,this.__cornerRadius=0,this.__cornerTL,this.__cornerTR,this.__cornerBL,this.__cornerBR,this.draw=this.drawNormal,this.metronome=new EnterFrameSignal(t,!0,!1),this.clearBeforeDraw=!0,this.__listenGestures=!1,this.listenPassiveGestures=!1,this.gesturePoint={x:void 0,y:void 0},this.isDown=!1,this.hitAsset=void 0,this.hitContainers=[],this.downAsset=void 0,this.downContainers=[],this.outContainers=[],this.__downTime=0,this.__downTimeForDbClick=0,this.__clickWithoutMouseMotion=!1,this.__dbClickCandidates=[],this.__minDbClickDownTime=0,this.fastClickTime=200,this.dbClickTime=200,this.pixelRatio=1,this.__gestureOccured=!1,this.__touchEndOccured=!1,this.gestures={group1:{},group2:{},group3:{}};var e=this;this.gestures.group1,this.gestures.group2,this.gestures.group3;function i(t){e.__gestureOccured=!0,e.gesturePoint=e.getMousePoint(t),e.gestures.group1.mouseDown=!0,delete e.gestures.group1.mouseUp,e.isDown=!0}function s(t){e.__gestureOccured=!0,e.gesturePoint=e.getMousePoint(t),e.gestures.group1.mouseUp=!0,delete e.gestures.group1.mouseDown,e.isDown=!1}function n(t){e.__gestureOccured=!0;var i=e.getMousePoint(t);i.x==e.gesturePoint.x&&i.y==e.gesturePoint.y||(e.gesturePoint=i,e.gestures.group1.mouseMove=!0,e.gestures.group2.mouseOver=!0,e.gestures.group2.mouseOut=!0)}function a(t){e.__gestureOccured=!0,e.gesturePoint=e.getMousePoint(t),e.gestures.group1.mouseMove=!0,e.gestures.group2.mouseOver=!0}function r(t){e.__gestureOccured=!0,e.gesturePoint={x:void 0,y:void 0},e.gestures.group2.mouseOut=!0,e.gestures.group1.mouseUp=!0,delete e.gestures.group1.mouseDown}function o(t){e.__gestureOccured=!0,e.gestures.group1.mouseDown=!0,delete e.gestures.group1.mouseUp,e.isDown=!0,e.gesturePoint=e.getTouchPoint(t)}function h(t){e.__gestureOccured=!0,e.__touchEndOccured=!0,e.gestures.group1.mouseUp=!0,delete e.gestures.group1.mouseDown,e.isDown=!1,e.gesturePoint=e.getTouchPoint(t)}function l(t){e.__gestureOccured=!0,e.gesturePoint=e.getTouchPoint(t),e.gestures.group1.mouseMove=!0,e.gestures.group2.mouseOver=!0,e.gestures.group2.mouseOut=!0}this.addDomGestureListeners=function(){var t=this.__canvas;t.addEventListener("mousedown",i),t.addEventListener("mouseup",s),t.addEventListener("mousemove",n),t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",r),t.addEventListener("touchstart",o),t.addEventListener("touchend",h),t.addEventListener("touchmove",l),t.addEventListener("touchcancel",h)},this.removeDomGestureListeners=function(){var t=this.__canvas;t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",s),t.removeEventListener("mousemove",n),t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",r),t.removeEventListener("touchstart",o),t.removeEventListener("touchend",h),t.removeEventListener("touchmove",l),t.removeEventListener("touchcancel",h)}}function CanvasCompositionWrapper(t){var e=1,i=document.createElement("canvas");CssProp.set(i,{position:"relative",width:"100%",height:"100%",top:0,left:0,margin:0}),i.width=e*t.clientWidth,i.height=e*t.clientHeight,t.appendChild(i),this.__stage=void 0,Object.defineProperties(this,{canvas:{get:function(){return i}},webElement:{get:function(){return t}},pixelRatio:{get:function(){return e},set:function(t){e=t,this.__stage&&(this.__stage.pixelRatio=t,this.resize())}}}),window.addEventListener("resize",(function(t){this.__stage&&this.resize()}))}function ImageLayer(t,e,i,s,n){this.__context=null,this.__stage=null,this.parent=null,this.x=this.y=0,this.rotation=0,this.scaleX=this.scaleY=1,this.originX=this.originY=0,this.image=null,this.alpha=1,this.draw=this.drawNothing,this.width=0,this.height=0,this.sx=e,this.sy=i,this.sw=s,this.sh=n,this.matrixLocal=void 0,this.matrixGlobal=Matrix.ZERO,t&&(this.src=t),this.useDeepHitTest=!1,this.isLoading=!1,EventDispatcherBehaivor.init(this)}function TextLoader(){this.data=null;var t=this;this.load=function(e){var i=Queue.ref,s=new XMLHttpRequest;s.open("GET",e,!0),s.onreadystatechange=function(){4===s.readyState&&(200!==s.status&&0!=s.status||(t.data=s.responseText,t.hasOwnProperty("onComplete")&&t.onComplete(),i.end()))},s.send(null)}}function XMLLoader(){this.data=null;var t=this;this.load=function(e){var i=Queue.ref,s=new XMLHttpRequest;s.open("GET",e,!0),s.onreadystatechange=function(){4===s.readyState&&(200!==s.status&&0!=s.status||(t.data=s.responseXML,t.hasOwnProperty("onComplete")&&t.onComplete(),i.end()))},s.send(null)}}function AtlasData(){this.frames=null,this.format=null,this.size=null,this.scale=null,this.image=null,this.imageURL=null,this.loaded=!1;var t=this;this.load=function(e,i){var s=Queue.ref;function n(e){var n=e instanceof TextLoader?JSON.parse(e.data):e;if(t.frames=n.frames,t.format=n.meta.format,t.size=n.meta.size,t.scale=n.meta.scale,i&&(i instanceof Image||i instanceof HTMLCanvasElement))t.image=i,t.loaded=!0,t.hasOwnProperty("onLoad")&&t.onLoad(),s.end();else{var a=new Image;a.onload=function(){t.image=a,t.loaded=!0,t.hasOwnProperty("onLoad")&&t.onLoad(),s.end()},a.src=t.imageURL=i||n.meta.image}}if("string"==typeof e){var a=new TextLoader;a.onComplete=function(){n(this)},a.load(e)}else n(e)}}function AtlasFilmData(t){this.frames=[],this.data=null;var e,i=this,s=function(t){i.frames.push(t),e=t},n=function(t,s,n,a){for(var r=String(t),o=s-r.length;o--;)r="0"+r;e=n+r+a,i.frames.push(e)},a=function(s,n,a,r){for(var o=String(s),h=n-o.length;h--;)o="0"+o;var l=a+o+r,u=t.frames.hasOwnProperty(l);return u&&(i.frames.push(l),e=l),u};this.load=function(t){var e=Queue.ref,s=new TextLoader;s.onComplete=function(){var t=i.data=this.data;i.parse(t),i.hasOwnProperty("onLoad")&&i.onLoad(),e.end()},s.load(t)},this.parse=function(r){for(var o,h,l,u,c,d,_,f,p,m,g,v,b,x=r.trim().split(" ").join("").split(","),y=x.length,w=0;w<y;w++)if(u=(o=x[w]).length,(h=o.indexOf("*"))+1){if(l=o.lastIndexOf("*")-h+1,c=o.substr(0,h),f=(d=o.substring(h+l,u)).lastIndexOf("["),p=d.lastIndexOf("]"),f+1&&d.length-p==1)if(_=d.substring(f+1,p),d=d.substr(0,f),(m=_.split("-")).length>1)if((g=m[0])<(v=m[1]))for(b=g;b<=v;b++)n(b,l,c,d);else for(b=g;b>=v;b--)n(b,l,c,d);else n(_,l,c,d);else if(t){b=0;for(var M=!0;M;)M=a(b++,l,c,d)}}else if(0==o.indexOf("[")&&o.indexOf("]")==u-1){var T=o.substr(1,u-2);if(!isNaN(T)&&e)for(var C=T;C--;)s(e)}else if(0==o.indexOf("<")&&o.indexOf(">")==u-1){T=o.substr(1,u-2);if(!isNaN(T))for(C=T;C--;)i.frames.length++,e=void 0}else s(o)}}function AtlasFilmDataSheet(){var t=this;this.load=function(e){var i=Queue.ref,s=new TextLoader;s.onComplete=function(){t.parse(this.data.trim()),t.hasOwnProperty("onLoad")&&t.onLoad(),i.end()},s.load(e)},this.parse=function(e){"&"!=e.charAt(0)&&(e="&".concat(e));for(var i,s,n,a=e.split("&"),r=a.length,o=1;o<r;o++)n=(i=a[o].split("="))[0].trim(),(s=new AtlasFilmData).parse(i[1]),t[n]=s}}function AtlasImageLayer(t,e){this.__context=null,this.__stage=null,this.parent=null,this.x=this.y=0,this.rotation=0,this.scaleX=this.scaleY=1,this.originX=this.originY=0,this.alpha=1,this.draw=this.drawImage,this.matrixLocal=void 0,this.matrixGlobal=Matrix.ZERO,this.__atlasData=null,this.__imageName=null,t&&(this.atlasData=t),e&&(this.imageName=e),this.useDeepHitTest=!1,EventDispatcherBehaivor.init(this)}function AtlasFilmLayer(t,e){this.__context=null,this.__stage=null,this.parent=null,this.x=this.y=0,this.rotation=0,this.scaleX=this.scaleY=1,this.originX=this.originY=0,this.alpha=1,this.__atlasData=t,this.__atlasFilmData=e,this.__totalFrames=e&&e.frames?e.frames.length:void 0,this.__changeIndexMethodName=void 0,this.__startIndex=void 0,this.__destinationFrameIndex=void 0,this.__removeInTheEnd=!1,this.__repeatsNumber=1,this.__stretchRatio=1,this.__stretchCount=0,this.frameWidth=0,this.frameHeight=0,this.frameTrimTop=0,this.frameTrimLeft=0,this.frameIndex=0,this.isPlayed=!1,this.__wasPlayingBeforeRemoving=!1,this.loseQueue(),this.matrixLocal=void 0,this.matrixGlobal=Matrix.ZERO,this.draw=this.drawFrame,this.useDeepHitTest=!1,this.__fps=0,this.__fpsTimer=void 0,EventDispatcherBehaivor.init(this)}function StyleObject(t){if(this.props={},t)for(var e in t)this.props[e]=t[e]}function TextLayer(){this.__context=null,this.__stage=null,this.parent=null,this.x=this.y=0,this.rotation=0,this.scaleX=this.scaleY=1,this.originX=this.originY=0,this.alpha=1,this.__text="",this.__style=StyleObject.getDefaultTextStyle(),this.__boldItalic=(this.__style.props.bold?"bold ":"")+(this.__style.props.italic?"italic ":""),this.color=this.__style.props.color,this.strokeColor=this.__style.props.strokeColor,this.shadowColor=this.__style.props.shadowColor,this.draw=this.drawNormal,this.__width=0,this.__height=0,this.__alignOffsetX=0,this.matrixLocal=void 0,this.matrixGlobal=Matrix.ZERO,this.strokeOverFill=!0,this.useDeepHitTest=!1,this.lines=[],this.__lineSpacing=30,this.__textWidth=void 0,this.__multiline=!1,this.fill=this.fillLine,this.stroke=this.strokeLine,this.measureWidth=this.measureLineWidth,this.measureHeight=this.measureLineHeight,this.calculateText=DO_NOTHING,EventDispatcherBehaivor.init(this)}Wave.sin=Math.sin,Wave.sinPro=function(t){if(0===t||t<0)return Wave.square;!t||isNaN(t)?t=.3:t>1&&(t=1/t);var e=Math.sqrt(t);return function(i){var s=Math.sin(i),n=Math.abs(s);return(s<0?-1:1)*(Math.pow(n,e)*Math.pow(n,t)+(1-Math.pow(n,e))*n)}},Wave.triangle=function(t){return 2/Math.PI*Math.asin(Math.sin(t))},Wave.square=function(t){return Math.sin(t)<0?-1:1},Wave.noise=function(t){return 2*Math.random()-1},Wave.pulsePro=function(t){if(0===t)return Wave.sin;t=!t||isNaN(t)||t<0?4:1+Math.ceil(t);var e=Math.PI/(2*t),i=2*Math.PI,s=2/(2-1/t);return function(n){var a=n%i;return a<e||a>i-e?Math.sin(t*a):Math.cos(s*a/2-e/s)}},Wave.pulse=Wave.pulsePro(),Swing.prototype={className:"Swing",superclassName:"Object",constructor:Swing,get isPlayed(){return this.__isPlayed},update:function(t){this.__object[this.__propName]=this.__propValue+this.amplitude*this.wave(this.phase+this.frequency*Swing.K*(t-this.__startTime))},play:function(){this.__isPlayed||(this.__isPlayed=!0,null==this.__startTime?(this.__startTime=(new Date).getTime(),this.__object[this.__propName]=this.__propValue+this.amplitude*this.wave(this.phase)):this.__stopTime&&(this.__startTime+=(new Date).getTime()-this.__stopTime,this.__stopTime=0),this.__efs.addListener(this,"update"))},stop:function(){this.__stopTime=(new Date).getTime(),this.__efs.removeListener(this,"update"),this.__isPlayed=!1},reset:function(){this.__efs.removeListener(this,"update"),this.__isPlayed=!1,this.__startTime=this.__stopTime=void 0}},Swing.K=Math.PI/500,CanvasContainer.prototype={className:"CanvasContainer",superclassName:"CanvasLayer",constructor:CanvasContainer,get children(){return this.__children},get isContainer(){return!0},setContext:function(t){this.__context=t;for(var e=this.__children,i=e.length;i--;)e[i].setContext(t)},setStage:function(t){this.__stage=t;for(var e=this.__children,i=e.length;i--;)e[i].setStage(t);this.onDisplayed&&t&&this.onDisplayed()},isolate:function(){this.parent=null,this.setContext(null),this.setStage(null)},prepareNewChild:function(t){this.removeChild(t),t.parent&&(t.parent.container==t?t.parent.container=null:t.parent.removeChild(t)),this.__context&&t.setContext(this.__context),t.parent=this,this.__stage&&t.setStage(this.__stage),t.onAdded&&t.onAdded()},canBeAdded:function(t){if("CanvasLayer"==t.superclassName){for(var e=this,i=this.__stage;e!=i;){if(e==t)return!1;e=e.parent}return!0}return!1},addChild:function(t){this.canBeAdded(t)&&(this.prepareNewChild(t),this.__children.push(t))},addRearChild:function(t){this.canBeAdded(t)&&(this.prepareNewChild(t),this.__children.unshift(t))},addChildOver:function(t,e){if(this.canBeAdded(t))for(var i=this.__children,s=i.length;s--;)if(i[s]==e)return this.prepareNewChild(t),void i.splice(s+1,0,t)},addChildUnder:function(t,e){if(this.canBeAdded(t))for(var i=this.__children,s=i.length;s--;)if(i[s]==e)return this.prepareNewChild(t),void i.splice(s,0,t)},removeChild:function(t){for(var e=this.__children,i=e.length;i--;)if(e[i]==t)return t.isolate(),void e.splice(i,1)},contains:function(t){for(var e=t.parent;e&&e.isContainer;){if(e==this)return!0;e=e.parent}return!1},__copy:function(t,e){if(t.isContainer){var i,s,n,a=copyThisLayerCommonMethod.call(t),r=2==arguments.length;r?(i=t,(s=new HardMap).set(t,a),n=[]):(i=arguments[2],s=arguments[3],n=arguments[4]);var o,h=t.children;for(a.__children=new Array(h.length),f=h.length;f--;)(o=this.__copy(h[f],e,i,s,n)).parent=a,a.__children[f]=o,s.set(h[f],o);var l,u,c,d=t.masks,_=t.holes;for(a.masks=new Array(d.length),a.holes=new Array(_.length),f=d.length;f--;)l=d[f],c=s.get(l.host),a.masks[f]=l.host==i||i.contains(l.host)?{shape:l.shape.copy(),host:c}:{shape:l.shape,host:l.host},c||n.push([a.masks[f],l]);for(f=_.length;f--;)u=_[f],c=s.get(u.host),a.holes[f]=u.host==i||i.contains(u.host)?{shape:u.shape.copy(),host:c}:{shape:u.shape,host:u.host},c||n.push([a.holes[f],u]);if(r){for(var f=n.length;f--;)n[f][0].host=s.get(n[f][1].host);s.clear()}return a}return t.copy(e)},copy:function(t){return this.__copy(this,t)},__addShapeData:function(t,e,i){e=e||this;for(var s,n=i.length;n--;)if((s=i[n]).shape===t&&s.host===e)return;i.push({shape:t,host:e})},__removeShapeData:function(t,e,i){e=e||this;for(var s,n=i.length;n--;)if((s=i[n]).shape===t&&s.host===e){i.splice(n,1);break}},addMask:function(t,e){this.masks.length||(this.draw=this.holes.length?this.drawWithMasksAndHoles:this.drawWithMasks,this.getHitAsset=this.holes.length?this.getHitAssetWithMasksAndHoles:this.getHitAssetWithMasks),this.__addShapeData(t,e,this.masks)},removeMask:function(t,e){this.__removeShapeData(t,e,this.masks),this.masks.length||(this.draw=this.holes.length?this.drawWithHoles:this.drawNormal,this.getHitAsset=this.holes.length?this.getHitAssetWithHoles:this.getHitAssetNormal)},addHole:function(t,e){this.holes.length||(this.draw=this.masks.length?this.drawWithMasksAndHoles:this.drawWithHoles,this.getHitAsset=this.masks.length?this.getHitAssetWithMasksAndHoles:this.getHitAssetWithHoles),this.__addShapeData(t,e,this.holes)},removeHole:function(t,e){this.__removeShapeData(t,e,this.holes),this.holes.length||(this.draw=this.masks.length?this.drawWithMasks:this.drawNormal,this.getHitAsset=this.masks.length?this.getHitAssetWithMasks:this.getHitAssetNormal)},drawNormal:function(){var t=this.__context;t.save(),this.setMatrixAndAlpha(t),this.drawChildren(),t.restore()},drawWithMasks:function(){var t=this.__context;t.save(),this.setMatrixAndAlpha(t),this.buildMasks(t),this.drawChildren(),t.restore()},drawWithHoles:function(){var t=this.__context;t.save(),this.setMatrixAndAlpha(t),this.buildHoles(t,this.__stage.width,this.__stage.height),this.drawChildren(),t.restore()},drawWithMasksAndHoles:function(){var t=this.__context;t.save(),this.setMatrixAndAlpha(t),this.buildMasks(t),this.buildHoles(t,this.__stage.width,this.__stage.height),this.drawChildren(),t.restore()},getHitAssetNormal:function(t,e){for(var i,s,n=this.__children,a=n.length;a--;)if((i=n[a]).isContainer){if(s=i.getHitAsset(t,e))break}else if(i.hitTest&&i.hitTest(t,e)){s=i;break}return s},getHitAssetWithMasks:function(t,e){var i=this.__context;return this.buildPaths(i,this.masks),!!i.isPointInPath(t,e)&&this.getHitAssetNormal(t,e)},getHitAssetWithHoles:function(t,e){var i=this.__context;return this.buildPaths(i,this.holes),!i.isPointInPath(t,e)&&this.getHitAssetNormal(t,e)},getHitAssetWithMasksAndHoles:function(t,e){var i=this.__context;return this.buildPaths(i,this.masks),!!i.isPointInPath(t,e)&&(this.buildPaths(i,this.holes),!i.isPointInPath(t,e)&&this.getHitAssetNormal(t,e))},setMatrixAndAlpha:function(t){Matrix.setTransform(t,this.matrixGlobal),t.globalAlpha*=this.alpha},buildPaths:function(t,e){var i,s,n;t.beginPath();for(var a=e.length;a--;)t.save(),s=(i=e[a]).shape,n=Matrix.multiply(Matrix.get(s.x,s.y,s.rotation,s.scaleX,s.scaleY),Matrix.get(-s.originX,-s.originY,0,1,1)),Matrix.setTransform(t,"global"==i.host?n:Matrix.multiply(i.host.matrixGlobal,n)),s.build(t),t.restore();t.closePath()},buildMasks:function(t){this.buildPaths(t,this.masks),t.clip()},buildHoles:function(t,e,i){for(var s,n,a,r=this.holes.length;r--;)t.save(),t.beginPath(),t.save(),Matrix.setTransform(t,Matrix.GLOBAL),t.moveTo(0,0),t.lineTo(0,i),t.lineTo(e,i),t.lineTo(e,0),t.closePath(),t.restore(),n=(s=this.holes[r]).shape,a=Matrix.multiply(Matrix.get(n.x,n.y,n.rotation,n.scaleX,n.scaleY),Matrix.get(-n.originX,-n.originY,0,1,1)),Matrix.setTransform(t,"global"==s.host?a:Matrix.multiply(s.host.matrixGlobal,a)),n.build(t),t.restore(),t.closePath(),t.clip()},calcOwnMatrices:function(){this.matrixLocal=Matrix.multiply(Matrix.get(this.x,this.y,this.rotation,this.scaleX,this.scaleY),Matrix.get(-this.originX,-this.originY,0,1,1)),this.matrixGlobal=this.parent.matrixGlobal?Matrix.multiply(this.parent.matrixGlobal,this.matrixLocal):this.matrixLocal},calc:function(){this.calcOwnMatrices();for(var t=this.__children,e=t.length;e--;)t[e].calc()},drawChildren:function(){for(var t=this.__children,e=t.length,i=0;i<e;i++)t[i].draw()}},CanvasContainer.GLOBAL="global",CanvasContainer.OWN_PROPS=LAYER_COMMON_OWN_PROPS.concat(["draw","getHitAsset"]),CanvasComposition.prototype={className:"CanvasComposition",constructor:CanvasComposition,set listenGestures(t){t?(this.addDomGestureListeners(),this.metronome.addListener(this,"processGestures",!0),this.__listenGestures=!0):(this.removeDomGestureListeners(),this.metronome.removeListener(this,"processGestures"),this.__listenGestures=!1)},markHitContainers:function(t){var e=t.parent;e.isContainer&&(e.hasHitAsset=!0,this.hitContainers.push(e),this.markHitContainers(e))},markDownContainers:function(t){var e=t.parent;e.isContainer&&(e.hasDownAsset=!0,this.downContainers.push(e),this.markDownContainers(e))},markOutContainers:function(t){var e=t.parent;e&&e.isContainer&&(e.hasOutAsset=!0,this.outContainers.push(e),this.markOutContainers(e))},unmarkHitContainers:function(){for(var t=this.hitContainers.length;t--;)this.hitContainers[t].hasHitAsset=!1},unmarkDownContainers:function(){for(var t=this.downContainers.length;t--;)this.downContainers[t].hasDownAsset=!1},unmarkOutContainers:function(){for(var t=this.outContainers.length;t--;)this.outContainers[t].hasOutAsset=!1},processGestures:function(){if(this.__gestureOccured){var t,e=this.gesturePoint,i=this.__container.getHitAsset(e.x,e.y);i?(this.markHitContainers(i),this.dispatchGestureGroup(i,i,this.gestures.group1),this.gestures.group1.mouseDown&&(t=i,this.markDownContainers(i)),this.gestures.group2.mouseOver&&i!=this.hitAsset&&(this.hitAsset?(this.markOutContainers(this.hitAsset),this.gestures.group2.mouseOut&&this.dispatchGestureOut(this.hitAsset,this.hitAsset,"mouseOut"),this.dispatchGestureOver(i,i,"mouseOver")):this.dispatchGesture(i,i,"mouseOver"),this.isDown&&this.dispatchGestureOver(i,i,"dragOver")),this.gestures.group1.mouseUp&&(i==this.downAsset?this.dispatchGesture(i,i,"click"):this.downAsset&&(this.dispatchGestureClick(null,i,"click"),this.dispatchGestureReleaseOutside(this.downAsset,this.downAsset,"releaseOutside"))),this.gestures.group1.mouseMove&&(i==this.downAsset?this.dispatchGesture(i,i,"drag"):this.isDown&&i!=this.hitAsset&&this.hitAsset&&(this.hitAsset==this.downAsset?this.dispatchGestureOut(this.hitAsset,this.hitAsset,"dragOutThis"):this.dispatchGestureDragOutThis(null,this.hitAsset,"dragOutThis"),this.dispatchGestureOut(this.hitAsset,this.hitAsset,"dragOut")))):(this.gestures.group2.mouseOut&&this.hitAsset&&(this.dispatchGesture(this.hitAsset,this.hitAsset,"mouseOut"),this.isDown&&(this.hitAsset==this.downAsset?this.dispatchGestureOut(this.hitAsset,this.hitAsset,"dragOutThis"):this.dispatchGestureDragOutThis(null,this.hitAsset,"dragOutThis"),this.dispatchGestureOut(this.hitAsset,this.hitAsset,"dragOut"))),this.gestures.group1.mouseUp&&this.downAsset&&this.dispatchGesture(this.downAsset,this.downAsset,"releaseOutside")),this.hitAsset=i,this.gestures.group1.mouseUp?(this.unmarkDownContainers(),this.downContainers=[],this.downAsset=void 0):t&&(this.downAsset=t),this.unmarkHitContainers(),this.hitContainers=[],this.unmarkOutContainers(),this.outContainers=[],this.__gestureOccured=!1,this.__touchEndOccured&&(this.gesturePoint={x:void 0,y:void 0},this.__touchEndOccured=!1),this.gestures={group1:{},group2:{},group3:{}}}},dispatchGestureGroup:function(t,e,i){var s=e.parent;if(s){for(var n in i)e.dispatchEvent(n,{target:t});s.isContainer&&this.dispatchGestureGroup(t,s,i)}},dispatchGesture:function(t,e,i){var s=e.parent;s&&(e.dispatchEvent(i,{target:t}),s.isContainer&&this.dispatchGesture(t,s,i))},dispatchGestureOver:function(t,e,i){var s=e.parent;s&&(e.dispatchEvent(i,{target:t}),s.isContainer&&!s.hasOutAsset&&this.dispatchGestureOver(t,s,i))},dispatchGestureOut:function(t,e,i){var s=e.parent;s&&(e.dispatchEvent(i,{target:t}),s.isContainer&&!s.hasHitAsset&&this.dispatchGestureOut(t,s,i))},dispatchGestureDragOutThis:function(t,e,i){var s=e.parent;s&&s.isContainer&&(s.hasDownAsset&&!s.hasHitAsset&&(t||(t=s),s.dispatchEvent(i,{target:t})),this.dispatchGestureDragOutThis(t,s,i))},dispatchGestureClick:function(t,e,i){var s=e.parent;s&&s.isContainer&&(s.hasDownAsset&&(t||(t=s),s.dispatchEvent(i,{target:t})),this.dispatchGestureClick(t,s,i))},dispatchGestureReleaseOutside:function(t,e,i){var s=e.parent;s&&(e.isContainer&&!e.hasHitAsset||t==e)&&(e.dispatchEvent(i,{target:t}),this.dispatchGestureReleaseOutside(t,s,i))},getMousePoint:function(t){var e=this.__canvas.getBoundingClientRect();return{x:this.pixelRatio*(t.clientX-e.left),y:this.pixelRatio*(t.clientY-e.top)}},getTouchPoint:function(t){t.preventDefault();var e=this.__canvas.getBoundingClientRect(),i=t.targetTouches[0];return{x:this.pixelRatio*(i.clientX-e.left),y:this.pixelRatio*(i.clientY-e.top)}},saveDownTime:function(t){this.__downTime=(new Date).getTime()},detectFastClick:function(t){(new Date).getTime()-this.__downTime<this.fastClickTime&&t.currentTarget.dispatchEvent("fastClick",{target:t.target})},listenFastClickOn:function(t,e){1==arguments.length||e?(t.addEventListener("mouseDown",this,"saveDownTime"),t.addEventListener("click",this,"detectFastClick")):(t.removeEventListener("mouseDown",this,"saveDownTime"),t.removeEventListener("click",this,"detectFastClick"))},listenMouseMotion:function(t){t.currentTarget.addEventListener("mouseMove",this,"detectMouseMotion"),t.currentTarget.addEventListener("mouseOut",this,"detectMouseMotion"),this.__clickWithoutMouseMotion=!0},detectMouseMotion:function(t){t.currentTarget.removeEventListener("mouseMove",this,"detectMouseMotion"),t.currentTarget.removeEventListener("mouseOut",this,"detectMouseMotion"),this.__clickWithoutMouseMotion=!1},detectPointClick:function(t){t.currentTarget.removeEventListener("mouseMove",this,"detectMouseMotion"),this.__clickWithoutMouseMotion&&t.currentTarget.dispatchEvent("pointClick",{target:t.target})},listenPointClickOn:function(t,e){1==arguments.length||e?(t.addEventListener("mouseDown",this,"listenMouseMotion"),t.addEventListener("click",this,"detectPointClick")):(t.removeEventListener("mouseDown",this,"listenMouseMotion"),t.removeEventListener("click",this,"detectPointClick"))},detectDbClick:function(t){for(var e,i=!1,s=t.currentTarget,n=(new Date).getTime(),a=this.__dbClickCandidates.length;a--;)if(this.__dbClickCandidates[a].layer===s){e=a,i=!0;break}i?n-this.__dbClickCandidates[e].downTime<this.dbClickTime?(s.dispatchEvent("dbClick",{target:t.target}),this.__dbClickCandidates.splice(e,1)):(this.__dbClickCandidates[e].downTime=n,this.__minDbClickDownTime=n):(n-this.__minDbClickDownTime>this.dbClickTime&&(this.__minDbClickDownTime=n,this.__dbClickCandidates.length=0),this.__dbClickCandidates.push({layer:s,downTime:n}))},listenDbClickOn:function(t,e){1==arguments.length||e?t.addEventListener("mouseDown",this,"detectDbClick"):t.removeEventListener("mouseDown",this,"detectDbClick")},get canvasID(){return this.__canvasID},set canvasID(t){this.canvas=document.getElementById(t)},get canvas(){return this.__canvas},set canvas(t){if(this.__canvas!==t){this.__canvas&&(this.__canvas.width=this.__width,CanvasComposition.__instanceByCanvas.delete(this.__canvas));var e=CanvasComposition.__instanceByCanvas.get(t);e&&e.isolate(),this.__canvasID=t.id,this.__canvas=t,this.__context=t.getContext("2d"),this.__width=t.width,this.__height=t.height,this.__container&&(this.__container.setContext(this.__context),this.__container.parent=this,this.__container.setStage(this)),CanvasComposition.__instanceByCanvas.set(t,this)}},get container(){return this.__container},set container(t){this.__container&&this.__container.isolate(),t.isContainer&&(this.__context&&t.setContext(this.__context),t.parent=this,this.__container=t,t.setStage(this))},get width(){return this.__width},set width(t){this.__width=this.__canvas.width=t},get height(){return this.__height},set height(t){this.__height=this.__canvas.height=t},get metronome(){return this.__metronome},set metronome(t){this.__metronome&&this.__metronome.removeUpdateListener(this,"draw"),t.addUpdateListener(this,"draw"),this.__metronome=t},get cornerRadius(){return this.__cornerRadius},set cornerRadius(t){if(t>0){var e=document.createElement("canvas");e.width=e.height=t;var i=e.getContext("2d");i.fillStyle="rgb(0,0,0)",i.beginPath(),i.moveTo(0,0),i.lineTo(t,0),i.arcTo(0,0,0,t,t),i.lineTo(0,0),i.fill(),this.__cornerTL=e,(e=document.createElement("canvas")).width=e.height=t,(i=e.getContext("2d")).fillStyle="rgb(0,0,0)",i.beginPath(),i.moveTo(0,0),i.lineTo(t,0),i.lineTo(t,t),i.arcTo(t,0,0,0,t),i.fill(),this.__cornerTR=e,(e=document.createElement("canvas")).width=e.height=t,(i=e.getContext("2d")).fillStyle="rgb(0,0,0)",i.beginPath(),i.moveTo(t,0),i.lineTo(t,t),i.lineTo(0,t),i.arcTo(t,t,t,0,t),i.fill(),this.__cornerBR=e,(e=document.createElement("canvas")).width=e.height=t,(i=e.getContext("2d")).fillStyle="rgb(0,0,0)",i.beginPath(),i.moveTo(0,0),i.lineTo(0,t),i.lineTo(t,t),i.arcTo(0,t,0,0,t),i.fill(),this.__cornerBL=e,this.__cornerRadius=t}},drawNormal:function(){if(this.__canvas.width=this.__width,this.__container.calc(),this.__container.draw(),this.listenPassiveGestures&&(this.__gestureOccured=!0,this.gestures.group2.mouseOver=!0,this.gestures.group2.mouseOut=!0),this.__cornerRadius){var t=this.__canvas.width,e=this.__canvas.height,i=this.__cornerRadius;this.__context.save(),this.__context.globalCompositeOperation="destination-out",this.__context.drawImage(this.__cornerTL,0,0),this.__context.drawImage(this.__cornerTR,t-i,0),this.__context.drawImage(this.__cornerBR,t-i,e-i),this.__context.drawImage(this.__cornerBL,0,e-i),this.__context.restore()}},drawTweenSize:function(){this.__canvas.height=this.__height,this.drawNormal()},tweenSize:function(t,e,i,s,n){this.draw=this.drawTweenSize;var a=this,r={},o={},h=Queue.ref;return isNaN(t)||(r.__width=t),isNaN(e)||(r.__height=e),PolyTweenTimebased.run(this,r,i,s,n||this.metronome).onComplete=function(){a.draw=a.drawNormal,o.hasOwnProperty("onComplete")&&o.onComplete(),h.end()},o},isolate:function(){this.__canvas.width=this.__width,CanvasComposition.__instanceByCanvas.delete(this.__canvas),this.__container&&this.__container.isolate(),this.__canvasID=this.__canvas=this.__context=this.__width=null},$:function(){this.__metronome.ensureNextTickUpdate()}},cnv=document.createElement("canvas"),cnv.width=cnv.height=1,CanvasComposition.PIXEL=cnv.getContext("2d"),CanvasComposition.__instanceByCanvas=new SoftMap,CanvasCompositionWrapper.prototype={className:"CanvasCompositionWrapper",superclassName:"Object",constructor:CanvasCompositionWrapper,get stage(){return this.__stage},set stage(t){t.canvas=this.canvas,t.pixelRatio=this.pixelRatio,this.__stage=t,this.resize()},resize:function(){var t=this.__stage;t.width=this.pixelRatio*this.webElement.clientWidth,t.height=this.pixelRatio*this.webElement.clientHeight,t.$()}},ImageLayer.prototype={className:"ImageLayer",superclassName:"CanvasLayer",constructor:ImageLayer,get src(){return this.image.src},set src(t){var e,i=Queue.ref,s=this;function n(){s.draw=s.drawImage,s.sx=s.sx&&s.sx>0&&s.sx<e.width?s.sx:0,s.sy=s.sy&&s.sy>0&&s.sy<e.height?s.sy:0,s.width=s.sw=s.sw&&s.sw<=e.width-s.sx&&s.sw>0?s.sw:e.width-s.sx,s.height=s.sh=s.sh&&s.sh<=e.height-s.sy&&s.sh>0?s.sh:e.height-s.sy,this.isLoading=!1,s.hasOwnProperty("onLoad")&&s.onLoad(),s.dispatchEvent("load"),i.end()}t instanceof Image?(e=this.image=t).complete?n():e.onload=n:t instanceof HTMLCanvasElement?(e=this.image=t,n()):(this.isLoading=!0,(e=this.image=new Image).onload=n,e.src=t)},load:function(t){this.src=t},setContext:function(t){this.__context=t},setStage:function(t){this.__stage=t,this.onDisplayed&&t&&this.onDisplayed()},calc:function(){this.matrixLocal=Matrix.get(this.x,this.y,this.rotation,this.scaleX,this.scaleY),this.matrixGlobal=Matrix.multiply(this.parent.matrixGlobal,this.matrixLocal)},calcOwnMatrices:this.calc,drawImage:function(){var t=this.__context;t.save(),Matrix.setTransform(t,this.matrixGlobal),t.globalAlpha*=this.alpha,t.drawImage(this.image,this.sx,this.sy,this.sw,this.sh,-this.originX,-this.originY,this.width,this.height),t.restore()},drawNothing:function(){},isolate:function(){this.parent=null,this.__stage=null,this.__context=null},copy:function(t){var e=copyThisLayerCommonMethod.call(this);if(this.isLoading)e.load(this.src);else if(t&&!this.image){var i=this;this.addEventListener("load",(function(t){e.load(i.src)}))}return e},hitTest:function(t,e){var i=this.__context;Matrix.setTransform(i,this.matrixGlobal),i.beginPath(),i.rect(-this.originX,-this.originY,this.width,this.height);var s=i.isPointInPath(t,e);if(i.closePath(),s&&this.useDeepHitTest){var n=CanvasComposition.PIXEL;n.save(),Matrix.setMovedTransform(n,this.matrixGlobal,-t,-e),n.drawImage(this.image,this.sx,this.sy,this.sw,this.sh,-this.originX,-this.originY,this.width,this.height),s=Boolean(n.getImageData(0,0,1,1).data[3]),n.restore(),s&&n.clearRect(0,0,2,2)}return s}},ImageLayer.OWN_PROPS=LAYER_COMMON_OWN_PROPS.concat(["image","draw","width","height","sx","sy","sw","sh","useDeepHitTest","isLoading"]),AtlasImageLayer.prototype={className:"AtlasImageLayer",superclassName:"CanvasLayer",constructor:AtlasImageLayer,get imageName(){return this.__imageName},set imageName(t){if(this.__atlasData&&this.__atlasData.loaded){var e=this.__atlasData.frames[t];e&&(this.width=e.frame.w,this.height=e.frame.h)}this.__imageName=t},get atlasData(){return this.__atlasData},set atlasData(t){if(this.__imageName&&t.loaded){var e=t.frames[this.__imageName];e&&(this.width=e.frame.w,this.height=e.frame.h)}this.__atlasData=t},setContext:function(t){this.__context=t},setStage:function(t){this.__stage=t,this.onDisplayed&&t&&this.onDisplayed()},calc:function(){this.matrixLocal=Matrix.get(this.x,this.y,this.rotation,this.scaleX,this.scaleY),this.matrixGlobal=Matrix.multiply(this.parent.matrixGlobal,this.matrixLocal)},calcOwnMatrices:this.calc,drawImage:function(){var t=this.__context;t.save(),Matrix.setTransform(t,this.matrixGlobal),t.globalAlpha*=this.alpha;var e=this.__atlasData.frames[this.__imageName].frame;t.drawImage(this.__atlasData.image,e.x,e.y,e.w,e.h,-this.originX,-this.originY,this.width,this.height),t.restore()},drawNothing:function(){},isolate:function(){this.parent=null,this.__stage=null,this.__context=null},copy:copyThisLayerCommonMethod,hitTest:function(t,e){var i=this.__context;Matrix.setTransform(i,this.matrixGlobal),i.beginPath(),i.rect(-this.originX,-this.originY,this.width,this.height);var s=i.isPointInPath(t,e);if(i.closePath(),s&&this.useDeepHitTest){var n=CanvasComposition.PIXEL;n.save(),Matrix.setMovedTransform(n,this.matrixGlobal,-t,-e);var a=this.__atlasData.frames[this.__imageName].frame;n.drawImage(this.__atlasData.image,a.x,a.y,a.w,a.h,-this.originX,-this.originY,this.width,this.height),s=Boolean(n.getImageData(0,0,1,1).data[3]),n.restore(),s&&n.clearRect(0,0,2,2)}return s}},AtlasImageLayer.OWN_PROPS=LAYER_COMMON_OWN_PROPS.concat(["draw","width","height","__atlasData","__imageName","useDeepHitTest"]),AtlasFilmLayer.prototype={className:"AtlasFilmLayer",superclassName:"CanvasLayer",constructor:AtlasFilmLayer,get totalFrames(){return this.__totalFrames},setContext:function(t){this.__context=t},setStage:function(t){this.__stage=t,this.onDisplayed&&t&&this.onDisplayed()},get fps(){return this.__fps},set fps(t){isNaN(t)||t<=0?this.isPlayed&&this.__fps?(this.__stopChangingIndex(),this.__fps=0,this.__startChangingIndex()):this.__fps=0:this.isPlayed?this.__fps?(this.__fpsTimer.delay=1e3/t,this.__fps=t):(this.__stopChangingIndex(),this.__fps=t,this.__startChangingIndex()):this.__fps=t},loseQueue:function(){this.queue=Queue.REF_DEFAULT},setNextIndex:function(){this.frameIndex=this.frameIndex<this.__totalFrames-1?this.frameIndex+1:0},setPrevIndex:function(){this.frameIndex=this.frameIndex?this.frameIndex-1:this.__totalFrames-1},setNextIndexStretch:function(){--this.__stretchCount||(this.__stretchCount=this.__stretchRatio,this.setNextIndex())},setPrevIndexStretch:function(){--this.__stretchCount||(this.__stretchCount=this.__stretchRatio,this.setPrevIndex())},handleDestinationFrameTo:function(){if(this.__removeInTheEnd){var t=this.__stage;this.parent.removeChild(this),t.$()}else this.__stopChangingIndex();this.queue.end()},setNextIndexTo:function(){this.frameIndex==this.__destinationFrameIndex?this.handleDestinationFrameTo():this.setNextIndex()},setPrevIndexTo:function(){this.frameIndex==this.__destinationFrameIndex?this.handleDestinationFrameTo():this.setPrevIndex()},setNextIndexToStretch:function(){--this.__stretchCount||(this.__stretchCount=this.__stretchRatio,this.setNextIndexTo())},setPrevIndexToStretch:function(){--this.__stretchCount||(this.__stretchCount=this.__stretchRatio,this.setPrevIndexTo())},handleDestinationFrameFromTo:function(){0===this.__repeatsNumber||--this.__repeatsNumber?this.frameIndex=this.__startIndex:this.handleDestinationFrameTo()},setNextIndexFromTo:function(){this.frameIndex==this.__destinationFrameIndex?this.handleDestinationFrameFromTo():this.setNextIndex()},setPrevIndexFromTo:function(){this.frameIndex==this.__destinationFrameIndex?this.handleDestinationFrameFromTo():this.setPrevIndex()},setNextIndexFromToStretch:function(){--this.__stretchCount||(this.__stretchCount=this.__stretchRatio,this.setNextIndexFromTo())},setPrevIndexFromToStretch:function(){--this.__stretchCount||(this.__stretchCount=this.__stretchRatio,this.setPrevIndexFromTo())},nextFrame:function(){this.__stage&&this.frameIndex<this.__totalFrames-1&&(this.frameIndex++,this.__stage.$())},prevFrame:function(){this.__stage&&this.frameIndex&&(this.frameIndex--,this.__stage.$())},__delayedStartChangingIndex:function(){this.__stage.metronome.addListener(this,this.__changeIndexMethodName),this.__stage.metronome.removeListener(this,"__delayedStartChangingIndex")},__noNewIndexInThisFrame:function(){this[this.__changeIndexMethodName]=this.__changeIndexBufferMethod},__startChangingIndex:function(){this.matrixLocal||(this.__changeIndexBufferMethod=this[this.__changeIndexMethodName],this[this.__changeIndexMethodName]=this.__noNewIndexInThisFrame),this.__fps?this.isPlayed||(this.__fpsTimer=this.__stage.metronome.addTimerListener(this,this.__changeIndexMethodName,1e3/this.__fps)):this.__stage.metronome.addListener(this,this.__changeIndexMethodName),this.isPlayed=!0},__stopChangingIndex:function(){this.__fps?(this.__stage.metronome.removeListener(this.__fpsTimer),this.__fpsTimer=null):this.__stage.metronome.removeListener(this,this.__changeIndexMethodName),this.isPlayed=!1},__startPlayback:function(t){var e;this.loseQueue(),t?(this.__stretchRatio=isNaN(t.stretch)&&t.stretch<1?1:Math.ceil(t.stretch),this.__stretchRatio>1?(this.__stretchCount=this.__stretchRatio,e=!0===t.reverse?"setPrevIndexStretch":"setNextIndexStretch"):e=!0===t.reverse?"setPrevIndex":"setNextIndex"):e="setNextIndex",this.isPlayed&&this.__changeIndexMethodName!=e&&this.__stopChangingIndex(),this.__changeIndexMethodName=e,this.__startChangingIndex()},play:function(t){this.__stage&&this.__startPlayback(t)},playFrom:function(t,e){this.__stage&&(this.frameIndex=t,this.__startPlayback(e))},playTo:function(t,e){if(this.__stage){this.queue=Queue.ref;var i,s=this.frameIndex;e?(this.__removeInTheEnd=e.remove,this.__stretchRatio=isNaN(e.stretch)&&e.stretch<1?1:Math.ceil(e.stretch),this.__stretchRatio>1?(this.__stretchCount=this.__stretchRatio,i=s>t&&!1!==e.reverse||s<t&&!0===e.reverse?"setPrevIndexToStretch":"setNextIndexToStretch"):i=s>t&&!1!==e.reverse||s<t&&!0===e.reverse?"setPrevIndexTo":"setNextIndexTo"):(this.__removeInTheEnd=!1,this.__stretchRatio=1,i=s>t?"setPrevIndexTo":"setNextIndexTo"),this.isPlayed&&this.__changeIndexMethodName!=i&&this.__stopChangingIndex(),this.__changeIndexMethodName=i,this.__destinationFrameIndex=t,this.__startChangingIndex()}},playToTheEnd:function(t){this.playTo(this.__totalFrames-1,t)},playToTheBeginning:function(t){this.playTo(0,t)},playFromTo:function(t,e,i){var s;this.__stage&&(this.queue=Queue.ref,this.frameIndex=this.__startIndex=t,i?(this.__removeInTheEnd=i.remove,this.__repeatsNumber=isNaN(i.repeats)?1:Math.ceil(Math.abs(i.repeats)),this.__stretchRatio=isNaN(i.stretch)&&i.stretch<1?1:Math.ceil(i.stretch),this.__stretchRatio>1?(this.__stretchCount=this.__stretchRatio,s=t>e&&!1!==i.reverse||t<e&&!0===i.reverse?"setPrevIndexFromToStretch":"setNextIndexFromToStretch"):s=t>e&&!1!==i.reverse||t<e&&!0===i.reverse?"setPrevIndexFromTo":"setNextIndexFromTo"):(this.__removeInTheEnd=!1,this.__repeatsNumber=1,this.__stretchRatio=1,s=t>e?"setPrevIndexFromTo":"setNextIndexFromTo"),this.isPlayed&&this.__changeIndexMethodName!=s&&this.__stopChangingIndex(),this.__changeIndexMethodName=s,this.__destinationFrameIndex=e,this.__startChangingIndex())},stop:function(){this.__stage&&(this.loseQueue(),this.isPlayed&&this.__stopChangingIndex())},goto:function(t){this.__stage&&(this.loseQueue(),this.__stopChangingIndex(),this.frameIndex=t,this.__stage.$())},calc:function(){this.matrixLocal=Matrix.get(this.x,this.y,this.rotation,this.scaleX,this.scaleY),this.matrixGlobal=Matrix.multiply(this.parent.matrixGlobal,this.matrixLocal)},calcOwnMatrices:this.calc,drawFrame:function(){var t=this.__context;t.save(),Matrix.setTransform(t,this.matrixGlobal),t.globalAlpha*=this.alpha;var e=this.__atlasData.frames[this.__atlasFilmData.frames[this.frameIndex]];if(e){var i=e.frame,s=e.spriteSourceSize;t.drawImage(this.__atlasData.image,i.x,i.y,i.w,i.h,s.x-this.originX,s.y-this.originY,i.w,i.h),this.frameWidth=i.w,this.frameHeight=i.h,this.frameTrimTop=s.y,this.frameTrimLeft=s.x}t.restore()},drawNothing:function(){},isolate:function(){this.__wasPlayingBeforeRemoving=this.isPlayed,this.stop(),this.matrixLocal=void 0,this.parent=null,this.__stage=null,this.__context=null},onDisplayed:function(){this.__wasPlayingBeforeRemoving&&this.__startChangingIndex()},copy:function(){var t=new this.constructor(this.__atlasData,this.__atlasFilmData),e=this.constructor.OWN_PROPS;for(i=e.length;i--;)t[e[i]]=this[e[i]];for(var s in t.listeners={},this.listeners)t.listeners[s]=this.listeners[s].slice();var n=DragBehavior.of(this);return n&&n.addTo(t),this.isPlayed&&(t.__wasPlayingBeforeRemoving=!0),t},set atlasData(t){this.__atlasData=t},get atlasData(){return this.__atlasData},set atlasFilmData(t){this.__totalFrames=t&&t.frames?t.frames.length:void 0,this.__atlasFilmData=t},get atlasFilmData(){return this.__atlasFilmData},hitTest:function(t,e){var i=this.__context;Matrix.setTransform(i,this.matrixGlobal),i.beginPath(),i.rect(this.frameTrimLeft-this.originX,this.frameTrimTop-this.originY,this.frameWidth,this.frameHeight);var s=i.isPointInPath(t,e);if(i.closePath(),s&&this.useDeepHitTest){var n=this.__atlasData.frames[this.__atlasFilmData.frames[this.frameIndex]];if(n){var a=CanvasComposition.PIXEL;a.save(),Matrix.setMovedTransform(a,this.matrixGlobal,-t,-e);var r=n.frame;a.drawImage(this.__atlasData.image,r.x,r.y,r.w,r.h,this.frameTrimLeft-this.originX,this.frameTrimTop-this.originY,this.frameWidth,this.frameHeight),s=Boolean(a.getImageData(0,0,1,1).data[3]),a.restore(),s&&a.clearRect(0,0,2,2)}}return s}},AtlasFilmLayer.OWN_PROPS=LAYER_COMMON_OWN_PROPS.concat(["__atlasData","__atlasFilmData","__totalFrames","__autoRemove","__changeIndexMethodName","__startIndex","__destinationFrameIndex","__removeInTheEnd","__repeatsNumber","__stretchRatio","__stretchCount","frameWidth","frameHeight","__wasPlayingBeforeRemoving","frameTrimTop","frameTrimLeft","frameIndex","draw","useDeepHitTest","__fps"]),StyleObject.prototype={className:"StyleObject",superclassName:"Object",constructor:StyleObject,clone:function(){return new StyleObject(this.props)},mix:function(t,e,i){arguments.length<3&&arguments.length<2&&(e=!0);var s,n,a,r=this.props,o=t.props;if(i)for(s in o)n=r[s],e?(null!=a&&null!=a||!r.hasOwnProperty(s))&&(r[s]=a):null!=n&&null!=n||(r[s]=a);else for(s in o)r.hasOwnProperty(s)&&(n=r[s],a=o[s],e?null!=a&&null!=a&&(r[s]=a):null!=n&&null!=n||(r[s]=a))},setValue:function(t){var e,i=this.props,s=t.props;for(e in i)i[e]==s.hasOwnProperty(e)&&s[e]}},StyleObject.getDefaultTextStyle=function(){return new StyleObject({font:"sans-serif",size:12,color:"rgba(0,0,0,1)",align:"start",baseline:"hanging",bold:!1,italic:!1,strokeWidth:0,strokeColor:"rgba(0,0,0,1)",strokeCap:"butt",strokeJoin:"miter",strokeMiterLimit:10,shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:"rgba(0,0,0,0)"})},TextLayer.prototype={className:"TextLayer",superclassName:"CanvasLayer",constructor:TextLayer,get text(){return this.__text},set text(t){this.__text=t,this.calculateText(),this.measureWidth(),this.measureHeight()},get font(){return this.__style.props.font},set font(t){this.__style.props.font=t,this.__textWidth&&this.__text.length&&this.calculateText(),this.measureWidth(),this.measureHeight()},get size(){return this.__style.props.size},set size(t){this.__style.props.size=t,this.__textWidth&&this.__text.length&&this.calculateText(),this.measureWidth(),this.measureHeight()},get bold(){return this.__style.props.bold},set bold(t){this.__style.props.bold=t,this.__boldItalic=(t?"bold ":"")+(this.__style.props.italic?"italic ":""),this.__textWidth&&this.__text.length&&this.calculateText(),this.measureWidth(),this.measureHeight()},get italic(){return this.__style.props.italic},set italic(t){this.__style.props.italic=t,this.__boldItalic=(this.__style.props.bold?"bold ":"")+(t?"italic ":""),this.__textWidth&&this.__text.length&&this.calculateText(),this.measureWidth(),this.measureHeight()},get align(){return this.__style.props.align},set align(t){this.__style.props.align=t,this.__textWidth&&this.__text.length&&this.calculateText(),this.measureWidth(),this.measureHeight()},get baseline(){return this.__style.props.baseline},set baseline(t){this.__style.props.baseline=t},get strokeWidth(){return this.__style.props.strokeWidth},set strokeWidth(t){this.__style.props.strokeWidth=t},get strokeCap(){return this.__style.props.strokeCap},set strokeCap(t){this.__style.props.strokeCap=t},get strokeJoin(){return this.__style.props.strokeJoin},set strokeJoin(t){this.__style.props.strokeJoin=t},get strokeMiterLimit(){return this.__style.props.strokeMiterLimit},set strokeMiterLimit(t){this.__style.props.strokeMiterLimit=t},get shadowOffsetX(){return this.__style.props.shadowOffsetX},set shadowOffsetX(t){this.__style.props.shadowOffsetX=t},get shadowOffsetY(){return this.__style.props.shadowOffsetY},set shadowOffsetY(t){this.__style.props.shadowOffsetY=t},get shadowBlur(){return this.__style.props.shadowBlur},set shadowBlur(t){this.__style.props.shadowBlur=t},get lineSpacing(){return this.__lineSpacing},set lineSpacing(t){this.__lineSpacing=t,this.measureHeight()},get multiline(){return this.__multiline},set multiline(t){this.__textWidth?(this.measureWidth=this.measureBoundedWidth,t?(this.measureHeight=this.measureMultilineHeight,this.calculateText=this.calculateBoundedMultiline,this.fill=this.fillMultiline,this.stroke=this.strokeMultiline,!this.__multiline&&this.__text.length&&this.calculateText()):(this.measureHeight=this.measureLineHeight,this.calculateText=this.calculateBoundedLine,this.fill=this.fillBoundedLine,this.stroke=this.strokeBoundedLine)):t?(this.measureWidth=this.measureMultilineWidth,this.measureHeight=this.measureMultilineHeight,this.calculateText=this.calculateMultiline,this.fill=this.fillMultiline,this.stroke=this.strokeMultiline,!this.__multiline&&this.__text.length&&this.calculateText()):(this.measureWidth=this.measureLineWidth,this.measureHeight=this.measureLineHeight,this.calculateText=DO_NOTHING,this.fill=this.fillLine,this.stroke=this.strokeLine),this.__multiline=t,this.measureWidth(),this.measureHeight()},get textWidth(){return this.__width},set textWidth(t){var e=this.__textWidth;this.__textWidth=isNaN(t)?0:Math.abs(t),this.__multiline?(this.measureHeight=this.measureMultilineHeight,this.fill=this.fillMultiline,this.stroke=this.strokeMultiline,t?(this.measureWidth=this.measureBoundedWidth,this.calculateText=this.calculateBoundedMultiline,this.__text.length&&this.calculateText()):(this.measureWidth=this.measureMultilineWidth,this.calculateText=this.calculateMultiline,e&&this.__text.length&&this.calculateText())):(this.measureHeight=this.measureLineHeight,t?(this.measureWidth=this.measureBoundedWidth,this.calculateText=this.calculateBoundedLine,this.fill=this.fillBoundedLine,this.stroke=this.strokeBoundedLine,this.__text.length&&this.calculateText()):(this.measureWidth=this.measureLineWidth,this.calculateText=DO_NOTHING,this.fill=this.fillLine,this.stroke=this.strokeLine)),this.measureWidth(),this.measureHeight()},get textHeight(){return this.__height},get style(){var t=this.__style.props;return t.color=this.color,t.strokeColor=this.strokeColor,t.shadowColor=this.shadowColor,this.__style},set style(t){this.__style.setValue(t),this.color=this.__style.props.color,this.strokeColor=this.__style.props.strokeColor,this.shadowColor=this.__style.props.shadowColor,this.__textWidth&&this.calculateText(),this.measureWidth(),this.measureHeight()},addStyle:function(t,e){this.__style.mix(t,e,!1),this.__textWidth&&this.calculateText(),this.measureWidth(),this.measureHeight()},setupStroke:function(t){t.lineWidth=this.__style.props.strokeWidth,t.lineJoin=this.__style.props.strokeJoin,t.strokeStyle=this.strokeColor},fillLine:function(t){t.fillText(this.__text,-this.originX,-this.originY)},strokeLine:function(t){this.__style.props.strokeWidth&&(this.setupStroke(t),t.strokeText(this.__text,-this.originX,-this.originY))},fillBoundedLine:function(t){t.fillText(this.lines[0],-this.originX,-this.originY)},strokeBoundedLine:function(t){this.__style.props.strokeWidth&&(this.setupStroke(t),t.strokeText(this.lines[0],-this.originX,-this.originY))},fillMultiline:function(t){for(var e=0,i=this.lines.length;e<i;e++)t.fillText(this.lines[e],-this.originX,e*this.__lineSpacing-this.originY)},strokeMultiline:function(t){this.setupStroke(t);for(var e=0,i=this.lines.length;e<i;e++)t.strokeText(this.lines[e],-this.originX,e*this.__lineSpacing-this.originY)},measureBoundedWidth:function(){this.__width=this.__textWidth},measureLineWidth:function(){var t=TextLayer.RULER;this.prepareMeasureWidth(t),this.__width=t.measureText(this.__text).width;var e=this.align;this.__alignOffsetX="start"==e||"left"==e?0:"center"==e?-this.__width/2:-this.__width},measureMultilineWidth:function(){var t=TextLayer.RULER;this.prepareMeasureWidth(t),this.__width=0;for(var e=0,i=this.lines.length;e<i;e++)this.__width=Math.max(this.__width,t.measureText(this.lines[e]).width);this.measureAlignOffsetX(this.align)},measureAlignOffsetX:function(t){this.__alignOffsetX="start"==t||"left"==t?0:"center"==t?-this.__width/2:-this.__width},prepareMeasureWidth:function(t){t.font=this.__boldItalic+this.__style.props.size+"px "+this.__style.props.font,t.textAlign=this.__style.props.align,t.textBaseline=this.__style.props.baseline},measureLineHeight:function(){this.__height=1.03*this.size},measureMultilineHeight:function(){this.__height=this.__lineSpacing*(this.lines.length-1)+1.03*this.size},calculateBoundedLine:function(){var t=TextLayer.RULER;this.lines.length=1,this.lines[0]="";var e=this.__text.split(" "),i="",s=0,n=e.length;for(this.prepareMeasureWidth(t);t.measureText(i).width<=this.__textWidth&&s<n;)this.lines[0]=i,i+=e[s++]+" "},calculateMultiline:function(){this.lines=this.__text.split("\n")},calculateBoundedMultiline:function(){var t=TextLayer.RULER;this.lines.length=0;var e,i,s,n,a,r,o=this.__text.split("\n"),h=0;for(this.prepareMeasureWidth(t),s=0,stringsTotal=o.length;s<stringsTotal;s++){for(e=o[s].split(" "),this.lines[h]=i="",n=-1,a=-1,r=e.length;n<r;)t.measureText(i).width>this.__textWidth?(a&&n--,a=-1,this.lines[++h]=i=""):(this.lines[h]=i,i+=e[++n]+" ",a++);h++}},calc:function(){this.matrixLocal=Matrix.get(this.x,this.y,this.rotation,this.scaleX,this.scaleY),this.matrixGlobal=Matrix.multiply(this.parent.matrixGlobal,this.matrixLocal)},calcOwnMatrices:this.calc,drawNormal:function(){var t=this.__context;t.save(),Matrix.setTransform(t,this.matrixGlobal),t.globalAlpha*=this.alpha,t.font=this.__boldItalic+this.__style.props.size+"px "+this.__style.props.font,t.textAlign=this.__style.props.align,t.textBaseline=this.__style.props.baseline,t.fillStyle=this.color,this.strokeOverFill?(this.fill(t),this.__style.props.strokeWidth&&this.stroke(t)):(this.__style.props.strokeWidth&&this.stroke(t),this.fill(t)),t.restore()},drawCached:function(){},setContext:function(t){this.__context=t},setStage:function(t){this.__stage=t,this.onDisplayed&&t&&this.onDisplayed()},isolate:function(){this.parent=null,this.__stage=null,this.__context=null},copy:function(){var t=copyThisLayerCommonMethod.call(this);return t.lines=this.lines.slice(),t},onAdded:function(){this.measureWidth(),this.measureHeight()},hitTest:function(t,e){var i=this.__context;Matrix.setTransform(i,this.matrixGlobal),i.beginPath(),i.rect(this.__alignOffsetX-this.originX,-this.originY,this.__width,this.__height);var s=i.isPointInPath(t,e);if(i.closePath(),s&&this.useDeepHitTest){var n=CanvasComposition.PIXEL;n.save(),Matrix.setMovedTransform(n,this.matrixGlobal,-t,-e),n.font=this.__boldItalic+this.__style.props.size+"px "+this.__style.props.font,n.textAlign=this.__style.props.align,n.textBaseline=this.__style.props.baseline,n.fillStyle=this.color,this.strokeOverFill?(this.fill(n),this.stroke(n)):(this.stroke(n),this.fill(n)),s=Boolean(n.getImageData(0,0,1,1).data[3]),n.restore(),s&&n.clearRect(0,0,2,2)}return s}},TextLayer.OWN_PROPS=LAYER_COMMON_OWN_PROPS.concat(["__text","__style","__boldItalic","color","strokeColor","shadowColor","draw","__width","__height","__alignOffsetX","strokeOverFill","useDeepHitTest","__lineSpacing","__textWidth","__multiline","fill","stroke","measureWidth","measureHeight","calculateText"]),function(){var t=document.createElement("canvas");t.width=t.height=1,TextLayer.RULER=t.getContext("2d")}(),FontLoader={},function(){var t,e,i=!1,s=document.getElementsByTagName("script")[0],n="";function a(){i=!1,FontLoader.hasOwnProperty("onComplete")&&FontLoader.onComplete()}function r(t,i,a){var r=Queue.ref,o={fontName:t,fontStyle:i,charSet:a};e&&e.parentNode==s.parentNode&&s.parentNode.removeChild(e),WebFontConfig={google:{families:[t+":"+i+":"+a]},active:function(){n+="|"+t+(i?"||"+i:"")+(a?"|||"+a:"")+"  ",FontLoader.hasOwnProperty("onFontLoaded")&&FontLoader.onFontLoaded(o),r.end()},inactive:function(){FontLoader.hasOwnProperty("onFontFail")&&FontLoader.onFontFail(o),r.end()}},(e=document.createElement("script")).src=("https:"==document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",e.type="text/javascript",e.async="true",(s=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,s)}Object.defineProperty(FontLoader,"isLoading",{get:function(){return i}}),FontLoader.loadGoogleFont=function(e,s,n){s=s||"400",n=n||"latin",i?t.addTask(r,e,s,n):((t=new Queue).onComplete=a,t.addTask(r,e,s,n),i=!0,t.run())},FontLoader.loadGoogleFontList=function(){var t=Queue.ref,e={};if("file:"==document.location.protocol)setTimeout((function(){e.data=[""],trace("loadGoogleFontList ERROR: font list can not be loaded from 'file://' location. Use it online."),e.hasOwnProperty("onComplete")&&(e.onComplete(),t.end())}),0);else{var i=new TextLoader;i.onComplete=function(){e.data=JSON.parse(this.data).items,e.hasOwnProperty("onComplete")&&e.onComplete(),t.end()},i.load("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyADQfYE852T3oiRpLbivr44TfmczbjlIqQ")}return e},FontLoader.hasGoogleFont=function(t,e,i){return-1!=n.indexOf("|"+t+(e?"||"+e:"")+(i?"|||"+i:""))}}();var CssProp={};function CssPropNum(t,e,i){var s=CssPropNum.parseCSSValue(t.style[e]||("opacity"==e?"1":"0"));this.__element=t,this.__prop=e,this.__suffix=i||s.suffix,this.__value=s.value}function CssPropCompound(t,e,i,s){var n=this;function a(){for(var i=c.length,s=d[0],a=0;a<i;a++)s+=n["__"+c[a]]+d[a+1];n.__value=t.style[e]=s}for(var r,o,h,l=-1,u=0,c=[],d=[];(l=i.indexOf("[",l+1))>=0;)if((r=i.indexOf("]",l))>=0){h=i.substring(u,l),o=i.substring(l+1,r);var _={get:function(){return this["__"+_.subPropName]},set:function(t){this["__"+_.subPropName]=t,a()}};_.subPropName=o,Object.defineProperty(n,o,_),d.push(h),c.push(o),u=r+1}if(d.push(i.substring(r+1,i.length)),s)for(var f in s)this[f]=s[f]}function Queue(){var t,e,i,s,n=this,a="parallel"==arguments[0]?"parallel":"sequence",r=[],o=[];this.onComplete=function(){},this.onStart=function(){};var h=!1;function l(){h?h=!1:n.nextTask()}this.delay=0,this.getIndex=function(){return t},this.getTaskDataList=function(){return o},this.nextTask=function(){t+1<r.length?r[++t]():e||(h=!1,this.onComplete(),i.end())},this.cancelScheduledTask=function(){h=!0},this.end=function(){"sequence"==a?setTimeout(l,1e3*this.delay):++t>=r.length&&!e&&(h=!1,this.onComplete(),i.end())},this.onStartBranch=function(){e++,"sequence"==a&&n.nextTask()},this.endBranch=function(){e--,t+1>=r.length&&!e&&(h=!1,this.onComplete(),i.end())},this.run=function(){if(i=Queue.ref,r.length||this.addCall((function(){})),s=arguments[0],this.onStart(),t=e=0,"sequence"==a)r[0]();else if(this.delay){if(r[0](),r.length>1){var o=1,h=function(){var t=arguments.callee;clearInterval(t._delayInterval),o<t.tasks.length&&(t.tasks[o++](),t._delayInterval=setInterval(t,1e3*n.delay))};h.tasks=r,h._delayInterval=setInterval(h,1e3*this.delay)}}else for(o=0;o<r.length;o++)r[o]()},this.clear=function(){r.length=o.length=0,h=!1},this.getArgs=function(){return s},this.clone=function(){for(var t=new Queue,e=r.length,i=0;i<e;i++)t.addTaskData(o[i]);return t},this.addTask=function(){var t;o.push(arguments);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(arguments[0]instanceof Function)t=Queue.createTask2(this,arguments[0],e);else{e.shift();var s=arguments[0],n=arguments[1];t=Queue.createTask3(this,s,n,e)}return r.push(t),t._result},this.addBranchTask=function(){var t;o.push(arguments);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(arguments[0]instanceof Function)t=Queue.createTask2(this,arguments[0],e,!0);else{e.shift();var s=arguments[0],n=arguments[1];t=Queue.createTask3(this,s,n,e,!0)}return r.push(t),t._result},this.addTaskData=function(t){o.push(t);var e,i=t.concat();if(i.shift(),t[0]instanceof Function)e=Queue.createTask2(this,t[0],i);else{i.shift();var s=t[0],n=t[1];e=Queue.createTask3(this,s,n,i)}r.push(e)},this.addQueue=function(t){return this.addTask(t,"run",arguments[1])},this.addBranchQueue=function(t){return this.addBranchTask(t,"run",arguments[1])},this.addQueueClone=function(t){return this.addQueue(t.clone(),arguments[1])},this.attachQueue=function(t){return this.addCall(t,"run",arguments[1])},this.embedQueue=function(t){for(var e=t.getTaskDataList(),i=e.length,s=0;s<i;s++)this.addTaskData(e[s])},this.addCall=function(){for(var t,e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var s=arguments[0];if(s instanceof Function)t=function(){var t=Queue.ref,i=s.apply(null,e);return t.end(),i};else{e.shift();var n=s,a=arguments[1];t=function(){var t=Queue.ref,i=n[a].apply(n,e);return t.end(),i}}return this.addTask(t)},this.addPause=function(t,e){return this.addTask(e?Pause.frames:Pause.seconds,t)},this.addWait=function(){var t=arguments,e=t[0];return"string"==typeof e?this.addTask((function(){var i=Queue.ref,s=t.length>1?t[1]:document;s.addEventListener(e,(function t(n){s.removeEventListener(e,t),i.end()}))})):this.addTask(Wait.run,e)},this.addTween=function(t,e,i,s,n){this.addTask(PolyTweenTimebased.run,t,e,i,1e3*s,n)},this.addCallTween=function(t,e,i,s,n){this.addCall(PolyTweenTimebased.run,t,e,i,1e3*s,n)},this.addBranchTween=function(t,e,i,s,n){this.addBranchTask(PolyTweenTimebased.run,t,e,i,1e3*s,n)},this.addLoad=function(t){if("load"in t){for(var e=[arguments[0],"load"],i=arguments.length,s=1;s<i;s++)e.push(arguments[s]);return this.addTask.apply(this,e)}return this.addCall(DO_NOTHING)}}CssProp.set=function(t,e){for(var i in e)t.style[i]=e[i]},CssPropNum.prototype={className:"CssPropNum",constructor:CssPropNum,get value(){return this.__value},set value(t){this.__element.style[this.__prop]=t+this.__suffix,this.__value=t}},CssPropNum.parseCSSValue=function(t){for(var e={value:0,suffix:""},i=(t=String(t).replace(/ /g,"")).length;i--;)if(!isNaN(t.charAt(i))){e.value=Number(t.substring(0,i+1)),e.suffix=t.substring(i+1,t.length);break}return e},CssPropNum.tween=function(t,e,i,s,n){var a,r,o,h,l={object:t};for(r in e)h=CssPropNum.parseCSSValue(e[r]),o=new CssPropNum(t,r,h.suffix),a=MonoTweenTimebased.run(o,"value",h.value,i,1e3*s,n);return a.onComplete=function(){l.hasOwnProperty("onComplete")&&l.onComplete()},l},CssPropNum.instances={},Queue.REF_DEFAULT={end:function(){}},Object.defineProperty(Queue,"ref",{get:function(){var t=Queue.__ref;return Queue.__ref=Queue.REF_DEFAULT,t},set:function(t){Queue.__ref=t},enumerable:!0,configurable:!0}),Queue.ref=Queue.REF_DEFAULT,Queue.createTask2=function(t,e,i,s){var n=function(){s&&t.onStartBranch();var e=arguments.callee;Queue.ref=s?{end:function(){t.endBranch()}}:t,e._result=e._func.apply(null,e._arguments)};return n._arguments=i,n._func=e,n._result=new Object,n},Queue.createTask3=function(t,e,i,s,n){var a=function(){n&&t.onStartBranch();var e=arguments.callee;Queue.ref=n?{end:function(){t.endBranch()}}:t,e._result=e._object[e._method].apply(e._object,e._arguments)};return a._arguments=s,a._method=i,a._object=e,a._result=new Object,a};var Matrix={get:function(t,e,i,s,n){var a=Math.PI*i/180,r=Math.cos(a),o=Math.sin(a);return{a:s*r,b:s*o,c:-n*o,d:n*r,e:t,f:e}},get2:function(t,e,i,s,n,a,r){var o=Math.PI*i/180,h=Math.cos(o),l=Math.sin(o);return{a:(h-r*l)*s,b:(l+r*h)*s,c:(a*h-l)*n,d:(a*l+h)*n,e:t,f:e}},applyTo:function(t,e){return{x:e.a*t.x+e.c*t.y+e.e,y:e.b*t.x+e.d*t.y+e.f}},multiply:function(t,e){return{a:t.a*e.a+t.c*e.b,b:t.b*e.a+t.d*e.b,c:t.a*e.c+t.c*e.d,d:t.b*e.c+t.d*e.d,e:t.a*e.e+t.c*e.f+t.e,f:t.b*e.e+t.d*e.f+t.f}},invert:function(t){var e=t.c*t.b-t.a*t.d;return{a:-t.d/e,b:t.b/e,c:t.c/e,d:-t.a/e,e:(t.e*t.d-t.c*t.f)/e,f:(t.f*t.a-t.b*t.e)/e}},getSkew:function(t,e){return{a:1,b:t,c:e,d:1,e:0,f:0}},getStretch:function(t,e,i,s){var n=Math.PI*e/180,a=Math.cos(n),r=Math.sin(n),o=a*a,h=r*r,l=a*r,u=r*a;return{a:t*o+h,b:t*l-u,c:t*u-l,d:t*h+o,e:i||0,f:s||0}},transform:function(t,e){t.transform(e.a,e.b,e.c,e.d,e.e,e.f)},setTransform:function(t,e){t.setTransform(e.a,e.b,e.c,e.d,e.e,e.f)},setMovedTransform:function(t,e,i,s){t.setTransform(e.a,e.b,e.c,e.d,e.e+i,e.f+s)},calculateFor:function(t){for(var e=t.__stage,i=[];t!=e;)i.push(t),t=t.parent;for(var s=i.length;s--;)i[s].calcOwnMatrices()}};Matrix.GLOBAL=Matrix.UNIT={a:1,b:0,c:0,d:1,e:0,f:0},Matrix.ZERO=Matrix.NULL={a:0,b:0,c:0,d:0,e:0,f:0};var Point={};function Shape(t,e){if(this.x=this.y=this.rotation=this.originX=this.originY=0,this.scaleX=this.scaleY=1,t&&(this.build=t),e)for(var i in e)this[i]=e[i]}Point.globalToLocal=function(t,e,i){return i||Matrix.calculateFor(e),Matrix.applyTo(t,Matrix.invert(e.matrixGlobal))},Point.localToGlobal=function(t,e,i){return i||Matrix.calculateFor(e),Matrix.applyTo(t,e.matrixGlobal)},Point.localToParent=function(t,e,i){return i||e.calcOwnMatrices(),Matrix.applyTo(t,e.matrixLocal)},Point.localToChild=function(t,e,i,s){return i.parent==e?(s||i.calcOwnMatrices(),Matrix.applyTo(t,Matrix.invert(i.matrixLocal))):null},Point.localToLocal=function(t,e,i,s){return s||(Matrix.calculateFor(e),Matrix.calculateFor(i)),Matrix.applyTo(Matrix.applyTo(t,e.matrixGlobal),Matrix.invert(i.matrixGlobal))},Shape.prototype={className:"Shape",constructor:Shape,build:void 0,copy:copyThisWithOwnProps},Shape.EMPTY=new Shape((function(t){})),Shape.OWN_PROPS=TRANSFORMATION_OWN_PROPS;var shapes={SquareShape:function(t){this.super(),this.size=validNonNegative(t,100)},RectangleShape:function(t,e){this.super(),this.width=validNonNegative(t,200),this.height=validNonNegative(e,100)},RoundRectangleShape:function(t,e,i,s,n,a){this.super(),this.width=validNonNegative(t,200),this.height=validNonNegative(e,100),this.ra=validNonNegative(i,10),this.rb=validNonNegative(s,this.ra),this.rc=validNonNegative(n,this.rb),this.rd=validNonNegative(a,this.rc)},CircleShape:function(t){this.super(),this.radius=validNonNegative(t,50)},EllipseShape:function(t,e){this.super(),this.a=validNonNegative(t,50),this.b=validNonNegative(e,.618*this.a)},SectorShape:function(t,e,i){this.super(),this.radius=validNonNegative(t,50),this.startAngle=e||0,this.endAngle=i||0},RingShape:function(t,e){this.super(),this.radius=validNonNegative(t,50),this.thickness=validMinMax(e,0,this.radius,this.radius/2)},ArcShape:function(t,e,i,s){this.super(),this.radius=validNonNegative(t,50),this.thickness=validMinMax(e,0,this.radius,this.radius/2),this.startAngle=i||0,this.endAngle=s||2*Math.PI},CapsuleShape:function(t,e,i){this.super(),this.length=validNonNegative(t,100),this.radius=validMinMax(e,0,this.length/2,this.length/3),i&&(this.originY=2*this.radius,this.rotation=90)},StarShape:function(t,e,i,s){this.super(),this.ra=validNonNegative(t,50),this.rb=validNonNegative(e,100),this.n=validNonNegative(i,5),this.offsetAngle=s||0},PolygonShape:function(t,e,i){this.super(),this.radius=validNonNegative(t,50),this.n=validNonNegative(e,5),this.offsetAngle=i||0}},shapeBuildMethods={SquareShape:function(t){t.rect(0,0,this.size,this.size)},RectangleShape:function(t){t.rect(0,0,this.width,this.height)},RoundRectangleShape:function(t){t.moveTo(this.ra,0),t.lineTo(this.width-this.rb,0),t.arcTo(this.width,0,this.width,this.rb,this.rb),t.lineTo(this.width,this.height-this.rc),t.arcTo(this.width,this.height,this.width-this.rc,this.height,this.rc),t.lineTo(this.rd,this.height),t.arcTo(0,this.height,0,this.height-this.rd,this.rd),t.lineTo(0,this.ra),t.arcTo(0,0,this.ra,0,this.ra),t.closePath()},CircleShape:function(t){t.moveTo(this.radius,0),t.arc(0,0,this.radius,0,2*Math.PI)},EllipseShape:function(t){t.save(),t.scale(this.a/this.b,1),t.moveTo(this.b,0),t.arc(0,0,this.b,0,2*Math.PI),t.restore()},SectorShape:function(t){var e=Math.abs(this.endAngle-this.startAngle)<2*Math.PI;e?(t.moveTo(0,0),t.lineTo(this.radius*Math.cos(this.startAngle),this.radius*Math.sin(this.startAngle))):t.moveTo(this.radius*Math.cos(this.startAngle),this.radius*Math.sin(this.startAngle)),t.arc(0,0,this.radius,this.startAngle,this.endAngle),e&&(t.lineTo(0,0),t.closePath())},RingShape:function(t){var e=this.radius>this.thickness?this.radius-this.thickness:0;t.moveTo(this.radius,0),t.arc(0,0,this.radius,0,2*Math.PI),t.moveTo(e,0),t.arc(0,0,e,0,2*Math.PI,!0),t.moveTo(this.radius,0)},ArcShape:function(t){var e=this.radius>this.thickness?this.radius-this.thickness:0,i=Math.abs(this.endAngle-this.startAngle)<2*Math.PI;t.moveTo(this.radius*Math.cos(this.startAngle),this.radius*Math.sin(this.startAngle)),t.arc(0,0,this.radius,this.startAngle,this.endAngle),i?t.lineTo(e*Math.cos(this.endAngle),e*Math.sin(this.endAngle)):t.moveTo(e*Math.cos(this.endAngle),e*Math.sin(this.endAngle)),t.arc(0,0,e,this.endAngle,this.startAngle,!0),i&&(t.lineTo(this.radius*Math.cos(this.startAngle),this.radius*Math.sin(this.startAngle)),t.closePath())},CapsuleShape:function(t){var e=Math.PI/2;t.moveTo(this.radius,0),t.lineTo(this.length-this.radius,0),t.arc(this.length-this.radius,this.radius,this.radius,-e,e),t.lineTo(this.radius,2*this.radius),t.arc(this.radius,this.radius,this.radius,e,-e),t.closePath()},StarShape:function(t){var e=this.offsetAngle,i=e-Math.PI/2,s=i+Math.PI/this.n;t.moveTo(this.rb*Math.cos(i),this.rb*Math.sin(i)),t.lineTo(this.ra*Math.cos(s),this.ra*Math.sin(s));for(var n=1;n<this.n;n++)s=(i=Math.PI*(n/this.n*2-.5)+e)+Math.PI/this.n,t.lineTo(this.rb*Math.cos(i),this.rb*Math.sin(i)),t.lineTo(this.ra*Math.cos(s),this.ra*Math.sin(s));t.closePath()},PolygonShape:function(t){var e=this.offsetAngle,i=e-Math.PI/2;t.moveTo(this.radius*Math.cos(i),this.radius*Math.sin(i));for(var s=1;s<this.n;s++)i=Math.PI*(s/this.n*2-.5)+e,t.lineTo(this.radius*Math.cos(i),this.radius*Math.sin(i));t.closePath()}},shapeOwnProps={SquareShape:["size"],RectangleShape:["width","height"],RoundRectangleShape:["width","height","ra","rb","rc","rd"],CircleShape:["radius"],EllipseShape:["a","b"],SectorShape:["radius","startAngle","endAngle"],RingShape:["radius","thickness"],ArcShape:["radius","thickness","startAngle","endAngle"],CapsuleShape:["length","radius","isVertical"],StarShape:["ra","rb","n","offsetAngle"],PolygonShape:["radius","n","offsetAngle"]},constructor;for(var className in shapes)constructor=shapes[className],extend(constructor,Shape),constructor.prototype.className=className,constructor.prototype.superclassName="ShapeLayer",constructor.prototype.build=shapeBuildMethods[className],constructor.SPECIFIC_OWN_PROPS=shapeOwnProps[className],constructor.OWN_PROPS=Shape.OWN_PROPS.concat(shapeOwnProps[className]);function ShapeLayer(t){this.__context=null,this.__stage=null,this.parent=null,this.x=this.y=this.rotation=this.originX=this.originY=0,this.scaleX=this.scaleY=this.alpha=1,this.shape=t||Shape.EMPTY,this.strokeOverFill=!0,this.color="rgb(0,0,0)",this.strokeColor="rgb(0,0,0)",this.strokeWidth=0,this.strokeCap="butt",this.strokeJoin="miter",this.strokeMiterLimit=10,this.matrixLocal=void 0,this.matrixGlobal=Matrix.ZERO,this.shapeMatrixLocal=void 0,this.shapeMatrixGlobal=Matrix.ZERO,this.useDeepHitTest=!1,EventDispatcherBehaivor.init(this)}function RectangleLayer(){this.super(new shapes.RectangleShape(162,100))}function CircleLayer(){this.super(new shapes.CircleShape(25))}function ShapeRegion(t){this.__context=null,this.__stage=null,this.parent=null,this.x=this.y=this.rotation=this.originX=this.originY=0,this.scaleX=this.scaleY=1,this.shape=t||Shape.EMPTY,this.draw=this.drawNothing,this.__visible=!1,this.color="rgb(0,100,200)",this.alpha=.5,this.matrixLocal=void 0,this.matrixGlobal=Matrix.ZERO,this.shapeMatrixLocal=void 0,this.shapeMatrixGlobal=Matrix.ZERO,EventDispatcherBehaivor.init(this)}ShapeLayer.prototype={className:"ShapeLayer",superclassName:"CanvasLayer",constructor:ShapeLayer,buildShape:function(t){t.save(),Matrix.setTransform(t,this.shapeMatrixGlobal),this.shape.build(t),t.restore()},buildMovedShape:function(t,e,i){Matrix.setMovedTransform(t,this.shapeMatrixGlobal,e,i),this.shape.build(t)},paint:function(t){this.strokeWidth?this.strokeOverFill?(this.fillShape(t),this.strokeShape(t)):(this.strokeShape(t),this.fillShape(t)):this.fillShape(t)},fillShape:function(t){t.fillStyle=this.color,t.fill()},strokeShape:function(t){t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.lineCap=this.strokeCap,t.lineJoin=this.strokeJoin,t.miterLimit=this.strokeMiterLimit,t.stroke()},calc:function(){this.matrixLocal=Matrix.multiply(Matrix.get(this.x,this.y,this.rotation,this.scaleX,this.scaleY),Matrix.get(-this.originX,-this.originY,0,1,1)),this.matrixGlobal=this.parent.matrixGlobal?Matrix.multiply(this.parent.matrixGlobal,this.matrixLocal):this.matrixLocal},calcOwnMatrices:this.calc,draw:function(){var t=this.__context;t.save(),this.setMatrixAndAlpha(t),t.beginPath(),this.buildShape(t),this.paint(t),t.restore()},setMatrixAndAlpha:function(t){Matrix.setTransform(t,this.matrixGlobal);var e=this.shape;this.shapeMatrixLocal=Matrix.multiply(Matrix.get(e.x,e.y,e.rotation,e.scaleX,e.scaleY),Matrix.get(-e.originX,-e.originY,0,1,1)),this.shapeMatrixGlobal=Matrix.multiply(this.matrixGlobal,this.shapeMatrixLocal),t.globalAlpha*=this.alpha},setContext:function(t){this.__context=t},setStage:function(t){this.__stage=t,this.onDisplayed&&t&&this.onDisplayed()},isolate:function(){this.parent=null,this.__stage=null,this.__context=null},copy:function(){var t=copyThisLayerCommonMethod.call(this);return t.shape=this.shape.copy(),t},hitTest:function(t,e){var i=this.__context;Matrix.setTransform(i,this.shapeMatrixGlobal),i.beginPath(),this.shape.build(i);var s=i.isPointInPath(t,e);if(!s&&this.useDeepHitTest){var n=CanvasComposition.PIXEL;n.save(),n.beginPath(),this.buildMovedShape(n,-t,-e),Matrix.setMovedTransform(n,this.matrixGlobal,-t,-e),this.paint(n),s=Boolean(n.getImageData(0,0,1,1).data[3]),n.restore(),s&&n.clearRect(0,0,2,2)}return s}},ShapeLayer.OWN_PROPS=LAYER_COMMON_OWN_PROPS.concat(["strokeOverFill","color","strokeColor","strokeWidth","strokeCap","strokeJoin","strokeMiterLimit","useDeepHitTest"]),extend(RectangleLayer,ShapeLayer),RectangleLayer.prototype.className="RectangleLayer",RectangleLayer.prototype.superclassName="CanvasLayer",Object.defineProperty(RectangleLayer.prototype,"width",{get:function(){return this.shape.width},set:function(t){this.shape.width=t}}),Object.defineProperty(RectangleLayer.prototype,"height",{get:function(){return this.shape.height},set:function(t){this.shape.height=t}}),extend(CircleLayer,ShapeLayer),CircleLayer.prototype.className="CircleLayer",CircleLayer.prototype.superclassName="CanvasLayer",Object.defineProperty(CircleLayer.prototype,"radius",{get:function(){return this.shape.radius},set:function(t){this.shape.radius=t}}),ShapeRegion.prototype={className:"ShapeRegion",superclassName:"CanvasLayer",constructor:ShapeRegion,drawNothing:function(){},drawShape:function(){var t=this.__context;t.save(),this.setMatrix(t),t.beginPath(),t.globalAlpha*=this.alpha,t.fillStyle=this.color,this.shape.build(t),t.fill(),t.restore()},get visible(){return this.__visible},set visible(t){this.draw=t?this.drawShape:this.drawNothing,this.__visible=t},calc:function(){this.matrixLocal=Matrix.multiply(Matrix.get(this.x,this.y,this.rotation,this.scaleX,this.scaleY),Matrix.get(-this.originX,-this.originY,0,1,1)),this.matrixGlobal=this.parent.matrixGlobal?Matrix.multiply(this.parent.matrixGlobal,this.matrixLocal):this.matrixLocal},calcOwnMatrices:this.calc,setMatrix:function(t){var e=this.shape;this.shapeMatrixLocal=Matrix.multiply(Matrix.get(e.x,e.y,e.rotation,e.scaleX,e.scaleY),Matrix.get(-e.originX,-e.originY,0,1,1)),this.shapeMatrixGlobal=Matrix.multiply(this.matrixGlobal,this.shapeMatrixLocal),Matrix.setTransform(t,this.shapeMatrixGlobal)},setContext:function(t){this.__context=t},setStage:function(t){this.__stage=t,this.onDisplayed&&t&&this.onDisplayed()},isolate:function(){this.parent=null,this.__stage=null,this.__context=null},copy:function(){var t=copyThisLayerCommonMethod.call(this);return t.shape=this.shape.copy(),t},hitTest:function(t,e){var i=this.__context;return this.setMatrix(i),i.beginPath(),this.shape.build(i),i.isPointInPath(t,e)}},ShapeRegion.OWN_PROPS=LAYER_COMMON_OWN_PROPS.concat(["draw","color","__visible"]);var DragBehaviorEvent={DRAG_START:"dragBehaviorStart",DRAG_END:"dragBehaviorEnd",DRAG_MOVE:"dragBehaviorMove"},DragBehavior=function(){document.body;var t,e,i,s,n,a,r,o,h,l,u,c,d,_,f,p,m,g=new SoftMap,v={};function b(n){m=s.gesturePoint,isNaN(m.x)||isNaN(m.y)||(p=i.parent.isContainer?Point.globalToLocal(m,i.parent,!0):m,a.idle||(r=p.x-t,o=p.y-e,isNaN(r)||a.fixedX||(i.x=r<a.minX?a.minX:r>a.maxX?a.maxX:r),isNaN(o)||a.fixedY||(i.y=o<a.minY?a.minY:o>a.maxY?a.maxY:o)),(_=(n-d)/1e3)?(u=p.x-v.x,c=p.y-v.y,h=u/_,l=c/_):h=l=u=c=0,i.dispatchEvent(DragBehaviorEvent.DRAG_MOVE,{x:p.x,y:p.y,speedX:h,speedY:l,deltaX:u,deltaY:c}),v.x=p.x,v.y=p.y,d=n)}function x(t){s.gesturePoint=s.getMousePoint(t)}function y(t){s.gesturePoint=s.getTouchPoint(t)}function w(t){document.addEventListener("mousemove",x),document.addEventListener("touchmove",y)}function M(t){document.removeEventListener("mousemove",x),document.removeEventListener("touchmove",y)}function T(r){i=r.currentTarget,(s=i.__stage)&&(n=s.canvas,a=g.get(i),f=i.parent.isContainer?Point.globalToLocal(s.gesturePoint,i.parent,!0):s.gesturePoint,t=f.x-i.x,e=f.y-i.y,s.metronome.addListener(b),n.addEventListener("mouseleave",w),n.addEventListener("mouseenter",M),document.addEventListener("mouseup",M),document.addEventListener("touchend",M),document.addEventListener("touchcancel",M),i.dispatchEvent(DragBehaviorEvent.DRAG_START,{x:f.x,y:f.y,speedX:0,speedY:0,deltaX:0,deltaY:0}),v.x=f.x,v.y=f.y,h=l=u=c=0,d=(new Date).getTime())}function C(t){s&&s.metronome.removeListener(b),n&&(n.removeEventListener("mouseleave",w),n.removeEventListener("mouseenter",M)),document.removeEventListener("mouseup",M),document.removeEventListener("touchend",M),document.removeEventListener("touchcancel",M),M(),i&&i.dispatchEvent(DragBehaviorEvent.DRAG_END,{x:p.x,y:p.y,speedX:h,speedY:l,deltaX:u,deltaY:c}),i=s=a=void 0}function O(t){t=t&&t instanceof Object?t:{},this.idle=t.idle,this.fixedX=t.fixedX,this.fixedY=t.fixedY,this.minX=t.hasOwnProperty("minX")?t.minX:Number.NEGATIVE_INFINITY,this.maxX=t.hasOwnProperty("maxX")?t.maxX:Number.POSITIVE_INFINITY,this.minY=t.hasOwnProperty("minY")?t.minY:Number.NEGATIVE_INFINITY,this.maxY=t.hasOwnProperty("maxY")?t.maxY:Number.POSITIVE_INFINITY}return O.prototype={className:"DragBehavior",superclassName:"Object",constructor:O,addTo:function(t){t.addEventListener("mouseDown",T),document.addEventListener("mouseup",C),document.addEventListener("touchend",C),document.addEventListener("touchcancel",C),g.set(t,this)},removeFrom:function(t){t.removeEventListener("mouseDown",T),document.removeEventListener("mouseup",C),document.removeEventListener("touchend",C),document.removeEventListener("touchcancel",C),g.delete(t)},addedTo:function(t){return g.get(t)===this}},O.addedTo=function(t){return g.has(t)},O.of=function(t){return g.get(t)},O.catch=function(t){O.addedTo(t)&&t.__stage&&t.__stage.isDown&&T({currentTarget:t})},O}();window.hasOwnProperty("jsband")||(window.jsband={});var lib=window.jsband;lib.wrap={},lib.use=use,lib.trace=trace,lib.extend=extend,lib.createClass=createClass,lib.getColorComponents=getColorComponents,lib.EnterFrameSignal=lib.Metronome=EnterFrameSignal,lib.Ease=Ease,lib.Pause=Pause,lib.Wait=Wait,lib.MonoTween=MonoTween,lib.MonoTweenTimebased=MonoTweenTimebased,lib.PolyTween=PolyTween,lib.PolyTweenTimebased=lib.Tween=PolyTweenTimebased,lib.ColorTween=ColorTweenTimebased,lib.ColorTweenTimebased=ColorTweenTimebased,lib.Boom=Boom,lib.Boomerang=Boomerang,lib.BoomerangTimebased=BoomerangTimebased,lib.Shift=Shift,lib.ShiftTimebased=ShiftTimebased,lib.CanvasContainer=CanvasContainer,lib.CanvasComposition=CanvasComposition,lib.ImageLayer=ImageLayer,lib.TextLoader=TextLoader,lib.XMLLoader=XMLLoader,lib.AtlasData=AtlasData,lib.AtlasFilmData=AtlasFilmData,lib.AtlasFilmDataSheet=AtlasFilmDataSheet,lib.AtlasImageLayer=AtlasImageLayer,lib.AtlasFilmLayer=AtlasFilmLayer,lib.EventDispatcherBehaivor=EventDispatcherBehaivor,lib.StyleObject=StyleObject,lib.TextLayer=TextLayer,lib.CssProp=CssProp,lib.CssPropNum=CssPropNum,lib.CssPropCompound=CssPropCompound,lib.Queue=Queue,lib.Matrix=Matrix,lib.Point=Point,lib.Shape=Shape,lib.ShapeLayer=ShapeLayer,lib.RectangleLayer=RectangleLayer,lib.CircleLayer=CircleLayer,lib.ShapeRegion=ShapeRegion,lib.CommonMap=CommonMap,lib.SoftMap=SoftMap,lib.HardMap=HardMap,lib.SoftSet=SoftSet,lib.HardSet=HardSet,lib.IdChain=IdChain,lib.FontLoader=FontLoader,lib.DragBehavior=DragBehavior,lib.DragBehaviorEvent=DragBehaviorEvent,lib.CanvasCompositionWrapper=CanvasCompositionWrapper,lib.Swing=Swing,lib.Wave=Wave,lib.Motion=Motion,lib.Motion2D=Motion2D,lib.events=events,lib.shapes=shapes}()},Qp7O:function(t,e,i){function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i("pNMO"),i("4Brf"),i("0oug"),i("4mDm"),i("qePV"),i("HRxU"),i("07d7"),i("PKPk"),i("3bBZ"),function(){jsband.trace;var t=jsband.Metronome,e=jsband.Ease,i=jsband.Tween,n=jsband.CssProp,a=jsband.Queue,r=jsband.Swing,o=jsband.Wave,h=jsband.Motion,l={linear:e.lin(),quad:e.pow(2),cubic:e.pow(3),quart:e.pow(4),quint:e.pow(5),circ:e.circ(),sine:e.sin(),expo:e.exp(),elastic:e.osc2Out(),bounce:e.bncOut(),back:e.backOut()},u={sine:o.sin,linear:o.triangle,pulse:o.pulse},c={amp1:1,freq1:1,pha1:1,amp2:1,freq2:1,pha2:1,amp3:1,freq3:1,pha3:1},d={amplitude:"amp",frequency:"freq",phase:"pha"};function _(t){return document.createElement(t)}function f(t,e,i,s){return isNaN(t)?e:t<i?i:t>s?s:t}function p(t,e,i,s,n){return f(t[e],i,s,n)}function m(t,e,i,s){return{x:t[0][0]*e+t[0][1]*i+t[0][2]*s,y:t[1][0]*e+t[1][1]*i+t[1][2]*s,z:t[2][0]*e+t[2][1]*i+t[2][2]*s}}function g(t,e){for(var i={},s=1;s<4;s++){var n=t["wave"+s];if(n)for(var a in n)!isNaN(n[a])&&a in d&&(i[d[a]+s]=n[a])}if(e)for(var a in c)a in i||(i[a]=0);return i}function v(c,b){var x=document.getElementById(c);if(x){v.instances[c]&&v.instances[c].destroy(),v.instances[c]=this,b||(b={});var y=Number.POSITIVE_INFINITY,w=30,M=100,T=Math.PI,C=T/2,O=p(b,"DETALISATION",60,1,y),N=p(b,"BLOB_SIZE",220,1,y),P=p(b,"BLOB_DISTANCE",1e3,0,y),I=p(b,"ROTATION_SPEED",5,0,y)/1e3,S=p(b,"PERSPECTIVE_DISTORTION",1,.001,y),L=p(b,"DOT_SIZE",2,0,y),E=b.DOT_COLOR||"black",k=p(b,"MOUSE_DISTANCE_MIN",20,0,y),D=p(b,"MOUSE_DISTANCE_MAX",k+400,k+.001,y),A=p(b,"MOUSE_SENSITIVITY",1,0,y)/1e3,R=1e3*p(b,"INERTIAL_TIME",2,0,y),F=b.INITIAL_SHAPE||{wave1:{amplitude:70,frequency:3,phase:0},wave2:{amplitude:60,frequency:2,phase:0},wave3:{amplitude:50,frequency:2,phase:0}},W=b.USE_MORPHING,H=b.USE_WAVE_MOTION,G=b.USE_WAVE_SWING,B=!("MORPHING_AUTOPLAY"in b)||b.MORPHING_AUTOPLAY,j=p(b,"MORPHING_DURATION",2,0,y),Y=p(b,"MORPHING_DELAY",1,0,y),q=b.MORPHING_TRANSITION_TYPE||"cubic",X=b.MORPHING_SHAPES||[];if(H&&W&&X.length)for(var Q=1;Q<4;Q++)if(b["WAVE_"+Q+"_MOTION_SPEED"])for(var z=X.length;z--;){(Z=X[z]["wave"+Q])&&"phase"in Z&&delete Z.phase}if(G)for(Q=1;Q<4;Q++){if(Ft=b["WAVE_"+Q+"_SWING_SETTINGS"]){for(var U in Ft){var V=Ft[U];if(V){if(W)for(z=X.length;z--;){var Z;(Z=X[z]["wave"+Q])&&U in Z&&delete Z[U]}"type"in V&&(V.wave=("function"==typeof V.type?V.type:u[V.type])||o.sin,delete V.type),"amplitude"in V&&isNaN(V.amplitude)&&delete V.amplitude,"frequency"in V&&isNaN(V.frequency)&&delete V.frequency,"phase"in V&&isNaN(V.phase)&&delete V.phase}}Ft.phase&&H&&(b["WAVE_"+Q+"_MOTION_SPEED"]=0)}}var K,J,$,tt,et,it,st,nt,at,rt,ot,ht,lt,ut=b.WAVE_1_MOTION_SPEED,ct=b.WAVE_2_MOTION_SPEED,dt=b.WAVE_3_MOTION_SPEED,_t=(b.WAVE_1_SWING_SETTINGS,b.WAVE_2_SWING_SETTINGS,b.WAVE_3_SWING_SETTINGS,P/S),ft=1e3/S,pt=(document.body,J=_("div"),n.set(J,{position:"relative",width:"100%",height:"100%",top:0,left:0,margin:0,userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none",KhtmlUserSelect:"none",userDrag:"none",WebkitUserDrag:"none",overflow:"hidden",cursor:"default"}),J.setAttribute("unselectable","on"),x.appendChild(J),J),mt=(K=_("canvas"),n.set(K,{position:"absolute",width:"100%",height:"100%",top:0,left:0,margin:0}),K.width=pt.clientWidth,K.height=pt.clientHeight,pt.appendChild(K),K),gt=mt.getContext("2d"),vt=new t,bt=function(){var t={set:function(t){for(var e in t)this[e]=t[e]},angle:I},e=g(F,!0);for(var i in e)t[i]=e[i];return t}(),xt=5,yt=5,wt=1,Mt={stop:function(){}},Tt=Math.sin(bt.angle),Ct=Math.cos(bt.angle),Ot=Math.sqrt(yt*yt+xt*xt),Nt=yt/Ot,Pt=-xt/Ot,It=[[1,0,0],[0,1,0],[0,0,1]],St=0,Lt=0,Et=0,kt=(new Date).getTime();if(this.resize=function(){Ht()},this.destroy=function(){for(U in v.instances[c]=null,vt.removeAllListeners(),Dt&&Dt.clear(),window.removeEventListener("resize",Ht),document.removeEventListener("mousemove",qt),document.removeEventListener("mousemove",Yt),pt.removeChild(mt),x.removeChild(pt),x=c=b=y=w=M=T=C=O=N=I=S=L=E=k=D=A=R=F=W=H=G=B=j=Y=q=X=ut=ct=dt=P=_t=ft=pt=mt=gt=vt=bt=xt=yt=wt=Mt=Tt=Ct=Ot=Nt=Pt=It=$=tt=et=St=Lt=Et=it=st=nt=at=rt=ot=kt=Dt=Ht=Gt=Bt=jt=Yt=qt=null,this)delete this[U];this.resize=this.destroy=this.morphTo=function(){}},this.morphTo=function(t){var e;W&&X.length&&(t&&"object"===s(t)?e=t:!isNaN(t)&&t>=0&&t<X.length&&!(t-Math.floor(t))&&(e=X[t]),e&&i.run(bt,g(e),"function"==typeof q?q:l[q],1e3*j,vt))},Object.defineProperties(this,{blobSize:{get:function(){return N},set:function(t){N=f(t,220,1,y)},configurable:!0},blobDistance:{get:function(){return P},set:function(t){P=f(t,1e3,0,y),_t=P/S,ft=1e3/S},configurable:!0},rotationSpeed:{get:function(){return I},set:function(t){bt.angle=I=f(t,5,0,y)/1e3},configurable:!0},perspectiveDistortion:{get:function(){return S},set:function(t){S=f(t,1,.001,y),_t=P/S,ft=1e3/S},configurable:!0},dotSize:{get:function(){return L},set:function(t){L=f(t,2,0,y)},configurable:!0},dotColor:{get:function(){return E},set:function(t){E=t||"black"},configurable:!0},mouseDistanceMin:{get:function(){return k},set:function(t){k=f(t,20,0,D-1e-4)},configurable:!0},mouseDistanceMax:{get:function(){return D},set:function(t){D=f(t,k+400,k+.001,y)},configurable:!0},mouseSensitivity:{get:function(){return A},set:function(t){var e=A;(A=f(t,1,0,y)/1e3)&&!e?document.addEventListener("mousemove",qt):e&&!A&&(document.removeEventListener("mousemove",qt),document.removeEventListener("mousemove",Yt))},configurable:!0},inertialTime:{get:function(){return R},set:function(t){R=1e3*f(t,2,0,y)},configurable:!0},wave1Amplitude:{get:function(){return bt.amp1},set:function(t){bt.amp1=t},configurable:!0},wave2Amplitude:{get:function(){return bt.amp2},set:function(t){bt.amp2=t},configurable:!0},wave3Amplitude:{get:function(){return bt.amp3},set:function(t){bt.amp3=t},configurable:!0},wave1Frequency:{get:function(){return bt.freq1},set:function(t){bt.freq1=t},configurable:!0},wave2Frequency:{get:function(){return bt.freq2},set:function(t){bt.freq2=t},configurable:!0},wave3Frequency:{get:function(){return bt.freq3},set:function(t){bt.freq3=t},configurable:!0},wave1Phase:{get:function(){return bt.pha1},set:function(t){bt.pha1=t},configurable:!0},wave2Phase:{get:function(){return bt.pha2},set:function(t){bt.pha2=t},configurable:!0},wave3Phase:{get:function(){return bt.pha3},set:function(t){bt.pha3=t},configurable:!0}}),window.addEventListener("resize",Ht),W&&B&&X.length){var Dt;(Dt=new a).delay=Y;z=0;for(var At=X.length;z<At;z++)Dt.addTween(bt,g(X[z]),"function"==typeof q?q:l[q],j,vt);Dt.addQueue(Dt),Dt.run()}if(H){var Rt=(ht={},lt=0,ut&&!isNaN(ut)&&(ht.pha1=ut,lt++),ct&&!isNaN(ct)&&(ht.pha2=ct,lt++),dt&&!isNaN(dt)&&(ht.pha3=dt,lt++),lt?new h(bt,ht,vt):0);Rt&&Rt.play()}if(G)for(z=1;z<4;z++){var Ft;if(Ft=b["WAVE_"+z+"_SWING_SETTINGS"])for(var U in Ft){var Wt=d[U];if(Wt)new r(bt,Wt+z,Ft[U],vt).play()}}vt.addListener(Bt),A&&document.addEventListener("mousemove",qt)}else alert("BlobAnimation ERROR: There is no element with the specified id");function Ht(t){mt.width=pt.clientWidth,mt.height=pt.clientHeight}function Gt(t,e,i){var s=ft/(_t+i);return{x:s*t,y:s*e,alpha:s<1?s*s:1,scale:s}}function Bt(){var t,e,i,s,n,a,r,o,h;Ot=Math.sqrt(yt*yt+xt*xt),Nt=yt/Ot||1e-4,Pt=-xt/Ot||1e-4,Tt=Math.sin(bt.angle),Ct=Math.cos(bt.angle),It=function(t,e){var i,s,n=[];for(i=0;i<3;i++)for(n[i]=[],s=0;s<3;s++)n[i][s]=t[i][0]*e[0][s]+t[i][1]*e[1][s]+t[i][2]*e[2][s];return n}([[Nt*Nt+Pt*Pt*Ct,Nt*Pt*(1-Ct),Pt*Tt],[Nt*Pt*(1-Ct),Pt*Pt+Nt*Nt*Ct,-Nt*Tt],[-Pt*Tt,Nt*Tt,(Nt*Nt+Pt*Pt)*Ct]],It),mt.width=mt.width,gt.fillStyle=E,gt.translate(mt.width/2,mt.height/2);for(var l=O;l--;){e=l/O*T-C;for(var u=o=Math.round(O*Math.cos(e)*2);u--;)i=u/o*2*T-T,s=(N+bt.amp1*Math.sin(bt.freq1*e+bt.pha1))*Math.cos(e)*Math.cos(i),n=(N+bt.amp2*Math.sin(bt.freq2*i+bt.pha2))*Math.cos(e)*Math.sin(i),a=(N+bt.amp3*Math.sin(bt.freq3*e+bt.pha3))*Math.sin(e),t=Gt((r=m(It,s,n,a)).x,r.y,r.z),h=L*t.scale,gt.globalAlpha=t.alpha,h>0&&gt.fillRect(t.x,t.y,h,h)}}function jt(t){var e=mt.getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}}function Yt(t){(ot=(new Date).getTime())-kt>1e3/w&&(et=jt(t),it=et.x-at,st=et.y-rt,nt=Math.sqrt(it*it+st*st),$=Math.sqrt((et.x-mt.width/2)*(et.x-mt.width/2)+(et.y-mt.height/2)*(et.y-mt.height/2)),nt&&$<D&&(tt=$<k?1:(D-$)/(D-k),Math.abs(Math.acos((it*St+st*Lt)/(Et*nt)))>Math.PI/2&&(wt*=-1),Math.min(nt,M)*A*tt>Math.abs(bt.angle)&&(Mt.stop(),bt.angle=wt*Math.min(nt,M)*A*tt,xt=wt*it,yt=wt*st,Mt=i.run(bt,{angle:wt*I},e.powOut(3),R,vt)),St=it,Lt=st,Et=nt),at=et.x,rt=et.y,kt=ot)}function qt(t){document.removeEventListener("mousemove",qt),et=jt(t),at=et.x,rt=et.y,document.addEventListener("mousemove",Yt)}}v.instances={},window.hasOwnProperty("BlobAnimation")?alert('Unable to load "blob.js". Make sure that the document does not contain a global variable with the name "BlobAnimation"'):window.BlobAnimation=v}()},SYor:function(t,e,i){"use strict";var s=i("I+eb"),n=i("WKiH").trim;s({target:"String",proto:!0,forced:i("yNLB")("trim")},{trim:function(){return n(this)}})},hXpO:function(t,e,i){var s=i("HYAF"),n=/"/g;t.exports=function(t,e,i,a){var r=String(s(t)),o="<"+e;return""!==i&&(o+=" "+i+'="'+String(a).replace(n,"&quot;")+'"'),o+">"+r+"</"+e+">"}},rwPt:function(t,e,i){var s=i("0Dky");t.exports=function(t){return s((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},uqXc:function(t,e,i){var s=i("I+eb"),n=i("5Yz+");s({target:"Array",proto:!0,forced:n!==[].lastIndexOf},{lastIndexOf:n})},yNLB:function(t,e,i){var s=i("0Dky"),n=i("WJkJ");t.exports=function(t){return s((function(){return!!n[t]()||"​…᠎"!="​…᠎"[t]()||n[t].name!==t}))}},zHFu:function(t,e,i){"use strict";var s=i("I+eb"),n=i("hXpO");s({target:"String",proto:!0,forced:i("rwPt")("bold")},{bold:function(){return n(this,"b","","")}})}},[["DB7T","runtime",0]]]);