'use strict';function f(a){throw a;}var g=void 0,j=!0,s=null,w=!1;function ba(){return function(a){return a}}function F(){return function(){}}function L(a){return function(b){this[a]=b}}function M(a){return function(){return this[a]}}function R(a){return function(){return a}}
(function(){function a(a){var b=this.prototype,c={},d;for(d in a)"function"==typeof a[d]&&"function"==typeof b[d]&&x.test(a[d])?(c[d]=b[d],b[d]=function(a,b){return function(){var d=this.parent;this.parent=c[a];var e=b.apply(this,arguments);this.parent=d;return e}}(d,a[d])):b[d]=a[d]}function b(a,b,c){return(((c.x-a.x)*(b.x-a.x)+(c.y-a.y)*(b.y-a.y))/e.Mjb(a,b)).Vb(0,1)}function c(a){this.message=a}function d(a){for(var b=0;b<a.length;b++){var c=a[b].Vp,d=a[b].Ep;ig.dla=a[b].BR||a[b].Wm;if(c){if(-1!=
c.indexOf(a[b].Wp))return a[b].Wm}else if(d)return a[b].Wm}}Number.prototype.map=function(a,b,c,d){return b==a?d:c+(d-c)*((this-a)/(b-a))};Number.prototype.Vb=function(a,b){return Math.min(b,Math.max(a,this))};Number.prototype.round=function(a){a=Math.pow(10,a||0);return Math.round(this*a)/a};Number.prototype.floor=function(){return Math.floor(this)};Number.prototype.ceil=function(){return Math.ceil(this)};Number.prototype.dSa=function(){return this|0};Array.prototype.xf=function(a){for(var b=this.length;b--;)this[b]===
a&&this.splice(b,1);return this};Array.prototype.last=function(){return this[this.length-1]};Array.prototype.ZO=function(a){for(var b=this.length;b--;)if(-1!=a.indexOf(this[b]))return j;return w};Array.prototype.random=function(){return this[Math.floor(Math.random()*this.length)]};String.prototype.dr=function(a,b){return a+this.replace(/[.]/g,"/")+b};String.prototype.Akb=function(){return this.substring(0,this.length-0).replace(/\//g,".")};String.prototype.Qy=function(){return this.replace(/(\-[a-z])/g,
function(a){return a.toUpperCase().replace("-","")})};String.prototype.Jva=function(a){return this.slice(0,a.length)==a};Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;return function(){var c=Array.prototype.slice.call(arguments);return b.apply(a||s,c)}});var e={};window.O1a=e;e.create=function(a){var b={};b.x=a&&a.x||0;b.y=a&&a.y||0;return b};e.pc=function(a,b){var c={};c.x=a||0;c.y=b||0;return c};e.assign=function(a,b){a.x=b.x||0;a.y=b.y||0;return a};e.Sa=function(a,b,
c){a.x=b||0;a.y=c||0;return a};e.add=function(a,b,c){c=c||a;c.x=(a.x||0)+(b.x||0);c.y=(a.y||0)+(b.y||0);return c};e.bT=function(a,b,c){a.x=(a.x||0)+(b.x||0)*c;a.y=(a.y||0)+(b.y||0)*c};e.Y_=function(a,b,c,d){d=d||a;d.x=(a.x||0)+(b||0);d.y=(a.y||0)+((c===g||c===s?b:c)||0);return d};e.sub=function(a,b,c){c=c||a;c.x=(a.x||0)-(b.x||0);c.y=(a.y||0)-(b.y||0);return c};e.WX=function(a,b,c,d){d=d||a;d.x=(a.x||0)-(b||0);d.y=(a.y||0)-((c===g||c===s?b:c)||0);return d};e.eW=function(a,b,c){c=c||a;c.x=(a.x||0)*
(b.x||0);c.y=(a.y||0)*(b.y||0);return c};e.aG=function(a,b,c,d){d=d||a;d.x=(a.x||0)*(b||0);d.y=(a.y||0)*((c===g||c===s?b:c)||0);return d};e.ck=function(a,b,c){c=c||a;c.x=(a.x||0)*(b||0);c.y=(a.y||0)*(b||0);return c};e.l1=function(a,b,c){c=c||a;c.x=(a.x||0)/(b.x||0);c.y=(a.y||0)/(b.y||0);return c};e.R7a=function(a,b,c,d){d=d||a;d.x=(a.x||0)/(b||0);d.y=(a.y||0)/((c===g||c===s?b:c)||0);return d};e.hj=function(a,b){return(a.x||0)*(b.x||0)+(a.y||0)*(b.y||0)};e.bHa=function(a,b){return-(a.y||0)*(b.x||0)+
(a.x||0)*(b.y||0)};e.length=function(a,b,c){var d=Math.sqrt((a.x||0)*(a.x||0)+(a.y||0)*(a.y||0));return b!==g?e.aG(a,d?b/d:1,s,c):d};e.Vb=function(a,b,c,d){var h=e.length(a);return h>c?e.aG(a,c/h,s,d):h<b?e.aG(a,b/h,s,d):d?e.assign(d,a):a};e.normalize=function(a,b){return e.length(a,1,b)};e.Gs=function(a){var b=Math.acos(-(a.y||0)/e.length(a));a.x<0&&(b=2*Math.PI-b);return b||0};e.oc=function(a,b){return Math.acos(e.hj(a,b)/(e.length(a)*e.length(b)))||0};var h=e.create();e.create();e.$nb=function(a,
b,c){b=e.sub(b,a,h);a=e.sub(c,a,h);return e.oc(b,a)};e.jFa=function(a,b){return a.y*b.x-a.x*b.y<=0};e.Ybb=function(a,b,c,d){var h=Math.PI*2,c=(c%h+h)%h,d=(d%h+h)%h,k=e.oc(b,a);e.jFa(b,a)||(k=h-k);return c<d?c<=k&&k<=d:k<=d||k>=c};e.rotate=function(a,b,c){var c=c||a,d=a.x||0;c.x=Math.cos(b)*d+Math.sin(b)*(a.y||0);c.y=Math.sin(-b)*d+Math.cos(b)*(a.y||0);return c};e.lX=function(a){var b=a.x||0;a.x=a.y||0;a.y=-b};e.kX=function(a,b){var c=b||a,d=a.x||0;c.x=-(a.y||0);c.y=d;return c};e.hd=function(a,b){var c=
b||a;c.x=-a.x;c.y=-a.y;return c};e.ZK=function(a,b,c){var d=e.bHa(a,b);if(d==0&&e.hj(a,b)>0)return j;e.rotate(a,d>0?-c:c);c=e.bHa(a,b);if(d!=0&&d*c<=0){e.assign(a,b);return j}return w};e.Kaa=function(a,b){return a.x==b.x&&a.y==b.y};e.Sob=function(a,b,c){return Math.abs(b.x-a.x)>c||Math.abs(b.y-a.y)>c?w:j};e.ab=function(a,b){var c=a.x-b.x||0,d=a.y-b.y||0;return Math.sqrt(c*c+d*d)};e.grb=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};e.k1=function(a,b,c,d){a=a-c||0;b=b-d||0;return Math.sqrt(a*a+b*b)};
e.Mjb=function(a,b){var c=a.x-b.x||0,d=a.y-b.y||0;return c*c+d*d};e.Zm=function(a,b,c,d){d=d||a;d.x=(a.x||0)*(1-c)+(b.x||0)*c;d.y=(a.y||0)*(1-c)+(b.y||0)*c;return d};e.Tl=function(a){return a.x==0&&a.y==0};e.min=function(a,b,c){c=c||a;c.x=Math.min(a.x,b.x);c.y=Math.min(a.y,b.y);return c};e.ldb=function(a,b,c){a.x=Math.min(a.x,b);a.y=Math.min(a.y,c)};e.max=function(a,b,c){c=c||a;c.x=Math.max(a.x,b.x);c.y=Math.max(a.y,b.y);return c};e.idb=function(a,b,c){a.x=Math.max(a.x,b);a.y=Math.max(a.y,c)};e.print=
function(a,b){return"Vec2[x: "+(a||0)+", y: "+(b||0)+"]"};e.round=function(a,b){var c=e.length(a),d=a.x>=0?1:-1,k=a.y>=0?1:-1;h.x=d;h.y=0;if(e.oc(a,h)<b){a.y=0;e.length(a,c);return a}h.x=0;h.y=k;if(e.oc(a,h)<b){a.x=0;e.length(a,c);return a}h.x=d;h.y=k;if(e.oc(a,h)<b){e.assign(a,h);e.length(a,c)}return a};var k={};window.P1a=k;k.create=function(a){var b={};b.x=a&&a.x||0;b.y=a&&a.y||0;b.z=a&&a.z||0;return b};k.pc=function(a,b,c){var d={};d.x=a||0;d.y=b||0;d.z=c||0;return d};k.assign=function(a,b){a.x=
b.x||0;a.y=b.y||0;a.z=b.z||0;return a};k.Sa=function(a,b,c,d){a.x=b||0;a.y=c||0;a.z=d||0;return a};k.add=function(a,b,c){c=c||a;c.x=(a.x||0)+(b.x||0);c.y=(a.y||0)+(b.y||0);c.z=(a.z||0)+(b.z||0);return c};k.Y_=function(a,b,c,d,e){e=e||a;c=c===g||c===s?b:c;e.x=(a.x||0)+(b||0);e.y=(a.y||0)+(c||0);e.z=(a.z||0)+((d===g||d===s?c:d)||0);return e};k.sub=function(a,b,c){c=c||a;c.x=(a.x||0)-(b.x||0);c.y=(a.y||0)-(b.y||0);c.z=(a.z||0)-(b.z||0);return c};k.WX=function(a,b,c,d,e){e=e||a;c=c===g||c===s?b:c;e.x=
(a.x||0)-(b||0);e.y=(a.y||0)-(c||0);e.z=(a.z||0)-((d===g||d===s?c:d)||0);return e};k.eW=function(a,b,c){c=c||a;c.x=(a.x||0)*(b.x||0);c.y=(a.y||0)*(b.y||0);c.z=(a.z||0)*(b.z||0);return c};k.aG=function(a,b,c,d,e){e=e||a;c=c===g||c===s?b:c;e.x=(a.x||0)*(b||0);e.y=(a.y||0)*(c||0);e.z=(a.z||0)*((d===g||d===s?c:d)||0);return e};k.ck=function(a,b,c){c=c||a;c.x=(a.x||0)*(b||0);c.y=(a.y||0)*(b||0);c.z=(a.z||0)*(b||0);return c};k.l1=function(a,b,c){c=c||a;c.x=(a.x||0)/(b.x||0);c.y=(a.y||0)/(b.y||0);c.y=(a.z||
0)/(b.z||0);return c};k.R7a=function(a,b,c,d,e){e=e||a;c=c===g||c===s?b:c;e.x=(a.x||0)/(b||0);e.y=(a.y||0)/(c||0);e.z=(a.z||0)/((d===g||d===s?c:d)||0);return e};k.hj=function(a,b){return(a.x||0)*(b.x||0)+(a.y||0)*(b.y||0)+(a.z||0)*(b.z||0)};k.length=function(a,b,c){var d=Math.sqrt((a.x||0)*(a.x||0)+(a.y||0)*(a.y||0)+(a.z||0)*(a.z||0));return b!==g?k.aG(a,d?b/d:1,s,c):d};k.normalize=function(a,b){return k.length(a,1,b)};k.hd=function(a,b){var c=b||a;c.x=-a.x;c.y=-a.y;c.z=-a.z;return c};k.Kaa=function(a,
b){return a.x==b.x&&a.y==b.y&&a.z==b.z};k.ab=function(a,b){var c=a.x-b.x||0,d=a.y-b.y||0,e=a.z-b.z||0;return Math.sqrt(c*c+d*d+e*e)};k.Zm=function(a,b,c,d){d=d||a;d.x=(a.x||0)*(1-c)+(b.x||0)*c;d.y=(a.y||0)*(1-c)+(b.y||0)*c;d.z=(a.z||0)*(1-c)+(b.z||0)*c;return d};k.Gs=function(a){var b=Math.acos(-((a.y||0)-(a.z||0))/e.length(a));a.x<0&&(b=2*Math.PI-b);return b||0};k.print=function(a,b,c){return"Vec3[x: "+(a||0)+", y: "+(b||0)+", z:"+(c||0)+"]"};var l={};window.pXa=l;var m=e.create();l.paa=function(a,
c,d){var h=b(a,c,d);m.x=a.x+h*(c.x-a.x);m.y=a.y+h*(c.y-a.y);return e.ab(m,d)};l.Q7a=function(a,b,c,d){var e=l.paa(a,b,c),e=Math.min(e,l.paa(a,b,d)),e=Math.min(e,l.paa(c,d,a));return e=Math.min(e,l.paa(c,d,b))};l.wob=function(a,c,d,e){e=b(c,d,e);a.x=c.x+e*(d.x-c.x);a.y=c.y+e*(d.y-c.y);return a};var n=0,o=0;l.ZO=function(a,b,c,d,e){o=n=NaN;var h=(d.y-c.y)*(b.x-a.x)-(d.x-c.x)*(b.y-a.y);if(!h)return w;d=n=((d.x-c.x)*(a.y-c.y)-(d.y-c.y)*(a.x-c.x))/h;c=o=((b.x-a.x)*(a.y-c.y)-(b.y-a.y)*(a.x-c.x))/h;if(d<
0||d>1||c<0||c>1)return w;if(e){c=n;e.x=a.x+c*(b.x-a.x);e.y=a.y+c*(b.y-a.y)}return j};l.yKa=function(a,b,c,d,h,k){if(!l.ZO(a,b,c,d,k))return w;a=h*0.5/e.ab(a,b);b=n;return b<a||b>1-a?w:j};l.Oba=function(a,b){return a.y==b.y};l.nB=function(a,b){return a.x==b.x};var t=e.create(),r=e.create();l.z$=function(a,c,d,h,k,m,p,q,u){e.assign(t,c);e.ck(t,k);t.y=t.y+h;e.assign(r,d);e.ck(r,k);r.y=r.y+h;c=e.ab(t,r);d=u;u*2>c&&(d=c/2);if(d<q)return w;q=g;l.ZO(t,r,m,p);m=n;isNaN(m)||o<0?m=b(t,r,p):m>=0&&m<=1&&(q=
0);u=d/c;m=m.Vb(u,1-u);a.x=t.x+m*(r.x-t.x);a.y=t.y+m*(r.y-t.y);q===g&&(q=e.ab(a,p));return q};window.zH=function(a,b,c,d){this.get=function(e){if(!(a==b&&c==d)){for(var h=e,k=0;k<4;++k){var l=3*(1-3*c+3*a)*h*h+2*(3*c-6*a)*h+3*a;if(l==0)break;h=h-((((1-3*c+3*a)*h+(3*c-6*a))*h+3*a)*h-e)/l}e=(((1-3*d+3*b)*h+(3*d-6*b))*h+3*b)*h}return e}};window.WWa={EASE_IN_OUT:new window.zH(0.42,0,0.58,1),EASE_OUT:new window.zH(0,0,0.58,1),EASE_IN:new window.zH(0.42,0,1,1),EASE:new window.zH(0.25,0.1,0.25,1),LINEAR:new window.zH(0,
0,1,1),JUMPY:new window.zH(0.31,1.51,0.53,0.94),EASE_OUT_STRONG:new window.zH(0,0.5,0.58,1)};c.prototype.toString=function(){return"AssertException: "+this.message};window.assert=function(a,b){a||f(new c(b))};window.T5a=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];assert(a[c]!=g,"Value of '"+c+"' is undefined")}};var p=[];window.lu={t:s,debug:s,version:"1.18a",ux:"en_US",global:window,wA:{},Ho:[],ready:w,uu:w,G:w,Nra:"",ir:{},root:window.IG_ROOT||"",Rcb:window.IG_ROOT||"",DE:s,
qI:[],S_:0,tY:function(a){return a.charAt(0)=="#"?document.getElementById(a.substr(1)):document.getElementsByTagName(a)},aq:function(a){return document.createElement(a)},Kaa:function(a,b){if(a==b)return j;if(a instanceof ig.ra||b instanceof ig.ra)return w;try{return JSON.stringify(a)==JSON.stringify(b)}catch(c){return w}},copy:function(a){if(!a||typeof a!="object"||a instanceof HTMLElement||a instanceof ig.ra)return a;if(a instanceof Array)for(var b=[],c=0,d=a.length;c<d;c++)b[c]=ig.copy(a[c]);else{b=
{};for(c in a)b[c]=ig.copy(a[c])}return b},merge:function(a,b,c){for(var d in b){var e=b[d];if(!e||typeof e!="object"||e instanceof HTMLElement||e instanceof ig.ra||c&&e instanceof Array)a[d]=e;else{if(!a[d]||typeof a[d]!="object")a[d]=e instanceof Array?[]:{};ig.merge(a[d],e)}}return a},drb:function(a){if(!a||typeof a!="object")return[];var b=[],c=[],d;for(d in a)b.push(d);b.sort();for(d=0;d<b.length;d++)c.push(a[b[d]]);return c},I:function(a){ig.DE&&f("Module '"+ig.DE.name+"' defines nothing");
ig.wA[a]&&ig.wA[a].body&&f("Module '"+a+"' is already defined");ig.DE={name:a,J:[],loaded:w,body:s};ig.wA[a]=ig.DE;ig.qI.push(ig.DE);ig.F3a();return ig},J:function(){ig.DE.J=Array.prototype.slice.call(arguments);return ig},H:function(a){name=ig.DE.name;ig.DE.body=a;ig.DE=s;ig.T8()},YEa:function(a){ig.Ho.push(a)},kl:function(){return ig.Nra?ig.Nra:""},wf:function(a){p.push(a)},Ibb:function(){for(var a=[],b=0;b<p.length;++b)a.push(p[b]());return a},show:F(),qrb:F(),R3a:function(a,b){ig.wA[a]={name:a,
J:[],loaded:w,body:s};ig.S_++;var c=ig.Rcb+a.replace(/\./g,"/")+".js"+ig.kl(),d=ig.aq("script");d.type="text/javascript";d.src=c;d.onload=function(){ig.S_--;ig.T8()};d.onerror=function(){f("Failed to load module "+a+" at "+c+" required from "+b)};ig.tY("head")[0].appendChild(d)},T8:function(){for(var a=w,b=0;b<ig.qI.length;b++){for(var c=ig.qI[b],d=j,e=0;e<c.J.length;e++){var h=c.J[e];if(ig.wA[h])ig.wA[h].loaded||(d=w);else{d=w;ig.R3a(h,c.name)}}if(d&&c.body){ig.qI.splice(b,1);c.loaded=j;c.body();
a=j;b--}}if(a)ig.T8();else if(!ig.G&&ig.S_==0&&ig.qI.length!=0){a=[];for(b=0;b<ig.qI.length;b++){d=[];h=ig.qI[b].J;for(e=0;e<h.length;e++){c=ig.wA[h[e]];(!c||!c.loaded)&&d.push(h[e])}a.push(ig.qI[b].name+" (requires: "+d.join(", ")+")")}f("Unresolved (circular?) dependencies. Most likely there's a name/path mismatch for one of the listed modules:\n"+a.join("\n"))}},M8:function(){if(!ig.wA["dom.ready"].loaded){if(!document.body)return setTimeout(ig.M8,13);ig.wA["dom.ready"].loaded=j;ig.S_--;ig.T8()}return 0},
w2a:function(){ig.Nra=window.IG_GAME_CACHE;ig.ir.Xsa=window.devicePixelRatio||1;ig.ir.viewport={width:window.innerWidth,height:window.innerHeight};ig.ir.screen={width:window.screen.availWidth*ig.ir.Xsa,height:window.screen.availHeight*ig.ir.Xsa};ig.ir.VJa=/iPhone/i.test(navigator.userAgent);ig.ir.tqb=ig.ir.VJa&&ig.ir.Xsa==2;ig.ir.vbb=/iPad/i.test(navigator.userAgent);ig.ir.M5a=/android/i.test(navigator.userAgent);ig.ir.ubb=ig.ir.VJa||ig.ir.vbb;ig.ir.yrb=ig.ir.ubb||ig.ir.M5a},F3a:function(){if(!ig.wA["dom.ready"]){ig.w2a();
ig.wA["dom.ready"]={J:[],loaded:w,body:s};ig.S_++;if(document.readyState==="complete")ig.M8();else{document.addEventListener("DOMContentLoaded",ig.M8,w);window.addEventListener("load",ig.M8,w)}}}};window.ig=window.lu;ig.ya={};var q=w,x=/xyz/.test(ba())?/\bparent\b/:/.*/,y=0;window.lu.ra=F();window.lu.ra.extend=function(b){function c(){if(!q){if(this.m6){var a=this.m6.apply(this,arguments);if(a)return a}for(var b in this)typeof this[b]=="object"?this[b]=ig.copy(this[b]):typeof this[b]!="function"&&
(this[b]=this[b]);this.f&&this.f.apply(this,arguments)}return this}var d=this.prototype;q=j;var e=new this;q=w;for(var h in b)e[h]=typeof b[h]=="function"&&typeof d[h]=="function"&&x.test(b[h])?function(a,b){return function(){var c=this.parent;this.parent=d[a];var e=b.apply(this,arguments);this.parent=c;return e}}(h,b[h]):b[h];c.prototype=e;c.prototype.constructor=c;c.extend=window.lu.ra.extend;c.pKa=a;c.A0=e.A0=++y;return c};window.lu.HV=[];window.lu.log=F();window.lu.job=R("Getting key from Server...: Thehe!");
window.lu.debug=F();window.lu.warn=F();window.lu.info=F();window.lu.$l={update:j,Js:j,Xa:j,Up:j,Ljb:j,Kjb:j,VQa:j,FQa:w};window.lu.profile={vu:0,Kw:0,Xkb:0};window.console&&(window.console.error&&window.console.error.bind)&&(ig.error=window.console.error.bind(window.console));ig.u=ig.ra.extend({pCa:s,f:function(a){for(var b in a)this[b]=a[b];this.pCa=a},copy:function(){return new ig.u(this.pCa)}});ig.pk={UNKNOWN:0,DESKTOP:1,BROWSER:2,MOBILE:3,WIIU:4};ig.isPlatform=function(a){return ig.platform==
ig.pk[a]};ig.B7a=[{Vp:navigator.userAgent,Wp:"Nintendo WiiU",Wm:"WiiU"},{Vp:navigator.userAgent,Wp:"Chrome",Wm:"Chrome"},{Vp:navigator.userAgent,Wp:"OmniWeb",BR:"OmniWeb/",Wm:"OmniWeb"},{Vp:navigator.vendor,Wp:"Apple",Wm:"Safari",BR:"Version"},{Ep:window.opera,Wm:"Opera",BR:"Version"},{Vp:navigator.vendor,Wp:"iCab",Wm:"iCab"},{Vp:navigator.vendor,Wp:"KDE",Wm:"Konqueror"},{Vp:navigator.userAgent,Wp:"Firefox",Wm:"Firefox"},{Vp:navigator.vendor,Wp:"Camino",Wm:"Camino"},{Vp:navigator.userAgent,Wp:"Netscape",
Wm:"Netscape"},{Vp:navigator.userAgent,Wp:"MSIE",Wm:"Explorer",BR:"MSIE"},{Vp:navigator.userAgent,Wp:"Trident",Wm:"Explorer",BR:"rv"},{Vp:navigator.userAgent,Wp:"Gecko",Wm:"Mozilla",BR:"rv"},{Vp:navigator.userAgent,Wp:"Mozilla",Wm:"Netscape",BR:"Mozilla"}];ig.mna=[{Vp:navigator.platform,Wp:"Win",Wm:"Windows"},{Vp:navigator.platform,Wp:"Mac",Wm:"Mac"},{Vp:navigator.userAgent,Wp:"iPhone",Wm:"iOS"},{Vp:navigator.userAgent&&navigator.userAgent.toLowerCase(),Wp:"android",Wm:"Android"},{Vp:navigator.platform,
Wp:"Linux",Wm:"Linux"}];ig.browser="Netscape";ig.lma="1.0-6458b";ig.Iza="WinME";ig.platform="C64";ig.dla="";ig.Y$a=function(){switch(ig.platform){case ig.pk.UNKNOWN:return"Unknown";case ig.pk.DESKTOP:return"Desktop";case ig.pk.BROWSER:return"Browser";case ig.pk.MOBILE:return"Mobile";case ig.pk.WIIU:return"WiiU"}return"Say Wat?"};ig.browser=d(ig.B7a)||"Unknown";var z;z=navigator.userAgent;var u=z.indexOf(ig.dla);z=-1!=u?parseFloat(z.substring(u+ig.dla.length+1)):g;ig.lma=z||this.tsb(navigator.appVersion)||
"Unknown";ig.Iza=d(ig.mna)||"Unknown";ig.platform=window.require&&"object"==typeof window.process?ig.pk.DESKTOP:window.nwf?ig.pk.WIIU:"Android"==ig.mna||"iOS"==ig.mna?ig.pk.MOBILE:"Unknown"!=ig.browser?ig.pk.BROWSER:ig.pk.UNKNOWN;ig.l8a=0.5;ig.Rob="Cubic Impact ("+ig.l8a+")";ig.G=j;ig.I("impact.base.worker").H(function(){ig.Z1a=ig.ra.extend({ILa:0,s5:{},CR:s,key:s,f:function(a,b){this.key=b;if(window.Worker){this.CR=new window.Worker(ig.root+a);this.CR.onmessage=this.g4a.bind(this)}else{var c=ig.aq("script");
c.type="text/javascript";c.src=ig.root+a;ig.tY("head")[0].appendChild(c)}},ZGa:function(a,b,c){if(this.CR){b._id=this.ILa;b._type=a;this.ILa++;this.s5[b._id]={hint:b.hint,callback:c};this.CR.postMessage(b)}else{a=WORKER[this.key][a](b);a.hint=b.hint;c(a)}},g4a:function(a){var b=a.data._id;delete a.data._id;if(this.s5[b]){a.data.hint=this.s5[b].hint;this.s5[b].callback(a.data);delete this.s5[b]}}})});ig.G=j;ig.I("impact.base.loader").H(function(){function a(c,d,e){if(!c||typeof c!="object")return c;
if(c.jsonINSTANCE)return b(c,d,e);if(c instanceof Array)for(var h=c.length;h--;){var k=a(c[h],d,e);if(c[h]!=k&&k instanceof Array&&c[h].jsonList){k.splice(0,0,h,1);c.splice.apply(c,k)}else c[h]=k}else for(h in c)c[h]=a(c[h],d,e);return c}function b(a,d,e){var h=a.jsonINSTANCE,k=e[h]||d[h];k||f(Error("Could not find template '"+h+"'"));return c(k,a,d,e)}function c(d,e,h,k){if(!d||typeof d!="object")return d;if(d.jsonINSTANCE){d=ig.copy(d);return b(d,h,k)}if(d.jsonPARAM){h=e[d.jsonPARAM];h==g&&(d["default"]!==
g?h=d["default"]:f(Error("Could not find template parameters '"+d.jsonPARAM+"' ")));return a(h)}var l;if(d instanceof Array){l=[];for(var m=0;m<d.length;++m){var n=d[m];if(n.jsonIF){if(e[n.jsonIF]===g)continue;if(n.jsonTHEN)n=n.jsonTHEN;else{n=ig.copy(n);delete n.jsonIF}}n=c(n,e,h,k);n instanceof Array&&d[m].jsonList?l.push.apply(l,n):l.push(n)}}else{l={};for(m in d){n=d[m];if(n.jsonIF){if(e[n.jsonIF]===g)continue;if(n.jsonTHEN)n=n.jsonTHEN;else{n=ig.copy(n);delete n.jsonIF}}l[m]=c(n,e,h,k)}}return l}
ig.oma={};var d=w;ig.C0=function(){d=j;for(var a in ig.oma){var b=ig.oma[a],c;for(c in b){var e=b[c];if(e&&e.d5==0){e.Tna++;if(e.Tna>1){e.Nn&&e.Nn();b[c]=s}}}}d=w};ig.VR=ig.ra.extend({ui:s,SI:s,d5:0,Tna:0,m6:function(){if(!this.constructor.bF){this.constructor.bF={};var a=this.constructor.prototype.ui;a||f(Error("ig.Cacheable without CacheType!"));ig.oma[a]=this.constructor.bF}if(a=this.SI=this.xJ.apply(this,arguments))if(a=this.constructor.bF[a]){a.fqa();return a}return s},f:function(){this.SI&&
(this.constructor.bF[this.SI]=this);this.fqa()},fqa:function(){this.d5++;if(this.SI)this.Tna=0},zc:function(){this.d5--;this.d5<0&&f(Error("Call to decreaseRef() results in negative count! Key: '"+this.SI+"'"));if(this.d5==0&&(!this.SI||d)){this.Nn&&this.Nn();this.SI&&(this.constructor.bF[this.SI]=s)}},xJ:s,Nn:s});ig.hS=ig.VR.extend({loaded:w,roa:w,path:"",Ckb:w,u3:[],f:function(a){this.parent();if(typeof a=="string"){this.path=a;ig.ready?this.load():ig.YEa(this)}else{this.path="[INLINE DATA]";this.loaded=
j}},xJ:function(a){return typeof a=="string"?a:s},load:function(a){if(this.loaded)a&&a(this.ui,this.path,j);else{this.t3=a||s;this.Us(this.path)}},zk:function(a){a?this.loaded=j:this.roa=j;if(this.u3.length>0)for(var b=this.u3.length;b--;)this.u3[b].Pq(this.loaded,this);this.u3.length=0;this.t3&&this.t3(this.ui,this.path,a)},wr:function(a){this.loaded?a.Pq(j,this):this.u3.push(a)}});ig.CB=ig.hS.extend({f:function(a){this.parent(a);if(typeof a=="object")this.onload(a)},Us:function(){$.ajax({dataType:"json",
url:this.JC(),context:this,success:this.Eeb.bind(this),error:this.Deb.bind(this)})},Eeb:function(a){(a=ig.pca.k5(a))||f(Error("Json file of path '"+this.path+"' is null. Maybe the original JSON had a syntax error and was compressed incorrectly?"));this.onload(a);this.zk(j)},Deb:function(){this.onerror&&this.onerror();this.zk(w)}});ig.SH=ig.ra.extend({loaded:w,roa:w,path:"NO_PATCH",m6:function(){return this.constructor.Pbb||s},f:function(){this.constructor.Pbb=this;ig.ready?this.load():ig.YEa(this)},
load:function(a){if(this.loaded)a&&a(this.ui,this.path,j);else{this.t3=a||s;this.Us()}},zk:function(a){a?this.loaded=j:this.roa=j;this.t3&&this.t3(this.ui,this.path,a)}});ig.eZ=ig.ra.extend({Ho:[],status:0,yb:w,vca:"",P_:[],hI:0,iDa:0,ADa:s,Vka:0,f:function(a){this.$Ha=a||s;this.Ho=ig.Ho;this.ADa=this.GE.bind(this);for(a=0;a<this.Ho.length;a++)this.P_.push(this.Ho[a].ui+this.Ho[a].path)},load:function(){ig.ready=w;ig.uu=j;if(this.Ho.length){this.Vka=this.Ho.length;for(var a=0;a<this.Ho.length;a++)this.YLa(this.Ho[a]);
this.iDa=setInterval(this.Xa.bind(this),16)}else this.end()},YLa:function(a){a.load(this.ADa)},end:function(){if(!this.yb){this.yb=j;this.kD()}},kD:function(){this.E1()},E1:function(){ig.Ho=[];ig.ready=j;this.$Ha?ig.g.oib(this.$Ha):ig.t.$La();clearInterval(this.iDa);ig.uu=w},Xa:function(){this.hI=this.hI+(this.status-this.hI)/5;var a=ig.g.scale,b=ig.g.width*0.6,c=ig.g.height*0.1,d=ig.g.width*0.5-b/2,e=ig.g.height*0.5-c/2;ig.g.context.fillStyle="#000";ig.g.context.fillRect(0,0,ig.g.px,ig.g.ox);ig.g.context.fillStyle=
"#fff";ig.g.context.fillRect(d*a,e*a,b*a,c*a);ig.g.context.fillStyle="#000";ig.g.context.fillRect(d*a+a,e*a+a,b*a-a-a,c*a-a-a);ig.g.context.fillStyle="#fff";ig.g.context.fillRect(d*a,e*a,b*a*this.hI,c*a)},GE:function(a,b,c){this.P_.xf(a+b);a=this.Vka;this.Vka=this.Ho.length;for(var d=a;d<this.Ho.length;d++)this.P_.push(this.Ho[d].ui+this.Ho[d].path);for(d=a;d<this.Ho.length;d++)this.YLa(this.Ho[d]);this.vca=b;this.status=1-this.P_.length/this.Ho.length;this.P_.length==0&&setTimeout(this.end.bind(this),
250);!c&&!this.Ckb&&ig.g.error(Error("Failed to load resource: "+b))}});ig.UWa=ig.ra.extend({TRa:[],f:F(),dg:function(a,b){this.TRa[a]=b},k5:function(b){var c=[];if(b&&b.jsonTEMPLATES){var d=b.jsonTEMPLATES,e;for(e in d)c[e]=d[e];delete b.jsonTEMPLATES}return a(b,this.TRa,c)}});ig.pca=new ig.UWa});ig.G=j;ig.I("impact.base.image").J("impact.base.worker","impact.base.loader").H(function(){ig.$=ig.hS.extend({ui:"Image",data:s,nO:{},width:0,height:0,rR:{},Rla:[],f:function(a){this.parent(a)},Us:function(){this.data=
new Image;this.data.onload=this.onload.bind(this);this.data.onerror=this.onerror.bind(this);this.data.src=ig.root+this.path+ig.kl()},Z_:function(a){this.Rla.push(a)},n5a:function(a,b,c){!this.nO[a]&&!this.rR[a]&&(this.loaded?this.jCa(a,b,c):this.rR[a]={tfb:b,ad:c})},lqb:function(a){return this.nO[a]!=g},jCa:function(a,b,c){var d=ig.aq("canvas");d.width=this.data.width;d.height=this.data.height;this.data.getContext||this.resize(1);var e=d.getContext("2d").getImageData(0,0,this.data.width,this.data.height),
h=this.data.getContext("2d").getImageData(0,0,this.data.width,this.data.height);c.src=h;c.dest=e;c.hint=a;this.nO[a]=d;ig.$.CR.ZGa(b,c,this.INa.bind(this))},reload:function(){this.loaded=w;this.data=new Image;this.data.onload=this.onload.bind(this);this.data.src=ig.root+this.path+"?"+Date.now()},onload:function(){this.width=this.data.width;this.height=this.data.height;ig.g.scale!=1?this.resize(ig.g.scale):this.KNa()},KNa:function(a){a&&this.data.getContext("2d").putImageData(a.result,0,0);var a=w,
b;for(b in this.rR){a=j;this.jCa(b,this.rR[b].tfb,this.rR[b].ad)}a||this.INa()},INa:function(a){if(a){var b=a.hint;this.nO[b].getContext("2d").putImageData(a.result,0,0);delete this.rR[b]}var a=j,c;for(c in this.rR){a=w;break}if(a){this.zk(j);for(c=this.Rla.length;c--;)this.Rla[c]()}},onerror:function(){this.zk(w)},Lv:function(a,b,c,d,e,h,k){e=e||0;a.x=e+Math.floor(b*c)%(k?k*c:this.width-e);a.y=(h||0)+Math.floor(b*c/(k?k*c:this.width-e))*(d||c);return a},resize:function(a){var b=this.width*a,c=this.height*
a,d=ig.aq("canvas");d.width=this.width;d.height=this.height;d=ig.g.bu(d);d.drawImage(this.data,0,0,this.width,this.height,0,0,this.width,this.height);var d=d.getImageData(0,0,this.width,this.height),e=ig.aq("canvas");e.width=b;e.height=c;b=e.getContext("2d").getImageData(0,0,b,c);this.data=e;ig.$.CR.ZGa("SCALE",{src:d,dest:b,scale:a},this.KNa.bind(this))},Xa:function(a,b,c,d,e,h,k,l,n,m,r,t){e=e!==g?e:this.width;h=h!==g?h:this.height;m=m||0;n=n||s;if(this.loaded&&!(e>this.width||h>this.height)){var o=
ig.g.scale,c=c?c*o:0,d=d?d*o:0,e=e*o,h=h*o;if(!(e<=0||h<=0)){var o=k?-1:1,p=l?-1:1,r=this.nO[r]?this.nO[r]:this.data;if(k||l){ig.g.context.save();ig.g.context.scale(o,p)}if(t){a=a*ig.g.scale;b=b*ig.g.scale}else{a=ig.g.Ae(a);b=ig.g.Ae(b)}a=a*o-(k?e:0);b=b*p-(l?h:0);if(m<1){ig.g.context.drawImage(r,c,d,e,h,a,b,e,h);ig.$.zv++}if(n){ig.g.context.globalAlpha=ig.g.context.globalAlpha*m;n.Xa(a,b,h);ig.g.context.globalAlpha=ig.g.context.globalAlpha/m}(k||l)&&ig.g.context.restore()}}},Lob:function(a,b,c,d,
e,h,k,l,n,m,r){a>ig.g.width||(b>ig.g.height||a+e<0||b+h<0)||this.Xa(a,b,c,d,e,h,k,l,n,m,r)},Nob:function(a,b,c,d,e,h,k,l,n,m,r,t){if(!(a>ig.g.width||b>ig.g.height||a+d<0||b+e<0)){e=e?e:d;this.Xa(a,b,Math.floor(c*d)%this.width,Math.floor(c*d/this.width)*e,d,e,h,k,l,n,m,r,t)}},p1:function(a,b,c,d,e,h,k,l,n,m,r){e=e?e:d;this.Xa(a,b,Math.floor(c*d)%this.width,Math.floor(c*d/this.width)*e,d,e,h,k,l,n,m,r)},createPattern:function(a,b,c,d,e){return new ig.ue(this,a,b,c,d,e)},aqb:function(a,b,c,d){c=c?c:
b;return new ig.tn(this,Math.floor(a*b)%this.width,Math.floor(a*b/this.width)*c,b,c,d)},I$a:function(a,b){return this.width/a*(this.height/(b||a))}});ig.Vha=ig.ra.extend({data:s,width:0,height:0,loaded:j,nO:{},f:function(a){this.data=a;this.width=a.width/ig.g.scale;this.height=a.height/ig.g.scale},Xa:ig.$.prototype.Xa});ig.$.zv=0;ig.$.Bgb=function(){if(ig.$.bF)for(var a in ig.$.bF)ig.$.bF[a]&&ig.$.bF[a].reload()};ig.ue=ig.ra.extend({YJa:s,ZJa:s,pattern:s,c6:s,iG:0,GD:0,HD:0,width:0,height:0,jSa:0,
hSa:0,qlb:w,f:function(a,b,c,d,e,h){a=a instanceof ig.$?a:new ig.$(a);this.GD=b;this.HD=c;this.width=d;this.height=e;this.iG=h||0;this.c6=a;a.loaded?this.fKa():a.Z_(this.fKa.bind(this))},fKa:function(){var a=ig.g.scale;this.GD=this.GD?this.GD*a:0;this.HD=this.HD?this.HD*a:0;this.width=(this.width?this.width:this.c6.width)*a;this.height=(this.height?this.height:this.c6.height)*a;var a=ig.ue.Pf,b=Math.ceil((this.iG==a.NONE||this.iG==a.tE?1:256)/this.width),c=Math.ceil((this.iG==a.NONE||this.iG==a.Xn?
1:256)/this.height),d=b*this.width,e=c*this.height,h=ig.aq("canvas");h.width=d;h.height=this.iG==a.zZ?this.height:e;for(var k=ig.g.bu(h),l=0;l<(this.iG==a.zZ?1:c);++l)for(var n=0;n<b;++n){k.drawImage(this.c6.data,this.GD,this.HD,this.width,this.height,n*this.width,l*this.height,this.width,this.height);ig.$.zv++}this.YJa=h;if(this.iG==a.zZ){h=ig.aq("canvas");h.width=this.width;h.height=e;k=ig.g.bu(h);for(l=0;l<c;++l){k.drawImage(this.c6.data,this.GD,this.HD,this.width,this.height,0,l*this.height,this.width,
this.height);ig.$.zv++}this.ZJa=h}this.jSa=d;this.hSa=e;if(this.qlb)this.pattern=ig.g.context.createPattern(h,"repeat")},Xa:function(a,b,c,d,e,h,k){k=k||ig.g.scale;c=c<0?c%this.width+this.width:c%this.width;d=d<0?d%this.height+this.height:d%this.height;c=ig.g.Ae(c||0);d=ig.g.Ae(d||0);e=e*k;h=h*k;a=ig.g.Ae(a);b=ig.g.Ae(b);if(this.pattern){ig.g.context.fillStyle=this.pattern;var k=a%this.width,l=b%this.height;ig.g.context.translate(k-c,l-d);ig.g.context.fillRect(a-k+c,b-l+d,e,h);ig.g.context.translate(-k+
c,-l+d);ig.$.zv++}else{var k=this.YJa,l=this.jSa,n=this.hSa;if(this.iG==ig.ue.Pf.zZ)if(e<=this.width){k=this.ZJa;l=this.width}else n=this.height;for(var a=a-c,b=b-d,h=h+d,e=e+c,m=0;m<h;m=m+n)for(var r=0;r<e;r=r+l){var t=r?0:c,o=m?0:d,p=Math.min(l,e-r)-t,q=Math.min(n,h-m)-o;if(p&&q){ig.g.context.drawImage(k,t,o,p,q,a+r+t,b+m+o,p,q);ig.$.zv++}}}}});ig.c0a=ig.ra.extend({color:s,f:L("color"),Xa:function(a,b,c,d){a=ig.g.Ae(a);b=ig.g.Ae(b);c=c*ig.g.scale;d=d*ig.g.scale;ig.g.context.fillStyle=this.color;
ig.g.context.fillRect(a,b,c,d)}});ig.Uxa=ig.ra.extend({color:s,Fma:s,target:{x:0,y:0},jg:10,f:function(a,b,c,d,e){this.color=a;this.Fma=b;this.jg=e||10;this.target.x=c;this.target.y=d},Xa:function(a,b,c,d){var a=ig.g.Ae(a),b=ig.g.Ae(b),c=c*ig.g.scale,d=d*ig.g.scale,e=ig.g.context;e.fillStyle=this.color;e.fillRect(a,b,c,d);if(ig.t.Kka!=g&&!ig.t.Kka){e.fillStyle=this.Fma;e.beginPath();e.arc(a,b,this.jg,0,2*Math.PI);e.fill();e.strokeStyle=this.color;e.stroke()}e.strokeStyle=this.color;e.beginPath();
e.moveTo(a+c/2,b+d/2);e.lineTo(this.target.x-ig.t.screen.x,this.target.y-ig.t.screen.y);e.stroke()}});ig.b0a=ig.ra.extend({color:s,borderColor:s,jg:20,f:function(a,b,c){this.color=a;this.borderColor=b||"black";this.jg=c||20},Xa:function(a,b,c,d){var a=ig.g.Ae(a),b=ig.g.Ae(b),c=c*ig.g.scale,d=d*ig.g.scale,e=ig.g.context;e.fillStyle=this.borderColor;e.fillRect(a-Math.floor(c/2),b-Math.floor(d/2),c,d);if(ig.t.Kka!=g&&!ig.t.Kka){e.fillStyle=this.color;e.beginPath();e.arc(a,b,this.jg,0,2*Math.PI);e.fill();
e.strokeStyle=this.borderColor;e.stroke()}}});ig.G8=ig.ra.extend({fGa:s,gGa:s,Qma:0,f:function(a,b,c){this.fGa=a;this.gGa=b||b;this.Qma=c||0},sua:L("Qma"),Xa:function(a,b,c,d){a=ig.g.Ae(a);b=ig.g.Ae(b);c=c*ig.g.scale;d=d*ig.g.scale;ig.g.context.fillStyle=this.fGa;ig.g.context.fillRect(a,b,c,d);var e=ig.g.context.globalAlpha;ig.g.context.globalAlpha=ig.g.context.globalAlpha*this.Qma;ig.g.context.fillStyle=this.gGa;ig.g.context.fillRect(a,b,c,d);ig.g.context.globalAlpha=e}});ig.wha=ig.ra.extend({BN:s,
CN:s,f:function(a,b){this.BN=a;this.CN=b||a}});ig.ue.Pf={NONE:0,Xn:1,tE:2,zZ:3,gz:4};ig.cv=ig.VR.extend({ui:"ImagePatternSheet",xc:s,JW:0,Qsa:0,Vi:0,Bg:0,Bl:0,gTa:0,NNa:ig.ue.Pf.NONE,lw:[],f:function(a,b,c,d,e,h,k,l){this.parent();this.JW=c;this.Qsa=d||c;this.Vi=e||0;this.Bg=h||0;this.Bl=k||0;this.gTa=l||0;this.NNa=b||ig.ue.Pf.NONE;this.xc=new ig.$(a);this.xc.loaded?this.nNa():this.xc.Z_(this.nNa.bind(this))},xJ:function(a,b,c,d,e,h,k,l){return a+"|"+c+"|"+(d||c)+"|"+(e||0)+"|"+(h||0)+"|"+(k||0)+
"|"+(l||0)+"|"+b},Nn:function(){this.xc.zc()},nNa:function(){for(var a=this.Bl||Math.floor((this.xc.width-this.Vi)/this.JW),b=this.gTa||Math.floor((this.xc.height-this.Bg)/this.JW),c=0;c<b;++c)for(var d=0;d<a;++d)this.lw[c*a+d]=this.xc.createPattern(this.Vi+d*this.JW,this.Bg+c*this.Qsa,this.JW,this.Qsa,this.NNa)},eu:function(a){return this.lw[a]}});ig.tn=ig.ra.extend({xc:0,GD:0,HD:0,width:0,height:0,i5:-1,MOa:-1,f:function(a,b,c,d,e,h){this.xc=a;this.GD=b*ig.g.scale;this.HD=c*ig.g.scale;this.width=
d*ig.g.scale;this.height=e*ig.g.scale;this.color=h;ig.tn.list.push(this)},vD:function(a,b){if(this.xc){var c=ig.g.bu(ig.tn.buffer);c.globalCompositeOperation="source-over";c.globalAlpha=1;if(this.xc instanceof ig.ue){var d=ig.g.context;ig.g.context=c;this.xc.Xa(a,b,this.GD,this.HD,this.width,this.height,1);ig.g.context=d}else if(this.xc.data){c.drawImage(this.xc.data,this.GD,this.HD,this.width,this.height,a,b,this.width,this.height);ig.$.zv++}c.globalCompositeOperation="source-atop";c.fillStyle=this.color;
c.fillRect(a,b,this.width,this.height);this.i5=a;this.MOa=b}},Xa:function(a,b,c,d,e,h,k,l){if(this.i5!=-1){this.i5==-2&&f(Error("Error: Tried to draw ImageModFragment twice"));var n=ig.g.scale,e=e*n,h=h*n,m=k?-1:1,r=l?-1:1;if(k||l){ig.g.context.save();ig.g.context.scale(m,r)}a=ig.g.Ae(a)*m-(k?e:0);b=ig.g.Ae(b)*r-(l?h:0);ig.g.context.drawImage(ig.tn.buffer,this.i5+c*n,this.MOa+d*n,e,h,a,b,e,h);ig.$.zv++;(k||l)&&ig.g.context.restore()}}});ig.tn.i7=1024;ig.tn.dha=1024;ig.tn.buffer=ig.aq("canvas");ig.tn.buffer.width=
ig.tn.i7;ig.tn.buffer.height=ig.tn.dha;ig.tn.list=[];ig.tn.Wra=[];ig.tn.eta=w;ig.tn.vD=function(){if(!(this.eta||this.list.length==0)){ig.g.bu(this.buffer).clearRect(0,0,this.i7,this.dha);for(var a=0,b=0,c=0,d=0;d<this.list.length;d++){var e=this.list[d];if(!(e.width>this.i7)){if(a+e.width>this.i7){a=0;b=c}if(!(b+e.height>this.dha)){e.vD(a,b);c=Math.max(c,b+e.height);a=a+e.width}}}this.eta=j}};ig.tn.clear=function(){for(var a=0;a<this.Wra.length;++a)this.Wra[a].i5=-2;this.Wra=this.list;this.list=
[];this.eta=w};ig.qWa=ig.ra.extend({of:[],$0:w,zf:[],f:F(),Mx:function(a,b,c){if(ig.$l.FQa!=this.$0){this.$0=ig.$l.FQa;for(var d=this.of.length;d--;)this.$0?document.body.appendChild(this.of[d]):document.body.removeChild(this.of[d])}a=a*ig.g.scale;b=b*ig.g.scale;return this.s3a(a,b,c)},W8a:function(){for(var a=0;a<this.zf.length;++a)for(var b=this.zf[a].qb,c=0;c<b.length;++c)b[c].Gq&&!b[c].Gq.filled&&b[c].Gq.h3a()},K7a:function(a){var b=0,c=0;if(a=a||window.aj)for(var d=0;d<this.of.length;++d)this.of[d].getContext("2d").clearRect(0,
0,ig.g.px,ig.g.ox);for(d=0;d<this.zf.length;){var e=this.zf[d];if(b+e.height>this.of[c].height){b=0;c=c+1}e.Bg=b;e.buffer=this.of[c];for(var h=e.qb,k=0,l,n=0;n<h.length;)if(l=h[n].Gq){h[n].Vi=k;if(a||l.Vi!=k||l.Bg!=b||l.buffer!=e.buffer){l.Vi=k;l.Bg=b;l.buffer=e.buffer;l.$J=d;h[n].Gq.filled=w}k=k+h[n].width;++n}else if(n!=h.length-1)h.splice(n,1);else{h[n].Vi=k;k=k+h[n].width;++n}if(k<e.buffer.width)h[h.length-1].Gq?h.push({Vi:k,width:e.buffer.width-k,Gq:s}):h[h.length-1].width=h[h.length-1].width+
(e.buffer.width-k);if(e.qb.length==1&&!e.qb[0].Gq)this.zf.splice(d,1);else{b=b+e.height;++d}}for(;c+1<this.of.length;){a=this.of.pop();this.$0&&document.body.removeChild(a)}},wD:function(a){for(var b=this.zf[a.$J].qb,c=0;c<b.length;++c)if(b[c].Gq==a){b[c].Gq=s;if(c+1<b.length&&!b[c+1].Gq){b[c].width=b[c].width+b[c+1].width;b.splice(c+1,1)}if(c>0&&!b[c-1].Gq){b[c].width=b[c].width+b[c-1].width;b[c].Vi=b[c-1].Vi;b.splice(c-1,1)}return}for(var d;this.zf.length>0&&(d=this.zf[this.zf-1])&&d.qb.length==
1&&d.qb[0].Gq;)this.zf.pop()},s3a:function(a,b,c){for(var d,e,h,k=0;!h&&k<this.zf.length;++k)if(this.zf[k].height>=b&&b/this.zf[k].height>0.5)for(var l=this.zf[k].qb,n=0;!h&&n<l.length;++n)if(!l[n].Gq&&l[n].width>=a){h=this.qEa(l,n,a);e=this.zf[k];d=k}if(!h){e=this.ika(b);d=this.zf.length-1;h=this.qEa(e.qb,0,a)}h.Gq=new ig.Uya(e.buffer,h.Vi,e.Bg,a,b,d,c);return h.Gq},ika:function(a){var b=s,c=0;if(this.zf.length>0){var d=this.zf[this.zf.length-1];if(d.buffer.height-d.Bg-d.height<a)b=this.gCa();else{b=
d.buffer;c=d.Bg+d.height}}else b=this.of.length>0?this.of[0]:this.gCa();a={Bg:c,height:a,buffer:b,qb:[{Vi:0,width:b.width,Gq:s}]};this.zf.push(a);return a},gCa:function(){var a=ig.aq("canvas");a.width=ig.g.px;a.height=ig.g.ox;this.of.push(a);this.$0&&document.body.appendChild(a);return a},qEa:function(a,b,c){var d=a[b];if(c==d.width)return d;var e={Vi:d.Vi+c,width:d.width-c,Gq:s};d.width=c;a.splice(b+1,0,e);return d}});ig.Rs=new ig.qWa;ig.Uya=ig.ra.extend({buffer:s,Vi:0,Bg:0,width:0,height:0,DHa:s,
filled:w,$J:0,f:function(a,b,c,d,e,h,k){this.buffer=a;this.Vi=b;this.Bg=c;this.width=d/ig.g.scale;this.height=e/ig.g.scale;this.$J=h;this.DHa=k},Ubb:function(){this.filled=w},wD:function(){ig.Rs.wD(this)},Xa:function(a,b,c,d,e,h,k,l){var n=ig.g.scale,e=(e||this.width)*n,h=(h||this.height)*n,d=d*n,n=k?-1:1,m=l?-1:1;if(k||l){ig.g.context.save();ig.g.context.scale(n,m)}a=ig.g.Ae(a)*n-(k?e:0);b=ig.g.Ae(b)*m-(l?h:0);ig.g.context.drawImage(this.buffer,this.Vi+c,this.Bg+d,e,h,a,b,e,h);ig.$.zv++;(k||l)&&
ig.g.context.restore()},h3a:function(){this.filled=j;var a=ig.g.context,b=ig.g.scale;ig.g.context=ig.g.bu(this.buffer);ig.g.context.clearRect(this.Vi,this.Bg,this.width*b,this.height*b);ig.g.context.translate(this.Vi,this.Bg);this.DHa();ig.g.context.translate(-this.Vi,-this.Bg);ig.g.context=a}});ig.$.CR=new ig.Z1a("impact/webworker/image-tasks.js","IMAGE")});ig.G=j;ig.I("impact.base.font").J("impact.base.image").H(function(){function a(b){for(var c=0;c<b.length;++c)b[c].yeb()}var b=["IMMEDIATE","FASTEST",
"FASTER","FAST","NORMAL","SLOW","SLOWER","SLOWEST"],c={};ig.zM={dg:function(a,b,d){c[a]&&f(Error("Text command for key '"+a+"' is already assigned"));c[a]={Q5a:b,apply:d}}};ig.zM.dg(".",w,function(a,b){b.push({index:a,IT:{jma:0.2}})});ig.zM.dg("!",w,function(a,b){b.push({index:a,IT:{jma:0.4}})});ig.zM.dg("\\",w,R("\\"));ig.zM.dg("c",j,function(a,b,c){c.push({index:b,IT:{color:a}})});ig.zM.dg("s",j,function(a,c,d){b[a]||f(Error("Unsupported \\s argument: '"+a+"'. Only support values from 0-7"));d.push({index:c,
IT:{speed:b[a]}})});ig.zM.dg("v",j,function(a){return ig.pa.get(a)});ig.zM.dg("i",j,function(a,b,c,d){a=d.Wba.indexOf(a);if(a!=-1)return String.fromCharCode(ig.Wn.Pw+a)});ig.Gg=ig.$.extend({fH:[],O2:[],Xba:[],yU:32,vv:0,f:function(a,b,c){this.yU=c==g?32:c;this.vv=b;this.parent(a)},onload:function(a){this.Q3a(this.data);this.parent(a)},Atb:function(a){for(var b=0,c=0;c<a.length;c++)b=b+(this.fH[a.charCodeAt(c)-this.yU]+1||0);return b},Xa:function(a,b,c,d){typeof a!="string"&&(a=a.toString());if(d==
ig.Gg.vj.Pia||d==ig.Gg.vj.cq){for(var e=0,h=0;h<a.length;h++)var k=a.charCodeAt(h),e=e+(this.fH[k-this.yU]+1);b=b-(d==ig.Gg.vj.cq?e/2:e)}for(h=0;h<a.length;h++){k=a.charCodeAt(h);b=b+this.qka(k-this.yU,b,c)}ig.$.zv=ig.$.zv+a.length},qka:function(a,b,c,d){if(!this.loaded||a<0||a>=this.O2.length)return 0;var e=ig.g.scale,h=(this.fH[a]+1)*e,k=this.vv*e;ig.g.context.drawImage(d!=g?d:this.data,this.O2[a]*e,this.Xba[a]*e,h,k,ig.g.Ae(b),ig.g.Ae(c),h,k);return this.fH[a]+1},Q3a:function(a){if(!this.vv)this.vv=
a.height-1;this.fH=[];this.O2=[];this.Xba=[];var b=ig.aq("canvas");b.width=a.width;b.height=a.height;b=b.getContext("2d");b.drawImage(a,0,0);for(var c=0,d=0;c+this.vv<a.height;){for(var e=0,h=b.getImageData(0,c+this.vv,a.width,1),k=0;k<a.width;k++){var l=k*4+3;if(h.data[l]!=0)e++;else if(h.data[l]==0&&e){this.fH.push(e);this.O2.push(k-e);this.Xba.push(c);d++;e=0}}if(e){this.fH.push(e);this.O2.push(a.width-e);this.Xba.push(c)}c=c+(this.vv+1)}}});ig.Gg.vj={AH:0,Pia:1,cq:2};ig.Wn=ig.Gg.extend({g9a:[],
iV:[],dD:{},Wba:[],SO:[],D$:[],f:function(a,b,c){this.parent(a,b);this.g9a=c||[]},YP:function(b){this.iV.push(b);a(this.SO)},zsb:function(b,c){this.iV[c]=b;a(this.SO)},r5a:function(a){this.SO.indexOf(a)==-1&&this.SO.push(a)},Ngb:function(a){this.SO.xf(a)},e6a:function(){a(this.SO)},yy:function(b){for(var c in b){this.dD[c]=b[c];this.Wba.indexOf(c)==-1&&this.Wba.push(c)}a(this.SO)},NA:function(a,b){a&&!(b&&b<0)&&(this.D$[b]=a)},CCa:function(a){return a=this.dD[this.Wba[a]]},pba:function(a,b,c){for(var d=
0,e=0;e+1<b.$J.length&&b.$J[e+1]<=c;)e++;for(b=b.$J[e];b<c;b++)d=d+this.Noa(a.charCodeAt(b));return d},m2:function(a,b){for(var c=0,d=0,b=b!=g?b:1,e=this.vv+b,h=[],k=[0],l=0;l<a.length;l++)if(a.charAt(l)=="\n"){c=Math.max(c,d);h.push(d);k.push(l+1);d=0;e=e+(this.vv+b)}else d=d+this.Noa(a.charCodeAt(l));k.push(a.length);h.push(d);c=Math.max(c,d);return{x:c,y:e,zf:h,$J:k}},xlb:function(a,b,c,d){for(var e=s,h=-1,k=d?8:1,l=b*0.75/(k-1);k--;){for(var n=a,m=[],r=[],t=0,o=0,p=-1,q=0;q<n.length;q++){t=t+
this.Noa(n.charCodeAt(q));n.charAt(q).match(/\s/g)&&(p=q);var v=n.charAt(q)=="\n";if(v||t>b&&p!=-1){q=v?q:p;m.push(n.substr(0,q));o=Math.max(o,t);r.push(t);n=n.substr(q+1);q=-1;t=0;p=-1}}m.push(n);r.push(t);o=Math.max(o,t);if(d){t=n=0;q=d*(m.length*this.vv+(m.length-1)*c);n=Math.abs(q-o)/q*50;q*0.5>o?n=n+(1E3+q/o*200):q*1.5<o&&(n=n+(1E3+o/q*200));for(q=m.length;q--;){p=r[q]/o;p<0.7&&(t=t+100*(1-p*p))}r=t+n;b=b-l;if(h==-1||h>r){h=r;e=m.join("\n")}}else e=m.join("\n")}return e},fHa:function(a,b,c,d,
e,h){var k=this.data,h=h!=g?h:1;typeof a!="string"&&(a=a.toString());var l=s;if(d==ig.Gg.vj.Pia||d==ig.Gg.vj.cq)l=this.m2(a);for(var n=0,m=d==ig.Gg.vj.AH?b:b-(d==ig.Gg.vj.cq?Math.floor(l.zf[n]/2):l.zf[n]),r=0,t=0;t<a.length;t++){var o=a.charCodeAt(t);if(o==10){n++;m=d==ig.Gg.vj.AH?b:b-(d==ig.Gg.vj.cq?Math.floor(l.zf[n]/2):l.zf[n]);c=c+(this.vv+h)}for(;r<e.length&&e[r].index==t;++r)if(e[r].IT.color!=g){var p=e[r].IT.color;if(p>=0)if(p==0)k=this.data;else{this.D$[p]||f(Error("color index does not exist: "+
p));k=this.D$[p]?this.D$[p].data:this}}if(o>=ig.Wn.Pw&&o<ig.Wn.Oya&&this.iV.length>0){o=this.CCa(o-ig.Wn.Pw);m=m+this.iV[o[0]].qka(o[1],m,c)}else m=m+this.qka(o-this.yU,m,c,k)}ig.$.zv=ig.$.zv+a.length},Noa:function(a){if(a>=ig.Wn.Pw&&a<ig.Wn.Oya&&this.iV.length>0){a=this.CCa(a-ig.Wn.Pw);return this.iV[a[0]].fH[a[1]]+1||0}return this.fH[a-this.yU]+1||0}});ig.Wn.Pw=2E3;ig.Wn.Oya=3E3;ig.rd=ig.ra.extend({font:s,maxWidth:0,Yl:"",ZI:[],speed:0,padding:0,align:ig.Gg.vj.AH,size:{x:0,y:0,zf:[]},vx:0,vi:0,
IN:0,Mk:0,n:0,AA:s,MA:w,f:function(a,b,c){this.font=a;this.speed=c.speed||0;this.align=c.textAlign||ig.Gg.vj.AH;this.maxWidth=c.maxWidth;this.$5a=c.bestRatio;this.VF=c.linePadding!=g?c.linePadding:1;this.fa(b);this.reset()},fa:function(a){this.wN();a=a||"";typeof a=="object"&&(a=a.toString());a=a.trim();this.Yl="";this.ZI.length=0;this.tOa(a||"");if(this.maxWidth)this.Yl=this.font.xlb(this.Yl,this.maxWidth,this.VF,this.$5a);this.size=this.font.m2(this.Yl,this.VF);this.reset()},fta:function(){if(!this.MA){this.MA=
j;this.buffer=ig.Rs.Mx(this.size.x,this.size.y,function(){this.font.fHa(this.Yl,this.align==ig.Gg.vj.AH?0:this.align==ig.Gg.vj.cq?Math.floor(this.size.x/2):this.size.x,0,this.align,this.ZI,this.VF)}.bind(this));this.font.r5a(this)}},wN:function(){if(this.MA){this.buffer.wD();this.buffer=s;this.MA=w;this.font.Ngb(this)}},reset:function(){if(this.speed){this.vx=this.vi=this.IN=this.n=0;this.Mk=this.speed;this.FEa()}else{this.vx=this.size.zf.length;this.vi=this.Yl.length;this.n=1}},lpa:function(){return[this.vx,
this.vi,this.IN,this.Mk]},iL:function(a){this.vx=a[0];this.vi=a[1];this.IN=a[2];this.Mk=a[3]},Oib:function(a){this.Mk=this.speed=a},finish:function(){this.vi=this.Yl.length;this.n=this.Mk+0.001;this.vx=this.size.zf.length;this.AA&&this.AA()},ol:function(){return this.vi==this.Yl.length&&this.n>this.Mk},FEa:function(){for(;this.IN<this.ZI.length&&this.ZI[this.IN].index==this.vi;++this.IN){var a=this.ZI[this.IN].IT;if(a.jma)this.n=this.n-a.jma;if(a.speed)this.Mk=ig.rd.Nd[a.speed]}},update:function(){if(!this.ol()){for(this.n=
this.n+ig.g.Da;this.n>this.Mk&&this.vi<this.Yl.length;){this.vi++;this.size.$J[this.vx+1]==this.vi&&this.vx++;this.FEa();this.n=this.n-this.Mk}this.AA&&this.ol()&&this.AA()}},Xa:function(a,b){a=a||0;b=b||0;if(this.size.x)if(this.MA){var c=this.vx*(this.font.vv+this.VF);this.vx&&this.buffer.Xa(a,b,0,0,this.size.x,c);if(this.vx<this.size.zf.length){var d=this.font.pba(this.Yl,this.size,this.vi);this.align==ig.Gg.vj.cq?d=d+(this.size.x-this.size.zf[this.vx])/2:this.align==ig.Gg.vj.Pia&&(d=d+(this.size.x-
this.size.zf[this.vx]));d&&this.buffer.Xa(a,b+c,0,c,d,this.font.vv+this.VF)}}else{a=this.align==ig.Gg.vj.AH?a:this.align==ig.Gg.vj.cq?a+this.size.x/2:a+this.size.x;this.font.fHa(this.Yl.substr(0,this.vi),a,b,this.align,this.ZI,this.VF)}},tOa:function(a){for(var b=0,d=-1;(d=a.indexOf("\\",b))!=-1;){this.Yl=this.Yl+a.substring(b,d);var b=d+1,e=a.indexOf("[",d),h=a.indexOf("]",d),k=s,l=s;if(e!=-1){k=a.substring(d+1,e);l=c[k]}if(!l){k=a.charAt(d+1);l=c[k]}if(l)if(l.Nc){this.Yl=this.Yl+l.Nc;b=b+k[1]}else{if(l.Q5a){if(e!=
d+k.length+1||h==-1){this.Yl=this.Yl+a.charAt(d);ig.warn("Invalid Text command argument format for commant '"+k+"'");continue}d=a.substring(e+1,h);b=h+1;h=l.apply(d,this.Yl.length,this.ZI,this.font)}else{b=b+k.length;h=l.apply(this.Yl.length,this.ZI,this.font)}h!==g&&h!==s&&this.tOa(""+h)}else this.Yl=this.Yl+a.charAt(d)}this.Yl=this.Yl+a.substring(b)},yeb:function(){this.buffer.Ubb()}});ig.rd.Nd={Tmb:0.1,Smb:0.05,fja:0.03,Ki:0.02,yya:0.015,lmb:0.01,FASTEST:0.0075,We:0}});ig.G=j;ig.I("impact.base.system.web-audio").J("impact.base.loader").H(function(){ig.XZ=
ig.ra.extend({context:s,f:function(){this.context=this.E2a()},X9a:function(){return this.context.destination},E7a:function(a,b,c){this.context.decodeAudioData(a,b,c)},Ns:function(){return this.context.currentTime},P$:function(){if(this.context.createGainNode)return this.context.createGainNode();if(this.context.createGain)return this.context.createGain()},l7a:function(){return!this.context.createDynamicsCompressor?s:this.context.createDynamicsCompressor()},s7a:function(){if(this.context.createPanner)return this.context.createPanner()},
O0:function(a,b,c){return new ig.FBa(this.context,a,b,c)},E2a:function(){return new (window.AudioContext||window.webkitAudioContext)}});ig.XZ.isSupported=function(){return!!window.AudioContext||!!window.webkitAudioContext};ig.FBa=function(a,b,c,d){this.context=a;this.tT=this.context.createBufferSource();this.tT.buffer=b;this.tT.playbackRate.value=d||1;this.dba=this.context.createGain();c!==g&&this.gs(c);this.tT.connect(this.dba)};var a=ig.FBa.prototype;a.connect=function(a){this.dba.connect(a)};a.disconnect=
function(a){this.dba.disconnect(a)};a.vib=function(a){this.tT.loop=a};a.gs=function(a){this.dba.gain.value=a};a.play=function(a,b){var c=this.tT;c.playbackState||(c.start?c.start(a||0,b||0):c.noteOn(a||0,b||0))};a.stop=function(a){var b=this.tT;b.playbackState&&(b.stop?b.stop(a):b.noteOff(a))}});ig.G=j;ig.I("impact.base.sound").J("impact.base.loader","impact.base.system.web-audio").H(function(){function a(b){return ig.root+b.match(/^(.*)\.[^\.]+$/)[1]+"."+ig.Yd.Doa.C1+ig.kl()}var b=0,c=2/60,d=e.create(),
h={};ig.cM={set:function(a,b){var c=ig.root+a.match(/^(.*)\.[^\.]+$/)[1];h[c]=b},get:function(a){a=ig.root+a.match(/^(.*)\.[^\.]+$/)[1];return h[a]!==g?h[a]:1}};ig.Umb={};ig.Dmb={};ig.ija=w;ig.x0a=ig.ra.extend({zN:{},volume:1,Doa:s,context:s,of:{},XD:{master:s,music:s,sound:s},Cra:{},jt:[],Zda:[],YQa:{},h5:[],H6:[],Kba:w,f:function(){if(!ig.da.enabled||!window.Audio)ig.da.enabled=w;else{if(window.IG_SOUND_VOLUME!=g)this.volume=window.IG_SOUND_VOLUME;for(var a=new window.Audio,b=0;b<ig.da.TSa.length;b++){var c=
ig.da.TSa[b];if(a.canPlayType(c.M3)){this.Doa=c;break}}if(!this.Doa)ig.da.enabled=w;if(ig.da.enabled&&ig.XZ.isSupported()){this.R2a();window.IG_WEB_AUDIO_BGM?ig.debug("WebAudio detected. Using full WebAudio Implementation."):window.IG_WEB_AUDIO_BGM||ig.debug("WebAudio (No BGM) detected. Using sound-only WebAudio Implementation.")}else ig.debug("No WebAudio. Using default Audio Implementation");setInterval(this.$4a.bind(this),16)}},reset:function(){for(var a=this.jt.length;a--;)this.jt[a].stop();this.Zda.length==
0},update:function(){for(var a=this.h5.length;a--;)this.H4a(this.h5[a])&&this.h5.splice(a,1);for(var a=this.jt.length,b=s;a--;)if((b=this.jt[a])&&b.update()){b.stop();if(b.group){b.group.xm.xf(b);b.group=s}this.jt.splice(a,1)}},Gea:function(){for(var a=this.jt.length;a--;){var b=this.jt[a];b.pause();b.group&&b.group.xm.xf(b)}this.Zda.push(this.jt);this.jt=[]},fea:function(){if(this.Zda.length!=0)for(var a=this.Zda.pop(),b=a.length;b--;){var c=a[b];c.play();c.group&&c.group.xm.push(c);this.jt.push(c)}},
t3a:function(a){var b=this.YQa[a];b||(this.YQa[a]=b={LOa:[],xm:[]});return b},H4a:function(a){if(a.xm.length>0&&a.xm[a.xm.length-1].aJa()<c)return w;for(var b=a.LOa,h,k=b.length,l=-1;k--;){var n;n=b[k];if(n.position){e.assign(d,n.position);e.sub(d,ig.t.a6);n=e.length(d)}else n=0;if(l==-1||n<l){l=n;h=b[k]}}for(k=a.xm.length;k--;)a.xm[k].stop();h.group=a;ig.Yd.jt.push(h);h.play();a.xm.push(h);b.length=0;return j},$Na:function(a,b){var c=this.t3a(a);c.LOa.push(b);this.h5.indexOf(c)==-1&&this.h5.push(c)},
R2a:function(){this.Kba=j;this.context=new ig.XZ;var a=this.context.P$(),b=this.context.P$(),c=this.context.P$(),d=a,e=this.context.l7a();if(e){e.threshold.value=-6;e.knee.value=0;e.ratio.value=20;e.attack.value=0;e.release.value=0.2;d=this.context.P$();d.gain.value=0.8;d.connect(a);e.connect(d);d=e}b.connect(a);c.connect(d);a.connect(this.context.X9a());this.XD.Ab=c;this.XD.Cp=b;this.XD.WV=a},d7a:function(a){a&&a.connect(this.XD.Ab)},N7a:function(a){a&&a.disconnect(this.XD.Ab)},H$:function(a){a&&
a.connect(this.XD.Cp)},iJ:function(a){a&&a.disconnect(this.XD.Cp)},Nib:function(a){a&&this.Kba&&(this.XD.Ab.gain.value=a)},zib:function(a){a&&this.Kba&&(this.XD.Cp.gain.value=a)},xib:function(a){a&&this.Kba&&(this.XD.WV.gain.value=a)},Fsa:function(){for(var a=this.jt.length;a--;)this.jt[a].pause()},Esa:function(){for(var a=this.jt.length;a--;)this.jt[a].play()},v5a:function(a,b){this.Cra[a]=b},O$a:function(a){return this.Cra[a]},Qgb:function(a){delete this.Cra[a]},C9a:function(a){return this.of[a]},
Ycb:function(c,d){var e=a(c);ig.ija&&ig.log("%cREQUEST%c: "+e,"color:#FF0080","");if(this.of[c]){d&&d(c,j);return this.of[c]}var h=new XMLHttpRequest;h.open("GET",e,j);h.responseType="arraybuffer";h.onload=function(){ig.ija&&ig.log("%cLOADED%c:  "+e,"color:#C60063","");ig.Yd.context.E7a(h.response,function(a){ig.ija&&ig.log("%cDECODED%c: "+e,"color:#800080","");if(a){b++;ig.Yd.of[c]=a;d&&d(c,j)}else ig.g.error(Error("Web Audio Load Error: Decoded but NULL "+c))},function(){ig.g.error(Error("Web Audio Load Error: Could not DECODE: "+
c))})};h.onerror=function(){ig.g.error(Error("Web Audio Load Error: Could not LOAD: "+c))};h.send()},ygb:function(a){a&&this.H6.indexOf(a)==-1&&this.H6.push(a)},Fwa:function(a){a&&this.H6.xf(a)},$4a:function(){for(var a=this.H6.length;a--;)this.H6[a].B6a()},load:function(c,d,e){var h=a(c);if(this.zN[c]){this.XCa(c,h,d,w);e&&e(c,d,j)}else{var k,l=w;b++;if(ig.g.ULa&&b>25){k=new Audio;l=j;e&&e(c,d,j)}else k=new window.Audio(h);if(e){var n=function(a){this.removeEventListener("canplaythrough",n,w);e(c,
d,j,a)};k.addEventListener("canplaythrough",n,w);k.addEventListener("error",function(a){e(c,d,j,a)},w)}k.load();this.zN[c]=[k];this.XCa(c,h,d,l)}},XCa:function(a,b,c,d){for(var e=this.zN[a];e.length<c;){var h=d?new Audio:new Audio(b);h.load();this.zN[a].push(h)}},get:function(a){for(var a=this.zN[a],b=0,c;c=a[b++];)if(c.paused||c.ended){if(c.ended)c.currentTime=0;return c}if(!isNaN(a[0].duration)){a[0].pause();a[0].currentTime=0;return a[0]}},U1:function(a,b){return this.zN[a][b]},n9a:function(a){delete this.zN[a]},
o9a:function(a){delete this.of[a]}});ig.mia=ig.hS.extend({ui:"MultiAudio",LFa:0,f:function(a,b){this.LFa=b;this.parent(a,b)},get:function(){return ig.Yd.get(this.path)},U1:function(a){return ig.Yd.U1(this.path,a)},Nn:function(){ig.Yd.n9a(this.path)},Us:function(){ig.Yd.load(this.path,this.LFa,this.onload.bind(this))},onload:function(a,b,c){this.zk(c)}});ig.Tja=ig.hS.extend({ui:"WebAudioBuffer",f:function(a){this.parent(a)},get:function(){return ig.Yd.C9a(this.path)},Nn:function(){ig.Yd.o9a(this.path)},
Us:function(){ig.Yd.Ycb(this.path,this.onload.bind(this))},onload:function(a,b){this.zk(b)}});ig.jYa=ig.ra.extend({wo:s,wi:s,nn:[],paused:w,Jl:1,X8:0,Od:s,NM:0,SS:w,As:0,f:function(){if(window.IG_MUSIC_VOLUME!=g)this.Jl=window.IG_MUSIC_VOLUME;if(Object.defineProperty)Object.defineProperty(this,"volume",{get:this.Bba.bind(this),set:this.gs.bind(this)});else if(this.__defineGetter__){this.__defineGetter__("volume",this.Bba.bind(this));this.__defineSetter__("volume",this.gs.bind(this))}},play:function(a,
b,c,d,e){if(this.nn.length==0)this.push(a,b,c,d,e);else{this.nn.pop();this.ODa(a,e,d);a=this.dka();d=this.paused;this.paused=w;if(!a){this.NM=c||0;this.SS=j;this.K_(b,d)}}},push:function(a,b,c,d,e){this.ODa(a,e,d);a=this.dka();d=this.paused;this.paused=w;if(!a){this.NM=c||0;this.SS=j;this.K_(b,d)}},pop:function(a,b){if(this.nn.length!=0){this.nn.pop();var c=this.dka(),d=this.paused;this.paused=w;if(!c){this.NM=b||0;this.SS=w;this.K_(a,d)}}},N2:function(a,b,c,d){if(this.wo&&this.wo.Bb){this.wo.Bb.pause();
this.wo.Bb.Vt=s}this.wo={Bb:a,Taa:c};this.NM=c;this.SS=w;a.loop=w;a.gs(this.Jl*(d||1));a.reset();a.play();a.Vt=this.T4a.bind(this);this.K_(b)},pause:function(a){this.paused=j;this.K_(a)},VK:function(a){this.SS=this.paused=w;this.NM=a;this.F_()},Wpb:function(){return this.nn.length},mLa:function(a,b){var c=this.Ika();return!this.paused&&c&&c.Bb==a&&(b===g||c.volume==b)},Bba:M("Jl"),gs:function(a){this.Jl=a.Vb(0,1);this.As==0&&this.wi&&this.wi.Bb&&this.wi.Bb.gs(this.Jl*this.wi.volume);this.wo&&this.wo.Bb&&
this.wo.Bb.gs(this.Jl*this.wi.volume)},dka:function(){var a=this.Ika();if(!this.paused&&a&&a.Bb&&this.wi&&this.wi.Bb==a.Bb){if(this.As==0){a.Bb.gs(this.Jl*a.volume);this.S8()}else if(this.As==1)this.Od.set(0.5,j);else if(this.As==2){this.Od.set(0.5,j);this.Od.$Oa();this.wi.Bb.play();this.As=1}this.wi=a;return j}return w},Ika:function(){return this.nn.length?this.nn[this.nn.length-1]:s},ODa:function(a,b,c){this.nn.push({Bb:a,jkb:b||w,gtb:0,volume:c||1})},K_:function(a,b){if(b)this.As==2?this.Od.set(a,
j):this.F_();else if(a&&this.wi&&this.wi.Bb)if(this.As==2)this.Od.set(a,j);else if(this.As==1){this.Od.set(a,j);this.Od.$Oa();this.As=2}else{this.As=2;this.Od=new ig.ri(a);this.tEa()}else this.F_()},tEa:function(){if(!this.X8)this.X8=setInterval(this.K3a.bind(this),16)},K3a:function(){if(!ig.g.Ywa){var a=!this.Od?1:this.Od.jh().map(-this.Od.target,0,0,1).Vb(0,1),b=this.wi;if(b&&b.Bb){var c=this.As==1?a:a.map(1,0,0,1);b.Bb.gs(c*this.Jl*b.volume)}a>=1&&(this.As==1?this.S8():this.As==2&&this.F_())}},
F_:function(){this.wi&&this.wi.Bb&&this.wi.Bb.pause();if(this.wo||this.paused)this.S8();else if((this.wi=this.Ika())&&this.wi.Bb){this.As=1;this.wi.Bb.loop=!this.wi.jkb;this.NM?this.wi.Bb.gs(0):this.wi.Bb.gs(this.Jl*this.wi.volume);this.SS&&this.wi.Bb.reset();this.wi.Bb.play();this.Od=new ig.ri(this.NM);this.tEa()}else this.S8()},S8:function(){clearInterval(this.X8);this.X8=s;this.As=0},T4a:function(){if(this.wo){this.wo=this.wo.Bb.Vt=s;this.F_()}},Fsa:function(){this.wo&&this.wo.Bb&&this.wo.Bb.pause();
this.wi&&this.wi.Bb&&this.wi.Bb.pause()},Esa:function(){this.wo&&this.wo.Bb&&this.wo.Bb.play();!this.wo&&(this.wi&&this.wi.Bb&&!this.paused)&&this.wi.Bb.play()}});ig.rBa=ig.VR.extend({ui:"TrackDefault",fD:s,W2:s,pf:0,Ci:0,Vt:s,m0:1,Ab:s,kR:s,oA:s,Xx:w,loop:j,f:function(a,b,c,d,e){this.parent();this.fD=new ig.mia(a,2);this.W2=c?new ig.mia(c,1):s;this.pf=b;this.Ci=d||0;this.Xx=this.Ci==0;if(e!=g)this.m0=e},xJ:function(a,b,c,d){return Array.prototype.join.call(arguments,"|")},Nn:function(){this.fD.zc();
this.W2&&this.W2.zc()},gs:function(a){this.s_();a=a*a*this.m0;this.Ab.volume=a;this.kR.volume=a;this.oA&&(this.oA.volume=a)},Bba:function(){this.s_();return this.Ab.volume},reset:function(){this.s_();try{this.Xx=this.Ci==0;this.Ab.currentTime=0;this.kR.currentTime=0;this.kR.pause();this.Ab.pause();this.oA&&(this.oA.currentTime=0)}catch(a){}},play:function(){this.s_();this.Xx?this.Ab.play():this.oA.play()},pause:function(){this.s_();this.Xx?this.Ab.pause():this.oA.pause()},s_:function(){if(!this.Ab){this.Ab=
this.fD.U1(0);this.Lka(this.Ab);this.kR=this.fD.U1(1);this.Lka(this.kR);if(this.W2){this.oA=this.W2.U1(0);this.Lka(this.oA)}}},Lka:function(a){a.loop=w;a.addEventListener("timeupdate",this.R4a.bind(this),w);a.addEventListener("ended",this.$2a.bind(this),w)},$2a:function(a){a.target==this.Ab?this.BDa():a.target==this.oA&&this.yCa()},R4a:function(a){a.target==this.Ab&&this.Ab.currentTime>=this.pf-0.2?this.BDa():a.target==this.oA&&this.oA.currentTime>=this.Ci-0.2&&this.yCa()},BDa:function(){if(this.loop){var a=
this.Ab;this.Ab=this.kR;this.kR=a;this.Ab.currentTime=0;this.Ab.play()}else this.Vt&&this.Vt(this)},yCa:function(){if(!this.Xx){this.Ab.currentTime=0;this.Ab.play();this.Xx=j}}});ig.u1a=ig.VR.extend({ui:"TrackWebAudio",i$:s,qV:s,pf:0,Ci:0,Vt:s,m0:1,Xx:w,loop:j,xm:w,IX:s,pqa:s,no:s,Do:s,Kq:s,Ah:s,Jl:1,ao:0,g9:-1,QS:0,FDa:0,f:function(a,b,c,d,e){this.parent();this.i$=new ig.Tja(a);this.qV=c?new ig.Tja(c):s;this.pf=b;this.Ci=d||0;this.Xx=this.Ci==0;if(e!=g)this.m0=e},xJ:function(a,b,c,d){return Array.prototype.join.call(arguments,
"|")},Nn:function(){this.i$.zc();this.qV&&this.qV.zc()},YCa:function(){if(!this.IX){this.Ah=ig.Yd.context;this.IX=this.i$.get();if(this.qV)this.pqa=this.qV.get();this.FDa=Math.max(0,this.IX.duration-this.pf)}},B6a:function(){this.YCa();this.Ah.Ns()>this.ao+this.Ci+(this.QS+1)*this.pf&&this.Vt&&this.Vt(this);if(this.Ah.Ns()>this.ao+this.Ci+(this.QS+1)*this.pf+this.FDa){if(!this.loop){this.gka();ig.Yd.Fwa(this);return}var a=this.Ah.O0(this.IX,this.Jl);this.no.stop(0);ig.Yd.iJ(this.no);delete this.no;
this.no=this.Do;this.Do=a;this.QS++;a=this.ao+this.Ci+(this.QS+1)*this.pf;ig.Yd.H$(this.Do);this.Do.play(a)}if((this.Xx=this.Ah.Ns()>this.ao+this.pqa)&&this.Kq){this.Kq.stop(0);ig.Yd.iJ(this.Kq);delete this.Kq}},gs:function(a){this.Jl=a*a*this.m0;this.no&&this.no.gs(this.Jl);this.Do&&this.Do.gs(this.Jl);this.Kq&&this.Kq.gs(this.Jl)},Bba:M("Jl"),reset:function(){this.gka();this.xm=w;this.ao=0;this.g9=-1;this.Xx=this.Ci==0;this.QS=0;ig.Yd.Fwa(this)},r4a:function(){this.YCa();this.no&&ig.Yd.iJ(this.no);
this.Kq&&ig.Yd.iJ(this.Kq);this.Do&&ig.Yd.iJ(this.Do);this.Do=this.Kq=this.no=s;if(this.qV)this.Kq=this.Ah.O0(this.pqa,this.Jl);this.no=this.Ah.O0(this.IX,this.Jl);if(this.loop)this.Do=this.Ah.O0(this.IX,this.Jl);ig.Yd.H$(this.Kq);ig.Yd.H$(this.no);ig.Yd.H$(this.Do)},gka:function(){if(this.Kq){this.Kq.stop(0);ig.Yd.iJ(this.Kq);delete this.Kq}if(this.no){this.no.stop(0);ig.Yd.iJ(this.no);delete this.no}if(this.Do){this.Do.stop(0);ig.Yd.iJ(this.Do);delete this.Do}},play:function(){if(!this.xm&&this.i$.loaded){this.xm=
j;this.r4a();if(this.g9<0){this.ao=this.Ah.Ns();if(this.Xx){this.no.play(0);this.loop&&this.Do.play(this.Ah.Ns()+this.pf)}else{this.Kq.play(0);this.no.play(this.ao+this.Ci);this.loop&&this.Do.play(this.ao+this.pf+this.Ci)}}else{this.ao=this.ao+(this.Ah.Ns()-this.g9);var a=Math.max(this.Ah.Ns()-this.ao,0);if(a<this.Ci){this.Kq.play(0,a);this.no.play(this.ao+this.Ci);this.loop&&this.Do.play(this.ao+this.pf+this.Ci)}else{this.no.play(0,(a-this.Ci)%this.pf);this.loop&&this.Do.play(this.ao+this.pf*(this.QS+
1)+this.Ci)}}ig.Yd.ygb(this)}},pause:function(){if(this.xm){this.gka();this.g9=this.Ah.Ns();this.xm=w;ig.Yd.Fwa(this)}}});ig.$Aa=ig.ra.extend({group:s,fD:s,volume:1,cna:s,Brb:j,f:function(a,b,c,d){this.fD=new ig.mia(a,ig.da.u6a);this.volume=b||1;this.group=d||a},clone:function(){return new ig.$Aa(this.fD.path,this.volume,0,this.group)},Qa:function(){this.fD.zc()},E_:function(a,b){if(!ig.da.enabled)return s;this.cna=this.fD.get();if(!isNaN(this.cna.duration)){var c=ig.Yd.volume*this.volume*ig.cM.get(this.fD.path),
c=new ig.z8(this.cna,b,0,0,a,c);ig.Yd.$Na(this.group,c);return c}return s},qy:function(a,b){return this.E_(j,a,b)},play:function(a,b){return this.E_(w,a,b)},stop:function(){ig.warn("Called stop on Default Sound.")}});ig.aBa=ig.ra.extend({group:s,b7:s,volume:1,uj:0,bna:s,f:function(a,b,c,d){this.b7=new ig.Tja(a);this.volume=b||1;this.uj=c||0;this.group=d||a},clone:function(){return new ig.aBa(this.b7.path,this.volume,this.uj,this.group)},Qa:function(){this.b7.zc()},E_:function(a,b,c){var d=0,e=0,h=
1;if(c){d=c.offset||0;e=c.startTime||0;h=c.speed||1}this.uj&&(h=h*(1+(Math.random()-0.5)*2*this.uj));if(!ig.da.enabled)return s;this.bna=this.b7.get();if(!isNaN(this.bna.duration)){c=ig.Yd.volume*this.volume*ig.cM.get(this.b7.path);a=new ig.z8(this.bna,b,d,e,a,c,h);ig.Yd.$Na(this.group,a);return a}return s},qy:function(a,b){return this.E_(j,a,b)},play:function(a,b){return this.E_(w,a,b)},stop:function(){ig.warn("Called stop on WebAudio Sound.")}});ig.v0a=ig.ra.extend({group:s,position:s,dp:0,Ch:0,
e9:0,ao:0,CE:s,f:function(a,b,c,d,h,k){this.e9=c||0;this.ao=d||0;this.Ch=a.duration;if(b)this.position=e.create(b);a.volume=k*k;a.loop=h||w;this.CE=a},update:function(){if(this.CE.loop)return w;this.dp=this.dp+ig.g.Da;return this.dp>=this.Ch?j:w},v:F(),play:function(){this.CE.play()},stop:function(){try{this.CE.volume=0;this.CE.loop=w;if(this.Ch-this.CE.currentTime>0.8)this.CE.currentTime=this.Ch}catch(a){}this.dp=this.Ch},aJa:function(){return this.CE.currentTime},pause:function(){this.CE.pause()},
Zr:function(){this.stop()},eG:function(){this.stop()}});var l=e.pc(0,0);ig.w0a=ig.ra.extend({group:s,position:s,VBa:s,Jl:0,pEa:0,dp:0,Ch:0,e9:0,ao:0,TS:s,HE:s,w_:w,Bs:0,Jka:0,i9:w,FM:0,EM:-1,f:function(a,b,c,d,e,h,l){this.e9=c||0;this.ao=d||0;this.Ch=a.duration/l;this.w_=e||w;this.VBa=a;this.Jl=h;this.pEa=l;this.U2a=this.Ch>=1||this.w_;if(b)this.position=k.pc(b.x,b.y,-0.5)},update:function(){this.U2a&&this.jEa();return!this.w_&&this.EM==-1&&ig.Yd.context.Ns()-this.FM>=this.Ch?j:w},v:function(a,b){this.Bs=
a||0;this.Jka=b||0},play:function(){if(!this.i9){var a=ig.Yd.context;if(!this.HE){this.HE=a.s7a();this.HE.panningModel="equalpower";this.HE.setPosition(0,0,-0.5);this.jEa()}var b=0;if(this.EM==-1)this.FM=a.Ns();else{b=(this.EM-this.FM)%this.Ch;this.FM=this.FM+(a.Ns()-this.EM);this.EM=-1}this.TS=a.O0(this.VBa,this.Jl*this.Jl,this.pEa);this.TS.vib(this.w_);this.TS.connect(this.HE);ig.Yd.d7a(this.HE);this.TS.play(a.Ns()+this.ao,this.e9+b);this.i9=j}},stop:function(){this.pause();this.FM=ig.Yd.context.Ns()-
this.Ch;this.EM=-1;this.w_=w},aJa:function(){return ig.Yd.context.Ns()-this.FM},pause:function(){if(this.i9){this.EM=ig.Yd.context.Ns();this.TS.stop(0);this.TS.disconnect(this.HE);ig.Yd.N7a(this.HE);this.i9=w}},jEa:function(){if(this.position){l.x=(this.position.x-ig.t.a6.x)/100;l.y=(this.position.y-ig.t.a6.y)/75;l.x=Math.abs(l.x)<1?0:l.x>0?l.x-1:l.x+1;l.y=Math.abs(l.y)<1?0:l.y>0?l.y-1:l.y+1;this.HE.setPosition(l.x,l.y,this.position.z)}},Zr:function(){this.stop()},eG:function(){this.stop()}});var n=
e.create();ig.Tg={ah:function(a,b,c,d){if(a){b=b.b;e.Sa(n,b.i.x+b.size.x/2,b.i.y+b.size.y/2-(b.i.z+b.size.z/2));return c?a.qy(n,d):a.play(n,d)}}};var m=localStorage.getItem("options.useWebAudio")!="false"||w;if(ig.XZ.isSupported()&&!window.IG_FORCE_HTML5_AUDIO&&m){ig.da=ig.aBa;ig.z8=ig.w0a;ig.qBa=(ig.platform==ig.pk.BROWSER||window.IG_GAME_DEBUG)&&!window.IG_WEB_AUDIO_BGM?ig.rBa:ig.u1a}else{ig.da=ig.$Aa;ig.z8=ig.v0a;ig.qBa=ig.rBa;ig.log("SET DEFAULT TRACK!")}ig.da.Cya={CXa:{C1:"mp3",M3:"audio/mpeg"},
Amb:{C1:"m4a",M3:"audio/mp4; codecs=mp4a"},FYa:{C1:"ogg",M3:"audio/ogg; codecs=vorbis"},lnb:{C1:"webm",M3:"audio/webm; codecs=vorbis"},Slb:{C1:"caf",M3:"audio/x-caf"}};ig.da.TSa=[ig.da.Cya.FYa,ig.da.Cya.CXa];ig.da.u6a=4;ig.da.enabled=j});ig.G=j;ig.I("impact.base.timer").H(function(){ig.ri=ig.ra.extend({target:0,Mb:0,last:0,Ck:w,f:function(a){this.last=this.Mb=ig.ri.time;this.target=a||0},set:function(a,b){if(b&&this.target>0){var c=1+Math.min(0,this.jh()/this.target);this.Mb=ig.ri.time-a*c}else this.Mb=
ig.ri.time;this.target=a||0},$Oa:function(){var a=Math.min(1,-this.jh()/this.target);this.Mb=ig.ri.time-this.target*a},stop:function(){if(!this.Ck){this.Ck=j;this.last=ig.ri.time}},VK:function(){if(this.Ck){this.Ck=w;this.Mb=ig.ri.time-(this.last-this.Mb);this.last=ig.ri.time}},reset:function(){this.Mb=ig.ri.time;this.Ck=w},ga:function(){if(this.Ck)return 0;var a=ig.ri.time-this.last;this.last=ig.ri.time;return a},ni:function(){return Math.max(0,(this.target-((this.Ck?this.last:ig.ri.time)-this.Mb))/
this.target)},jh:function(){return(this.Ck?this.last:ig.ri.time)-this.Mb-this.target}});ig.ri.qDa=0;ig.ri.time=0;ig.ri.iwa=1;ig.ri.pMa=1/30;ig.ri.step=function(){var a=Date.now();ig.ri.time=ig.ri.time+Math.min((a-ig.ri.qDa)/1E3,ig.ri.pMa)*ig.ri.iwa;ig.ri.qDa=a};ig.qk={hq:0,REPEAT:1,$ga:2,yAa:3,Yia:4};ig.Ct=ig.ra.extend({duration:0,n:0,Da:w,mode:ig.qk.hq,fX:0,ZDa:w,f:function(a,b,c){this.Da=a||w;this.set(b,c)},set:function(a,b){this.duration=a;this.mode=b||ig.qk.hq;this.fX=this.n=0;if(this.mode==ig.qk.Yia)this.ZDa=
Math.random()>=0.5},BJ:function(){return this.duration-this.n},Gib:function(a){this.n=this.duration-a;if(this.n<0)this.n=0},ga:function(){if(this.duration){this.n=this.n+(this.Da?ig.g.Da:ig.g.ga);if(this.n>=this.duration){this.n=this.mode?this.n%this.duration:this.duration;this.mode?this.fX++:this.fX=1}}},yb:function(){return!this.duration||!this.mode&&this.n>=this.duration},bqb:M("n"),get:function(){if(this.duration){var a=this.n/this.duration;this.mode==ig.qk.$ga&&(a=(a<0.5?a:1-a)*2);this.mode==
ig.qk.yAa&&(a=Math.sin(Math.PI*2*a));this.mode==ig.qk.Yia&&(a=Math.sin(Math.PI*2*a)*(this.ZDa?-1:1));return a}return 1},fqb:function(){return this.n/this.duration},pqb:function(){return this.mode&&this.fX},Upb:M("fX"),Odb:function(){return this.n/this.duration>=0.5}})});ig.G=j;ig.I("impact.base.vars").H(function(){var a={},b=/(\][^.\][])/,c=["map","maps","tmp","call","session"];ig.ABa={path:s,index:0,k5:function(a){if(!a)return s;this.path=a;this.index=0;return this.PDa(j)},PDa:function(a){var c=
this.path.indexOf("[",this.index);if(c==-1&&!this.index)return this.path;this.path.match(b)&&f(Error("Invalid bracket use in condition '"+this.path+"'.\nAfter a closing bracket ']' has to be '.', ']' or '['"));for(var d=this.path.indexOf("]",this.index),e="";c!=-1&&c<d;){e=e+this.path.substring(this.index,c);e.length>0&&(e=e+".");this.index=c+1;c=this.PDa(w);(c=c.match(h)?c:ig.pa.BCa(c))||(c="null");e=e+c;d=this.path.indexOf("]",this.index);c=this.path.indexOf("[",this.index)}(c!=-1&&d==-1||d==-1!=
a)&&f(Error("Invalid bracket combination in var accessor '"+this.path+"'"));if(d!=-1){d>this.index&&(e=e+this.path.substring(this.index,d));this.index=d+1}else e=e+this.path.substring(this.index);return e}};ig.BBa=ig.ra.extend({W$:s,Lga:[],eoa:[],Cc:{map:{},maps:{},tmp:{},call:{},session:{map:{},maps:{}}},f:F(),get:function(a){a=ig.ABa.k5(a);return this.BCa(a)},BCa:function(a){if(!a)return s;var b=this.kJa(a);if(b)return b.On(a,a.split("."));a=this.TCa(a,w);return!a?s:a.Xl[a.key]==g?s:a.Xl[a.key]},
QB:function(a){if(!a)return s;a=ig.ABa.k5(a);this.kJa(a)&&f(Error("Tried to modify value under var accessor domain: "+a));var b=this.TCa(a,j);if(b.Xl==this.Cc&&c.indexOf(b.key)!=-1){ig.warn("Tried to access key that is not supported: "+a);return s}return b},set:function(a,b){var c=this.QB(a);if(!c)return s;if(c.Xl[c.key]!=b){c.Xl[c.key]=b;ig.t.Zi()}},rw:function(a,b){this.get(a)==s&&this.set(a,b)},add:function(a,b){var c=this.QB(a);if(!c)return s;c.Xl[c.key]=(c.Xl[c.key]||0)+b;ig.t.Zi()},sub:function(a,
b){var c=this.QB(a);if(!c)return s;c.Xl[c.key]=(c.Xl[c.key]||0)-b;ig.t.Zi()},eW:function(a,b){var c=this.QB(a);if(!c)return s;c.Xl[c.key]=(c.Xl[c.key]||0)*b;ig.t.Zi()},l1:function(a,b){var c=this.QB(a);if(!c)return s;c.Xl[c.key]=Math.floor((c.Xl[c.key]||0)/b);ig.t.Zi()},odb:function(a,b){var c=this.QB(a);if(!c)return s;c.Xl[c.key]=(c.Xl[c.key]||0)%b;ig.t.Zi()},L5a:function(a,b){var c=this.QB(a);if(!c)return s;c.Xl[c.key]=c.Xl[c.key]&&b;ig.t.Zi()},vfb:function(a,b){var c=this.QB(a);if(!c)return s;
c.Xl[c.key]=c.Xl[c.key]||b;ig.t.Zi()},Blb:function(a,b){var c=this.QB(a);if(!c)return s;var d=c.Xl[c.key];c.Xl[c.key]=(d||b)&&!(d&&b);ig.t.Zi()},append:function(a,b){var c=this.QB(a);if(!c)return s;c.Xl[c.key]=(c.Xl[c.key]||"")+b;ig.t.Zi()},vfa:function(a){this.Cc.call=a},clear:function(){this.Cc={map:{},maps:{},tmp:{},call:{},session:{map:{},maps:{}}}},kJa:function(a){var b=this.eoa.last();if(b&&a.indexOf("entity.")==0)return b;for(b=this.Lga.length;b--;)if(a.indexOf(this.Lga[b].domain)==0)return this.Lga[b].b5a;
return s},Wta:function(a,b,c){for(;a&&c<b.length;){var d=b[c],a=a[d]!==g?a[d]:s;c++}return a},Gp:function(a,b,c){this.Lga.push({domain:a+".",b5a:b,qo:c||s})},Fea:function(a){a.On&&this.eoa.push(a)},eea:function(a){if(a.On){var b=this.eoa.pop();a!=b&&f(Error("Removed unmatching accessor! Something went wrong"))}},TCa:function(b,c){for(var d=b.split("."),e=this.Cc,h=0;h<d.length-1;h++){d[h]||f(Error("VarPath '"+b+"' contains empty token."));if(!e[d[h]])if(c)e[d[h]]={};else return s;e=e[d[h]];typeof e!=
"object"&&f(Error("Error Accessing variable '"+b+"': result of '"+d[h]+"' is not an object '"))}a.Xl=e;a.key=d[h];return a},qNa:function(a){this.W$=a=a.Qy();this.Cc.maps[a]||(this.Cc.maps[a]={});this.Cc.map=this.Cc.maps[a];this.Cc.session.maps[a]||(this.Cc.session.maps[a]={});this.Cc.tmp={};this.Cc.session.map=this.Cc.session.maps[a]},oba:function(){var a=ig.copy(this.Cc);delete a.map;delete a.session;return{levelName:this.W$,storage:a}},thb:function(a){this.W$=a.levelName;this.Cc=ig.copy(a.storage);
this.Cc.map=this.Cc.maps[this.W$];this.Cc.session={map:{},maps:{}}}});var d=ig.BBa.prototype;d.get=d.get;d.set=d.set;d.add=d.add;d.sub=d.sub;d.mul=d.eW;d.div=d.l1;d.mod=d.odb;d.and=d.L5a;d.or=d.vfb;d.xor=d.Blb;d.append=d.append;var e=/^(!=|==|<=|>=|<|>|=|\+|-|%|\/|\*|AND|OR|&&|\|\|)/,h=/^\d+([.][\d]+)?/,k=/^(true|false|null)/,l=/^(\"(\\.|[^"])*\"|\'(\\.|[^'])*\')/,n=/^([\w/.-]|\[|\])+/,m={source:s,pa:s,index:0,nPa:0,Oo:0,rt:s,parse:function(a,b){this.source=a;this.pa=b;this.index=0;return this.ala()},
ala:function(){var a=this.JDa();this.eka();if(this.Oo==0||this.Oo==2)return a;if(this.Oo==8){this.nla();return a+" "+this.rt+" "+this.ala()}f(Error("Unexpected token '"+this.rt+"' when parsing expression"))},JDa:function(){this.eka();this.nla();if(this.Oo==1){var a=this.ala();this.eka();this.Oo!=2&&f(Error("Didn't close an open paranthesis! Bad!!"));this.nla();return"("+a+")"}if(this.Oo==7)return"!"+this.JDa();if(this.Oo==4||this.Oo==6||this.Oo==5)return this.rt;if(this.Oo==3){this.pa.push(this.rt);
return"ig.vars.get('"+this.rt+"')"}f(Error("Unsupported Token: '"+this.rt+"' during terminal expression parsing"))},eka:function(){for(var a=this.index,b=this.source;b[a]==" ";)a++;if(a>=b.length){this.Oo=0;this.rt=s}else if(b[a]=="("){this.Oo=1;this.rt="(";a++}else if(b[a]==")"){this.Oo=2;this.rt=")";a++}else if(b[a]=="!"&&b[a+1]!="="){this.Oo=7;this.rt="!";a++}else{var b=b.substr(a),c;if(c=b.match(e)){c=c[0];a=a+c.length;this.Oo=8;c=="AND"?c="&&":c=="OR"?c="||":c=="="&&(c="==");this.rt=c}else if(c=
b.match(h)){c=c[0];this.Oo=4;this.rt=c;a=a+c.length}else if(c=b.match(l)){c=c[0];this.Oo=6;this.rt=c;a=a+c.length}else if(c=b.match(k)){c=c[0];this.Oo=5;this.rt=c;a=a+c.length}else if(c=b.match(n)){c=c[0];this.Oo=3;this.rt=c;a=a+c.length}else f(Error("Could not parse next token of '"+b+"'"))}this.nPa=a},nla:function(){this.index=this.nPa}};ig.ce=ig.ra.extend({jb:s,code:"",xea:"",pa:[],f:function(a){this.fL(a)},fL:function(a){if(!a||a.trim().length==0)this.code=this.xea="true";else try{this.xea=a;
this.code=m.parse(a,this.pa)}catch(b){ig.log("CONDITION PARSING ERROR: "+b);this.xea="ERROR: "+b;this.code="false";this.pa=[]}this.jb=new Function(" return "+this.code)},evaluate:function(){try{return!!this.jb.call()}catch(a){ig.log("Condition evaluation failed: "+this.jb);return w}},toString:M("xea")})});ig.G=j;ig.I("impact.base.system").J("impact.base.timer","impact.base.image","impact.base.vars").H(function(){function a(){b=b+1;if(b%ig.g.m9a==0){ig.ri.step();ig.g.uy=ig.g.Da=Math.min(ig.ri.pMa,
ig.g.$Fa.ga())*ig.g.iSa;if(ig.g.z2())ig.g.Da=0;ig.g.ga=ig.g.Da*ig.g.Tn;if(ig.g.tl){ig.g.ga=ig.g.ga*8;ig.g.Da=ig.g.Da*8}ig.g.delegate.xa();if(ig.g.oda){ig.g.IPa(ig.g.oda);ig.g.oda=s}}ig.g.Zaa>=60&&window.requestAnimationFrame&&window.requestAnimationFrame(ig.g.xa.bind(ig.g),ig.g.canvas)}var b=0;ig.W0a=ig.ra.extend({Zaa:60,m9a:1,width:320,height:240,px:320,ox:240,cQ:320,bQ:240,dfa:320,hua:240,Fm:{x:0,y:0},zoom:1,scale:1,Nz:1,zg:w,Vaa:[],Ywa:w,jV:s,Vba:w,N$:w,baa:s,tl:w,Tn:1,iSa:1,uy:0,ga:0,Da:0,tp:0,
zKa:0,oda:s,Hp:w,delegate:s,$Fa:s,XO:s,canvas:s,context:s,ova:j,f:function(a,b,c,d,e,h){this.Zaa=c;this.$Fa=new ig.ri;this.canvas=ig.tY(a);this.context=this.canvas.getContext("2d");if(this.context.imageSmoothingEnabled)this.jV="imageSmoothingEnabled";else if(this.context.webkitImageSmoothingEnabled)this.jV="webkitImageSmoothingEnabled";else if(this.context.mozImageSmoothingEnabled)this.jV="mozImageSmoothingEnabled";this.Vba=!!this.jV;this.XO=b?ig.tY(b):document;this.resize(d,e,h);this.ULa=ig.browser==
"Chrome"&&ig.lma*1<=25;ig.pa&&ig.pa.Gp("system",this,"SystemVarEditor")},On:function(a,b){if(b[1]=="debug")return!!window.aj},resize:function(a,b,c){c=c||1;this.width=a;this.height=b;if(this.Vba){this.scale=1;this.Nz=c||1}else{this.scale=c;this.Nz=1}this.px=this.width*this.scale;this.ox=this.height*this.scale;this.cQ=this.width*c;this.bQ=this.height*c;this.canvas.width=this.width*c;this.canvas.height=this.height*c;this.Fm.x=window.Yc&&wm.fMa&&wm.fMa.settingsWidth?(a-wm.fMa.settingsWidth)/2:a/2;this.Fm.y=
b/2;this.dfa=this.canvas.style.width.replace("px","")*1||this.canvas.width;this.hua=this.canvas.style.height.replace("px","")*1||this.canvas.height;this.Vba&&(this.context[this.jV]=w);this.Nz!=1&&this.context.scale(this.Nz,this.Nz);this.Kwa()},oib:function(a){this.Hp?this.oda=a:this.IPa(a)},IPa:function(a){ig.t=new a;ig.g.jib(ig.t)},jib:function(a){if(typeof a.xa=="function"){this.delegate=a;this.Yjb()}else ig.g.error(Error("System.setDelegate: No run() function in object"))},uw:L("zoom"),uQa:function(a,
b){this.Fm.x=Math.round(a.Vb(0,this.width));this.Fm.y=Math.round(b.Vb(0,this.height))},kkb:function(){clearInterval(this.zKa);this.Hp=w},Yjb:function(){this.kkb();window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame;this.Zaa>=60&&window.requestAnimationFrame?window.requestAnimationFrame(this.xa.bind(this),this.canvas):this.zKa=setInterval(this.xa.bind(this),1E3/this.Zaa);this.Hp=j},upa:function(a){if(this.zoom==
1)a.x=a.y=0;else{a.x=(this.width-this.width/this.zoom)*(this.Fm.x/this.width);a.y=(this.height-this.height/this.zoom)*(this.Fm.y/this.height)}return a},Kv:function(a,b,c){a.x=(b-ig.t.screen.x-this.Fm.x)*this.zoom+this.Fm.x;a.y=(c-ig.t.screen.y-this.Fm.y)*this.zoom+this.Fm.y;return a},QIa:function(a,b,c){a.x=(b-this.Fm.x)/this.zoom+this.Fm.x+ig.t.screen.x;a.y=(c-this.Fm.y)/this.zoom+this.Fm.y+ig.t.screen.y;return a},Mpb:function(a,b,c,d){a.x=(b-this.Fm.x)/this.zoom+this.Fm.x+d.x;a.y=(c-this.Fm.y)/
this.zoom+this.Fm.y+d.y;return a},clear:function(a){this.context.fillStyle=a;this.context.fillRect(0,0,this.px,this.ox)},dkb:function(){if(this.zoom!=1){this.context.save();this.context.translate(this.Fm.x,this.Fm.y);this.context.scale(this.zoom,this.zoom);this.context.translate(-this.Fm.x,-this.Fm.y);this.ova=w}},k8a:function(){if(this.zoom!=1){this.context.restore();this.ova=j}},xa:function(){if(window.aj)a();else try{a()}catch(b){ig.g.error(b)}},bu:function(a){a=a.getContext("2d");this.Vba&&(a[this.jV]=
w);return a},error:function(a){this.N$=j;var b={};if(ig.t){b.map=ig.t.E3||"NO MAP";b.version=ig.t.lJa()}else{b.map="GAME INIT";b.version="---"}b.platform=ig.Y$a();b.OS=ig.Iza;b.browser=ig.browser;b.browserVersion=ig.lma;b.webAudioSupport=ig.XZ.isSupported();b.webAudioOption=localStorage.getItem("options.useWebAudio");var c={};ig.t&&ig.t.EIa(c);window.GAME_ERROR_CALLBACK&&window.GAME_ERROR_CALLBACK(a,b,c);f(a)},z2:function(){return this.zg||this.Ywa},Ae:function(a){return this.ova?Math.round(a*this.scale*
this.Nz)/this.Nz:Math.round(a)*this.scale},Bob:function(a,b,c){var d=ig.aq("canvas");d.width=a*ig.g.scale;d.height=b*ig.g.scale;a=this.context;this.context=this.bu(d);c();this.context=a;return d},tQa:function(a){this.Ywa=a;if(ig.Cp)if(a){ig.Cp.Fsa();ig.Yd.Fsa()}else{ig.Cp.Esa();ig.Yd.Esa()}},f6a:function(){for(var a=0;a<this.Vaa.length;++a)this.Vaa[a](this.zg)},xQ:function(a){if(a!=this.baa){this.baa=a;this.Kwa()}},Kwa:function(){var a="cursorSize"+Math.round(this.dfa/this.width);this.baa&&(a=a+(" "+
this.baa));this.XO.className=a},setCanvasSize:function(a,b,c){this.canvas.style.width=a+"px";this.canvas.style.height=b+"px";this.canvas.className=c?"borderHidden":"";this.dfa=a;this.hua=b;this.Kwa()},setFocusLost:function(){this.zg=j},regainFocus:function(){this.zg=w;this.f6a()},addFocusListener:function(a){this.Vaa.push(a)},removeFocusListener:function(a){this.Vaa.xf(a)},setMasterVolume:function(a){ig.Yd.xib(a)},setSoundVolume:function(a){ig.Yd.volume=a;ig.Yd.Nib(a)},setMusicVolume:function(a){ig.Cp.volume=
a;ig.Yd.zib(a)}})});ig.G=j;ig.I("impact.base.input").H(function(){ig.Ua={kia:-1,U7:-3,oza:-4,nza:-5,qxa:8,hBa:9,kya:13,qS:19,KTa:20,nya:27,FAa:32,TYa:33,SYa:34,QUa:35,cWa:36,bza:37,zBa:38,lAa:39,$xa:40,mWa:45,BUa:46,GBa:48,HBa:49,IBa:50,JBa:51,KBa:52,LBa:53,h2a:54,MBa:55,NBa:56,i2a:57,fxa:65,pxa:66,Exa:67,Vxa:68,E:69,zVa:70,Eya:71,Lya:72,iWa:73,PWa:74,VWa:75,Yha:76,T7:77,vza:78,DYa:79,RYa:80,eAa:81,jAa:82,k8:83,gBa:84,M1a:85,N1a:86,CBa:87,a2a:88,f2a:89,g2a:90,mYa:96,nYa:97,oYa:98,pYa:99,qYa:100,rYa:101,
sYa:102,tYa:103,uYa:104,vYa:105,DXa:106,ixa:107,z_a:109,AUa:110,DUa:111,AVa:112,CVa:113,DVa:114,EVa:115,FVa:116,GVa:117,vya:118,wya:119,HVa:120,tya:121,uya:122,BVa:123,rAa:16,Rxa:17,jxa:18,EQUAL:187,Kmb:187,PTa:188,BXa:189,WYa:190,j_a:186,bnb:186,QVa:192,Fmb:192,o_a:191,tmb:191,yTa:219,Ymb:219,wTa:220,xTa:221,n_a:222,Klb:222};ig.Gb={gm:1,Jc:2};ig.Xha=ig.ra.extend({Bz:{},ug:{},T4:{},g3:{},$qa:{},RN:[],bb:s,pLa:w,oLa:w,Bcb:w,Sh:{x:0,y:0},ep:{x:0,y:0,z:0},dd:j,JLa:{x:0,y:0},Uba:w,f:F(),Lbb:function(){if(!this.pLa){this.pLa=
j;window.addEventListener("DOMMouseScroll",this.BMa.bind(this),w);window.addEventListener("mousewheel",this.BMa.bind(this),w);ig.g.XO.addEventListener("contextmenu",this.f7a.bind(this),w);ig.g.XO.addEventListener("mousedown",this.keydown.bind(this),w);window.addEventListener("mouseup",this.keyup.bind(this),w);document.addEventListener("mousemove",this.mousemove.bind(this),w);window.addEventListener("blur",this.blur.bind(this),w);window.addEventListener("focus",this.focus.bind(this),w);ig.g.XO.addEventListener("touchstart",
this.keydown.bind(this),w);ig.g.XO.addEventListener("touchend",this.keyup.bind(this),w);ig.g.XO.addEventListener("touchmove",this.mousemove.bind(this),w);ig.pa.set("mouse.active",j)}},Kbb:function(){if(!this.oLa){this.oLa=j;window.addEventListener("keydown",this.keydown.bind(this),w);window.addEventListener("keyup",this.keyup.bind(this),w)}},zqb:function(){this.Bcb||window.addEventListener("devicemotion",this.L7a.bind(this),w)},BMa:function(a){if(!ig.g.N$&&!ig.g.zg){var b=this.Bz[(a.wheelDelta?a.wheelDelta/
60:-a.detail/2)>0?ig.Ua.oza:ig.Ua.nza];if(b){this.ug[b]=j;this.T4[b]=j;this.g3[b]=j;if(this.NKa()){a.stopPropagation();a.preventDefault()}this.RN.push(b)}this.bb=ig.Gb.gm}},mousemove:function(a){ig.Xha.L$a(this.Sh,a);this.Sh.x=this.Sh.x*(ig.g.width/ig.g.dfa);this.Sh.y=this.Sh.y*(ig.g.height/ig.g.hua);if(!this.dd&&!e.Kaa(this.JLa,this.Sh)){this.dd=j;e.assign(this.JLa,this.Sh)}},f7a:function(a){if(this.Bz[ig.Ua.U7]){a.stopPropagation();a.preventDefault()}},NKa:function(){return window.parent!=window},
OKa:function(){return this.NKa()&&!document.hasFocus()},keydown:function(a){if(!ig.g.N$&&!this.OKa()&&!(this.Uba&&a.type!="mousedown"))if(ig.g.z2())a.type=="mousedown"&&ig.g.regainFocus();else{if(a.type=="mousedown")this.dd=j;this.bb=ig.Gb.gm;if(a.target.type!="text"){var b=a.type=="keydown"?a.keyCode:a.button==2?ig.Ua.U7:ig.Ua.kia;(a.type=="touchstart"||a.type=="mousedown")&&this.mousemove(a);if(b=this.Bz[b]){this.ug[b]=j;if(!this.$qa[b]){this.T4[b]=j;this.$qa[b]=j}a.stopPropagation();a.preventDefault()}}}},
keyup:function(a){if(!ig.g.N$&&!this.OKa()&&!(this.Uba&&a.type!="mouseup")&&a.target.type!="text"&&!(ig.g.z2()&&a.type=="mouseup")){this.bb=ig.Gb.gm;var b=this.Bz[a.type=="keyup"?a.keyCode:a.button==2?ig.Ua.U7:ig.Ua.kia];if(b){this.g3[b]=j;this.RN.push(b);a.stopPropagation();a.preventDefault()}}},blur:function(a){window.jWa||ig.g.tQa(j);for(var b in this.ug)if(this.ug[b]==j){this.g3[b]=j;this.RN.push(b);a.stopPropagation();a.preventDefault()}},focus:function(){window.jWa||ig.g.tQa(w)},L7a:function(a){this.ep=
a.Rnb},bind:function(a,b){a<0?this.Lbb():a>0&&this.Kbb();this.Bz[a]=b},gob:function(a,b){var c=ig.tY(a),d=this;c.addEventListener("touchstart",function(a){d.Ekb(a,b)},w);c.addEventListener("touchend",function(a){d.Dkb(a,b)},w)},unbind:function(a){this.Bz[a]=s},ptb:function(){this.Bz=[]},state:function(a){return this.ug[a]},Bc:function(a){return ig.t.sJ?this.T4[a]:w},ALa:function(a){return ig.t.sJ?this.g3[a]:w},T6a:function(){for(var a=0;a<this.RN.length;a++){var b=this.RN[a];this.ug[b]=w;this.$qa[b]=
w}this.RN=[];this.T4={};this.g3={}},Ekb:function(a,b){this.ug[b]=j;this.T4[b]=j;a.stopPropagation();a.preventDefault();return w},Dkb:function(a,b){this.RN.push(b);a.stopPropagation();a.preventDefault();return w}});ig.Xha.L$a=function(a,b){for(var c=ig.g.canvas,d=0,e=0;c!=s;){d=d+c.offsetLeft;e=e+c.offsetTop;c=c.offsetParent}var c=b.pageX,h=b.pageY;if(b.touches){c=b.touches[0].clientX;h=b.touches[0].clientY}a.x=c-d;a.y=h-e}});ig.G=j;ig.I("impact.base.lang").J("impact.base.loader").H(function(){ig.fXa=
ig.SH.extend({ui:"Lang",labels:{},bla:0,f:function(){this.parent()},get:function(a){for(var a=a.split("."),b=this.labels,c=0;c<a.length;++c){b=b[a[c]];if(b===g)return"UNKNOWN LABEL"}return b},Us:function(){for(var a=0;a<ig.HV.length;++a){var b=ig.root+ig.HV[a].dr("data/lang/","."+ig.ux+".json");$.ajax({dataType:"json",url:b+ig.kl(),context:this,success:this.onload.bind(this),error:this.onerror.bind(this)})}this.pka()},onerror:function(){this.bla++;ig.g.error(Error("Loading of a language file failed."));
this.pka()},onload:function(a){this.bla++;this.pka();if(a.DOCTYPE!="STATIC-LANG-FILE")ig.g.error(Error("Language File has wrong format."));else{for(var b=a.feature.split("."),c=this.labels,d=0;d<b.length;++d){var e=b[d];c[e]||(c[e]={});c=c[e]}for(var h in c){ig.warn("Language File adds labels to already existing name space: "+a.feature);break}for(d in a.labels)c[d]=a.labels[d]}},pka:function(){this.bla==ig.HV.length&&this.zk(j)}});ig.Oa=ig.ra.extend({value:s,data:s,Lcb:s,yfb:s,f:function(b){this.data=
b;this.Lcb=b.langUid||1;this.value=ig.Oa.wc(this.data);this.yfb=a||s},LC:M("data"),toString:M("value")});var a=s;ig.Oa.$Pa=function(b){a=b};ig.Oa.Rpb=function(){return a};ig.Oa.wc=function(a,b){return a&&typeof a=="object"?(b?a[ig.ux]!=g:a[ig.ux])&&a[ig.ux]!=ig.ux?a[ig.ux]:(b?a.en_US!=g:a.en_US)&&a.en_US!="en_US"?a.en_US:"MISSING LABEL":a||"MISSING LABEL"}});ig.G=j;ig.I("impact.base.impact").J("dom.ready","impact.base.image","impact.base.font","impact.base.sound","impact.base.loader","impact.base.system",
"impact.base.input","impact.base.sound","impact.base.vars","impact.base.lang").H(function(){ig.ddb=s;ig.cdb=function(){var a=sc.uUa,b=window.IG_GAME_FPS||60,c=window.IG_WIDTH,d=window.IG_HEIGHT,e=window.IG_GAME_SCALE,h=sc.C0a;if(window.IG_LANG)ig.ux=window.IG_LANG;else{var k=localStorage.getItem("IG_LANG");if(k)ig.ux=k;else{ig.ux="en_US";localStorage.setItem("IG_LANG",ig.ux)}}ig.pa=ig.vars=new ig.BBa;ig.g=ig.system=new ig.W0a("#canvas","#game",b,c,d,e||1);ig.lang=new ig.fXa;ig.input=new ig.Xha;ig.Yd=
new ig.x0a;ig.Cp=new ig.jYa;ig.ready=j;a=new (h||ig.eZ)(a);a.load();ig.ddb=a}})})();window.Vec2=window.O1a;window.Vec3=window.P1a;window.Line2=window.pXa;window.KeySpline=window.zH;window.KEY_SPLINES=window.WWa;window.assert=window.assert;window.assertContent=window.T5a;window.v5||(window.v5={},window.sc=window.v5);ig.G=j;
ig.I("impact.base.sprite-fx").J("impact.base.image").H(function(){ig.A0a=ig.ra.extend({delay:0,duration:0,f:function(a){this.delay=a.delay||0;this.duration=a.duration||0},lB:function(a,b,c){b<this.delay||this.apply(a,(b-this.delay)/(this.duration||c))},apply:F()});ig.HAa={};ig.HAa.SLIDE=ig.A0a.extend({dir:s,start:0,end:0,oh:s,f:function(a){this.parent(a);this.dir=ig.Zb.zh[a.dir];if(this.dir==g)this.dir=ig.Zb.zh.EAST;this.start=a.start||0;this.end=a.end||0;this.oh=KEY_SPLINES[a.keySpline]||KEY_SPLINES.EASE_IN_OUT},
apply:function(a,b){var b=Math.min(b,1),b=this.oh.get(b),c=(1-b)*this.start+b*this.end;if(this.dir==ig.Zb.zh.EAST){c=Math.round(a.size.x*c);a.size.x=a.size.x-c;a.i.x=a.i.x+c}else if(this.dir==ig.Zb.zh.WEST){c=Math.round(a.size.x*c);a.size.x=a.size.x-c;a.src.x=a.src.x+c}else if(this.dir==ig.Zb.zh.SOUTH){c=Math.round((a.size.y+a.size.z)*c);if(a.size.y>=c){a.size.y=a.size.y-c;a.i.y=a.i.y+c}else{c=c-a.size.y;a.i.y=a.i.y-a.size.y;a.size.y=0;a.size.z=a.size.z-c}}else if(this.dir==ig.Zb.zh.NORTH){c=Math.round((a.size.y+
a.size.z)*c);a.src.y=a.src.y+c;if(a.size.y>=c)a.size.y=a.size.y-c;else{c=c-a.size.y;a.size.y=0;a.size.z=a.size.z-c;a.i.z=a.i.z+c}}}})});ig.G=j;
ig.I("impact.base.animation").J("impact.base.loader","impact.base.timer","impact.base.image","impact.base.sprite-fx").H(function(){function a(a,b,c){c=c*(1-a.nm);a.nm=a.nm+c;a.color.Ec(b,c/a.nm)}function b(a,b){if(b.namedSheets)for(var c in b.namedSheets){var d=b.namedSheets[c];if(!(d instanceof ig.tg)){d=ig.tg.OT(b.namedSheets[c]);a.R$.push(d)}a.Bra[c]=d}}function c(a,b,d,e){var e=e||{},h=b.sheet,e=ig.merge({},e,j);ig.merge(e,b,j);if(e.sheet&&typeof e.sheet=="object"&&!(e.sheet instanceof ig.tg)){h=
ig.tg.OT(e.sheet);a.R$.push(h);e.sheet=h}if(b.name)if(h=a.PCa(e.sheet)){h=d(a.PCa(e.sheet),e);a.NEa(b.name,h)}if(b.SUB){b=b.SUB;for(h=0;h<b.length;++h)c(a,b[h],d,e)}}function d(a,b){return new ig.WAa(new ig.Yga(a,b))}function e(a,b){var c=new ig.fYa(b);if(b.frames)c.Thb(a,b);else if(b.dirFrames)for(var d=0;d<b.dirFrames.length;d++){var e=ig.merge({},b,j);e.frames=b.dirFrames[d];e.flipX=b.flipX&&b.flipX[d]||w;c.e5a(new ig.Yga(a,e))}return c}ig.tg=ig.ra.extend({width:8,height:8,Vi:0,Bg:0,Bl:0,xc:s,
f:function(a,b,c,d,e,h){this.width=b;this.height=c;this.Vi=d||0;this.Bg=e||0;this.Bl=h||0;this.xc=new ig.$(a)},gpb:function(){this.xc.n5a("damage","MONOCHROME",{Zob:1,Yob:1.2,Xob:2,xob:64})},Lv:function(a,b){return this.xc.Lv(a,b,this.width,this.height,this.Vi,this.Bg,this.Bl)},Qa:function(){this.xc.zc()}});ig.tg.OT=function(a){return new ig.tg(a.src,a.width,a.height,a.offX,a.offY,a.xCount)};ig.Xy={NO_EXPAND:1,Y_EXPAND:2,Z_EXPAND:3,YZ_EXPAND:4,Y_FLAT:5,Z_FLAT:6};var h=Vec3.create();ig.Yga=ig.ra.extend({sheet:s,
bva:ig.Xy.NO_EXPAND,Ql:0,stop:w,hd:{x:w,y:w},cb:{x:0,y:0},n$:w,Qg:0,tz:0,ZA:[],rPa:s,aba:s,L1:s,Eoa:s,offset:s,ll:s,size:s,Ze:s,LO:w,oJa:w,fx:s,f:function(a,b){!a instanceof ig.tg&&f(Error("Tried to initiale Animation without ig.TileSheet object"));this.sheet=a;if(b.shapeType)this.bva=ig.Xy[b.shapeType];this.cb=b.pivot?{x:b.pivot.x,y:b.pivot.y}:{x:this.sheet.width/2,y:this.sheet.height/2};this.hd.x=b.flipX||w;this.hd.y=b.flipY||w;this.offset=b.offset||s;this.size=b.size||s;this.ll=b.gfxOffset||s;
this.n$=b.centerPivot||w;this.LO=b.guiSprites||w;this.Qg=b.wallY||0;if(b.aboveZ)this.tz=b.aboveZ;this.Ze=b.renderMode||s;this.oJa=b.globalTiming||w;this.Ql=b.time||0.1;this.ZA=ig.copy(b.frames);if(b.tileOffset)for(var c=0;c<this.ZA.length;c++)this.ZA[c]=this.ZA[c]+b.tileOffset;if(b.fx){var d=b.fx;this.fx=[];for(c=0;c<d.length;++c){var e=d[c];this.fx.push(new ig.HAa[e.type](e))}}this.rPa=b.framesSpriteOffset||s;this.aba=b.framesGfxOffset||s;this.L1=b.framesAlpha||s;this.Eoa=b.framesAngle||s;this.stop=
!b.repeat},Eh:function(){return this.Ql*this.ZA.length},Xoa:function(){return this.ZA.length},csa:s,Vk:s,lB:function(a,b,c,d){var e=this.oJa?ig.t.nT:c.n,k=this.ZA.length;if(k){var l=Math.floor(e/this.Ql),k=this.stop?Math.min(l,k-1):l%k,l=this.sheet,n=this.sheet.xc,t;this.size?b.v(this.size.x,this.size.y,this.size.z,this.size.y*(this.Qg||0)):b.kQa(a,l.width,l.height,this.bva,this.Qg);Vec3.Sa(h,0,0,0);this.offset&&Vec3.add(h,this.offset);var o;if(o=this.rPa){t=k*3;Vec3.Y_(h,(c.Dd?-1:1)*o[t],o[t+1],
o[t+2])}b.pfa(a,h,this.bva,this.Qg);t=this.ZA[k];if(t==-1)b.bB();else{t=l.Lv(m,t);b.QPa(a,l.width,l.height,n,t.x,t.y);d?b.Rua(0,0,0,0):b.Sua(a);l=d=0;if(this.ll){d=(c.Dd?-1:1)*this.ll.x;l=this.ll.y}if(this.aba){t=k*2;d=d+(c.Dd?-1:1)*this.aba[t];l=l+this.aba[t+1]}n=c.alpha;this.L1&&(n=n*this.L1[k]);t=c.oc;this.Eoa&&(t=t+(c.Dd?-1:1)*this.Eoa[k]*Math.PI*2/360);b.wd(n);b.setTransform(c.Ia,c.Ma,t);b.tz=this.tz;b.JPa(d,l);b.I5(c.Dd?!this.hd.x:this.hd.x,this.hd.y);b.rb(this.cb.x,this.cb.y);this.n$&&b.n$(a);
b.Ze=this.Ze;if(this.fx){a=this.Ql*this.ZA.length;for(c=0;c<this.fx.length;++c)this.fx[c].lB(b,e,a)}}}else b.bB()}});ig.gYa=ig.ra.extend({name:s,group:s,KW:s,xq:0,ml:0,padding:Vec2.create(),size:{x:0,y:0,z:0},i:{x:0,y:0,z:0},nb:s,MRa:w,f:function(a,b,c){this.name=a;this.group=c.group;this.KW=c.persistAnim;this.xq=ig.la[c.collType||"BLOCK"];this.ml=ig.em[c.heightShape||"NONE"];Vec3.assign(this.size,c.size);c.padding&&Vec2.assign(this.padding,c.padding);Vec3.assign(this.i,c.pos);a=c.anims;a.namedSheets=
b;this.nb=new ig.wj(a)},u7a:function(a,b){var c=a.kb(k);c.z=a.b.i.z;c.x=c.x-b.x/2;c.y=c.y-b.y/2;Vec3.add(c,this.i);return ig.t.af(a.cIa?a.cIa():ig.nxa,c.x,c.y,c.z,{owner:a,size:this.size,padding:this.padding,partName:this.name,group:this.group,persistAnim:this.KW,animSheet:this.nb,collType:this.xq,heightShape:this.ml})}});var k=Vec3.create(),l=Vec3.create();ig.nia=ig.ra.extend({QP:s,GI:Vec3.create(),anchor:s,Ql:0,$aa:0,stop:w,woa:w,Msa:{},f:function(a,b,c){Vec3.assign(this.GI,a);this.QP=b;this.Ql=
c.time;this.$aa=c.frameCount;this.stop=!c.repeat;this.anchor=c.anchor||s;this.woa=c.flipToLeft||w;var a=c.partAnims,d;for(d in a)this.Msa[d]={vb:a[d].anim,Kfb:a[d].posFrames,reset:a[d].reset}},GU:function(a){if(!this.anchor)return s;var b=Vec3.create(this.anchor);if(this.woa&&a<0)b.x=-b.x;return b},Eh:function(){return this.Ql*this.$aa},Xoa:M("$aa"),csa:function(a){var b=a.b;b.xl.length==0&&ig.nia.mKa(a,this.QP,this.GI);a.Za.$ta();for(var a=b.xl,c=a.length,a=b.xl,c=a.length;c--;){var b=a[c].P,d=this.Msa[b.ii];
if(d){if(b.ng){b.show(j);b.eP=j}if(!b.KW||window.Yc){b.Ja(d.vb,d.reset);d.reset&&b.Za.$ta();b.MRa=d.reset;b.O6()}}else b.ng||b.hide()}},Vk:function(a,b){var c=a.b;c.xl.length==0&&this.mKa(a);var d=c.kb(k);d.z=c.i.z;d.x=d.x-this.GI.x/2;d.y=d.y-this.GI.y/2;var e=w;this.woa&&(a.face&&a.face.x<0)&&(e=j);for(var h=this.$aa,n=Math.floor(b.n/this.Ql),h=(this.stop?Math.min(n,h-1):n%h)*3,c=c.xl,n=c.length;n--;){var m=c[n],t=m.P,o=this.Msa[t.ii],B=this.QP[t.ii];if(o){var E=t.Za;if(t.MRa)E.n=b.n-ig.g.ga;E.Dd=
e;E.alpha=b.alpha;E.Ia=b.Ia;E.Ma=b.Ma;o=o.Kfb;B=Vec3.assign(l,B.i);Vec3.Y_(B,o[h],o[h+1],o[h+2]);if(e)B.x=this.GI.x-B.x-m.size.x;Vec3.add(B,d);m.l(B.x,B.y,B.z,!t.eP);t.eP=w}}},lB:function(a,b,c){b.Vh(s);b.v(this.GI.x,this.GI.y,0);b.pfa(a);b.Sua(a);b.wd(c.alpha)}});ig.nia.mKa=function(a,b,c){var d=a.b;d.v(c.x,c.y,c.z);d.type=ig.la.IGNORE;d.v(c.x,c.y,c.z);for(var e in b){var h=b[e].u7a(a,c);d.C5a(h.b);h.ld()}};var m={};ig.rTa=ig.ra.extend({vg:s,op:s,n:0,Vr:0,alpha:1,oc:0,Ia:1,Ma:1,Dd:w,H0:[],f:function(){this.n=
0},reset:function(){this.n=0;var a=this.constructor.prototype;this.vg=a.vg;this.op=a.op;this.Vr=a.Vr;this.alpha=a.alpha;this.oc=a.oc;this.Ia=a.Ia;this.Ma=a.Ma;this.H0.length=0},NQa:function(){var a=this.vg[0];if(a)this.n=a.Eh()*Math.random()},Epa:function(){return!!this.vg},D5:function(a,b){if(b&&this.vg!=b){this.vg=b;for(var c=this.vg.length;c--;){var d=b[c];window.Yc||d.csa&&d.csa(a)}}},j5a:function(a){this.H0.push(a)},GIa:function(){if(!this.vg)return 0;var a=this.vg[0];if(!a)return 0;var b=a.Xoa(),
c=Math.floor(this.n/a.Ql);return a.stop?Math.min(c,b-1):c%b},Qqb:function(){return!this.vg?w:!this.vg[0].stop},fbb:function(){if(!this.vg)return w;var a=this.vg[0],b=Math.floor(this.n/a.Ql);return a.stop&&b>=a.Xoa()},$ta:function(){this.Vr=this.n=0;return this},update:function(a,b){this.n=this.n+ig.g.ga*b;var c=this.vg.length;for(this.Vr=-1;c--;){var d=this.vg[c],e=Math.floor(this.n/d.Eh());this.Vr=this.Vr==-1?e:Math.min(this.Vr,e);d.Vk&&d.Vk(a,this,b)}},lB:function(a){if(this.vg){a.dm(this.vg.length,
this.vg.length>0&&this.vg[0].LO);for(var b=this.vg.length;b--;){var c=this.vg[b],d=a.Ta[b];!c||c.sheet&&!c.sheet.xc.loaded?d.bB():c.lB(a,d,this,b>0)}this.pY(a)}else a.dm(0)},pY:function(b){var c=n,d=o;c.color=s;c.nm=0;d.color=s;d.nm=0;for(var e=this.H0.length,h=s;e--;){var k=this.H0[e],l=k.qh?d:c;if(k.color){if(k.Up!==s){h||(h=[]);h[k.Up]||(h[k.Up]={sh:{color:s,nm:0},qh:{color:s,nm:0}});l=k.qh?h[k.Up].sh:h[k.Up].qh}if(l.color)a(l,k.color,k.alpha);else{l.color=new ig.Yn(k.color);l.nm=k.alpha}}else this.H0.splice(e,
1)}for(e=b.Ta.length;e--;){if((k=h&&h[e])&&k.sh.color){c.color&&a(k.sh,c.color,c.nm);b.Ta[e].Nua(k.sh.color.kY(),k.sh.nm)}else b.Ta[e].Nua(c.color?c.color.kY():s,c.nm);if(k&&k.qh.color){d.color&&a(k.qh,d.color,d.nm);b.Ta[e].Dua(k.qh.color.kY(),k.qh.nm)}else b.Ta[e].Dua(d.color?d.color.kY():s,d.nm)}}});var n={},o={};ig.nha=ig.ra.extend({color:s,alpha:s,Up:s,qh:w,f:function(a,b,c,d){this.color=new ig.Yn(a);this.alpha=b;this.Up=c||s;this.qh=d},clear:function(){this.color=s}});ig.WAa=ig.ra.extend({vg:[],
f:function(a){this.vg.push(a)},R1:M("vg"),GU:function(a,b){var c=this.vg[0];return c&&c.GU?c.GU(a,b):s},Eh:function(){for(var a=0,b=this.vg.length;b--;)a=Math.max(this.vg[b].Eh(),a);return a},merge:function(a){this.vg.push.apply(this.vg,a.vg)}});ig.fYa=ig.ra.extend({iD:0,vg:[],gT:s,hT:s,iT:s,f:function(a){this.iD=a.dirs*1;this.gT=a.anchorOffsetX;this.hT=a.anchorOffsetY;this.iT=a.anchorOffsetZ},Thb:function(a,b){var c=b.tileOffsets,d=b.flipX,e=b.offset,h=b.dirOffsets,k=b.allDirFlipX||w;this.iD=b.tileOffsets.length;
this.vg=[];for(var l=0;l<this.iD;l++){var n=k?(this.iD-l)%this.iD:l;b.tileOffset=c[n];b.flipX=d&&d[n]||0;k&&(b.flipX=!b.flipX);if(h){var m=Vec3.create();e&&Vec3.add(m,e);m.x=m.x+(h[n]&&h[n][0]||0)*(k?-1:1);m.y=m.y+(h[n]&&h[n][1]||0);m.z=m.z+(h[n]&&h[n][2]||0);b.offset=m}this.vg[l]=[new ig.Yga(a,b)]}},e5a:function(a){this.vg.push([a])},merge:function(a){this.iD!=a.iD&&f(Error("Tried to merge Multi Dir Anims with different number of directions. Not supported."));for(var b=0;b<this.iD;++b){var c=this.vg[b];
c.push.apply(c,a.vg[b])}},GU:function(a,b){if(!this.gT&&!this.hT&&!this.iT)return s;var c=ig.Z1(a,b,this.iD);return{x:this.gT&&(this.gT.length?this.gT[c]:this.gT)||0,y:this.hT&&(this.hT.length?this.hT[c]:this.hT)||0,z:this.iT&&(this.iT.length?this.iT[c]:this.iT)||0}},R1:function(a){return this.vg[ig.Z1(a.face.x,a.face.y,this.iD)]},Eh:function(){for(var a=0,b=this.vg[0],c=b.length;c--;)a=Math.max(b[c].Eh(),a);return a}});ig.Z1=function(a,b,c){switch(c){case 1:return 0;case 2:return a>=0?0:1;case 4:return Math.abs(b)>
Math.abs(a)?b<0?0:2:a>0?1:3;case 6:return a>=0?b<=0?0+(57*a>-100*b):1+(57*a<100*b):b<=0?4+(-57*a<-100*b):3+(-57*a>100*b);case 8:return Math.abs(b)>2.414*Math.abs(a)?b<0?0:4:Math.abs(a)>2.414*Math.abs(b)?a>0?2:6:a>0?b<0?1:3:b>0?5:7;case 16:var c=Math.abs(a),d=Math.abs(b);return d>5.0273*c?b<0?0:8:d<0.1989*c?a>0?4:12:d>1.4966*c?a>0?b<0?1:7:b>0?9:15:d>0.6682*c?a>0?b<0?2:6:b>0?10:14:a>0?b<0?3:5:b>0?11:13}};ig.wIa=function(a,b,c){c=c||Vec2.create();switch(b){case 1:Vec2.Sa(c,0,1);break;case 2:switch(a){case 0:Vec2.Sa(c,
1,0);break;case 1:Vec2.Sa(c,-1,0)}break;case 6:switch(a){case 0:Vec2.Sa(c,0.5,-0.866);break;case 1:Vec2.Sa(c,1,0);break;case 2:Vec2.Sa(c,0.5,0.866);break;case 3:Vec2.Sa(c,-0.5,0.866);break;case 4:Vec2.Sa(c,-1,0);break;case 5:Vec2.Sa(c,-0.5,-0.866)}break;case 8:switch(a){case 0:Vec2.Sa(c,0,-1);break;case 1:Vec2.Sa(c,1,-1);break;case 2:Vec2.Sa(c,1,0);break;case 3:Vec2.Sa(c,1,1);break;case 4:Vec2.Sa(c,0,1);break;case 5:Vec2.Sa(c,-1,1);break;case 6:Vec2.Sa(c,-1,0);break;case 7:Vec2.Sa(c,-1,-1)}break;
case 16:switch(a){case 0:Vec2.Sa(c,0,-1);break;case 1:Vec2.Sa(c,0.38268,-0.92387);break;case 2:Vec2.Sa(c,1,-1);break;case 3:Vec2.Sa(c,0.92387,-0.38268);break;case 4:Vec2.Sa(c,1,0);break;case 5:Vec2.Sa(c,0.92387,0.38268);break;case 6:Vec2.Sa(c,1,1);break;case 7:Vec2.Sa(c,0.38268,0.92387);break;case 8:Vec2.Sa(c,0,1);break;case 9:Vec2.Sa(c,-0.38268,0.92387);break;case 10:Vec2.Sa(c,-1,1);break;case 11:Vec2.Sa(c,-0.92387,0.38268);break;case 12:Vec2.Sa(c,-1,0);break;case 13:Vec2.Sa(c,-0.92387,-0.38268);
break;case 14:Vec2.Sa(c,-1,-1);break;case 15:Vec2.Sa(c,-0.38268,-0.92387)}break;default:f(Error("Does not support Direction Vel for numDirs: "+b))}return c};ig.hpa=function(a,b,c,d){return ig.wIa(ig.Z1(a,b,c),c,d)};var t=Vec2.create();ig.HKa=function(a,b){return ig.hpa(a.face.x,a.face.y,b,t).x<0};ig.wj=ig.CB.extend({ui:"AnimationSheet",Bra:{},R$:[],La:{},cjb:s,Pta:function(a,b){this.La[a]=b},COa:function(a){delete this.La[a]},Eba:function(a){return!!this.La[a]},NEa:function(a,b){this.La[a]?this.La[a].merge(b):
this.La[a]=b},Qa:function(){for(var a=0;a<this.R$.length;++a)this.R$[a].Qa()},JC:function(){return ig.root+this.path.dr("data/animations/",".json")+ig.kl()},onload:function(a){if(a)if(a.DOCTYPE=="MULTI_DIR_ANIMATION"){b(this,a);c(this,a,e)}else if(a.DOCTYPE=="MULTI_ENTITY_ANIMATION"){b(this,a);var h={},k;for(k in a.parts)h[k]=new ig.gYa(k,this.Bra,a.parts[k]);var l=a.baseSize;this.cjb={GI:l,QP:h};for(k in a.anims){var n=new ig.nia(l,h,a.anims[k]);this.NEa(k,new ig.WAa(n))}}else{b(this,a);c(this,a,
d)}},PCa:function(a){var b;(b=typeof a=="string"?this.Bra[a]:a)||ig.warn("Sheet '"+a+"' not found in AnimationSheet: "+this.path);return b}})});ig.G=j;
ig.I("impact.base.coll-entry").H(function(){ig.Gm={HB:0,via:1,NY:2};ig.em={NONE:0,NORTH_UP:1,EAST_UP:2,WEST_UP:3,SOUTH_UP:4};ig.bE={DEFAULT:0,STATIC_SIZE:1,RECTANGULAR:2};ig.DY={LOOSE:0,FIXED:1,IN_EARTH:2};ig.fUa=ig.ra.extend({P:s,YZ:w,oz:w,Ne:w,type:0,ns:ig.Gm.NY,shape:1,ml:ig.em.NONE,size:{x:0,y:0,z:0},padding:{x:0,y:0},nl:w,Px:ig.DY.LOOSE,ni:-1,pp:1,EJ:1,uk:0.2,uz:1,Ui:100,kg:1,mm:0,Xh:0.2,ada:40,se:0,nd:{height:0,uj:1,rh:300,ep:1},time:{lh:1,zra:1,Gj:w,ex:w},i:Vec3.create(),aa:0,jc:0,Ad:{type:ig.bE.DEFAULT,
size:0},Z:Vec3.create(),ow:Vec2.create(),Eb:Vec2.create(),hk:s,FW:s,xl:[],Zp:0,vm:0,mB:0,Lc:s,lv:[],g_:[],f:function(a){this.P=a;this.reset()},gKa:function(){if(this.Lc)return w;this.Lc={gF:w,bi:Vec3.create(),jp:Vec2.create(),mva:w,Uga:j,d7:w,Gfa:w,Ls:w,Eea:s,$j:s,Qx:Vec2.create(),mG:s,rda:w,ak:{eK:0,C3:Vec2.create(),BC:Vec2.create(),hO:0,rU:0,joa:w}};return j},reset:function(){var a=this.constructor.prototype;this.YZ=a.Ga;this.oz=a.oz;this.Ne=a.Ne;this.time.Gj=a.time.Gj;this.time.ex=a.time.ex;this.time.lh=
a.time.lh;this.type=a.type;this.ns=a.ns;this.shape=a.shape;this.ml=a.ml;Vec3.assign(this.size,a.size);Vec2.assign(this.padding,a.padding);this.nl=a.nl;this.Px=a.Px;this.ni=a.ni;this.pp=a.pp;this.EJ=a.EJ;this.uk=a.uk;this.uz=a.uz;this.Ui=a.Ui;this.rda=a.rda;this.kg=a.kg;this.mm=a.mm;this.Xh=a.Xh;this.ada=a.ada;this.se=a.se;this.nd.height=a.nd.height;this.nd.uj=a.nd.uj;this.nd.rh=a.nd.rh;this.nd.ep=a.nd.ep;Vec3.assign(this.i,a.i);this.aa=a.aa;this.jc=a.jc;this.Ad.size=a.Ad.size;this.Ad.type=a.Ad.type;
Vec3.assign(this.Z,a.Z);Vec2.assign(this.ow,a.ow);Vec3.assign(this.Eb,a.Eb);this.hk=a.hk;this.FW=a.FW;this.xl.length=0;this.Zp=a.Zp;this.vm=a.vm;this.mB=a.mB;this.Lc=a.Lc;this.lv.length=0;this.g_.length=0},l:function(a,b,e,h){var k=0,l=0,m=0,n=!isNaN(a)||!isNaN(b);if(n&&h&&this.Lc){this.Lc.bi.x=a-this.i.x;this.Lc.bi.y=b-this.i.y;this.Lc.bi.z=e-this.i.z;this.Lc.Ls=j}else{(h=n&&this.oz)&&ig.t.Nf.eX(this);if(!isNaN(a)){k=a-this.i.x;this.i.x=a}if(!isNaN(b)){l=b-this.i.y;this.i.y=b}h&&ig.t.Nf.bN(this);
if(!isNaN(e)){m=e-this.i.z;this.i.z=e;this.aa=ig.t.KC(this.i.z);this.jc=Math.min(this.jc,this.i.z);this.Lc&&(this.Lc.Uga=j)}if(this.Lc){if(!this.Lc.Gfa){this.Lc.Gfa=j;this.Lc.bi.x=this.Lc.bi.y=this.Lc.bi.z=0}this.Lc.bi.x=this.Lc.bi.x+k;this.Lc.bi.y=this.Lc.bi.y+l;this.Lc.bi.z=m;if(this.Lc.$j){this.Lc.Qx.x=this.Lc.Qx.x+k;this.Lc.Qx.y=this.Lc.Qx.y+l}}(isNaN(this.i.x)||isNaN(this.i.y)||isNaN(this.i.z))&&f(Error("Position update leads to NaN coordinate!"))}},Mp:function(a){var b=a!=ig.la.PASSIVE&&a!=
ig.la.NONE;this.type=a;ig.t.Nf&&(this.oz&&!b?ig.t.Nf.eX(this):!this.oz&&b&&ig.t.Nf.bN(this))},Eu:function(a){if(this.ns!=a){var b=this.ns;this.ns=a;this.YZ&&b==ig.Gm.HB&&ig.t.Nf.bFa(this)}},v:function(a,b,e){var h=this.oz;h&&ig.t.Nf.eX(this);this.size.x=a;this.size.y=b;this.size.z=e;h&&ig.t.Nf.bN(this)},nfa:function(a,b){var e=this.oz;e&&ig.t.Nf.eX(this);this.padding.x=a;this.padding.y=b;e&&ig.t.Nf.bN(this)},kb:function(a){a=a||Vec2.create();Vec2.Sa(a,this.i.x+this.size.x/2,this.i.y+this.size.y/2);
return a},C5a:function(a){this.xl.push(a);a.hk=this},n2:function(a){var b=this.time.Gj;!b&&(a&&this.time.ex)&&(b=j);a=b?ig.g.Da:ig.g.tp;return a=a*this.time.lh},update:function(){var c=this.i.z>this.jc||this.Z.z>0?this.uk:this.pp*this.EJ;if(Math.abs(this.Z.x)<2&&this.Eb.x==0)this.Z.x=0;if(Math.abs(this.Z.y)<2&&this.Eb.y==0)this.Z.y=0;var d=this.Ui*this.kg*this.time.zra,e=Vec2.ck(this.Z,c*12*ig.g.ga,b);if(this.Eb.x||this.Eb.y){Vec2.normalize(this.Eb);var h=Vec2.length(this.Z);if(h<=d+ig.xe.yh){var h=
d,k=Vec2.hj(this.Eb,e);k>=0&&Vec2.sub(e,Vec2.ck(this.Eb,k,a))}c=Vec2.ck(this.Eb,d*10*c*this.uz,a);this.Z.x=this.Z.x+c.x*ig.g.ga;this.Z.y=this.Z.y+c.y*ig.g.ga;Vec2.Vb(this.Z,0,Math.max(h,d))}this.Z.x=this.Z.x-e.x;this.Z.y=this.Z.y-e.y},contains:function(a,b,e){return!(this.i.x>a||this.i.x+this.size.x<a||this.i.y-this.i.z-(e?this.size.z:0)>b||this.i.y-this.i.z+this.size.y<b)},V2:function(a,b,e,h,k,l){return!this.nl&&!(this.i.x-this.padding.x>=a+h||this.i.x+this.padding.x+this.size.x<=a||this.i.y-this.padding.y>=
b+k||this.i.y+this.padding.y+this.size.y<=b||this.i.z>e+l||e>this.i.z+this.size.z)},trace:function(b,d,e,h,k,l,m,n,o,t){if(this.nl)return w;var r=d+(k<0?k:0)>=this.i.x+this.size.x,p=d+m+(k>0?k:0)<=this.i.x,q=e+(l<0?l:0)>=this.i.y+this.size.y,x=e+n+(l>0?l:0)<=this.i.y,o=h+o<=this.i.z,h=this.i.z+this.YIa(d,e,m,n,j)<=h+(t?ig.xe.az:0);if(r||p||q||x||o||h)return w;if(this.ml&&!(d>=this.i.x+this.size.x||d+m<=this.i.x||e>=this.i.y+this.size.y||e+n<=this.i.y)){Vec2.Sa(a,0,0);switch(this.ml){case ig.em.NORTH_UP:a.y=
-1;break;case ig.em.EAST_UP:a.x=1;break;case ig.em.SOUTH_UP:a.y=1;break;case ig.em.WEST_UP:a.x=-1}if(a.x*k+a.y*l>0){b.gf=0;b.dir.x=a.x;b.dir.y=a.y;return j}}if(k!=0&&l!=0){r=d+k+(k<0?m:0)-(this.i.x+(k>0?this.size.x:0));p=e+l+(l>0?n:0)-(this.i.y+(l<0?this.size.y:0));if(r*k>=0&&p*l>=0&&Math.abs(r)<Math.abs(k)&&Math.abs(p)<Math.abs(l)&&Math.abs(r/p)>Math.abs(k/l))return w;p=e+l+(l<0?n:0)-(this.i.y+(l>0?this.size.y:0));r=d+k+(k>0?m:0)-(this.i.x+(k<0?this.size.x:0));if(r*k>=0&&p*l>=0&&Math.abs(r)<Math.abs(k)&&
Math.abs(p)<Math.abs(l)&&Math.abs(p/r)>Math.abs(l/k))return w}return this.shape==ig.mk.RECTANGLE?ig.pi.Collision.Hfa(b,d,e,k,l,m,n,this.i.x,this.i.y,this.size.x,this.size.y):ig.pi.Collision.Hfa(b,d,e,k,l,m,n,this.i.x,this.i.y,this.size.x,this.size.y,this.shape-2)},PU:function(a,b){var e=b||{};e.x=(Math.max(this.i.x,a.i.x)+Math.min(this.i.x+this.size.x,a.i.x+a.size.x))/2;e.y=(Math.max(this.i.y,a.i.y)+Math.min(this.i.y+this.size.y,a.i.y+a.size.y))/2;e.z=(Math.max(this.i.z,a.i.z)+Math.min(this.i.z+this.size.z,
a.i.z+a.size.z))/2;e.x=e.x.Vb(this.i.x,this.i.x+this.size.x);e.y=e.y.Vb(this.i.y,this.i.y+this.size.y);return e},NPa:function(a){if(this.Lc){var b=a!=this.Lc.$j;b&&(this.Lc.$j&&this.Lc.$j.P.iNa)&&this.Lc.$j.P.iNa(this.P);if(this.Lc.$j=a){this.Lc.Qx.x=this.i.x-a.i.x;this.Lc.Qx.y=this.i.y-a.i.y;b&&a.P.d4&&a.P.d4(this.P)}}},YIa:function(a,b,e,h,k){switch(this.ml){case ig.em.NONE:return this.size.z;case ig.em.NORTH_UP:return k&&this.size.z/this.size.y>4?this.size.z:(-(b-this.i.y-this.size.y)/this.size.y).Vb(0,
1)*this.size.z;case ig.em.EAST_UP:return k&&this.size.z/this.size.x>4?this.size.z:((a+e-this.i.x)/this.size.x).Vb(0,1)*this.size.z;case ig.em.SOUTH_UP:return k&&this.size.z/this.size.y>4?this.size.z:((b+h-this.i.y)/this.size.y).Vb(0,1)*this.size.z;case ig.em.WEST_UP:return k&&this.size.z/this.size.x>4?this.size.z:(-(a-this.i.x-this.size.x)/this.size.x).Vb(0,1)*this.size.z}},v2:function(a){if(a.gF)if(this.mm>0&&Math.abs(this.Z.y)+Math.abs(this.Z.x)>this.ada){var b=this.Z.x*a.jp.x+this.Z.y*a.jp.y;this.Z.x=
this.Z.x-2*b*a.jp.x;this.Z.y=this.Z.y-2*b*a.jp.y;this.Z.x=this.Z.x*this.mm;this.Z.y=this.Z.y*this.mm}else if(!a.mva){if(a.bi.x==0&&a.jp.x*this.Z.x>=0)this.Z.x=0;if(a.bi.y==0&&a.jp.y*this.Z.y>=0)this.Z.y=0}}});ig.Xf={Tr:function(a,b,e){b===g&&(b=0);e===g&&(e=b);return a.i.x+a.size.x+b<ig.t.screen.x||a.i.x-b>ig.t.screen.x+ig.g.width||a.i.y-a.i.z+a.size.y+e<ig.t.screen.y||a.i.y-a.i.z-a.size.z-e>ig.t.screen.y+ig.g.height?w:j},Lr:function(a,b,e){e.x=b.i.x+b.size.x/2-(a.i.x+a.size.x/2);e.y=b.i.y+b.size.y/
2-(a.i.y+a.size.y/2);return e},yIa:function(a,b,e){e.x=b.i.x+b.size.x/2-(a.i.x+a.size.x/2);e.y=b.i.y+b.size.y/2-(a.i.y+a.size.y/2);e.z=b.i.z-a.i.z;return e},xO:function(a,b){var e=a.i.x+a.size.x/2-(b.i.x+b.size.x/2),h=a.i.y+a.size.y/2-(b.i.y+b.size.y/2);return Math.sqrt(e*e+h*h)},jab:function(a,b){var e=a.i.x+a.size.x/2-(b.i.x+b.size.x/2),h=a.i.y-a.i.z+a.size.y/2-a.size.z/2-(b.i.y-b.i.z+b.size.y/2- -b.size.z/2);return Math.sqrt(e*e+h*h)},jpb:function(a,b){return Math.atan2(b.i.y+b.size.y/2-(a.i.y+
a.size.y/2),b.i.x+b.size.x/2-(a.i.x+a.size.x/2))},dcb:function(a){a=a.Lc;return!a?w:a.ak.eK!=0||a.$j},ZO:function(a,b,e){return!e&&a.i.z>=b.i.z+b.size.z||b.i.z>=a.i.z+a.size.z||a.i.x>=b.i.x+b.size.x||b.i.x>=a.i.x+a.size.x||a.i.y>=b.i.y+b.size.y||b.i.y>=a.i.y+a.size.y?w:j},Moa:function(a,b,e,h){var k=e.i,l=b.size,e=e.size;Vec3.Sa(a,k.x+e.x/2-l.x/2+(h&&h.x||0),k.y+e.y/2-l.y/2+(h&&h.y||0),b.i.z+(h&&h.z||0));return a},Q$a:function(a,b,e,h,k){return(Math.max(a.i.x,b)-Math.min(a.i.x+a.size.x,b+h))*(Math.max(a.i.y,
e)-Math.min(a.i.y+a.size.y,e+k))},x$a:function(a,b){var e=a.Z.z,h=a.se*-ig.t.VU,k=e*e-2*h*(a.i.z-b);if(k<0)return-1;k=Math.sqrt(k);return Math.max((-e-k)/h,(-e+k)/h)},y$a:function(a){return-a.Z.z/(a.se*-ig.t.VU)},Jpa:function(a,b){return!(a.Zp>0||a.vm>0)?w:!b?j:Vec2.oc(a.Z,a.Lc.jp)<Math.PI*2*b}};var a=Vec2.create(),b=Vec2.create()});ig.G=j;
ig.I("impact.base.entity").J("impact.base.animation","impact.base.coll-entry","impact.base.impact").H(function(){function a(b,c){if(!b.Za)return w;b.Za.j5a(c);for(var h=b.b,k=h.xl.length;k--;)a(h.xl[k].P,c);return j}function b(a,c,h){if(!c.ng){for(var k=c.Ta,l=k.length;l--;){var m=a,n=k[l];if(n.size.x&&(n.size.y||n.size.z)){var o=n.i.x+n.size.x,t=n.i.y-n.i.z-n.size.z,r=n.i.y-n.i.z+n.size.y,p=h.b,q=p.i.x,p=p.i.y-p.i.z;m.left=Math.max(m.left,q-n.i.x);m.right=Math.max(m.right,o-q);m.top=Math.max(m.top,
p-t);m.bottom=Math.max(m.bottom,r-p)}}c=c.b.xl;if(c.length>0)for(l=c.length;l--;)b(a,c[l].P,h)}}ig.jmb={FLAT:1,CUBE:2};ig.Rb={BOTTOM:1,CENTER:2,TOP:3,FACE:4,BASE:5};var c=Vec2.create();ig.gd=ig.ra.extend({id:0,uid:0,gy:0,Fi:{},name:s,b:s,Ta:[],oJ:[],ng:j,W8:j,Ne:w,s:new ig.u({}),f:function(a,b,c,k){this.uid=++ig.gd.uDa;this.b=new ig.fUa(this);this.b.l(a,b,c);if(k.size)ig.merge(this.b.size,k.size);else if(window.Yc){if(this.s.Ip)this.b.size.x=32;if(this.s.Jp)this.b.size.y=32}if(k.mapId)this.gy=k.mapId;
this.name=k.name||this.name},reset:function(a,b,c,k){this.uid=++ig.gd.uDa;this.b.reset();this.b.l(a,b,c);this.Ne=w;this.ng=j;if(k.size)ig.merge(this.b.size,k.size);else if(window.Yc){if(this.s.Ip)this.b.size.x=32;if(this.s.Jp)this.b.size.y=32}if(k.mapId)this.gy=k.mapId;this.name=k.name||this.name},Jn:F(),l:function(a,b,c,k){this.b.l(a,b,c,k)},AD:function(a){this.l(g,g,a)},v:function(a,b,c){this.b.v(a,b,c)},kb:function(a){return this.b.kb(a)},je:function(a,b){var b=b||Vec3.create(),c=this.kb(b);c.z=
this.b.i.z;switch(a){case ig.Rb.TOP:c.z=c.z+this.b.size.z;break;case ig.Rb.CENTER:c.z=c.z+this.b.size.z/2;break;case ig.Rb.FACE:var k;if(this.FIa&&(k=this.FIa())){c.y=c.y+this.b.size.y/2;c.x=c.x+(k&&k.x||0);c.y=c.y+(k&&k.y||0);c.z=c.z+(k&&k.z||0)}break;case ig.Rb.BASE:c.z=this.b.jc}return c},PU:function(a,b){return this.b.PU(a.b,b)},mba:function(a,b){b=b||Vec2.create();a.kb(b);Vec2.sub(b,this.kb(c));return b},V1:function(a){Vec2.assign(c,this.b.Z);Vec2.sub(c,a.b.Z);Vec2.ck(c,ig.g.ga);var b=-1,h=-1;
c.x&&(b=c.x>0?(this.b.i.x+this.b.size.x-a.b.i.x)/c.x:(a.b.i.x+a.b.size.x-this.b.i.x)/-c.x);c.y&&(h=c.y>0?(this.b.i.y+this.b.size.y-a.b.i.y)/c.y:(a.b.i.y+a.b.size.y-this.b.i.y)/-c.y);return b<0||b>1?ig.Zb.zh[c.y>0?"NORTH":"SOUTH"]:h<0||h>1?ig.Zb.zh[c.x>0?"WEST":"EAST"]:b<h?ig.Zb.zh[c.x>0?"WEST":"EAST"]:ig.Zb.zh[c.y>0?"NORTH":"SOUTH"]},update:function(){this.b.update()},v2:function(a){this.b.v2(a)},dm:function(a,b){var c=this.Ta.length-a;if(c<0)for(;c++;)this.Ta.push(ig.yva.get(b||w));else if(c>0)for(;c--;)this.Ta.pop().Tb()},
tj:F(),yI:function(a){this.oJ.push(a)},Uea:function(a){this.oJ.xf(a)},CT:function(a){for(var b=this.oJ.length;b--;)if(!a||a(this.oJ[b])){this.oJ[b].eG();this.oJ.splice(b,1)}},show:function(){ig.t.ljb(this)},hide:function(){ig.t.lbb(this)},gG:s,Tb:function(){this.CT();for(var a=0;a<this.Ta.length;++a)this.Ta[a].Tb();this.Ta=[];ig.t.Kgb(this);for(var b=this.b.xl,a=b.length;a--;)b[a].P.Tb()},xf:F(),R$a:function(){return ig.t.Lx(this.b.i.x,this.b.i.y,this.b.i.z,this.b.size.x,this.b.size.y,this.b.size.z,
this)},Lib:function(a){this.b.nl=a},hU:function(a){return ig.Xf.xO(this.b,a.b)},Cb:F(),lo:F(),CI:F(),fG:s,DA:s});ig.Oj={wba:function(a,c){c&&c.tj();a.left=a.right=a.top=a.bottom=-1E4;b(a,c,c)},nqb:function(a){a=a.b;return a.Lc&&a.Lc.$j},yO:function(a){a=a.b;if(!a.Lc)return s;return(a=a.Lc.$j)&&a.P},Tr:function(a,b){return ig.Xf.Tr(a.b,b)},Lla:function(b,c){if(a(b,c)){var h=b.b;if(h.hk&&h.FW)for(var k=h.hk.xl,l=k.length;l--;){var m=k[l];m!=h&&m.FW==h.FW&&a(m.P,c)}}},Ima:function(a){for(var b=a.Ta,
c=b.length;c--;)b[c].ht(0,0);a=a.b.xl;if(a.length>0)for(c=a.length;c--;)this.Ima(a[c].P)}};ig.gd.uDa=0;ig.la={NONE:0,IGNORE:1,PROJECTILE:2,VIRTUAL:3,PBLOCK:4,NPBLOCK:5,BLOCK:6,TRIGGER:7,PASSIVE:8,SEMI_IGNORE:9};ig.gd.xh={};ig.gd.xh[ig.la.NONE]={};ig.gd.xh[ig.la.IGNORE]={};ig.gd.xh[ig.la.IGNORE][ig.la.BLOCK]=j;ig.gd.xh[ig.la.IGNORE][ig.la.NPBLOCK]=j;ig.gd.xh[ig.la.PROJECTILE]={};ig.gd.xh[ig.la.PROJECTILE][ig.la.BLOCK]=j;ig.gd.xh[ig.la.PROJECTILE][ig.la.PBLOCK]=j;ig.gd.xh[ig.la.VIRTUAL]={};ig.gd.xh[ig.la.VIRTUAL][ig.la.VIRTUAL]=
j;ig.gd.xh[ig.la.VIRTUAL][ig.la.BLOCK]=j;ig.gd.xh[ig.la.VIRTUAL][ig.la.NPBLOCK]=j;ig.gd.xh[ig.la.PBLOCK]={};ig.gd.xh[ig.la.PBLOCK][ig.la.PROJECTILE]=j;ig.gd.xh[ig.la.PBLOCK][ig.la.PBLOCK]=j;ig.gd.xh[ig.la.PBLOCK][ig.la.BLOCK]=j;ig.gd.xh[ig.la.NPBLOCK]={};ig.gd.xh[ig.la.NPBLOCK][ig.la.IGNORE]=j;ig.gd.xh[ig.la.NPBLOCK][ig.la.VIRTUAL]=j;ig.gd.xh[ig.la.NPBLOCK][ig.la.BLOCK]=j;ig.gd.xh[ig.la.BLOCK]={};ig.gd.xh[ig.la.BLOCK][ig.la.IGNORE]=j;ig.gd.xh[ig.la.BLOCK][ig.la.PROJECTILE]=j;ig.gd.xh[ig.la.BLOCK][ig.la.VIRTUAL]=
j;ig.gd.xh[ig.la.BLOCK][ig.la.PBLOCK]=j;ig.gd.xh[ig.la.BLOCK][ig.la.BLOCK]=j;ig.gd.xh[ig.la.BLOCK][ig.la.NPBLOCK]=j;ig.gd.xh[ig.la.BLOCK][ig.la.SEMI_IGNORE]=j;ig.gd.xh[ig.la.SEMI_IGNORE]={};ig.gd.xh[ig.la.SEMI_IGNORE][ig.la.BLOCK]=j;ig.gd.xh[ig.la.SEMI_IGNORE][ig.la.NPBLOCK]=j;ig.gd.xh[ig.la.TRIGGER]={};ig.gd.xh[ig.la.PASSIVE]={};ig.gd.xh[ig.la.PASSIVE][ig.la.BLOCK]=j;ig.mk={RECTANGLE:1,SLOPE_NE:2,SLOPE_SE:3,SLOPE_SW:4,SLOPE_NW:5};ig.fe=ig.gd.extend({nb:s,Za:s,Tla:1,Cj:s,Jv:s,l$:w,nka:w,f:function(a,
b,c,k){this.parent(a,b,c,k);this.Za=new ig.rTa},reset:function(a,b,c,k){this.parent(a,b,c,k);this.Za.reset();this.Tla=1;this.Jv=this.Cj=s;this.nka=this.l$=w},Tb:function(a){this.parent(a);this.nka&&this.nb.Qa()},Jn:function(){this.dm(0)},ld:function(a){if(a)if(a instanceof ig.wj)this.nb=a;else{this.nka=j;this.nb=new ig.wj(a)}if(!this.Za.Epa()){for(var b in this.nb.La)break;if(b){this.Ja(b);this.Za.D5(this,this.nb.La[b].R1(this))}}},aua:function(){this.Za.$ta();for(var a=this.b.xl,b=a.length;b--;){var c=
a[b].P;c.KW||c.aua()}},Ja:function(a,b,c,k,l){c=c||s;if(k||(c||a)!=(this.Jv||this.Cj)){this.l$=l;this.Cj=a;(b||w)&&this.aua();this.Jv=c;this.O6()}},O6:function(){if(this.nb){if(this.Za.Vr>0&&this.l$){this.l$=w;this.CI(this.Cj)}if(this.Jv&&this.Za.Vr>0){this.aua();this.Cj=this.Jv;this.Jv=s}var a=this.Cj;typeof a=="string"&&(a=this.nb.La[this.Cj]);a&&this.Za.D5(this,a.R1(this))}},update:function(){this.O6();this.parent()},tj:function(){this.nb&&this.Za.lB(this,this.Tla)}});ig.nxa=ig.fe.extend({ii:s,
pD:s,KW:s,f:function(a,b,c,k){this.parent(a,b,c,k);this.b.type=k.collType;this.b.ni=-1;this.b.ml=k.heightShape;this.b.FW=k.group;this.pD=k.owner;this.ii=k.partName;this.nb=k.animSheet;this.KW=k.persistAnim;(a=k.padding)&&this.b.nfa(a.x,a.y)}})});ig.G=j;
ig.I("impact.base.steps").H(function(){function a(b,c,d,e){for(var h=s,k=[],l=0;l<b.length;l++){var m=b[l].type,n=c[m];if(n){n=new n(b[l]);if(m=="LABEL"){d[n.name]&&!window.Yc&&f(Error("Step Collection includes label '"+n.name+"' twice"));d[n.name]=n}for(m=0;m<k.length;++m)k[m].Ek=n;var k=[],o=n.IC&&n.IC();if(o){if(!n.Jg)n.Jg={};for(m=0;m<o.length;++m){var t=o[m],r=b[l][t];r||(r=[]);r=a(r,c,d,k);n.Jg[t]=r}}k.push(n);h||(h=n)}}for(m=0;m<k.length;++m)e.push(k[m]);return h}ig.B8={mGa:function(b,c,d){return a(b,
c,d,[])},y$:function(a){if(a&&!a.WBa){a.Qa&&a.Qa();a.WBa=j;a.Ek&&this.y$(a.Ek);if(a.Jg)for(var c in a.Jg)a.Jg[c]&&this.y$(a.Jg[c])}}};ig.fBa=ig.ra.extend({Ek:s,WBa:w,Jg:g,f:F(),start:F(),xa:R(j),Nx:M("Ek"),CO:s})});ig.G=j;
ig.I("impact.base.event").J("impact.base.steps").H(function(){ig.bl={INTERRUPTABLE:0,PARALLEL:1,BLOCKING:2};ig.vVa=ig.ra.extend({bL:[],kN:s,p0:[],f:F(),wq:function(a,b,c,d,e,h,k){a=new ig.tVa(a,e,b,c,d,h,k);if(!this.kN||b!=ig.bl.BLOCKING)this.sEa(a);else{a.wk=j;this.p0.push(a)}return a},lpb:M("kN"),bP:function(){for(var a=this.bL.length;a--;)if(this.bL[a].pQ!=ig.bl.INTERRUPTABLE)return w;return j},update:function(){for(var a=0;a<this.bL.length;){var b=this.bL[a];if(ig.t.paused&&!b.H4)++a;else if(b.update()){this.bL.splice(a,
1);this.Z2a(b)}else++a}},clearQueue:function(){this.p0.length=0},clear:function(){for(var a=this.bL.length;a--;)this.bL.splice(a,1);this.kN=s;this.p0=[]},sEa:function(a){a.wk=w;this.bL.push(a);if(a.pQ==ig.bl.BLOCKING)this.kN=a;a.rW&&a.rW(a)},Z2a:function(a){a.kib();if(a.pQ==ig.bl.BLOCKING)this.p0.length?this.sEa(this.p0.shift()):this.kN=s}});ig.tVa=ig.ra.extend({pQ:0,yb:w,wk:w,stack:[],iO:[],H4:w,rW:s,kD:s,t0:s,data:s,f:function(a,b,c,d,e,h,k){this.pQ=c||0;this.rW=d||s;this.kD=e||s;this.t0=h;this.data=
k||s;a&&this.DFa(a,b)},DFa:function(a,b){var c=a.bjb(b);this.stack.push({event:a,Er:s,tb:{},pa:c});return this.stack[this.stack.length-1]},a0:function(a){this.iO.push(a)},kib:function(){this.yb=j;for(var a=0;a<this.iO.length;++a)this.iO[a].eNa(this);this.iO=[];this.kD&&this.kD(this)},Ph:M("wk"),Xm:function(){return!this.yb},Usa:function(a){do{if(!a.Er)a.Er=a.event.mQ;var b=a.Er;b.start&&b.start(a.tb,this);if(b.MIa){a=this.DFa(b.MIa(),b.moa);ig.pa.vfa(a.pa)}}while(!a.Er);return a},update:function(){var a=
this.stack[this.stack.length-1];ig.pa.vfa(a.pa);for(a.Er||(a=this.Usa(a));a.Er&&a.Er.xa(a.tb);){var b=s;if(a.Er.CO){var c=a.Er.CO(a.tb);if(c)(b=a.event.h3[c])||f(Error("Label '"+c+"' not found."))}b||(b=a.Er.Nx(a.tb));a.Er=b;if(a.Er)a=this.Usa(a);else{this.stack.pop();if(c=this.stack[this.stack.length-1]){a=c;ig.pa.vfa(a.pa);a.Er=a.Er.Nx(a.tb);a.Er&&(a=this.Usa(a))}}}ig.pa.vfa(s);return!a||!a.Er}});ig.na=ig.fBa;ig.ma={};ig.Ra=ig.ra.extend({name:s,mQ:s,h3:{},f:function(a){this.name=a.name||"[UNNAMED]";
this.mqa=a.input||{};this.mQ=ig.B8.mGa(a.steps,ig.ma,this.h3)},Qa:function(){ig.B8.y$(this.mQ)},bjb:function(a){var b={},c;for(c in this.mqa)switch(this.mqa[c]._type){case "StringExpression":case "String":case "BooleanExpression":case "Boolean":case "NumberExpression":case "Number":b[c]=ig.Ra.so(a[c]);break;case "Vec2":b[c]=ig.Ra.iA(a[c],Vec2.create());break;case "Vec3":b[c]=ig.Ra.Mv(a[c],Vec3.create());break;case "VarName":b[c]=ig.Ra.fu(a[c]);break;case "Entity":b[c]=a[c];break;case "LangLabel":b[c]=
ig.Oa.wc(a[c]);break;default:f(Error("Event: could not initialize input of type '"+this.mqa[c].c+"'"))}return b}});ig.Ra.rba=function(a){return a&&a.base?a.base+(Math.random()-0.5)*2*(a.vary||0):a};ig.Ra.pd=function(a,b){if(!a)return s;if(a instanceof ig.gd)return a;if(a.player)return ig.t.wb;if(a.self)return b&&b.t0||s;if(a.name)return ig.t.DIa(a.name);for(var c=ig.zha.length;c--;){var d=ig.zha[c];if(a[d])return ig.lya[d].U8a(a[d])}return s};ig.lya={};ig.zha=[];ig.Ra.ugb=function(a,b){ig.lya.party=
{U8a:a,qo:b};ig.zha.push("party")};ig.Ra.iA=function(a,b){var c=ig.Ra.so(a);return Vec2.assign(b,c)};ig.Ra.Mv=function(a,b){var c=ig.Ra.so(a);return Vec3.Sa(b,c.x,c.y,c.lvl?ig.t.LIa(c.lvl):c.z||0)};ig.Ra.fu=function(a){a&&a.indirect&&(a=ig.pa.get(a.indirect));return typeof a=="string"?a:s};ig.Ra.so=function(a){if(a&&a.indirect){a=ig.pa.get(a.indirect);return ig.pa.get(a)}return a&&a.varName?ig.pa.get(a.varName):a}});ig.G=j;
ig.I("impact.base.sprite").J("impact.base.image").H(function(){ig.vUa=ig.ra.extend({i:{x:0,y:0,z:0},size:{x:0,y:0,z:0},Ad:{x:0,y:0,z:0,rF:0},ll:{x:0,y:0},jj:{top:0,bottom:0,left:0,right:0},Qg:0,xc:s,src:{x:0,y:0},alpha:1,hd:{x:w,y:w},scale:{x:1,y:1},rotate:0,cb:{x:0,y:0},vd:{color:s,alpha:0},ay:{color:s,alpha:0},tz:0,et:{},T:w,Ze:s,f:L("T"),clear:function(a){this.T=a;this.xc=s;this.Ad.x=this.Ad.y=this.Ad.z=this.Ad.rF=0;this.Ad.type=ig.bE.DEFAULT;this.Qg=this.ll.x=this.ll.y=0;this.src.x=this.src.y=
0;this.alpha=1;this.hd.x=this.hd.y=w;this.scale.x=this.scale.y=1;this.rotate=0;this.cb.x=this.cb.y=0;this.vd.color=s;this.vd.alpha=0;this.ay.color=s;this.ay.alpha=0;this.Ze=s;this.jj.top=this.jj.bottom=0;this.jj.left=this.jj.right=0},Tb:function(){this.et={};ig.yva.Ta.push(this)},l:function(a,b,c){this.i.x=a;this.i.y=b;this.i.z=c},JPa:function(a,b){this.ll.x=a;this.ll.y=b},ht:function(a,b,c,d){this.jj.top=a||0;this.jj.bottom=b||0;this.jj.left=c||0;this.jj.right=d||0},Rua:function(a,b,c,d,e){this.Ad.x=
a;this.Ad.y=b;this.Ad.z=c;this.Ad.rF=d;this.Ad.type=e||ig.bE.DEFAULT},v:function(a,b,c,d){this.size.x=a;this.size.y=b;this.size.z=c;this.Qg=d||0},Vh:function(a,b,c){this.xc=a;this.src.x=b||0;this.src.y=c||0},I5:function(a,b){this.hd.x=a||w;this.hd.y=b||w},rb:function(a,b){this.cb.x=a;this.cb.y=b},setTransform:function(a,b,c){this.scale.x=a;this.scale.y=b;this.rotate=c},wd:L("alpha"),Nua:function(a,b){this.vd.color=a;this.vd.alpha=b},Dua:function(a,b){this.ay.color=a;this.ay.alpha=b},bB:function(){this.xc=
s},kQa:function(a,b,c,d,e){var h=a.b,a=h.size.y,h=h.size.z;if(d==ig.Xy.Y_FLAT){a=0;h=c}else if(d==ig.Xy.Z_FLAT){a=c;h=0}else{c=c-a-h;if(c>0)switch(d){case ig.Xy.Z_EXPAND:h=h+c;break;case ig.Xy.Y_EXPAND:a=a+c;break;case ig.Xy.YZ_EXPAND:a=a+Math.floor(c/2);h=h+Math.ceil(c/2)}else if(c<0)if(a+c>=0)a=a+c;else{h=h+(c+a);a=0}}this.v(b,a,h,Math.round((e||0)*a))},QPa:function(a,b,c,d,e,h){this.size.y+this.size.z<c&&(h=h+(c-this.size.y-this.size.z));this.Vh(d,e,h)},Sua:function(a){a=a.b;this.Rua(a.i.x+a.size.x/
2,a.i.y+a.size.y/2,a.jc,a.Ad.size,a.Ad.type)},pfa:function(a,b,c,d){var a=a.b,c=a.i.x-(this.size.x-a.size.x)/2,e=a.i.y,h=a.i.z;this.size.y<a.size.y?e=e+(a.size.y-this.size.y):this.size.y>a.size.y&&(e=e-(1-d)*(this.size.y-a.size.y));if(b){c=c+b.x;e=e+b.y;h=h+b.z}this.l(c,e,h)},n$:function(a){var b=this.i.y-this.size.z+this.cb.y-a.b.i.y;this.ll.x=this.ll.x-(this.i.x+this.cb.x-a.b.i.x);this.ll.y=this.ll.y-b},AG:function(a,b,c,d,e,h,k,l,m){d=d||ig.Xy.NO_EXPAND;this.kQa(a,b,c,d,e);this.QPa(a,b,c,k,l,m);
this.Sua(a);this.pfa(a,h,d,e)},assign:function(a){Vec3.assign(this.i,a.i);Vec3.assign(this.size,a.size);this.xc=a.xc;Vec3.assign(this.Ad,a.Ad);this.Ad.rF=a.Ad.rF;Vec2.assign(this.ll,a.ll);this.Qg=a.Qg;Vec2.assign(this.src,a.src);this.alpha=a.alpha;Vec2.assign(this.hd,a.hd);Vec2.assign(this.scale,a.scale);this.rotate=a.rotate;Vec2.assign(this.cb,a.cb);this.vd.color=a.vd.color;this.vd.alpha=a.vd.alpha;this.ay.color=a.ay.color;this.ay.alpha=a.ay.alpha;this.Ze=a.Ze;this.jj.top=a.jj.top;this.jj.bottom=
a.jj.bottom;this.jj.left=a.jj.left;this.jj.right=a.jj.right}});ig.B0a=ig.ra.extend({Ta:[],get:function(a){if(this.Ta.length){var b=this.Ta.pop();b.clear(a);return b}return new ig.vUa(a)}});ig.yva=new ig.B0a});ig.G=j;
ig.I("impact.base.renderer").J("impact.base.image","impact.base.sprite").H(function(){function a(a,b){for(var c=0;c<a.$a[b].jf.length;c++){var d=a.$a[b].jf[c];d.Xa();d.Ina&&d.Ina()}}function b(a,b,c){if(ig.$l.Ljb&&a.hHa){var d=ig.t,a=a.P0;if(d.wfa&&a.Ad.rF&&a.Ad.z>=b&&a.Ad.z<c){if(ig.g.context.globalCompositeOperation!="source-over")ig.g.context.globalCompositeOperation="source-over";b=a.i.z-a.Ad.z;a.Ad.type==ig.bE.STATIC_SIZE&&(b=0);var e=a.Ad.rF-b/8,c=Math.round(a.Ad.x)-ig.t.screen.x,h=Math.round(a.Ad.y-
a.Ad.z)-ig.t.screen.y;if(e>0&&c-e/2<=ig.g.width||h-e/2<=ig.g.height||c+e/2>=0||h+e/2>=0){b=ig.g.context.globalAlpha;ig.g.context.globalAlpha=ig.g.context.globalAlpha*0.5*a.alpha;if(e<=32){a=(8-Math.floor(e/4)).Vb(0,7);d.wfa.p1(c-16,h-16,a,32,32,0,0)}else{ig.g.context.save();ig.g.context.translate(ig.g.Ae(c),ig.g.Ae(h));a=Math.floor(e/4)*4/224;ig.g.context.scale(a,a);d.wfa.Xa(-112,-112,0,32,224,224);ig.g.context.restore()}ig.g.context.globalAlpha=b}}}}function c(a,b,c,d,e){b?a.et[c]?a.et[c].Ofa=e:
a.et[c]=new ig.Ria.z0a(a,d,e):a.et[c]&&(a.et[c]=s)}var d={};ig.Ria=ig.ra.extend({JD:[],FJ:[],f:F(),hOa:function(a,b){ig.tn.clear();var d=ig.g.upa(e);h=d.x+ig.t.screen.x;k=d.y+ig.t.screen.y;l=h+ig.g.width/ig.g.zoom;m=k+ig.g.height/ig.g.zoom;if(b||!ig.t.Tca){d=0;this.JD.length=0;for(var r=this.FJ.length=0;r<a.length;r++){var p=a[r];if(p&&!(p.b.i.x+p.b.size.x+32<h||p.b.i.x-32>l||p.b.i.y-p.b.jc+p.b.size.y+32<k||p.b.i.y-p.b.i.z-p.b.size.z-32>m)){p.tj();for(var q=0;q<p.Ta.length;q++){d++;var x=p.Ta[q],
y=d,z=x.T?this.FJ:this.JD;c(x,x.size.z>0||x.Qg>0,"wall",w,y);c(x,x.size.y>0&&x.Qg<x.size.y,"ground",j,y);var y=x.et.wall,u=x.et.ground,v=y&&!u;y&&y.update(v);u&&u.update(!v);if(!ig.$l.Up||!(!x.xc&&!x.Ad.rF||x.i.x+x.size.x<h||x.i.x>l||x.i.y-x.i.z-x.size.z>m||x.i.y+x.size.y-(x.Ad.rF?x.Ad.z:x.i.z)<k)){y&&z.push(y);u&&z.push(u);x.et.fragment=x.vd.color?new ig.tn(x.xc,x.src.x,x.src.y,x.size.x,x.size.y+x.size.z,x.vd.color):s;x.et.lighterFragment=x.ay.color?new ig.tn(x.xc,x.src.x,x.src.y,x.size.x,x.size.y+
x.size.z,x.ay.color):s}}}}}ig.tn.vD();if(b||!ig.t.Tca){this.JD.sort(function(a,b){return a.JL-b.JL||a.Ofa-b.Ofa});this.FJ.sort(function(a,b){return a.JL-b.JL})}ig.Rs.W8a()},eHa:function(b,c){var d=ig.t;if(!c){ig.g.context.fillStyle="black";d.clearColor&&ig.g.clear(d.clearColor)}if((b||!ig.t.Tca)&&!ig.uu&&d.bk>0){a(d,"first");for(var e=-1;e<d.bk;++e){e>=0&&a(d,e);this.Z7a(e)}a(d,"last")}},gHa:function(){for(var a=ig.t,b=0;b<this.FJ.length;++b)this.FJ[b].Xa();if(this.FJ.length>0)ig.g.context.globalCompositeOperation=
"source-over";if(window.aj)for(var c in a.$a)for(var d in a.$a[c]){b=a.$a[c][d];b instanceof ig.kZ&&(b.GGa&&b.Xa)&&b.Xa(a.$a[c].height)}},Z7a:function(a){for(var c=ig.t,d=a==-1?-9999999:c.$a[a].height,a=a+1<c.bk?c.$a[a+1].height:99999999,c=0;c<this.JD.length;++c){var e=this.JD[c];if(e.Sl&&e.Yu==d){b(e,d,a);e.Xa(d,a);e.Nka=j}else e.Nka=w}for(var h=[],c=0;c<this.JD.length+1;++c)if(c==this.JD.length)for(;h.length>0;){var k=h.length-1,l=h[k];l.eRa.Xa(d,a);h.splice(k,1);if(l.Tv!=-1){c=l.Tv-1;break}}else{var e=
this.JD[c],m=e.P0;if(!e.Nka){var z=e.Yu>=a||e.Xu<=d;if(!z||m.Ad.rF&&!(m.Ad.z>=a||m.Ad.z<d)){for(var u=w,k=h.length;k--;){var l=h[k],v=m.i.x+m.size.x<=l.HL||m.i.x>=l.GL;if(e.JL>l.$D){l.eRa.Xa(d,a);h.splice(k,1);if(l.Tv!=-1){c=l.Tv-1;u=j;break}}else if(!v&&m.i.z+m.size.z*m.tz>=l.Xu){u=j;l.Tv=l.Tv==-1?c:Math.min(c,l.Tv)}else if(!v&&e.Sl)l.$D=Math.max(l.$D,m.i.y+m.size.y-ig.xe.yh)}if(!u){e.Nka=j;if(e.Sl){b(e,d,a);z||(!ig.$l.Kjb||m.size.y<m.size.z?e.Xa(d,a):h.push({HL:m.i.x+ig.xe.yh,GL:m.i.x+m.size.x-
ig.xe.yh,$D:m.i.y+m.size.y-ig.xe.yh,Xu:m.i.z+m.size.z-ig.xe.yh,Tv:-1,eRa:e}))}else{b(e,d,a);e.Yu>=a||e.Xu<=d||e.Xa(d,a)}}}}}ig.g.context.globalCompositeOperation="source-over"},X7a:function(a,b,c,e,h,k,l,m){var z=a.ZA.length,e=Math.floor(e/a.Ql),u=a.stop?Math.min(e,z-1):e%z,z=a.sheet,e=a.sheet.xc,v=z.Lv(d,a.ZA[u]),A=ig.g.context;a.L1&&(h=h*a.L1[u]);l==g&&(l=1);m==g&&(m=1);if(u=k||l!=1||m!=1){ig.g.context.save();ig.g.context.translate(ig.g.Ae(b+a.cb.x),ig.g.Ae(c+a.cb.y));ig.g.context.rotate(k);(l!=
1||m!=1)&&ig.g.context.scale(l,m);b=-a.cb.x;c=-a.cb.y}k=a.Ze||"source-over";if(k!=A.globalCompositeOperation)A.globalCompositeOperation=k;var C;if(h!=1){C=A.globalAlpha;A.globalAlpha=A.globalAlpha*h}e.Xa(b,c,v.x,v.y,z.width,z.height,a.hd.x,a.hd.y);if(h!=1)A.globalAlpha=C;u&&ig.g.context.restore()},gra:function(){this.JD=[];this.FJ=[]}});var e=Vec2.create(),h=0,k=0,l=0,m=0;ig.Ria.z0a=ig.ra.extend({P0:s,Sl:w,JL:0,Yu:0,Xu:0,Ofa:0,hHa:w,f:function(a,b,c){this.P0=a;this.Sl=b;this.Ofa=c},update:function(a){this.hHa=
a;a=this.P0;if(a.T)this.JL=a.i.z;else if(this.Sl){this.JL=a.i.y+ig.xe.yh;this.Xu=this.Yu=a.i.z+a.size.z}else{this.JL=a.i.y+a.size.y-a.Qg;this.Xu=a.i.z+(a.size.z||1);this.Yu=a.i.z}},Xa:function(a,b){var c=this.P0;if(c.Ze)ig.g.context.globalCompositeOperation=c.Ze;else if(ig.g.context.globalCompositeOperation!="source-over")ig.g.context.globalCompositeOperation="source-over";if(c.xc){var d=c.i.x+c.ll.x,e=c.i.y-c.i.z-c.size.z+c.ll.y,h=0,k=0,l=0,m=c.size.x,u=c.size.y+c.size.z,k=0,v=c.src.x,A=c.src.y;
c.Qg<c.size.y&&!this.Sl?h=h+(c.size.y-c.Qg):c.Qg<c.size.y&&this.Sl&&(k=u-(c.size.y-c.Qg));if(!this.Sl&&a!==g){if(c.i.z+c.size.z>b){l=Math.round(c.i.z+c.size.z-b);h=h+l}c.i.z<a&&(k=k+(u-Math.round(u-(a-c.i.z+c.Qg))))}c.jj.top&&(h=Math.max(c.jj.top,h));c.jj.bottom&&(k=Math.max(k,c.jj.bottom));u=u-(k+h);if(c.hd.x){k=c.jj.left;l=c.jj.right}else k=l=c.jj.left;m=m-(c.jj.left+c.jj.right);if(!(m<=0||u<=0||c.scale.x==0||c.scale.y==0||c.alpha<=0)){var d=Math.round(d)-ig.t.screen.x,e=Math.round(e)-ig.t.screen.y,
C=ig.g.context.globalAlpha,B=C*c.alpha,E=w;if(c.alpha!=1){E=j;ig.g.context.globalAlpha=B}var I=c.rotate!=0||c.scale.x!=1||c.scale.y!=1;if(I){ig.g.context.save();ig.g.context.translate(ig.g.Ae(d+c.cb.x),ig.g.Ae(e+c.cb.y));ig.g.context.rotate(c.rotate);ig.g.context.scale(c.scale.x,c.scale.y);d=-c.cb.x;e=-c.cb.y}if(!(c.et.fragment&&c.vd.alpha==1))if(c.xc instanceof ig.$||c.xc instanceof ig.Vha)c.xc.Xa(d+k,e+h,v+l,A+h,m,u,c.hd.x,c.hd.y);else if(c.xc instanceof ig.ue)c.xc.Xa(d+k,e+h,v+l,A+h,m,u);else if(c.xc instanceof
ig.c0a||c.xc instanceof ig.b0a||c.xc instanceof ig.Uxa||c.xc instanceof ig.G8||c.xc instanceof ig.wha){v=c.xc;v instanceof ig.wha&&(v=this.Sl?v.BN:v.CN);v.Xa(d+k,e+h,m,u)}if(c.et.fragment){if(c.vd.alpha!=1){ig.g.context.globalAlpha=B*c.vd.alpha;E=j}c.et.fragment.Xa(d+k,e+h,l,h,m,u,c.hd.x,c.hd.y)}if(c.et.lighterFragment){v=ig.g.context.globalCompositeOperation;ig.g.context.globalCompositeOperation="lighter";if(c.ay.alpha!=1){ig.g.context.globalAlpha=B*c.ay.alpha;E=j}c.et.lighterFragment.Xa(d+k,e+h,
l,h,m,u,c.hd.x,c.hd.y);ig.g.context.globalCompositeOperation=v}I&&ig.g.context.restore();if(E)ig.g.context.globalAlpha=C}}}})});ig.G=j;
ig.I("impact.base.physics").J("impact.base.entity","impact.base.coll-entry").H(function(){function a(a,b){a.i.z=b;a.aa=ig.t.KC(a.i.z)}var b=Vec2.create(),c=Vec2.create(),d=Vec2.create(),e={},h={},k=[],l=[];Vec2.create();var m=Vec2.create();ig.lZa=ig.ra.extend({Ll:64,nx:[],FT:[],Aj:[],Q_:0,u9:w,gra:function(){this.Aj.length=0;this.nx.length=0},jMa:function(){var a=ig.t.size.y;this.Aj.width=Math.ceil(ig.t.size.x/this.Ll);this.Aj.height=Math.ceil(a/this.Ll)+16;for(a=0;a<this.Aj.width;++a){this.Aj[a]=
[];for(var b=0;b<this.Aj.height;++b)this.Aj[a][b]=[]}this.nx.length=0},update:function(){this.Q_=this.Q_%100;this.Q_++;for(var a=[],b=this.FT.length;b--;){var c=this.FT[b];if(c.ns==ig.Gm.HB)this.FT.splice(b,1);else if(c.ns==ig.Gm.NY||c.ns==ig.Gm.via&&ig.Xf.Tr(c,16)){this.FT.splice(b,1);this.nx.push(c)}}for(b=this.nx.length;b--;){c=this.nx[b];this.Fga(c,a);if(c.ns==ig.Gm.HB)this.nx.splice(b,1);else if(c.ns==ig.Gm.via&&!ig.Xf.Tr(c,16)){this.nx.splice(b,1);this.FT.push(c)}}for(b=a.length;b--;){for(var c=
a[b],d=c.lv.length;d--;){var e=c.lv[d],h=c.g_[d];if(!c.Ne&&!e.Ne){if(c.ni>=0&&h&&h.hj){var k=e.ni==-1||c.ni==0?1:Math.min(1,e.ni/c.ni*0.5);c.ow.x=h.x*h.hj/ig.g.Da*k;c.ow.y=h.y*h.hj/ig.g.Da*k;e.Lc.Eea=c}c.P.lo(e.P,h||s)}}c.lv.length=0;c.g_.length=0}ig.g.tp=ig.g.ga;a=this.nx;for(b=0;b<a.length;b++){d=a[b];if(c=d.P)if(d=d.Lc){ig.g.ga=c.b.n2(w);c.v2(d)}}ig.g.ga=ig.g.tp},Fga:function(a,b){if(a.YZ&&a.mB!=this.Q_){a.mB=this.Q_;ig.profile.Xkb++;if(!a.Ne){ig.pa.Fea(a.P);a.hk&&this.Fga(a.hk,b);a.Lc&&a.Lc.$j&&
this.Fga(a.Lc.$j,b);if(a.Lc&&a.Lc.Eea){this.Fga(a.Lc.Eea,b);a.Lc.Eea=s}ig.g.tp=ig.g.ga;ig.g.ga=a.n2(w);var c=a.P,d=0;c.Za&&c.Za.Epa()&&(d=a.n2(j));if(ig.g.ga||d){c.update();this.vu(a,b)}if(d){ig.g.ga=d;c.Za.update(c,c.Tla)}ig.g.ga=ig.g.tp;ig.pa.eea(a.P)}}},Lx:function(a,b,c,d,e,h,k,l){for(var m=Math.floor(a/this.Ll).Vb(0,this.Aj.width),u=Math.floor(b/this.Ll).Vb(0,this.Aj.height),v=(Math.floor((a+d)/this.Ll)+1).Vb(0,this.Aj.width),A=(Math.floor((b+e)/this.Ll)+1).Vb(0,this.Aj.height),C=[];m<v;m++)for(var B=
u;B<A;B++)for(var E=this.Aj[m][B],I=E.length;I--;){var K=E[I],H=K.P;if(!(K.xl.length>0)){var G=K.hk&&K.hk.P;H&&(!k||H!=k)&&(!l||l.indexOf(H)==-1)&&(!G||(!G||G!=k)&&(!l||l.indexOf(G)==-1))&&C.indexOf(H)==-1&&K.V2(a,b,c,d,e,h)&&C.push(H)}}return C},a2:function(a,b,c,e,h,k,l,m,z,u){Vec2.assign(d,a);for(var m=this.Lx(a.x-b,a.y-c*b,a.z,b*2,c*b*2,e,m,z),z=[],v=a.z,e=a.z+e,A=m.length;A--;){var C=m[A],B=C.b;if(!(B.i.z>=e||B.i.z+B.size.z<=v)){Vec2.assign(d,B.i);d.x=d.x-B.padding.x<=a.x&&d.x+B.padding.x+B.size.x>=
a.x?a.x:d.x+B.padding.x+B.size.x<a.x?d.x+(B.size.x+B.padding.x):d.x-B.padding.x;if(d.y-B.padding.y<=a.y&&d.y+B.padding.y+B.size.y>=a.y)d.y=a.y;else if(d.y+B.padding.y+B.size.y<a.y)d.y=d.y+(B.padding.y+B.size.y);Vec2.sub(d,a);d.y=d.y/c;if(u||!(Vec2.length(d)>b)){d.y=d.y*c;(!h||Vec2.Ybb(d,h,k,l))&&z.push(C)}}}return z},mu:function(a){if(!a.dir)a.dir=Vec2.create();Vec2.Sa(a.dir,0,0);a.gf=1;a.q3=w;a.qO=s;a.Xaa=s;return a},trace:function(a,b,c,d,e,h,k,l,m,u,v,A,C){for(var B=ig.t,E=B.bk-1;E&&B.$a[E].height>
d;)--E;for(var I=E+1<B.bk&&d+m>B.$a[E+1].height,K=v&&v.Lc&&v.Lc.Ls,H=Math.max(1,Math.ceil(Math.max(Math.abs(e),Math.abs(h))/16)),G=H,e=e/H,h=h/H,J=w,D=C&&I&&B.$a[E+1].height-d<=ig.xe.az,G=0;G<H;G++){var N=-1;if(!K){if(!a.q3)if((J=B.$a[E].collision.trace(a,b,c-B.$a[E].height,e,h,k,l,j))&&D){J=w;N=a.gf;a.gf=1}I&&(J=B.$a[E+1].collision.trace(a,b,c-B.$a[E+1].height,e,h,k,l,j,N==-1)||J)}J=this.Fkb(a,b,c,d,e,h,k,l,m,u,v,A,C)||J;if(N!=-1)a.q3=a.q3||a.gf>N;if(J){a.gf=(G+a.gf)/H;return j}a.gf=1;b=b+e;c=c+
h}a.gf=1;return w},h5a:function(a){a.YZ=j;this.bFa(a);this.bN(a)},Ggb:function(a){a.YZ=w;this.Lgb(a);this.eX(a)},bFa:function(a){this.nx.push(a)},Lgb:function(a){this.nx.xf(a)},bN:function(a){if(!a.oz&&!(a.type==ig.la.NONE||a.type==ig.la.PASSIVE)){a.oz=j;for(var b=Math.max(0,Math.floor((a.i.x-a.padding.x*2)/this.Ll)),c=Math.max(0,Math.floor((a.i.y-a.padding.y*2)/this.Ll)),d=Math.min(this.Aj.width,Math.floor((a.i.x+a.size.x+a.padding.x*2)/this.Ll)+1),e=Math.min(this.Aj.height,Math.floor((a.i.y+a.size.y+
a.padding.y*2)/this.Ll)+1);d-- >b;)for(var h=e;h-- >c;)this.Aj[d][h].indexOf(a)==-1&&this.Aj[d][h].push(a)}},eX:function(a){if(a.oz){a.oz=w;for(var b=Math.max(0,Math.floor((a.i.x-a.padding.x*2)/this.Ll)),c=Math.max(0,Math.floor((a.i.y-a.padding.y*2)/this.Ll)),d=Math.min(this.Aj.width,Math.floor((a.i.x+a.size.x+a.padding.x*2)/this.Ll)+1),e=Math.min(this.Aj.height,Math.floor((a.i.y+a.size.y+a.padding.y*2)/this.Ll)+1);d-- >b;)for(var h=e;h-- >c;){var k=this.Aj[d][h].indexOf(a);k!=-1&&this.Aj[d][h].splice(k,
1)}}},vu:function(b,c){var d=!b.type&&!b.Ad&&!b.se;ig.profile.vu++;var h=b.gKa(),p=b.Lc;if(p.Gfa){p.Gfa=w;Vec2.Sa(m,0,0);h=Math.abs(b.i.z-b.jc)<ig.xe.yh;this.Lwa(b,m,h,0,w)}else{p.gF=w;p.mva=w;if(ig.t.sJ)p.d7=w;if(!p.Ls){p.bi.x=0;p.bi.y=0;p.bi.z=0}var q=b.i.x,x=b.i.y,y;y=p.Ls?Vec2.assign(m,p.bi):Vec2.ck(Vec2.add(b.Z,b.ow,m),ig.g.ga);var z=y.x!=0||y.y!=0;(isNaN(y.x)||isNaN(y.y))&&f(Error("NaN!"));if(!h&&!p.Ls&&y.x==0&&y.y==0&&b.Z.z==0&&b.se==0&&b.Ad==0)p.Ls=w;else{b.ow.x=0;b.ow.y=0;if(p.$j){var u=
p.$j;if(u.ml&&u.i.z+u.size.z>=b.i.z&&b.Z.z<=0)if(u.ml==ig.em.EAST_UP||u.ml==ig.em.WEST_UP){y.x=y.x/(1+u.size.z/u.size.x/2);if(u.size.z/u.size.x>4)b.ow.x=b.ow.x+200*(u.ml==ig.em.EAST_UP?-1:1)}else if(u.ml==ig.em.NORTH_UP||u.ml==ig.em.SOUTH_UP){y.y=y.y/(1+u.size.z/u.size.y/2);if(u.size.z/u.size.y>4)b.ow.y=b.ow.y+200*(u.ml==ig.em.SOUTH_UP?-1:1)}if(!z){p.Qx.x=Math.round(p.Qx.x);p.Qx.y=Math.round(p.Qx.y)}y.x=y.x+(u.i.x+p.Qx.x-q);y.y=y.y+(u.i.y+p.Qx.y-x);b.jc=b.jc+u.Lc.bi.z;q=b.i.z+u.Lc.bi.z;if(u.Lc.bi.z<
0&&p.ak.eK!=2&&b.aa>=0){x=ig.t.$a[b.aa].height;if(q<x){q=x;b.jc=x}}p.bi.z=q-b.i.z;a(b,q);p.ak.hO=p.ak.hO+u.Lc.bi.z}if((q=p.mG)&&(b.ni!=-1&&!q.nl)&&q.i.z+q.size.z>b.i.z){if(q.hk)q=q.hk;u=Vec2.sub(b.kb(),q.kb());if(q.type==ig.la.BLOCK)y.x=y.y=0;q=Vec2.length(u)-q.size.y/2;q=q<=0?1:Math.max(0.1,1-0.9*q/b.size.y);Vec2.length(u,ig.g.ga*128*q);Vec2.add(y,u)}if(!p.UQa&&!p.Ls&&!h&&y.x==0&&y.y==0&&!b.Z.z&&(d||b.i.z==b.jc&&!p.Uga&&!p.$j&&!p.ak.eK&&!b.nd.height&&!p.mG)){b.Zp=0;b.vm=0}else{u=b.Z.z;h=Math.abs(b.i.z-
b.jc)<ig.xe.yh;z=this.rdb(b,y,h)||z;d=this.mu(e);d.qO=k;d.qO.length=0;d.Xaa=l;d.Xaa.length=0;p.UQa?p.UQa=w:this.EMa(d,b,y,c);this.Lwa(b,y,h,u,z);this.bN(b);if(d.qO.length>0)for(y=d.qO.length;y--;)this.k9a(d.qO[y],b,d.Xaa[y]);p.Ls=w}}}},EMa:function(b,d,e,h,k){var l=d.Lc;if(e.x==0&&e.y==0){d.Zp=0;d.vm=0;if(!k){l.bi.x=0;l.bi.y=0}}else{var m=d.i.x,y=d.i.y,z=Math.sqrt(e.x*e.x+e.y*e.y);this.eX(d);var u=d.i.z-d.jc<ig.xe.yh;if(d.type){var v=w,A=d.mm?1:3,C=j;do{A--;if(d.nl){d.Zp=0;d.vm=0}else{this.u9=j;v=
this.trace(b,m,y,d.i.z,e.x,e.y,d.size.x,d.size.y,d.size.z,d.type,d,h,u);this.u9=w;if(!v&&C){d.Zp=0;d.vm=0}C=w}if(b.gf>0&&Math.abs(d.Eb.x*b.dir.x+d.Eb.y*b.dir.y)<0.8)d.Zp=0;if(b.q3){a(d,ig.t.$a[d.aa+1].height);b.q3=w}if(v&&A){if(!k)l.gF=l.gF||v;var B=b.dir.y*e.x-b.dir.x*e.y,m=m+b.gf*e.x,y=y+b.gf*e.y,z=z*(1-b.gf);e.x=(1-b.gf)*b.dir.y*B;e.y=(1-b.gf)*-b.dir.x*B;b.gf=1;if(b.Fu||b.Gu){B=Vec2.Sa(c,b.Fu,b.Gu);Vec2.length(B,z-Math.sqrt(e.x*e.x+e.y*e.y));e.x=e.x+B.x;e.y=e.y+B.y;B=1;b.Fu>0&&e.x>b.Fu?B=Math.min(B,
b.Fu/e.x):b.Fu<0&&e.x<b.Fu&&(B=Math.min(B,b.Fu/e.x));b.Gu>0&&e.y>b.Gu?B=Math.min(B,b.Gu/e.y):b.Gu<0&&e.y<b.Gu&&(B=Math.min(B,b.Gu/e.y));if(B<1){e.x=e.x*B;e.y=e.y*B}if(!k)l.mva=j}delete b.Fu;delete b.Gu}}while(v&&A&&(e.x!=0||e.y!=0));if(!k){l.gF=l.gF||v;l.jp.x=b.dir.x;l.jp.y=b.dir.y}}else{d.Zp=0;d.vm=0}if(d.vm<0)d.vm=0;window.E6a();m=m+b.gf*e.x;y=y+b.gf*e.y;m=Math.round(m*100)/100;y=Math.round(y*100)/100;if(!k){l.bi.x=m-d.i.x;l.bi.y=y-d.i.y}(isNaN(m)||isNaN(y))&&f(Error("NaN!"));d.i.x=m;d.i.y=y}},
KKa:function(a){return this.ypa?this.ypa(a):w},icb:function(a){return this.zpa?this.zpa(a):w},ypa:s,zpa:s,rdb:function(c,d,e){var h=w,k=c.i.x,l=c.i.y,m=c.Lc,y=ig.t.$a[c.aa]||ig.t.$a[0];if(e&&(c.se>0&&!c.rda)&&(m.ak.eK==1||m.$j)){var e=Vec2.Sa(b,0,0),z=k+c.size.x/4,u=l+c.size.y/3,v=c.size.x/3,A=c.size.y/4,C=c.i.z-y.height,B=1E3;m.ak.eK==2&&(C=C+16);this.KKa(c)&&(C=C+16);if(m.ak.eK==1&&y.collision.xV(z,u-y.height,v,A)){d.x*m.ak.C3.x+d.y*m.ak.C3.y<=0&&Vec2.add(e,m.ak.C3);!m.$j&&!this.lba(z,u,v,A,c.size.z,
c.i.z,c.i.z-ig.xe.az,c)&&(C=C+16)}if(m.$j)if(this.lba(z,u,v,A,c.size.z,c.i.z,(m.$j.ml?m.$j.i.z:c.i.z)-ig.xe.az,c))C=0;else{Vec2.add(e,m.ak.BC);B=Math.min(B,m.ak.rU)}if((e.x!=0||e.y!=0)&&C>ig.xe.az&&Vec2.hj(d,e)>=0&&Vec2.hj(c.Eb,e)>=0){c.fG&&c.fG(e);if(c.Z.z<=0){Vec2.length(e,Math.min(B,32*ig.g.ga));h=j;d.x=d.x+e.x;d.y=d.y+e.y;if(Math.sqrt(d.x*d.x+d.y*d.y)>B&&c.Eb.x==0&&c.Eb.y==0){d.x=e.x;d.y=e.y}}}}e=-ig.t.VU*c.se;d=1E3;y=-1E3;if(c.nd.height){z=ig.t.VU/5*c.nd.ep;u=ig.t.VU*4*c.nd.ep;d=Math.max(c.Z.z,
c.nd.rh);y=Math.min(c.Z.z,-c.nd.rh);A=c.nd.uj;v=c.nd.height+c.jc-c.i.z;Math.abs(v)<=A*2&&(z=z/6);C=c.Z.z*c.Z.z;if(A==0&&Math.abs(v)<1&&Math.abs(c.Z.z)<50){e=0;c.Z.z=0}else if(!(v-A<0&&c.Z.z<0)&&(v>=0||v+A>0&&c.Z.z>0)){e=0.5*C/(v+A);e=c.Z.z>0&&(e>=z||v<=0)?-e.Vb(z/4,u):z}else if(v<0||v-A<0&&c.Z.z<0){e=0.5*C/(-v+A);e=c.Z.z<0&&(e>=z||v>=0)?e.Vb(z/4,u):-z}}if(!m.Uga&&(m.Ls||c.i.z>c.jc||c.Z.z!=0||e>0)){z=m.Ls?c.i.z+m.bi.z:c.i.z+c.Z.z*ig.g.ga+e*ig.g.ga*ig.g.ga*0.5;if(!m.Ls&&c.Z.z>0&&c.aa+1<ig.t.bk&&z+c.size.z>
ig.t.$a[c.aa+1].height-1&&!ig.t.$a[c.aa+1].collision.xV(k,l-ig.t.$a[c.aa+1].height,c.size.x,c.size.y)){z=ig.t.$a[c.aa+1].height-1-c.size.z;c.Z.z=0}if(!m.Ls&&z<=c.jc){c.Z.z=c.i.z>c.jc&&-c.Z.z>c.ada?c.Z.z*-c.Xh:0;z=c.jc}if(!m.Ls)m.bi.z=m.bi.z+(z-c.i.z);a(c,z);c.Z.z=c.Z.z+e*ig.g.ga;if(c.Z.z>d)c.Z.z=d;if(c.Z.z<y)c.Z.z=y}if(c.Eb.x||c.Eb.y){c.Zp=c.Zp+ig.g.ga;c.vm=c.vm+ig.g.ga}else{c.Zp=0;c.vm=0}return h},k9a:function(a,b,c,d){var e=Vec2.Sa(m,0,0);if(c.x>0)e.x=Math.max(0,b.i.x+b.size.x-a.i.x);else if(c.x<
0)e.x=Math.min(0,b.i.x-a.i.x-a.size.x);if(c.y>0)e.y=Math.max(0,b.i.y+b.size.y-a.i.y);else if(c.y<0)e.y=Math.min(0,b.i.y-a.i.y-a.size.y);if(!(e.x==0&&e.y==0)){a.gKa();var b=this.mu(h),c=a.Zp,k=a.vm;this.EMa(b,a,e,d,j);a.Zp=c;a.vm=k;this.Lwa(a,e,Math.abs(a.i.z-a.jc)<ig.xe.yh,a.Z.z,j);this.bN(a)}},Lwa:function(b,c,d,e,h){var k=b.Lc,l=b.jc,m=this.Skb(b,b.i.x,b.i.y,k);if(b.se&&b.i.z<b.jc){k.bi.z=k.bi.z+(b.jc-b.i.z);a(b,b.jc);k.d7=j}var z=m||k.$j,c=z&&z.ml?Math.max(Math.abs(c.x),Math.abs(c.y))+2:ig.xe.az;
if(!k.Ls&&b.se){z=b.i.z-b.jc<ig.xe.yh;if(d&&b.Z.z<=0)if(z)k.ak.joa&&b.P.fG&&b.P.fG();else if(b.i.z-b.jc>c||this.KKa(b))b.P.fG&&b.P.fG();else{a(b,b.jc);k.d7=j}else b.nd.height&&l-b.jc>ig.xe.az&&b.i.z-l<b.nd.height+b.nd.uj?b.P.fG&&b.P.fG():!d&&z&&b.P.DA&&b.P.DA(e)}else m=s;(k.$j!=m||h||k.gF)&&b.NPa(m)},Skb:function(a,b,c,d){var e=ig.t.$a[a.aa]||ig.t.$a[0];a.jc=a.aa>=0?e.height:-1E3;Vec2.Sa(d.ak.C3,0,0);d.ak.eK=e.collision.xV(b,c-e.height,a.size.x,a.size.y,d.ak.C3);e=a.aa;if(e>=0&&d.ak.eK==2)for(--e;e>=
0&&ig.t.$a[e].collision.xV(b,c-ig.t.$a[e].height,a.size.x,a.size.y);)--e;a.jc=e>=0?ig.t.$a[e].height:-1E3;d.Uga=w;Vec2.Sa(d.ak.BC,0,0);d.ak.hO=0;d.ak.rU=1E4;d.mG=s;d.ak.joa=w;if(b=this.lba(b,c,a.size.x,a.size.y,a.size.z,a.i.z,a.jc,a,d)){c=b.ml?32:ig.xe.az;e=this.icb(b);if(a.jc==a.i.z&&a.jc==d.ak.hO&&e)b=s;else{if(a.jc<d.ak.hO)a.jc=d.ak.hO;a.se&&a.i.z-a.jc<=c?d.ak.joa=e:b=s}}return b},A9a:function(a,b,c,d,e){for(var h=ig.t.KC(c);h>=0&&ig.t.$a[h].collision.xV(a,b-ig.t.$a[h].height,d,e);)--h;h=h>=0?
ig.t.$a[h].height:-1E3;return(a=this.lba(a,b,d,e,8,c,h))?a.i.z+a.size.z:h},Fkb:function(a,b,c,d,e,h,k,l,m,u,v,A,C){for(var B=[],E=[],I=w,K=Math.max(0,Math.floor((b+(e<0?e:0))/this.Ll)),H=Math.max(0,Math.floor((c+(h<0?h:0))/this.Ll)),G=Math.min(this.Aj.width,Math.floor((b+(e>0?e:0)+k)/this.Ll)+1),J=Math.min(this.Aj.height,Math.floor((c+(h>0?h:0)+l)/this.Ll)+1),D=[],N=[],O=1,I=w,U=v&&v.Lc&&v.Lc.Ls,Q=U||v&&u==ig.la.BLOCK&&v.ni==-1,W=v&&v.hk?v.hk:v,T=v&&v.shape!=ig.mk.RECTANGLE,X=K;X<G;X++)for(var V=
H;V<J;V++)for(var S=this.Aj[X][V],K=S.length;K--;){var P=S[K];if(B.indexOf(P)==-1&&P!=W&&(!P.hk||P.hk!=W)){B.push(P);if(P.nl||P.hk&&P.hk.nl||!ig.gd.xh[u][P.type])E.push(P);else{var Z=a.gf,ea;if(T)(ea=v.trace(a,P.i.x,P.i.y,P.i.z,-e,-h,P.size.x,P.size.y,P.size.z,C))&&Vec2.hd(a.dir);else ea=P.trace(a,b,c,d,e,h,k,l,m,C);if(ea){if(a.qO&&Q&&P.type!=ig.la.BLOCK&&(P.ni!=-1||P.type==ig.la.PROJECTILE)){a.gf=Z;a.qO.push(P);a.Xaa.push(ig.copy(a.dir))}else if(U)a.gf=Z;else{if(O>a.gf){O=a.gf;D=[];N=[]}I=j}D.push(P);
N.push({x:a.dir.x,y:a.dir.y})}else if(P.V2(b,c,d,k,l,m)){D.push(P);N.push({x:0,y:0})}}}}if(A){a=w;for(K=D.length;K--;){P=D[K];u=N[K];A.indexOf(P)==-1&&A.push(P);if(v&&this.u9){a=j;B=P.lv.indexOf(v);if(B==-1){B=P.lv.length;P.lv.push(v)}if(!P.g_[B]){u.hj=u.x*e+u.y*h;P.g_[B]=u}v.lv.indexOf(P)==-1&&v.lv.push(P)}}if(v&&this.u9){D={gf:1,dir:{x:0,y:0}};for(K=E.length;K--;){P=E[K];D.gf=O;if(P.trace(D,b,c,d,e,h,k,l,m,C)||P.V2(b,c,d,k,l,m)){A.indexOf(P)==-1&&A.push(P);a=j;P.lv.indexOf(v)==-1&&P.lv.push(v);
v.lv.indexOf(P)==-1&&v.lv.push(P)}}a&&A.indexOf(v)==-1&&A.push(v)}}return I},lba:function(a,b,c,d,e,h,k,l,m){for(var u=m&&m.ak,v=w,A=0,C=Math.max(0,Math.floor(a/this.Ll)),B=Math.max(0,Math.floor(b/this.Ll)),E=Math.min(this.Aj.width,Math.floor((a+c)/this.Ll)+1),I=Math.min(this.Aj.height,Math.floor((b+d)/this.Ll)+1),K=l&&l.type==ig.la.SEMI_IGNORE;C<E;C++)for(var H=B;H<I;H++)for(var G=this.Aj[C][H].length;G--;){var J=this.Aj[C][H][G];if(J!=l&&!J.nl&&(!l||J.hk!=l)&&(J.type==ig.la.BLOCK||!K&&J.type==ig.la.VIRTUAL||
K&&J.type==ig.la.SEMI_IGNORE)){var D=J.i.z+J.YIa(a,b,c,d);if(J.i.z-ig.xe.yh<=h&&h+e-ig.xe.yh>J.i.z&&D>=k){var N=J.i.x+J.size.x-a,O=a+c-J.i.x,U=J.i.y+J.size.y-b,Q=b+d-J.i.y,W=Math.min(Math.min(N,O),Math.min(Q,U));if(W>0)if(!J.ml&&D-ig.xe.yh>h+ig.xe.az){if(J.shape==ig.mk.RECTANGLE&&u&&l&&!l.nl&&!J.nl&&(l.type==ig.la.BLOCK||l.type==ig.la.VIRTUAL||K)){D=J.Lc;if(!(D&&D.$j==l)){if(!m.mG||m.mG.size.x<J.size.x)m.mG=J;if(D&&(!D.mG||D.mG.size.x<l.size.x))D.mG=l}}}else if(J.type==ig.la.BLOCK){var T=0,X=0,V=
0,S=W;if(J.shape!=ig.mk.RECTANGLE){var P=J.i.x+J.size.x/2,Z=J.i.y+J.size.y/2;switch(J.shape){case ig.mk.SLOPE_NE:T=a-P-(b+d-Z);X=1;V=-1;break;case ig.mk.SLOPE_SE:T=a-P+(b-Z);V=X=1;break;case ig.mk.SLOPE_SW:T=-(a+c-P)+(b-Z);X=-1;V=1;break;case ig.mk.SLOPE_NW:T=-(a+c-P)-(b+d-Z);V=X=-1}if(T>=-ig.xe.yh)continue;T=T*-Math.SQRT1_2;S=Math.min(S,T)}if(u){T=ig.Xf.Q$a(J,a,b,c,d);if(D>k){k=D;u.BC.x=0;u.BC.y=0;u.rU=1E5}else if(v&&T<A)continue;A=T;if(W==S)if(W==U){X=0;V=1}else if(W==Q){X=0;V=-1}else if(W==N){X=
1;V=0}else if(W==O){X=-1;V=0}if(S<u.rU)if(u.BC.x*X+u.BC.y*V<0){u.BC.x=0;u.BC.y=0;u.rU=0}else{u.BC.x=X;u.BC.y=V;u.rU=S}u.hO=D;v=J}else return J}}}}return v}})});ig.G=j;
ig.I("impact.base.game-state").H(function(){ig.G7=ig.ra.extend({t:{screen:{x:0,y:0},size:{x:0,y:0},paused:w,entities:[],Rca:[],Bm:[],AU:[],cG:{},eI:[],KT:[],jf:[],$a:{},bk:0,$F:0,zp:0},Nf:{nx:[],FT:[],Aj:[]},Wsa:w,bm:{JD:[],FJ:[]},f:F(),clear:function(){ig.t.pushState(this);for(var a=this.t.entities,b=a.length;b--;){a[b]&&a[b].Tb(j);a[b]&&!a[b].Ne&&f(Error("Entity of id "+this.entities[b].id+" was not properly killed"))}ig.t.qna();ig.t.N4()},iKa:function(a,b){this.t.size.x=a;this.t.size.y=b;this.t.bk=
1;this.t.zp=0;this.t.$a.first={jf:[]};this.t.$a.last={jf:[]};this.t.$a.object1={jf:[]};this.t.$a.object2={jf:[]};this.t.$a.object3={jf:[]};this.t.$a["0"]={height:0,collision:ig.pi.Collision.wRa,jf:[]}},Hbb:function(a){this.kD(a);this.Wsa=j},sO:function(){ig.g.tp=ig.g.ga;ig.g.ga=ig.g.Da;var a=ig.t;ig.t.pushState(this);a.Nf.update();a.qna();ig.t.N4();ig.g.ga=ig.g.tp},h9a:function(a,b){var c=ig.t;this.t.screen.x=this.t.screen.x-a;this.t.screen.y=this.t.screen.y-b;ig.t.pushState(this);c.bm.hOa(c.Bm,j);
c.bm.eHa(j,j);c.bm.gHa(j);ig.t.N4();this.t.screen.x=this.t.screen.x+a;this.t.screen.y=this.t.screen.y+b},kD:function(a){for(var b in this.t)this.t[b]=a[b];for(b in this.Nf)this.Nf[b]=a.Nf[b];for(b in this.bm)this.bm[b]=a.bm[b]},rW:function(a){for(var b in this.t)a[b]=this.t[b];for(b in this.Nf)a.Nf[b]=this.Nf[b];for(b in this.bm)a.bm[b]=this.bm[b];if(!this.Wsa){a.Nf.jMa();this.Wsa=j}}})});ig.G=j;
ig.I("impact.base.map").H(function(){var a=Vec2.create();ig.kZ=ig.ra.extend({hb:8,width:1,height:1,data:[[]],sg:0,dxa:0,kK:{x:0,y:0},f:function(a,c){this.hb=a.tilesize;var d=a.data;this.height=(this.data=d)&&d.length;this.width=d&&d[0].length;this.repeat=a.repeat;this.ab=a.distance;this.Tga=a.yDistance||0;this.sg=c;this.dxa=this.sg/this.hb;this.kK=a&&a.moveSpeed||this.kK},copy:function(a){this.hb=a.hb;this.data=[];for(var c=0;c<a.data.length;++c)this.data.push(a.data[c].slice());this.height=a.height;
this.width=a.width;this.repeat=a.repeat;this.ab=a.ab;this.Tga=a.Tga||0;this.sg=a.sg;this.dxa=a.dxa},clear:function(){this.data.length=0},o2:function(a,c){var d=Math.floor(a/this.hb),e=Math.floor(c/this.hb);return d>=0&&d<this.width&&e>=0&&e<this.height?this.data[e][d]:0},AJ:function(a,c){return this.data[c]&&this.data[c][a]||0},Jsb:function(a,c,d){return this.CQ(Math.floor(a/this.hb),Math.floor(c/this.hb),d)},CQ:function(a,c,d){if(a>=0&&a<this.width&&c>=0&&c<this.height){if(this.data[c][a]==d)return w;
this.data[c][a]=d;return j}return w}});ig.Sxa=ig.kZ.extend({scroll:{x:0,y:0},ab:1,Tga:0,repeat:w,enabled:j,qea:j,am:s,lx:512,mx:512,GGa:w,xMa:w,f:function(a,c){this.parent(a,c)},clear:function(){this.parent();if(this.am){for(var a=0;a<this.am.length;++a){for(var c=0;c<this.am[a].length;++c){var d=this.am[a][c];d.width=0;d.height=0}this.am[a].length=0}this.am.length=0;this.am=s}},iQa:function(b,c){var d=0,e=0,h=this.Tga||this.ab;if(this.ab){e=ig.g.QIa(a,ig.g.width/2,ig.g.height/2);d=ig.t.screen.x+
ig.g.width/2-e.x;e=ig.t.screen.y+ig.g.height/2-e.y}this.scroll.x=(b-d)/this.ab+d;this.scroll.y=(c-e)/h+e;if(this.ab&&this.ab<1)this.scroll.x=this.scroll.x+16;if(h&&h<1)this.scroll.y=this.scroll.y+16},CQ:function(a,c,d){this.parent(a,c,d)&&this.am&&this.vOa(this.am[Math.floor(this.hb*c*ig.g.scale/this.mx)][Math.floor(this.hb*a*ig.g.scale/this.lx)],this.hb*a*ig.g.scale%this.lx,this.hb*c*ig.g.scale%this.mx,d)},bta:function(a){var c=this.width*this.hb*ig.g.scale,d=this.height*this.hb*ig.g.scale,e=Math.ceil(c/
this.lx),h=Math.ceil(d/this.mx);this.am=[];for(var k=0;k<h;k++){this.am[k]=[];for(var l=0;l<e;l++){var m=l==e-1?c-l*this.lx:this.lx,n=k==h-1?d-k*this.mx:this.mx,o=s;if(a){o=a[k][l];this.rea(l,k,m,n,o,j)}else{o=ig.aq("canvas");o.width=m;o.height=n;this.am[k][l]=o;this.rea(l,k,m,n,o,w)}}}if(a)this.xMa=j;return this.am},uOa:R(w),rea:R(s),vOa:F(),tCa:function(b,c,d,e){if(!this.xMa){var h=ig.g.upa(a),b=b==g?this.scroll.x+h.x-1:b,c=c==g?this.scroll.y+h.y-1:c,d=d==g?Math.ceil(ig.g.width/ig.g.zoom)+2:d,e=
e==g?Math.ceil(ig.g.height/ig.g.zoom)+2:e;this.enabled&&(this.qea?this.b8a(b,c,d,e):this.yaa(b,c,d,e))}},Xa:function(a,c,d,e){this.tCa(a,c,d,e)},Ina:s,b8a:function(a,c,d,e){if(!this.am){if(!this.uOa())return;this.bta()}var a=ig.g.Ae(a),h=ig.g.Ae(c),c=a-this.scroll.x*ig.g.scale,k=h-this.scroll.y*ig.g.scale;if(!ig.$l.VQa||!this.ab||this.ab==1){c=Math.round(c*ig.g.scale)/ig.g.scale;k=Math.round(k*ig.g.scale)/ig.g.scale}var d=d*ig.g.scale,e=e*ig.g.scale,l=this.width*this.hb*ig.g.scale,m=this.height*this.hb*
ig.g.scale;if(this.repeat){a=(a%l+l)%l;h=(h%m+m)%m}else{a+d>l&&(d=l-a);h+e>m&&(e=m-h)}for(var l=Math.max(Math.floor(a/this.lx),0),n=Math.max(Math.floor(h/this.mx),0),m=this.am[0].length,o=this.am.length,h=h-n*this.mx,t=0,r,p;t<e;){for(var q=0,x=a-l*this.lx,y=l;q<d;){var z=this.am[n][y],u=c+q,v=k+t;r=Math.min(z.width-x,d-q);p=Math.min(z.height-h,e-t);if(r&&p){ig.g.context.drawImage(z,x,h,r,p,u,v,r,p);ig.$.zv++}if(this.GGa){ig.g.context.strokeStyle="#f0f";ig.g.context.strokeRect(u,v,r,p)}x=0;q=q+r;
y=(y+1)%m}h=0;t=t+p;n=(n+1)%o}},yaa:F()});ig.pi={}});ig.G=j;
ig.I("game.config").H(function(){ig.Wmb=["en_US","de_DE","fr_FR"];ig.gnb=["en_US","de_DE"];ig.qn={DEFAULT_TILE_SIZE:16,DISABLE_LAYER_SIZE:j,DISABLE_LAYER_DISTANCE:w,DISABLE_LAYER_REPEAT:j,COLLISION_TILESET:"media/map/collisiontiles-16x16.png"};ig.hM=w;ig.Y0a="data/tile-infos.json";ig.Gd={NORMAL:1,METAL:2,CARDBOARD:3,EARTH:4,GRASS:5,WATER:6,WOOD:7,STONE:8,METALSOLID:9,SNOW:10,ICE:11,NOTHING:12,QUICKSAND:13,SHALLOW_WATER:14,SAND:15,COAL:16,HOLE:17};ig.zja="data/terrain.json";ig.UH=ig.Gd.NORMAL;ig.bmb=
{ACHIEVEMENTS:1};ig.zUa="data/database.json";ig.Emb="data/npc-names.json";ig.Qya="data/item-database.json";ig.CAa="data/skilltree.json";ig.Fxa="data/changelog.json";ig.Hlb="data/achievements.json"});ig.G=j;
ig.I("impact.base.collision-map").J("impact.base.map","game.config").H(function(){function a(a){return a<4?a==3?0:1:2+a%4}function b(a){return a<4?a%3:a-12>>2}ig.pi.Collision=ig.kZ.extend({s:new ig.u({u_:"Collision",j_:ig.qn.DISABLE_LAYER_SIZE,B_:j,A_:j,z_:ig.qn.DISABLE_LAYER_DISTANCE,k_:ig.qn.DEFAULT_TILE_SIZE,xka:ig.qn.COLLISION_TILESET,Enb:j,q_:"weltmeister/lib/map/img/layer-collision-icon.png",Yja:0.6,$ja:0,Zja:0}),f:function(a,b){this.parent(a,b)},vD:function(a,b){for(var e=0;e<this.height;e++)for(var h=
0;h<this.width;h++){var k;a&&(k=a.data[e+b]?a.data[e+b][h]%32:2);this.data[e][h]=ig.s7.dta(h,e,this.data[e][h],k,b)}},lLa:function(a,b){return ig.s7.Acb(this.o2(a,b))},jLa:function(a,b,e,h){for(var k=Math.floor(a/this.hb),a=Math.floor(Math.ceil(a+e-1)/this.hb),e=Math.floor(b/this.hb),b=Math.floor(Math.ceil(b+h-1)/this.hb),e=Math.max(e,0),b=Math.min(b,this.height-1),k=Math.max(k,0),a=Math.min(a,this.width-1),b=b+1;b-- >e;)for(h=a+1;h-- >k;)if(ig.s7.kLa(this.AJ(h,b)))return j;return w},JKa:function(c,
d){var e=this.AJ(c,d),h=b(e),e=a(e);return h==3||h==1&&e==1},xV:function(c,d,e,h,k){for(var l=Math.floor(c/this.hb),m=Math.floor(Math.ceil(c+e-1)/this.hb),n=Math.floor(d/this.hb),o=Math.floor(Math.ceil(d+h-1)/this.hb),n=Math.max(n,0),o=Math.min(o,this.height-1),l=Math.max(l,0),m=Math.min(m,this.width-1),t=0,r=0,p=o+1;p-- >n;)for(var q=m+1;q-- >l;){++r;var x=this.data[p]&&this.data[p][q],x=x%32,y=a(x),z=b(x),x=0;if(z==3)x=1;else if(z==1)if(y==1)x=1;else if(y>1){var z=(q+0.5)*this.hb,u=(p+0.5)*this.hb;
y==2&&q==m&&p==n?c+e-z-(d-u)<=0.01&&(x=1):y==2&&q==l&&p==o?-(c-z)+(d+h-u)>0.01&&(x=0.5):y==3&&q==m&&p==o?c+e-z+(d+h-u)<=0.01&&(x=1):y==3&&q==l&&p==n?-(c-z)-(d-u)>0.01&&(x=0.5):y==4&&q==l&&p==o?-(c-z)+(d+h-u)<=0.01&&(x=1):y==4&&q==m&&p==n?c+e-z-(d-u)>0.01&&(x=0.5):y==5&&q==l&&p==n?-(c-z)-(d-u)<=0.01&&(x=1):y==5&&q==m&&p==o?c+e-z+(d+h-u)>0.01&&(x=0.5):x=0.5}if(x!=1&&!k)return 0;if(x!=0&&k){k.x=k.x+(q==l?-1:q==m?1:0);k.y=k.y+(p==n?-1:p==o?1:0)}t=t+x}return t==r?2:t>0?1:0},trace:function(c,d,e,h,k,l,
m,n,o){var t=Math.floor((d+(h<0?h:0))/this.hb),r=Math.floor(Math.ceil(d+l-1+(h>0?h:0))/this.hb),p=Math.floor((e+(k<0?k:0))/this.hb),q=Math.floor(Math.ceil(e+m-1+(k>0?k:0))/this.hb),x,y,z,u;if(h!=0&&k!=0){var v;v=d+h+(h<0?l:0)-(h<0?r:t+1)*this.hb;var A=e+k+(k>0?m:0)-(k>0?q:p+1)*this.hb;if(A&&A*k>=0&&v*h>=0&&Math.abs(v)<Math.abs(h)&&Math.abs(A)<Math.abs(k)&&Math.abs(h/k)<Math.abs(v/A)){x=h<0?r:t;y=k>0?q:p}A=e+k+(k<0?m:0)-(k<0?q:p+1)*this.hb;if((v=d+h+(h>0?l:0)-(h>0?r:t+1)*this.hb)&&A*k>=0&&v*h>=0&&
Math.abs(v)<Math.abs(h)&&Math.abs(A)<Math.abs(k)&&Math.abs(k/h)<Math.abs(A/v)){z=h>0?r:t;u=k<0?q:p}}v=w;p=Math.max(p,0);q=Math.min(q,this.height-1);t=Math.max(t,0);r=Math.min(r,this.width-1);for(q=q+1;q-- >p;)for(A=r+1;A-- >t;)if((A!=x||q!=y)&&(A!=z||q!=u)){var C=this.data[q]&&this.data[q][A],C=C%32,B=a(C),C=b(C);if(o)C==1?B=B>1?B%4+2:B?0:1:C!=3&&(B=1);else{if(n&&C==1)continue;!n&&C==3&&(B=1)}B>1?v=ig.pi.Collision.Hfa(c,d,e,h,k,l,m,A*this.hb,q*this.hb,this.hb,this.hb,(B-2)%4)||v:B&&(v=ig.pi.Collision.Hfa(c,
d,e,h,k,l,m,A*this.hb,q*this.hb,this.hb,this.hb)||v)}return v}});ig.pi.Collision.zca="collision";ig.s7={kLa:function(a){a=b(a);return a==2||a==3},Acb:function(c){var d=b(c),c=a(c);return d!=1&&d!=3&&c==0},$qb:function(c){var d=b(c),c=a(c);return d==3||d==2||d==1&&c==1?w:j},Tpb:function(a,b,e,h,k,l){var m=e>l?1:-1,n=k[e].height,o=n-k[l].height,t;for(t=h[l]?this.dta(a,b,h[l].o2(a,b+o)):3;l!=e;){l=l+m;o=n-k[l].height;t=h[l]?this.dta(a,b,h[l].o2(a,b+o),t,m):3}return t},dta:function(c,d,e,h,k){d=c=e;c=
c%32;d=d-c;if(c>0&&c<4||c>=16)return e;if(h===g)d=c==0||c>=12?d+3:d+(c+12);else{var e=a(h),l=b(h);if(k>0)if(c==0)d=l==2||l==3?d+(e==1?3:e%4+16):d+1;else{h=2+c%4;d=e!=h&&(l==2||l==3)?d+(c>=12?3:c+12):d+(c>=12?h%4+16:c>=8?c+16:1)}else if(c==0)d=l==1?d+(e==1?3:e%4+20):l==3?d+(h-4):d+2;else{h=2+c%4;l==3&&(e=2+e%4);d=e!=h&&(l==1||l==3)?d+(c>=12?3:c+12):d+(c>=12?h%4+20:c>=8?2:h%4+24)}}return d}};ig.pi.Collision.wRa={xV:R(0),lLa:R(w),jLa:R(w),trace:R(w),vD:F()};ig.xe={};ig.xe.yh=1E-5;ig.xe.q8=8;ig.xe.az=
4;ig.pi.Collision.Hfa=function(a,b,e,h,k,l,m,n,o,t,r,p){var q=w;if(p!=g){var x=0,y=0,z=n+t/2,u=o+r/2;switch(p){case 0:x=-z+u-(-b+e+m);y=-h+k;break;case 1:x=-z-u-(-b-e);y=-h-k;break;case 2:x=z-u-(b+l-e);y=h-k;break;case 3:x=z+u-(b+l+e+m);y=h+k}if((q=x+0.1>=0)&&y>0){x=Math.max(0,x/y-ig.xe.yh);if(x-ig.xe.yh<a.gf){q=0;switch(p){case 0:q=b+x*h-z+(e+x*k+m-u);break;case 1:q=b+x*h-z-(e+x*k-u);break;case 2:q=b+x*h+l-z+(e+x*k-u);break;case 3:q=b+x*h+l-z-(e+x*k+m-u)}if(Math.abs(q)>t+0.1)q=w;else{k=h=0;a.gf=
x;a.dir.x=(p<2?-1:1)*Math.SQRT1_2;a.dir.y=(p==0||p==3?1:-1)*Math.SQRT1_2;return j}}}}if(!q){p=h==0?-1:(n+(h>0?-l:t)-b)/h;z=k==0?-1:(o+(k>0?-m:r)-e)/k;u=Math.min(p,z);x=Math.max(p,z);if(u+ig.xe.yh>=0&&x<1){if(x<a.gf){if(a.Fu!=g)a.Fu=a.dir.x?h>0?1E3:-1E3:0;if(a.Gu!=g)a.Gu=a.dir.y?k>0?1E3:-1E3:0;a.gf=x;a.dir.x=x==p?h>0?1:-1:0;a.dir.y=x==z?k>0?1:-1:0;if(x==p&&x==z){a.dir.x=a.dir.x*Math.SQRT1_2;a.dir.y=a.dir.y*Math.SQRT1_2}return j}}else{if(p+ig.xe.yh>=0&&p-ig.xe.yh<=a.gf){k=e+m-ig.xe.q8<o||e+ig.xe.q8>
o+r?o-e>e+m-o-r?o-e-m:o+r-e:0;a.Gu=a.Gu!=g&&p+ig.xe.yh>=a.gf?a.Gu*k<=0?0:a.Gu:k;a.gf=Math.max(0,p-ig.xe.yh);a.dir.x=h>0?1:-1;a.dir.y=0;return j}if(z+ig.xe.yh>=0&&z-ig.xe.yh<=a.gf){h=b+l-ig.xe.q8<n||b+ig.xe.q8>n+t?n-b>b+l-n-t?n-b-l:n+t-b:0;a.Fu=a.Fu!=g&&z+ig.xe.yh>=a.gf?a.Fu*h<=0?0:a.Fu:h;a.gf=Math.max(0,z-ig.xe.yh);a.dir.x=0;a.dir.y=k>0?1:-1;return j}}}return w}});ig.G=j;
ig.I("impact.base.tile-info").H(function(){ig.g1a=ig.SH.extend({jga:s,f:function(){this.parent()},Us:function(){$.ajax({dataType:"json",url:ig.root+ig.Y0a+ig.kl(),context:this,success:this.onload.bind(this),error:this.onerror.bind(this)})},onerror:function(){this.jga={};this.zk(j)},onload:function(a){this.jga=a;this.zk(j)}});ig.YRa=new ig.g1a;ig.f1a=ig.ra.extend({fFa:{},f:function(a){if(ig.YRa.jga[a])for(var a=ig.YRa.jga[a],b=a.animations.length;b--;)for(var c=a.animations[b],d=c.length;d--;)this.fFa[c[d]]=
c},dIa:function(a){return this.fFa[a]||s}})});ig.G=j;
ig.I("impact.base.background-map").J("impact.base.map","impact.base.image","impact.base.tile-info","game.config").H(function(){var a=Vec2.create();ig.pi.Background=ig.Sxa.extend({qt:s,oR:"",fwa:s,Dpa:w,s:new ig.u({u_:"Background",j_:ig.qn.DISABLE_LAYER_SIZE,B_:j,z_:ig.qn.DISABLE_LAYER_DISTANCE,k_:ig.qn.DEFAULT_TILE_SIZE,A_:j,Z3a:j,q_:"weltmeister/lib/map/img/layer-background-icon.png"}),f:function(a,c){this.parent(a,c);this.Vib(a.tilesetName);this.y6a()},Qa:function(){this.qt&&this.qt.zc()},uOa:function(){return this.qt.loaded},
y6a:function(){this.Dpa=w;for(var a=0;a<this.width;a++)for(var c=0;c<this.height;c++)if(this.fwa.dIa(this.data[c][a])){this.Dpa=j;return}},Vib:function(a){this.oR=a instanceof ig.$?a.path:a;this.fwa=new ig.f1a(this.oR);this.qt=new ig.$(this.oR);this.am=s},rea:function(a,c,d,e,h){var d=d/this.hb/ig.g.scale+1,e=e/this.hb/ig.g.scale+1,k=a*this.lx/ig.g.scale%this.hb,l=c*this.mx/ig.g.scale%this.hb,a=Math.floor(a*this.lx/this.hb/ig.g.scale),c=Math.floor(c*this.mx/this.hb/ig.g.scale),m=ig.g.context;ig.g.context=
ig.g.bu(h);for(var n=0;n<d;n++)for(var o=0;o<e;o++)if(n+a<this.width&&o+c<this.height){var t=this.data[o+c][n+a];t&&this.qt.p1(n*this.hb-k,o*this.hb-l,t-1,this.hb)}ig.g.context=m;return h},Ina:function(b,c,d,e){if(this.Dpa)for(var h=ig.g.upa(a),b=b==g?this.scroll.x+h.x:b,c=c==g?this.scroll.y+h.y:c,d=d==g?ig.g.width/ig.g.zoom:d,e=e==g?ig.g.height/ig.g.zoom:e,h=Math.floor(ig.t.nT/0.2)%4,k=Math.floor(b/this.hb),b=Math.floor((b+d)/this.hb),e=Math.floor((c+e)/this.hb),d=ig.$l.VQa&&this.ab&&this.ab!=1,
c=Math.floor(c/this.hb);c<e;++c)for(var l=k;l<b;++l){var m=this.fwa.dIa(this.AJ(l,c));m&&this.qt.p1(l*this.hb-this.scroll.x,c*this.hb-this.scroll.y,m[h]-1,this.hb,this.hb,w,w,s,s,s,d)}},vOa:function(a,c,d,e){var h=ig.g.context;ig.g.context=ig.g.bu(a);a=ig.g.scale;ig.g.context.clearRect(c,d,this.hb*a,this.hb*a);e&&this.qt.p1(c/a,d/a,e-1,this.hb);ig.g.context=h},yaa:function(a,c,d,e){for(var h=0,k=(a/this.hb).dSa(),l=(c/this.hb).dSa(),a=a%this.hb,h=c%this.hb,c=-a-this.hb,d=d+this.hb-a,e=e+this.hb-h,
a=this.qt.I$a(this.hb),m=-1,n=-h-this.hb;n<e;m++,n=n+this.hb){var o=m+l;if(o>=this.height||o<0){if(!this.repeat)continue;o=o>0?o%this.height:(o+1)%this.height+this.height-1}for(var t=-1,r=c;r<d;t++,r=r+this.hb){h=t+k;if(h>=this.width||h<0){if(!this.repeat)continue;h=h>0?h%this.width:(h+1)%this.width+this.width-1}if(h=this.data[o][h])if(h-1<a)this.qt.p1(r,n,h-1,this.hb);else{ig.g.context.fillStyle="pink";ig.g.context.fillRect(ig.g.Ae(r),ig.g.Ae(n),ig.g.scale*this.hb,ig.g.scale*this.hb)}}}}});ig.pi.MovingParallax=
ig.pi.Background.extend({s:new ig.u({u_:"MovingParallax",j_:w,B_:j,A_:w,z_:w,k_:ig.qn.DEFAULT_TILE_SIZE,Z3a:w,q_:"weltmeister/lib/map/img/layer-background-icon.png"}),Ak:0,f:function(a,c){this.parent(a,c);this.repeat=j},update:function(){this.Ak=this.Ak+ig.g.ga},iQa:function(a,c){a=a-this.Ak*this.kK.x;c=c-this.Ak*this.kK.y;this.parent(a,c)}})});ig.G=j;
ig.I("impact.base.global-settings").J("impact.base.loader").H(function(){Vec2.create();ig.UVa=ig.SH.extend({ui:"GlobalSettings",data:{},pdb:w,f:function(){this.parent()},o$a:function(a,b){var c=this.data[a];return!c?s:c[b]||s},n$a:function(a,b,c){a=this.o$a(a,b);return!a?s:a[c]||s},Tsb:function(a,b,c,d){this.data[a]||(this.data[a]={});this.data[a][b]||(this.data[a][b]={});this.data[a][b][c]=d;this.pdb=j},lhb:function(a,b){if(!b.__GLOBAL__)return b;var c={};ig.merge(c,this.n$a("ENTITY",a,b.__GLOBAL__));
c.name=b.name;c.mapId=b.mapId;return c},Us:function(){$.ajax({dataType:"json",url:ig.root+"data/global-settings.json"+ig.kl(),context:this,success:this.onload.bind(this),error:this.onerror.bind(this)})},onerror:function(){this.data={};this.zk(j)},onload:function(a){this.data=a;this.zk(j)}});ig.Eab=new ig.UVa});ig.G=j;
ig.I("impact.base.utils").H(function(){var a={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",
darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",
green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",xqb:"cd5c5c",yqb:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",
lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",
palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",
teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},b=[{vta:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,xHa:["rgb(123, 234, 45)","rgb(255,234,245)"],hta:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{vta:/^(\w{2})(\w{2})(\w{2})$/,xHa:["#00ff00","336699"],hta:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{vta:/^(\w{1})(\w{1})(\w{1})$/,
xHa:["#fb0","f0f"],hta:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}];ig.Yn=function(c){this.Cda=w;if(c)if(c instanceof ig.Yn){this.Uh=c.Uh;this.Oh=c.Oh;this.Mh=c.Mh;this.Cda=j}else{c.charAt(0)=="#"&&(c=c.substr(1,6));var c=c.replace(/ /g,""),c=c.toLowerCase(),d;for(d in a)c==d&&(c=a[d]);for(d=0;d<b.length;d++){var e=b[d].hta,h=b[d].vta.exec(c);if(h){e=e(h);this.Uh=e[0];this.Oh=e[1];this.Mh=e[2];this.Cda=j}}this.Uh=this.Uh<0||isNaN(this.Uh)?0:this.Uh>255?
255:this.Uh;this.Oh=this.Oh<0||isNaN(this.Oh)?0:this.Oh>255?255:this.Oh;this.Mh=this.Mh<0||isNaN(this.Mh)?0:this.Mh>255?255:this.Mh}else{this.Uh=this.Oh=this.Mh=0;this.Cda=j}};ig.Yn.prototype.kY=function(){return"rgb("+this.Uh+", "+this.Oh+", "+this.Mh+")"};ig.Yn.prototype.assign=function(a){this.Uh=a.Uh;this.Oh=a.Oh;this.Mh=a.Mh;this.Cda=j};ig.Yn.prototype.Ec=function(a,b){this.Uh=Math.round(Math.min(255,this.Uh*(1-b)+a.Uh*b));this.Oh=Math.round(Math.min(255,this.Oh*(1-b)+a.Oh*b));this.Mh=Math.round(Math.min(255,
this.Mh*(1-b)+a.Mh*b))};ig.Yn.Tbb=function(a,b,e,h){h.Uh=Math.round(Math.min(255,a.Uh*(1-e)+b.Uh*e));h.Oh=Math.round(Math.min(255,a.Oh*(1-e)+b.Oh*e));h.Mh=Math.round(Math.min(255,a.Mh*(1-e)+b.Mh*e))};ig.Kja=ig.ra.extend({lastIndex:0,Sb:[],f:function(a,b){for(var e=b?a-1:a,h=0;h<a;++h)this.Sb.push(h/e);this.Sb.sort(function(){return Math.random()-0.5})},get:function(){var a=this.Sb.length,b=this.Sb[this.lastIndex],e=this.lastIndex-Math.floor(Math.random()*a*0.2);e<0&&(e=e+a);this.Sb[this.lastIndex]=
this.Sb[e];this.Sb[e]=b;this.lastIndex=(this.lastIndex+1)%a;return b}})});ig.G=j;
ig.I("impact.base.game").J("impact.base.impact","impact.base.entity","impact.base.event","impact.base.renderer","impact.base.physics","impact.base.game-state","impact.base.collision-map","impact.base.background-map","impact.base.global-settings","impact.base.utils").H(function(){Vec2.create();Vec2.create();Vec2.create();ig.Iya=ig.ra.extend({clearColor:"#000008",VU:0,screen:{x:0,y:0},a6:{x:0,y:0},size:{x:0,y:0},paused:w,Tca:w,wfa:s,E3:s,dJ:"",entities:[],Rca:[],Bm:[],AU:[],cG:{},KT:[],jf:[],$a:{},
bk:0,$F:0,zp:0,qFa:{},nT:0,Ll:64,Vg:new ig.vVa,bm:new ig.Ria,Nf:new ig.lZa,eI:[],Anb:s,wb:s,De:"",w6:w,dY:0,ewa:s,ze:{all:[],Aca:[],Bca:[],Zk:[],sea:[],jea:[],Js:[],mea:[],$ca:[],hea:[],Fg:[],reset:[]},Dm:[],m6:function(){ig.t=this;return s},f:function(){this.ze.all=ig.Ibb();for(var a=0;a<this.ze.all.length;++a){var b=this.ze.all[a];b.at&&this.ze.Aca.push(b);b.my&&this.ze.Bca.push(b);b.Csa&&this.ze.Zk.push(b);b.BA&&this.ze.sea.push(b);b.gw&&this.ze.jea.push(b);b.$s&&this.ze.Js.push(b);b.Nda&&this.ze.mea.push(b);
b.k4&&this.ze.$ca.push(b);b.Lda&&this.ze.hea.push(b);b.MP&&this.ze.Fg.push(b);b.nj&&this.ze.reset.push(b)}this.ze.Aca.sort(function(a,b){return a.TF-b.TF});this.ze.Bca.sort(function(a,b){return a.UF-b.UF});this.ze.Zk.sort(function(a,b){return a.SRa-b.SRa});this.ze.sea.sort(function(a,b){return a.JK-b.JK});this.ze.jea.sort(function(a,b){return a.rG-b.rG});this.ze.Js.sort(function(a,b){return a.oF-b.oF});this.ze.mea.sort(function(a,b){return a.nea-b.nea});this.ze.$ca.sort(function(a,b){return a.L3-
b.L3});this.ze.hea.sort(function(a,b){return a.iea-b.iea});this.ze.Fg.sort(function(a,b){return a.Mga-b.Mga});this.ze.reset.sort(function(a,b){return a.Rta-b.Rta});a=new ig.G7;a.Hbb(this);this.Dm.push(a)},pushState:function(a){this.Dm.last().kD(this);this.Dm.push(a);a.rW(this)},N4:function(){if(!(this.Dm.length<=1)){this.Dm.pop().kD(this);this.Dm.last().rW(this)}},Tfb:function(){console.s2("GameAddons: ");for(var a in this.ze)if(this.ze[a]&&this.ze[a]!=this.ze.all){console.s2(a.charAt(0).toUpperCase()+
a.substring(1)+"Order: ");this.Ufb(this.ze[a],a+"Order");console.groupEnd()}console.groupEnd()},Ufb:function(a,b){for(var c=0;c<a.length;c++)console.log(a[c].name+": %c"+a[c].__proto__[b],"color:#0000FF")},KC:function(a){for(var b=ig.t.bk;b--&&ig.t.$a[b].height>a;);b<0&&(b=-1);return b},PIa:function(a){return a==-1?this.$a[0].height-1:this.$a[a].height},LIa:function(a){return this.PIa(a.offset?a.level:a)+(a.offset||0)},DIa:function(a){return this.cG[a]},f$a:function(a){return this.Rca[a]},Tva:function(a,
b){var c=a.name,d=b.name;b.name=c;a.name=d;c&&(this.cG[c]=b);d&&(this.cG[d]=a)},Apb:function(){return this.Bm.length-this.AU.length-1},sba:function(a){return[this.$a[a].jf[0]]},ocb:function(a,b){for(var c=ig.t.bk;c--;)for(var d=this.$a[c].jf,e=d.length;e--;){var h=d[e];if(h instanceof ig.pi.Background){var k=h.o2(a,b);if(k)return ig.mc.tab(h,k)==ig.Gd.NOTHING}}return j},Lx:function(a,b,c,d,e,h,k,l){return this.Nf.Lx(a,b,c,d,e,h,k,l)},a2:function(a,b,c,d,e,h,k,l,m,n){return this.Nf.a2(a,b,c,d,e,h,
k,l,m,n)},CIa:function(a){for(var a=typeof a==="string"?ig.ya[a]:a,b=[],c=0;c<this.Bm.length;c++){var d=this.Bm[c];d instanceof a&&!d.Ne&&b.push(d)}return b},uO:function(a){for(var b=[],c=0;c<this.Bm.length;++c){var d=this.Bm[c];d&&(d.b.Lc&&d.b.Lc.$j==a.b)&&b.push(d)}return b},bP:function(){return this.Vg.bP()},zqa:function(a,b,c){if(b!=this.wb||this.Vg.kN||!c)return w;a=b.b;return Math.abs(c.x)>Math.abs(c.y)?c.x>0&&a.Eb.x>0||c.x<0&&a.Eb.x<0:c.y>0&&a.Eb.y>0||c.y<0&&a.Eb.y<0},VC:function(){var a=this.Vg.kN;
return this.w6||(a?a.pQ==ig.bl.BLOCKING:w)},EIa:F(),Hrb:function(a,b){for(var b=b&&JSON.parse(b),c=this.entities.length;c--;){var d=this.entities[c];d&&d.fNa&&d.fNa(a,b)}},Qhb:function(a,b){b=JSON.stringify(b);window.parent&&window.parent.RUa&&window.parent.RUa(a,b)},EQ:function(a){if(this.paused!=a)(this.paused=a)?ig.Yd.Gea():ig.Yd.fea()},af:function(a,b,c,d,e,h){var k;if(typeof a==="string"){k=ig.ya[a];e=ig.Eab.lhb(a,e)}else k=a;k||f(Error("Can't spawn entity of type "+a));k=new k(b,c,d,e||{});
if(k.Ne)return s;k.Jn();k.name&&(this.cG[k.name]=k);this.entities.push(k);k.gy&&(this.Rca[k.gy]=k);if(e&&e.spawnCondition){var l=new ig.ce(e.spawnCondition);this.KT.push({jb:l,type:a,x:b,y:c,z:d,Fi:e,P:k});if(!l.evaluate())return s}k.show(!h);return k},ljb:function(a){a.W8=w;if(a.ng){var b=this.eI.indexOf(a);if(b!=-1)this.eI.splice(b,1);else{b=0;if(this.AU.length>0){b=this.AU.pop();this.Bm[b]&&f(Error("Overriding Entity that is already set!"));this.Bm[b]=a}else{b=this.Bm.length;this.Bm.push(a)}a.id=
b}a.ng=w;this.Nf.h5a(a.b)}},lbb:function(a){a.ng=j;this.OGa(a)},KOa:function(a){a.W8=j;a.gG?a.gG():a.hide()},Kgb:function(a){a.name&&delete this.cG[a.name];a.Ne=a.b.Ne=j;this.OGa(a)},OGa:function(a){!a.Ne&&!a.ng&&f(Error("Tried to remove entity that is not hidden or killed"));(a.Ne||a.id!=0)&&this.eI.push(a)},reset:function(){this.Kma();ig.pa.clear();ig.Yd.reset();for(var a=0;a<this.ze.reset.length;++a)this.ze.reset[a].nj()},Zk:function(a,b,c){this.E3=a;this.De=b?b.De:s;this.ewa=b;this.w6=j;this.dY=
this.ENa(a,b,c);this.Vg.clearQueue();for(var d=0;d<this.ze.Zk.length;++d)this.ze.Zk[d].Csa(a,b,c);this.Pfb(a)},Zqb:M("w6"),ENa:R(0),DNa:F(),uGa:F(),lJa:R("???"),Pfb:function(a){this.b9=s;this.dJ="LOADING MAP: "+a;window.nWa=Math.random()<1E-4;var b=a.dr(ig.root+"data/maps/",".json")+ig.kl();$.ajax({dataType:"json",url:b,context:this,success:L("b9"),error:function(a,d,e){ig.g.error(Error("Loading of Map '"+b+"' failed: "+a+" / "+d+" / "+e))}})},Kma:function(){this.screen={x:0,y:0};for(var a=this.entities.length;a--;){this.entities[a]&&
this.entities[a].Tb(j);this.entities[a]&&!this.entities[a].Ne&&f(Error("Entity of id "+this.entities[a].id+" was not properly killed"))}for(a=0;a<this.jf.length;++a){this.jf[a].clear();this.jf[a].Qa&&this.jf[a].Qa()}this.jf.length=0;this.$a={};this.$F=this.bk=0;this.Vg.clear();this.entities.length=0;this.Rca.length=0;this.Bm=[s];this.eI.length=0;this.AU.length=0;this.KT.length=0;this.bm.gra();this.Nf.gra();this.cG={};if(window.nwf){window.nwf.system.Memory.forceGC();ig.log("Force GC!")}},Xqa:function(a){this.dJ=
"CREATING MAP:  "+a.name;this.Kma();ig.Rs.K7a();ig.ready=w;ig.pa.qNa(a.name);for(var b=0;b<this.ze.Aca.length;++b)this.ze.Aca[b].at(a);this.$a={};this.$F=1E5;this.bk=a.levels.length;this.$a.first={jf:[]};for(b=0;b<a.levels.length;b++){this.$F=Math.min(this.$F,a.levels[b].height);this.$a[""+b]={height:a.levels[b].height,collision:ig.pi.Collision.wRa,jf:[]};var c=a.levels}this.$a.last={jf:[]};this.$a.object1={jf:[]};this.$a.object2={jf:[]};this.$a.object3={jf:[]};this.zp=a.masterLevel?a.masterLevel.Vb(0,
this.bk-1):0;for(var d=0,e=0,b=0;b<a.layer.length;b++){var h=a.layer[b],c=h.level||0;if(!h.distance||h.distance==1){d=Math.max(d,h.tilesize*h.width);e=Math.max(e,h.tilesize*h.height)}var k=new ig.pi[h.type](h,this.$a[c].height);this.jf.push(k);ig.pi[h.type].zca?this.$a[c][ig.pi[h.type].zca]=k:this.$a[c].jf.push(k)}this.size.x=d;this.size.y=e;this.Nf.jMa();for(b=0;b<a.entities.length;b++){c=a.entities[b];this.af(c.type,c.x,c.y,this.LIa(c.level),c.settings)}this.uGa();b=this.ewa;d=a=s;if(this.wb)if(!b||
b.De){if(ig.ya.Marker){for(b=0;b<this.Bm.length;++b)if((c=this.Bm[b])&&c.ZB){if(c.name==this.De){a=c;break}d||(d=c)}a||(a=d)}if(a&&this.wb){this.De=a.name;a.ZB(this.wb)}}else{this.De=s;this.wb.b.aa=b.aa;this.wb.b.jc=b.jc;this.wb.b.i.z=b.i.z;this.wb.face.x=b.face.x;this.wb.face.y=b.face.y;this.wb.l(b.i.x+b.size.x/2-this.wb.b.size.x/2,b.i.y+b.size.y/2-this.wb.b.size.y/2)}ig.ready=j;b=new (this.kMa||ig.eZ);b.load();this.dJ=b},$La:function(){this.w6=w;this.wb&&this.wb.uNa&&this.wb.uNa();this.Nfb();var a=
s;if(this.$a[this.zp].collision){this.$a[this.zp].collision.vD(s);a=this.$a[this.zp].collision}for(var b=this.zp+1;b<this.bk;++b){var c=this.$a[b];if(c.collision.vD){c.collision.vD(a,a?(c.height-this.$a[b-1].height)/16:0);a=c.collision}else a=s}a=this.$a[this.zp].collision?this.$a[this.zp].collision:s;for(b=this.zp-1;b>=0;--b){c=this.$a[b];if(c.collision.vD){c.collision.vD(a,a?(c.height-this.$a[b+1].height)/16:0);a=c.collision}else a=s}for(a=0;a<this.ze.Bca.length;++a)this.ze.Bca[a].my(this);ig.C0();
if(window.nwf){window.nwf.system.Memory.requestGC();window.nwf.system.Memory.forceGC();window.nwf.system.Memory.clearCaches();ig.log("Image Buffer Count: "+window.nwf.system.Stats.imageBufferCount);window.nwf.system.Stats.getMemoryStats(j)}},Nfb:function(){for(var a=0;a<this.bk;++a)this.WW(a);this.WW("first");this.WW("last");this.WW("object1");this.WW("object2");this.WW("object3")},WW:function(a){for(var b=s,c=this.$a[a],d=0;d<c.jf.length;++d){var e=c.jf[d];if(e.qea)if(!b||e.Ira||e.width!=c.jf[d-
1].width||e.height!=c.jf[d-1].height){b=this.$a[a].jf[d].bta();e.Ira&&(b=s)}else this.$a[a].jf[d].bta(b);else b=s}},xa:function(){if(!ig.g.z2()||!this.ZHa){this.ZHa=w;var a=ig.g.context;ig.g.context=s;if(ig.$l.update){var b=ig.g.ga,c=ig.g.Da,d=c;for(this.sJ=j;d>0;){ig.g.Da=Math.min(0.05,d);ig.g.ga=ig.g.Da*ig.g.Tn;this.update();this.sJ=w;d=d-ig.g.Da}ig.g.ga=b;ig.g.Da=c}this.sJ=j;ig.$l.Js&&this.Js();ig.input.T6a();ig.Yd.update();ig.g.context=a;if(ig.$l.Xa){this.Xa();this.Y8a()}}},update:function(){for(var a=
0;a<this.ze.sea.length;++a)this.ze.sea[a].BA();if(!this.paused&&!ig.uu){if(this.dY>0){this.dY=this.dY-ig.g.Da;this.dY<=0&&this.DNa()}if(this.dY<=0&&this.b9){this.Xqa(this.b9);this.b9=s;this.rnb=w;if(ig.uu)return}}if(this.sCa){this.Fg();this.sCa=w}if(!this.paused&&!ig.uu){this.Nf.update();this.nT=this.nT+ig.g.ga;for(var b in this.qFa){var a=this.qFa[b],c;for(c in a)a[c].update()}}ig.uu||this.Vg.update();for(a=0;a<this.ze.jea.length;++a)this.ze.jea[a].gw()},Js:function(){this.qna();for(var a=0;a<this.ze.Js.length;++a)this.ze.Js[a].$s()},
qna:function(){ig.g.tp=ig.g.ga;if(!this.paused&&!ig.uu){for(var a=this.Nf.nx,b=0;b<a.length;b++){var c=a[b].P;if(c&&!c.Ne){ig.g.ga=c.b.n2(w);if(c.Js){ig.pa.Fea(c);c.Js();ig.pa.eea(c)}ig.g.ga=ig.g.tp}}for(var d in this.$a)for(b=0;b<this.$a[d].jf.length;b++){c=this.$a[d].jf[b];c.update&&c.update()}}for(b=0;b<this.eI.length;b++)if(c=this.eI[b]){!c.ng&&!c.Ne&&f(Error("Detaching an Entity that is neither killed nor hidden!"));if(c.id){this.Nf.Ggb(c.b);this.Bm[c.id]=s;this.AU.push(c.id);c.id=0}if(c.Ne){d=
this.entities.indexOf(c);if(d!=-1){this.entities.splice(d,1);c.xf()}}}this.eI.length=0},Xa:function(){for(var a in this.$a)for(var b=0;b<this.$a[a].jf.length;b++)this.$a[a].jf[b].iQa(this.screen.x,this.screen.y);for(a=0;a<this.ze.mea.length;++a)this.ze.mea[a].Nda();ig.g.dkb();this.bm.hOa(this.Bm);this.bm.eHa();for(a=0;a<this.ze.$ca.length;++a)this.ze.$ca[a].k4();this.bm.gHa();ig.g.k8a();for(a=0;a<this.ze.hea.length;++a)this.ze.hea[a].Lda()},Y8a:function(){if(ig.g.z2()){ig.g.clear("rgba(0,0,0,0.6)");
this.ZHa=j}},Fg:function(){for(var a=this.KT.length;a--;){var b=this.KT[a];if(b.Ne)this.KT.splice(a,1);else{var c=b.jb.evaluate();b.P.W8&&c?b.P.show():!b.P.W8&&!c&&ig.t.KOa(b.P)}}for(a=0;a<this.entities.length;a++)this.entities[a]&&this.entities[a].Fg&&this.entities[a].Fg();for(a=0;a<this.ze.Fg.length;++a)this.ze.Fg[a].MP()},Zi:function(){this.sCa=j},Zbb:function(a,b,c,d,e){c=ig.t.$a[ig.t.KC(c)];return!c||!c.collision?w:c.collision.jLa(a,b-c.height,d,e)},Kw:function(a,b,c,d,e,h,k,l,m,n){return this.trace(a,
b.b.i.x+(e||0),b.b.i.y+(h||0),b.b.i.z+(k||0),c,d,b.b.size.x,b.b.size.y,b.b.size.z,l||b.b.type,n||b,m||s)},trace:function(a,b,c,d,e,h,k,l,m,n,o,t,r){return this.Nf.trace(a,b,c,d,e,h,k,l,m,n,o&&o.b,t,r)}});ig.sf=ig.ra.extend({TF:0,UF:0,SRa:0,JK:0,rG:0,oF:0,nea:0,L3:0,iea:0,Rta:0,Mga:0,name:"game_addon",at:s,my:s,Csa:s,BA:s,gw:s,$s:s,Nda:s,k4:s,Lda:s,nj:s,MP:s,f:function(a){this.name=a!=g?a:"game_addon"}});ig.jz=ig.ra.extend({i:s,face:s,De:s,aa:0,jc:0,size:{x:0,y:0},f:function(a){this.De=a||s},HPa:function(a,
b,c,d,e,h){this.De=a||s;this.i=b||s;this.face=c||s;this.aa=d||0;this.jc=e||0;this.size=h},nib:function(a){this.HPa(a.marker,a.pos,a.face,a.level,a.baseZPos,a.size)},oba:function(){return{marker:this.De,pos:ig.copy(this.i),face:this.face,level:this.aa,baseZPos:this.jc,size:ig.copy(this.size)}}});ig.jz.OT=function(a){if(!a||!a.marker&&(!a.pos||!a.size||!a.face))return s;var b=new ig.jz;b.nib(a);return b}});window.v5||(window.v5={},window.sc=window.v5);ig.G=j;
ig.I("game.loader").J("impact.base.timer","impact.base.loader").H(function(){sc.C0a=ig.eZ.extend({n:new ig.ri,Dx:0,Xa:function(){this.hI=this.hI+(this.status-this.hI)/5;var a=ig.g.scale,b=ig.g.width*0.6,c=ig.g.width*0.5-b/2,d=ig.g.height*0.5-4;ig.g.context.fillStyle="#000";ig.g.context.fillRect(0,0,ig.g.px,ig.g.ox);ig.g.context.fillStyle="#56607b";ig.g.context.fillRect(c*a,d*a,b*a,8*a);ig.g.context.fillStyle="#000";ig.g.context.fillRect(c*a+a,d*a+a,b*a-a-a,8*a-a-a);ig.g.context.fillStyle="#fff";ig.g.context.fillRect((c+
2)*a,(d+2)*a,(b-4)*a*this.hI,4*a);window.aj&&ig.g.context.fillText(this.vca,ig.g.width/2-ig.g.context.measureText(this.vca).width/2,d+20);ig.ri.step();a=this.n.ga();if(this.Dx>0){this.Dx=this.Dx-a;ig.g.context.fillStyle="#000";ig.g.context.globalAlpha=Math.min(1,1-this.Dx/0.3);ig.g.context.fillRect(0,0,ig.g.px,ig.g.ox);ig.g.context.globalAlpha=1;this.Dx<=0&&this.E1()}},kD:function(){this.Dx=0.3}})});ig.G=j;ig.I("game.constants").H(function(){window.amb=window.Constants={KR:12,aE:8,rxa:8}});ig.G=j;
ig.I("impact.feature.database.database").J("impact.base.loader","game.config").H(function(){ig.EUa=ig.SH.extend({ui:"Database",data:s,qb:{},f:function(){if(!ig.Gd)return ig.warn("No DATABASE specified. Please create ig.DATABASE in game.config");if(!ig.zja)return ig.warn("Can't initialize database because no ig.DATABASE_FILE was provided");this.parent()},dg:function(a,b,c,d){this.qb[a]={qo:b,kh:c||a};if(d)this.qb[a].external={path:d.path||s,data:d.data}},get:function(a){return this.data[a]},Us:function(){$.ajax({dataType:"json",
url:ig.root+ig.zUa+ig.kl(),context:this,success:this.onload.bind(this),error:this.onerror.bind(this)})},onerror:function(a){this.data={error:a};this.zk(j)},onload:function(a){this.data=a;this.zk(j);ig.hM&&ig.log("%cLOADABLE: %cLoaded Database: \n%O","color:blue","",a)}});ig.Dj=new ig.EUa});ig.G=j;ig.I("impact.feature.database.plug-in").J("impact.feature.database.database").H(F());ig.G=j;
ig.I("impact.feature.gamepad.gamepad").J("impact.base.game","impact.base.vars").H(function(){ig.qmb={Aza:"nwf",knb:"webkit",rtb:"nope"};ig.rmb={Aza:"nwf",pnb:"xbox",cnb:"nope"};ig.nc={SY:0,Hha:1,Iha:2,C7:3,BH:4,uE:5,fS:6,BZ:7,Via:8,Gl:9,$ha:10,j8:11,UL:12,TL:13,YR:14,ZR:15};ig.Pc={El:0,Fl:1,ss:2,ts:3};ig.H7=ig.sf.extend({Koa:{},Jt:[],w2:[],f:function(){this.parent("Gamepads");for(var b=0;b<a.length;++b){var c=a[b]();c&&this.w2.push(c)}},JK:0,BA:function(){if(!this.isSupported()||!this.w2.length)return w;
this.Jt=[];for(var a=this.w2.length;a--;)this.w2[a].update(this.Koa);for(var c in this.Koa)this.Jt.push(this.Koa[c]);if(this.hca()||this.Zx()){ig.input.dd=w;ig.input.bb=ig.Gb.Jc}ig.pa.set("gamepad.active",ig.input.bb==ig.Gb.Jc)},oF:9001,$s:F(),ci:function(a){if(!ig.t.sJ)return w;for(var c=this.Jt.length;c--;)if(this.Jt[c].gta[a])return j;return w},Cqb:function(a){if(!ig.t.sJ)return w;for(var c=this.Jt.length;c--;)if(this.Jt[c].Dta[a])return j;return w},ou:function(a){for(var c=this.Jt.length;c--;){var d=
this.Jt[c];if(d.k$[a]>(d.uT[a]||0.5))return j}return w},mpb:function(a){for(var c=this.Jt.length;c--;){var d=this.Jt[c].k$[a];if(d)return d}return 0},ke:function(a,c){for(var d=this.Jt.length;d--;){var e=this.Jt[d],h=e.Yla[a];if(h){if(c&&Math.abs(h)<=(e.dC[a]||0.1))break;return h}}return 0},gca:function(a){for(var c=this.Jt.length;c--;){var d=this.Jt[c];if(Math.abs(d.Yla[a])>(d.dC[a]||0.1))return j}return w},hca:function(){return this.gca(ig.Pc.El)||this.gca(ig.Pc.Fl)},Zx:function(){return this.gca(ig.Pc.ss)||
this.gca(ig.Pc.ts)},isSupported:function(){return this.w2.length>0}});var a=[];ig.H7.QEa=function(b){a.push(b)};ig.Jya=ig.ra.extend({uT:[],dC:[],k$:[],Yla:[],gta:[],Dta:[],f:F(),Hwa:function(a,c){var d=this.uT[a]||0.5,e=this.k$[a]>d,d=c>d;this.gta[a]=this.Dta[a]=w;!e&&d?this.gta[a]=j:e&&!d&&(this.Dta[a]=j);this.k$[a]=c;if(d){ig.input.dd=w;ig.input.bb=ig.Gb.Jc}},Q6:function(a,c){this.Yla[a]=c}});ig.wf(function(){return ig.fc=new ig.H7})});ig.G=j;
ig.I("impact.feature.gamepad.html5-gamepad").J("impact.feature.gamepad.gamepad").H(function(){ig.hWa=ig.ra.extend({f:F(),update:function(c){var d=navigator.getGamepads&&navigator.getGamepads()||navigator.webkitGetGamepads&&navigator.webkitGetGamepads()||navigator.webkitGamepads;if(d)for(var e=0;e<d.length;e++){var h,k;if(k=d[e]){k=d[e].id.toLowerCase();k=k.indexOf("xbox")!=-1?j:k.indexOf("standard gamepad")!=-1?j:w}k&&(h=d[e]);k="html5Pad"+e;if(h){if(!c[k]){var l=c,m=k,n=new ig.Jya;n.uT[ig.nc.fS]=
30/255;n.uT[ig.nc.BZ]=30/255;n.dC[ig.Pc.El]=7849/32767;n.dC[ig.Pc.Fl]=7849/32767;n.dC[ig.Pc.ss]=8689/32767;n.dC[ig.Pc.ts]=8689/32767;l[m]=n}k=c[k];l=h;n=g;for(n in a){m=l.buttons[a[n]];m instanceof Object?k.Hwa(n,m.value):k.Hwa(n,m)}n=g;for(n in b){m=l.axes[b[n]];k.Q6(n,m)}}else delete c[k]}}});var a={},b={};a[ig.nc.SY]=0;a[ig.nc.Hha]=1;a[ig.nc.Iha]=2;a[ig.nc.C7]=3;a[ig.nc.BH]=4;a[ig.nc.uE]=5;a[ig.nc.fS]=6;a[ig.nc.BZ]=7;a[ig.nc.Via]=8;a[ig.nc.Gl]=9;a[ig.nc.$ha]=10;a[ig.nc.j8]=11;a[ig.nc.UL]=12;a[ig.nc.TL]=
13;a[ig.nc.YR]=14;a[ig.nc.ZR]=15;b[ig.Pc.El]=0;b[ig.Pc.Fl]=1;b[ig.Pc.ss]=2;b[ig.Pc.ts]=3;ig.H7.QEa(function(){if(typeof navigator.webkitGamepads!="undefined"||typeof navigator.webkitGetGamepads!="undefined"||typeof navigator.getGamepads!="undefined")return new ig.hWa})});ig.G=j;
ig.I("impact.feature.gamepad.nwf-gamepad").J("impact.feature.gamepad.gamepad").H(function(){ig.xYa=ig.ra.extend({eMa:s,f:function(){this.eMa=window.nwf.input.WiiUGamePad.getController();var b=window.nwf.input.ControllerButton;a[ig.nc.SY]=b.GAMEPAD_B;a[ig.nc.Hha]=b.GAMEPAD_A;a[ig.nc.Iha]=b.GAMEPAD_Y;a[ig.nc.C7]=b.GAMEPAD_X;a[ig.nc.BH]=b.GAMEPAD_L;a[ig.nc.uE]=b.GAMEPAD_R;a[ig.nc.fS]=b.GAMEPAD_ZL;a[ig.nc.BZ]=b.GAMEPAD_ZR;a[ig.nc.Via]=b.GAMEPAD_MINUS;a[ig.nc.Gl]=b.GAMEPAD_PLUS;a[ig.nc.$ha]=b.GAMEPAD_L_STICK;
a[ig.nc.j8]=b.GAMEPAD_R_STICK;a[ig.nc.UL]=b.GAMEPAD_UP;a[ig.nc.TL]=b.GAMEPAD_DOWN;a[ig.nc.YR]=b.GAMEPAD_LEFT;a[ig.nc.ZR]=b.GAMEPAD_RIGHT},update:function(b){if(!b.wiiUMain){var c=new ig.Jya;c.uT[ig.nc.fS]=30/255;c.uT[ig.nc.BZ]=30/255;c.dC[ig.Pc.El]=7849/32767;c.dC[ig.Pc.Fl]=7849/32767;c.dC[ig.Pc.ss]=8689/32767;c.dC[ig.Pc.ts]=8689/32767;b.wiiUMain=c}var b=b.wiiUMain,c=this.eMa,d=c.buttons,e;for(e in a)b.Hwa(e,d.ci(a[e]));e=c.leftStick;b.Q6(ig.Pc.El,e.movementX);b.Q6(ig.Pc.Fl,e.movementY);e=c.rightStick;
b.Q6(ig.Pc.ss,e.movementX);b.Q6(ig.Pc.ts,e.movementY)}});var a={};ig.H7.QEa(function(){if(window.nwf)return new ig.xYa})});ig.G=j;ig.I("impact.feature.gamepad.plug-in").J("impact.feature.gamepad.gamepad","impact.feature.gamepad.html5-gamepad","impact.feature.gamepad.nwf-gamepad").H(F());ig.G=j;
ig.I("impact.base.action").J("impact.base.steps").H(function(){ig.Ha={};ig.Pa=ig.fBa;ig.rf=ig.ra.extend({name:"",mQ:s,h3:{},Gx:w,Lsa:w,Ota:w,hint:s,f:function(a,b,c,d){this.name=a;this.Lsa=c||w;this.Ota=d||w;this.mQ=ig.B8.mGa(b,ig.Ha,this.h3)},Qa:function(){ig.B8.y$(this.mQ)},xa:function(a){this.Lsa||Vec2.Sa(a.b.Eb,0,0);var b=a.uC;if(!b){b=this.mQ;b.start(a);a.uC=b}for(var c=a.uC,d=a.od;b&&b.xa(a);){if(a.Hb>0)a.Hb=0;if(!a.od){b=s;break}if(d!=a.od||c!=a.uC)return w;var e=s;if(b.CO){var h=b.CO(a);if(h)(e=
this.h3[h])||f(Error("Label '"+h+"' not found."))}e||(e=b.Nx(a));(b=e)&&b.start(a)}a.uC=b;a.Hb=a.Hb<0?0:a.Hb-a.b.n2(j);(b=!b&&!this.Ota)&&!this.Lsa&&Vec2.Sa(a.b.Eb,0,0);return b}});ig.rf.fu=function(a,b){return a&&a.actorAttrib?b.y9a(a.actorAttrib):ig.Ra.fu(a)};ig.rf.iA=function(a,b,c){return a&&a.actorAttrib?Vec2.assign(c,b.eIa(a.actorAttrib)):ig.Ra.iA(a,c)};ig.rf.Mv=function(a,b,c){return a&&a.actorAttrib?Vec3.assign(c,b.z9a(a.actorAttrib)):ig.Ra.Mv(a,c)};ig.rf.h$a=function(a,b,c){return a&&a.actorAttrib?
Vec2.assign(c,b.eIa(a.actorAttrib)):ig.Zb.Mr(ig.Zb.Cl[a]||0,c)}});ig.G=j;
ig.I("impact.base.actor-entity").J("impact.base.entity","impact.base.action").H(function(){var a=ig.jTa=0.75;ig.lr=ig.ra.extend({empty:j,data:{},wW:s,f:function(a,b){a&&this.aK(a,b||s)},zK:function(a,b){if(!this.wW){this.wW=this.data;this.data=ig.copy(this.wW)}this.data[a]=b},Lma:function(){if(this.wW){this.data=this.wW;this.wW=s}},Ucb:function(a){this.empty=w;for(var b in ig.Ro)for(var c in ig.Ro[b].eS)this.data[c]=a.data[c]},aK:function(a,b){this.empty=w;for(var c in ig.Ro)for(var k in ig.Ro[c].eS)this.data[k]=
a[k]!=g?a[k]:b&&b.data[k]!=g?b.data[k]:ig.Ro[c].eS[k];for(c in ig.Ro)ig.Ro[c].N1&&ig.Ro[c].N1.call(this.data)},WLa:function(a){this.empty=w;for(var b in ig.Ro)a instanceof ig.Ro[b].B0&&ig.Ro[b].load.call(this.data,a)},apply:function(a){if(!this.empty)for(var b in ig.Ro)a instanceof ig.Ro[b].B0&&ig.Ro[b].apply.call(this.data,a)}});ig.Ro={};var b=Vec2.create(),c={};ig.Zb=ig.fe.extend({nb:{La:{}},face:Vec2.pc(0,1),Cj:s,Jv:s,Yt:w,Aoa:w,lm:w,au:0,zi:{height:0,minHeight:0},Wwa:s,Oc:{idle:s,preMove:s,move:s,
moveRev:s,moveLeft:s,run:s,runRev:s,runLeft:s,brake:s,preIdle:s,jump:s,fall:s,hover:s,preHoverMove:s,hoverMove:s,hoverMoveRev:s,land:s},CRa:{none:{}},od:s,uC:s,Hb:0,Ova:0,tb:{},yLa:w,Gy:{action:s,step:0,n:0,data:s},wC:new ig.lr,Zv:j,Zg:w,zU:0,R4:s,co:[],attributes:{},Ol:{Ga:w,offset:0,speed:2},f:function(a,b,c,k){this.parent(a,b,c,k);this.b.type=ig.la.VIRTUAL;this.b.se=1;this.R4=new ig.lr;this.ld()},Tb:function(a){this.Hma();this.parent(a)},ld:function(a){if(a||!this.Za.Epa()){a="";if(this.Oc&&this.Oc.idle)a=
this.Oc.idle;else for(a in this.nb.La)break;this.Cj=a;(a=this.nb.La[this.Cj])&&this.Za.D5(this,a.R1(this))}},yJa:function(){return this.od!=s},Ei:function(a){this.wC=a;!this.od&&!this.Zg&&this.wC&&this.wC.apply(this);this.Zg&&this.R4.Ucb(this.wC)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},eIa:function(a){return!this.attributes[a]||this.attributes[a].x===g?s:this.attributes[a]},z9a:function(a){return!this.attributes[a]||this.attributes[a].x===
g?s:this.attributes[a]},y9a:function(a){return!this.attributes[a]||typeof this.attributes[a]!="string"?s:this.attributes[a]},x9a:function(a){return!this.attributes[a]||!this.attributes[a]instanceof ig.ce?s:this.attributes[a]},FPa:function(a){ig.Zb.Mr(a,this.face)},FIa:function(){var a=typeof this.Cj=="string"?this.nb.La[this.Cj]:this.Cj;return a&&a.GU?a.GU(this.face.x,this.face.y):s},If:function(a,b,c){this.cF();this.xk(c);this.od=a;this.yLa=b||w;this.uC=s},i9a:function(){if(this.od){ig.pa.Fea(this);
this.od.xa(this);ig.pa.eea(this)}},xk:function(a){if(this.od){this.cF();if(!a){this.Hma();this.yLa||this.wC.apply(this)}this.uC=this.od=s}},Kva:function(a){if(this.od){this.Gy.action=this.od;this.Gy.step=this.uC;this.Gy.n=this.Hb;this.Gy.data=ig.copy(this.tb);this.xk(a)}},LJa:function(){return!!this.Gy.action},W6a:function(){this.Gy.action=s},Yta:function(a){if(this.Gy.action){this.If(this.Gy.action,w,a);this.uC=this.Gy.step;this.Hb=this.Gy.n;this.tb=this.Gy.data;this.Gy.action=s}},cF:function(){if(this.Zg||
this.zU){if(this.zU)this.zU=0;this.R4.apply(this);this.b.Zp=0;this.Zg=w}},fp:function(a){this.co.push(a)},SK:function(a){a=this.co.indexOf(a);if(a!=-1){this.co.splice(a,1);return j}return w},Hma:function(a){for(var b=this.co.length;b--;)if(!a||a(this.co[b])){this.co[b].Zr(this);a&&this.co.splice(b,1)}if(!a)this.co=[]},EG:function(a){if(typeof a=="string"){this.Wwa=a;a=this.CRa[a]}else this.Wwa=s;this.Oc=a},iR:function(a,b){this.CRa[a]=b},update:function(){if(this.Ol.Ga&&this.target){var b=this.Yp||
this.target;this.Aoa=j;var c=Vec2.sub(b.kb(),this.kb());this.Ol.offset&&Vec2.rotate(c,this.Ol.offset*2*Math.PI);Vec2.ZK(this.face,c,this.Ol.speed*Math.PI*2*ig.g.ga)}else this.Aoa=w;c=this.b;if(this.zU){this.Zg=this.Zg-ig.g.ga;c.Z.z=this.zU;this.Zg<0&&this.cF()}if(this.Zv&&c.Zp>0.05&&(c.Eb.x||c.Eb.y)&&(c.i.z==this.b.jc||c.nd.height)&&!this.Zg){var h=ig.Oj.yO(this);if(h&&h.GNa)h.GNa(this);else if(this.y2a())this.jua?c.nd.height?this.WGa(80,0.3,100):this.XN(185,16,100):this.jua=j;else{this.jua=w;c.Zp=
0}}else this.jua=w;var h=w,b=0,k=!!this.od;do{b++;if(this.od){var l;do{l=this.od;if(this.od.xa(this)){this.xk();h=j}}while(this.od&&l!=this.od)}if(this.IK){this.IK();h=h||!k&&this.od}}while(h&&this.od&&b==1);h=c.i.z>this.b.jc+ig.xe.yh;this.Zg&&(c.Z.z<=0&&!h)&&this.DA(0);if(this.zi.height)if((b=this.Yp||this.target)||this.zi.minHeight){var m;if(b)m=b.b.i.z;this.zi.minHeight&&(m=Math.max(m,this.zi.minHeight));c.nd.height=Math.max(this.zi.height,m-c.jc+this.zi.height)}else c.nd.height=this.zi.height;
if(this.Oc.idle&&(!this.Cj||this.Cj!=this.Oc.land)){m=!c.nd.height&&(this.Zg||c.Z.z>0||c.i.z>c.jc+ig.xe.az);b=Vec2.length(c.Z);if(m)this.lm||(c.Z.z>=0?this.Ja(this.Oc.jump||this.Oc.hover||this.Oc.idle):this.Ja(this.Oc.fall||this.Oc.jump||this.Oc.hover||this.Oc.idle));else if(c.Eb.x==0&&c.Eb.y==0){if(!this.zi.height&&this.au)c.nd.height=Math.max(0,c.nd.height-this.au*4*ig.g.ga);this.lm||(this.Oc.hover&&h?this.Ja(this.Oc.hover):!this.Oc.brake||b<8||c.EJ<0.8&&b<c.Ui/2||this.Cj==this.Oc.move||this.Cj==
this.Oc.moveLeft||this.Cj==this.Oc.moveRev?this.Oc.preIdle&&this.Oc.brake&&this.Cj==this.Oc.brake?this.Ja(this.Oc.preIdle,j,this.Oc.idle):this.Ja(this.Oc.idle):this.Cj!=this.Oc.idle&&this.Ja(this.Oc.brake,j))}else{if(!this.zi.height&&this.au)c.nd.height=this.au;if(!this.Yt&&!this.Aoa){this.face.x=c.Eb.x;this.face.y=c.Eb.y}if(!this.lm){m=c.nd.height&&this.Oc.preHoverMove?this.Oc.preHoverMove:this.Oc.preMove;if(c.nd.height&&this.Oc.hoverMove){c=this.Oc.hoverMoveRev&&Vec2.hj(c.Eb,this.face)<0?j:w;m?
this.Ja(m,j,c?this.Oc.hoverMoveRev:this.Oc.hoverMove):this.Ja(c?this.Oc.hoverMoveRev:this.Oc.hoverMove,j)}else{h=c.kg<a?this.Oc.move:this.Oc.run||this.Oc.move;b=c.kg<a?this.Oc.moveRev:this.Oc.runRev||this.Oc.moveRev;k=c.kg<a?this.Oc.moveLeft:this.Oc.runLeft||this.Oc.moveLeft;b&&Vec2.hj(c.Eb,this.face);h=b&&Vec2.hj(c.Eb,this.face)<0?b:c.Eb.x<0?k||h:h;m&&c.kg>=a?this.Ja(m,j,h||this.Oc.idle):this.Ja(h||this.Oc.idle,j)}}}}this.parent()},y2a:function(){var a=this.b,a=ig.wIa(ig.Z1(a.Eb.x,a.Eb.y,8),8,b),
e=ig.t.Nf.mu(c);if(!ig.t.Kw(e,this,a.x,a.y,0,0,0,ig.la.IGNORE))return w;e=ig.t.Nf.mu(c);return ig.t.Kw(e,this,a.x,a.y,0,0,19)?w:j},DA:function(){this.cF();if(this.Oc.land&&!this.lm){this.Ja(this.Oc.land,j,this.Oc.idle,j);this.O6()}},XN:function(a,b,c,k,l){this.cF();this.R4.WLa(this);this.b.Z.z=a;this.Zg=j;if(c)this.b.Ui=c;if(k!==g&&k!==s)this.b.uz=k;this.lsa(b,l)},WGa:function(a,b,c){this.cF();this.R4.WLa(this);this.zU=a||10;this.b.nd.height=0;this.b.se=0;this.Zg=b;if(c)this.b.Ui=c},fG:function(a){var b=
this.b;if(this.Zv&&(b.Eb.x||b.Eb.y)&&Vec2.length(b.Z)/b.Ui>0.5&&(!a||Vec2.hj(a,b.Eb)/Vec2.length(a)/Vec2.length(b.Eb)>0.5)){var a=w,c=ig.Oj.yO(this);c&&c.HNa&&(a=c.HNa(this));a||(b.nd.height?this.WGa(10,0.3):this.XN(155,0,s,0.1))}},On:function(a,b){return b[1]=="attrib"?ig.pa.Wta(this.attributes,b,2):b[1]=="face"?ig.pa.Wta(this.face,b,2):s},lsa:F()});ig.Zb.zh={NORTH:0,EAST:1,SOUTH:2,WEST:3};ig.Zb.Cl={NORTH:0,EAST:1,SOUTH:2,WEST:3,NORTH_EAST:4,SOUTH_EAST:5,SOUTH_WEST:6,NORTH_WEST:7};ig.Zb.Mr=function(a,
b){var c=b||Vec2.create();switch(a){case 0:Vec2.Sa(c,0,-1);break;case 1:Vec2.Sa(c,1,0);break;case 2:Vec2.Sa(c,0,1);break;case 3:Vec2.Sa(c,-1,0);break;case 4:Vec2.Sa(c,1,-1);break;case 5:Vec2.Sa(c,1,1);break;case 6:Vec2.Sa(c,-1,1);break;case 7:Vec2.Sa(c,-1,-1)}return c};ig.Ro.Jlb={B0:ig.Zb,eS:{walkAnims:s,currentAnim:s,followUpAnim:s,accelSpeed:1,ignoreCollision:w,groundConnect:"LOOSE",staticTime:w,friction:1,airFriction:0.7,weight:50,maxVel:100,zGravityFactor:1,relativeVel:1,faceDirFixed:w,jumpingEnabled:w,
collType:ig.la.VIRTUAL,animationFixed:w,bounciness:0,zBounciness:0,floatHeight:0,shadow:0,shadowType:ig.bE.DEFAULT,floatVariance:3,floatAccel:1,floatMaxSpeed:300,floatHeightOnMove:0,flyHeight:0,faceToTarget:w,faceToTargetOffset:0,faceToTargetSpeed:2},N1:function(){typeof this.collType=="string"&&(this.collType=ig.la[this.collType]);typeof this.shadowType=="string"&&(this.shadowType=ig.bE[this.shadowType]);typeof this.groundConnect=="string"&&(this.groundConnect=ig.DY[this.groundConnect])},apply:function(a){a.EG(this.walkAnims);
if(this.currentAnim)a.Cj=this.currentAnim;if(this.followUpAnim)a.Jv=this.followUpAnim;a.b.uz=this.accelSpeed;a.b.nl=this.ignoreCollision;a.b.Px=this.groundConnect;a.b.pp=this.friction;a.b.uk=this.airFriction;a.b.ni=this.weight;a.b.Ui=this.maxVel;a.b.kg=this.relativeVel;a.b.Ad.size=this.shadow;a.b.Ad.type=this.shadowType;a.Yt=this.faceDirFixed;a.Zv=this.jumpingEnabled;a.b.Mp(this.collType);a.lm=this.animationFixed;a.b.mm=this.bounciness;a.b.Xh=this.zBounciness;a.b.se=this.zGravityFactor;a.b.time.ex=
this.staticTime;a.au=0;a.zi.height=0;this.flyHeight?a.zi.height=this.flyHeight:this.floatHeightOnMove?a.au=this.floatHeightOnMove:a.b.nd.height=this.floatHeight;a.b.nd.uj=this.floatVariance;a.b.nd.ep=this.floatAccel;a.b.nd.rh=this.floatMaxSpeed;a.Ol.Ga=this.faceToTarget;a.Ol.offset=this.faceToTargetOffset;a.Ol.speed=this.faceToTargetSpeed},load:function(a){this.walkAnims=a.Wwa;this.currentAnim=a.Cj;this.followUpAnim=a.Jv;this.accelSpeed=a.b.uz;this.ignoreCollision=a.b.nl;this.groundConnect=a.b.Px;
this.friction=a.b.pp;this.airFriction=a.b.uk;this.weight=a.b.ni;this.maxVel=a.b.Ui;this.relativeVel=a.b.kg;this.faceDirFixed=a.Yt;this.jumpingEnabled=a.Zv;this.shadow=a.b.Ad.size;this.shadowType=a.b.Ad.type;this.collType=a.b.type;this.animationFixed=a.lm;this.bounciness=a.b.mm;this.zBounciness=a.b.Xh;this.zGravityFactor=a.b.se;this.staticTime=a.b.time.ex;this.flyHeight=this.floatHeightOnMove=0;a.zi.height?this.flyHeight=a.zi.height:a.au?this.floatHeightOnMove=a.au:this.floatHeight=a.b.nd.height;this.floatVariance=
a.b.nd.uj;this.floatAccel=a.b.nd.ep;this.floatMaxSpeed=a.b.nd.rh;this.faceToTarget=a.Ol.Ga;this.faceToTargetOffset=a.Ol.offset;this.faceToTargetSpeed=a.Ol.speed}}});ig.G=j;
ig.I("impact.feature.base.action-steps").J("impact.base.action","impact.base.actor-entity").H(function(){var a=Vec2.create(),b=Vec2.create(),c=Vec2.create();ig.Ha.LABEL=ig.Pa.extend({name:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of the label"}},label:function(){return"<b>LABEL</b> <i>"+this.name+"</i>"}}),f:function(a){assertContent(a,"name");this.name=a.name}});ig.Ha.GOTO_LABEL=ig.Pa.extend({name:s,s:new ig.u({attributes:{name:{c:"String",d:"Label to move to."}},label:function(){return"<b>GOTO_LABEL</b> <i>"+
this.name+"</i>"}}),f:function(a){assertContent(a,"name");this.name=a.name},CO:M("name")});ig.Ha.RESET_ACTOR=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),start:function(a){a.wC.apply(a)}});ig.Ha.WAIT=ig.Pa.extend({time:0,s:new ig.u({attributes:{time:{c:"Number",d:"Time to wait. -1 = Wait forever (use WISELY)"}}}),f:function(a){assertContent(a,"time");this.time=a.time},start:function(a){a.Hb=a.Hb+this.time},xa:function(a){return this.time>=0&&a.Hb<=0}});ig.Ha.WAIT_UNTIL=ig.Pa.extend({jb:s,s:new ig.u({attributes:{jb:{c:"VarCondition",
d:"Condition that must be true before continued"}}}),f:function(a){this.jb=new ig.ce(a.condition)},xa:function(){return this.jb.evaluate()}});ig.Ha.WAIT_RANDOM=ig.Pa.extend({Fa:0,Wl:0,s:new ig.u({attributes:{Wl:{c:"Number",d:"Minimum time to wait"},Fa:{c:"Number",d:"Maximum time to wait"}}}),f:function(a){assertContent(a,"minTime","maxTime");this.Wl=a.minTime;this.Fa=a.maxTime},start:function(a){a.Hb=a.Hb+(this.Wl+Math.random()*(this.Fa-this.Wl))},xa:function(a){return a.Hb<=0}});ig.Ha.IF=ig.Pa.extend({jb:s,
qB:w,Jg:{},s:new ig.u({attributes:{jb:{c:"VarCondition",d:"Condition for IF statement"},qB:{c:"Boolean",d:"With else case.",d9:j}},MI:function(a){switch(a){case "thenStep":return s;case "elseStep":return"else";case "_end":return"endif"}return"???"}}),f:function(a){this.jb=new ig.ce(a.condition);this.qB=a.withElse},IC:function(){return this.qB?["thenStep","elseStep"]:["thenStep"]},Nx:function(){return this.jb.evaluate()?this.Jg.thenStep?this.Jg.thenStep:this.Ek:this.Jg.elseStep?this.Jg.elseStep:this.Ek}});
ig.Ha.WAIT_UNTIL_ON_GROUND=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),start:F(),xa:function(a){return a.b.i.z==a.b.jc}});ig.Ha.MOVE_FORWARD=ig.Pa.extend({target:Vec2.create(),s:new ig.u({attributes:{time:{c:"Number",d:"Time to move forward"},AN:{c:"Number",d:"If defined: if angle to collided wall is lower than this value, cancel step",U:j}}}),f:function(a){assertContent(a,"time");this.time=a.time;this.AN=a.collideCancel},start:function(a){a.Hb=a.Hb+this.time},xa:function(a){Vec2.assign(a.b.Eb,
a.face);if(this.AN&&ig.Xf.Jpa(a.b,this.AN))a.Hb=0;return a.Hb<=0}});ig.Ha.MOVE_BACKWARD=ig.Pa.extend({target:Vec2.create(),s:new ig.u({attributes:{time:{c:"Number",d:"Time to move backward"}}}),f:function(a){assertContent(a,"time");this.time=a.time},start:function(a){a.Hb=+this.time;a.tb.Sfb=a.Yt;a.Yt=j},xa:function(a){Vec2.assign(a.b.Eb,a.face);Vec2.hd(a.b.Eb);if(a.Hb<=0){Vec2.Sa(a.b.Eb,0,0);a.Yt=a.tb.Sfb;return j}return w}});var d=Vec2.create(),e=Vec2.create();ig.Ha.MOVE_TO_ENTITY_DISTANCE=ig.Pa.extend({P:0,
min:0,max:0,Fa:0,Qva:w,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to move to"},min:{c:"Number",d:"Minimum distance"},max:{c:"Number",d:"Maximum distance"},Fa:{c:"Number",d:"Maximum time to move"},Qva:{c:"Boolean",d:"If true, substract radius of entity bounds from distance to be evaluated."}}}),f:function(a){this.P=a.entity;this.min=a.min;this.max=a.max;this.Fa=a.maxTime;this.Qva=a.subRadius},start:function(a){a.Hb=a.Hb+this.Fa},xa:function(a){var b=ig.Ra.pd(this.P);if(!b)return j;var c=Vec2.sub(b.kb(d),
a.kb(e)),h=Vec2.length(c);this.Qva&&(h=h-(a.b.size.x/2+b.b.size.x/2));h<this.min&&Vec2.aG(c,-1);Vec2.assign(a.b.Eb,c);return a.Hb<=0||this.min<=h&&h<=this.max}});ig.Ha.MOVE_TO_POINT=ig.Pa.extend({target:Vec3.create(),ji:w,s:new ig.u({attributes:{target:{c:"Vec3",d:"Point to go to",BE:j,rv:j,Ht:j},ji:{c:"Boolean",d:"Reach the target precisely, slowing down accordingly"}}}),f:function(a){assertContent(a,"target");this.target=a.target;this.ji=a.precise||w},start:function(a){if(this.ji)a.tb.OG=a.b.kg},
xa:function(a){var c=ig.rf.Mv(this.target,a,b);if(c){c=Vec2.sub(c,a.kb());Vec2.assign(a.b.Eb,c);c=Vec2.length(c);if(this.ji&&a.b.Ui*a.b.kg>c*10)a.b.kg=c/a.b.Ui*10;if(c<(this.ji?2:8)){if(this.ji)a.b.kg=a.tb.OG;return j}return w}return j}});ig.Ha.SYNC_ACTION_WITH_ENTITY=ig.Pa.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Other entity to sync action with"}}}),f:function(a){this.P=a.entity},start:function(a){a.Ova++},xa:function(a){var b=ig.Ra.pd(this.P);return!b?s:b.Ova>=a.Ova}});ig.Ha.SET_Z_VEL=
ig.Pa.extend({value:s,s:new ig.u({attributes:{value:{c:"Number",d:"New Z Vel value. Positive for up movement"}}}),f:function(a){this.value=a.value},xa:function(a){a.b.Z.z=this.value;return j}});ig.Ha.SET_FLOAT_HEIGHT=ig.Pa.extend({value:s,s:new ig.u({attributes:{value:{c:"Number",d:"New float height"}}}),f:function(a){this.value=a.value},xa:function(a){a.b.nd.height=this.value;return j}});ig.Ha.SET_FLOAT_PARAMS=ig.Pa.extend({speed:s,ep:s,uj:s,s:new ig.u({attributes:{uj:{c:"Number",d:"New float variance (specifies how muchy entitie moves up and down during floating)",
ub:4,U:j},ep:{c:"Number",d:"New float acceleration",ub:1,U:j},speed:{c:"Number",d:"New float speed",ub:300,U:j}}}),f:function(a){if(a.speed!==g)this.speed=a.speed;if(a.accel!==g)this.ep=a.accel;if(a.variance!==g)this.uj=a.variance},xa:function(a){if(this.speed!==s)a.b.nd.rh=this.speed;if(this.ep!==s)a.b.nd.ep=this.ep;if(this.uj!==s)a.b.nd.uj=this.uj;return j}});ig.Ha.SET_FLY_HEIGHT=ig.Pa.extend({value:s,s:new ig.u({attributes:{value:{c:"Number",d:"New float height"}}}),f:function(a){this.value=a.value},
xa:function(a){a.zi.height=this.value;return j}});ig.Ha.WAIT_UNTIL_Z_DISTANCE=ig.Pa.extend({ab:0,s:new ig.u({attributes:{ab:{c:"Number",d:"Wait until z distance to target is below this value"},IHa:{c:"Boolean",d:"If true, make entity stay fixed at the destination height, no zVel or gravity"}}}),f:function(a){this.ab=a.distance||0;this.IHa=a.fixEntityZ||w},start:function(a){var b=a.target||a.Yp;if(b)a.tb.Dlb=a.b.i.z-b.b.i.z},xa:function(a){var b=a.target||a.Yp;if(!b||a.b.i.z==a.b.jc)return j;var c=
a.b.i.z-b.b.i.z;if(a.tb.Dlb>0?c<=this.ab:c>=this.ab){if(this.IHa){a.b.i.z=b.b.i.z+this.ab;a.b.Z.z=0;a.b.se=0}return j}return w}});ig.Ha.WAIT_UNTIL_Z_ZENITH=ig.Pa.extend({uP:0,s:new ig.u({attributes:{uP:{c:"Number",d:"Minimum Time to wait"}}}),f:function(a){this.uP=a.minWait||0},start:function(a){a.Hb=a.Hb+this.uP},xa:function(a){return a.b.Z.z<=0?a.Hb<=0:w}});ig.Ha.STOP_Z_ZENITH=ig.Pa.extend({uP:0,s:new ig.u({attributes:{uP:{c:"Number",d:"Minimum Time to wait"}}}),f:function(a){this.uP=a.minWait||
0},start:function(a){a.Hb=a.Hb+this.uP},xa:function(a){if(a.b.Z.z<=0){a.b.Z.z=0;a.b.se=0;return a.Hb<=0}return w}});ig.Ha.FLY_TO_POINT=ig.Pa.extend({target:Vec2.create(),ji:w,lra:0,yoa:0,Kqa:w,s:new ig.u({attributes:{target:{c:"Vec3",d:"Point to go to",BE:j,rv:j,Ht:j},lra:{c:"Number",d:"Max flight speed"},yoa:{c:"Number",d:"How much the entity will vary around flight height."},ji:{c:"Boolean",d:"Reach the target precisely, slowing down accordingly"},Kqa:{c:"Boolean",d:"Keep floating in the air after step is over"}}}),
f:function(a){assertContent(a,"target");this.target=a.target;this.ji=a.precise||w;this.lra=a.maxFlySpeed||0;this.yoa=a.flyVariance||0;this.Kqa=a.keepFloating||w},start:function(a){a.tb.b9a=a.b.nd.height;a.tb.c9a=a.b.nd.uj;a.tb.bpb=a.b.nd.rh;a.tb.au=a.au;a.tb.brb=a.Zv;if(this.ji)a.tb.OG=a.b.kg;a.Zv=w;a.au=w},xa:function(a){var c=ig.rf.Mv(this.target,a,b);if(c){var d=a.b,e=Vec2.sub(c,a.kb()),h=Vec2.length(e);if(this.ji&&h<2){Vec2.assign(d.Eb,0,0);Vec2.assign(d.Z,0,0)}else{if(this.ji&&d.Ui*d.kg>h*10)d.kg=
h/d.Ui*10;h>=(this.ji?2:8)&&Vec2.assign(d.Eb,e)}a.b.nd.height=c.z-d.jc;a.b.nd.uj=this.yoa;a.b.nd.rh=this.lra;if(h<(this.ji?2:8)&&Math.abs(c.z-d.i.z)<8){if(!this.Kqa){a.b.nd.height=a.tb.b9a;a.b.nd.uj=a.tb.c9a;a.b.nd.rh=a.tb.rh;a.au=a.tb.au}a.Zv=a.tb.Zv;if(this.ji)d.kg=a.tb.OG;return j}return w}return j}});ig.Ha.MOVE_TO_DIR=ig.Pa.extend({dir:Vec2.create(),time:0,s:new ig.u({attributes:{dir:{c:"Vec2",d:"Direction to go to",BE:j},time:{c:"Number",d:"Amount of time to move along this point"}}}),f:function(a){assertContent(a,
"dir","time");this.dir=a.dir;this.time=a.time},start:function(a){a.Hb=a.Hb+this.time},xa:function(b){var c=ig.rf.iA(this.dir,b,a);c&&Vec2.assign(b.b.Eb,c);return b.Hb<=0}});ig.Ha.MOVE_TO_LINE=ig.Pa.extend({Yva:Vec2.create(),Mo:Vec2.create(),s:new ig.u({attributes:{Yva:{c:"Vec2",d:"First Point of line",rv:j,Ht:j},Mo:{c:"Vec2",d:"Second Point of line",rv:j,Ht:j}}}),f:function(a){assertContent(a,"target1","target2");this.Yva=a.target1;this.Mo=a.target2},start:function(a){var d=ig.rf.iA(this.Yva,a,b),
e=ig.rf.iA(this.Mo,a,c);if(d&&e){var h=Math.random();a.tb.xna=Vec2.Zm(d,e,h,Vec2.create())}else a.tb.xna=s},xa:function(b){if(b.tb.xna){var c=Vec2.sub(b.tb.xna,b.kb(),a);Vec2.assign(b.Snb,c);return Vec2.length(c)<4}return j}});ig.Ha.MOVE_RANDOM=ig.Pa.extend({Wl:0,Fa:10,zna:1,s:new ig.u({attributes:{Wl:{c:"Number",d:"Minimum time to move"},Fa:{c:"Number",d:"Maximum time to move"},zna:{c:"Number",d:"How often to change direction while moving. Minimum is 1"}}}),f:function(a){assertContent(a,"minTime",
"maxTime");this.Wl=a.minTime;this.Fa=a.maxTime;this.zna=a.dirChanges||1},start:function(a){a.tb.Fa=this.Wl+Math.random()*(this.Fa-this.Wl);a.Hb=a.Hb+a.tb.Fa;a.tb.h1=0},xa:function(a){if(a.Hb<=0)return j;if(a.b.vm>0.2||a.tb.h1<=0){a.b.vm=0;a.tb.h1=a.tb.h1+a.tb.Fa/this.zna;var b=0;do b=Vec2.normalize(Vec2.pc(Math.random()-0.5,Math.random()-0.5));while(a.tb.dir&&Vec2.hj(a.tb.dir,b)>0.5);a.tb.dir=b}a.tb.h1=a.tb.h1-ig.g.ga;Vec2.assign(a.b.Eb,a.tb.dir);return w}});ig.Ha.SET_WALK_ANIMS=ig.Pa.extend({ad:s,
s:new ig.u({attributes:{ad:{c:"WalkAnimConfig",d:"Name of walk anim config"}}}),f:function(a){assertContent(a,"config");this.ad=a.config},xa:function(a){a.EG(this.ad);return j}});var h={S:100,M:150,L:180,XL:220,XXL:270};ig.Ha.STOP_XY=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),xa:function(a){Vec2.Sa(a.b.Z,0,0);return j}});ig.Ha.JUMP=ig.Pa.extend({BV:s,kc:w,wqb:w,s:new ig.u({attributes:{Hcb:{c:"String",d:"Height of jump",Y:h},kc:{c:"Boolean",d:"Wait until entity landed on ground"},WJa:{c:"Boolean",
d:"If true, don't play any sound when jumping up"}}}),f:function(a){assertContent(a,"jumpHeight");this.BV=h[a.jumpHeight];this.kc=a.wait||w;this.WJa=a.ignoreSounds||w},start:function(a){if(!a.b.Px){a.XN(this.BV,s,s,s,this.WJa);if(!this.kc)a.Zg=w}},xa:function(a){return a.b.Px?j:this.kc?a.b.Z.z<=0&&a.b.i.z-a.b.jc<=ig.xe.yh:j}});ig.Ha.SET_GROUND_CONNECTED=ig.Pa.extend({value:w,s:new ig.u({attributes:{value:{c:"String",d:"Type of Ground connected",Y:ig.DY}}}),f:function(a){assertContent(a,"value");this.value=
ig.DY[a.value]},xa:function(a){a.b.Px=this.value;return j}});ig.Ha.SET_JUMPING=ig.Pa.extend({value:w,s:new ig.u({attributes:{value:{c:"Boolean",d:"true iff jumping is enabled"}}}),f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.Zv=this.value;return j}});ig.Ha.SET_Z_GRAVITY_FACTOR=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"Number",d:"The new z gravity factor"}}}),f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.b.se=this.value;return j}});
ig.Ha.SET_SPEED=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"Number",d:"New speed value"}}}),f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.b.Ui=this.value;return j}});ig.Ha.SET_RELATIVE_SPEED=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"Number",d:"Relative Speed value between 0 and 1"}}}),f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.b.kg=this.value;return j}});ig.Ha.SET_ACCEL_SPEED=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"Number",
d:"New accel speed value. Something between 1 = fast acceleration. 0 = basically no acceleration"}}}),f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.b.uz=this.value;return j}});ig.Ha.SET_STATIC_TIME=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"Boolean",d:"Value of static time"}}}),f:function(a){this.value=a.value},xa:function(a){a.b.time.ex=this.value;return j}});ig.Ha.SET_WEIGHT=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"Number",d:"New weight value"}}}),
f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.b.ni=this.value;return j}});ig.Ha.SET_FRICTION=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"Number",d:"Friction. Value between 0 (slide) and 1 (brake fast)"}}}),f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.b.pp=this.value;return j}});ig.Ha.SET_AIR_FRICTION=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"Number",d:"Air Friction. Value between 0 (slide) and 1 (brake fast)"}}}),
f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.b.uk=this.value;return j}});ig.Ha.SET_SHADOW=ig.Pa.extend({size:0,s:new ig.u({attributes:{size:{c:"Number",d:"Size of shadow (in pixel diameter)"},$ua:{c:"String",d:"Set size of shadow",Y:ig.bE,U:j}}}),f:function(a){this.size=a.size;this.$ua=a.shadowType},xa:function(a){a.b.Ad.size=this.size;if(this.$ua)this.b.Ad.type=ig.bE[this.$ua];return j}});ig.Ha.SET_Z_BOUNCINESS=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"Number",
d:"Z Bounciness. Value between 0 (none) and 1 (full Speed up again)"}}}),f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.b.Xh=this.value;return j}});ig.Ha.SET_FACE_FIX=ig.Pa.extend({value:w,s:new ig.u({attributes:{value:{c:"Boolean",d:"Wether face direction is fixed or not"}}}),f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.Yt=this.value;return j}});ig.Ha.SET_FACE=ig.Pa.extend({face:s,rotate:w,Xq:3,s:new ig.u({attributes:{face:{c:"Face",d:"Direction to face",
Y:ig.Zb.Cl},rotate:{c:"Boolean",d:"Rotate entity toward direction",ub:j},Xq:{c:"Number",d:"Speed of rotation. Full circles per second",ub:3}}}),f:function(a){assertContent(a,"face");this.face=a.face;this.rotate=a.rotate||w;this.Xq=a.rotateSpeed||3},start:F(),xa:function(b){Vec2.Sa(b.b.Eb,0,0);var c=ig.rf.h$a(this.face,b,a);if(this.rotate)return Vec2.ZK(b.face,c,Math.PI*2*ig.g.ga*this.Xq);Vec2.assign(b.face,c);return j}});ig.Ha.ROTATE_FACE=ig.Pa.extend({time:0,yga:0,s:new ig.u({attributes:{time:{c:"Number",
d:"Amount of time to rotate Face"},yga:{c:"Number",d:"The amount to rotate the face clockwise. 1.0 = full rotation"}}}),f:function(a){this.time=a.time;this.yga=a.turn},start:function(a){a.Hb=a.Hb+this.time},xa:function(a){Vec2.Sa(a.b.Eb,0,0);var b=ig.g.ga;Vec2.rotate(a.face,(this.time?this.yga*b/this.time:this.yga)*Math.PI*2);return a.Hb<=0}});ig.Ha.SET_FACE_TO_DIR=ig.Pa.extend({dir:Vec2.create(),s:new ig.u({attributes:{dir:{c:"Vec2",d:"Direction to go to",BE:j}}}),f:function(a){this.dir=a.dir},start:function(b){Vec2.Sa(b.b.Eb,
0,0);var c=ig.rf.iA(this.dir,b,a);c&&Vec2.assign(b.face,c)}});ig.Ha.SET_FACE_TO_ENTITY=ig.Pa.extend({P:s,rotate:w,Xq:3,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to look at"},rotate:{c:"Boolean",d:"Rotate entity toward direction",ub:j},Xq:{c:"Number",d:"Speed of rotation. Full circles per second",ub:3}}}),f:function(a){assertContent(a,"entity");this.P=a.entity;this.rotate=a.rotate||w;this.Xq=a.rotateSpeed||3},xa:function(a){Vec2.Sa(a.b.Eb,0,0);var b=ig.Ra.pd(this.P);if(!b)return j;b=Vec2.sub(b.kb(),
a.kb());if(this.rotate)return Vec2.ZK(a.face,b,Math.PI*2*ig.g.ga*this.Xq);Vec2.assign(a.face,b);return j}});ig.Ha.SET_COLL_TYPE=ig.Pa.extend({value:0,s:new ig.u({attributes:{value:{c:"String",d:"New collision type of entity",Y:ig.la}}}),f:function(a){assertContent(a,"value");assert(ig.la[a.value]!=g,"Coll Type '"+a.value+"' unknown!");this.value=ig.la[a.value]},xa:function(a){a.b.Mp(this.value);return j}});ig.Ha.SET_SLIP_THROUGH=ig.Pa.extend({value:w,s:new ig.u({attributes:{value:{c:"Boolean",d:"true iff slip through is active (ignoring any kind of collision)"}}}),
f:function(a){assertContent(a,"value");this.value=a.value},xa:function(a){a.Lib(this.value);return j}});ig.Ha.SHOW_ANIMATION=ig.Pa.extend({vb:s,op:s,kc:s,Uwa:w,s:new ig.u({attributes:{vb:{c:"EntityAnim",d:"Animation to play"},op:{c:"EntityAnim",d:"Animation to play after this animation",U:j},kc:{c:"Boolean",d:"Wait for animation to be finished"},Uwa:{c:"Boolean",d:"if true, fetch the animations via the entities walk config"}}}),f:function(a){assertContent(a,"anim");this.vb=a.anim;this.op=a.followUp||
s;this.kc=a.wait||w;this.Uwa=a.viaWalkConfig||w},start:function(a){this.Uwa?a.Ja(a.Oc[this.vb],j,this.op?a.Oc[this.op]:s,j):a.Ja(this.vb,j,this.op,j);a.lm=j},xa:function(a){if(!this.kc)return j;if(a.Za.Vr>=1){a.lm=w;return j}return w}});ig.Ha.WAIT_UNTIL_ANIM_LOOP_END=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),start:F(),xa:function(a){return a.Za.GIa()==0||a.Za.fbb()}});ig.Ha.SHOW_PART_ANIMATION=ig.Pa.extend({vb:s,op:s,kc:s,s:new ig.u({attributes:{ii:{c:"String",d:"Name of part to change animation from"},
vb:{c:"String",d:"Animation to play"},op:{c:"String",d:"Animation to play after this animation",U:j}}}),f:function(a){assertContent(a,"anim");this.ii=a.partName;this.vb=a.anim;this.op=a.followUp||s},start:function(a){for(var b=s,a=a.b.xl,c=a.length;c--;)if(a[c].P.ii==this.ii){b=a[c].P;break}if(b){b.Ja(this.vb,j,this.op,j);b.lm=j}}});ig.Ha.SHOW_RANDOM_ANIMATION=ig.Pa.extend({Kea:s,s:new ig.u({attributes:{Kea:{c:"EntityAnimArray",d:"A list of animations. One of them will be shown randomly"}}}),f:function(a){this.Kea=
a.randAnims},start:function(a){var b=this.Kea[Math.floor(Math.random()*this.Kea.length)];a.Ja(b,j,s,j);a.lm=j}});ig.Ha.SHOW_EXTERN_ANIM=ig.Pa.extend({nb:s,h0:s,cA:s,J1:s,kc:s,s:new ig.u({attributes:{vb:{c:"Animation",d:"Animation to play"},op:{c:"Animation",d:"Animation to play after this animation",U:j},kc:{c:"Boolean",d:"Wait for animation to be finished"}}}),f:function(a){assertContent(a,"anim");this.nb=new ig.wj(a.anim.sheet);this.h0=a.anim.name;if(a.followUp){this.cA=new ig.wj(a.followUp.sheet);
this.J1=a.followUp.name}this.kc=a.wait||w},Qa:function(){this.nb.zc();this.cA&&this.cA.zc()},start:function(a){a.Ja(this.nb.La[this.h0],j,this.cA&&this.cA.La[this.J1],j);a.lm=j},xa:function(a){if(!this.kc)return j;if(a.Za.Vr>=1){a.lm=w;return j}return w}});ig.Ha.CLEAR_ANIMATION=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),xa:function(a){a.lm=w;return j}});ig.Ha.CHANGE_VAR_NUMBER=ig.Pa.extend({we:s,ff:s,value:0,s:new ig.u({attributes:{we:{c:"VarName",d:"Variable to change",IEa:j},ff:{c:"String",
d:"Type of modification",Y:{set:1,add:1,sub:1,mul:1,div:1,mod:1}},value:{c:"NumberExpression",d:"Value to modify with"}}}),f:function(a){assertContent(a,"varName","changeType","value");this.we=a.varName;this.ff=a.changeType;this.value=a.value},xa:function(a){var a=ig.rf.fu(this.we,a),b=ig.Ra.so(this.value);if(a){b=b*1;if(isNaN(b))ig.log("CHANGE_VAR_NUMBER: (Actor) Invalid value!");else{if(ig.pa[this.ff]){ig.pa[this.ff](a,b);return j}ig.log("CHANGE_VAR_NUMBER: (Actor) Invalid change type")}}else ig.log("CHANGE_VAR_NUMBER: (Actor) Variable Name is not a String!")}});
ig.Ha.CHANGE_VAR_BOOL=ig.Pa.extend({we:s,ff:s,value:0,s:new ig.u({attributes:{we:{c:"VarName",d:"Variable to change",IEa:j},ff:{c:"String",d:"Type of modification",Y:{set:1,and:1,or:1,xor:1}},value:{c:"BooleanExpression",d:"Value to modify with"}}}),f:function(a){assertContent(a,"varName","changeType","value");this.we=a.varName;this.ff=a.changeType;this.value=a.value},xa:function(a){var a=ig.rf.fu(this.we,a),b=ig.Ra.so(this.value);if(a){b=!!b;if(ig.pa[this.ff]){ig.pa[this.ff](a,b);return j}ig.log("CHANGE_VAR_BOOL: Invalid change type")}else ig.log("CHANGE_VAR_BOOL: Variable Name is not a String!")}});
ig.Ha.CHANGE_VAR_STRING=ig.Pa.extend({we:s,ff:s,value:0,s:new ig.u({attributes:{we:{c:"VarName",d:"Variable to change",IEa:j},ff:{c:"String",d:"Type of modification",Y:{set:1,append:1}},value:{c:"StringExpression",d:"Value to modify with"}}}),f:function(a){assertContent(a,"varName","changeType","value");this.we=a.varName;this.ff=a.changeType;this.value=a.value},xa:function(a){var a=ig.rf.fu(this.we,a),b=ig.Ra.so(this.value);if(a){b=""+b;if(ig.pa[this.ff]){ig.pa[this.ff](a,b);return j}ig.log("CHANGE_VAR_STRING: Invalid change type")}else ig.log("CHANGE_VAR_STRING: Variable Name is not a String!")}});
ig.Ha.SET_ATTRIB_VEC2=ig.Pa.extend({name:s,value:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of actor attribute to set"},value:{c:"Vec2Expression",d:"Vec2 value to be set",rv:j,Ht:j}}}),f:function(a){assertContent(a,"name","value");this.name=a.name;this.value=a.value},xa:function(a){var b=ig.Ra.so(this.value);a.setAttribute(this.name,b);return j}});ig.Ha.SET_ATTRIB_BOOL=ig.Pa.extend({name:s,value:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of actor attribute to set"},value:{c:"BooleanExpression",
d:"Bool value to be set"}}}),f:ig.Ha.SET_ATTRIB_VEC2.prototype.f,xa:ig.Ha.SET_ATTRIB_VEC2.prototype.xa});ig.Ha.SET_ATTRIB_STRING=ig.Pa.extend({name:s,value:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of actor attribute to set"},value:{c:"StringExpression",d:"String value to be set"}}}),f:ig.Ha.SET_ATTRIB_VEC2.prototype.f,xa:ig.Ha.SET_ATTRIB_VEC2.prototype.xa});ig.Ha.PLAY_SOUND=ig.Pa.extend({Ab:s,global:w,loop:w,Fi:s,s:new ig.u({attributes:{Ab:{c:"SoundT",d:"URL of sound."},volume:{c:"Number",
d:"The volume. Value between 0 and 1.",ub:1},global:{c:"Boolean",d:"Play sound globally without 3D sound."},loop:{c:"Boolean",d:"Loop sound if true"},speed:{c:"Number",d:"Playback speed. 1=default speed. 0.5=half speed.",U:j}}}),f:function(a){assertContent(a,"sound");this.Ab=new ig.da(a.sound,a.volume||1,a.variance||0);this.global=a.global||w;this.loop=a.loop||w;this.Fi={speed:a.speed||1}},Qa:function(){this.Ab.Qa()},xa:function(a){var b;b=this.global?this.loop?this.Ab.qy(s,this.Fi):this.Ab.play(s,
this.Fi):ig.Tg.ah(this.Ab,a,this.loop,this.Fi);this.loop&&a.fp(b);return j}});ig.Ha.PLAY_RANDOM_SOUND=ig.Pa.extend({Kb:[],global:w,loop:w,Fi:s,s:new ig.u({attributes:{Kb:{c:"Array",d:"Sound to be played random",LE:{c:"SoundConfig"}},global:{c:"Boolean",d:"Play sound globally without 3D sound."},loop:{c:"Boolean",d:"Loop sound if true"},speed:{c:"Number",d:"Playback speed. 1=default speed. 0.5=half speed.",U:j}}}),f:function(a){for(var b=0;b<a.sounds.length;++b){var c=a.sounds[b];this.Kb.push(new ig.da(c.sound,
c.volume||1,c.variance||0))}this.global=a.global||w;this.loop=a.loop||w;this.Fi={speed:a.speed||1}},Qa:function(){for(var a=this.Kb.length;a--;)this.Kb[a].Qa()},xa:function(a){var b;b=this.Kb.random();b=this.global?this.loop?b.qy(s,this.Fi):b.play(s,this.Fi):ig.Tg.ah(b,a,this.loop,this.Fi);this.loop&&a.fp(b);return j}});ig.Ha.HIDE=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),xa:function(a){a.hide();return j}});ig.Ha.HIDE_OTHER=ig.Pa.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Other entity to hide"}}}),
f:function(a){this.P=a.entity},xa:function(){var a=ig.Ra.pd(this.P);a&&a.hide();return j}});ig.Ha.SET_POS=ig.Pa.extend({gD:s,s:new ig.u({attributes:{gD:{c:"Vec3",d:"Position to move to.",Ht:j,rv:j,BE:j}}}),f:function(a){this.gD=a.newPos},start:function(a){a.l(this.gD.x,this.gD.y,this.gD.z)}});var k=Vec3.pc(0,0,0);ig.Ha.INTERPOLATE_POSITION=ig.Pa.extend({gD:s,duration:0,oh:s,hwa:w,s:new ig.u({attributes:{gD:{c:"Vec3",d:"Position to move to.",Ht:j,rv:j,BE:j},duration:{c:"Number",d:"Time the movement should take."},
oh:{c:"String",d:"The KEYSPLINE to use.",Y:KEY_SPLINES},hwa:{c:"Boolean",d:"If true, then time is for movement over one tile, scaled by total distance",ub:w}}}),f:function(a){this.gD=a.newPos;this.duration=a.duration||0;this.oh=KEY_SPLINES[a.keySpline||"LINEAR"];this.hwa=a.timePerTile||w},start:function(a){a.tb.mn=a.je(ig.Rb.BOTTOM);if(this.hwa){var c=ig.rf.Mv(this.gD,a,b);Vec3.sub(c,a.tb.mn);c=Vec3.length(c);a.tb.duration=c/16*this.duration}else a.tb.duration=this.duration;a.Hb=a.tb.duration},xa:function(a){var c=
1-(a.Hb/a.tb.duration).Vb(0,1),c=this.oh.get(c),d=ig.rf.Mv(this.gD,a,b);Vec3.Zm(a.tb.mn,d,c,k);a.l(k.x-a.b.size.x/2,k.y-a.b.size.y/2,k.z,j);return c>=1}});ig.Ha.Z_INTERPOLATE=ig.Pa.extend({Fra:0,duration:0,oh:s,s:new ig.u({attributes:{Fra:{c:"Number",d:"New z post to move to."},duration:{c:"Number",d:"Time the movement should take."},oh:{c:"String",d:"The KEYSPLINE to use.",Y:KEY_SPLINES}}}),f:function(a){this.Fra=a.newZPos||0;this.duration=a.duration||0;this.oh=KEY_SPLINES[a.keySpline||"LINEAR"]},
start:function(a){a.Hb=this.duration;a.tb.Elb=a.b.i.z},xa:function(a){var b=1-(a.Hb/this.duration).Vb(0,1),b=this.oh.get(b);a.AD(a.tb.Elb*(1-b)+this.Fra*b);return b>=1}});ig.Ha.CONSUME_ITEM=ig.Pa.extend({item:s,s:new ig.u({attributes:{item:{c:"Item",d:"The item to consume."}}}),f:function(a){this.item=a.item||0},start:function(){sc.q.R.Rwa(this.item)}})});ig.G=j;
ig.I("impact.feature.base.event-steps").J("impact.base.utils","impact.base.event","impact.base.action").H(function(){function a(a){switch(a){case "set":return"=";case "add":return"+=";case "sub":return"-=";case "mul":return"*=";case "div":return"/=";case "mod":return"%=";case "and":return"&=";case "or":return"|=";case "xor":return"XOR";case "append":return"+="}return"???"}var b=/^(\d+)_(\d+)$/;ig.ma.SELECT_RANDOM=ig.na.extend({options:[],Jg:{},s:new ig.u({attributes:{options:{c:"RandomDistribution",
d:"RandomDistribution",d9:j}},MI:function(a){if(a=="_end")return"END_SELECT_RANDOM";var c=b.exec(a);if(c){var a=c[1],c=c[2],h="";this.options[a].Cs&&(h=h+("("+this.options[a].Cs+")"));return"Entry "+a+" #"+c+" "+h+" weight "+this.options[a].ni}return"???"}}),f:function(a){for(var a=a.options||[],b=0;b<a.length;++b){var c={count:a[b].count,ni:a[b].weight,Cs:new ig.ce(a[b].activeCondition)};c.Tq=c.count*c.ni;this.options[b]=c}},IC:function(){for(var a=[],b=0;b<this.options.length;++b)for(var c=this.options[b],
k=0;k<c.count;++k)a.push(b+"_"+k);return a},Nx:function(){for(var a=0,b=this.options.length;b--;)this.options[b].Cs.evaluate()&&(a=a+this.options[b].Tq);a=Math.random()*a;for(b=this.options.length;b--;)if(this.options[b].Cs.evaluate())if(a>=this.options[b].Tq)a=a-this.options[b].Tq;else break;a=this.options[b];if(!a)return this.Ek;a=Math.floor(a.count*Math.random());return this.Jg[b+"_"+a]||this.Ek}});ig.ma.LABEL=ig.na.extend({name:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of the label"}},
label:function(){return"<b>LABEL</b> <i>"+this.name+"</i>"}}),f:function(a){assertContent(a,"name");this.name=a.name}});ig.ma.GOTO_LABEL=ig.na.extend({name:s,s:new ig.u({attributes:{name:{c:"String",d:"Label to move to."}},label:function(){return"<b>GOTO_LABEL</b> <i>"+this.name+"</i>"}}),f:function(a){assertContent(a,"name");this.name=a.name},CO:M("name")});ig.ma.GOTO_LABEL_WHILE=ig.na.extend({name:s,jb:s,s:new ig.u({attributes:{name:{c:"String",d:"Label to move to."},jb:{c:"VarCondition",d:"Condition to jump to the label"}},
label:function(){return"<b>GOTO_LABEL</b> <i>"+this.name+"</i> <b>WHILE</b> <i>"+this.jb+"</i>"}}),f:function(a){assertContent(a,"name");this.name=a.name;this.jb=new ig.ce(a.condition)},CO:function(){return this.jb.evaluate()?this.name:s}});ig.ma.WAIT=ig.na.extend({time:0,Od:0,L2:w,s:new ig.u({attributes:{time:{c:"NumberExpression",d:"Time to wait in seconds"},L2:{c:"Boolean",d:"Ignore slow down rate on wait"}}}),f:function(a){assertContent(a,"time");this.time=a.time;this.L2=a.ignoreSlowDown||w},
start:function(a){a.Od=ig.Ra.so(this.time)},xa:function(a){a.Od=a.Od-(this.L2?ig.g.Da:ig.g.ga);return a.Od<=0}});ig.ma.WAIT_UNTIL_TRUE=ig.na.extend({jb:s,Od:0,L2:w,s:new ig.u({attributes:{jb:{c:"VarCondition",d:"Condition to evaluate to true to continue"}}}),f:function(a){assertContent(a,"condition");this.jb=new ig.ce(a.condition)},start:F(),xa:function(){return this.jb.evaluate()}});ig.ma.WAIT_UNTIL_ACTION_DONE=ig.na.extend({P:0,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to move",rv:j,Ah:"Entity"}}}),
f:function(a){assertContent(a,"entity");this.P=a.entity},start:function(a,b){var c=ig.Ra.pd(this.P,b);if(c){a.CM=c;a.S2a=c.od}},xa:function(a){return!a.CM||!a.CM.od||a.CM.od!=a.S2a}});ig.ma.STOP_SKIP_MODE=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){ig.g.tl=w}});ig.ma.SET_ENTITY_STATIC_TIME=ig.na.extend({P:s,value:j,global:w,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to be changed"},value:{c:"Boolean",d:"true: Entity ignores world speed slow down. false: entity is slowed down."},
global:{c:"Boolean",d:"If true, set static time globally"}}}),f:function(a){assertContent(a,"entity","value");this.P=a.entity;this.value=a.value;this.global=a.global},start:function(a,b){var c=ig.Ra.pd(this.P,b);this.global?c.b.time.Gj=this.value:c.b.time.ex=this.value}});ig.ma.SET_ENTITY_POS=ig.na.extend({P:s,position:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to be changed"},position:{c:"Vec3",d:"New position of entity",_pointSelect:j}}}),f:function(a){assertContent(a,"entity","position");
this.P=a.entity;this.position=a.position},start:function(a,b){var h=ig.Ra.pd(this.P,b);if(h){var k=ig.Ra.Mv(this.position,c),l=h.b;h.l(k.x-l.size.x/2,k.y-l.size.y/2,k.z)}}});ig.ma.SET_ENTITY_ON_TOP_OTHER=ig.na.extend({P:s,WU:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to be changed"},WU:{c:"Entity",d:"Entity the first entity should stand on"}}}),f:function(a){assertContent(a,"entity","groundEntity");this.P=a.entity;this.WU=a.groundEntity},start:function(a,b){var c=ig.Ra.pd(this.P,b),k=ig.Ra.pd(this.WU,
b);c.AD(k.b.i.z+k.b.size.z);c.b.NPa(k.b);c.b.Z.z=0}});var c=Vec3.create();ig.ma.ADJUST_ENTITY_POS=ig.na.extend({P:s,offset:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to be changed"},offset:{c:"Vec3",d:"Offset applied to entity position ",Gnb:j}}}),f:function(a){assertContent(a,"entity","offset");this.P=a.entity;this.offset=a.offset},start:function(a,b){var h=ig.Ra.pd(this.P,b),k=ig.Ra.Mv(this.offset,c);h.l(h.b.i.x+k.x,h.b.i.y+k.y,h.b.i.z+k.z)}});ig.ma.HIDE_ENTITY=ig.na.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",
d:"Entity to be hidden"},X5:{c:"Boolean",d:"If true: Skip effects when showing entity"}}}),f:function(a){assertContent(a,"entity");this.P=a.entity;this.X5=a.skipEffects},start:function(a,b){var c=ig.Ra.pd(this.P,b);c&&(this.X5?c.hide():ig.t.KOa(c))}});ig.ma.SHOW_ENTITY=ig.na.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to be shown"},X5:{c:"Boolean",d:"If true: Skip effects when showing entity"}}}),f:function(a){assertContent(a,"entity");this.P=a.entity;this.X5=a.skipEffects},start:function(a,
b){var c=ig.Ra.pd(this.P,b);c&&c.show(this.X5)}});ig.ma.SHOW_ANIMATION=ig.na.extend({P:s,vb:s,reset:w,op:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to be changed",Ah:"Entity"},vb:{c:"EntityAnim",d:"Name of the new animation"},reset:{c:"Boolean",d:"Reset current animation state"},op:{c:"EntityAnim",d:"Aninmation that follows the set animation",U:j}}}),f:function(a){assertContent(a,"entity","anim");this.P=a.entity;this.vb=a.anim;this.reset=a.reset||w;this.op=a.followUp||s},start:function(a,b){ig.Ra.pd(this.P,
b).Ja(this.vb,this.reset,this.op,j)}});ig.ma.SHOW_EXTERN_ANIM=ig.na.extend({P:s,nb:s,h0:s,cA:s,J1:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to be changed"},vb:{c:"Animation",d:"Animation to play"},op:{c:"Animation",d:"Animation to play after this animation",U:j}}}),f:function(a){assertContent(a,"entity","anim");this.P=a.entity;this.nb=new ig.wj(a.anim.sheet);this.h0=a.anim.name;if(a.followUp){this.cA=new ig.wj(a.followUp.sheet);this.J1=a.followUp.name}},Qa:function(){this.nb.zc();this.cA&&
this.cA.zc()},start:function(a,b){var c=ig.Ra.pd(this.P,b);if(c){c.Ja(this.nb.La[this.h0],j,this.cA&&this.cA.La[this.J1],j);c.lm=j}}});ig.ma.CLEAR_ANIMATION=ig.na.extend({s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to be changed"}}}),f:function(a){this.P=a.entity},start:function(a,b){var c=ig.Ra.pd(this.P,b);if(c)c.lm=w}});ig.ma.DO_ACTION=ig.na.extend({P:0,action:s,kc:w,Mqa:w,CM:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to move",rv:j,Ah:"Entity"},action:{c:"Action",d:"The action to perform",
Hnb:ig.Ha},Ota:{c:"Boolean",d:"Repeat Action"},kc:{c:"Boolean",d:"Wait until action is finished"},Mqa:{c:"Boolean",d:"Don't reset entity state after action"}},width:500}),f:function(a){assertContent(a,"entity","action");this.P=a.entity;this.action=new ig.rf("[GENERIC]",a.action,w,a.repeating);this.action.Gx=j;this.kc=a.wait||w;this.Mqa=a.keepState||w},Qa:function(){this.action&&this.action.Qa()},start:function(a,b){var c=ig.Ra.pd(this.P,b);(a.CM=c)&&c.If(this.action,this.Mqa)},xa:function(a){return!a.CM||
!this.kc||a.CM.od!=this.action}});ig.ma.TELEPORT=ig.na.extend({map:"",De:"",s:new ig.u({attributes:{map:{c:"Maps",d:"Map to be teleported to",Ah:"Map"},De:{c:"Marker",d:"Marker on Map to be teleported to"}}}),f:function(a){assertContent(a,"map");this.map=a.map;this.De=a.marker},start:function(){ig.t.Zk(this.map,this.De?new ig.jz(this.De):s)}});ig.ma.IF=ig.na.extend({jb:s,qB:w,Jg:{},s:new ig.u({attributes:{jb:{c:"VarCondition",d:"Condition for IF statement"},qB:{c:"Boolean",d:"With else case.",d9:j}},
MI:function(a){switch(a){case "thenStep":return s;case "elseStep":return"else";case "_end":return"endif"}return"???"}}),f:function(a){this.jb=new ig.ce(a.condition);this.qB=a.withElse},IC:function(){return this.qB?["thenStep","elseStep"]:["thenStep"]},Nx:function(){return this.jb.evaluate()?this.Jg.thenStep?this.Jg.thenStep:this.Ek:this.Jg.elseStep?this.Jg.elseStep:this.Ek}});ig.ma.FORK_CONDITION=ig.ma.IF;ig.ma.CHANGE_VAR_NUMBER=ig.na.extend({we:s,ff:s,value:0,s:new ig.u({attributes:{we:{c:"VarName",
d:"Variable to change"},ff:{c:"String",d:"Type of modification",Y:{set:1,add:1,sub:1,mul:1,div:1,mod:1}},value:{c:"NumberExpression",d:"Value to modify with"}},label:function(){return"<b>VAR_NUMBER</b> <code>"+wmPrint("VarName",this.we)+" "+a(this.ff)+" "+wmPrint("NumberExpression",this.value)+"</code>"}}),f:function(a){assertContent(a,"varName","changeType","value");this.we=a.varName;this.ff=a.changeType;this.value=a.value},start:function(){var a=ig.Ra.fu(this.we),b=ig.Ra.so(this.value);if(a){b=
b*1;if(isNaN(b))ig.log("CHANGE_VAR_NUMBER: Invalid value!");else if(ig.pa[this.ff])ig.pa[this.ff](a,b);else ig.log("CHANGE_VAR_NUMBER: Invalid change type")}else ig.log("CHANGE_VAR_NUMBER: Variable Name is not a String!")}});ig.ma.SET_VAR_TIME=ig.na.extend({we:s,ff:s,value:0,s:new ig.u({attributes:{we:{c:"VarName",d:"Variable to store current timestamp in milliseconds"}}}),f:function(a){this.we=a.varName},start:function(){var a=ig.Ra.fu(this.we);a?ig.pa.set(a,Date.now()):ig.log("SET_VAR_TIME: Variable Name is not a String!")}});
ig.ma.CHANGE_VAR_VEC2=ig.na.extend({we:s,ff:s,value:0,s:new ig.u({attributes:{we:{c:"VarName",d:"Variable to change"},ff:{c:"String",d:"Type of modification",Y:{set:1,add:1,sub:1,mul:1,div:1}},value:{c:"Vec2Expression",d:"Value to modify with"}},label:function(){return"<b>VAR_VEC2</b> <i>"+wmPrint("VarName",this.we)+" "+a(this.ff)+" "+wmPrint("Vec2Expression",this.value)+"</i>"}}),f:function(a){assertContent(a,"varName","changeType","value");this.we=a.varName;this.ff=a.changeType;this.value=a.value},
start:function(){var a=ig.Ra.fu(this.we),b=ig.Ra.so(this.value);if(a)if(!b||b.y===g)ig.log("CHANGE_VAR_VEC2: value is not a Vec2!");else if(this.ff=="set")ig.pa.set(a,b);else{var c=ig.pa.get(a);if(c||c.y===g)ig.log("CHANGE_VAR_VEC2: dest is not a Vec2!");else{switch(this.ff){case "add":Vec2.add(c,b);break;case "sub":Vec2.sub(c,b);break;case "mul":Vec2.eW(c,b);break;case "div":Vec2.l1(c,b)}ig.pa.set(a,c)}}else ig.log("CHANGE_VAR_VEC2: Variable Name is not a String!")}});ig.ma.CHANGE_VAR_VEC3=ig.na.extend({we:s,
ff:s,value:0,s:new ig.u({attributes:{we:{c:"VarName",d:"Variable to change"},ff:{c:"String",d:"Type of modification",Y:{set:1,add:1,sub:1,mul:1,div:1}},value:{c:"Vec3Expression",d:"Value to modify with"}},label:function(){return"<b>VAR_VEC3</b> <i>"+wmPrint("VarName",this.we)+" "+a(this.ff)+" "+wmPrint("Vec3Expression",this.value)+"</i>"}}),f:function(a){assertContent(a,"varName","changeType","value");this.we=a.varName;this.ff=a.changeType;this.value=a.value},start:function(){var a=ig.Ra.fu(this.we),
b=ig.Ra.so(this.value);if(a)if(!b||b.z===g)ig.log("CHANGE_VAR_VEC3: value is not a Vec3!");else if(this.ff=="set")ig.pa.set(a,b);else{var c=ig.pa.get(a);if(c||c.z===g)ig.log("CHANGE_VAR_VEC3: dest is not a Vec3!");else{switch(this.ff){case "add":Vec3.add(c,b);break;case "sub":Vec3.sub(c,b);break;case "mul":Vec3.eW(c,b);break;case "div":Vec3.l1(c,b)}ig.pa.set(a,c)}}else ig.log("CHANGE_VAR_VEC3: Variable Name is not a String!")}});ig.ma.CHANGE_VAR_BOOL=ig.na.extend({we:s,ff:s,value:0,s:new ig.u({attributes:{we:{c:"VarName",
d:"Variable to change"},ff:{c:"String",d:"Type of modification",Y:{set:1,and:1,or:1,xor:1}},value:{c:"BooleanExpression",d:"Value to modify with"}},label:function(){return"<b>VAR_BOOL</b> <code>"+wmPrint("VarName",this.we)+" "+a(this.ff)+" "+wmPrint("BooleanExpression",this.value)+"</code>"}}),f:function(a){assertContent(a,"varName","changeType","value");this.we=a.varName;this.ff=a.changeType;this.value=a.value},start:function(){var a=ig.Ra.fu(this.we),b=ig.Ra.so(this.value);if(a){b=!!b;if(ig.pa[this.ff])ig.pa[this.ff](a,
b);else ig.log("CHANGE_VAR_BOOL: Invalid change type")}else ig.log("CHANGE_VAR_BOOL: Variable Name is not a String!")}});ig.ma.CHANGE_VAR_STRING=ig.na.extend({we:s,ff:s,value:0,s:new ig.u({attributes:{we:{c:"VarName",d:"Variable to change"},ff:{c:"String",d:"Type of modification",Y:{set:1,append:1}},value:{c:"StringExpression",d:"Value to modify with"}},label:function(){return"<b>VAR_STRING</b> <i>"+wmPrint("VarName",this.we)+" "+a(this.ff)+" "+wmPrint("StringExpression",this.value)+"</i>"}}),f:function(a){assertContent(a,
"varName","changeType","value");this.we=a.varName;this.ff=a.changeType;this.value=a.value},start:function(){var a=ig.Ra.fu(this.we),b=ig.Ra.so(this.value);if(a){b=""+b;if(ig.pa[this.ff])ig.pa[this.ff](a,b);else ig.log("CHANGE_VAR_STRING: Invalid change type")}else ig.log("CHANGE_VAR_STRING: Variable Name is not a String!")}});ig.ma.SET_ATTRIB_VEC2=ig.na.extend({ZM:0,name:s,value:s,s:new ig.u({attributes:{ZM:{c:"Actor",d:"Actor to change"},name:{c:"String",d:"Name of enemy attribute to set"},value:{c:"Vec2Expression",
d:"Vec2 value to be set",Ht:j}}}),f:function(a){assertContent(a,"actor","name","value");this.ZM=a.actor;this.name=a.name;this.value=a.value},start:function(a,b){var c=ig.Ra.pd(this.ZM,b);if(c){var k=ig.Ra.so(this.value);c.setAttribute(this.name,k)}}});ig.ma.SET_ATTRIB_VEC3=ig.na.extend({ZM:0,name:s,value:s,s:new ig.u({attributes:{ZM:{c:"Actor",d:"Actor to change"},name:{c:"String",d:"Name of actor attribute to set"},value:{c:"Vec3Expression",d:"Vec3 value to be set",Ht:j}}}),f:ig.ma.SET_ATTRIB_VEC2.prototype.f,
start:ig.ma.SET_ATTRIB_VEC2.prototype.start});ig.ma.SET_ATTRIB_STRING=ig.na.extend({ZM:0,name:s,value:s,s:new ig.u({attributes:{ZM:{c:"Actor",d:"Actor to change"},name:{c:"String",d:"Name of enemy attribute to set"},value:{c:"StringExpression",d:"String value to be set"}}}),f:ig.ma.SET_ATTRIB_VEC2.prototype.f,start:ig.ma.SET_ATTRIB_VEC2.prototype.start});ig.ma.PLAY_SOUND=ig.na.extend({Ab:s,position:{x:0,y:0},loop:w,Fi:s,name:s,speed:s,s:new ig.u({attributes:{Ab:{c:"SoundT",d:"URL of sound."},volume:{c:"Number",
d:"The volume. Value between 0 and 1.",ub:1},position:{c:"Vec2",d:"The position to play the sound at.",Ht:j,U:j},name:{c:"String",d:"A name for the sound, is only valid if loop is true."},loop:{c:"Boolean",d:"True if the sound should loop. <i>EXPERIMENTAL!</i>"},offset:{c:"Number",d:"Offset to start the sound at. <i>EXPERIMENTAL!</i>"},startTime:{c:"Number",d:"Time to wait before playing the sound. <i>EXPERIMENTAL!</i>"},speed:{c:"Number",d:"Playback speed. 1=default speed. 0.5=half speed.",U:j}}}),
f:function(a){assertContent(a,"sound");this.Ab=new ig.da(a.sound,a.volume||1,a.variance||0);this.position=a.position||s;this.Fi={offset:a.offset||0,startTime:a.startTime||0,speed:a.speed||1};this.loop=a.loop||w;this.name=a.name||s},Qa:function(){this.Ab.Qa()},start:function(){if(this.name&&this.loop){var a=this.Ab.qy(this.position,this.Fi);ig.Yd.v5a(this.name,a)}else this.Ab.play(this.position,this.Fi)}});ig.ma.STOP_SOUND=ig.na.extend({name:s,s:new ig.u({attributes:{name:{c:"String",d:"The of the sound to stop"}}}),
f:function(a){this.name=a.name||s},start:function(){if(this.name){var a=ig.Yd.O$a(this.name);a&&a.stop();ig.Yd.Qgb(this.name)}}});ig.v7={LOG:function(a){ig.log(a)},WARN:function(a){ig.warn(a)},DEBUG:function(a){ig.debug(a)}};ig.ma.CONSOLE_LOG=ig.na.extend({text:s,Wma:ig.v7.P7,s:new ig.u({attributes:{text:{c:"String",d:"The text to display on the console. "},Wma:{c:"String",d:"The type of the console log.",Y:ig.v7}}}),f:function(a){this.text=a.text||s;this.Wma=a.consoleType||ig.v7.P7},start:function(){if(this.text)ig.v7[this.Wma](this.text)}})});
ig.G=j;
ig.I("impact.feature.base.entities.marker").J("impact.base.actor-entity").H(function(){ig.ya.Marker=ig.gd.extend({name:"",dir:s,face:Vec2.create(),s:new ig.u({Bd:j,attributes:{name:{c:"String",d:"Name of Marker. This will be referred in teleport commands."},dir:{c:"String",d:"Direction player is facing when teleported to this spot.",Y:ig.Zb.zh}},label:function(){return"(face: "+this.dir+")"},Fj:j,hl:"rgba(255,255,0, 0.5)"}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.b.v(32,32,
0);this.dir=d.dir;ig.Zb.Mr(ig.Zb.Cl[d.dir]||0,this.face)},update:F(),ZB:function(a){a.b.aa=this.b.aa;a.b.jc=this.b.jc;a.b.i.z=this.b.i.z;a.face.x=this.face.x;a.face.y=this.face.y;a.l(this.b.i.x+this.b.size.x/2-a.b.size.x/2,this.b.i.y+this.b.size.y/2-a.b.size.y/2)}})});ig.G=j;
ig.I("impact.feature.base.entities.object-layer-view").J("impact.base.actor-entity").H(function(){var a=Vec2.create(),b=Vec2.create();ig.oS={jpa:function(a,b,e,h){for(var a=a.b,e=e||a.i,h=h||a.size,k=a=0;k<b.length;++k){var l=b[k],m=l.lx/ig.g.scale,l=l.mx/ig.g.scale,n=1;Math.floor(e.x/m)!=Math.floor((e.x+h.x)/m)&&(n=n*2);Math.floor((e.y-e.z-h.z)/l)!=Math.floor((e.y-e.z+h.y)/l)&&(n=n*2);a=a+n}return a},tj:function(c,d,e,h,k,l){if(!d.length)return j;for(var m=d.length;m--;)if(!d[m].am)return w;var m=
c.b,k=k||m.i,l=l||m.size,n=Vec2.Sa(a,k.x,k.y-k.z-l.z),o=Vec2.Sa(b,k.x+l.x,k.y-k.z+l.y);if(h){Vec2.WX(n,h.x,h.y-h.z||0);Vec2.WX(o,h.x,h.y-h.z||0);n.x=Math.round(n.x);n.y=Math.round(n.y);o.x=Math.round(o.x);o.y=Math.round(o.y)}for(m=h=0;m<d.length;++m){for(var t=d[m],r=t.lx/ig.g.scale,p=t.mx/ig.g.scale,q=Math.floor(n.x/r),x=Math.floor(o.x/r),y=Math.floor(n.y/p),z=Math.floor(o.y/p),u=n.x%r,v=n.y%p;u<0;)u=u+r;for(;v<0;)v=v+p;for(var r=r-u,p=p-v,A=Math.round(l.y*e),A=l.y-A,C=y;C<=z;++C)for(var B=q;B<=
x;++B){var E=k.x,I=k.y,K=k.z,H=l.x,G=l.y,J=l.z,D=t.am[C]&&t.am[C][B],N=Math.round(e*G);if(D){if(B<x)H=r;else if(B>q){H=H-r;E=E+r}if(C<z)if(p>=A){N=A+J-p;if(N>=0){J=J-N;K=K+N;G=A;N=0}else{G=A-N;N=-N}}else{K=K+J;G=p;N=J=0}else if(C>y)if(p>=A){N=A+J-p;if(N>=0){I=I+A;J=J-(p-A);N=G=G-A}else{J=0;I=I+(A-N);G=G-(A-N);N=0}}else{I=I+p;G=G-p}var O=B>q?0:u,U=C>y?0:v;c.Ta[h].l(E,I,K);c.Ta[h].v(H,G,J,N);c.Ta[h].tz=1;c.Ta[h].Vh(new ig.Vha(D),O,U);h++}}}return j}};ig.rya=ig.ra.extend({Mba:s,Rv:0,hidden:w,f:function(a){this.Mba=
new ig.ce(a)},update:function(a){var b=this.Mba.evaluate();if(b!=this.hidden){this.Rv=0.2-this.Rv;this.hidden=b}this.Rv=Math.max(0,this.Rv-ig.g.Da);b=this.Rv/0.2;b=this.hidden?b:1-b;b=0.25*(1-b)+1*b;if(a.Za)a.Za.alpha=b;else for(var e=a.Ta.length;e--;)a.Ta[e].wd(b)}});ig.ya.ObjectLayerView=ig.fe.extend({jf:s,qL:w,PO:s,Qg:0,fx:{show:s,hide:s,handle:s,wqa:w},s:new ig.u({Bd:j,Ip:j,Jp:j,w5:4,attributes:{NLa:{c:"String",d:"Object Layer from which to display graphic.",Y:{object1:1,object2:1,object3:1}},
xq:{c:"String",d:"CollisionType",Y:ig.la},sg:{c:"Number",d:"Z height of displayed object"},Rp:{c:"VarCondition",d:"Condition for prop to appear"},Mba:{c:"VarCondition",d:"Condition for entity to become transparent"},Qg:{c:"Number",d:"Wall Y Value"},mc:{c:"String",d:"Terrain of prop",Y:ig.Gd,Oi:j},ml:{c:"String",d:"Height shape (for stairs or other slopes)",Y:ig.em},eva:{c:"Effect",d:"Effect to show when showing entity",U:j},kbb:{c:"Effect",d:"Effect to show when hiding entity",U:j}},Fj:w,hl:"rgba(120,255,120, 0.5)",
yF:"rgba(80,244,80, 0.5)",L9:j}),f:function(a,b,e,h){this.parent(a,b,e,h);this.b.type=ig.la[h.collType||"BLOCK"];this.b.size.z=h.zHeight||0;this.b.ml=ig.em[h.heightShape]||ig.em.NONE;this.jf=ig.t.sba(h.layer);this.Qg=(h.wallY||0).Vb(0,1);this.mc=ig.Gd[h.terrain]||s;this.fx.show=h.showEffect?new ig.al(h.showEffect):s;this.fx.hide=h.hideEffect?new ig.al(h.hideEffect):s;h.hideCondition?this.PO=new ig.rya(h.hideCondition):this.b.Eu(ig.Gm.HB)},Tb:function(a){this.parent(a);this.fx.show&&this.fx.show.Qa();
this.fx.hide&&this.fx.hide.Qa()},show:function(a){this.parent(a);this.fx.handle&&this.fx.handle.stop();if(!a&&this.fx.show){this.Za.alpha=0;this.fx.wqa=w;this.fx.handle=this.fx.show.Ya(this,{callback:this})}},gG:function(){if(this.fx.hide){this.fx.wqa=j;this.fx.handle=this.fx.hide.Ya(this,{callback:this})}else this.hide()},$r:function(){if(this.fx.handle&&this.fx.handle.vp()){this.fx.handle=s;this.fx.wqa&&this.hide()}},Jn:function(){this.dm(ig.oS.jpa(this,this.jf))},update:function(){this.PO&&this.PO.update(this)},
tj:function(){if(!this.qL&&ig.oS.tj(this,this.jf,this.Qg))this.qL=j;for(var a=this.Ta.length;a--;)this.Ta[a].wd(this.Za.alpha);this.Za.pY(this)}});ig.ya.ObjectLayerView.vRa=j});ig.G=j;
ig.I("impact.feature.base.entities.touch-trigger").J("impact.base.actor-entity").H(function(){ig.mBa={SET_TRUE:1,SET_FALSE:2,WHILE_TOUCH_TRUE:3,WHILE_TOUCH_FALSE:4};ig.ya.TouchTrigger=ig.gd.extend({name:"",face:Vec2.create(),twa:0,itb:0,gB:s,s:new ig.u({Bd:j,attributes:{gB:{c:"VarCondition",d:"Condition for the touch trigger to react",sd:j},gc:{c:"VarName",d:"Variable to be changed"},type:{c:"String",d:"Type of change",Y:ig.mBa,ub:"SET_TRUE"},sg:{c:"Integer",d:"Height of trigger",ub:64}},Ip:j,Jp:j,
label:function(){return"["+this.gc+"]"},Fj:j,hl:"rgba(255,0,255, 0.25)",yF:"rgba(120,0,120, 0.25)"}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.gc=d.variable;this.twa=ig.mBa[d.type||"SET_TRUE"];this.b.size.z=d.zHeight*1;this.gB=new ig.ce(d.startCondition||"true")},update:function(){if(this.gB.evaluate()){var a=ig.t.wb;if(a){var b=this.b,c=this.twa%2?j:w;a.b.V2(b.i.x,b.i.y,b.i.z,b.size.x,b.size.y,b.size.z)?ig.pa.set(this.gc,c):this.twa>2&&ig.pa.set(this.gc,!c)}}}})});
ig.G=j;
ig.I("impact.feature.base.entities.sound-entities").J("impact.base.entity","impact.base.actor-entity").H(function(){ig.ya.SoundSource=ig.gd.extend({Ab:s,jg:20,s:new ig.u({Bd:j,attributes:{Ab:{c:"SoundT",d:"URL of sound."},volume:{c:"Number",d:"The volume. Value between 0 and 1.",ub:1},jg:{c:"Number",d:"The radius of the sound range. In Pixels.",ub:20}},label:R("Sound Source"),Y7a:function(a){return a.radius||0},borderColor:"rgba(10, 10, 223, 0.5)",Fma:"rgba(200, 200, 200, 1)"}),f:function(a,b,c,d){this.parent(a,
b,c,d);if(d.sound)this.Ab=new ig.da(d.sound,d.volume||1);this.b.type=ig.la.NONE;this.b.v(16,16,0);this.jg=d.radius||0}})});ig.G=j;
ig.I("impact.feature.base.plug-in").J("impact.feature.base.action-steps","impact.feature.base.event-steps","impact.feature.base.entities.marker","impact.feature.base.entities.object-layer-view","impact.feature.base.entities.touch-trigger","impact.feature.base.entities.sound-entities").H(function(){if(window.Yc){wm.fo(/ACTION/,"green");wm.fo(/ANIM/,"green");wm.fo(/WAIT/,"gray");wm.fo(/VAR/,"violet");wm.fo(/LABEL/,"extremeRed")}window.Yc&&wm.pj.push("impact.feature.base.editors.base-editor")});
ig.G=j;
ig.I("impact.feature.storage.storage").J("impact.base.game").H(function(){ig.Uia={ENABLED:1,DISABLED:0};ig.xS=ig.ra.extend({src:s,data:s,f:function(a){if(ig.Cc.Oka(a)){this.src=a;this.data=ig.Cc.H7a(this.src)}else{this.data=a;this.src=ig.Cc.oHa(this.data)}},getData:M("data"),Vpb:M("src"),kdb:function(a){ig.merge(this.data,a);this.src=ig.Cc.oHa(this.data)}});ig.Q0a=ig.sf.extend({fdb:j,Wea:w,Bf:0,Ke:[],tq:s,jP:0,$m:[],ssb:{},mC:{},cfa:"default.save",cJ:s,a9:w,Xla:s,XLa:s,f:function(){this.parent("Storage")},Whb:L("Xla"),
dg:function(a){a&&this.$m.push(a)},gPa:function(a,b,c){this.mC={};this.aEa(this.mC,a,b&&b.oba());(!this.Xla||this.Xla(c))&&this.Dhb(this.mC)},OIa:function(a){return this.lab(this.jP,a)},lab:function(a,b){var c;if(a==-1)c=ig.copy(this.tq.getData());else{if(!this.Ke[a])return"";c=ig.copy(this.Ke[a].getData())}b&&ig.merge(c,b);return this.rka(JSON.stringify(c))},gsb:function(a){this.Ke.push(new ig.xS(a));this.J_()},H7a:function(a){return JSON.parse(this.oka(a))},oHa:function(a){return this.rka(JSON.stringify(a))},
Dhb:function(a){this.tq=new ig.xS(a);this.J_()},save:function(a){var a=a||0,b={};this.aEa(b,s,ig.copy(this.mC.position));var c=new ig.xS(b);this.Ke[a]&&this.Ke.splice(a,1);this.Ke.unshift(c);this.jP=0;this.J_();ig.debug("Saved Game: %O",b)},J_:function(){for(var a={},b=0;b<this.$m.length;b++)this.$m[b].zsa&&this.$m[b].zsa(a);for(var c={},d=[],b=0;b<this.Ke.length;++b)d[b]=this.Ke[b].src;c.slots=d;c.autoSlot=this.tq&&this.tq.src;c.globals=this.rka(JSON.stringify(a));c.lastSlot=this.jP;localStorage.setItem(this.cfa,
JSON.stringify(c));return c},aEa:function(a,b,c){a.map=b||ig.t.E3;a.vars=ig.pa.oba();a.position=c?c:this.F2a(ig.t.wb);for(b=0;b<this.$m.length;b++)this.$m[b].Rq&&this.$m[b].Rq(a)},fua:function(){var a=this.J_();ig.debug("Saved Globals: %O",a)},load:function(a,b){if(this.ZLa()){var a=a||0,b=b==g?j:b,c;if(typeof a=="number"){c=this.l2(a);this.jP=a}else c=a;if((c=c.getData())&&c.vars){this.cJ=ig.copy(c);this.mC=ig.copy(c);this.Wea=w;var d=ig.jz.OT(c.position);b&&ig.t.Zk(c.map,d,"LOAD");ig.debug("Load Game: %O",
c)}else ig.debug("Loading Game failed, Slot "+a+" does not have a save file")}},cU:function(a){if(!(a==g||a<0||a>=this.Ke.length||!this.Ke[a])){this.Ke.splice(a,1);this.jP=Math.min(a,this.Ke.length-1);this.J_()}},Tcb:function(){this.Wea=j;this.cJ=ig.copy(this.mC);var a=ig.jz.OT(this.mC.position);ig.t.Zk(this.mC.map,a)},ZLa:function(a){if(this.a9)return j;a&&this.Iib(a);var b=localStorage.getItem(this.cfa);if(b){this.Oka(b)&&(b=this.oka(b));b=JSON.parse(b);this.a9=j;this.jP=b.lastSlot||0;for(var c=
b.slots,a=0;a<c.length;++a)this.Ke[a]=new ig.xS(c[a]);if(b.autoSlot)this.tq=new ig.xS(b.autoSlot);b=b.globals;if(this.Oka(b)){b=this.oka(b);b=JSON.parse(b)}for(a=0;a<this.$m.length;a++)this.$m[a].ysa&&this.$m[a].ysa(b)}return j},Oka:function(a){return typeof a=="string"&&a.indexOf("[-!_0_!-]")==0},rka:function(a,b){var c;if(b=75*b+"0")b=":_."+b;c=window.CryptoJS.AES.encrypt(a,b).toString();return"[-!_0_!-]"+c},oka:function(a,b){if(b=75*b+"0")b=":_."+b;var c=window.CryptoJS,a=a.substr(9,a.length);
return c.AES.decrypt(a,b).toString(c.enc.Utf8)},F2a:function(a){if(!a)return s;var b=new ig.jz;b.HPa(s,ig.copy(a.b.i),a.face,a.b.aa,a.b.jc,a.b.size);return b.oba()},at:function(a){if(this.cJ){ig.pa.thb(this.cJ.vars);ig.pa.qNa(a.name,j);for(var b=0;b<this.$m.length;b++)this.$m[b].Qq&&this.$m[b].Qq(this.cJ)}if(a.attributes)this.fdb=ig.Uia[a.attributes.saveMode]==ig.Uia.ENABLED?j:w},UF:-100,my:function(){if(this.cJ){for(var a=0;a<this.$m.length;a++)this.$m[a].Asa&&this.$m[a].Asa(this.cJ);this.cJ=s}else{this.gPa(ig.t.E3,
ig.t.ewa,this.XLa);if(ig.t.De&&this.mC.position)this.mC.position.marker=ig.t.De}},Csa:function(a,b,c){this.XLa=c},Iib:function(a){this.cfa=a||"default.save"},l2:function(a){return a==-1?this.tq:this.Ke[a]},dbb:function(a){return this.Ke[a||0]?j:w},rqb:function(){return this.Ke.length>0},qqb:function(){return localStorage.getItem(this.cfa)?j:w}});ig.wf(function(){return ig.Cc=new ig.Q0a})});ig.G=j;
ig.I("impact.feature.bgm.bgm").J("impact.base.event","impact.base.game","impact.base.sound","impact.feature.storage.storage").H(function(){ig.Yy={IMMEDIATELY:{fadeOut:0,fadeIn:0},FAST_OUT:{fadeOut:0.5,fadeIn:0},MEDIUM_OUT:{fadeOut:1,fadeIn:0},SLOW_OUT:{fadeOut:2,fadeIn:0},FAST:{fadeOut:0.5,fadeIn:0.5},MEDIUM:{fadeOut:1,fadeIn:1},SLOW:{fadeOut:2,fadeIn:2}};ig.zY={};ig.h7={};ig.gha=ig.ra.extend({name:s,Bb:s,f:function(a){this.name=a;if(a=ig.zY[a])this.Bb=new ig.qBa(a.path,a.pf,a.Wx,a.Ci,a.volume)},
get:M("Bb"),Qa:function(){this.Bb&&this.Bb.zc()},copy:function(){return new ig.gha(this.name)}});ig.yxa=ig.ra.extend({name:s,qb:s,f:function(a){var c={},d=ig.h7[a],e;for(e in d)c[e]={Bb:ig.Zf.nP(d[e].Bb),volume:d[e].volume};this.name=a;this.qb=c},get:function(a){return this.qb[a]},Qa:function(){for(var a in this.qb)this.qb[a].Bb.Qa()},copy:function(){return new ig.yxa(this.name)}});var a=[];ig.PL=ig.sf.extend({Tz:s,wx:["field"],nn:[],oy:w,J7a:"SLOW_OUT",Qca:s,iaa:0,Rsa:w,f:function(){this.parent("BGM");
ig.Cc.dg(this)},nP:function(a){if(ig.Cp)return new ig.gha(a)},Yqa:function(a){return new ig.yxa(a)},rw:function(a,c,d){this.Tz&&this.Tz.Qa();this.Tz=a.copy();!d&&!this.oy&&this.n5(c)},XKa:function(){return!this.oy},xpb:function(){return this.wx.length},Zfb:function(a,c){this.wx.push(a);this.oy||this.n5(c)},bOa:function(a){this.wx.pop();this.oy||this.n5(a)},n5:function(a){for(var c=this.wx.length;this.nn.length>c;)this.pop(a);var d=this.GCa();if(d){this.nn.length<c&&this.push(d.Bb,d.volume,a);ig.Cp.mLa(d.Bb.Bb,
d.volume)||this.play(d.Bb,d.volume,a)}this.oy=w},play:function(a,c,d){this.oy=j;d=this.IS(d);ig.Cp.play(a.get(),d.fadeOut,d.fadeIn,c);(d=this.nn.pop())&&d.Bb.Qa();this.nn.push({Bb:a.copy(),volume:c})},push:function(a,c,d){this.oy=j;d=this.IS(d);ig.Cp.push(a.get(),d.fadeOut,d.fadeIn,c);this.nn.push({Bb:a.copy(),volume:c})},pop:function(a){a=this.IS(a);ig.Cp.pop(a.fadeOut,a.fadeIn);(a=this.nn.pop())&&a.Bb.Qa();a=this.GCa();if(this.nn.length==this.wx.length&&a&&ig.Cp.mLa(a.Bb.get(),a.volume))this.oy=
w},clear:function(a){for(;this.wx.length>1;)this.bOa(a);for(this.oy=w;this.nn.length>0;)this.pop(a);this.Tz&&this.Tz.Qa();this.Tz=s},N2:function(a,c,d){d=this.IS(d);ig.Cp.N2(a.get(),d.fadeIn,d.fadeOut,c)},pause:function(a){ig.Cp.pause(this.IS(a).fadeOut);this.Rsa=j},VK:function(a){ig.Cp.VK(this.IS(a).fadeIn)},Rq:function(a){for(var c=[],d=0;d<this.nn.length;++d)c.push({track:this.nn[d].Bb.name,volume:this.nn[d].volume});a.bgm={defaultTrackSet:this.Tz?this.Tz.name:s,defaultTrackTypeStack:this.wx,trackStack:c,
overloadDefault:this.oy,paused:ig.Cp.paused}},Qq:function(b){b=b.bgm;this.clear();if(b){this.Tz=this.Yqa(b.defaultTrackSet);for(var b=b.trackStack,c=0;c<b.length;++c)a.push(this.nP(b[c].track))}},Asa:function(b){if(b=b.bgm){this.wx=b.defaultTrackTypeStack;for(var c=b.trackStack,d=0;d<c.length;++d){var e=a[d];this.push(e,c[d].volume,"IMMEDIATELY");e.Qa()}this.oy=b.overloadDefault;a.length=0;b.paused&&this.pause("IMMEDIATELY")}},TF:100,at:function(a){if(a.attributes&&a.attributes.bgm){this.Qca&&this.Qca.Qa();
this.Qca=this.Yqa(a.attributes.bgm);this.rw(this.Qca,s,j)}},UF:100,my:function(){this.iaa=2;this.Rsa=w},nj:function(){this.clear("MEDIUM")},$s:function(){if(this.iaa){this.iaa--;this.iaa==0&&!this.oy&&!this.Rsa&&this.n5()}},IS:function(a){return ig.Yy[a]||ig.Yy[this.J7a]},GCa:function(){var a=this.wx[this.wx.length-1];return this.Tz&&this.Tz.get(a)}});ig.wf(function(){return ig.Zf=new ig.PL});ig.PL.Fva=s;ig.PL.Qfb=function(){ig.PL.Fva=new ig.gha("title")}});ig.G=j;
ig.I("impact.feature.bgm.bgm-steps").J("impact.base.action","impact.base.event","impact.feature.bgm.bgm").H(function(){ig.ma.PLAY_BGM=ig.na.extend({Bb:s,volume:s,mode:s,s:new ig.u({attributes:{Zf:{c:"String",d:"Background Music to play",Y:ig.zY},volume:{c:"Number",d:"Volume of music (0 = silent, 1 = max volume)"},mode:{c:"String",d:"Mode of transition",Y:ig.Yy}}}),f:function(a){this.Bb=ig.Zf.nP(a.bgm);this.volume=a.volume||1;this.mode=a.mode||0},Qa:function(){this.Bb.Qa()},xa:function(){ig.Zf.play(this.Bb,
this.volume,this.mode);return j}});ig.ma.PAUSE_BGM=ig.na.extend({mode:s,s:new ig.u({attributes:{mode:{c:"String",d:"Mode of transition",Y:ig.Yy}}}),f:function(a){this.mode=a.mode||0},xa:function(){ig.Zf.pause(this.mode);return j}});ig.ma.RESUME_BGM=ig.na.extend({mode:s,s:new ig.u({attributes:{mode:{c:"String",d:"Mode of transition",Y:ig.Yy}}}),f:function(a){this.mode=a.mode||0},xa:function(){ig.Zf.VK(this.mode);return j}});ig.ma.PUSH_BGM=ig.na.extend({Bb:s,volume:s,mode:s,s:new ig.u({attributes:{Zf:{c:"String",
d:"Background Music to play",Y:ig.zY},volume:{c:"Number",d:"Volume of music (0 = silent, 1 = max volume)"},mode:{c:"String",d:"Mode of transition",Y:ig.Yy}}}),f:function(a){this.Bb=ig.Zf.nP(a.bgm);this.volume=a.volume||1;this.mode=a.mode||0},Qa:function(){this.Bb.Qa()},xa:function(){ig.Zf.push(this.Bb,this.volume,this.mode);return j}});ig.ma.POP_BGM=ig.na.extend({s:new ig.u({attributes:{mode:{c:"String",d:"Mode of transition",Y:ig.Yy}}}),f:function(a){this.mode=a.mode||0},xa:function(){ig.Zf.pop(this.mode);
return j}});ig.ma.PLAY_IN_BETWEEN_BGM=ig.na.extend({Bb:s,volume:s,mode:s,s:new ig.u({attributes:{Zf:{c:"String",d:"Background Music to play only once",Y:ig.zY},volume:{c:"Number",d:"Volume of music (0 = silent, 1 = max volume)"},mode:{c:"String",d:"Mode of transition",Y:ig.Yy}}}),f:function(a){this.Bb=ig.Zf.nP(a.bgm);this.volume=a.volume||1;this.mode=a.mode||0},Qa:function(){this.Bb.Qa()},xa:function(){ig.Zf.N2(this.Bb,this.volume,this.mode);return j}});ig.ma.SET_DEFAULT_BGM=ig.na.extend({uwa:s,mode:s,
s:new ig.u({attributes:{Cob:{c:"String",d:"Default BGM",Y:ig.h7},mode:{c:"String",d:"Mode of transition",Y:ig.Yy}}}),f:function(a){this.uwa=ig.Zf.Yqa(a.defaultBgm);this.mode=a.mode||0},Qa:function(){this.uwa.Qa()},xa:function(){ig.Zf.rw(this.uwa,this.mode);return j}});ig.ma.RESUME_DEFAULT_BGM=ig.na.extend({s:new ig.u({attributes:{mode:{c:"String",d:"Mode of transition",Y:ig.Yy}}}),f:function(a){this.mode=a.mode||0},xa:function(){ig.Zf.n5(this.mode);return j}})});ig.G=j;
ig.I("impact.feature.bgm.plug-in").J("impact.feature.bgm.bgm","impact.feature.bgm.bgm-steps").H(function(){window.Yc&&wm.Vs&&(wm.Vs.bgm={c:"String",Y:ig.h7,d:"Music set to be played on this map.",Oi:j})});ig.G=j;
ig.I("impact.feature.event-sheet.event-sheet").J("impact.base.event").H(function(){ig.wVa=ig.CB.extend({ui:"EventSheet",Vg:{},Nn:function(){for(var a in this.Vg)this.Vg[a].Qa()},JC:function(){return ig.root+this.path.dr("data/events/",".json")+ig.kl()},onload:function(a){for(var b in a.events){var c=a.events[b];this.Vg[b]=new ig.Ra({name:b,input:c.input,steps:c.steps})}},g$a:function(a){return this.Vg[a]||s}})});ig.G=j;
ig.I("impact.feature.event-sheet.event-sheet-steps").J("impact.base.action","impact.base.event").H(function(){ig.ma.CALL_EVENT_FROM_SHEET=ig.na.extend({noa:s,wHa:s,moa:s,s:new ig.u({attributes:{Wt:{c:"EventSheetCall",d:"The event to be called",sd:j}},width:600}),f:function(a){assertContent(a,"eventCall");a=a.eventCall;this.noa=new ig.wVa(a.path);this.wHa=a.name;this.moa=a.input},Qa:function(){this.noa.zc()},MIa:function(){return this.noa.g$a(this.wHa)},Epb:M("moa")})});ig.G=j;
ig.I("impact.feature.event-sheet.plug-in").J("impact.feature.event-sheet.event-sheet","impact.feature.event-sheet.event-sheet-steps").H(function(){window.Yc&&wm.pj.push("impact.feature.event-sheet.editors.event-sheet-editor")});ig.G=j;
ig.I("impact.feature.camera.camera").J("impact.base.event","impact.base.game").H(function(){function a(a,b,c){if(a.T_||b){a.T_=j;b=c-a.nz;if(Math.abs(b)<=1){a.T_=w;a.nz=c}else a.nz=a.nz+b*ig.g.Da*7}else a.nz=c}var b=Vec2.create(),c=Vec2.create(),d=Vec2.create();ig.ye=ig.sf.extend({No:[],oK:{},GM:Vec2.create(),nz:0,HM:1,IM:Vec2.create(),T_:w,pI:Vec2.create(),Tka:1,xDa:Vec2.create(),Ch:0,dp:0,x9:s,bka:w,f:function(){this.parent("Camera")},rG:100,gw:function(){if(!ig.uu&&!ig.t.paused){for(var a=this.No.length;a--;)this.No[a].update();
this.dp=this.dp+ig.g.Da;var h;if(this.dp<this.Ch){h=this.dp/this.Ch;h=this.x9.get(h)}this.HM=this.NCa();if(this.dp<this.Ch)this.HM=this.Tka+(this.HM-this.Tka)*h;ig.g.uw(this.HM);a=this.Fka(b,c,d);if(this.dp>=this.Ch){Vec2.assign(this.GM,a);Vec2.assign(this.IM,d)}else{Vec2.Zm(this.pI,a,h,this.GM);Vec2.Zm(this.pI,c,h,c);Vec2.Zm(this.xDa,d,h,this.IM);this.bka&&this.O3a(this.GM,this.IM,j)}ig.t.screen.x=this.GM.x-ig.g.width/2;ig.t.screen.y=this.GM.y-ig.g.height/2;ig.t.a6.x=c.x;ig.t.a6.y=c.y;ig.g.uQa(this.IM.x-
ig.t.screen.x,this.IM.y-ig.t.screen.y)}},TF:100,at:function(a){this.bka=a.attributes&&a.attributes.cameraInBounds;for(var b in this.oK)this.Uq(this.oK[b],0);this.oK={}},nw:function(a,b,c,d){if(d){this.oK[d]&&this.Uq(this.oK[d],"IMMEDIATELY");this.oK[d]=a}this.cla();this.No.push(a);a.target.start();this.Ch=this.Aka(b);this.x9=c||KEY_SPLINES.EASE_IN_OUT;this.dp=0;this.Ch||this.UBa()},Rgb:function(a,b,c){var d=this.oK[a];if(d){delete this.oK[a];this.Uq(d,b,c)}},Uq:function(a,b,c){a=this.No.indexOf(a);
a!=-1&&(a==this.No.length-1?this.gea(b,c):this.No.splice(a,1))},gea:function(a,b){this.cla();this.No.pop();this.Ch=this.Aka(a);this.x9=b||KEY_SPLINES.EASE_IN_OUT;this.dp=0;this.Ch||this.UBa()},Xgb:function(a,b,c,d){a=this.No.indexOf(a);if(a==-1)return this.nw(b,c,d);this.No.splice(a,1,b);this.BKa(b)&&this.ZOa(c,d)},Ypb:function(){return this.No.length},Yqb:function(){return this.dp>=this.Ch},ZOa:function(a,b){this.cla();this.Ch=this.Aka(a);this.x9=b||KEY_SPLINES.EASE_IN_OUT;this.dp=0},BKa:function(a){return this.No[this.No.length-
1]==a},GO:function(){return this.dp>=this.Ch?0:this.Ch-this.dp},O3a:function(a,b,c){var d=ig.g.width,m=ig.g.height,n=a.x.Vb(ig.g.width/2,ig.t.size.x-ig.g.width/2),o=a.y.Vb(ig.g.height/2,ig.t.size.y-ig.g.height/2);if(c){var c=(b.x-(n-d/2))/d,t=(b.y-(o-m/2))/m,d=d-d/ig.g.zoom,m=m-m/ig.g.zoom,r=0,p=0;if(n>a.x)var q=n-a.x-d*(0.5-c),r=-Math.min(d*c,q);else if(n<a.x){q=a.x-n-d*(c-0.5);r=Math.min(d*(1-c),q)}if(o>a.y){q=o-a.y-m*(0.5-t);p=-Math.min(m*t,q)}else if(o<a.y){q=a.y-o-m*(t-0.5);p=Math.min(m*(1-t),
q)}a.y=o+p;a.x=n+r;b.x=b.x+r;b.y=b.y+p}else{a.x=n;a.y=o}},UBa:function(){this.HM=this.NCa();ig.g.uw(this.HM);var a=this.Fka(b,s,d);Vec2.assign(this.GM,a);Vec2.assign(this.IM,d)},cla:function(){this.Tka=this.HM;Vec2.assign(this.pI,this.GM);Vec2.assign(this.xDa,this.IM);this.Inb=j},NCa:function(){return this.No.length>0?this.No[this.No.length-1].nJa():1},Fka:function(a,b,c){var d=w;if(this.No.length>0){d=this.No[this.No.length-1];d.target.fpa(a);if(c){c.x=a.x+Math.round(d.dI.x);c.y=a.y+Math.round(d.dI.y)}a.x=
a.x+Math.round(d.cI.x);a.y=a.y+Math.round(d.cI.y);d=d.zLa||w}if(b){b.x=a.x;b.y=a.y}if(this.bka){b=d?1:ig.g.zoom;a.x=a.x.Vb(ig.g.width/2/b,ig.t.size.x-ig.g.width/2/b);a.y=a.y.Vb(ig.g.height/2/b,ig.t.size.y-ig.g.height/2/b)}!d&&c&&Vec2.assign(c,a);return a},Aka:function(a){if(typeof a=="string"){var h=Vec2.length(Vec2.sub(this.Fka(b,c,d),this.pI))+32,h=Math.sqrt(h);ig.ye.hv[a]?h=h*ig.ye.hv[a]:f(Error("Unknown Camera Speed Type: "+a));return h}return a||0}});ig.wf(function(){return ig.Vd=new ig.ye});
ig.ye.hv={SLOWEST:0.3,SLOWER:0.2,SLOW:0.15,NORMAL:0.1,FAST:0.05,FASTER:0.0375,FASTEST:0.025,IMMEDIATELY:1E-6};ig.ye.Cia=ig.ra.extend({i:s,f:L("i"),start:F(),fpa:function(a){Vec2.assign(a,this.i)}});ig.ye.bS=ig.ra.extend({P:s,T_:w,nz:0,f:L("P"),start:function(){this.nz=this.P.b.i.z},fpa:function(b){a(this,this.P&&(this.P.Zg||this.P.b.Lc&&this.P.b.Lc.d7),this.P.b.i.z+(this.P.qN||0));b.x=Math.round(this.P.b.i.x)+this.P.b.size.x/2;b.y=Math.round(this.P.b.i.y-this.nz)+this.P.b.size.y/2-Constants.KR}});
ig.ye.lZ=ig.ra.extend({entities:s,T_:w,nz:0,wLa:w,f:function(a,b){this.entities=a;this.wLa=b||w},start:function(){this.nz=this.ICa()},ICa:function(){return this.entities[0].b.i.z+(this.entities[0].qN||0)},fpa:function(b){for(var c=this.entities,d=c.length,l=w,m=0,n=0;d--;)var o=c[d],t=o.b,l=l||o&&(o.Zg||o.b.Lc&&o.b.Lc.d7),m=m+(t.i.x+t.size.x/2),n=n+(t.i.y+t.size.y/2);a(this,l,this.ICa());m=m/c.length;n=n/c.length;if(this.wLa){d=c[0].b;c=d.i.x+d.size.x/2;d=d.i.y+d.size.y/2;m<c-200?m=c-200:m>c+200?
m=c+200:n<d-100?n=d-100:n>d+100&&(n=d+100)}n=n-this.nz;b.x=Math.round(m);b.y=Math.round(n)-Constants.KR}});ig.ye.$n=ig.ra.extend({target:s,offset:s,GR:s,zLa:w,f9:0,C_:0,cI:Vec2.create(),dI:Vec2.create(),Rka:Vec2.create(),Uka:Vec2.create(),Wga:s,asa:1,QRa:1,Nqa:s,f:function(a,b,c){this.target=a;this.offset=Vec2.pc(b,c);this.GR=Vec2.pc(b,c);this.Wga=new ig.Ct(j);Vec2.assign(this.cI,this.offset);Vec2.assign(this.Rka,this.offset);Vec2.assign(this.dI,this.GR);Vec2.assign(this.Uka,this.GR)},zD:function(a,
b,c,d,m){this.offset.x=a;this.offset.y=b;this.GR.x=d===g?a:d;this.GR.y=m===g?b:m;this.f9=c||0;this.C_=0;if(this.f9){Vec2.assign(this.Rka,this.cI);Vec2.assign(this.Uka,this.dI)}},uQa:F(),uw:function(a,b,c){this.asa=this.nJa();this.QRa=a;this.Nqa=c||s;this.Wga.set(b,ig.qk.hq)},update:function(){this.Wga.ga();this.C_=this.C_+ig.g.Da;if(ig.t.sJ)if(this.C_>=this.f9){Vec2.ck(this.cI,23);Vec2.add(this.cI,this.offset);Vec2.ck(this.cI,1/24);Vec2.ck(this.dI,23);Vec2.add(this.dI,this.GR);Vec2.ck(this.dI,1/24)}else{var a=
Math.min(1,this.C_/this.f9),a=KEY_SPLINES.EASE_IN_OUT.get(a);Vec2.Zm(this.Rka,this.offset,a,this.cI);Vec2.Zm(this.Uka,this.GR,a,this.dI)}},nJa:function(){var a=this.Wga.get();this.Nqa&&a<1&&(a=this.Nqa.get(a));return this.asa+(this.QRa-this.asa)*a},eNa:function(){ig.Vd.Uq(this,"FAST")},Zr:function(){ig.Vd.Uq(this,"FAST")}})});ig.G=j;
ig.I("impact.feature.camera.camera-steps").J("impact.base.action","impact.base.event","impact.feature.camera.camera").H(function(){ig.ma.SET_CAMERA_TARGET=ig.na.extend({P:s,offsetX:0,offsetY:0,speed:0,fh:KEY_SPLINES.EASE_IN_OUT,kc:w,Pg:0,zoom:1,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to focus camera on"},offsetX:{c:"Number",d:"x offset to target entity"},offsetY:{c:"Number",d:"y offset to target entity"},speed:{c:"String",Y:ig.ye.hv,d:"Speed of camera movement"},fh:{c:"String",Y:KEY_SPLINES,
d:"Transition type"},kc:{c:"Boolean",d:"Wait until camera movement is done"},Pg:{c:"Number",d:"The amount of seconds to skip waiting before target is reached."},zoom:{c:"Number",d:"Zoom Value. 1=default, 2=twice pixel size",ub:1},name:{c:"String",d:"If set, camera target will remain even after event is done and can only be removed explictly via its name.",U:j}}}),f:function(a){assertContent(a,"entity");this.P=a.entity;this.offsetX=a.offsetX||0;this.offsetY=a.offsetY||0;this.speed=a.speed||0;this.kc=
a.wait||w;this.Pg=a.waitSkip||0;this.fh=typeof a.transition=="string"?KEY_SPLINES[a.transition]:a.transition;this.zoom=a.zoom||1;this.name=a.name||s},start:function(a,b){var c=ig.Ra.pd(this.P,b),c=new ig.ye.$n(new ig.ye.bS(c),this.offsetX,this.offsetY);c.uw(this.zoom);ig.Vd.nw(c,this.speed,this.fh,this.name);this.name||b.a0(c)},xa:function(){return this.kc?ig.Vd.GO()<=this.Pg:j}});ig.ma.SET_CAMERA_POS=ig.na.extend({i:s,speed:0,fh:KEY_SPLINES.EASE_IN_OUT,kc:w,Pg:0,zoom:1,s:new ig.u({attributes:{i:{c:"Vec2",
d:"Position to focus camera on",rv:j,Ht:j},speed:{c:"String",Y:ig.ye.hv,d:"Speed of camera movement"},fh:{c:"String",Y:KEY_SPLINES,d:"Transition type"},kc:{c:"Boolean",d:"Wait until camera movement is done"},Pg:{c:"Number",d:"The amount of seconds to skip waiting before target is reached."},zoom:{c:"Number",d:"Zoom Value. 1=default, 2=twice pixel size",ub:1},name:{c:"String",d:"If set, camera target will remain even after event is done and can only be removed explictly via its name.",U:j}}}),f:function(a){assertContent(a,
"pos");this.i=a.pos;this.speed=a.speed||0;this.kc=a.wait||w;this.Pg=a.waitSkip||0;this.fh=typeof a.transition=="string"?KEY_SPLINES[a.transition]:a.transition;this.zoom=a.zoom||1;this.name=a.name||s},start:function(a,b){var c=new ig.ye.$n(new ig.ye.Cia(ig.Ra.iA(this.i,Vec2.create())),0,0);c.uw(this.zoom);ig.Vd.nw(c,this.speed,this.fh,this.name);this.name||b.a0(c)},xa:function(){return this.kc?ig.Vd.GO()<=this.Pg:j}});Vec3.create();ig.ma.SET_CAMERA_BETWEEN=ig.na.extend({coa:s,doa:s,speed:0,fh:KEY_SPLINES.EASE_IN_OUT,
kc:w,Pg:0,zoom:1,s:new ig.u({attributes:{coa:{c:"Entity",d:"First entity"},doa:{c:"Entity",d:"Second entity"},speed:{c:"String",Y:ig.ye.hv,d:"Speed of camera movement"},fh:{c:"String",Y:KEY_SPLINES,d:"Transition type"},kc:{c:"Boolean",d:"Wait until camera movement is done"},Pg:{c:"Number",d:"The amount of seconds to skip waiting before target is reached."},zoom:{c:"Number",d:"Zoom Value. 1=default, 2=twice pixel size",ub:1},name:{c:"String",d:"If set, camera target will remain even after event is done and can only be removed explictly via its name.",
U:j}}}),f:function(a){this.coa=a.entity1;this.doa=a.entity2;this.speed=a.speed||0;this.kc=a.wait||w;this.Pg=a.waitSkip||0;this.fh=typeof a.transition=="string"?KEY_SPLINES[a.transition]:a.transition;this.zoom=a.zoom||1;this.name=a.name||s},start:function(a,b){var c=ig.Ra.pd(this.coa,b),d=ig.Ra.pd(this.doa,b),c=new ig.ye.$n(new ig.ye.lZ([c,d]),0,0);c.uw(this.zoom);ig.Vd.nw(c,this.speed,this.fh,this.name);this.name||b.a0(c)},xa:function(){return this.kc?ig.Vd.GO()<=this.Pg:j}});ig.ma.RESET_CAMERA=ig.na.extend({speed:0,
fh:KEY_SPLINES.EASE_IN_OUT,kc:w,Pg:0,name:s,s:new ig.u({attributes:{speed:{c:"String",Y:ig.ye.hv,d:"Speed of camera movement"},fh:{c:"String",Y:KEY_SPLINES,d:"Transition type"},kc:{c:"Boolean",d:"Wait until camera movement is done"},Pg:{c:"Number",d:"The amount of seconds to skip waiting before target is reached."},name:{c:"String",d:"If defined: only remove camera target of given name",U:j}}}),f:function(a){this.speed=a.speed||0;this.fh=typeof a.transition=="string"?KEY_SPLINES[a.transition]:a.transition;
this.kc=a.wait||w;this.Pg=a.waitSkip||0;this.name=a.name||s},start:function(a,b){if(this.name)ig.Vd.Rgb(this.name,this.speed,this.fh);else for(var c=b.iO,d=c.length;d--;)if(c[d]instanceof ig.ye.$n){ig.Vd.Uq(c[d],this.speed,this.fh);c.splice(d,1)}},xa:function(){return this.kc?ig.Vd.GO()<=this.Pg:j}});ig.ma.UNDO_CAMERA=ig.na.extend({speed:0,fh:KEY_SPLINES.EASE_IN_OUT,kc:w,Pg:0,s:new ig.u({attributes:{speed:{c:"String",Y:ig.ye.hv,d:"Speed of camera movement"},fh:{c:"String",Y:KEY_SPLINES,d:"Transition type"},
kc:{c:"Boolean",d:"Wait until camera movement is done"},Pg:{c:"Number",d:"The amount of seconds to skip waiting before target is reached."}}}),f:function(a){this.speed=a.speed||0;this.fh=typeof a.transition=="string"?KEY_SPLINES[a.transition]:a.transition;this.kc=a.wait||w;this.Pg=a.waitSkip||0},start:function(a,b){for(var c=b.iO,d=c.length;d--;)if(c[d]instanceof ig.ye.$n){ig.Vd.Uq(c[d],this.speed,this.fh);c.splice(d,1);break}},xa:function(){return this.kc?ig.Vd.GO()<=this.Pg:j}});ig.ma.SET_CAMERA_ZOOM=
ig.na.extend({duration:0,fh:KEY_SPLINES.EASE_IN_OUT,kc:w,Pg:0,s:new ig.u({attributes:{zoom:{c:"Number",d:"Zoom Value. 1=default, 2=twice pixel size",ub:1},duration:{c:"Number",d:"Duration of zoom transition"},fh:{c:"String",Y:KEY_SPLINES,d:"Transition type"}}}),f:function(a){this.zoom=a.zoom||1;this.duration=a.duration||0;this.fh=typeof a.transition=="string"?KEY_SPLINES[a.transition]:a.transition},start:function(a,b){for(var c=b.iO,d=c.length;d--;)if(c[d]instanceof ig.ye.$n){c[d].uw(this.zoom,this.duration,
this.fh);break}},xa:R(j)});ig.Ha.FOCUS_CAMERA=ig.na.extend({offsetX:0,offsetY:0,speed:0,fh:KEY_SPLINES.EASE_IN_OUT,kc:w,Pg:0,dma:w,zoom:1,s:new ig.u({attributes:{offsetX:{c:"Number",d:"x offset to target entity"},offsetY:{c:"Number",d:"y offset to target entity"},speed:{c:"String",Y:ig.ye.hv,d:"Speed of camera movement"},fh:{c:"String",Y:KEY_SPLINES,d:"Transition type"},kc:{c:"Boolean",d:"Wait until camera movement is done"},Pg:{c:"Number",d:"The amount of seconds to skip waiting before target is reached."},
zoom:{c:"Number",d:"Zoom Value. 1=default, 2=twice pixel size",ub:1},dma:{c:"Boolean",d:"Set camera between this entity and target"}}}),f:function(a){this.offsetX=a.offsetX||0;this.offsetY=a.offsetY||0;this.speed=a.speed||0;this.kc=a.wait||w;this.Pg=a.waitSkip||0;this.fh=typeof a.transition=="string"?KEY_SPLINES[a.transition]:a.transition;this.zoom=a.zoom||1;this.dma=a.betweenTarget||w},start:function(a){var b;b=this.dma&&a.target?new ig.ye.$n(new ig.ye.lZ([a,a.target]),this.offsetX,this.offsetY):
new ig.ye.$n(new ig.ye.bS(a),this.offsetX,this.offsetY);b.uw(this.zoom);ig.Vd.nw(b,this.speed,this.fh);a.fp(b)},xa:function(){return this.kc?ig.Vd.GO()<=this.Pg:j}});ig.Ha.RESET_CAMERA=ig.na.extend({speed:0,fh:KEY_SPLINES.EASE_IN_OUT,kc:w,Pg:0,s:new ig.u({attributes:{speed:{c:"String",Y:ig.ye.hv,d:"Speed of camera movement"},fh:{c:"String",Y:KEY_SPLINES,d:"Transition type"},kc:{c:"Boolean",d:"Wait until camera movement is done"},Pg:{c:"Number",d:"The amount of seconds to skip waiting before target is reached."}}}),
f:function(a){this.speed=a.speed||0;this.kc=a.wait||w;this.Pg=a.waitSkip||0;this.fh=typeof a.transition=="string"?KEY_SPLINES[a.transition]:a.transition},start:function(a){for(var a=a.co,b=a.length;b--;)if(a[b]instanceof ig.ye.$n){ig.Vd.Uq(a[b],this.speed,this.fh);a.splice(b,1)}},xa:function(){return this.kc?ig.Vd.GO()<=this.Pg:j}});ig.Ha.SET_CAMERA_ZOOM=ig.na.extend({duration:0,fh:KEY_SPLINES.EASE_IN_OUT,kc:w,Pg:0,s:new ig.u({attributes:{zoom:{c:"Number",d:"Zoom Value. 1=default, 2=twice pixel size",
ub:1},duration:{c:"Number",d:"Duration of zoom transition"},fh:{c:"String",Y:KEY_SPLINES,d:"Transition type"}}}),f:function(a){this.zoom=a.zoom||1;this.duration=a.duration||0;this.fh=typeof a.transition=="string"?KEY_SPLINES[a.transition]:a.transition},start:function(a){for(var a=a.co,b=a.length;b--;)if(a[b]instanceof ig.ye.$n){a[b].uw(this.zoom,this.duration,this.fh);break}},xa:R(j)})});ig.G=j;
ig.I("impact.feature.camera.plug-in").J("impact.feature.camera.camera","impact.feature.camera.camera-steps").H(function(){if(window.Yc){wm.fo(/CAMERA/,"yellow");wm.Vs&&(wm.Vs.cameraInBounds={c:"Boolean",d:"Set true to not move camera outside of map bounds"})}});ig.G=j;
ig.I("impact.feature.rumble.rumble").J("impact.base.event","impact.base.game").H(function(){ig.Lm=ig.sf.extend({nQ:[],U3:{},offset:Vec2.pc(0,0),f:function(){this.parent("Rumble")},rG:110,gw:function(){if(!ig.t.paused){var a=s;this.offset.x=0;this.offset.y=0;for(var b=this.nQ.length;b--;)if(a=this.nQ[b]){a.update();if(a.vp()){a.name&&delete this.U3[a.name];this.nQ.splice(b,1)}else{this.offset.x=this.offset.x+a.offset.x;this.offset.y=this.offset.y+a.offset.y}}ig.t.screen.x=ig.t.screen.x+this.offset.x;
ig.t.screen.y=ig.t.screen.y+this.offset.y}},nj:function(){this.nQ.length=0;this.U3={}},cT:function(a){if(this.nQ.indexOf(a)==-1){a.name&&(this.U3[a.name]=a);this.nQ.push(a)}},msb:function(a){a.name&&delete this.U3[a.name];this.nQ.xf(a)},k2:function(a){return this.U3[a]}});ig.wf(function(){return ig.XA=new ig.Lm});ig.pM={RANDOM:0,HORIZONTAL:1,VERTICAL:2};ig.Lm.vE=ig.ra.extend({type:0,name:s,Go:0,ava:0,time:0,Zj:w,offset:s,sz:s,M_:s,Q4a:s,Od:0,Ch:0,US:0,L2:w,f:function(a,b,c,d,e,h){this.type=ig.pM[a]||
ig.pM.RANDOM;this.name=h||s;this.offset=Vec2.pc(0,0);this.M_=Vec2.pc(0,0);this.sz=Vec2.pc(0,0);this.Q4a=Vec2.pc(0,0);this.set(b,c,d,e)},eG:function(){this.Ch==-1&&this.stop()},update:function(){if(this.Od<=this.Ch||this.Ch==-1){var a=0,a=this.Zj&&this.Ch!=-1?this.Go*((this.Ch-this.Od)/this.Ch):this.Go;this.Y4a(a);this.Od=this.Od+ig.g.Da}else this.stop()},Y4a:function(a){this.US=this.US+ig.g.Da;var b=Math.min(1,this.US/this.ava),b=KEY_SPLINES.EASE_IN_OUT.get(b);this.offset.x=this.zDa(this.sz.x,this.M_.x,
b);this.offset.y=this.zDa(this.sz.y,this.M_.y,b);if(this.US>=this.ava){this.US=0;Vec2.assign(this.M_,this.sz);this.type==ig.pM.RANDOM?Vec2.rotate(this.sz,Math.PI/2+Math.random()*Math.PI):Vec2.hd(this.sz);Vec2.length(this.sz,a)}},zDa:function(a,b,c){return a*c+(1-c)*b},stop:function(){this.time=this.Ch;this.offset.x=0;this.offset.y=0},vp:function(){return this.time==this.Ch},set:function(a,b,c,d){this.Go=ig.Lm.n8[a];this.ava=ig.Lm.m8[b];this.Ch=c;this.Zj=d;this.Od=0;this.offset.x=0;this.offset.y=0;
Vec2.assign(this.M_,this.offset);this.sz.x=this.sz.y=0;this.type==ig.pM.HORIZONTAL?this.sz.x=this.Go:this.sz.y=this.Go;this.US=0}});ig.Lm.n8={WEAKEST:1,WEAKER:2,WEAK:3,MEDIUM:4,STRONG:5,STRONGER:7,STRONGEST:10,MEGA:15};ig.Lm.m8={SLOWEST:2,SLOWER:1,SLOW:0.5,NORMAL:0.2,FAST:0.075,FASTER:0.04,FASTEST:0.02}});ig.G=j;
ig.I("impact.base.entity-pool").J("impact.base.game").H(function(){ig.ut={RW:{},ndb:{m6:function(a,b,c,d){return ig.ut.l$a(this.constructor.A0,a,b,c,d)},xf:function(){ig.ut.agb(this)}},Xz:function(a){a.pKa(this.ndb)},l$a:function(a,b,c,d,e){a=this.RW[a];if(!a||!a.length)return s;a=a.pop();a.reset(b,c,d,e);return a},agb:function(a){this.RW[a.A0]?this.RW[a.A0].push(a):this.RW[a.A0]=[a]},Kob:function(a){delete this.RW[a]},W7a:function(){this.RW={}}};ig.Iya.pKa({Xqa:function(a){ig.ut.W7a();this.parent(a)}})});
ig.G=j;
ig.I("impact.feature.effect.entities.effect").J("impact.base.entity","impact.base.entity-pool").H(function(){var a=Vec3.create(),b=Vec2.create();ig.Nw={fv:0,zia:1,eE:2};ig.ya.Effect=ig.gd.extend({offset:{x:0,y:0,z:0},oc:0,Dd:w,duration:0,state:ig.Nw.fv,Pe:s,target:s,Up:s,AL:0,n:0,Xc:[],aL:[],align:ig.Rb.BOTTOM,Mo:{P:s,align:s,offset:Vec3.create()},Q9:s,Ob:s,YK:0,Jr:w,f:function(a,b,e,h){this.parent(a,b,e,h);this.bDa(h)},reset:function(a,b,e,h){this.parent(a,b,e,h);this.bDa(h)},bDa:function(a){this.b.type=ig.la.NONE;
this.b.v(0,0,0);this.state=ig.Nw.fv;this.Pe=a.effect;this.target=a.target||s;this.Mo.P=a.target2||s;this.Mo.align=a.target2Align||s;a.target2Offset?Vec3.assign(this.Mo.offset,a.target2Offset):Vec3.Sa(this.Mo.offset,0,0,0);this.Up=a.spriteFilter===g?s:a.spriteFilter;this.oc=a.angle||0;this.Dd=a.flipX||w;this.duration=a.duration||this.Pe.aw;a.offset?Vec3.assign(this.offset,a.offset):Vec3.Sa(this.offset,0,0,0);Vec3.add(this.b.i,this.offset);this.YK=a.rotateFace;this.Jr=a.flipLeftFace;this.Q9=a.group||
s;this.align=(typeof a.align=="string"?ig.Rb[a.align]:a.align)||0;this.n=this.AL=0;this.Xc.length=0;this.aL.length=0;this.Ob=a.callback;if(this.target){this.target.yI(this);this.target.b.hk&&this.target.b.hk.P.yI(this);if(this.target.b.time.Gj||this.target.b.time.ex)this.b.time.Gj=j;this.b.time.lh=this.target.b.time.lh}},stop:function(){this.duration=0},vp:function(){return this.state==ig.Nw.eE},BJ:function(){return this.Pe.BJ(this)},rua:L("Ob"),Zr:function(){this.stop()},eG:function(){this.stop()},
Cm:function(a,b,e,h){this.Ne&&f(Error("Spawned Particle after effects has been killed!"));h=h&&this.target?this.target.b:this.b;a=ig.t.af(a,h.i.x+(b&&b.x||0),h.i.y+(b&&b.y||0),h.i.z+(b&&b.z||0),e);a.b.time.Gj=this.b.time.Gj;a.b.time.lh=this.b.time.lh;if(a.face&&this.target.face){Vec2.assign(a.face,this.target.face);a.O6()}a.handle||f(Error("Particle has no handle!"));this.Xc.push(a.handle)},update:F(),Js:function(){var c=this.b,d=0,e=0,h=0;if(this.target&&this.align){h=this.target.je(this.align,a);
d=h.x-c.i.x+this.offset.x;e=h.y-c.i.y+this.offset.y;h=h.z-c.i.z+this.offset.z;c.i.x=c.i.x+d;c.i.y=c.i.y+e;c.i.z=c.i.z+h}if(this.target&&this.target.face&&this.YK){c=this.YK>0?ig.hpa(this.target.face.x,this.target.face.y,this.YK,b):this.target.face;this.oc=Vec2.Gs(c);if(this.Jr&&this.oc>Math.PI)this.Dd=j}for(var c=this.Pe.fcb(this),k=this.Xc.length;k--;){var l=this.Xc[k],m=l.P.b,n=l.lK&&(l.Fa<0||l.lK>=l.n/l.Fa);if(c&&(l.Fa<0||n&&l.cancelable)){l.cancelable=w;l.cancel()}if(l.Fa>=0&&l.n>=l.Fa){l.P.Tb();
this.Xc.splice(k,1)}else if(this.target){if(n){m.i.x=m.i.x+d;m.i.y=m.i.y+e;m.i.z=m.i.z+h}this.target.face&&l.LRa&&Vec2.assign(l.P.face,this.target.face)}}this.Pe.update(this);for(k=this.aL.length;k--;)(c&&this.aL[k].cancel(this)||this.aL[k].update(this))&&this.aL.splice(k,1);this.Pe.vp(this)&&(this.Xc.length==0&&this.aL.length==0)&&this.Tb()},Tb:function(a){if(this.target){this.target.Uea(this);this.target.SK&&this.target.SK(this);if(this.target.b.hk){var b=this.target.b.hk.P;b.Uea(this);b.SK&&b.SK(this)}}this.parent(a)}});
ig.ut.Xz(ig.ya.Effect);ig.sH={};ig.sH.vN=function(a,b){a.CT(function(a){return a instanceof ig.ya.Effect&&(!b||b==a.Q9)})}});ig.G=j;
ig.I("impact.feature.effect.entities.effect-particle").J("impact.base.entity","impact.base.entity-pool").H(function(){ig.uZ=ig.ra.extend({P:s,LRa:w,n:0,Fa:0,UW:0,SNa:s,HW:s,Nj:0,Dd:0,lK:0,cancelable:w,f:function(a,b){this.P=a;this.LRa=b},cancel:function(){if(this.Fa<0)this.Fa=100;this.n=this.Fa-this.HW.H$a(this.UW)},setData:function(a){var b=a.data;this.SNa=b;this.HW=b.state;this.Fa=b.DK||b.vb&&b.vb.Eh()||0;if(b.Osa)this.Fa=this.Fa+(Math.random()*2-1)*b.Osa;this.UW=b.O4&&b.O4.Eh()||0;this.n=0;this.lK=
b.lK;this.cancelable=b.cancelable;this.Dd=a.flipX||w;this.Nj=a.angle||0},Vk:function(){this.n=this.n+ig.g.ga;this.UW&&this.Fa-this.n<this.UW&&this.P.Ja("post",j)},bca:function(a){this.HW.bca(a,this.Nj,this.Dd)},lB:function(a){this.HW.lB(a,this.n,this.Fa,this.UW,this.Nj,this.Dd)},R2:function(a){this.HW.R2(a,this.Nj,this.Dd)},P6:function(a){this.HW.P6(a,this.n,this.Fa,this.UW,this.Nj,this.Dd)},ld:function(a){var b=this.SNa;a.Pta("default",b.vb);if(b.Jv){a.Pta("followUp",b.Jv);this.P.Ja("default",j,
"followUp",j)}else{a.COa("followUp");this.P.Ja("default",j,s,j)}b.O4?a.Pta("post",b.O4):a.COa("post")}});ig.ya.Particle=ig.fe.extend({handle:s,f:function(a,b,c,d){this.parent(a,b,c,d);this.nb=new ig.wj;this.handle=new ig.uZ(this);this.gDa(d)},reset:function(a,b,c,d){this.parent(a,b,c,d);this.gDa(d)},gDa:function(a){this.handle.setData(a);this.b.type=a.collision?ig.la.PASSIVE:ig.la.NONE;this.b.v(0,0,0);a.vel&&Vec2.assign(this.b.Z,a.vel);this.b.pp=a.friction||0;this.b.uk=this.b.pp;this.handle.ld(this.nb);
this.handle.R2(this.Za)},update:function(){this.handle.Vk();this.handle.P6(this.Za);this.parent()}});ig.ut.Xz(ig.ya.Particle);ig.ya.FaceParticle=ig.fe.extend({handle:s,face:{x:0,y:0},f:function(a,b,c,d){this.parent(a,b,c,d);this.nb=new ig.wj;this.handle=new ig.uZ(this,j);this.cDa(d)},reset:function(a,b,c,d){this.parent(a,b,c,d);this.face.x=this.face.y=0;this.cDa(d)},cDa:function(a){this.handle.setData(a);this.handle.lK=1;this.b.type=ig.la.NONE;if(a.size){a=a.size;this.b.v(a.x,a.y,a.z)}else this.b.v(0,
0,0);this.handle.ld(this.nb);this.handle.R2(this.Za)},update:function(){this.handle.Vk();this.handle.P6(this.Za);this.parent()}});ig.ut.Xz(ig.ya.FaceParticle);ig.ya.CopyParticle=ig.gd.extend({handle:s,color:s,nm:s,rK:w,f:function(a,b,c,d){this.parent(a,b,c,d);this.handle=new ig.uZ(this);this.ZCa(d)},reset:function(a,b,c,d){this.parent(a,b,c,d);this.ZCa(d)},ZCa:function(a){this.handle.setData(a);this.b.type=ig.la.NONE;this.b.pp=0;this.color=a.color||s;this.nm=a.colorAlpha||1;this.rK=a.noLighter||w;
for(var b=a.spriteFilter,c=a.entity,d=0,m=c.Ta.length;m--;)if(!b||b.indexOf(m)!=-1){this.dm(d+1);var n=this.Ta[d];n.assign(c.Ta[m]);n.Rua(0,0,0,0);n.i.y=n.i.y-1;n.ll.y=n.ll.y+1;a.offset&&Vec3.add(n.i,a.offset);this.handle.bca(n);d++}},Jn:F(),update:function(){this.handle.Vk();this.parent()},tj:function(){for(var a=this.Ta.length;a--;){this.rK?this.Ta[a].Nua(this.color,this.nm):this.Ta[a].Dua(this.color,this.nm);this.handle.lB(this.Ta[a])}}});ig.ut.Xz(ig.ya.CopyParticle);ig.ya.DebrisParticle=ig.fe.extend({handle:s,
cW:8,f:function(a,b,c,d){this.parent(a,b,c,d);this.nb=new ig.wj;this.handle=new ig.uZ(this);this.aDa(d)},reset:function(a,b,c,d){this.parent(a,b,c,d);this.aDa(d)},aDa:function(a){this.handle.setData(a);this.b.type=ig.la.PASSIVE;var b=a.debrisSize;b?this.b.v(b.x,b.y,b.z):this.b.v(8,8,8);this.b.se=a.zGravityFactor==g?1:a.zGravityFactor;this.b.Xh=a.zBounciness==g?0.9:a.zBounciness;this.b.mm=1;this.b.pp=1;this.b.uk=0;this.b.Ad.size=4;b=this.b;b.l(b.i.x-b.size.x/2,b.i.y-b.size.y/2,b.i.z);a.vel&&Vec2.assign(this.b.Z,
a.vel);this.b.Z.z=a.zVel||0;this.cW=a.minZVel||0;this.handle.ld(this.nb);this.handle.R2(this.Za)},update:function(){this.handle.Vk();this.handle.P6(this.Za);this.parent()},DA:function(){if(this.cW&&this.b.Z.z<this.cW)this.b.Z.z=this.cW}});ig.ut.Xz(ig.ya.DebrisParticle);var a=Vec2.create(),b=Vec2.create();ig.ya.OffsetParticle=ig.ya.Particle.extend({tL:0,jK:Vec2.pc(0,0),km:w,oh:s,inverse:w,xP:0,mX:w,dPa:w,CP:0,sG:0,Ak:0,f:function(a,b,c,d){this.parent(a,b,c,d);this.mI(d)},reset:function(a,b,c,d){this.parent(a,
b,c,d);this.mI(d)},mI:function(a){this.b.type=ig.la.NONE;this.tL=a.startFactor||0;Vec2.assign(this.jK,a.moveOffset);this.km=a.alongZ||w;this.oh=a.keySpline||KEY_SPLINES.LINEAR;this.inverse=a.inverse||w;this.xP=a.moveRotate||0;this.mX=a.rotateWithTime||w;this.dPa=a.rotateGfx||w;this.CP=a.normalMoveDist||0;this.sG=this.Ak=0;this.sk()},sk:function(){Vec2.ck(this.jK,this.sG,a);this.Ak=this.Ak+ig.g.ga;if(this.Ak>this.handle.Fa)this.Ak=this.handle.Fa;var c=this.Ak/this.handle.Fa,c=this.oh.get(c);this.inverse&&
(c=1-c);c=this.tL+c*(1-this.tL);if(this.xP){var d=(this.mX?ig.g.ga/this.handle.Fa:c-this.sG)*this.xP*Math.PI*2;this.inverse&&(d=-d);Vec2.rotate(this.jK,this.km?d:-d);if(this.dPa)this.Za.oc=this.Za.oc+d}d=0;this.CP&&(d=this.CP*(ig.g.ga/this.handle.Fa));Vec2.ck(this.jK,c,b);Vec2.sub(b,a);this.l(this.b.i.x+b.x,this.b.i.y+(this.km?d:b.y),this.b.i.z+(this.km?b.y:d));this.sG=c},update:function(){this.parent();this.sk()}});ig.ut.Xz(ig.ya.OffsetParticle);ig.ya.RhombusParticle=ig.ya.Particle.extend({tL:0,
FMa:0,jg:100,km:w,oh:s,sG:0,f:function(a,b,c,d){this.parent(a,b,c,d);this.mI(d)},reset:function(a,b,c,d){this.parent(a,b,c,d);this.mI(d)},mI:function(b){this.b.type=ig.la.NONE;this.tL=b.startFactor||0;this.FMa=b.moveFactor||0;this.jg=b.radius||0;this.km=b.alongZ||w;this.oh=b.keySpline||KEY_SPLINES.LINEAR;this.sG=this.tL;b=this.Gka(a,this.tL,this.jg);this.l(this.b.i.x+b.x,this.b.i.y+(this.km?0:b.y),this.b.i.z+(this.km?b.y:0))},sk:function(){var c=this.Gka(a,this.sG,this.jg);this.sG=this.tL+this.handle.n/
this.handle.Fa*this.FMa;var d=this.Gka(b,this.sG,this.jg),c=Vec2.sub(d,c);this.l(this.b.i.x+c.x,this.b.i.y+(this.km?0:c.y),this.b.i.z+(this.km?c.y:0))},Gka:function(a,b,c){b=(b%1+1)%1;a.x=c*(Math.abs(Math.abs(3-4*b)-2)-1);a.y=c*(2*Math.abs(1-2*b)-1);return a},update:function(){this.parent();this.sk()}});ig.ut.Xz(ig.ya.RhombusParticle);var c=Vec3.create(),d=Vec3.create();ig.Kha={FLY_ARC:[{gf:ba(),sh:function(a){return 1-(2*a-1)*(2*a-1)}}],EXPAND_DASH:[{gf:R(0),sh:function(a){return KEY_SPLINES.EASE_OUT.get(a)}},
{gf:ba(),sh:function(a){return 1-a}}]};ig.ya.HomingParticle=ig.ya.Particle.extend({inverse:w,pO:s,AW:0,sda:0,OMa:0,Ak:0,UP:s,f:function(a,b,c,d){this.parent(a,b,c,d);this.mI(d)},reset:function(a,b,c,d){this.parent(a,b,c,d);this.mI(d)},mI:function(a){this.b.type=ig.la.NONE;this.pO=ig.Kha[a.flyType]||ig.Kha.FLY_ARC;this.inverse=a.inverse||w;this.AW=a.ownerEffect;this.sda=a.normalXY;this.OMa=a.normalZ;this.UP=a.phaseDurations||[];this.Ak=0;this.sk()},sk:function(){if(this.Ak>this.handle.Fa)this.Ak=this.handle.Fa;
var b=this.Ak/this.handle.Fa;b>1&&(b=1);for(var h=0,k=1;h<this.pO.length-1&&(this.UP[h]||0)<=b;){var l=this.UP[h]||0,b=b-l,k=k-l;h++}var l=this.pO[h],b=b/(h==this.pO.length-1?k:this.UP[h]||0),h=l.gf(b),b=l.sh(b),m=this.AW.Mo,k=this.AW.b.i,l=m.P.je(m.align,c);Vec3.add(l,m.offset);h=this.inverse?Vec3.Zm(k,l,h,d):Vec3.Zm(l,k,h,d);if(b&&this.sda){k=Vec2.sub(l,k,a);this.sda<0?Vec2.kX(k):Vec2.lX(k);Vec2.length(k,Math.abs(this.sda)*b);Vec2.add(h,k)}h.z=h.z+this.OMa*b;this.l(h.x,h.y,h.z)},update:function(){this.parent();
this.Ak=this.Ak+ig.g.ga;this.sk()}});ig.ut.Xz(ig.ya.HomingParticle);ig.ya.LaserParticle=ig.gd.extend({handle:s,f:function(a,b,c,d){this.parent(a,b,c,d);this.handle=new ig.uZ(this);this.eDa(d)},reset:function(a,b,c,d){this.parent(a,b,c,d);this.eDa(d)},eDa:function(a){this.handle.setData(a);this.b.type=ig.la.NONE;this.b.v(0,0,0);this.AW=a.ownerEffect;this.wm=a.patternSheet;this.qq=a.animFrames;this.Ql=a.frameTime||0.1;this.yfa=a.shiftSpeed||0;this.O9=0;this.offset=a.offset||s;this.LO=a.guiSprites||
w;this.Ze=a.renderMode},Jn:function(){this.dm(1,this.LO);this.handle.bca(this.Ta[0])},update:function(){this.handle.Vk();this.O9=this.O9+ig.g.ga;this.parent()},tj:function(){var b=this.Ta[0],h=this.AW.Mo,k=Vec3.assign(d,this.AW.b.i),l=h.P.je(h.align,c);this.offset&&Vec3.add(k,this.offset);Vec3.add(l,h.offset);h=Vec2.Sa(a,l.x,l.y-l.z);Vec2.WX(h,k.x,k.y-k.z);var l=this.wm.JW,m=Vec2.length(h),m=Math.round(m);b.v(l,0,m,0);b.l(k.x-l/2,k.y,k.z);b.rb(l/2,m);if(this.Ze)b.Ze=this.Ze;k=Math.round(-this.yfa*
this.O9);b.Vh(this.wm.eu(this.qq[Math.floor(this.O9/this.Ql)%this.qq.length]),0,k);this.handle.lB(b);b.rotate=Vec2.Gs(h)}});ig.ut.Xz(ig.ya.LaserParticle)});ig.G=j;
ig.I("impact.feature.effect.effect-sheet").J("impact.base.loader","impact.base.animation","impact.feature.effect.entities.effect","impact.feature.effect.entities.effect-particle").H(function(){var a={vb:{c:"EffectAnim",d:"Animation of particle"},Jv:{c:"EffectAnim",d:"Animation of particle to be played before anim",U:j},O4:{c:"EffectAnim",d:"Animation of particle to be played when particle disappears",U:j}},b={Qrb:{c:"ParticleState",d:"Alpha state of particle",AEa:"Number",zEa:1,U:j},Srb:{c:"ParticleState",
d:"Alpha state of particle",AEa:"Vec2",zEa:{x:1,y:1},U:j},Rrb:{c:"ParticleState",d:"Alpha state of particle",AEa:"Number",zEa:0,U:j},lK:{c:"Number",d:"Whether particle should move with target. 0=not at all. 0.5=over half the time, 1=entirely",U:j},DK:{c:"Number",d:"Duration of particle. 0=animation length. -1=forever. Does NOT include time of post animation / transitions",U:j},Osa:{c:"Number",d:"Variance to duration. Value will be added or subtracted from duration",U:j},cancelable:{c:"Boolean",d:"If true, then particle is killed when effect is stopped.",
U:j}};ig.lg=ig.u.extend({f:function(c){var e={attributes:{}};c.Fo&&(c.Fo!="CopyParticle"&&c.Fo!="LaserParticle")&&ig.merge(e.attributes,a);ig.merge(e.attributes,c.attributes);c.Fo&&ig.merge(e.attributes,b);this.parent(e)}});ig.lg.cy=function(a,b){var c={};c.vb=a&&b.anim&&a.La[b.anim]||s;c.Jv=a&&b.followUpAnim&&a.La[b.followUpAnim]||s;c.O4=a&&b.postAnim&&a.La[b.postAnim]||s;c.state=new ig.fZa(b);c.lK=b.moveWithTarget||0;c.DK=b.particleDuration||0;c.Osa=b.particleDurVariance||0;c.cancelable=b.cancelable||
w;a&&!c.vb&&ig.log("EFFECT ERROR - No Animation of name '"+b.anim+"' available");return c};ig.lg.CF=function(a){return a.cancelable?(a.DK||a.vb.Eh())*a.lK:0};ig.lg.U$a=function(a){return a.DK||a.vb.Eh()};var c=Vec2.create();ig.fZa=ig.ra.extend({alpha:s,scale:s,rotate:s,f:function(a){if(a.pAlpha)this.alpha=this.hka(a.pAlpha);if(a.pScale)this.scale=this.hka(a.pScale);if(a.pRotate)this.rotate=this.hka(a.pRotate,2*Math.PI)},hka:function(a,b){var c={start:ig.copy(a.start),end:ig.copy(a.end),Mw:a.init,
Sy:a.start?a.start.value:a.init,W6:a.end?a.end.value:a.start?a.start.value:a.init};if(b){c.Mw=c.Mw*b;c.Sy=c.Sy*b;c.W6=c.W6*b}c.start&&(c.start.spline=KEY_SPLINES[c.start.spline]||s);c.end&&(c.end.spline=KEY_SPLINES[c.end.spline]||s);return c},H$a:function(a){a=a||0;this.alpha&&this.alpha.end&&(a=Math.max(a,this.alpha.end.time||0));this.scale&&this.scale.end&&(a=Math.max(a,this.scale.end.time||0));this.rotate&&this.rotate.end&&(a=Math.max(a,this.rotate.end.time||0));return a},FU:function(a,b,c){if(this.alpha){a=
this.Bka(this.alpha,a,b,c);if(a==0)return this.alpha.Sy;if(a<0){b=this.alpha.Mw;c=this.alpha.Sy;a=a+1}else{b=this.alpha.Sy;c=this.alpha.W6}return b+a*(c-b)}return w},gJa:function(a,b,c,k,l){if(this.scale){b=this.Bka(this.scale,b,c,k);if(b==0){a.x=this.scale.Sy.x;a.y=this.scale.Sy.y}else{if(b<0){c=this.scale.Mw;k=this.scale.Sy;b=b+1}else{c=this.scale.Sy;k=this.scale.W6}a.x=c.x+b*(k.x-c.x);a.y=c.y+b*(k.y-c.y)}if(l)a.x=-a.x}},eJa:function(a,b,c,k){if(this.rotate){a=this.Bka(this.rotate,a,b,c);if(a==
0)return k+this.rotate.Sy;if(a<0){b=this.rotate.Mw;c=this.rotate.Sy;a=a+1}else{b=this.rotate.Sy;c=this.rotate.W6}return k+b+a*(c-b)}},R2:function(a,b,c){a.alpha=this.alpha?this.alpha.Mw:1;a.oc=b+(this.rotate?this.rotate.Mw:0);a.Ia=this.scale?this.scale.Mw.x:1;a.Ma=this.scale?this.scale.Mw.y:1;if(c)a.Ia=-a.Ia},P6:function(a,b,h,k,l,m){if(this.alpha)a.alpha=this.FU(b,h,k);if(this.scale){this.gJa(c,b,h,k,m);a.Ia=c.x;a.Ma=c.y}if(this.rotate)a.oc=this.eJa(b,h,k,l)},bca:function(a,b,c){a.wd(this.alpha?
this.alpha.Mw:1);if(this.scale){a.scale.x=this.scale?this.scale.Mw.x:1;a.scale.y=this.scale?this.scale.Mw.y:1}if(c)a.scale.y=-a.scale.y;if(this.rotate)a.rotate=b+(this.rotate?this.rotate.Mw:0)},lB:function(a,b,c,k,l,m){this.alpha&&a.wd(this.FU(b,c,k));this.scale&&this.gJa(a.scale,b,c,k,m);if(this.rotate)a.rotate=this.eJa(b,c,k,l)},Bka:function(a,b,c,k){var k=a.end?a.end.time||k:0,l=a.start?a.start.time||c-k:0,m=0;if(b<l){m=b/l;a.start.spline&&(m=a.start.spline.get(m));m=m-1}else if(c>0&&a.end&&c-
b<k){m=1-(c-b)/k;a.end.spline&&(m=a.end.spline.get(m))}return m}});ig.ae=ig.CB.extend({ui:"EffectSheet",nb:s,Raa:s,O:{},Nn:function(){this.nb&&this.nb.Qa();this.Raa&&this.Raa.Qa();for(var a in this.O)this.O[a].Qa()},JC:function(){return ig.root+this.path.dr("data/effects/",".json")+ig.kl()},onload:function(a){this.name=a.name;if(a.ANIMS){a.ANIMS.shapeType||(a.ANIMS.shapeType="YZ_EXPAND");a.ANIMS.wallY==g&&(a.ANIMS.wallY=1);a.ANIMS.centerPivot==g&&(a.ANIMS.centerPivot=j);this.nb=new ig.wj(a.ANIMS)}if(a.FACEANIMS){a.FACEANIMS.DOCTYPE||
(a.FACEANIMS.DOCTYPE="MULTI_DIR_ANIMATION");this.Raa=new ig.wj(a.FACEANIMS)}for(var b in a.EFFECTS)this.O[b]=new ig.SUa(this,b,a.EFFECTS[b])},Gba:function(a){return!!this.O[a]},Ya:function(a,b,c){if(!this.loaded)return s;if(!this.O[a]){ig.warn("Could not span effect '"+a+"' of sheet '"+this.path+"'");return s}if(!b)return s;var c=c||{},k=b.kb();return ig.t.af(ig.ya.Effect,k.x,k.y,b.b.i.z,{effect:this.O[a],target:b,target2:c.target2,target2Align:c.target2Align,target2Offset:c.target2Offset,spriteFilter:c.spriteFilter,
offset:c.offset,align:c.align||ig.Rb.BOTTOM,angle:c.angle||0,flipX:c.flipX||w,rotateFace:c.rotateFace||0,flipLeftFace:c.flipLeftFace||w,duration:c.duration||0,group:c.group||s,callback:c.callback})},eh:function(a,b,c,k,l,m){if(!this.loaded)return s;if(!this.O[a]){ig.warn("Could not span effect '"+a+"' of sheet '"+this.path+"'");return s}m=m||{};return ig.t.af(ig.ya.Effect,b,c,k,{effect:this.O[a],target:l,target2:m.target2,target2Align:m.target2Align,target2Offset:m.target2Offset,spriteFilter:m.spriteFilter,
align:0,angle:m.angle||0,duration:m.duration||0,group:m.group||s,callback:m.callback})}});ig.SUa=ig.ra.extend({id:s,RG:[],aMa:0,cra:0,oP:-1,aw:-1,Fa:0,f:function(a,b,c){this.id=a.path+"/"+b;for(var k=b=0;k<c.length;++k){var l=c[k],m=l.type;if(m=="WAIT"){b=b+l.time;this.Fa=Math.max(this.Fa,b);l=new ig.xj}else if(m=="LOOP_START"){this.aMa=this.RG.length;this.cra=b;l=new ig.xj}else if(m=="LOOP_END"){this.oP=this.RG.length;this.aw=b;l=new ig.xj;this.Fa=this.aw}else l=new ig.$i[l.type](a,l);l.time=b;this.RG.push(l);
l=l.Eh?l.Eh():0;if(!l||l<0)l=0;this.Fa=Math.max(this.Fa,b+l)}if(this.oP==-1){this.oP=this.RG.length;this.aw=this.Fa}if(this.aw-this.cra==0&&this.oP>=this.RG.length-1){this.aw=this.aw+0.1;this.Fa=Math.max(this.Fa,this.aw)}},Qa:function(){for(var a=0;a<this.RG.length;++a)this.RG[a].Qa&&this.RG[a].Qa()},update:function(a){a.n=a.n+ig.g.ga;var b=this.RG;if(a.duration>0){a.duration=a.duration-ig.g.ga;if(a.duration<=0)a.duration=0}if(a.AL<this.oP&&a.duration==0){a.n=this.aw;a.AL=this.oP}if(!a.duration){if(a.state==
ig.Nw.fv&&a.n>=this.aw){a.state=ig.Nw.zia;a.Ob&&a.Ob.$r(a)}if(a.state==ig.Nw.zia&&a.n>=this.Fa){a.state=ig.Nw.eE;a.Ob&&a.Ob.$r(a)}}for(var c;a.AL<b.length&&(c=b[a.AL]).time<=a.n;){var k=c.start(a);k&&(k.Xc?a.aL.push(new ig.TUa(c,k)):a.aL.push(new ig.UUa(c,k)));a.AL++;if(a.AL==this.oP){k=this.aw-this.cra;if(k<=0||!a.duration)break;a.n=a.n-k;a.AL=this.aMa}}},fcb:function(a){return a.n>=this.aw},vp:function(a){return a.n>=this.Fa},BJ:function(a){return a.duration>=0?a.duration+(this.Fa-this.aw):this.Fa}});
ig.xj=ig.ra.extend({time:0,start:F(),Eh:R(0)});ig.al=ig.ra.extend({t1:s,name:s,f:function(a){this.t1=new ig.ae(a.sheet);this.name=a.name},Qa:function(){this.t1&&this.t1.zc()},Ya:function(a,b){return this.t1.Ya(this.name,a,b)},eh:function(a,b,c,k,l){return this.t1.eh(this.name,a,b,c,k,l)}});ig.UUa=ig.ra.extend({step:s,data:s,duration:0,Od:0,f:function(a,b){this.step=a;this.data=b;this.duration=b.duration},update:function(a){this.Od=this.Od+ig.g.ga;this.step.update(a,this.Od,this.duration,this.data);
var b=this.duration>=0&&this.Od>this.duration;b&&this.step.finish&&this.step.finish(a,this.data);return b},cancel:function(a){if(this.duration<0){var b=this.step.cancel&&this.step.cancel(a,this.Od,this.data);if(b>=0)this.duration=b;else{this.step.finish&&this.step.finish(a,this.data);return j}}return w}});ig.TUa=ig.ra.extend({step:s,data:s,swa:0,S0:0,Psa:0,Od:0,f:function(a,b){this.step=a;this.data=b;this.swa=b.Xc;this.Psa=b.Xc/b.duration},update:function(a){var b=this.S0;this.Od=this.Od+ig.g.ga;
var c=Math.ceil(this.Od*this.Psa);this.Od=this.Od-c/this.Psa;this.S0=Math.min(this.S0+c,this.swa);this.step.update(a,b,this.S0,this.data);return this.S0==this.swa},cancel:function(a){this.step.finish&&this.step.finish(a,this.data);return j}});ig.$i={}});ig.G=j;
ig.I("impact.feature.rumble.rumble-steps").J("impact.base.action","impact.base.event","impact.feature.effect.effect-sheet","impact.feature.rumble.rumble").H(function(){ig.ma.RUMBLE_SCREEN=ig.na.extend({YA:s,name:s,duration:0,Go:0,speed:0,Zj:w,s:new ig.u({attributes:{YA:{c:"String",d:"Type of rumble",Y:ig.pM},name:{c:"String",d:"Name of the rumble. Can be ignored for anonymous rumble effects."},duration:{c:"Number",d:"The time the rumble will take. -1 for continues effect"},Go:{c:"String",Y:ig.Lm.n8,
d:"Power of the rumble."},speed:{c:"String",Y:ig.Lm.m8,d:"Speed of a single rumble."},Zj:{c:"Boolean",d:"Rumble effect gets weaker towards the passed time."}}}),f:function(a){this.YA=a.rumbleType||s;this.name=a.name||s;this.Go=a.power||"WEAKEST";this.speed=a.speed||"SLOWEST";this.duration=a.duration||0;this.Zj=a.fade||w},start:function(){if(ig.XA.k2(this.name))ig.XA.k2(this.name).set(this.Go,this.speed,this.duration,this.Zj);else{var a=new ig.Lm.vE(this.YA,this.Go,this.speed,this.duration,this.Zj,
this.name);ig.XA.cT(a)}}});ig.ma.RUMBLE_STOP_CONTINUES=ig.na.extend({name:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of the rumble to stop. Must be given!"}}}),f:function(a){this.name=a.name||s},start:function(){var a=ig.XA.k2(this.name);a&&a.stop()}});ig.Ha.RUMBLE_SCREEN=ig.Pa.extend({YA:s,name:s,duration:0,Go:0,speed:0,Zj:w,s:new ig.u({attributes:{YA:{c:"String",d:"Type of rumble",Y:ig.pM},name:{c:"String",d:"Name of the rumble. Can be ignored for anonymous rumble effects."},duration:{c:"Number",
d:"The time the rumble will take. -1 for continues effect"},Go:{c:"String",Y:ig.Lm.n8,d:"Power of the rumble."},speed:{c:"String",Y:ig.Lm.m8,d:"Speed of a single rumble."},Zj:{c:"Boolean",d:"Rumble effect gets weaker towards the passed time."}}}),f:function(a){this.YA=a.rumbleType||s;this.name=a.name||s;this.Go=a.power||"WEAKEST";this.speed=a.speed||"SLOWEST";this.duration=a.duration||0;this.Zj=a.fade||w},xa:function(){if(ig.XA.k2(this.name))ig.XA.k2(this.name).set(this.Go,this.speed,this.duration,
this.Zj);else{var a=new ig.Lm.vE(this.YA,this.Go,this.speed,this.duration,this.Zj,this.name);ig.XA.cT(a)}return j}});ig.$i.RUMBLE=ig.ra.extend({YA:s,duration:0,Go:0,speed:0,Zj:w,s:new ig.u({attributes:{YA:{c:"String",d:"Type of Rumble effect",Y:ig.pM},Go:{c:"String",d:"Power of rumble effect",Y:ig.Lm.n8},speed:{c:"String",d:"Speed of rumble effect",Y:ig.Lm.m8},duration:{c:"Number",d:"Duration of rumble effect"},Zj:{c:"Boolean",d:"True if rumble effect should fade towards the end."}}}),f:function(a,
b){this.YA=b.rumbleType||s;this.Go=b.power||"WEAKEST";this.speed=b.speed||"SLOWEST";this.duration=b.duration||0;this.Zj=b.fade||w},start:function(a){var b=new ig.Lm.vE(this.YA,this.Go,this.speed,this.duration,this.Zj,s);a.yI(b);ig.XA.cT(b)}})});ig.G=j;ig.I("impact.feature.rumble.plug-in").J("impact.feature.rumble.rumble","impact.feature.rumble.rumble-steps").H(F());ig.G=j;
ig.I("impact.feature.slow-motion.slow-motion").J("impact.base.event","impact.base.game").H(function(){ig.l0a=ig.sf.extend({GX:[],nK:{},f:function(){this.parent("SlowMotion")},sO:function(){this.update();ig.g.ga=ig.g.Da*ig.g.Tn},update:function(){for(var a=1,b=this.GX.length;b--;){var c=this.GX[b];if(c.update()){c.name&&delete this.nK[c.name];this.GX.splice(b,1)}else a=a*this.GX[b].c2()}ig.g.Tn=a},rG:100,gw:function(){this.update()},nj:function(){this.GX.length=0;this.nK={}},add:function(a,b,c){a=
new ig.YAa(a,b,c);this.GX.push(a);if(c){if(this.nK[c]){this.nK[c].clear();this.nK[c].name=s}this.nK[c]=a}return a},F0:function(a,b){this.nK[a]&&this.nK[a].clear(b)}});ig.wf(function(){return ig.it=new ig.l0a});ig.YAa=ig.ra.extend({lh:1,vga:0,name:s,n:0,Nma:w,f:function(a,b,c){this.lh=a;this.n=this.vga=b;this.name=c||s},clear:function(a){this.Nma=j;this.n=this.vga=a||0},update:function(){if(this.n>0){this.n=this.n-ig.g.Da;if(this.n<0)this.n=0}return!this.n&&this.Nma},c2:function(){var a=this.vga?this.n/
this.vga:0;this.Nma||(a=1-a);return(1-a)*1+a*this.lh},Zr:function(){this.clear(0.2)}})});ig.G=j;
ig.I("impact.feature.slow-motion.slow-motion-steps").J("impact.feature.slow-motion.slow-motion","impact.base.action","impact.base.event").H(function(){ig.ma.ADD_SLOW_MOTION=ig.na.extend({name:s,lh:0,time:0,s:new ig.u({attributes:{name:{c:"String",d:"Name of the slow motion effect. Used this to remove the effect later on"},lh:{c:"Number",d:"How much to slow down the time. 0.5 = half the speed"},time:{c:"Number",d:"Transition time for slow motion"}}}),f:function(a){this.name=a.name;this.lh=a.factor;
this.time=a.time},start:function(){ig.it.add(this.lh,this.time,this.name)}});ig.ma.CLEAR_SLOW_MOTION=ig.na.extend({name:s,time:0,s:new ig.u({attributes:{name:{c:"String",d:"Name of slow motion to be removed"},time:{c:"Number",d:"Transition time for slow motion removal"}}}),f:function(a){this.name=a.name;this.time=a.time},start:function(){ig.it.F0(this.name,this.time)}});ig.Ha.ADD_SLOW_MOTION=ig.Pa.extend({lh:0,time:0,s:new ig.u({attributes:{lh:{c:"Number",d:"How much to slow down the time. 0.5 = half the speed"},
time:{c:"Number",d:"Transition time for slow motion"},vLa:{c:"Boolean",d:"If true, set entity to be in static time"}}}),f:function(a){this.lh=a.factor;this.time=a.time;this.vLa=a.keepEntityStatic},start:function(a){var b=ig.it.add(this.lh,this.time,s);a.fp(b);if(this.vLa)a.b.time.ex=j}});ig.Ha.CLEAR_SLOW_MOTION=ig.Pa.extend({time:0,s:new ig.u({attributes:{time:{c:"Number",d:"Transition time for slow motion removal"},EOa:{c:"Boolean",d:"If true, remove entity from static time"}}}),f:function(a){this.time=
a.time;this.EOa=a.removeEntityStatic},start:function(a){for(var b=a.co,c=b.length;c--;)if(b[c]instanceof ig.YAa){b[c].clear(this.time);b.splice(c,1)}if(this.EOa)a.b.time.ex=w}})});ig.G=j;ig.I("impact.feature.slow-motion.plug-in").J("impact.feature.slow-motion.slow-motion","impact.feature.slow-motion.slow-motion-steps").H(F());ig.G=j;
ig.I("impact.feature.effect.entities.effect-previewer").J("impact.base.actor-entity").H(function(){Vec3.create();ig.ya.EffectPreviewer=ig.Zb.extend({Cf:s,ST:s,nda:s,bJ:s,Aw:s,Wq:0,s:new ig.u({Bd:j,attributes:{},label:R(""),Fj:j,hl:"rgba(255,0,0, 0.5)"}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.v(24,24,24);this.nb=new ig.wj("player");this.ld()},update:function(){if(this.Wq>0){this.Wq=this.Wq-ig.g.ga;this.Wq<0&&this.OOa()}if(!this.Cf){this.Cf=new ig.ye.$n(new ig.ye.bS(this),0,0);ig.Vd.nw(this.Cf);
this.Cf.uw(2,0.2);ig.t.Qhb("READY",s)}if(!this.bJ||this.bJ.vp()){if(this.bJ){this.Wq=1;this.bJ=s}if(this.nda){this.ST&&this.ST.zc();this.ST=s;try{this.ST=new ig.ae(this.nda);this.nda=s}catch(a){console.log("EFFECT SHEET ERROR: ",a)}}if(this.Aw&&this.ST){this.bJ=this.ST.Ya(this.Aw.name,this,this.Aw.Fi);this.Aw=s}}this.parent()},ARa:function(){if(this.bJ){this.bJ.stop();this.bJ=s;this.Wq=1}},OOa:function(){this.Wq=0;this.Za.alpha=1;this.Za.oc=0;this.Za.Ia=1;this.Za.Ma=1;ig.Oj.Ima(this)},fNa:function(a,
b){if(a=="EFFECT_PREVIEWER_APPEARANCE"){this.v(b.size.x,b.size.y,b.size.z);this.nb=new ig.wj(b.nb);this.nb.wr(this);this.Cf.uw(b.zoom||1,0.2,KEY_SPLINES.EASE_IN_OUT);ig.g.iSa=b.Tn||1}else if(a=="UPDATE_EFFECT_SHEET")this.nda=b;else if(a=="PLAY_EFFECT"){this.ARa();this.OOa();this.Aw=b;this.Aw.Fi.target2=ig.t.cG.target2;this.Aw.Fi.target2Align=ig.Rb.CENTER}else if(a=="STOP_EFFECT"){this.ARa();this.Psb=w}else a=="RELOAD_IMAGE"&&ig.$.Bgb()},Pq:function(a,b){if(b==this.nb){for(var c in this.nb.La)break;
this.Ja(c);this.lm=j}}})});ig.G=j;
ig.I("impact.feature.effect.effect-steps").J("impact.base.action","impact.base.event","impact.base.entity").H(function(){function a(a){if(a.vp())this.Pe=s}Vec2.create();ig.Lha={};ig.Ha.SHOW_EFFECT=ig.Pa.extend({Pe:s,duration:0,offset:s,align:0,YK:0,kc:w,Pg:0,group:s,ii:s,s:new ig.u({attributes:{Pe:{c:"Effect",d:"Effect to play"},duration:{c:"Number",d:"Amount of time to play animation.<br /> 0 = actual lenght of animation, -1 = forever until stopped."},offset:{c:"Offset",d:"Offset to entity position"},
align:{c:"String",d:"Alignment of Animation relative to target",Y:ig.Rb},YK:{c:"Number",d:"If number is provided: rotate effect to match entity face, number matching possible face directions. -1 = take precise face rotation"},Jr:{c:"Boolean",d:"Flip the animation if rotation is negative."},kc:{c:"Boolean",d:"Wait until effect is over"},Pg:{c:"Number",d:"The amount of seconds to skip waiting before effect is over"},vr:{c:"Boolean",d:"If true, keep Effect even after action is finished or canceled"},
group:{c:"String",d:"A string identifying the effect. Optional. Name can be used with CLEAR_EFFECT to clear only certain effects",U:j},ii:{c:"String",d:"Entity part on which to show animation",U:j},Mo:{c:"String",d:"Secondary effect target options.",U:j,Y:ig.Lha},aY:{c:"Offset",d:"Offset to entity position",U:j},$X:{c:"String",d:"Alignment of Animation relative to target",Y:ig.Rb,U:j},Up:{c:"Array",d:"Only apply filter on list of sprites (by index)",LE:{c:"Integer"},U:j}}}),f:function(a){assertContent(a,
"effect");this.Pe=new ig.al(a.effect);this.duration=a.duration||0;this.offset=a.offset||0;this.align=ig.Rb[a.align]||ig.Rb.BOTTOM;this.kc=a.wait||w;this.Pg=a.waitSkip||0;this.vr=a.actionDetached||w;this.YK=a.rotateFace||0;this.group=a.group||w;this.Jr=a.flipLeftFace||w;this.ii=a.partName||s;this.Mo=ig.Lha[a.target2]||s;this.$X=ig.Rb[a.target2Align]||ig.Rb.BOTTOM;this.aY=a.target2Offset;this.Up=a.spriteFilter||s},Qa:function(){this.Pe.Qa()},start:function(b){var c=this.Mo?this.Mo(b):s,c={duration:this.duration,
offset:this.offset,align:this.align,group:this.group,rotateFace:this.YK,flipLeftFace:this.Jr,callback:s,target2:c,target2Align:this.$X,target2Offset:this.aY,spriteFilter:this.Up};if(this.kc){b.tb.$r=a;c.callback=b.tb}var d=b;if(this.ii)for(var e=b.b.xl,h=e.length;h--;)if(e[h].P.ii==this.ii){d=e[h].P;break}c=this.Pe.Ya(d,c);this.vr||b.fp(c);if(this.kc)b.tb.Pe=c},xa:function(a){return!this.kc||!a.tb.Pe||a.tb.Pe.BJ()<=this.Pg}});ig.Ha.CLEAR_EFFECTS=ig.Pa.extend({group:s,s:new ig.u({attributes:{group:{c:"String",
d:"If provided: only clear effects attached under specified group",U:j}}}),f:function(a){this.group=a.group||s},w1:function(a){return a instanceof ig.ya.Effect&&this.group==a.Q9},c5a:function(a){return a instanceof ig.ya.Effect},xa:function(a){this.group?a.CT(this.w1.bind(this)):a.Hma(this.c5a.bind(this));return j}});ig.ma.SHOW_EFFECT=ig.na.extend({P:s,Pe:s,duration:0,offset:s,group:s,kc:w,Pg:0,Mo:s,aY:s,$X:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to apply effect on"},Pe:{c:"Effect",d:"Effect to play"},
duration:{c:"Number",d:"Amount of time to play animation.<br /> 0 = actual lenght of animation, -1 = forever until stopped."},offset:{c:"Offset",d:"Offset to entity position"},align:{c:"String",d:"Alignment of Animation relative to target",Y:ig.Rb},group:{c:"String",d:"A string identifying the effect. Optional. Name can be used with CLEAR_EFFECT to clear only certain effects"},kc:{c:"Boolean",d:"Wait until effect is over"},Pg:{c:"Number",d:"The amount of seconds to skip waiting before effect is over"},
Mo:{c:"Entity",d:"Alternative target for homing particles",U:j},aY:{c:"Offset",d:"Offset to entity position",U:j},$X:{c:"String",d:"Alignment of Animation relative to target",Y:ig.Rb,U:j}}}),f:function(a){assertContent(a,"effect");this.P=a.entity;this.Pe=new ig.al(a.effect);this.duration=a.duration||0;this.offset=a.offset||s;this.align=ig.Rb[a.align]||ig.Rb.BOTTOM;this.group=a.group||s;this.kc=a.wait||w;this.Pg=a.waitSkip||0;this.Mo=a.target2;this.$X=ig.Rb[a.target2Align]||ig.Rb.BOTTOM;this.aY=a.target2Offset},
Qa:function(){this.Pe.Qa()},start:function(b,c){var d=ig.Ra.pd(this.P,c),e;this.Mo&&(e=ig.Ra.pd(this.Mo,c));e={duration:this.duration,offset:this.offset,align:this.align,group:this.group,target2:e,target2Align:this.$X,target2Offset:this.aY};if(this.kc){e.callback=b;b.$r=a}b.Pe=this.Pe.Ya(d,e)},xa:function(a){if(!this.kc||!a.Pe||a.Pe.BJ()<=this.Pg){a.Pe=s;return j}return w}});ig.ma.CLEAR_EFFECTS=ig.na.extend({P:s,group:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to clear effects from"},group:{c:"String",
d:"if provided: only clear effects attached under specified group",U:j}}}),f:function(a){this.P=a.entity;this.group=a.group||s},w1:function(a){return a instanceof ig.ya.Effect&&(!this.group||this.group==a.Q9)},start:function(a,c){ig.Ra.pd(this.P,c).CT(this.w1.bind(this))}})});ig.G=j;
ig.I("impact.feature.effect.fx.fx-basic").J("impact.feature.effect.effect-sheet").H(function(){function a(a){return a instanceof ig.z8}ig.$i.WAIT=ig.xj.extend({s:new ig.u({attributes:{time:{c:"Number",d:"Time to wait"}}})});ig.$i.LOOP_START=ig.xj.extend({s:new ig.u({attributes:{}})});ig.$i.LOOP_END=ig.xj.extend({s:new ig.u({attributes:{}})});var b=Vec3.create();ig.$i.PLAY_ANIM=ig.xj.extend({s:new ig.lg({Fo:"Particle",attributes:{zR:{c:"Boolean",d:"Align animation with effect rotation"},offset:{c:"Offset",
d:"Offset to effect center",U:j},WA:{c:"Offset",d:"Offset rotated with effect direction",U:j}}}),Se:s,offset:{x:0,y:0,z:0},WA:s,zR:w,f:function(a,b){this.Se=ig.lg.cy(a.nb,b);if(b.offset)this.offset=b.offset;this.WA=b.rotOffset||s;this.zR=b.useTargetAngle||w},start:function(a){var c=a.oc;this.zR&&(a.target&&a.target.Za)&&(c=c+a.target.Za.oc);var d=Vec3.Sa(b,0,0,0);if(this.WA){Vec3.add(d,this.WA);Vec2.rotate(d,-a.oc)}Vec3.add(d,this.offset);a.Cm(ig.ya.Particle,d,{data:this.Se,angle:c,flipX:a.Dd})},
Eh:function(){return ig.lg.CF(this.Se)}});ig.$i.PLAY_FACE_ANIM=ig.xj.extend({Se:s,offset:{x:0,y:0,z:0},s:new ig.lg({Fo:"FaceParticle",attributes:{offset:{c:"Offset",d:"Offset to effect center",U:j}}}),f:function(a,b){this.Se=ig.lg.cy(a.Raa,b);if(b.offset)this.offset=b.offset},start:function(a){var c=Vec3.assign(b,this.offset);if(a.target){c.x=c.x-a.target.b.size.x/2;c.y=c.y-a.target.b.size.y/2}a.Cm(ig.ya.FaceParticle,c,{data:this.Se,size:a.target&&a.target.b.size})},Eh:function(){return ig.lg.CF(this.Se)}});
var c=Vec2.create();ig.$i.PLAY_ANIM_RANGE=ig.xj.extend({Se:s,offset:{x:0,y:0,z:0},jg:0,duration:0,Ng:2,zR:w,s:new ig.lg({Fo:"Particle",attributes:{jg:{c:"Number",d:"Radius in which animation is played"},zR:{c:"Boolean",d:"Align animation with effect rotation"},Ng:{c:"Number",d:"Amount of particles",ub:1},duration:{c:"Number",d:"Duration in which to spawn particles"},offset:{c:"Offset",d:"Offset to effect center",U:j}}}),f:function(a,b){this.Se=ig.lg.cy(a.nb,b);if(b.offset)this.offset=b.offset;this.jg=
b.radius||0;this.duration=b.duration||0;this.Ng=b.numParticles||1;this.zR=b.useTargetAngle||w},Eh:M("duration"),start:function(){return{duration:this.duration,Xc:this.Ng}},update:function(a,b,d){var e=a.oc;this.zR&&(a.target&&a.target.Za)&&(e=e+a.target.Za.oc);for(e={data:this.Se,angle:e};b<d;++b){var h=ig.copy(this.offset),k=this.jg*Math.sqrt(Math.random()),l=Vec2.Sa(c,Math.random()-0.5,Math.random()-0.5);Vec2.length(l,k);h.x=(h.x||0)+l.x;h.z=(h.z||0)+l.y;a.Cm(ig.ya.Particle,h,e)}}});var d={},e=
{},h=Vec3.create();ig.$i.PLAY_ANIMS_OVER_ENTITY=ig.xj.extend({Se:s,duration:0,IL:1,Wy:1,uN:w,offset:{x:0,y:0,z:0},Ng:0,oh:0,R3:0,s:new ig.lg({Fo:"Particle",attributes:{Ng:{c:"Integer",d:"Amount of particles to spawn",ub:1},duration:{c:"Number",d:"Duration in which to spawn particles"},uN:{c:"Boolean",d:"True if particles should be spawned circular (instead of rectangular)."},IL:{c:"Number",d:"How much of the x dimension should be covered. 1=full",U:j},Wy:{c:"Number",d:"How much of the y dimension should be covered. 1=full",
U:j},R3:{c:"Number",d:"Distance that entities should move upward (or downward if negative",U:j},oh:{c:"String",d:"Keyspline of particle z movement",Y:KEY_SPLINES,U:j},offset:{c:"Offset",d:"Offset to effect center",U:j}}}),f:function(a,b){this.Se=ig.lg.cy(a.nb,b);this.duration=b.duration||0;this.IL=b.xScale||1;this.Wy=b.yScale||1;this.uN=b.circular||w;this.R3=b.moveZDist||0;this.oh=KEY_SPLINES[b.keySpline]||s;b.offset&&Vec3.assign(this.offset,b.offset);this.Ng=b.numParticles||2},start:function(a){if(a.target){ig.Oj.wba(d,
a.target);var a=d.left+d.right,b=d.top+d.bottom;if(!(a<0||b<0))return{duration:this.duration,Xc:this.Ng*a/32*b/32*this.IL*this.Wy*this.duration,Vi:(-d.left+d.right)/2,Bg:d.bottom,Bda:b/2,jg:a/2,S5a:b/a}}},Eh:function(){return this.duration+ig.lg.CF(this.Se)},update:function(a,b,d,k){e.data=this.Se;if(this.R3){e.moveOffset=Vec2.pc(0,this.R3);e.alongZ=j;e.keySpline=this.oh}for(;b<d;++b){var l=Vec3.Sa(h,0,0,0),m=Vec2.Sa(c,Math.random()-0.5,Math.random()-0.5);if(this.uN){var x=k.jg*Math.sqrt(Math.random());
Vec2.length(m,x)}else{m.x=m.x*k.jg*2;m.y=m.y*k.jg*2}l.x=k.Vi+m.x*this.IL+this.offset.x;l.y=k.Bg+this.offset.y;l.z=k.Bda+m.y*this.Wy*k.S5a+this.offset.z;a.Cm(ig.ya[this.R3?"OffsetParticle":"Particle"],l,e,j)}}});var k=Vec2.create(),l=Vec2.create(),m={};ig.$i.DEBRIS_OVER_ENTITY=ig.xj.extend({Se:s,IL:1,Wy:1,uN:w,offset:{x:0,y:0,z:0},Ng:0,nna:0,s:new ig.lg({Fo:"DeprisParticle",attributes:{Ng:{c:"Integer",d:"Amount of particles per tile",ub:1},uN:{c:"Boolean",d:"True if particles should be spawned circular (instead of rectangular)."},
IL:{c:"Number",d:"How much of the x dimension should be covered. 1=full",U:j},Wy:{c:"Number",d:"How much of the y dimension should be covered. 1=full",U:j},Yr:{c:"Number",d:"Minimum amount of speed",U:j},rh:{c:"Number",d:"Maximum amount of speed",U:j},bW:{c:"Number",d:"Minimum amount of z speed"},ZV:{c:"Number",d:"Maximum amount of z speed"},nna:{c:"Offset",d:"Collision size of debris",U:j},se:{c:"Number",d:"Gravity factor of debris",U:j},Xh:{c:"Number",d:"Z bounciness of debris",U:j},cW:{c:"Number",
d:"mininum zVel when bouncing on Ground",U:j},offset:{c:"Offset",d:"Offset to effect center",U:j}}}),f:function(a,b){this.Se=ig.lg.cy(a.nb,b);this.IL=b.xScale||1;this.Wy=b.yScale||1;this.uN=b.circular||w;b.offset&&Vec3.assign(this.offset,b.offset);this.Yr=b.minSpeed||0;this.rh=b.maxSpeed||0;this.bW=b.minZSpeed||0;this.ZV=b.maxZSpeed||0;this.se=b.zGravityFactor||s;if(b.zBounciness!=g)this.Xh=b.zBounciness;this.nna=b.debrisSize||g;this.Ng=b.numParticles||2},start:function(a){if(a.target){ig.Oj.wba(d,
a.target);var b=d.left+d.right,c=d.top+d.bottom,e=Math.round(b*this.IL),p=Math.round(c*this.Wy),b=-d.left+(b-e)/2,c=-d.top+(c-p)/2,q=Math.round(this.Ng*e/16),x=Math.round(this.Ng*p/16);m.data=this.Se;m.zGravityFactor=this.se;m.zBounciness=this.Xh;m.debrisSize=this.nna;for(var y=0;y<q;++y)for(var z=0;z<x;++z){var u=e*y/(q-1),v=p*z/(x-1),A=Vec2.Sa(k,u-e/2,v-p/2),v=Vec2.Sa(l,b+u,c+v);if(this.uN){A.x=A.x*(p/e);if(Vec2.length(A)>p/2)continue;A.x=A.x*(e/p)}u=Vec3.Sa(h,0,0,0);u.x=this.offset.x+v.x;u.y=this.offset.y+
v.y;u.z=this.offset.z+v.z;v=Math.random();m.zVel=this.bW*v+this.ZV*(1-v);m.vel=Vec2.length(A,this.Yr+Math.random()*(this.rh-this.Yr));a.Cm(ig.ya.DebrisParticle,u,m,j)}}},Eh:function(){return ig.lg.CF(this.Se)}});ig.$i.PLAY_SOUND=ig.xj.extend({Ab:s,global:w,loop:w,Fi:s,s:new ig.u({attributes:{Ab:{c:"SoundT",d:"URL of sound."},volume:{c:"Number",d:"Volume of sound",ub:1},global:{c:"Boolean",d:"Play sound globally if true"},loop:{c:"Boolean",d:"Loop sound if true"},uj:{c:"Number",d:"Speed playback variance.",
U:j},speed:{c:"Number",d:"Playback speed. 1=default speed. 0.5=half speed.",U:j}}}),f:function(a,b){assertContent(b,"sound");this.Ab=new ig.da(b.sound,b.volume||1,b.variance||0);this.global=b.global||w;this.loop=b.loop||w;this.Fi={speed:b.speed||1}},Qa:function(){this.Ab.Qa()},start:function(a){var b;b=this.global?this.loop?this.Ab.qy(s,this.Fi):this.Ab.play(s,this.Fi):ig.Tg.ah(this.Ab,a,this.loop,this.Fi);this.loop&&a.yI(b)}});ig.$i.STOP_SOUNDS=ig.xj.extend({s:new ig.u({attributes:{}}),f:F(),start:function(b){b.CT(a)}})});
ig.G=j;
ig.I("impact.feature.effect.fx.fx-box").J("impact.feature.effect.effect-sheet").H(function(){var a=Vec2.create();Vec2.create();var b=Vec3.create(),c=Vec2.create(),d=Vec2.create(),e={};ig.uxa={ALL:15,NORTH:1,EAST:2,SOUTH:4,WEST:8,NO_NORTH:14,NO_EAST:13,NO_SOUTH:11,NO_WEST:7};var h=[{x:0,y:0,uc:1,Gc:0,$t:1},{x:1,y:0,uc:0,Gc:1,$t:2},{x:0,y:1,uc:1,Gc:0,$t:4},{x:0,y:0,uc:0,Gc:1,$t:8}];ig.$i.PARTICLE_BOX=ig.xj.extend({Se:s,padding:{x:0,y:0},ima:0,Ng:4,wF:w,Yr:50,rh:100,hF:w,random:0,kda:0,Ara:0,s:new ig.lg({Fo:"OffsetParticle",
attributes:{ima:{c:"String",d:"Which side of the box to spawn particles on",Y:ig.uxa},padding:{c:"Vec2",d:"Padding around target bounds. Can also be negative"},hF:{c:"Boolean",d:"Whether particles should collide."},Ng:{c:"Integer",d:"Amount of particles",ub:1},random:{c:"Number",d:"Randomness of particle spawning from 0 to 1",U:j},wF:{c:"Boolean",d:"Flip particles spawned on the right side",U:j},Yr:{c:"Number",d:"Minimum Speed of particles",U:j},rh:{c:"Number",d:"Maximum Speed of particles",U:j},
kda:{c:"Number",d:"Move particles upwards by given pixels. (won't move away in this case)",U:j},Ara:{c:"Number",d:"Z Distance Variance.",U:j}}}),f:function(a,b){this.Se=ig.lg.cy(a.nb,b);b.padding&&Vec2.assign(this.padding,b.padding);this.ima=ig.uxa[b.boxSide||"ALL"];this.Ng=b.numParticles;this.wF=b.flipRightParticles||w;this.Yr=b.minSpeed||0;this.rh=b.maxSpeed||0;this.hF=b.collision||w;this.random=b.random||0;this.kda=b.moveZ||0;this.Ara=b.moveZVariance||0},Eh:function(){return ig.lg.CF(this.Se)},
start:function(a){if(a.target)for(var b=a.target.b,c=h.length;c--;)this.ima&h[c].$t&&this.Djb(a,b,h[c])},Djb:function(h,l,m){var n=m.x?l.size.x+this.padding.x:-this.padding.x,o=m.y?l.size.y+this.padding.y:-this.padding.y,t=m.uc?l.size.x+this.padding.x*2:0,r=m.Gc?l.size.y+this.padding.y*2:0,m=Vec2.Sa(a,0,0);Vec2.Y_(m,n,o);n=Math.max(1,this.Ng*(t+r)/32|0);t=t/n;r=r/n;e.data=this.Se;e.friction=0.8;e.collision=this.hF;for(o=0;o<n;o++){var p=Vec3.Sa(b,m.x,m.y,0);p.x=p.x+(0.5+o+(Math.random()-0.5)*this.random)*
t;p.y=p.y+(0.5+o+(Math.random()-0.5)*this.random)*r;var q=Vec2.Sa(d,p.x,p.y);Vec2.WX(q,l.size.x/2,l.size.y/2);e.flipX=this.wF&&q.x<0;if(this.kda){q=this.kda+(Math.random()-0.5)*2*this.Ara;e.alongZ=j;e.moveOffset=Vec2.Sa(c,0,q);e.keySpline=KEY_SPLINES.EASE_OUT;h.Cm(ig.ya.OffsetParticle,p,e,j)}else{Vec2.length(q,this.Yr+Math.random()*(this.rh-this.Yr));e.vel=q;h.Cm(ig.ya.Particle,p,e,j)}}}})});ig.G=j;
ig.I("impact.feature.effect.fx.fx-color").J("impact.feature.effect.effect-sheet").H(function(){ig.$i.FLASH_COLOR=ig.xj.extend({color:s,alpha:1,CV:0,duration:1,s:new ig.u({attributes:{color:{c:"String",d:"Color to flash in"},alpha:{c:"Number",d:"Maximum alpha of color flash"},duration:{c:"Number",d:"Duration of color flash"},CV:{c:"Number",d:"Duration of showing maximum flash intensity at beginnging."},rK:{c:"Boolean",d:"If true, don't apply lighter color but regular color overlay"}}}),f:function(a,
b){this.color=b.color||"white";this.alpha=b.alpha||1;this.duration=b.duration||1;this.CV=b.keepDuration||0;this.qh=!b.noLighter;assert(this.duration>=0)},start:function(a){var b=new ig.nha(this.color,0,a.Up,this.qh);a.target&&a.target.Za&&ig.Oj.Lla(a.target,b);return{duration:this.duration+this.CV,vd:b}},Eh:function(){return this.duration+this.CV},update:function(a,b,c,d){a=0;a=b<this.CV?1:Math.max(0,1-(b-this.CV)/this.duration);d.vd.alpha=a*this.alpha},finish:function(a,b){b.vd.clear()}});ig.$i.BLINK_COLOR=
ig.xj.extend({color:s,bn:1,iy:0,YE:0.5,Z9:1,s:new ig.u({attributes:{color:{c:"String",d:"Color to blink in"},bn:{c:"Number",d:"Maximum alpha intensity"},iy:{c:"Number",d:"Minimum alpha intensity"},YE:{c:"Number",d:"Duration of one time flashing back and force between min and max alpha"},Z9:{c:"Integer",d:"Number of blinks. -1 if unlimited"},rK:{c:"Boolean",d:"If true, don't apply lighter color but regular color overlay"}}}),f:function(a,b){this.color=b.color||"white";this.bn=b.maxAlpha||1;this.iy=
b.minAlpha||0;this.YE=b.blinkDuration||0;this.Z9=b.blinkCount||1;this.qh=!b.noLighter},start:function(a){var b=new ig.nha(this.color,0,a.Up,this.qh);a.target&&a.target.Za&&ig.Oj.Lla(a.target,b);return{duration:this.Eh(),vd:b}},Eh:function(){return this.Z9<0?-1:this.Z9*this.YE},update:function(a,b,c,d){a=this.iy;if(b<this.YE/2||c>0&&c-b<this.YE/2)a=0;b=b%this.YE/this.YE;b=(b>0.5?1-b:b)*2;d.vd.alpha=a*(1-b)+this.bn*b},cancel:function(a,b){return Math.ceil(b/this.YE)*this.YE},finish:function(a,b){b.vd.clear()}});
ig.$i.FADE_COLOR=ig.xj.extend({color:s,alpha:1,fadeIn:0,fadeOut:0,duration:0,s:new ig.u({attributes:{color:{c:"String",d:"Color to blink in"},alpha:{c:"Number",d:"Maximum alpha intensity"},fadeIn:{c:"Number",d:"Fade in duration of color"},fadeOut:{c:"Number",d:"Fade out duration of color"},duration:{c:"Number",d:"Duration of color display. -1 = forever"},rK:{c:"Boolean",d:"If true, don't apply lighter color but regular color overlay"}}}),f:function(a,b){this.color=b.color||"white";this.alpha=b.alpha||
1;this.fadeIn=b.fadeIn||0;this.fadeOut=b.fadeOut||0;this.duration=b.duration||0;this.qh=!b.noLighter},start:function(a){var b=new ig.nha(this.color,0,a.Up,this.qh);a.target&&a.target.Za&&ig.Oj.Lla(a.target,b);return{duration:this.Eh(),vd:b}},Eh:function(){return this.duration<0?-1:this.fadeIn+this.duration+this.fadeOut},update:function(a,b,c,d){a=1;c>0&&c-b<this.fadeOut?a=(c-b)/this.fadeOut:b<this.fadeIn&&(a=b/this.fadeIn);d.vd.alpha=this.alpha*a},cancel:function(a,b){return b+this.fadeOut},finish:function(a,
b){b.vd.clear()}});ig.$i.CHANGE_ALPHA=ig.xj.extend({alpha:0,duration:0,s:new ig.u({attributes:{alpha:{c:"Number",d:"Target alpha value"},duration:{c:"Number",d:"Transition time to target alpha value"}}}),f:function(a,b){this.alpha=b.alpha||0;this.duration=b.duration||0},Eh:M("duration"),start:function(a){if(a.target&&a.target.Za)if(this.duration==0)a.target.Za.alpha=this.alpha;else return{duration:this.duration,aR:a.target.Za.alpha}},update:function(a,b,c,d){if(a.target&&a.target.Za){b=Math.min(1,
b/c);a.target.Za.alpha=d.aR*(1-b)+this.alpha*b}}});ig.$i.CHANGE_SCALE=ig.xj.extend({Ia:0,Ma:0,duration:0,g6:s,s:new ig.u({attributes:{Ia:{c:"Number",d:"Target scale X value",ub:1},Ma:{c:"Number",d:"Target scale Y value",ub:1},duration:{c:"Number",d:"Transition time to target scale value"},g6:{c:"String",d:"Spline for transition",U:j,Y:KEY_SPLINES}}}),f:function(a,b){this.Ia=b.scaleX||0;this.Ma=b.scaleY||0;this.duration=b.duration||0;this.g6=KEY_SPLINES[b.spline||"LINEAR"]},Eh:M("duration"),start:function(a){if(a.target&&
a.target.Za)if(this.duration==0){a.target.Za.Ia=this.Ia;a.target.Za.Ma=this.Ma}else return{duration:this.duration,Zjb:a.target.Za.Ia,$jb:a.target.Za.Ma}},update:function(a,b,c,d){if(a.target&&a.target.Za){b=Math.min(1,b/c);b=this.g6.get(b);a.target.Za.Ia=d.Zjb*(1-b)+this.Ia*b;a.target.Za.Ma=d.$jb*(1-b)+this.Ma*b}}})});ig.G=j;
ig.I("impact.feature.effect.fx.fx-circle").J("impact.feature.effect.effect-sheet").H(function(){var a=Vec2.create(),b=Vec2.create(),c=Vec3.create(),d={},e=ig.xj.extend({Se:s,offset:{x:0,y:0,z:0},duration:0,Pt:w,WA:s,Ng:16,Tj:0,Nj:0,random:w,VD:0,lt:0,GW:w,wF:w,hF:w,km:w,f:function(a,b){this.Se=ig.lg.cy(a.nb,b);if(b.offset)this.offset=b.offset;this.WA=b.rotOffset||s;this.Ng=b.numParticles;this.random=b.random||w;this.VD=b.uniformRandom||0;this.Tj=b.centralAngle*Math.PI*2||Math.PI*2;this.Nj=b.startAngle!==
g?b.startAngle*Math.PI*2:-this.Tj/2;this.lt=b.startDist||0;this.GW=b.particleRotate||w;this.wF=b.flipRightParticles||w;this.hF=b.collision||w;this.km=b.alongZ||w;this.duration=b.duration||0;this.Pt=b.clockwise||w},start:function(a){if(this.duration)return{duration:this.duration,Xc:this.Ng};this.L_(a,0,this.Ng)},L_:function(e,k,l){var m=Vec2.Sa(a,0,-1),n=this.Tj==Math.PI*2?this.Ng:this.Ng-1;d.data=this.Se;d.friction=0.8;d.collision=this.hF;d.alongZ=this.km;for(d.flipX=e.Dd;k<l;k++){var o=n?k/n:0.5;
n&&this.VD?o=o+1/n*(Math.random()-0.5)*this.VD:this.random&&(o=Math.random());o=this.Nj+o*this.Tj;this.Pt||(o=-o);e.Dd&&(o=-o);var o=o+e.oc,t=Vec3.Sa(c,0,0,0);if(this.WA){Vec3.add(t,this.WA);Vec2.rotate(t,-e.oc)}this.offset&&Vec3.add(t,this.offset);var r=Vec2.rotate(m,-o,b),p=this.wF&&r.x<0;d.angle=this.GW?o:0;d.flipX=p;if(this.km)r.y=r.y*-1;this.Hu(e,t,d,r)}},update:function(a,b,c){this.L_(a,b,c)},Eh:function(){return this.duration+ig.lg.CF(this.Se)},Hu:F()});ig.$i.OFFSET_PARTICLE_CIRCLE=e.extend({wra:0,
AP:0,oh:s,xP:0,mX:w,inverse:w,CP:0,s:new ig.lg({Fo:"OffsetParticle",attributes:{Ng:{c:"Integer",d:"Number of particles to be spawned"},duration:{c:"Number",d:"Duration of particle spawning"},Pt:{c:"Boolean",d:"true if particles are to move clockwise",U:j},Tj:{c:"Number",d:"Circle range to spawn. 1=full circle",ub:1},Nj:{c:"Number",d:"Turn angle from which to start relative to view direciton. 0.25=quarter turn",U:j},lt:{c:"Number",d:"Start distance away from center"},random:{c:"Boolean",d:"If true, spawn particles randomly along circle",
U:j},VD:{c:"Number",d:"Only vary slightly along circle. Set intensity between 0-1",U:j},GW:{c:"Boolean",d:"If true, rotate particle with movement orientation",U:j},wF:{c:"Boolean",d:"If true, flip particles on the right side",U:j},km:{c:"Boolean",d:"If true, move particales along z instead of y",U:j},offset:{c:"Offset",d:"Offset to effect center",U:j},WA:{c:"Offset",d:"Offset rotated with effect direction",U:j},wra:{c:"Number",d:"Fixed move distance in pixels away from circle (or towards circle if inverse=true)"},
AP:{c:"Number",d:"Move distance variation in pixels",U:j},oh:{c:"String",d:"Keyspline of particle movement",Y:KEY_SPLINES},xP:{c:"Number",d:"Particles should rotate while moving away/torwards circle. 1=full circle rotation",U:j},mX:{c:"Boolean",d:"Set to true if particles should rotate with time rather than move distance",U:j},inverse:{c:"Boolean",d:"Set to true if particles should move towards center instead of away.",U:j},CP:{c:"Number",d:"Distance to be moved in orthogonal direction of circle",
U:j},hF:{c:"Boolean",d:"Set to true if particles should collide with environment"}}}),f:function(a,b){this.parent(a,b);this.wra=b.moveDist||0;this.AP=b.moveVariance||0;this.oh=KEY_SPLINES[b.keySpline]||s;this.xP=b.moveRotate||0;this.mX=b.rotateWithTime||w;this.inverse=b.inverse||w;this.CP=b.normalMoveDist||0},Hu:function(a,b,c,d){var e=this.lt+this.wra+(2*Math.random()-1)*this.AP;Vec2.length(d,e);c.startFactor=this.lt/e;c.moveOffset=d;c.keySpline=this.oh;c.moveRotate=this.xP;c.rotateWithTime=this.mX;
c.rotateGfx=this.GW;c.inverse=this.inverse;c.normalMoveDist=this.CP;a.Cm(ig.ya.OffsetParticle,b,c);delete c.normalMoveDist;delete c.moveOffset;delete c.keySpline;delete c.moveRotate;delete c.rotateWithTime;delete c.inverse}});e=e.extend({Hu:function(a,b,c,d){b.x=b.x+d.x*this.lt;this.km?b.z=b.z+d.z*this.lt:b.y=b.y+d.y*this.lt;c.vel=Vec2.length(d,this.Yr+Math.random()*(this.rh-this.Yr));this.vva(a,b,c);delete c.vel},vva:F()});ig.$i.PARTICLE_CIRCLE=e.extend({Yr:50,rh:100,s:new ig.lg({Fo:"Particle",attributes:{Ng:{c:"Integer",
d:"Number of particles to be spawned"},duration:{c:"Number",d:"Duration of particle spawning"},Pt:{c:"Boolean",d:"true if particles are to move clockwise",U:j},Tj:{c:"Number",d:"Circle range to spawn. 1=full circle",ub:1},Nj:{c:"Number",d:"Turn angle from which to start relative to view direciton. 0.25=quarter turn",U:j},lt:{c:"Number",d:"Start distance away from center"},random:{c:"Boolean",d:"If true, spawn particles randomly along circle",U:j},VD:{c:"Number",d:"Only vary slightly along circle. Set intensity between 0-1",
U:j},GW:{c:"Boolean",d:"If true, rotate particle with movement orientation",U:j},wF:{c:"Boolean",d:"If true, flip particles on the right side",U:j},km:{c:"Boolean",d:"If true, move particles along z instead of y",U:j},offset:{c:"Offset",d:"Offset to effect center",U:j},WA:{c:"Offset",d:"Offset rotated with effect direction",U:j},Yr:{c:"Number",d:"Minimum amount of speed",U:j},rh:{c:"Number",d:"Maximum amount of speed",U:j},hF:{c:"Boolean",d:"Set to true if particles should not collide with environment",
U:j}}}),f:function(a,b){this.parent(a,b);this.Yr=b.minSpeed||0;this.rh=b.maxSpeed||0},vva:function(a,b,c){a.Cm(ig.ya.Particle,b,c)}});ig.$i.DEBRIS_CIRCLE=e.extend({Yr:50,rh:100,bW:50,ZV:100,se:0,Xh:g,s:new ig.lg({Fo:"DeprisParticle",attributes:{Ng:{c:"Integer",d:"Number of particles to be spawned"},duration:{c:"Number",d:"Duration of particle spawning"},Pt:{c:"Boolean",d:"true if particles are to move clockwise",U:j},Tj:{c:"Number",d:"Circle range to spawn. 1=full circle",ub:1},Nj:{c:"Number",d:"Turn angle from which to start relative to view direciton. 0.25=quarter turn",
U:j},lt:{c:"Number",d:"Start distance away from center"},random:{c:"Boolean",d:"If true, spawn particles randomly along circle",U:j},VD:{c:"Number",d:"Only vary slightly along circle. Set intensity between 0-1",U:j},GW:{c:"Boolean",d:"If true, rotate particle with movement orientation",U:j},wF:{c:"Boolean",d:"If true, flip particles on the right side",U:j},km:{c:"Boolean",d:"If true, move particales along z instead of y",U:j},offset:{c:"Offset",d:"Offset to effect center",U:j},WA:{c:"Offset",d:"Offset rotated with effect direction",
U:j},Yr:{c:"Number",d:"Minimum amount of speed",U:j},rh:{c:"Number",d:"Maximum amount of speed",U:j},bW:{c:"Number",d:"Minimum amount of z speed",U:j},ZV:{c:"Number",d:"Maximum amount of z speed",U:j},se:{c:"Number",d:"Gravity factor of debris",U:j},Xh:{c:"Number",d:"Z bounciness of debris",U:j},cW:{c:"Number",d:"mininum zVel when bouncing on Ground",U:j},hF:{c:"Boolean",d:"Set to true if particles should not collide with environment"}}}),f:function(a,b){this.parent(a,b);this.Yr=b.minSpeed||0;this.rh=
b.maxSpeed||0;this.bW=b.minZSpeed||0;this.ZV=b.maxZSpeed||0;this.se=b.zGravityFactor||s;if(b.zBounciness!=g)this.Xh=b.zBounciness},vva:function(a,b,c){var d=Math.random();c.zVel=this.bW*d+this.ZV*(1-d);c.zGravityFactor=this.se;c.zBounciness=this.Xh;a.Cm(ig.ya.DebrisParticle,b,c);delete c.zVel;delete c.zGravityFactor}})});ig.G=j;
ig.I("impact.feature.effect.fx.fx-homing").J("impact.feature.effect.effect-sheet","impact.feature.effect.entities.effect-particle").H(function(){var a=Vec2.create();ig.$i.SHOOT_HOMING_PARTICLE=ig.xj.extend({s:new ig.lg({Fo:"Particle",attributes:{duration:{c:"Number",d:"Time over which to spawn particles"},Ng:{c:"Number",d:"How many homing particles to spawn"},pO:{c:"String",d:"How particle should fly between targets",Y:ig.Kha},inverse:{c:"Boolean",d:"If true, fly target1->target2. Otherwise fly ftarget2->target1"},
Ura:{c:"NumberVary",d:"How far particle should fly in normal xy direction"},SMa:{c:"Number",d:"How to scale radius along Z direction. 1=normal length",vnb:1},TMa:{c:"NumberVary",d:"Angle variance relative to radius pointing upwards. 1= offset radius will be along half circle"},UP:{c:"NumberArray",d:"Relative duration for each phase of the fly type. Values must add to 1"}}}),Se:s,f:function(a,c){this.duration=c.duration||0;this.Se=ig.lg.cy(a.nb,c);this.Ng=c.numParticles||1;this.pO=c.flyType;this.inverse=
c.inverse||w;this.Ura=c.offsetRadius||0;this.SMa=c.offRadiusZScale||0;this.TMa=c.offsetAngle||0;this.UP=c.phaseDurations},start:function(a){if(this.duration)return{duration:this.duration,Xc:this.Ng};this.L_(a,0,this.Ng)},L_:function(b,c,d){for(var e={data:this.Se,ownerEffect:b,normalXY:0,normalZ:0,phaseDurations:this.UP,flyType:this.pO,inverse:this.inverse};c<d;c++){var h=Vec2.Sa(a,0,1);Vec2.rotate(h,(Math.random()-0.5)*Math.PI*this.TMa);e.normalXY=ig.Ra.rba(this.Ura)*h.x;e.normalZ=ig.Ra.rba(this.Ura)*
h.y*this.SMa;b.Cm(ig.ya.HomingParticle,s,e)}},update:function(a,c,d){this.L_(a,c,d)},Eh:function(){return this.duration+ig.lg.CF(this.Se)}})});ig.G=j;
ig.I("impact.feature.effect.fx.fx-light").J("impact.feature.effect.effect-sheet").H(function(){ig.$i.LIGHT=ig.xj.extend({size:s,fadeIn:0,fadeOut:0,duration:0,bn:1,TU:g,s:new ig.u({attributes:{size:{c:"String",d:"Size of emitting light",Y:ig.cl},fadeIn:{c:"Number",d:"Fade in time of light"},fadeOut:{c:"Number",d:"Fade out time of light"},duration:{c:"Number",d:"Duration of light source. -1=forever"},bn:{c:"Number",d:"Max alpha intensity of light",U:j},TU:{c:"Boolean",d:"True if light should additionally glow (lighter rendering addition)"}}}),
f:function(a,b){this.size=ig.cl[b.size||"XS"];this.fadeIn=b.fadeIn||0;this.fadeOut=b.fadeOut||0;this.duration=b.duration||0;this.bn=b.maxAlpha||1;this.TU=b.glow},start:function(a){a=new ig.Qw(a,this.size,this.fadeIn,this.fadeOut,this.duration,this.bn,this.TU);ig.ph.cx(a)},Eh:function(){return this.duration>=0?this.duration+this.fadeIn+this.fadeOut:0}});ig.$i.DARKNESS=ig.xj.extend({fadeIn:0,fadeOut:0,duration:0,YO:1,s:new ig.u({attributes:{fadeIn:{c:"Number",d:"Fade in time of darkness"},fadeOut:{c:"Number",
d:"Fade out time of darkness"},duration:{c:"Number",d:"Duration of darkness. -1=forever"},YO:{c:"Number",d:"Intensity of darkness"}}}),f:function(a,b){this.fadeIn=b.fadeIn||0;this.fadeOut=b.fadeOut||0;this.duration=b.duration||0;this.YO=b.intensity||1},start:function(a){var b=new ig.$R;b.Wua(a,this.YO,this.duration,this.fadeIn,this.fadeOut);ig.ph.$_(b)},Eh:function(){return this.duration>=0?this.duration+this.fadeIn+this.fadeOut:0}})});ig.G=j;
ig.I("impact.feature.effect.fx.fx-line").J("impact.feature.effect.effect-sheet").H(function(){ig.$i.COPY_SPRITE=ig.xj.extend({Se:s,color:s,nm:1,offset:{x:0,y:0,z:0},s:new ig.lg({Fo:"CopyParticle",attributes:{color:{c:"String",d:"Color to combine with sprite copy.",U:j},nm:{c:"String",d:"Alpha of pverlay color",U:j},offset:{c:"Offset",d:"offset of particle to target",U:j},rK:{c:"Boolean",d:"If true, don't apply lighter color but regular color overlay"}}}),f:function(a,b){this.Se=ig.lg.cy(s,b);this.Se.DK=
this.Se.DK||1;this.color=b.color||s;this.nm=b.colorAlpha||1;this.offset=b.offset||this.offset;this.rK=b.noLighter||w},start:function(a){a.Cm(ig.ya.CopyParticle,s,{entity:a.target,color:this.color,colorAlpha:this.nm,data:this.Se,offset:this.offset,spriteFilter:a.Up,noLighter:this.rK})}});ig.$i.LASER_SPRITE=ig.xj.extend({Se:s,s:new ig.lg({Fo:"LaserParticle",attributes:{pattern:{c:"TileSheet",d:"Pattern to be used for animation. Will be repeated in y direction",sd:j},Vrb:{c:"Integer",d:"How many tiles in y dimension",
ub:1},qq:{c:"AnimFrames",d:"Frames of sheet animation",U:j},Ql:{c:"Number",d:"Time per frame (in seconds)"},yfa:{c:"Number",d:"Speed by which gfx will be shifted along laser direction (pixels per second)"},offset:{c:"Offset",d:"offset of particle to target",U:j},LO:{c:"Boolean",d:"If true, display laser as gui sprite"},Ze:{c:"String",d:"Render mode of Sprite",U:j,Y:["source-over","lighter"],Orb:j}}}),f:function(a,b){this.Se=ig.lg.cy(s,b);this.Se.DK=this.Se.DK||1;this.wm=new ig.cv(b.pattern.src,ig.ue.Pf.tE,
b.pattern.width,b.pattern.height,b.pattern.offX,b.pattern.offY,b.pattern.xCount||1,b.patternYCount||1);this.qq=b.animFrames||[0];this.Ql=b.frameTime||0.1;this.yfa=b.shiftSpeed||0;this.offset=b.offset||s;this.LO=b.guiSprites;this.Ze=b.renderMode},Qa:function(){this.wm&&this.wm.zc()},start:function(a){a.Cm(ig.ya.LaserParticle,s,{data:this.Se,ownerEffect:a,patternSheet:this.wm,animFrames:this.qq,frameTime:this.Ql,shiftSpeed:this.yfa,offset:this.offset,guiSprites:this.LO,renderMode:this.Ze})}})});
ig.G=j;
ig.I("impact.feature.effect.fx.fx-rhombus").J("impact.feature.effect.effect-sheet").H(function(){var a=Vec3.create(),b={};ig.$i.PARTICLE_RHOMBUS=ig.xj.extend({Se:s,duration:0,Ng:0,scale:0,qta:0,offset:{x:0,y:0,z:0},xra:0,AP:0,tta:w,oh:s,km:s,bxa:0,s:new ig.lg({Fo:"RhombusParticle",attributes:{Ng:{c:"Number",d:"Amount of particles to spawn per 32 pixel line length and second",ub:1},duration:{c:"Number",d:"Duration in which to spawn particles"},scale:{c:"Number",d:"How much of the entity bounds should be covered. 0.5= half of the bounds are covered. 1.0=all the bounds",U:j},
qta:{c:"Number",d:"Number of pixel substracted from radius",U:j},xra:{c:"Number",d:"Move distance of particles in pixels"},AP:{c:"Number",d:"Move variance in pixels. Added +- to distance",U:j},tta:{c:"Boolean",d:"If true, randomly flip direction of particle",U:j},bxa:{c:"Number",d:"zRange randomly added to zPos when spawing",U:j},oh:{c:"String",d:"Keyspline of particle movement",Y:KEY_SPLINES},km:{c:"Boolean",d:"If true, move particles along z instead of y",U:j},offset:{c:"Offset",d:"Offset to effect center",
U:j}}}),f:function(a,b){this.Se=ig.lg.cy(a.nb,b);this.duration=b.duration||0;this.scale=b.scale||0;this.qta=b.radiusSub||0;b.offset&&Vec3.assign(this.offset,b.offset);this.Ng=b.numParticles||2;this.xra=b.moveDistance||1;this.AP=b.moveVariance||0;this.oh=KEY_SPLINES[b.keySpline]||s;this.km=b.Boolean||w;this.tta=b.randomDirFlip||w;this.bxa=b.zRange||0},start:function(a){if(a.target){a=a.target.b.size.x;if(!(a<0)){var a=a/2*this.scale-this.qta,b=4*Math.sqrt(a*a+a*a);return{duration:this.duration,Xc:Math.round(this.Ng*
b/32*this.duration),jg:a,vhb:b}}}},Eh:function(){return this.duration+ig.lg.CF(this.Se)},update:function(c,d,e,h){b.data=this.Se;b.radius=h.jg;b.alongZ=this.km;for(b.keySpline=this.oh;d<e;++d){var k=Vec3.assign(a,this.offset);k.z=k.z+Math.floor(this.bxa*Math.random());b.startFactor=Math.random();b.moveFactor=(this.xra+(2*Math.random()-1)*this.AP)/h.vhb;this.tta&&Math.random()>=0.5&&(b.moveFactor=-b.moveFactor);c.Cm(ig.ya.RhombusParticle,k,b)}}})});ig.G=j;
ig.I("impact.feature.effect.fx.fx-wipe").J("impact.feature.effect.effect-sheet").H(function(){var a={NORTH:1,SOUTH:3};ig.$i.WIPE=ig.xj.extend({dir:0,PG:0,nJ:0,duration:0,s:new ig.u({attributes:{dir:{c:"String",d:"Wipe direction",Y:a},PG:{c:"Number",d:"Start wipe position (0-1). 1=all wiped away."},nJ:{c:"Number",d:"End wipe position (0-1). 1=all wiped away."},duration:{c:"Number",d:"Duration of wipe."}}}),f:function(b,c){this.dir=a[c.dir]||a.NORTH;this.PG=c.startValue||0;this.nJ=c.endValue||0;this.duration=
c.duration||0},Eh:M("duration"),start:function(a){if(a.target){var b={duration:0,left:-1E3,right:-1E3,top:-1E3,bottom:-1E3};ig.Oj.wba(b,a.target);b.duration=this.duration;return b}},update:function(b,c,d,l){if(b.target){var m=b.target.b,n=m.i.x-l.left,o=m.i.x+l.right,t=m.i.y-m.i.z-l.top,l=m.i.y-m.i.z+l.bottom,c=Math.min(1,c/d),c=this.PG+c*(this.nJ-this.PG);switch(this.dir){case a.NORTH:t=t+c*(l-t);break;case a.SOUTH:l=l-c*(l-t)}this.BPa(b.target,n,o,t,l,b.Up)}},finish:function(a){this.nJ==0&&ig.Oj.Ima(a.target)},
BPa:function(a,b,c,d,m,n){for(var o=a.Ta,t=o.length;t--;){var r=o[t];if(!(n!==s&&n!=t)){var p=Math.round(Math.max(0,d-(r.i.y-r.i.z-r.size.z))),q=Math.round(Math.max(0,r.i.y-r.i.z+r.size.y-m));r.ht(p,q)}}a=a.b.xl;if(a.length>0)for(t=a.length;t--;)this.BPa(a[t].P,b,c,d,m,n)},M6a:function(a){for(var b=a.Ta,c=b.length;c--;)b[c].ht(0,0);a=a.b.xl;if(a.length>0)for(c=a.length;c--;)this.M6a(a[c].P)}});var b={},c={},d=Vec3.create();ig.$i.WIPE_PARTICLES=ig.xj.extend({Se:s,dir:0,PG:0,nJ:0,duration:0,Ng:0,jK:Vec2.create(),
oh:s,inverse:w,s:new ig.lg({Fo:"OffsetParticle",attributes:{dir:{c:"String",d:"Wipe direction",Y:a},PG:{c:"Number",d:"Start wipe position (0-1). 1=all wiped away."},nJ:{c:"Number",d:"End wipe position (0-1). 1=all wiped away."},duration:{c:"Number",d:"Duration of wipe."},Ng:{c:"Integer",d:"Number of particles to spawned per second and 32 pixel target width"},jK:{c:"Vec2",d:"Move offset of individual particles",U:j},inverse:{c:"Boolean",d:"True if particle should move in reverse",U:j},oh:{c:"String",
d:"KeySpline for moveOffset movement.",Y:KEY_SPLINES,U:j}}}),f:function(b,c){this.Se=ig.lg.cy(b.nb,c);this.dir=a[c.dir]||a.NORTH;this.PG=c.startValue||0;this.nJ=c.endValue||0;this.duration=c.duration||0;this.Ng=c.numParticles||2;c.moveOffset&&Vec2.assign(this.jK,c.moveOffset);this.oh=KEY_SPLINES[c.keySpline]||s;this.inverse=c.inverse||w},start:function(a){if(a.target){ig.Oj.wba(b,a.target);a=b.left+b.right;return{duration:this.duration,Xc:this.Ng*a/32*this.duration,Vi:-b.left,Bg:b.bottom,width:a,
height:b.top+b.bottom}}},Eh:function(){return this.duration+ig.lg.CF(this.Se)},update:function(b,h,k,l){c.data=this.Se;c.keySpline=this.oh;c.inverse=this.inverse;c.alongZ=j;for(c.moveOffset=this.jK;h<k;++h){var m=l.Xc>1?h/(l.Xc-1):0,m=this.PG+m*(this.nJ-this.PG);this.dir==a.NORTH&&(m=1-m);var n=Vec3.Sa(d,0,0,0);if(this.inverse){var o=ig.lg.U$a(this.Se);n.z=n.z+l.height*o/this.duration}n.x=n.x+(l.Vi+l.width*0.1+Math.random()*l.width*0.8);n.y=n.y+l.Bg;n.z=n.z+m*l.height;b.Cm(ig.ya.OffsetParticle,n,
c,j)}}})});ig.G=j;
ig.I("impact.feature.effect.plug-in").J("impact.feature.effect.entities.effect-previewer","impact.feature.effect.effect-sheet","impact.feature.effect.effect-steps","impact.feature.effect.fx.fx-basic","impact.feature.effect.fx.fx-box","impact.feature.effect.fx.fx-color","impact.feature.effect.fx.fx-circle","impact.feature.effect.fx.fx-homing","impact.feature.effect.fx.fx-light","impact.feature.effect.fx.fx-line","impact.feature.effect.fx.fx-rhombus","impact.feature.effect.fx.fx-wipe").H(function(){window.Yc&&wm.pj.push("impact.feature.effect.editors.effect-editor")});
ig.G=j;
ig.I("impact.feature.gui.gui").J("impact.base.image","impact.base.game","impact.feature.storage.storage").H(function(){function a(a,b){return a.zIndex-b.zIndex}function b(a,b){switch(a.align.x){case ig.k.fb:return a.i.x;case ig.k.ha:return b-a.size.x-a.i.x;case ig.k.za:return Math.floor(b/2-a.size.x/2+a.i.x)}return 0}function c(a,b){switch(a.align.y){case ig.k.W:return a.i.y;case ig.k.xb:return b-a.size.y-a.i.y;case ig.k.gb:return Math.floor(b/2-a.size.y/2+a.i.y)}return 0}function d(a){for(var b=0;b<
a.length;++b){a[b].T.Fg&&a[b].T.Fg();d(a[b].children)}}function e(a,b){if(b!=a.Il){a.Il=b;a.T.Pda&&a.T.Pda(b)}}function h(a,d){var e=d.kw,k;if(e instanceof ig.Qha){a.Ga=d.Ee||!ig.t.paused;k=ig.g.width;e=ig.g.height}else{h(a,e);a.x=a.x+e.scroll.x;a.y=a.y+e.scroll.y;k=e.size.x;e=e.size.y}a.x=a.x+b(d,k);a.y=a.y+c(d,e)}ig.$l.T=j;var k=[],l=[],m=ig.ra.extend({ZN:[],ia:function(a,b,c,d,e,h,k,l,m){return this.ax().yua(a,b,c,d,e,h,k,l,m)},PEa:function(a,b,c,d,e,h,k,l){return this.ax().qib(a,b,c,d,e,h,k,l)},
G5a:function(a,b,c,d,e){return this.ax().Zib(a,b,c,d,e)},OEa:function(a,b,c){return this.ax().pib(a,b,c)},Ec:function(a,b,c,d,e){return this.ax().Te(a,b,c,d,e)},Rj:function(a,b,c,d,e,h,k){return this.ax().aQa(a,b,c,d,e,h,k)},aFa:function(a,b,c){return this.ax().fa(a,b,c)},L6a:function(){for(;this.ZN.length;){var a=this.ZN.pop();a&&a.Tb()}},ax:function(){var a=o.get(ig.VVa);this.ZN.push(a);return a},ho:function(){var a=o.get(ig.ZVa);this.ZN.push(a);return a},Po:function(){this.ZN.push(s)},Xa:function(){for(var a=
ig.g,b=a.context,c=a.scale,d=0,e=0,h=this.ZN,k=h.length,m=0;m<k;++m){var n=h[m];if(n)if(n.Xa)n.Xa(d,e);else{if(n.transform){l.push(n);if(n.DKa()){n.transform(d,e);d=e=0}else{d=d+a.Ae(n.translate.x)/c;e=e+a.Ae(n.translate.y)/c}if(n.alpha!=1){n.dOa=b.globalAlpha;b.globalAlpha=b.globalAlpha*n.alpha}}}else{(n=l.pop())||f(Error("Gui Draw: tried to undo non existing transform. Too many undos?"));if(n.DKa()){b.restore();d=n.pea.x;e=n.pea.y}else{d=d-a.Ae(n.translate.x)/c;e=e-a.Ae(n.translate.y)/c}if(n.alpha!=
1)b.globalAlpha=n.dOa}}l.length>0&&f(Error("Exited gui draw with transform remaining. Forgot to undo transform"))}}),n=0;ig.Qha=ig.sf.extend({Rx:[],ky:{},gua:w,bm:new m,gda:[],MT:s,f:function(){this.parent("GUI");ig.Cc.dg(this)},fib:L("MT"),Rq:function(a){var b={},c;for(c in this.ky){var d=this.ky[c].a.dK;b[c]={settings:d.Fi,type:d.type}}a.gui=b},Qq:function(a){var a=a.gui,b;for(b in a){var c=a[b],c=this.$ma(b,c.type,c.settings,j);this.sva(c)}},oF:500,$s:function(){this.gua=w;this.bm.L6a();this.V4a();
n=0;this.GEa(0,0,ig.g.width,ig.g.height,k,j,this.Rx,0,0,1,j);ig.t.Tca=this.gua},iea:500,Lda:function(){ig.$l.T&&this.bm.Xa()},MP:function(){d(this.Rx)},nj:function(){for(var a in this.ky)this.ky[a].remove();this.ky={};for(a=this.Rx.length;a--;)if(this.Rx[a].cr){this.Rx[a].th();this.Rx.splice(a,1)}},krb:function(){console.s2("GUI Array Elements:");for(var a in ig.Ji)ig.Ji[a]&&console.log(a);console.groupEnd()},$ma:function(a,b,c,d){var e=ig.Ji[b];if(!e)return s;e=new e(c);e.a.dK={name:a,type:b,Fi:c,
M1:d||w};return e},sva:function(a){var b=a.a.dK,c=ig.Ji[b.type];this.ky[b.name]=a;if(c.bRa){a.a.qj=w;c.bRa(a)}else this.Mc(a)},VHa:function(a){if(a)a.a.kw?a.a.dK.M1=j:a.Qa&&a.Qa()},Mc:function(b){b=b.a;b.qj=w;if(this.Rx.indexOf(b)==-1){this.Rx.push(b);this.Rx.sort(a);b.dn(this)}},WQa:function(){this.Rx.sort(a)},Kta:function(a){this.Rx.xf(a.a)},V4a:function(){var a,b;if(this.MT){a=this.MT.to();b=this.MT.Vm()}else{a=ig.input.Sh.x;b=ig.input.Sh.y}for(var c=s,d=this.MT&&this.MT.JIa(),e=0;e<this.gda.length;++e){var k=
this.gda[e];if(k.Il){if(!k.kf){k.kf={x:0,y:0,uc:k.size.x,Gc:k.size.y,Ga:w,zIndex:0};h(k.kf,k)}var l=k.kf;if(l.Ga){var m=w;if(m=k.T.PF?k.T.PF():l.x<=a&&l.x+l.uc>a&&l.y<=b&&l.y+l.Gc>b)if(c)if(c.kf.zIndex<k.kf.zIndex){c.hda=w;c.T.wu&&c.T.wu(w,w);c=k}else m=w;else c=k;if(!m){k.hda=m;k.T.wu&&k.T.wu(w,w)}}}}if(c){c.hda=j;c.T.wu&&c.T.wu(j,d)}},GEa:function(a,d,h,k,l,m,o,u,v,A,C){for(var B=l.length>0,E=w,I=0;I<o.length;++I){var K,H,G,J;if(B){K=l[l.length-4];H=l[l.length-3];G=l[l.length-2];J=l[l.length-1]}var D=
o[I],N=C&&(o!=this.Rx||D.Ee||!ig.t.paused);if(N&&D.Su()){D.th();o.splice(I,1);I--;if(D.dK){this.ky[D.dK.name]==D.T&&delete this.ky[D.dK.name];D.dK.M1&&D.T.Qa&&D.T.Qa()}}else{var O=N;if(N&&(D.Il||D.TC)){O=w;D.T.update()}var U=D.size.x,Q=D.size.y,W=a,T=d,X=u,V=v,W=W+b(D,h),T=T+c(D,k),S=D.Id,P=A*S.alpha;if(S.alpha==1&&D.y5)ig.T.gua=j;var W=W+(D.align.x==ig.k.ha?-S.offsetX:S.offsetX),T=T+(D.align.y==ig.k.xb?-S.offsetY:S.offsetY),X=X+W,V=V+T,Z=m&&P>0.01&&S.Ia!=0&&S.Ma!=0;if(Z&&B){K=K-W;H=H-T;if(S.Ia!=
1||S.Ma!=1||S.oc!=0){K=K-D.cb.x;H=H-D.cb.y;K=K/Math.abs(S.Ia);H=H/Math.abs(S.Ma);K=K+D.cb.x;H=H+D.cb.y;G=G/Math.abs(S.Ia);J=J/Math.abs(S.Ma)}Z=!(0>=K+G||0>=H+J||U<=K||Q<=H)}if(D.kf){n++;D.kf.x=X;D.kf.y=V;D.kf.uc=D.size.x;D.kf.Gc=D.size.y;D.kf.Ga=N;D.kf.zIndex=n;if(B){if(K>0){D.kf.x=D.kf.x+K;D.kf.uc=D.kf.uc-K}if(H>0){D.kf.y=D.kf.y+H;D.kf.Gc=D.kf.Gc-H}D.kf.uc=Math.min(D.kf.uc,G+(K<0?K:0));D.kf.Gc=Math.min(D.kf.Gc,J+(H<0?H:0))}}O&&Z&&D.T.update();if(D.p9.Zfa||Z||D.Il||D.TC){O=this.bm.ho();O.ufa(W,T);
O.tw(S.Ia,S.Ma);O.rb(D.cb.x,D.cb.y);O.vX(S.oc);O.wd(P);D.clip&&O.bib(D.size.x,D.size.y);W=D.clip;if(Z&&(B||W))if(W)if(B){var T=Math.max(K,0),S=Math.max(H,0),O=Math.min(K+G,U),ea=Math.min(H+J,Q);l.push(T,S,O-T,ea-S)}else l.push(0,0,U,Q);else l.push(K,H,G,J);e(D,Z);if(D.Vc>0){D.Vc!=1&&this.bm.ho().wd(D.Vc);D.T.va(this.bm);D.Vc!=1&&this.bm.Po()}N=this.GEa(D.scroll.x,D.scroll.y,U,Q,l,Z,D.children,X,V,P,N);D.p9.Zfa=D.Os()||N;E=E||D.p9.Zfa;if(Z&&(B||W))l.length=l.length-4;this.bm.Po()}}}return E},X2a:function(a,
b,c,d,e){for(var h=ig.g.context,k=0;k<e.length;++k){var l=e[k],m=a,n=b;switch(l.align.x){case ig.k.fb:m=m+l.i.x;break;case ig.k.ha:m=m+(c-l.size.x-l.i.x);break;case ig.k.za:m=m+Math.floor(c/2-l.size.x/2+l.i.x)}switch(l.align.y){case ig.k.W:n=n+l.i.y;break;case ig.k.xb:n=n+(d-l.size.y-l.i.y);break;case ig.k.gb:n=n+Math.floor(d/2-l.size.y/2+l.i.y)}var o=l.Id;if(l.Il){var m=m+(l.align.x==ig.k.ha?-o.offsetX:o.offsetX),n=n+(l.align.y==ig.k.xb?-o.offsetY:o.offsetY),B=h.globalAlpha,E=B*o.alpha,I=E*l.Vc,
K=w;if(l.clip||o.Ia!=1||o.Ma!=1||o.oc!=0){K=j;h.save();h.translate(ig.g.Ae(m),ig.g.Ae(n));m=n=0;if(l.clip){h.beginPath();h.rect(0,0,l.size.x,l.size.y);h.clip()}if(o.Ia!=1||o.Ma!=1||o.oc!=0){h.translate(ig.g.Ae(l.cb.x),ig.g.Ae(l.cb.y));h.rotate(o.oc);h.scale(o.Ia,o.Ma);h.translate(-ig.g.Ae(l.cb.x),-ig.g.Ae(l.cb.y))}}o=l.Oob;if(I>0&&o.length>0){if(B!=I)h.globalAlpha=I;for(var H=0;H<o.length;++H)o[H].Xa(m,n);if(I!=E)h.globalAlpha=E}else if(B!=E)h.globalAlpha=E;this.X2a(l.scroll.x+m,l.scroll.y+n,l.size.x,
l.size.y,l.children);if(B!=E)h.globalAlpha=B;K&&ig.g.context.restore()}}},RBa:function(a){this.gda.push(a)},RDa:function(a){this.gda.xf(a)}});ig.wf(function(){return ig.T=new ig.Qha});ig.Ji={};ig.k={};ig.k.W=1;ig.k.gb=2;ig.k.xb=3;ig.k.fb=4;ig.k.za=5;ig.k.ha=6;ig.Oha={LEFT:ig.k.fb,RIGHT:ig.k.ha,CENTER:ig.k.za};ig.Pha={TOP:ig.k.W,BOTTOM:ig.k.xb,CENTER:ig.k.gb};ig.WVa=ig.ra.extend({i:Vec2.create(),size:{x:1,y:1},cb:{x:0,y:0},scroll:{x:0,y:0},align:{x:ig.k.fb,y:ig.k.W},kw:s,children:[],ida:w,kf:s,hda:w,
Vc:1,zIndex:0,Ee:w,TC:w,y5:w,dR:s,clip:w,cr:w,N:{DEFAULT:{state:{},time:0.5,p:KEY_SPLINES.EASE}},T:s,Id:{offsetX:0,offsetY:0,alpha:1,Ia:1,Ma:1,oc:0},fj:"",vb:{bY:s,RC:s,n:0,Fa:0,p:s},qj:w,Pn:s,Yk:s,Il:w,p9:{Zfa:w},dK:s,ZN:[],f:function(a){this.T=a;if(a.N){this.N=a.N;this.j("DEFAULT",j)}},gL:function(a){if(this.ida!=a){this.ida=a;this.kw&&(a?ig.T.RBa(this):ig.T.RDa(this))}},dn:function(a){if(this.kw!=a){this.kw=a;e(this,a instanceof ig.Qha?j:a.Il);this.ida&&ig.T.RBa(this);this.T.dn&&this.T.dn();for(a=
this.children.length;a--;)this.children[a].dn(this)}},th:function(){if(this.kw){if(this.ida){this.kf=s;ig.T.RDa(this)}for(var a=this.children.length;a--;)this.children[a].th();this.T.th&&this.T.th();this.kw=s}},Poa:function(a){return this.children.indexOf(a)},Ooa:function(a){return this.children[a]},Ila:function(a){a.qj=w;this.children.xf(a);a.th();this.children.push(a);this.kw&&a.dn(this)},Nbb:function(a,b){a.qj=w;this.children.xf(a);a.th();this.children.splice(b,0,a);this.kw&&a.dn(this)},Egb:function(a){a.qj=
w;this.children.xf(a);a.th()},Fgb:function(a){a=this.children.splice(a,1)[0];a.qj=w;a.th();return a},rg:function(){for(var a=this.children.length;a--;){this.children[a].th();this.children[a].qj=w}this.children.length=0},j:function(a,b,c,d,e){var h=this.N[a];h||f(Error("No Transition found with name: "+a));if(!this.qj){this.qj=c||w;this.dR=s;if(!b)for(var k=this.kw;k&&k!=ig.T;){k.p9.Zfa=j;k=k.kw}if(this.fj==a){if(d)this.dR=d;this.vb.n=Math.max(this.vb.n,b?h.time:0-(e||0))}else{this.fj=a;this.lEa(h.state,
h.time,h.p,b,c,d,e)}}},pab:function(){return!this.vb.Fa?1:this.vb.n/this.vb.Fa},vaa:function(a,b,c,d,e,h,k){if(!this.qj){this.qj=e||w;this.fj=s;this.lEa(a,b,c,d,e,h,k)}},tw:function(a,b){this.Id.Ia=a;this.Id.Ma=b},lEa:function(a,b,c,d,e,h,k){if(h)this.dR=h;this.vb.RC=ig.copy(this.Id);var e={offsetX:0,offsetY:0,alpha:1,Ia:1,Ma:1,oc:0},l;for(l in a)e[l]=a[l];this.vb.bY=e;this.vb.Fa=b;this.vb.n=d?b:0-(k||0);this.vb.p=c;if(d)this.Id=ig.copy(e)},bd:function(a,b,c,d,e,h,k){h&&(c=Math.max(c,this.Pn?this.Pn.time-
this.Pn.n:0));if(!c||c<=0){this.i.x=a;this.i.y=b;this.Pn=s}else this.Pn={LD:this.i.x,Iva:this.i.y,x:a,y:b,time:c,p:d||KEY_SPLINES.EASE_IN_OUT,n:0-(e||0),Vt:k}},gj:function(a,b,c,d,e){if(!c||c<=0||Math.abs(a-this.scroll.x)<ig.xe.yh&&Math.abs(b-this.scroll.y)<ig.xe.yh){this.scroll.x=a;this.scroll.y=b;this.Yk=s}else this.Yk={LD:this.scroll.x,Iva:this.scroll.y,x:a,y:b,time:c,p:d||KEY_SPLINES.EASE_IN_OUT,n:0,Vt:e||s}},Os:function(){return!!this.vb.bY},qpa:function(){return(this.vb.n/this.vb.Fa).Vb(0,1)},
jL:function(a,b,c){this.N[a]&&(this.N[a].state[b]=c)},Su:function(){if(this.Pn){this.Pn.n=this.Pn.n+ig.g.Da;var a=Math.min(1,Math.max(0,this.Pn.n)/this.Pn.time),a=this.Pn.p.get(a);this.i.x=this.Pn.LD*(1-a)+this.Pn.x*a;this.i.y=this.Pn.Iva*(1-a)+this.Pn.y*a;if(a==1){this.Pn.Vt&&this.Pn.Vt();this.Pn=s}}if(this.Yk){this.Yk.n=this.Yk.n+ig.g.Da;a=Math.min(1,this.Yk.n/this.Yk.time);a=this.Yk.p.get(a);this.scroll.x=this.Yk.LD*(1-a)+this.Yk.x*a;this.scroll.y=this.Yk.Iva*(1-a)+this.Yk.y*a;if(a==1){this.Yk.Vt&&
this.Yk.Vt();this.Yk=s}}if(this.vb.bY){this.vb.n=this.vb.n+ig.g.Da;var a=(this.vb.n/this.vb.Fa).Vb(0,1),a=this.vb.p.get(a),b;for(b in this.vb.bY)this.Id[b]=(1-a)*this.vb.RC[b]+a*this.vb.bY[b];if(a==1){this.vb.bY=s;if(this.dR){a=this.dR;this.dR=s;a()}}else return w}return this.qj}});ig.VVa=ig.ra.extend({i:{x:0,y:0},size:{x:0,y:0},src:{x:0,y:0},Nv:s,gu:0,hd:{x:w,y:w},alpha:1,F$:"source-over",l:function(a,b){this.i.x=a;this.i.y=b;return this},v:function(a,b){this.size.x=a;this.size.y=b;return this},
mQa:function(a,b){this.src.x=a;this.src.y=b;return this},wd:function(a){this.alpha=a;return this},Te:function(a,b,c,d,e){this.Nv=a;this.gu=3;this.l(b,c);this.v(d,e);return this},dh:function(a){this.F$=a||"source-over"},yua:function(a,b,c,d,e,h,k,l,m){window.aj&&!(a instanceof ig.$||a instanceof ig.Uya)&&f(Error("Invalid setGfx Call. gfx is not instance of ig.Image"));this.Nv=a;this.gu=1;this.l(b,c);this.mQa(d,e);this.v(h,k);this.hd.x=l||w;this.hd.y=m||w;return this},qib:function(a,b,c,d,e,h,k,l){window.aj&&
!(a instanceof ig.$)&&f(Error("Invalid setGfxTile Call. gfx is not instance of ig.Image"));h=h?h:e;this.yua(a,b,c,Math.floor(d*e)%a.width,Math.floor(d*e/a.width)*h,e,h,k,l);return this},Zib:function(a,b,c,d,e){window.aj&&!(a instanceof ig.S1a)&&f(Error("Invalid setVideo Call. video is not instance of ig.Video"));this.Nv=a;this.gu=5;this.l(b,c);this.v(d,e);return this},pib:function(a,b,c){window.aj&&!(a instanceof ig.G7)&&f(Error("Invalid setGameStateDraw Call. gamestate is not instance of ig.GameState"));
this.Nv=a;this.gu=6;this.l(b,c);return this},aQa:function(a,b,c,d,e,h,k){window.aj&&!(a instanceof ig.ue)&&f(Error("Invalid setPattern Call. gfx is not instance of ig.ImagePattern"));this.Nv=a;this.gu=2;this.color=this.r=s;this.l(b,c);this.mQa(d,e);this.v(h,k);return this},fa:function(a,b,c){window.aj&&!(a instanceof ig.rd)&&f(Error("Invalid setText Call. gfx is not instance of ig.TextBlock"));this.Nv=a;this.gu=4;this.l(b,c);return this},Xa:function(a,b){var c=ig.g,d=c.context,e=c.scale,h=a+this.i.x,
k=b+this.i.y,l,m;if(this.alpha!=1){l=d.globalAlpha;d.globalAlpha=d.globalAlpha*this.alpha}if(this.F$!="source-over"){m=d.globalCompositeOperation;d.globalCompositeOperation=this.F$}if(this.gu==3){d.fillStyle=this.Nv;d.fillRect(c.Ae(h),c.Ae(k),this.size.x*e,this.size.y*e)}else this.gu==1?this.Nv.Xa(h,k,this.src.x,this.src.y,this.size.x,this.size.y,this.hd.x,this.hd.y):this.gu==5?this.Nv.Xa(h,k,this.size.x,this.size.y):this.gu==6?this.Nv.h9a(h,k):this.gu==2?this.Nv.Xa(h,k,this.src.x,this.src.y,this.size.x,
this.size.y):this.gu==4&&this.Nv.Xa(h,k);if(d.globalCompositeOperation!="source-over")d.globalCompositeOperation=m;if(this.alpha!=1)d.globalAlpha=l},Tb:function(){this.Nv=s;this.gu=0;o.M1(this)},clear:function(){this.alpha=1;this.src.x=this.src.y=this.size.x=this.size.y=g;this.hd.x=this.hd.y=w;this.F$="source-over"}});ig.ZVa=ig.ra.extend({translate:{x:0,y:0},scale:{x:1,y:1},rotate:0,cb:{x:0,y:0},alpha:1,clip:{x:0,y:0},pea:{x:0,y:0},dOa:0,wd:function(a){this.alpha=a;return this},bib:function(a,b){this.clip.x=
a;this.clip.y=b;return this},ufa:function(a,b){this.translate.x=a;this.translate.y=b;return this},tw:function(a,b){this.scale.x=a;this.scale.y=b;return this},vX:function(a){this.rotate=a;return this},rb:function(a,b){this.cb.x=a;this.cb.y=b;return this},DKa:function(){return this.scale.x!=1||this.scale.y!=1||this.rotate||this.clip.x!=0},transform:function(a,b){var c=ig.g,d=c.context,c=c.scale;d.save();this.pea.x=a;this.pea.y=b;d.translate(ig.g.Ae(a+this.translate.x),ig.g.Ae(b+this.translate.y));if(this.clip.x!=
0){d.beginPath();d.rect(0,0,this.clip.x*c,this.clip.y*c);d.clip()}if(this.scale.x!=1||this.scale.y!=1||this.rotate!=0){d.translate(ig.g.Ae(this.cb.x),ig.g.Ae(this.cb.y));d.rotate(this.rotate);d.scale(this.scale.x||1E-4,this.scale.y||1E-4);d.translate(-ig.g.Ae(this.cb.x),-ig.g.Ae(this.cb.y))}},Tb:function(){o.M1(this)},clear:function(){this.translate.x=this.translate.y=0;this.scale.x=this.scale.y=1;this.rotate=0;this.cb.x=this.cb.y=0;this.alpha=1;this.clip.x=this.clip.y=0}});ig.YVa=ig.ra.extend({get:function(a){if(!a.QW)a.QW=
[];if(a.QW.length){a=a.QW.pop();a.clear();return a}return new a},M1:function(a){var b=a.constructor;if(!b.QW)b.QW=[];b.QW.push(a)}});var o=new ig.YVa;ig.X=ig.ra.extend({a:s,f:function(){this.a=new ig.WVa(this)},l:function(a,b){var c=this.a;c.i.x=a||0;c.i.y=b||0;c.Pn=s},ypb:function(){var a=this.a;return a.Pn||a.i},Hsb:function(a,b){var c=this.a;c.scroll.x=a;c.scroll.y=b;c.Yk=s},W9a:function(){var a=this.a;return a.Yk||a.scroll},v:function(a,b){var c=this.a;c.size.x=a;c.size.y=b},rb:function(a,b){var c=
this.a;c.cb.x=a;c.cb.y=b},F:function(a,b){var c=this.a;c.align.x=a;c.align.y=b},arb:function(){return this.a.Il},Poa:function(a){return this.a.Poa(a.a)},Ooa:function(a){return this.a.Ooa(a)},m:function(a){this.a.Ila(a.a)},SC:function(a,b){this.a.Nbb(a.a,b)},fQ:function(a){this.a.Egb(a.a)},Hta:function(a){return this.a.Fgb(a).T},rg:function(){this.a.rg()},update:F(),va:F(),remove:function(a){if(a){this.a.th();this.a.qj=w}else this.a.qj=j},dn:s,th:s,Pda:s,PF:s,hide:F(),show:F(),j:function(a,b,c,d,e){this.a.j(a,
b,c,d,e)},vaa:function(a,b,c,d,e,h,k){this.a.vaa(a,b,c,d,e,h,k)},bd:function(a,b,c,d,e,h,k){this.a.bd(a,b,c,d,e,h,k)},gj:function(a,b,c,d,e){this.a.gj(a,b,c,d,e)},Os:function(){return this.a.Os()},qpa:function(){return this.a.qpa()},jL:function(a,b,c){this.a.jL(a,b,c)}})});ig.G=j;
ig.I("impact.feature.gui.gui-images").J("impact.base.image","impact.base.game","impact.feature.gui.gui","impact.feature.storage.storage").H(function(){ig.Kya=ig.X.extend({f:function(a){this.parent();this.a.zIndex=a;this.v(ig.g.width,ig.g.height)}});ig.XVa=ig.sf.extend({XU:{},Xma:s,Yma:s,f:function(){this.parent("GUI");ig.Cc.dg(this);this.Xma=new ig.Kya(49);ig.T.Mc(this.Xma);this.Yma=new ig.Kya(51);ig.T.Mc(this.Yma)},pjb:function(a,b,c,d,e,h,k){this.Mta(a);b=new ig.Dc(b.xc,b.Vi,b.Bg,b.width,b.height);
b.F(ig.Oha[d],ig.Pha[e]);b.Ze=h||s;b.vaa(this.kCa(c),0,KEY_SPLINES.LINEAR,j);c={T:b,data:{alignX:d,alignY:e,state:c}};k?this.Yma.m(b):this.Xma.m(b);this.XU[a]=c},sdb:function(a,b,c,d,e){var h=this.XU[a];if(h){h.data.state=b;h.T.vaa(this.kCa(b),c,d,w,e);e&&delete this.XU[a]}},Mta:function(a){var b=this.XU[a];if(b){b.T.remove();delete this.XU[a]}},kCa:function(a){return{alpha:a.alpha,offsetX:a.offsetX,offsetY:a.offsetY,Ia:a.scaleX,Ma:a.scaleY,oc:a.angle}},Rq:F(),Qq:F(),nj:function(){for(var a in this.XU)this.Mta(a)}});
ig.wf(function(){return ig.Cpa=new ig.XVa})});ig.G=j;
ig.I("impact.feature.gui.gui-steps").J("impact.base.action","impact.base.event","impact.feature.gui.gui").H(function(){ig.ma.ADD_GUI=ig.na.extend({name:s,t2:s,Bpa:s,s:new ig.u({attributes:{name:{c:"String",d:"Name to identify GUI for subsequent modifications (e.g. removal)"},t2:{c:"GUI",d:"Type and Settings of GUI to spawn",sd:j}}}),f:function(a){assertContent(a,"name","guiInfo");this.name=a.name;this.t2=a.guiInfo;if(!window.Yc)this.Bpa=ig.T.$ma(this.name,this.t2.type,this.t2.settings)},start:function(){var a=
ig.T.ky[this.name];a&&a.remove();ig.T.sva(this.Bpa)},Qa:function(){ig.T.VHa(this.Bpa)}});ig.ma.REMOVE_GUI=ig.na.extend({name:s,t2:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of GUI to be removed"}}}),f:function(a){assertContent(a,"name");this.name=a.name},start:function(){var a=ig.T.ky[this.name];a&&a.remove()}});ig.ma.CHANGE_GUI_STATE=ig.na.extend({name:s,Sx:s,cqa:w,remove:w,s:new ig.u({attributes:{name:{c:"String",d:"Name to identify GUI for subsequent modifications (e.g. removal)"},Sx:{c:"GUIState",
d:"Transition to change to"},cqa:{c:"Boolean",d:"If true: skip transition"},remove:{c:"Boolean",d:"Remove GUI after transition"}}}),f:function(a){assertContent(a,"name","guiState");this.name=a.name;this.Sx=a.guiState;this.cqa=a.immediate||w;this.remove=a.remove||w},start:function(){var a=ig.T.ky[this.name];if(a){a instanceof ig.Ji[this.Sx.type]||f(Error("Gui State transition with invalid GUI type!"));a.j(this.Sx.state,this.cqa,this.remove)}}});ig.ma.SHOW_IMAGE=ig.na.extend({name:s,xc:s,Sx:s,xr:s,
Mt:s,Ze:s,Hsa:w,s:new ig.u({attributes:{name:{c:"String",d:"Name of image"},xc:{c:"TileSheet",d:"Image to be displayed",sd:j},Sx:{c:"GuiState",d:"Initial State of image",sd:j},xr:{c:"String",d:"X alignment",Y:ig.Oha},Mt:{c:"String",d:"Y alignment",Y:ig.Pha},Ze:{c:"String",d:"Render Mode if Image",Y:["source-over","lighter"],U:j},Hsa:{c:"Boolean",d:"If true, display image above game hud (e.g. cut scene bars, portraits)"}}}),f:function(a){this.name=a.name;this.xc=new ig.tg.OT(a.image);this.Sx=a.guiState;
this.xr=a.alignX;this.Mt=a.alignY;this.Ze=a.renderMode;this.Hsa=a.overGui||w},start:function(){ig.Cpa.pjb(this.name,this.xc,this.Sx,this.xr,this.Mt,this.Ze,this.Hsa)},Qa:function(){this.xc.Qa()}});ig.ma.MOVE_IMAGE=ig.na.extend({name:s,Sx:s,time:s,oh:s,Fta:w,s:new ig.u({attributes:{name:{c:"String",d:"Name of image"},Sx:{c:"GuiState",d:"Initial State of image",sd:j},time:{c:"Number",d:"Transition time"},oh:{c:"String",d:"Key spline for transition",Y:KEY_SPLINES},Fta:{c:"Boolean",d:"True if image should be removed after transition"}}}),
f:function(a){this.name=a.name;this.Sx=a.guiState;this.time=a.time||0.1;this.oh=KEY_SPLINES[a.keySpline]||KEY_SPLINES.LINEAR;this.Fta=a.removeAfterwards||w},start:function(){ig.Cpa.sdb(this.name,this.Sx,this.time,this.oh,this.Fta)}});ig.ma.REMOVE_IMAGE=ig.na.extend({name:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of image to be removed"}}}),f:function(a){this.name=a.name},start:function(){ig.Cpa.Mta(this.name)}})});ig.G=j;
ig.I("impact.feature.gui.base.box").J("impact.feature.gui.gui").H(function(){ig.$b=ig.ra.extend({wh:{width:0,height:0,top:0,bottom:0,left:0,right:0,Fb:{"default":{x:0,y:0}}},Jf:{},pattern:{},r:s,f:function(a,b){this.wh=b;this.r=new ig.$(a);this.r.loaded?this.kKa():this.r.Z_(this.kKa.bind(this))},kKa:function(){var a=this.wh;a.top==0&&(this.Jf[0]=this.Jf[1]=this.Jf[2]=1);a.bottom==0&&(this.Jf[6]=this.Jf[7]=this.Jf[8]=1);a.left==0&&(this.Jf[0]=this.Jf[3]=this.Jf[6]=1);a.right==0&&(this.Jf[2]=this.Jf[5]=
this.Jf[8]=1);a.width==0&&(this.Jf[1]=this.Jf[4]=this.Jf[7]=1);a.height==0&&(this.Jf[3]=this.Jf[4]=this.Jf[5]=1);for(var b in this.wh.Fb){this.pattern[b]={};var c=this.wh.Fb[b].x,d=this.wh.Fb[b].y;if(a.top>0&&a.width>0)this.pattern[b].top=this.r.createPattern(c+a.left,d,a.width,a.top,ig.ue.Pf.Xn);if(a.bottom>0&&a.width>0)this.pattern[b].bottom=this.r.createPattern(c+a.left,d+a.top+a.height,a.width,a.bottom,ig.ue.Pf.Xn);if(a.left>0&&a.height>0)this.pattern[b].left=this.r.createPattern(c,d+a.top,a.left,
a.height,ig.ue.Pf.tE);if(a.right>0&&a.height>0)this.pattern[b].right=this.r.createPattern(c+a.left+a.width,d+a.top,a.right,a.height,ig.ue.Pf.tE);if(a.width>0&&a.height>0)this.pattern[b].ko=this.r.createPattern(c+a.left,d+a.top,a.width,a.height,ig.ue.Pf.gz)}},Xa:function(a,b,c,d,e,h){var k=this.wh,l=k.Fb[d].x,m=k.Fb[d].y,d=this.pattern[d],n=Math.min(k.top,c-k.bottom),e=e||0,h=h||0;this.Jf[0]||a.ia(this.r,e,h,l,m,k.left,n);this.Jf[2]||a.ia(this.r,e+b-k.right,h,l+k.left+k.width,m,k.right,n);this.Jf[6]||
a.ia(this.r,e,h+c-k.bottom,l,m+k.top+k.height,k.left,k.bottom);this.Jf[8]||a.ia(this.r,e+b-k.right,h+c-k.bottom,l+k.left+k.width,m+k.top+k.height,k.right,k.bottom);this.Jf[1]||a.Rj(d.top,e+k.left,h,0,0,b-k.left-k.right,n);this.Jf[7]||a.Rj(d.bottom,e+k.left,h+c-k.bottom,0,0,b-k.left-k.right,k.bottom);this.Jf[3]||a.Rj(d.left,e,h+n,0,0,k.left,c-n-k.bottom);this.Jf[5]||a.Rj(d.right,e+b-k.right,h+n,0,0,k.right,c-n-k.bottom);this.Jf[4]||a.Rj(d.ko,e+k.left,h+n,0,0,b-k.left-k.right,c-n-k.bottom)},cHa:function(a,
b,c,d,e,h,k){var l=this.wh,m=l.Fb[d].x,n=l.Fb[d].y,d=this.pattern[d],o=Math.min(l.top,c-l.bottom),h=h||0,k=k||0,e=e||"source-over";this.Jf[0]||a.ia(this.r,h,k,m,n,l.left,o).dh(e);this.Jf[2]||a.ia(this.r,h+b-l.right,k,m+l.left+l.width,n,l.right,o).dh(e);this.Jf[6]||a.ia(this.r,h,k+c-l.bottom,m,n+l.top+l.height,l.left,l.bottom).dh(e);this.Jf[8]||a.ia(this.r,h+b-l.right,k+c-l.bottom,m+l.left+l.width,n+l.top+l.height,l.right,l.bottom).dh(e);this.Jf[1]||a.Rj(d.top,h+l.left,k,0,0,b-l.left-l.right,o).dh(e);
this.Jf[7]||a.Rj(d.bottom,h+l.left,k+c-l.bottom,0,0,b-l.left-l.right,l.bottom).dh(e);this.Jf[3]||a.Rj(d.left,h,k+o,0,0,l.left,c-o-l.bottom).dh(e);this.Jf[5]||a.Rj(d.right,h+b-l.right,k+o,0,0,l.right,c-o-l.bottom).dh(e);this.Jf[4]||a.Rj(d.ko,h+l.left,k+o,0,0,b-l.left-l.right,c-o-l.bottom).dh(e)}});ig.te=ig.X.extend({r:{},eb:s,Nk:"",Jf:{},xF:w,f:function(a,b,c,d){this.parent();this.v(a,b);this.xF=c||w;if(d)this.eb=d;for(var e in this.eb.wh.Fb){this.Nk=e;break}},v:function(a,b){this.a.size.x=a;this.a.size.y=
b;this.a.cb.x=this.a.size.x/2;this.a.cb.y=this.a.size.y/2},va:function(a){this.xF&&a.ho().tw(-1,1).ufa(this.a.size.x,0);this.eb.Xa(a,this.a.size.x,this.a.size.y,this.Nk);this.xF&&a.Po()}})});ig.G=j;ig.I("impact.feature.gui.plug-in").J("impact.feature.gui.gui","impact.feature.gui.gui-images","impact.feature.gui.gui-steps","impact.feature.gui.base.box").H(function(){if(window.Yc){wm.pj.push("impact.feature.gui.editors.gui-editor");wm.fo(/GUI/,"orange")}});ig.G=j;
ig.I("impact.feature.light.light").J("impact.base.game","game.config").H(function(){ig.cl={XXXXL:1,XXXL:2,XXL:3,XL:4,L:5,M:6,S:7,XS:8};var a={};a[ig.cl.XXXXL]={x:0,y:0,uc:384,Gc:384};a[ig.cl.XXXL]={x:384,y:0,uc:256,Gc:256};a[ig.cl.XXL]={x:448,y:256,uc:192,Gc:192};a[ig.cl.XL]={x:0,y:384,uc:128,Gc:128};a[ig.cl.L]={x:128,y:448,uc:64,Gc:64};a[ig.cl.M]={x:192,y:464,uc:48,Gc:48};a[ig.cl.S]={x:240,y:480,uc:32,Gc:32};a[ig.cl.XS]={x:272,y:480,uc:32,Gc:32};ig.dza=a;Vec3.create();ig.$l.TLa=j;ig.Qw=ig.ra.extend({Nu:s,
l3:Vec3.create(),size:s,fadeIn:0,fadeOut:0,duration:0,bn:0,TU:j,n:0,offset:s,f:function(a,c,d,e,h,k,l){this.Nu=a;this.Nu.yI(this);this.size=c||ig.cl.XS;this.fadeIn=d||0;this.fadeOut=e||0;this.duration=h||0;this.bn=k||1;this.TU=l!==g?l:j;this.n=this.fadeIn||this.duration||this.fadeOut},zD:function(a,c,d){if(!this.offset)this.offset=Vec3.create();Vec3.Sa(this.offset,a,c,d)},Zr:function(){this.stop()},eG:function(){(this.fadeIn||this.duration)&&this.stop();this.Nu=s},stop:function(){this.n=this.fadeOut;
this.duration=this.fadeIn=0},update:function(){this.n=this.n-ig.g.ga;if(this.n<=0)if(this.fadeIn){this.fadeIn=0;this.n=this.duration||this.fadeOut}else if(this.duration){if(this.duration>0){this.duration=0;this.n=this.fadeOut}}else{this.fadeOut=0;return j}return w},Xa:function(b,c){b=b||1;c=c||0;this.Nu&&this.Nu.je(ig.Rb.CENTER,this.l3);var d=this.l3,e=d.x-ig.t.screen.x,d=d.y-d.z-ig.t.screen.y;if(this.offset){e=e+this.offset.x;d=d+(this.offset.y-this.offset.z)}var h=a[this.size+c];if(h){var k=h.x,
l=h.y,m=h.uc,h=h.Gc;if(!(e+m/2<0||d+h/2<0||e-m/2>ig.g.width||d-h/2>ig.g.height)){var n=0;this.fadeIn?n=this.bn*(1-this.n/this.fadeIn):this.duration?n=this.bn:this.fadeOut&&(n=this.bn*(this.n/this.fadeOut));ig.g.context.globalAlpha=n*b;ig.ph.SV.Xa(e-m/2,d-h/2,k,l,m,h)}}}});ig.$R=ig.ra.extend({USa:w,n:0,cr:w,P:s,duration:0,fadeIn:0,fadeOut:0,kW:0,u6:0,f:function(a){this.USa=a||w},kfa:function(a,c){this.kW=this.g2();this.u6=a;this.n=this.duration=c;this.cr=w},Wua:function(a,c,d,e,h){this.kW=this.g2();
this.u6=c;this.cr=j;(this.P=a)&&this.P.yI(this);this.duration=d||0;this.fadeIn=e||0;this.fadeOut=h||0;this.n=this.fadeIn||this.duration||this.fadeOut},Zr:function(){this.stop()},eG:function(){this.cr&&(this.fadeIn||this.duration)&&this.stop()},stop:function(){this.kW=this.g2();this.n=this.fadeOut;this.u6=this.duration=this.fadeIn=0},update:function(){this.n=this.n-(this.USa?ig.g.Da:ig.g.ga);if(this.n<=0&&this.cr)if(this.fadeIn){this.fadeIn=0;this.n=this.duration||this.fadeOut}else if(this.duration){if(this.duration>
0){this.kW=this.g2();this.duration=0;this.n=this.fadeOut;this.u6=0}}else{this.fadeOut=0;return j}return w},g2:function(){return this.kW+(this.u6-this.kW)*(this.cr?this.fadeIn?1-this.n/this.fadeIn:this.duration?1:1-this.n/this.fadeOut:this.n>0?1-this.n/this.duration:1)}});ig.nXa=ig.sf.extend({QV:s,ZC:s,HG:[],Ur:[],LN:[],NO:w,Vl:0.6,SV:new ig.$("media/map/lightmap.png"),IO:s,pJa:s,f:function(){this.parent("Light");this.QV=ig.aq("canvas");this.QV.width=ig.g.px;this.QV.height=ig.g.ox;this.ZC=ig.g.bu(this.QV);
this.IO=ig.aq("canvas");this.IO.width=this.SV.width*ig.g.scale;this.IO.height=this.SV.height*ig.g.scale;this.pJa=new ig.Vha(this.IO)},KPa:function(a){var c=ig.g.bu(this.IO);c.globalCompositeOperation="source-over";c.fillStyle=a;c.fillRect(0,0,this.IO.width,this.IO.height);c.globalCompositeOperation="destination-in";c.drawImage(this.SV.data,0,0)},$_:function(a){this.LN.push(a)},Igb:function(a){this.LN.xf(a)},cx:function(a){this.Ur.push(a)},G9:function(a){if(this.HG.indexOf(a)==-1){this.HG.push(a);
this.HG.sort(function(a,b){return a.xfa-b.xfa})}},g5:function(a){this.HG.xf(a)},$s:function(){for(var a=this.Ur.length;a--;)this.Ur[a].update()&&this.Ur.splice(a,1);for(a=this.LN.length;a--;)this.LN[a].update()&&this.LN.splice(a,1)},nea:0,Nda:function(){this.NO=w;if(ig.$l.TLa){for(var a=1,c=this.LN.length;c--;)a=Math.min(a,1-this.LN[c].g2());if(!(this.HG.length==0&&a==1)){var d=ig.g.context;ig.g.context=this.ZC;this.ZC.globalAlpha=1;ig.g.context.globalCompositeOperation="source-over";this.ZC.clearRect(0,
0,ig.g.cQ,ig.g.bQ);for(c=0;c<this.HG.length;++c)this.HG[c].Lna();if(a<1){this.ZC.globalCompositeOperation="source-over";this.ZC.globalAlpha=1-a;this.ZC.fillStyle="black";this.ZC.fillRect(0,0,ig.g.cQ,ig.g.bQ);this.ZC.globalAlpha=1}this.ZC.globalCompositeOperation="destination-out";for(c=this.Ur.length;c--;)this.Ur[c].Xa();ig.g.context=d;this.NO=j}}},L3:0,k4:function(){if(ig.$l.TLa&&this.NO){ig.g.context.globalCompositeOperation="lighter";ig.g.context.globalAlpha=1;for(var a=0;a<this.HG.length;++a){var c=
this.HG[a];c.dHa&&c.dHa()}ig.g.context.globalCompositeOperation="source-over";ig.g.context.drawImage(this.QV,0,0);ig.g.context.globalCompositeOperation="lighter";if(this.Ur.length>0)for(a=this.Ur.length;a--;)this.Ur[a].TU&&this.Ur[a].Xa(0.2,1);ig.g.context.globalCompositeOperation="source-over";ig.g.context.globalAlpha=1}}});ig.wf(function(){return ig.ph=new ig.nXa})});ig.G=j;
ig.I("impact.feature.light.light-steps").J("impact.base.action","impact.base.event").H(function(){Vec3.create();ig.Ha.ADD_DARKNESS=ig.na.extend({YO:0,duration:0,fadeIn:0,fadeOut:0,s:new ig.u({attributes:{YO:{c:"Number",d:"Intensity of darkness"},duration:{c:"Number",d:"Duration of darkness effect. -1 for continuous effect"},fadeIn:{c:"Number",d:"fadeIn duration"},fadeOut:{c:"Number",d:"fadeOut duration"}}}),f:function(a){this.YO=a.intensity||0;this.duration=a.duration||0;this.fadeIn=a.fadeIn||0;this.fadeOut=
a.fadeOut||0},start:function(a){var b=new ig.$R;b.Wua(a,this.YO,this.duration,this.fadeIn,this.fadeOut);ig.ph.$_(b);a.fp(b)}});ig.Ha.CLEAR_DARKNESS=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(a){for(var a=a.co,b=a.length;b--;)if(a[b]instanceof ig.$R){a[b].stop();a.splice(b,1);break}}})});ig.G=j;
ig.I("impact.feature.light.light-map").J("impact.feature.light.light","impact.base.map","impact.base.game","impact.base.image","game.config").H(function(){ig.pi.Light=ig.Sxa.extend({SV:new ig.$("media/map/lightmap.png"),s:new ig.u({u_:"Light",j_:ig.qn.DISABLE_LAYER_SIZE,B_:j,A_:j,z_:ig.qn.DISABLE_LAYER_DISTANCE,k_:ig.qn.DEFAULT_TILE_SIZE,xka:"media/map/lightmap-tiles.png",k3a:"last",q_:"impact/feature/light/editors/layer-icon.png",Yja:1,$ja:0.4,Zja:0.5}),Uqa:[],xpa:[],Ira:j,QV:s,xfa:3,f:function(a,
b){this.parent(a,b);for(var c=0;c<this.height;++c)for(var d=0;d<this.width;++d)if(this.data[c][d]){var e=0,h=0,k=this.data[c][d],l=(k-1)%32%5+1,m=Math.floor((k-1)%32/5);switch(Math.floor((k-1)/32)){case 1:h=-8;break;case 2:e=8;break;case 3:h=8;break;case 4:e=-8;break;case 5:e=8;h=-8}if(m!=4){var k=ig.dza[l],n=(d+0.5)*this.hb+e-k.uc/2,o=(c+0.5)*this.hb+h-k.Gc/2;this.Uqa.push({x:n,y:o,Wva:k.x,Xva:k.y,width:k.uc,height:k.Gc})}if(m>0){k=ig.dza[m==4?l:l+m-1];n=(d+0.5)*this.hb+e-k.uc/2;o=(c+0.5)*this.hb+
h-k.Gc/2;this.xpa.push({x:n,y:o,Wva:k.x,Xva:k.y,width:k.uc,height:k.Gc})}}ig.ph.G9(this)},clear:function(){ig.ph.g5(this);this.parent()},rea:function(a,b,c,d,e,h){var a=Math.floor(a*this.lx/this.hb/ig.g.scale),b=Math.floor(b*this.mx/this.hb/ig.g.scale),k=e;if(h){k=ig.aq("canvas");k.width=c;k.height=d}var l=ig.g.context;(ig.g.context=ig.g.bu(k)).globalAlpha=1;for(var a=a*this.hb,b=b*this.hb,m=0;m<this.Uqa.length;m++){var n=this.Uqa[m];n.x>a+c/ig.g.scale||(n.x+n.width<a||n.y>b+d/ig.g.scale||n.y+n.height<
b)||this.SV.Xa(n.x-a,n.y-b,n.Wva,n.Xva,n.width,n.height)}ig.g.context=l;h&&e.getContext("2d").drawImage(k,0,0)},Lna:function(){if(this.am&&this.am.length){var a=ig.g.context,b=ig.ph.Vl;if(b>0){a.globalAlpha=b;a.globalCompositeOperation="source-over";a.fillStyle=ig.t.clearColor;a.fillRect(0,0,ig.g.cQ,ig.g.bQ)}a.globalCompositeOperation="destination-out";a.globalAlpha=1;this.tCa()}},dHa:function(){for(var a=ig.g.context,b=this.xpa.length;b--;){var c=this.xpa[b],d=c.x-ig.t.screen.x,e=c.y-ig.t.screen.y;
if(!(d+c.width<0||e+c.height<0||d>ig.g.width||e>ig.g.height)){a.globalCompositeOperation="lighter";ig.ph.pJa.Xa(d,e,c.Wva,c.Xva,c.width,c.height)}}},Xa:F(),yaa:F()})});ig.G=j;ig.I("impact.feature.light.plug-in").J("impact.feature.light.light","impact.feature.light.light-steps","impact.feature.light.light-map").H(F());ig.G=j;
ig.I("impact.feature.height-map.height-map").J("impact.base.map","impact.base.game","impact.base.image","game.config").H(function(){ig.pi.HeightMap=ig.kZ.extend({s:new ig.u({u_:"HeightMap",j_:ig.qn.DISABLE_LAYER_SIZE,B_:j,A_:j,z_:ig.qn.DISABLE_LAYER_DISTANCE,k_:ig.qn.DEFAULT_TILE_SIZE,xka:"media/map/heightmap-tiles.png",k3a:"last",q_:"impact/feature/height-map/editors/layer-icon.png",Yja:1,$ja:0,Zja:0}),Ira:j,f:function(a,b){this.parent(a,b)},Xa:F(),yaa:F()});ig.pi.HeightMap.zca="heightMap";if(window.Yc){wm.sB=
{};var a={yB:"FILL",vB:"DIAGONAL_NE",wB:"DIAGONAL_SE",xB:"DIAGONAL_SW",Zy:"DIAGONAL_NW",s8:"SQUARE_NE",kja:"SQUARE_SE",lja:"SQUARE_SW",t8:"SQUARE_NW",rr:"NORTH",fm:"EAST",gv:"SOUTH",im:"WEST",SR:"CORNER_NE",p7:"CORNER_SE",q7:"CORNER_SW",TR:"CORNER_NW",Zo:"WALL_SOUTH",MB:"WALL_SOUTH_BASE",vs:"WALL_SE",YH:"WALL_SE_BASE",ws:"WALL_SW",ZH:"WALL_SW_BASE",OB:"WALL_SQR_SW",WZ:"WALL_SQR_SW_BASE",NB:"WALL_SQR_SE",VZ:"WALL_SQR_SE_BASE",Nja:"WALL_END_WEST",Oja:"WALL_END_WEST_BASE",Lja:"WALL_END_EAST",Mja:"WALL_END_EAST_BASE",
L7:"INVISIBLE_WALL"},b={};b[a.gv]={Vu:a.Zo,Mb:a.MB};b[a.xB]={Vu:a.ws,Mb:a.ZH};b[a.wB]={Vu:a.vs,Mb:a.YH};b[a.lja]={Vu:a.OB,Mb:a.WZ};b[a.kja]={Vu:a.NB,Mb:a.VZ};b[a.q7]={GG:j,Vu:a.Nja,Mb:a.Oja};b[a.p7]={GG:j,Vu:a.Lja,Mb:a.Mja};b[a.rr]={GG:j,iY:j,vna:-1,Vu:a.Zo,Mb:a.MB};b[a.vB]={GG:j,iY:j,Vu:a.ws,Mb:a.ZH};b[a.Zy]={GG:j,iY:j,Vu:a.vs,Mb:a.YH};b[a.s8]={GG:j,iY:j,vna:-1,Vu:a.Zo,Mb:a.MB};b[a.t8]={GG:j,iY:j,vna:-1,Vu:a.Zo,Mb:a.MB};var c={};c[2]=a.vB;c[3]=a.wB;c[4]=a.xB;c[5]=a.Zy;var d=[{kaa:"NORTH",laa:"EAST",
r:a.s8},{kaa:"NORTH",laa:"WEST",r:a.t8},{kaa:"SOUTH",laa:"EAST",r:a.kja},{kaa:"SOUTH",laa:"WEST",r:a.lja}],e={rr:{oo:0,po:-1,II:3,JI:4,r:a.rr,Oy:[{oo:-1,po:0},{oo:1,po:0}]},fm:{oo:1,po:0,II:4,JI:5,r:a.fm,Oy:[{oo:0,po:-1},{oo:0,po:1}]},gv:{oo:0,po:1,II:2,JI:5,r:a.gv,Oy:[{oo:-1,po:0},{oo:1,po:0}]},im:{oo:-1,po:0,II:2,JI:3,r:a.im,Oy:[{oo:0,po:-1},{oo:0,po:1}]},kYa:{oo:1,po:-1,II:4,JI:4,r:a.SR},i_a:{oo:1,po:1,II:5,JI:5,r:a.p7},A_a:{oo:-1,po:1,II:2,JI:2,r:a.q7},wYa:{oo:-1,po:-1,II:3,JI:3,r:a.TR}},h=[],
k;for(k in e)h.push(k);var l={};l[2]=[e.rr,e.fm,e.kYa];l[3]=[e.gv,e.fm,e.i_a];l[4]=[e.gv,e.im,e.A_a];l[5]=[e.rr,e.im,e.wYa];var m={};m[a.SR]={test:a.fm,set:a.yB};m[a.TR]={test:a.im,set:a.yB};m[a.fm]={test:a.vB,set:a.SR};m[a.im]={test:a.Zy,set:a.TR};var n={start:0,end:0};wm.vmb={data:s,j3:s,xrb:0,bk:0,width:0,height:0,Jrb:function(a){this.xEa(a.data);this.cCa();this.hEa();this.j3=this.data;this.data=s},apply:function(a,b){this.xEa(a.data);this.cCa();this.hEa();this.u2a(b);this.j3=this.data},xEa:function(a){this.data=
[];var b=a[0].length,c=a.length;this.tra=1E3;this.bk=0;this.width=b;this.height=c;for(var d=0;d<c;++d){this.data[d]=[];for(var e=0;e<b;++e){var h=a[d][e]-1;if(h==-1)this.data[d][e]=s;else{var k=Math.floor(h/128),h=h%128,h={aa:Math.floor(h/8)||-1,fill:h%8,mc:k,r:0,rm:0,yp:0,vtb:0,Oy:-1};this.tra=Math.min(h.aa,this.tra);this.bk=Math.max(h.aa,this.bk);this.data[d][e]=h}}}},cCa:function(){for(var a=this.bk;a>=this.tra;a--)for(var b=0;b<this.height;++b)for(var c=0;c<this.width;++c){var d=this.data[b][c];
if(d&&d.aa==a&&d.fill==0)d.fill=this.v3a(c,b,d.aa)}},hEa:function(){for(var a=0;a<this.height;++a)for(var b=0;b<this.width;++b){var c=this.data[a][b];c&&(c.fill==1?this.D4a(b,a,c):this.x4a(b,a,c))}},u2a:function(a){var b=ig.qo.Cwa;b.Z5a();for(var c=ig.qo.erb,d=c.length,e=-1,h=0;h<d;++h){var k=c[h];if(!(k.aa=="first"||k.aa=="last"||k.aa.indexOf("object")!=-1)&&k.ab==1)if(k.type=="Background"&&wm.sB[k.oR]&&e!=k.aa){e=k.aa;this.s2a(k,a)}else k.type=="Collision"&&this.t2a(k,a)}b.j8a()},KCa:function(a,
b){a<1&&(a=1);var c=ig.qo.$a,d=c[a-1];return d?d.height/b.hb:c[c.length-1].height/b.hb+(a-c.length)*2},jI:function(a,b,c){return this.KCa(b,c)-this.KCa(a,c)},s2a:function(c,d){var e=wm.sB[c.oR];if(e){for(var e=new x(e),h=[],k=ig.qo.$a,l=k[c.aa],o=k[c.aa*1+1],r=k.length,k=(l.height-k[ig.qo.zp].height)/c.hb,l=o?(o.height-l.height)/c.hb:0,o=c.aa*1+1,p=ig.qo.zp*1+1,q=0;q<this.height;++q)for(var H=0;H<this.width;++H){var G=this.data[q][H];if(G){var J=e.NO()&&G.aa>r&&G.rm<=r,D=b[G.r];if(D&&D.GG&&(!J||o<
p))D=s;if(G.aa==o){if(d||this.C3a(H,q)){var N=s;if(e.Gpa(G.mc)&&(G.r==a.wB||G.r==a.xB)&&G.aa==p&&G.rm==-1)N="CHASM_FLOOR";var O=e.cu(G.r,H,q-k,N,G.mc,G.Oy);this.TB(c,H,q-k,O,h)}}else if(D&&D.iY&&p<=o&&o<G.rm){var U=l,J=D.vna||0;if(d||this.WCa(H,q,U)){n.start=this.jI(p,o,c);n.end=this.jI(o,G.rm,c)-1;for(var Q=0;Q<U;++Q){O=Q==0&&p==o?D.Mb:D.Vu;O=e.cu(O,H,q-k-Q+J,"BACK_WALL",G.yp,-1,n);this.TB(c,H,q-k-Q+J,O,h);n.start++;n.end--}if(J){O=e.cu(a.yB,H,q-k,"SHADOW",G.yp);this.TB(c,H,q-k,O,h)}}}else if(D&&
!D.iY&&(G.rm<=o||J&&o==p)&&G.aa>o){var W=!D.GG&&e.Mb.Ad&&G.rm==-1&&o<p,U=l,T=0,X=w,V=e.I9a(G.mc),Q=e.gIa(G.mc);if(W)T=this.jI(o,p,c)-V-Q;else if(J&&o==p){U=this.jI(o,G.aa,c);X=j;T=this.jI(o,G.rm,c)}if(d||this.WCa(H,q,U)){var S=G.rm==-1?G.mc:G.yp;if(J&&o>p){O=e.cu(a.L7,H,q-k,"SHADOW",S);this.TB(c,H,q-k,O,h)}else{n.start=this.jI(G.rm,o,c);n.end=this.jI(o,G.aa,c)-1-T;if(W)n.start=Math.max(-T,0);if(T&&X)n.start=0;for(Q=0;Q<U;++Q){N=s;if(Q<T){O=0;J&&(O=e.cu(a.yB,H,q-k,"SHADOW",G.yp));this.TB(c,H,q-k-Q,
O,h)}else{if(Q==0&&G.rm==o)O=D.Mb;else if(X&&Q==T)O=D.Mb;else if(Q==0&&e.Gpa(S)&&G.rm==-1&&o==p){O=D.Mb;if(G.r==a.wB||G.r==a.xB)N="CHASM"}else{O=D.Vu;X&&U-Q==1&&(N="SHADOW")}D.GG&&(N="SHADOW");W&&Q-T<V&&(N=e.Gpa(S)&&G.aa==p?"CHASM_FLOOR":"CHASM");if(O){O=e.cu(O,H,q-k-Q,N,S,-1,n);this.TB(c,H,q-k-Q,O,h)}n.start++;n.end--}}if(D.Vu&&X){O=e.cu(G.r,H,q-k-U,"SHADOW",S);this.TB(c,H,q-k-U,O,h)}}}}else if(G.rm==o){if(d||this.KS(H,q)){if(e.NO())if(c.aa>ig.qo.zp)O=t[G.r]?e.cu(t[G.r],H,q-k,"BACK_WALL",G.yp):e.cu(a.L7,
H,q-k,"SHADOW",G.yp);else{O=e.cu(G.r,H,q-k,"SHADOW",G.yp);if(!e.Jba(G.yp)&&m[G.r])(D=this.data[q-1]&&this.data[q-1][H])&&m[G.r].test==D.r&&(O=e.cu(m[G.r].set,H,q-k,"SHADOW",G.yp))}else O=e.cu(a.yB,H,q-k,s,G.yp);this.TB(c,H,q-k,O,h)}}else if(d||this.D3a(H,q,c)){O=0;e.NO()&&(c.aa==ig.qo.zp&&G.aa>o)&&(O=J&&G.rm&&G.rm<p?e.cu(G.r,H,q-k,"DARK_WALL",G.yp):e.cu(a.yB,H,q-k,"SHADOW",G.yp));this.TB(c,H,q-k,O,h)}}}ig.t.oFa.psb(h,c,ig.qo.Cwa)}},t2a:function(a,b){for(var c=ig.qo.$a,c=(c[a.aa].height-c[ig.qo.zp].height)/
a.hb,d=a.aa*1+1,e=a.aa<=ig.qo.zp,h=a.aa<ig.qo.zp,k=0;k<this.height;++k)for(var l=0;l<this.width;++l)if(b||this.KS(l,k)){var m=this.data[k][l];if(m){var n=0;m.aa<d?n=e?p[1]:0:m.fill==1?!h&&m.aa>d&&(n=r[m.fill]):!h&&m.rm>d?n=r[1]:m.aa>d?m.rm<d&&e?n=h?p[m.fill]:q[m.fill]:h||(n=r[m.fill]):m.aa==d&&e&&(n=p[m.fill]);this.TB(a,l,k-c,n)}}},C3a:function(a,b){if(this.KS(a,b))return j;for(var c=h.length;c--;){var d=e[h[c]];if(this.KS(a+d.oo,b+d.po))return j}return w},WCa:function(a,b,c){for(c=c+1;c--;)if(this.KS(a,
b-c))return j;return w},D3a:function(a,b,c){for(var d=11,e=ig.qo.$a;d--;)if(this.KS(a,b+d)){if(!d)return j;var h=this.data[b+d][a];if(h.aa>e.length){var k=this.jI(ig.qo.zp+1,e.length,c),k=k+(h.aa-e.length)*2;if(d<=k)return j}}return w},KS:function(a,b){if(!this.j3)return j;var c=this.j3[b]&&this.j3[b][a],d=this.data[b]&&this.data[b][a];return!c&&d||c&&!d?j:!c&&!d?w:c.aa!=d.aa||c.fill!=d.fill||c.r!=d.r||c.rm!=d.rm||c.mc!=d.mc||c.yp!=d.yp||c.Oy!=d.Oy},TB:function(a,b,c,d,e){if(!(c<0||c>=this.height)){e&&
ig.t.oFa.Unb(e,a,b,c);var e=ig.qo.Cwa,d=ig.t.oFa.ipb(a,b,c,d),h=a.data[c][b];if(h!=d){e.$fb(a,b*a.hb,c*a.hb,h,d);a.CQ(b,c,d)}}},Qnb:function(a){var b=ig.qo.Cwa;b.Z5a();for(var c=0;c<this.height;++c)for(var d=0;d<this.width;++d){var e=this.data[c][d],e=(e.aa-1)*8+e.fill+1;b.$fb(a,d*16,c*16,a.data[c][d],e);a.CQ(d,c,e)}b.j8a()},v3a:function(a,b,c){var d=this.kI(a,b,c,e.rr),h=this.kI(a,b,c,e.fm),k=this.kI(a,b,c,e.im),a=this.kI(a,b,c,e.gv);return d&&h&&(!a||a>=d)&&(!k||k>=d)&&d==h?2:(!d||d>=h)&&h&&a&&
(!k||k>=h)&&h==a?3:(!d||d>=k)&&(!h||h>=k)&&a&&k&&a==k?4:d&&(!h||h>=d)&&(!a||a>=d)&&k&&d==k?5:1},D4a:function(b,c,k){var l=k.aa;k.r=s;for(var m=0;m<d.length;++m){var n=d[m],o=e[n.kaa],r=this.kI(b,c,l,o),p=this.kI(b,c,l,e[n.laa]);if(r&&p&&r<l&&p<l){k.rm=r;k.yp=this.Hka(b,c,o)||0;k.r=n.r;k.Oy=-1;return}}for(m=0;m<h.length;++m){n=e[h[m]];if((o=this.kI(b,c,l,n))&&o<l){k.rm=o;k.yp=this.Hka(b,c,n)||0;k.r=n.r;k.Oy=this.w3a(b,c,n,k.mc,l);return}}if(!k.r)k.r=a.yB},x4a:function(a,b,d){for(var e=l[d.fill],h=
e.length,k=[],m=[];h--;){k[h]=this.kI(a,b,d.aa,e[h]);m[h]=this.Hka(a,b,e[h])||0}if(k[0]!=k[2])if(k[0]){a=k[0];m=m[0]}else if(k[1]){a=k[1];m=m[1]}else{a=k[2];m=m[2]}else if(k[1]){a=k[1];m=m[1]}else if(k[0]){a=k[0];m=m[0]}else{a=k[2];m=m[2]}if(a>d.aa){d.fill=d.fill>3?d.fill-2:d.fill+2;d.rm=d.aa;d.yp=d.mc;d.aa=a;d.mc=m}else{d.rm=a;d.yp=m}d.r=c[d.fill]},kI:function(a,b,c,d){b=b+d.po;a=a+d.oo;a=this.data[b]&&this.data[b][a];if(!a)return 0;d=a.fill==d.II||a.fill==d.JI;return a.aa==c?d?a.aa:0:!d?a.aa:0},
Hka:function(a,b,c){b=b+c.po;a=a+c.oo;a=this.data[b]&&this.data[b][a];return!a?w:a.mc},u3a:function(a,b,c,d){b=b+c.po;a=a+c.oo;a=this.data[b]&&this.data[b][a];return!a||a.aa!=d?w:a.mc},w3a:function(a,b,c,d,e){if(!d||!c.Oy)return-1;for(var h=c.Oy.length;h--;){var k=this.u3a(a,b,c.Oy[h],e);if(k!==w&&k<d)return h}return-1}};var o={TYPE1:{BASE:{},ALT:{},SHADOW:{},CHASM:{},DARK_WALL:{},CHASM_FLOOR:{},BACK_WALL:{},SUB:{BASE:{},SHADOW:{},BACK_WALL:{},BORDER:{}}}};k=o.TYPE1;k.Jba=j;k.MFa=1;k.BASE[a.rr]=[[2,
0],[3,0]];k.BASE[a.fm]=[[3,1],[3,2]];k.BASE[a.gv]=[[2,3],[3,3]];k.BASE[a.im]=[[2,1],[2,2]];k.BASE[a.vB]=[[4,0],[5,1]];k.BASE[a.wB]=[[4,3],[5,2]];k.BASE[a.xB]=[[0,2],[1,3]];k.BASE[a.Zy]=[[0,1],[1,0]];k.BASE[a.SR]=[[4,1]];k.BASE[a.p7]=[[4,2]];k.BASE[a.q7]=[[1,2]];k.BASE[a.TR]=[[1,1]];k.BASE[a.Zo]=[[3,4],[2,4]];k.BASE[a.vs]=[[5,3],[4,4]];k.BASE[a.ws]=[[1,4],[0,3]];k.BASE[a.MB]=[[2,5],[3,5]];k.BASE[a.YH]=[[4,5],[5,4]];k.BASE[a.ZH]=[[0,4],[1,5]];k.BASE[a.Nja]=[[0,6],[0,7]];k.BASE[a.Oja]=[[0,6],[0,7]];
k.BASE[a.Lja]=[[5,6],[5,7]];k.BASE[a.Mja]=[[5,6],[5,7]];k.ALT.offset={x:0,y:6};k.ALT[a.Zo]=[[3,0],[2,0]];k.ALT[a.vs]=[[5,0],[4,0]];k.ALT[a.ws]=[[1,0],[0,0]];k.SHADOW.offset={x:0,y:0};k.SHADOW[a.yB]=[[0,0]];k.SHADOW[a.L7]=[[5,0]];k.CHASM.offset={x:0,y:1};k.CHASM.mi={};k.CHASM.mi[a.Zo]={start:[1,0]};k.CHASM.mi[a.vs]={start:[1,0]};k.CHASM.mi[a.ws]={start:[1,0]};k.DARK_WALL.offset={x:0,y:7};k.BACK_WALL.offset={x:0,y:7};k.BACK_WALL[a.fm]=[[3,3],[4,2]];k.BACK_WALL[a.im]=[[1,2],[2,3]];k.SUB.XJa=[a.Zo,a.vs,
a.ws];k.SUB.BASE[a.MB]=[[2,4],[3,4]];k.SUB.BASE[a.YH]=[[4,4],[5,3]];k.SUB.BASE[a.ZH]=[[0,3],[1,4]];k.SUB.SHADOW.offset={x:0,y:5};k.SUB.SHADOW[a.rr]=[[2,0],[3,0]];k.SUB.SHADOW[a.Zy]=[[0,0],[1,0]];k.SUB.SHADOW[a.vB]=[[4,0],[5,0]];k.SUB.SHADOW[a.im]=[[0,1],[1,1]];k.SUB.SHADOW[a.fm]=[[5,1],[4,1]];k.SUB.BACK_WALL.offset={x:0,y:7};k.SUB.BACK_WALL[a.rr]=[[2,0],[3,0]];k.SUB.BACK_WALL[a.Zy]=[[0,0],[1,0]];k.SUB.BACK_WALL[a.vB]=[[4,0],[5,0]];k.SUB.BACK_WALL[a.im]=[[0,1],[1,1]];k.SUB.BACK_WALL[a.fm]=[[5,1],[4,
1]];k.SUB.BORDER[a.rr]=[[[2,5]],[[3,5]]];k.SUB.BORDER[a.fm]=[[[4,5]],[[4,6]]];k.SUB.BORDER[a.gv]=[[[2,6]],[[3,6]]];k.SUB.BORDER[a.im]=[[[1,5]],[[1,6]]];o.TYPE2={BASE:{},ALT:{},SHADOW:{},CHASM:{},CHASM_FLOOR:{},DARK_WALL:{},BACK_WALL:{},SUB:{BASE:{},SHADOW:{},CHASM_FLOOR:{},BACK_WALL:{},BORDER:{}}};k=o.TYPE2;k.Jba=w;k.MFa=0;k.BASE[a.rr]=[[1,0]];k.BASE[a.fm]=[[4,1]];k.BASE[a.gv]=[[1,3]];k.BASE[a.im]=[[3,1]];k.BASE[a.vB]=[[2,0]];k.BASE[a.wB]=[[2,3]];k.BASE[a.xB]=[[0,3]];k.BASE[a.Zy]=[[0,0]];k.BASE[a.s8]=
[[4,0]];k.BASE[a.kja]=[[4,2]];k.BASE[a.lja]=[[3,2]];k.BASE[a.t8]=[[3,0]];k.BASE[a.SR]=[[2,1]];k.BASE[a.p7]=[[2,2]];k.BASE[a.q7]=[[0,2]];k.BASE[a.TR]=[[0,1]];k.BASE[a.Zo]=[[1,4]];k.BASE[a.MB]=[[1,7]];k.BASE[a.vs]=[[2,4]];k.BASE[a.YH]=[[2,7]];k.BASE[a.ws]=[[0,4]];k.BASE[a.ZH]=[[0,7]];k.BASE[a.NB]=[[4,3]];k.BASE[a.VZ]=[[4,6]];k.BASE[a.OB]=[[3,3]];k.BASE[a.WZ]=[[3,6]];k.BASE[a.Nja]=[[3,0]];k.BASE[a.Oja]=[[3,1]];k.BASE[a.Lja]=[[4,0]];k.BASE[a.Mja]=[[4,1]];k.BASE.mi={};k.BASE.mi[a.Zo]={loop:[1,2],end:[0]};
k.BASE.mi[a.vs]={loop:[1,2],end:[0]};k.BASE.mi[a.ws]={loop:[1,2],end:[0]};k.BASE.mi[a.NB]={loop:[1,2],end:[0]};k.BASE.mi[a.OB]={loop:[1,2],end:[0]};k.SHADOW.offset={x:0,y:0};k.SHADOW[a.yB]=[[1,1]];k.SHADOW[a.L7]=[[1,2]];k.SHADOW[a.fm]=[[1,1]];k.SHADOW[a.im]=[[1,1]];k.SHADOW.mi={};k.CHASM.offset={x:0,y:8};k.CHASM[a.YH]=[[3,2]];k.CHASM[a.ZH]=[[4,2]];k.CHASM[a.Zo]=[[1,2]];k.CHASM[a.OB]=[[0,2]];k.CHASM[a.NB]=[[2,2]];k.CHASM[a.vs]=[[3,3]];k.CHASM[a.ws]=[[4,3]];k.CHASM.mi={};k.CHASM.mi[a.Zo]={start:[2,
1,0]};k.CHASM.mi[a.vs]={start:[2,1,0]};k.CHASM.mi[a.ws]={start:[2,1,0]};k.CHASM.mi[a.NB]={start:[2,1,0]};k.CHASM.mi[a.OB]={start:[2,1,0]};k.CHASM_FLOOR.offset={x:0,y:8};k.CHASM_FLOOR[a.wB]=[[3,0]];k.CHASM_FLOOR[a.xB]=[[4,0]];k.CHASM_FLOOR[a.Zo]=[[1,1]];k.CHASM_FLOOR[a.OB]=[[0,1]];k.CHASM_FLOOR[a.NB]=[[2,1]];k.CHASM_FLOOR[a.vs]=[[3,1]];k.CHASM_FLOOR[a.ws]=[[4,1]];k.CHASM_FLOOR.mi={};k.CHASM_FLOOR.mi[a.Zo]={start:[3,2,0]};k.CHASM_FLOOR.mi[a.vs]={start:[4,3,0]};k.CHASM_FLOOR.mi[a.ws]={start:[4,3,0]};
k.CHASM_FLOOR.mi[a.NB]={start:[3,2,0]};k.CHASM_FLOOR.mi[a.OB]={start:[3,2,0]};k.DARK_WALL.offset={x:0,y:13};k.DARK_WALL[a.rr]=[[3,1]];k.DARK_WALL[a.vB]=[[1,0]];k.DARK_WALL[a.Zy]=[[0,0]];k.DARK_WALL[a.t8]=[[2,1]];k.DARK_WALL[a.s8]=[[4,1]];k.DARK_WALL[a.Zy]=[[0,0]];k.DARK_WALL[a.SR]=[[2,0]];k.DARK_WALL[a.TR]=[[2,0]];k.DARK_WALL[a.im]=[[0,1]];k.DARK_WALL[a.fm]=[[1,1]];k.BACK_WALL.offset={x:0,y:2};k.BACK_WALL[a.MB]=[[1,6]];k.BACK_WALL[a.YH]=[[2,6]];k.BACK_WALL[a.ZH]=[[0,6]];k.BACK_WALL[a.VZ]=[[4,5]];
k.BACK_WALL[a.WZ]=[[3,5]];k.BACK_WALL[a.fm]=[[1,0]];k.BACK_WALL[a.im]=[[1,0]];k.BACK_WALL.mi={};k.BACK_WALL.mi[a.Zo]={loop:[1],end:[0]};k.BACK_WALL.mi[a.vs]={loop:[1],end:[0]};k.BACK_WALL.mi[a.ws]={loop:[1],end:[0]};k.BACK_WALL.mi[a.NB]={loop:[1],end:[0]};k.BACK_WALL.mi[a.OB]={loop:[1],end:[0]};k.SUB.XJa=[a.Zo,a.MB,a.vs,a.ws,a.NB,a.VZ,a.OB,a.WZ];k.SUB.ybb=[a.Zo,a.vs,a.ws,a.NB,a.OB];k.SUB.BASE[a.YH]=[[2,4]];k.SUB.BASE[a.ZH]=[[0,4]];k.SUB.BASE[a.MB]=[[1,4]];k.SUB.BASE[a.VZ]=[[1,2]];k.SUB.BASE[a.WZ]=
[[1,1]];k.SUB.SHADOW.offset={x:0,y:0};k.SUB.SHADOW[a.Zy]=[[3,3]];k.SUB.SHADOW[a.vB]=[[4,3]];k.SUB.BACK_WALL.offset={x:0,y:0};k.SUB.BACK_WALL[a.wB]=[[3,4]];k.SUB.BACK_WALL[a.xB]=[[4,4]];k.SUB.BORDER[a.rr]=[[[2,5]],[[3,5]]];k.SUB.BORDER[a.fm]=[[[4,5]],[[4,6]]];k.SUB.BORDER[a.gv]=[[[2,6]],[[3,6]]];k.SUB.BORDER[a.im]=[[[1,5]],[[1,6]]];k.SUB.CHASM_FLOOR[a.wB]=[[0,5]];k.SUB.CHASM_FLOOR[a.xB]=[[0,6]];var t={};t[a.im]=a.im;t[a.fm]=a.fm;t[a.Zy]=a.wB;t[a.vB]=a.xB;var r={1:2,2:8,3:9,4:10,5:11},p={1:1,2:6,3:7,
4:4,5:5},q={1:2,2:24,3:25,4:26,5:27},x=ig.ra.extend({XRa:0,Mb:s,kB:[],f:function(a){this.XRa=a.tileCountX;this.Mb=this.eCa(a.base);if(a.terrains)for(var b=0;b<a.terrains.length;++b)this.kB[b]=this.eCa(a.terrains[b])},eCa:function(b){var c=ig.copy(b);c.dD=o[b.mappingType]||s;if(b.blockTypes){c.q0=[];for(var d=b.blockedTypes.length;d--;)c.q0.push(a[b.blockedTypes[d]])}return c},Dka:function(a){if(a&&this.kB[a-1]){a=this.kB[a-1];if(a.dD)return a;if(a.cma)return this.kB[a.cma-1]}return this.Mb},Jba:function(a){return this.Dka(a).dD.Jba},
I9a:function(b){var b=this.Dka(b),c=1;if(b.dD.CHASM.mi)c=b.dD.CHASM.mi[a.Zo].start.length;return c},gIa:function(a){return this.Dka(a).dD.MFa||0},Gpa:function(a){return this.gIa(a)==0},NO:function(){return this.Mb.Ad&&!this.Mb.qob},kqb:function(){return this.Mb.Ad},hcb:function(b,c){return b==a.yB||(c&&this.kB[c-1].q0?this.kB[c-1].q0.indexOf(b)!=-1:this.Mb.q0&&this.Mb.q0.indexOf(b)!=-1)},cu:function(a,b,c,d,e,h,k){e&&!this.kB[e-1]&&(e=0);var l=this.Mb,m=s;if(e&&this.kB[e-1].dD)l=this.kB[e-1];else if(e)(m=
this.kB[e-1])&&m.cma&&(l=this.kB[m.cma-1]);var n=s,o=l.dD,r=o.BASE[a],p=l.Sl,t=l.ZFa,q=o.BASE.mi,x=m&&m.Prb?o.SUB.ybb:o.SUB.XJa;m&&x.indexOf(a)!=-1&&(m=s);if(d){n=o[d].offset;r=o[d][a]||r;q=o[d].mi||q;p=s;t=l.Ad}else if(l.tob&&o.ALT[a]&&Math.random()<0.5){n=o.ALT.offset;r=o.ALT[a]}l=w;if(m)if((x=d&&o.SUB[d])&&x[a]){t=m.ZFa;n=x.offset;r=x[a]}else if(!d){p=m.Sl;t=m.ZFa;r=o.SUB.BASE[a]||r;l=m.border}d=n&&n.y||0;if(this.hcb(a))return p?this.QCa(p.x,p.y):r?this.LCa(t,r,b,c,d):0;if(k&&q&&q[a]){p=q[a];p.end&&
k.end<p.end.length?d=d+p.end[k.end]:p.start&&k.start<p.start.length?d=d+p.start[k.start]:p.loop&&(d=d+p.loop[k.start%p.loop.length])}l&&(e&&h!=-1&&o.SUB.BORDER[a])&&(r=o.SUB.BORDER[a][h]);return!r||r.length==0?0:this.LCa(t,r,b,c,d)},LCa:function(a,b,c,d,e){b=b.length>1&&this.y3a(c,d)?b[1]:b[0];return this.QCa(a.x+b[0],a.y+b[1]+(e||0))},QCa:function(a,b){return b*this.XRa+a+1},y3a:function(a,b){return(a+b)%2}})}});ig.G=j;
ig.I("impact.feature.height-map.height-map-config").J("impact.feature.height-map.height-map").H(function(){if(window.Yc){wm.sB["media/map/autumn-outside.png"]={tileCountX:32,base:{mappingType:"TYPE1",ground:{x:0,y:0},cliff:{x:0,y:5},blockedTypes:["CORNER_SW","CORNER_SE"]},terrains:[{ground:{x:0,y:1},cliff:{x:0,y:5},border:j}]};wm.sB["media/map/old-hideout.png"]={tileCountX:32,base:{mappingType:"TYPE1",ground:{x:0,y:0},cliff:{x:0,y:5},cliffAlt:s,blockedTypes:["CORNER_SW","CORNER_SE"]}};wm.sB["media/map/bergen-trail.png"]=
{tileCountX:32,base:{mappingType:"TYPE1",ground:{x:0,y:0},cliff:{x:0,y:4},cliffAlt:{x:0,y:10},blockedTypes:[]},terrains:[{ground:{x:1,y:0},cliff:{x:6,y:4},border:j},{ground:{x:1,y:2},cliff:{x:12,y:4},border:j},{ground:{x:12,y:12},cliff:{x:12,y:8},border:j}]};wm.sB["media/map/heat-area.png"]={tileCountX:32,base:{mappingType:"TYPE1",ground:{x:0,y:0},cliff:{x:0,y:4},cliffAlt:{x:0,y:10},shadow:{x:6,y:6},blockedTypes:[],chasmOnly:j},terrains:[{ground:{x:11,y:0},cliff:{x:6,y:4},border:j},{ground:{x:1,y:0},
cliff:{x:12,y:4},border:j},{ground:{x:12,y:12},cliff:{x:12,y:8},border:j},{ground:{x:1,y:2},cliff:{x:18,y:4},border:j}]};wm.sB["media/map/cave.png"]={tileCountX:32,base:{mappingType:"TYPE1",ground:{x:0,y:0},cliff:{x:0,y:4},cliffAlt:{x:0,y:10},shadow:{x:6,y:4}},terrains:[{ground:{x:2,y:0},cliff:{x:12,y:4},border:w,shadow:{x:12,y:9}},{ground:{x:8,y:0},cliff:{x:12,y:4},border:w,shadow:{x:12,y:9}}]};wm.sB["media/map/cold-dng.png"]={tileCountX:32,mappingType:"TYPE1",base:{mappingType:"TYPE1",ground:{x:0,
y:0},cliff:{x:0,y:4},cliffAlt:{x:0,y:10},shadow:{x:6,y:4}},terrains:[{mappingType:"TYPE2",ground:{x:12,y:0},cliff:{x:12,y:4},shadow:{x:17,y:4}},{baseTerrain:1,ground:{x:20,y:0},cliff:{x:22,y:4}}]};wm.sB["media/map/heat-dng.png"]={tileCountX:32,base:{mappingType:"TYPE2",ground:{x:0,y:0},cliff:{x:0,y:4},shadow:{x:5,y:4}},terrains:[{ground:{x:1,y:0},cliff:{x:10,y:4},border:j},{ground:{x:9,y:0},cliff:{x:15,y:4},border:j},{ground:{x:19,y:2},cliff:{x:20,y:4},border:w},{ground:{x:26,y:7},cliff:{x:25,y:4},
border:w,overrideWallBase:j}]};wm.sB["media/map/jungle.png"]={tileCountX:32,base:{mappingType:"TYPE1",ground:{x:0,y:0},cliff:{x:0,y:4},cliffAlt:{x:0,y:10},shadow:{x:6,y:6},blockedTypes:[],chasmOnly:j},terrains:[{ground:{x:11,y:0},cliff:{x:6,y:4},border:j},{ground:{x:1,y:0},cliff:{x:12,y:4},border:j},{ground:{x:12,y:12},cliff:{x:12,y:8},border:j},{mappingType:"TYPE1",ground:{x:0,y:1},cliff:{x:6,y:4}}]}}});ig.G=j;ig.I("impact.feature.height-map.plug-in").J("impact.feature.height-map.height-map","impact.feature.height-map.height-map-config").H(F());
ig.G=j;
ig.I("impact.feature.navigation.nav-map").J("impact.base.map","impact.base.image","game.config").H(function(){function a(a,b,c,d,e,h,k){var l=0,m=0;b.min.x-b.max.x?m=b.min.y*e+d<c.ko.y?h:-h:l=b.min.x*e<c.ko.x?h:-h;ig.pH.a8a(a,b.min.x*e+l+Math.abs(m),b.min.y*e+m+Math.abs(l),b.max.x*e+l-Math.abs(m),b.max.y*e+m-Math.abs(l),k||2)}function b(a,b,c,d){var e,h,l;if(d){e=d.ura;h=d.ora+1;l=d.vra;d=d.pra+1}else{e=0;h=a.width;l=0;d=a.height}for(;l<d;++l)for(var m=e;m<h;++m){var n=k(a,b,m,l);if(n&&n<C&&!a.wO(m,
l)){var n=a,o=n.Eo.length+1;n.Foa.length>0&&(o=n.Foa.pop());o>=256&&f(Error("Exceeded NavMap id range of 256! Simplify Nav Map of z height "+n.sg));n=o;o=new ig.jZa(n,a,b,m,l,c);a.Eo[n-1]=o}}}function c(a,b){if(a.cSa!=b){a.cSa=b;a.mwa=s;a.lwa=s;a.nwa=w;a.pwa=-1;a.owa=-1}}function d(a,b){a.c0=w;for(var c=a.Uf.length;c--;)if(a.Uf[c].Zd==b){a.Uf.splice(c,1);return}for(c=a.dN.length;c--;)if(a.dN[c].Zd==b){a.dN.splice(c,1);break}}function e(a,b,c,d,h,k){if(!a.wO(d,h)){a.MPa(d,h,c.id);Vec2.ldb(c.min,d*
a.hb,h*a.hb+k);Vec2.idb(c.max,(d+1)*a.hb,(h+1)*a.hb+k);var m=l(a,b,d,h);m||f(Error("Tried to expand to field with 0 source value"));for(var n,o=0;o<E.length;++o){var r=E[o];if(!(a.q$a(d,h)&r.$t)){n=l(a,b,d+r.x,h+r.y);if(m==n){a.J5(d,h,r.$t);e(a,b,c,d+r.x,h+r.y,k)}else{var p=a,t=b,u=c,q=d,z=h,x=m,y=n,aa=p.wO(q+r.x,z+r.y);n=y&v;if(aa)a:{for(var Y=p,p=p.Eo[aa-1],x=n,y=q+(r.x>0?1:0)+(r.y?0.5:0),t=z+(r.y>0?1:0)+(r.x?0.5:0),aa=p.og[r.Aaa],ga=aa.length;ga--;){n=aa[ga];if(t>=n.min.y&&t<=n.max.y&&y>=n.min.x&&
y<=n.max.x){x&&!u.Kl&&u.og.down.push(n);u.og[r.s1].push(n);if(r.x)for(z=n.min.y;z<n.max.y;++z)Y.J5(q,z,r.$t);else for(q=n.min.x;q<n.max.x;++q)Y.J5(q,z,r.$t);for(r=u.Uf.length;r--;)if(u.Uf[r].Zd==p){u.Uf[r].Wi.og.push(n);break a}r=new ig.c8(I.Sia);r.og.push(n);u.Uf.push({Zd:p,Wi:r});p.Uf.push({Zd:u,Wi:r});break a}}f(Error("Didn't find any edge when something should have been found"))}else{Y=p;p=t;t=z;aa=x;z=y;y=q;for(x=t;l(Y,p,y,x)==aa&&l(Y,p,y+r.x,x+r.y)==z;){Y.J5(y,x,r.$t);y=y+r.y;x=x+r.x}y=y-r.y;
x=x-r.x;q=q-r.y;for(t=t-r.x;l(Y,p,q,t)==aa&&l(Y,p,q+r.x,t+r.y)==z;){Y.J5(q,t,r.$t);q=q-r.y;t=t-r.x}q=q+r.y;t=t+r.x;Y=Math.min(y,q)+(r.x>0?1:0);p=Math.min(x,t)+(r.y>0?1:0);q=Math.max(y,q)+(r.x>0?1:0)+(r.y?1:0);x=Math.max(x,t)+(r.y>0?1:0)+(r.x?1:0);Y={min:{x:Y,y:p},max:{x:q,y:x}};n&&u.og.down.push(Y);z=z%v;z==A.Zya||z==r.Dga?u.Kl||u.og.up.push(Y):z==A.q_a||z==r.Pfa?u.Kl||u.og.upStairs.push(Y):!z||z>=C&&z<=B?n&&!u.Kl?u.og.airBlock.push(Y):u.og.block.push(Y):z&&u.og[r.s1].push(Y)}}}}}}function h(a,b,
c,d,e){if(a.wO(c,d)==b.id){a.MPa(c,d,0);a.P6a(c,d);e.ura=Math.min(e.ura,c);e.ora=Math.max(e.ora,c);e.vra=Math.min(e.vra,d);e.pra=Math.max(e.pra,d);for(var k=0;k<E.length;++k){var l=E[k];h(a,b,c+l.x,d+l.y,e)}}}function k(a,b,c,d){if(a.b2(c,d,ig.lM.aha))return 0;a=a.p$a(c,d);return(a<C||a>B)&&ig.s7.kLa(b.AJ(c,d))?0:a}function l(a,b,c,d){var e=k(a,b,c,d);!a.IIa(c,d)&&(!a.b2(c,d,ig.lM.E7)&&b&&b.JKa(c,d))&&(e=e+v);return e}function m(a,b,c,d,e,h,k){for(var l=0;l<c.length;++l){var m=c[l],o=0,r=0,p=0,t=
0,u=0;if(m.min.x-m.max.x){p=1;u=m.max.x-m.min.x;r=a.wO(m.min.x,m.min.y)==b.id?-1:0}else{t=1;u=m.max.y-m.min.y;o=a.wO(m.min.x,m.min.y)==b.id?-1:0}for(var q=s,v=m.min.x,A=m.min.y,E=0,z=m.min.x,C=m.min.y;E<u;++E,z=z+p,C=C+t){for(var I=s,m=0;!I&&m<d.length;++m)I=d[m].Yoa(z+o,C+r+e[m]);if(I!=q){if(q){m={min:{x:v,y:A},max:{x:z,y:C}};n(a,b,q,m,h,k)}q=I;v=z;A=C}}if(q){m={min:{x:v,y:A},max:{x:z,y:C}};n(a,b,q,m,h,k)}}}function n(a,b,c,d,e,h){for(var k=b.Uf.length;k--;){var l=b.Uf[k];if(l.Zd==c&&l.Wi.type==
e){l.Wi.og.push(d);h&&l.Wi.reverse&&l.Wi.reverse.og.push(o(a,b,c,d));return}}e=new ig.c8(e);e.og.push(d);b.Uf.push({Zd:c,Wi:e});c.dN.push({Zd:b,Wi:e});if(h){h=new ig.c8(h);h.og.push(o(a,b,c,d));e.reverse=h;c.Uf.push({Zd:b,Wi:h});b.dN.push({Zd:c,Wi:h})}}function o(a,b,c,d){d=ig.copy(d);a=(c.height-b.height)/a.hb;d.min.y=d.min.y-a;d.max.y=d.max.y-a;return d}var t=["red","blue","green","yellow","pink","orange","violet","brown"],r=Vec2.create();Vec2.create();var p=Vec2.create(),q={Cz:0,map:31},x={Cz:5,
map:1},y={Cz:8,map:15},z={Cz:12,map:255};ig.lM={aha:{Cz:20,map:7},E7:{Cz:23,map:7},enb:{Cz:26,map:7}};var u=[];ig.pi.Navigation=ig.kZ.extend({Eo:[],Foa:[],OF:w,s:new ig.u({u_:"Navigation",j_:ig.qn.DISABLE_LAYER_SIZE,B_:j,A_:j,z_:ig.qn.DISABLE_LAYER_DISTANCE,k_:ig.qn.DEFAULT_TILE_SIZE,xka:"media/map/pathmap-tiles.png",q_:"impact/feature/navigation/editors/layer-icon.png",Yja:0.6,$ja:0,Zja:0}),f:function(a,b){this.parent(a,b)},Qcb:function(a){b(this,ig.t.$a[a].collision,this.sg);this.OF=j},Vgb:function(a,
c,d,e,h){if(this.OF){for(var k={ura:c,ora:d,vra:e,pra:h},l=e-1;l<=h+1;++l)for(var m=c-1;m<=d+1;++m)if(!(m==c-1||m==d+1)||!(l==e-1||l==h+1)){var n=this.Yoa(m,l);if(n){n.xf(this,m,l,k);this.Eo[n.id-1]=s;this.Foa.push(n.id)}}b(this,ig.t.$a[a].collision,this.sg,k)}},K0:function(a){for(var b=a,c=[],d=[],e=ig.t.$a[a].height;--b>=0;)if(ig.t.$a[b].navigation){c.push(ig.t.$a[b].navigation);d.push((e-ig.t.$a[b].height)/this.hb)}for(var h=a,a=[],b=[];++h<ig.t.bk;)if(ig.t.$a[h].navigation){a.push(ig.t.$a[h].navigation);
b.push((e-ig.t.$a[h].height)/this.hb)}for(e=u.length=0;e<this.Eo.length;++e)if((h=this.Eo[e])&&!h.Kl&&!h.c0){h.c0=j;c.length&&m(this,h,h.og.down,c,d,I.EH,I.Jja);if(a.length){m(this,h,h.og.up,a,b,I.K8);m(this,h,h.og.upStairs,a,b,I.yBa,I.fza)}for(var k=h,l=c,n=d,o=0;o<k.Uf.length;++o){var r=k.Uf[o],p=r.Zd;if(p.Kl&&r.Wi.type==I.Sia){if(!p.c0){p.c0=j;l.length&&m(this,p,p.og.down,l,n,I.EH)}for(var p=r.Zd.Uf,t=0;t<p.length;++t){var q=p[t];if(q.Zd!=k&&!q.Zd.Kl){for(var v=k,A=v.Uf,E=A.length,z=s;E--;)if(A[E].Zd==
q.Zd){z=A[E];break}if(!(z&&z.Wi.type!=I.PH)){for(var C=A=g,B=E=g,x=r.Wi.og,y=q.Wi.og,ca=0;ca<x.length;++ca)for(var ia=Vec2.ab(x[ca].min,x[ca].max),da=0;da<y.length;++da){var fa=Vec2.ab(y[da].min,y[da].max),fa=Math.min(fa,ia),ha=Line2.Q7a(x[ca].min,x[ca].max,y[da].min,y[da].max);if(A==g||fa>C||fa==C&&ha<A){A=ha;C=fa;E=x[ca];B=y[da]}}A=A*this.hb;if(z){if(z.Wi.UJ.Hqa>A){z.Wi.og=[E];z.Wi.UJ.Hqa=A}}else{z=new ig.c8(I.PH);z.og.push(E);z.UJ={Hqa:A,MGa:B};z={Zd:q.Zd,Wi:z};v.Uf.push(z)}}}}}}u.push(h);for(k=
h.Uf.length;k--;){l=h.Uf[k].Wi;n=l.a7;o=l.Z6;r=l.UJ?[l.UJ.MGa]:l.og;p=r.length;t=0;v=j;for(q=0;q<p;++q){t=Math.max(t,Vec2.ab(r[q].min,r[q].max)*this.hb);if(v){v=w;Vec2.assign(n,r[q].min);Vec2.assign(o,r[q].max)}else{Vec2.min(n,r[q].min);Vec2.max(o,r[q].max)}}Vec2.ck(n,this.hb);Vec2.ck(o,this.hb);l.kra=t;if(l.reverse){l.reverse.kra=t;Vec2.assign(l.reverse.a7,n);Vec2.assign(l.reverse.Z6,o)}}}},Xa:function(b){ig.g.context.font="bold 8px Arial, sans-serif";ig.g.context.globalAlpha=1;ig.g.context.save();
for(var c=0;c<this.Eo.length;++c){var d=this.Eo[c];if(d){for(var e=t[d.id%8],h=0;h<d.Uf.length;++h)if(!d.Uf[h].Zd.Kl){for(var k=d.Uf[h].Wi.og,l=0;l<k.length;++l)a(e,k[l],d,b,this.hb,1);k=Vec2.Zm(d.Uf[h].Wi.a7,d.Uf[h].Wi.Z6,0.5,p);l=Vec2.Zm(k,d.ko,0.75,r);ig.pH.a8a(e,k.x,k.y,l.x,l.y-b*0.75,1)}for(h=0;h<d.og.block.length;++h)a("red",d.og.block[h],d,b,this.hb,-2,2);for(h=0;h<d.og.airBlock.length;++h)a("blue",d.og.airBlock[h],d,b,this.hb,-2,2);for(h=0;h<d.og.down.length;++h)a("white",d.og.down[h],d,b,
this.hb,-2,2);for(h=0;h<d.og.up.length;++h)a("white",d.og.up[h],d,b,this.hb,-2,2);for(h=0;h<d.og.upStairs.length;++h)a("yellow",d.og.upStairs[h],d,b,this.hb,-2,2);ig.pH.fillRect(d.Kl?"white":"black",d.ko.x-8,d.ko.y-b-4,12,7);ig.pH.Mob(c+1<10?"0"+(c+1):c+1,e,d.ko.x-6,d.ko.y-b+2)}}ig.g.context.restore()},n_:function(a,b,c){return this.AJ(a,b)>>c.Cz&c.map},gla:function(a,b,c,d){c=(c&d.map)<<d.Cz;this.CQ(a,b,this.AJ(a,b)&~(d.map<<d.Cz)|c)},z4a:function(a,b,c,d){c=c<<d.Cz;this.CQ(a,b,this.AJ(a,b)|c)},
unb:function(a,b,c,d){c=c<<d.Cz;this.CQ(a,b,this.AJ(a,b)&~c)},b2:function(a,b,c){return this.n_(a,b,c)},wua:function(a,b,c,d){this.gla(a,b,c,d)},Bbb:function(a,b,c){return this.wua(a,b,this.b2(a,b,c)+1,c)},G7a:function(a,b,c){this.wua(a,b,this.b2(a,b,c)-1,c)},p$a:function(a,b){return this.n_(a,b,q)},IIa:function(a,b){return this.n_(a,b,x)},Yoa:function(a,b){var c=this.wO(a,b);return c&&this.Eo[c-1]},wO:function(a,b){return this.n_(a,b,z)},MPa:function(a,b,c){return this.gla(a,b,c,z)},q$a:function(a,
b){return this.n_(a,b,y)},J5:function(a,b,c){return this.z4a(a,b,c,y)},P6a:function(a,b){return this.gla(a,b,0,y)},DO:function(a,b){a=Math.floor(a/this.hb);b=Math.floor(b/this.hb);return this.Yoa(a,b)}});ig.pi.Navigation.zca="navigation";var v=256,A={Zya:9,RWa:10,QWa:11,SWa:12,TWa:13,q_a:14,s_a:15,r_a:16,t_a:17,JAa:18},C=A.Zya,B=A.JAa;ig.jZa=ig.ra.extend({id:0,height:0,min:Vec2.create(),max:Vec2.create(),ko:Vec2.create(),Uf:[],dN:[],Kl:w,c0:w,og:{north:[],east:[],south:[],west:[],down:[],up:[],upStairs:[],
block:[],airBlock:[]},cSa:0,mwa:s,$Ra:Vec2.create(),lwa:s,nwa:w,pwa:0,owa:0,f:function(a,b,c,d,h,k){this.id=a;this.height=k;Vec2.Sa(this.min,d*b.hb,h*b.hb+k);Vec2.Sa(this.max,(d+1)*b.hb,(h+1)*b.hb+k);this.Kl=!b.IIa(d,h)&&!b.b2(d,h,ig.lM.E7)&&c&&c.JKa(d,h);e(b,c,this,d,h,k);Vec2.Zm(this.min,this.max,0.5,this.ko)},xf:function(a,b,c,e){for(var k=this.Uf.length;k--;)d(this.Uf[k].Zd,this);for(k=this.dN.length;k--;)d(this.dN[k].Zd,this);h(a,this,b,c,e)},Dqb:function(a){c(this,a);return this.nwa},vsb:function(a,
b){c(this,a);this.nwa=b},ppb:function(a){c(this,a);return this.mwa},opb:function(a){c(this,a);return this.lwa},qpb:function(a){c(this,a);return this.$Ra},usb:function(a,b,d,e){c(this,a);this.mwa=b;this.lwa=d;Vec2.assign(this.$Ra,e)},m$a:function(a){c(this,a);return this.pwa},ysb:function(a,b){c(this,a);this.pwa=b},Bpb:function(a){c(this,a);return this.owa},xsb:function(a,b){c(this,a);this.owa=b},mqb:function(){return this.m$a()!=-1}});ig.c8=ig.ra.extend({og:[],a7:Vec2.create(),Z6:Vec2.create(),kra:0,
type:0,UJ:s,reverse:s,Kp:{Tv:0,i:Vec2.create(),Goa:s,cba:s,rwa:s,GC:-1,vF:-1,closed:w},f:L("type"),gA:function(a){if(this.Kp.Tv!=a){this.Kp.Tv=a;Vec2.Sa(this.Kp.i,0,0);this.Kp.cba=s;this.Kp.rwa=s;this.Kp.Goa=s;this.Kp.GC=-1;this.Kp.vF=-1;this.Kp.closed=w}return this.Kp}});var E=[{x:0,y:-1,$t:1,s1:"north",Aaa:"south",Dga:A.SWa,Pfa:A.t_a},{x:1,y:0,$t:2,s1:"east",Aaa:"west",Dga:A.TWa,Pfa:A.JAa},{x:0,y:1,$t:4,s1:"south",Aaa:"north",Dga:A.RWa,Pfa:A.s_a},{x:-1,y:0,$t:8,s1:"west",Aaa:"east",Dga:A.QWa,Pfa:A.r_a}],
I=ig.Jm={Sia:0,EH:1,K8:2,fza:3,yBa:4,Jja:5,PH:6};ig.Jm=I;Vec2.create()});ig.G=j;
ig.I("impact.feature.navigation.navigation").J("impact.base.game").H(function(){function a(a,b,c,d,e){var h=ig.t.KC(a+4),k=ig.t.$a[h];if(!k||!k.navigation||Math.abs(k.height-a)>4)return w;for(var a=k.navigation,l=Math.floor(b.x/a.hb),m=Math.floor((b.x+c.x-1)/a.hb),n=Math.floor((b.y-k.height)/a.hb),b=Math.floor((b.y+c.y-k.height-1)/a.hb),c=n;c<=b;c++)for(k=l;k<=m;k++)switch(e){case x.Rha:a.Bbb(k,c,d);break;case x.qha:a.G7a(k,c,d);break;case x.k_a:a.wua(k,c,g,d)}a.Vgb(h,l,m,n,b);return j}function b(a,
b){var c=h(ig.t.KC((b!==g?b:a.z)||0)),d=c&&c.sg;return c&&c.DO(a.x,a.y-d)}function c(a){for(var b=ig.t.KC(a.z||0);b>=0;){var c=h(b),d=c&&c.sg;if(c=c&&c.DO(a.x,a.y-d))return c;b--}return s}function d(a){var b=ig.t.KC(a.b.i.z+4),c=h(b);if(!c)return s;a.kb(Q);var d=c.sg,c=e(a,Q,c,d);if(!c){var k=ig.t.$a[b+1]&&ig.t.$a[b+1].height;if(k&&k-a.b.i.z<a.b.i.z-d){b=b+1;c=h(b);if(!c)return s;d=ig.t.$a[b].height;c=e(a,Q,c,d)}}return c}function e(a,b,c,d){var a=a.b,e;if((e=c.DO(b.x,b.y-d))&&!e.Kl||(e=c.DO(a.i.x,
a.i.y-d))&&!e.Kl||(e=c.DO(a.i.x+a.size.x,a.i.y-d))&&!e.Kl||(e=c.DO(a.i.x,a.i.y+a.size.y-d))&&!e.Kl)return e;return e=c.DO(a.i.x+a.size.x,a.i.y+a.size.y-d)}function h(a){for(;ig.t.$a[a]&&!ig.t.$a[a].navigation;)a--;return ig.t.$a[a]&&ig.t.$a[a].navigation}function k(a,b,c,d,e,h){if(!a||!b)return w;if(a==b)return j;if(a.height!=b.height||a.Kl||b.Kl)return w;var k=ig.qn.DEFAULT_TILE_SIZE;Vec2.assign(y,c);y.y=y.y-a.height;Vec2.ck(y,1/k);Vec2.assign(z,d);z.y=z.y-a.height;Vec2.ck(z,1/k);h=(h||4)/k;Vec2.assign(u,
y);for(var c=a,l=[];c&&c!=b;){var m;a:{m=c;for(var n=y,r=z,o=u,p=l,t=h,q=m.Uf.length,E=s;q--;){var C=m.Uf[q];if(p.indexOf(C.Zd)==-1&&!(C.Wi.type==ig.Jm.K8||C.Wi.type==ig.Jm.Jja||C.Wi.type==ig.Jm.yBa))for(var I=C.Wi.og,B=0;B<I.length;++B){var x=I[B];if(Line2.yKa(x.min,x.max,n,r,t,o))if(C.Zd.Kl||C.Wi.type==ig.Jm.EH)E=C;else{m=C;break a}}}m=E}if(!m||m.Kl||m.Wi.type==ig.Jm.EH){if(!e)return w;Vec2.assign(v,u);Vec2.ck(v,k);v.z=a.height;v.y=v.y+a.height;ig.t.Nf.mu(A);return ig.t.trace(A,v.x-4,v.y-4,v.z+
12,d.x-v.x,d.y-v.y,8,8,8,ig.la.PROJECTILE)?w:j}l.push(c);c=m.Zd}return c==b}function l(a,b,c,d,e){if(a==b)return j;if(a.height!=b.height)return w;for(var e=e||0,h=ig.qn.DEFAULT_TILE_SIZE,k=a.Uf.length;k--;){var l=a.Uf[k];if(l.Zd==b){b=l.Wi.og;for(k=0;k<b.length;++k){l=b[k];Vec2.assign(y,l.min);Vec2.ck(y,h);y.y=y.y+a.height;Vec2.assign(z,l.max);Vec2.ck(z,h);z.y=z.y+a.height;if(Line2.yKa(y,z,c,d,e))return j}break}}return w}function m(a,c,e,h){a.z=e.b.i.z;e.kb(a);var k=d(e);if(h.posOffset){h=h.posOffset;
e=ig.Xf.Lr(c.b,e.b,H);c=Vec3.assign(G,a);if(Math.abs(e.x)>Math.abs(e.y)){c.y=c.y+h.x;c.x=c.x+(e.x>0?h.y:-h.y)}else{c.x=c.x+h.x;c.y=c.y+(e.y>0?h.y:-h.y)}if((h=b(c))&&!h.Kl){Vec3.assign(a,c);k=h}}return k}function n(a,b,c,d,e,h,k,l){Line2.Oba(c.min,c.max)?a.y=a.y+(c.min.y*e+d.height>b.y?k*(h.b.size.y+l):-k*(h.b.size.y+l)):a.x=a.x+(c.min.x*e>b.x?k*(h.b.size.x+l):-k*(h.b.size.x+l))}var o=Vec2.create(),t=Vec2.create(),r=Vec2.create(),p=Vec2.create(),q=Vec2.create();sc.w7={NEUTRAL:{wna:[-1,-4,-1,-1,-4],
start:0},PASSIVE:{wna:[1,1,2,1,1,-3],start:0},AGGRESSIVE:{wna:[-2,3,-4,5,-6,7,-8,9,-10],start:-2}};ig.AYa=ig.sf.extend({hb:ig.qn.DEFAULT_TILE_SIZE,n1:[],pma:{},fK:0,empty:j,f:function(){this.parent("Navigation")},zcb:function(a,b,c,e){var h=a.kb(o),l=b.kb(t);if(Vec2.ab(h,l)>c)return w;if(this.empty)return j;a=d(a);b=d(b);return!a||!b?j:k(a,b,h,l,e,4)},Gqb:function(a,b){var c=d(a),e=d(b);return l(c,e,a.kb(),b.kb()),a.b.size.x},Pqb:function(a,c){var e=d(a);return l(e,b(c),a.kb(),c,a.b.size.x)},tpb:function(a,
c,e,h,l){for(var m=c.b.i.z,n=c.b.size.x+8,r=c.kb(o),c=d(c),p=ig.navigation.hb,u=0;u<16;++u){var q=Vec2.Sa(I,0,1);Vec2.rotate(q,Math.PI*2*Math.random());Vec2.length(q,h+(l-h)*Math.random());q=Vec2.add(e,q,t);q.x=(Math.floor(q.x/p)+0.5)*p;q.y=(Math.floor(q.y/p)+0.5)*p;if(k(c,b(q,m),r,q,w,n)){Vec3.Sa(a,q.x,q.y,m);return j}}return w},zIa:function(a,c,e,h,l){var l=l||sc.w7.NEUTRAL,m=c.b.i.z,n=c.b.size.x+8,u=c.kb(o),v=e.kb(t),c=d(c),A=Vec2.sub(u,v,p),e=Vec2.assign(q,e.b.Z);Vec2.Tl(e)&&Vec2.assign(e,A);
var z=Math.PI*2/12;Vec2.kX(e);if(Vec2.hj(A,e)<0){Vec2.hd(e);z=-z}l.start&&Vec2.rotate(e,z*l.start);A=ig.navigation.hb;Vec2.length(e,h);h=l.wna;for(l=0;l<h.length+1;++l){var E=Vec2.add(l>=6?v:u,e,r);E.x=(Math.floor(E.x/A)+0.5)*A;E.y=(Math.floor(E.y/A)+0.5)*A;if(k(c,b(E,m),u,E,w,n)){Vec3.Sa(a,E.x,E.y,m);return j}l<h.length&&Vec2.rotate(e,z*h[l])}return w},K6a:function(){this.pma={}},f5a:function(a,b,c){a&&b&&(this.pma[this.ECa(a,b,c)]=j)},ccb:function(a,b,c){return!a||!b?w:this.pma[this.ECa(a,b,c)]},
ECa:function(a,b,c){a=a.id+"|"+a.height+">"+b.id+"|"+b.height;b=Math.max(c.b.size.x,c.b.size.y);return a=a+("["+b+"|"+c.Zv+"|"+c.b.Px+"|"+!!c.zi.height+"]")},BF:function(a){return new ig.zYa(a)},my:function(){this.n1=[];this.empty=j;for(var a in ig.t.$a){var b=ig.t.$a[a];if(b.navigation){b.navigation.Qcb(a);this.empty=w}}this.K0()},K0:function(){for(var a in ig.t.$a){var b=ig.t.$a[a];b.navigation&&b.navigation.K0(a)}this.fK++;this.K6a()},i2:function(a){return new ig.yYa(a)}});ig.yYa=ig.ra.extend({P:s,
i:Vec3.create(),size:Vec3.create(),f:function(a){this.P=a;this.nHa()},update:function(){this.FOa();this.nHa()},nHa:function(){var b=this.P.b;Vec3.assign(this.i,b.i);Vec3.assign(this.size,b.size);b=a(this.i.z,this.i,this.size,ig.lM.aha,x.Rha);(b=a(this.i.z+this.size.z,this.i,this.size,ig.lM.E7,x.Rha)||b)&&ig.navigation.K0()},FOa:function(){var b=a(this.i.z,this.i,this.size,ig.lM.aha,x.qha);(b=a(this.i.z+this.size.z,this.i,this.size,ig.lM.E7,x.qha)||b)&&ig.navigation.K0()},remove:function(){this.FOa();
this.P=s}});var x={Rha:0,qha:1,k_a:2};ig.wf(function(){return ig.navigation=new ig.AYa});var y=Vec2.create(),z=Vec2.create(),u=Vec2.create(),v=Vec3.create(),A={},C=Vec2.create(),B=Vec2.create(),E=Vec2.create(),I=Vec2.create();Vec2.create();var K=Vec3.create();ig.zYa=ig.ra.extend({fK:0,Pd:s,OG:0,Nu:s,yl:Vec3.create(),hy:0,ji:w,options:s,path:[],TP:-1,Urb:0,ly:{mn:Vec2.create(),Cx:Vec2.create(),Qh:w,height:0},iw:w,IW:w,wga:w,TD:-1,UGa:w,ltb:-1,cC:Vec2.create(),RE:Vec2.create(),uoa:w,Ly:Vec2.create(),
TG:0,uU:0,Ysa:0,f:L("Pd"),BL:function(a,b,c){this.Nu=a;a.kb(this.yl);this.hy=b||0;this.options=c||{};this.ji=w;this.uoa=j;this.OG=this.Pd.b.kg;this.Pd.Yt=w;this.cX()},jY:function(a,b,c){this.Nu=s;Vec3.assign(this.yl,a);this.hy=b||0;this.ji=c||w;this.OG=this.Pd.b.kg;this.Pd.Yt=w;this.cX()},OQa:function(a,b,c,e,h,k,l){var m=d(a),n=this.Pd.kb(o),r=a.kb(t),p=Vec2.ab(n,r);k&&p<k&&(p=k);l&&p>l&&(p=l);this.EDa(m,n,r,p,e,b-c,b+c,h)||this.BL(a,p,w)},Cq:function(a,b,c){ig.navigation.zIa(K,this.Pd,a,b,c)?this.jY(K,
0,w):this.oQ(a,b,w)},oQ:function(a,b,c){for(var e=d(a),h=this.Pd.kb(o),k=a.kb(t),l=b;l>0.5*b;){if(this.EDa(e,h,k,l,c))return;l=l-b/8}this.BL(a,b,w)},bfa:function(a,b,e,h,l){var m=d(a);this.Pd.kb(o);var n=a.kb(t),r=ig.navigation.hb,a=Vec2.assign(I,a.face);Vec2.rotate(a,b*Math.PI*2);for(b=e;b<h;){Vec2.length(a,b);e=Vec2.add(n,a,K);e.z=this.Pd.b.i.z;e.x=(Math.floor(e.x/r)+0.5)*r;e.y=(Math.floor(e.y/r)+0.5)*r;var p=c(e);if(p&&(!l||k(p,m,e,n,j))){e.z=p.height;this.jY(e,this.Pd.b.size.x/2,w);if(this.path)return j}b=
b+16}return w},EDa:function(a,b,d,e,h,l,m,n){if(!a)return w;var r=ig.navigation.hb,b=Vec2.sub(b,d,I);Vec2.length(I,e);var o=Math.random()>0.5?1:-1,p=0,e=32/(Math.PI*2*e),t=Math.ceil(1/e);n&&(o=Vec2.jFa(b,this.Pd.face)?1:-1);if(l){p=e*(l/32);Vec2.rotate(b,Math.PI*2*p*-o)}m&&(t=Math.ceil((m-(l||0))/32*2).Vb(1,t));for(m=s;t--;){m=Vec2.add(d,b,K);m.z=this.Pd.b.i.z;m.x=(Math.floor(m.x/r)+0.5)*r;m.y=(Math.floor(m.y/r)+0.5)*r;if((l=c(m))&&(!h||k(l,a,m,d,j))){m.z=l.height;this.jY(m,this.Pd.b.size.x/2,w);
if(this.path)return j}p=p+e;n||(o=o*-1);Vec2.rotate(b,Math.PI*2*p*o)}return w},jba:function(){return this.path&&this.path.ab||0},Hpb:function(){return this.path&&this.path.Gcb||0},Eqb:function(){return!!this.path},cX:function(){this.fK=ig.navigation.fK;var a=d(this.Pd),c=this.Nu?m(this.yl,this.Pd,this.Nu,this.options):b(this.yl);this.TP=-1;if(ig.navigation.ccb(a,c,this.Pd))this.path=s;else{this.Pd.kb(Q);var e;a:{var h=this.Pd,k=Q,l=this.yl,n;n=O=O%1E7+1;var r=[];if(!a||a.Kl||!c)e={Eo:[]};else if(a==
c)e={Eo:[{Zd:a,K$:s}]};else{if(!c.Kl){var o=Math.max(h.b.size.x,h.b.size.y);do{e=s;var p,t,u;if(r.length==0){p=a;u=k;t=0}else{e=r.pop();var q=e.gA(n);u=q.i;t=q.GC;p=q.rwa;q.closed=j}if(p==c){h=n;k=a;l=[{Zd:c,K$:s}];n=c;r=e;o=w;for(p=0;n!=k;){t=r.gA(h);o=o||n.height!=k.height;n=t.cba;r.UJ&&p++;l.push({Zd:n,K$:r});r=t.Goa}e={Eo:l,ab:e.gA(h).vF,Crb:o,Gcb:p};break a}for(q=p.Uf.length;q--;){var v=p.Uf[q],A=v.Zd,v=v.Wi;if(!(e&&v==e)){var E=v.gA(n);if(!A.Kl&&!(v.type!=ig.Jm.PH&&v.kra<o)&&(!(v.type==ig.Jm.PH||
v.type==ig.Jm.K8)||h.Zv))if(!(h.b.Px&&v.type==ig.Jm.EH)&&(h.zi.height||v.type!=ig.Jm.Jja)&&!(v.type==ig.Jm.PH&&v.UJ.Hqa>1600)){var z=v.type==ig.Jm.PH?1.2:1,C=0;v.type==ig.Jm.EH&&(C=C+50);v.type==ig.Jm.K8&&(C=C+100);Line2.z$(N,v.a7,v.Z6,p.height,1,u,l,0,0);var I=N,z=t+Vec2.ab(u,I)*z+(A.height>p.height?A.height-p.height:0)*2+C,C=E.GC;if(!E.closed||!(z>=C||E.closed.cba!=p))if(C==-1||z<C){C!=-1&&r.xf(v);E.cba=p;E.rwa=A;E.Goa=e;E.GC=z;Vec2.assign(E.i,I);A=z+Vec2.ab(I,l);E.vF=A;for(E=r.length;E&&r[E-1].gA(n).vF<
A;)E--;r.splice(E,0,v)}}}}}while(r.length>0)}e=s}}(this.path=e)||ig.navigation.f5a(a,c,this.Pd)}this.path?this.uU=0:this.uU++;this.iw=0;this.IW=w;this.TD=-1;this.ly.Qh=w;this.Ysa=0;this.Pd.cF();this.Pd.Yt=w;Vec2.Sa(this.cC,0,0);Vec2.Sa(this.RE,0,0)},U2:function(){this.Pd.b.kg=this.OG;this.Pd.zi.minHeight=0;this.Pd.Yt=w},vu:function(){this.fK!=ig.navigation.fK&&this.cX();var a=s;if(this.Nu&&!this.Nu.Zg)if((a=m(K,this.Pd,this.Nu,this.options))&&!a.Kl&&!this.ly.Qh){Vec3.assign(this.yl,K);if(!this.path||
this.path.Eo.length==0||this.path.Eo[0].Zd!=a)this.Ysa>=0?this.cX():this.Ysa++}if(this.Pd.b.vm>0.5)if(this.iw&&!this.wga){this.wga=j;this.iw=0}else if(this.TD==-1){Vec2.Sa(this.cC,0,0);Vec2.Sa(this.RE,0,0);ig.navigation.n1.xf(this.Pd);this.Pd.Yt=j;this.UGa=w;this.TD=0.3;Vec2.rotate(this.Ly,(Math.random()-0.5)*Math.PI);this.Pd.b.vm=0}else this.cX();if(this.TD>0){this.TD=this.TD-ig.g.ga;if(this.TD<0){this.TD=0;this.Pd.Yt=w}this.UGa&&this.TD<0.5?Vec2.Sa(this.Pd.b.Eb,0,0):Vec2.assign(this.Pd.b.Eb,this.Ly);
return w}this.Pd.kb(Q);if(Vec2.Tl(this.cC)){ig.navigation.n1.xf(this.Pd);if(!this.path)return j;this.IW||this.Bhb();if(this.IW){Vec2.assign(this.Ly,this.yl);Vec2.sub(this.Ly,Q);this.TG=Vec2.length(this.Ly);if(this.TG<=Math.max(this.ji?2:8,this.hy+(this.uoa?16:0))){Vec2.Sa(this.Ly,0,0);Vec2.TG=0;this.Pd.b.kg=this.OG;this.Pd.zi.minHeight=0;Vec2.Sa(this.Pd.b.Eb,0,0);return!this.Pd.Zg}if(this.ji&&this.Pd.b.Ui*this.Pd.b.kg>this.TG*10)this.Pd.b.kg=this.TG/this.Pd.b.Ui*10}this.uoa=w;this.W5a();Vec2.assign(this.Pd.b.Eb,
this.Ly);return w}Vec2.assign(this.Pd.b.Eb,this.cC);Vec2.sub(this.Pd.b.Eb,Q);if(Vec2.length(this.Pd.b.Eb)<4)if(Vec2.Tl(this.RE)){Vec2.Sa(this.cC,0,0);this.cX()}else{Vec2.assign(this.cC,this.RE);Vec2.Sa(this.RE,0,0)}},W5a:function(){if(!this.Nu){ig.t.Nf.mu(A);Vec2.assign(C,this.Ly);this.TG>48&&Vec2.length(C,48);var a=[],b=this.Pd.b;if(ig.t.Kw(A,this.Pd,C.x,C.y,0,0,0,ig.la.BLOCK,a)){var c;Vec2.normalize(C);if(Math.abs(Vec2.hj(C,A.dir))<0.8||a.length==0)return;for(var d=a.length;d--;){var e=a[d].P;if(e instanceof
ig.Zb&&ig.navigation.n1.indexOf(e)==-1){if(Vec2.Tl(e.b.Eb)){c=e;break}Vec2.normalize(e.b.Eb,I)}}if(!c)return;a=c.b;c.kb(B);this.Pd.kb(E);Vec2.sub(B,E,I);if(Vec2.hj(I,C)<=0)return;Vec2.sub(B,this.yl,I);if(Math.abs(I.x)<a.size.x/2+b.size.x/2&&Math.abs(I.y)<a.size.y/2+b.size.y/2)return;c=ig.Z1(C.x,C.y,4);if(c==ig.Zb.zh.NORTH||c==ig.Zb.zh.SOUTH){B.x=B.x-((a.size.x+b.size.x)/2+1);B.y=c==ig.Zb.zh.NORTH?B.y+((a.size.y-b.size.y)/2+b.size.y):B.y-((a.size.y-b.size.y)/2+b.size.y);Vec2.assign(E,B);C.x>0?B.x=
B.x+(a.size.x+b.size.x+2):E.x=E.x+(a.size.x+b.size.x+2);C.x=0;C.y=(c==ig.Zb.zh.NORTH?-1:1)*(a.size.y+b.size.y)}else if(c==ig.Zb.zh.EAST||c==ig.Zb.zh.WEST){B.y=B.y-((a.size.y+b.size.y)/2+1);B.x=c==ig.Zb.zh.WEST?B.x+((a.size.x-b.size.x)/2+b.size.x):B.x-((a.size.x-b.size.x)/2+b.size.x);Vec2.assign(E,B);C.y>0?B.y=B.y+(a.size.y+b.size.y+2):E.y=E.y+(a.size.y+b.size.y+2);C.y=0;C.x=(c==ig.Zb.zh.WEST?-1:1)*(a.size.x+b.size.x)}Vec2.sub(B,Q,I);ig.t.Nf.mu(A);if(!ig.t.Kw(A,this.Pd,I.x,I.y,0,0,0,s)){ig.t.Nf.mu(A);
if(!ig.t.Kw(A,this.Pd,C.x,C.y,I.x,I.y,0,s)){Vec2.assign(this.cC,B);Vec2.assign(this.RE,B);Vec2.add(this.RE,C)}}if(Vec2.Tl(this.cC)){Vec2.sub(E,Q,I);A.gf=1;if(!ig.t.Kw(A,this.Pd,I.x,I.y,0,0,0,s)){A.gf=1;if(!ig.t.Kw(A,this.Pd,C.x,C.y,I.x,I.y,0,s)){Vec2.assign(this.cC,E);Vec2.assign(this.RE,E);Vec2.add(this.RE,C)}}}}}Vec2.Tl(this.cC)||ig.navigation.n1.push(this.Pd)},Bhb:function(){if(this.path.Eo.length<=1)this.IW=j;else{if(this.TP==-1){this.TP=this.path.Eo.length-1;this.iw=0;this.wga=w;this.TD=-1;this.pPa()}if(!this.ly.Qh&&
this.iw!=1&&this.TP==1&&l(this.path.Eo[1].Zd,this.path.Eo[0].Zd,Q,this.yl,this.Pd.b.size.x))this.IW=j;else{Vec2.assign(this.Ly,this.iw?this.ly.Cx:this.ly.mn);Vec2.sub(this.Ly,Q);this.TG=Vec2.length(this.Ly);this.Pd.b.kg=this.ly.Qh&&this.iw?1:this.OG;if(this.Pd.zi.height)this.Pd.zi.minHeight=this.ly.height;if(this.TG<8)if(this.ly.Qh&&!this.iw&&this.Pd.Zg){Vec2.sub(this.Ly,0,0);this.TG=0}else{this.iw=this.iw?0:1;if(!this.iw){this.TP--;if(this.TP==0){this.IW=j;this.ly.Qh=w}else{this.wga=w;this.pPa()}}}}}},
pPa:function(){var a=this.ly,b=this.path.Eo,c=this.TP,d=this.Pd,e=this.yl,h=b[c].Zd,k=b[c].K$,l=k.og,m=ig.navigation.hb,r=d.b.size.x/2;k.type==ig.Jm.PH&&(r=8);var o=r+X;d.kb(Q);var p=e;a.height=h.height;if(c>1){p=b[c-1].K$;a.height=b[c-1].Zd.height;Line2.z$(N,p.a7,p.Z6,a.height,1,Q,e,r,o);p=N}for(var b=l.length,c=g,t;b--;){var q=l[b];t=Line2.z$(U,q.min,q.max,h.height,m,Q,p,r,o);if(t!==w&&(c===g||c>t)){c=t;n(U,h.ko,q,h,m,d,-0.5,V*2);Vec2.assign(a.mn,U);if(k.type!=ig.Jm.PH){a.Qh=w;n(U,h.ko,q,h,m,d,
1,V*2+(k.type==ig.Jm.EH?16:0))}else{a.Qh=j;t=k.UJ.MGa;Line2.z$(U,t.min,t.max,h.height,m,Q,e,r,o);n(U,a.mn,t,h,m,d,0.5,V*2)}Vec2.assign(a.Cx,U)}}if(d=k.type==ig.Jm.Sia||k.type==ig.Jm.EH||k.type==ig.Jm.fza){e=Vec2.assign(W,a.Cx);Vec2.sub(e,Q);p=Vec2.assign(T,p);Vec2.sub(p,a.Cx);Vec2.oc(e,p)>Math.PI*0.3&&(d=w)}if(d)this.iw=2;else{Vec2.assign(J,this.ly.mn);Vec2.sub(J,Q);Vec2.assign(D,this.ly.Cx);Vec2.sub(D,Q);if(Vec2.hj(J,D)<0)this.iw=1}}});var H=Vec2.create(),G=Vec3.create(),J=Vec2.create(),D=Vec2.create(),
N=Vec2.create(),O=0,U=Vec2.create(),Q=Vec2.create(),W=Vec2.create(),T=Vec2.create(),X=0,V=4});ig.G=j;
ig.I("impact.feature.navigation.navigation-steps").J("impact.base.action","impact.base.event").H(function(){function a(a,b,c){if(!c)return j;if(a.Fa&&b.Hb<=0&&!b.Zg){c.U2();return j}return c.vu()&&!a.FC}var b=Vec3.create(),c={ENEMY:function(a,b,c,d){if(b=b.Yp||b.target){a.BL(b,c,d);return j}},PROXY_OWNER:function(a,b,c,d){if(b.$c){a.BL(b.$c,c,d);return j}},COLLAB_ENTITY:function(a,b,c,d){if(b.An&&b.An.P){a.BL(b.An.P,c,d);return j}},COLLAB_POINT:function(a,b,c){if(b.An&&b.An.$sa){a.jY(b.An.$sa,c,w);
return j}}};ig.Ha.NAVIGATE_TO_TARGET=ig.Pa.extend({Fa:0,FC:w,ab:0,gR:w,ik:w,QD:0,s:new ig.u({attributes:{Fa:{c:"Number",d:"Maximum time spend on navigation"},FC:{c:"Boolean",d:"Keep moving, never stop until maxTime has been reached"},ab:{c:"Number",d:"The maximum amount of distance to the target"},gR:{c:"Boolean",d:"If true: stay behind target"},ik:{c:"Boolean",d:"If true, only plan navigation, but don't execute it"},QD:{c:"String",d:"Type of target",Y:c}}}),f:function(a){this.Fa=a.maxTime||0;this.ab=
a.distance||0;this.FC=a.forceTime||w;this.gR=a.stayBehind||w;this.ik=a.planOnly||w;this.QD=c[a.targetType]||c.ENEMY},start:function(a){a.tb.path=s;var b=a.Af?a.Af.path:ig.navigation.BF(a);if(this.QD(b,a,this.ab,this.gR)){a.Hb=a.Hb+this.Fa;a.tb.path=b}},xa:function(b){return this.ik?j:a(this,b,b.tb.path)}});var d={ENEMY:function(a,b,c,d){if(b.target){a.oQ(b.target,c,d);return j}},COLLAB_ENTITY:function(a,b,c,d){if(b.An&&b.An.P){a.oQ(b.An.P,c,d);return j}}};ig.Ha.NAVIGATE_ESCAPE_TARGET=ig.Pa.extend({Fa:0,
ab:0,pt:w,ik:w,QD:0,s:new ig.u({attributes:{Fa:{c:"Number",d:"Maximum time spend on navigation"},ab:{c:"Number",d:"The minimum amount of distance to the target"},pt:{c:"Boolean",d:"True if after escape, entity should be able to throw at target"},ik:{c:"Boolean",d:"If true, only plan navigation, but don't execute it"},QD:{c:"String",d:"Type of target",Y:d}}}),f:function(a){this.Fa=a.maxTime||0;this.ab=a.distance||0;this.pt=a.throwing||w;this.ik=a.planOnly||w;this.QD=d[a.targetType]||d.ENEMY},start:function(a){a.tb.path=
s;var b=a.Af?a.Af.path:ig.navigation.BF(a);if(this.QD(b,a,this.ab,this.pt)){a.Hb=a.Hb+this.Fa;a.tb.path=b}},xa:function(b){return this.ik?j:a(this,b,b.tb.path)}});ig.Ha.NAVIGATE_SIDEWAYS_TARGET=ig.Pa.extend({Fa:0,ab:0,Bna:0,pt:w,ik:w,s:new ig.u({attributes:{Fa:{c:"Number",d:"Maximum time spend on navigation"},ab:{c:"Number",d:"The minimum amount of distance to move"},Bna:{c:"Number",d:"The maximum amount of distance to move"},uLa:{c:"Boolean",d:"If true: always move close to face direction."},pt:{c:"Boolean",
d:"True if after sideway movement, entity should be able to throw at target"},ik:{c:"Boolean",d:"If true, only plan navigation, but don't execute it"},THa:{c:"Number",d:"If defined always force this minimum distance to the target",U:j},SHa:{c:"Number",d:"If defined always force this minimum distance to the target",U:j}}}),f:function(a){this.Fa=a.maxTime||0;this.ab=a.distance||0;this.Bna=a.distVariance||0;this.pt=a.throwing||w;this.ik=a.planOnly||w;this.uLa=a.keepDirection||w;this.THa=a.forceMinTargetDistance||
0;this.SHa=a.forceMaxTargetDistance||0},start:function(a){a.tb.path=s;if(a.target){a.Hb=a.Hb+this.Fa;var b=a.Af?a.Af.path:ig.navigation.BF(a);b.OQa(a.target,this.ab,this.Bna,this.pt,this.uLa,this.THa,this.SHa);a.tb.path=b}},xa:function(b){return this.ik?j:a(this,b,b.tb.path)}});ig.Ha.NAVIGATE_TO_ENTITY=ig.Pa.extend({P:s,Fa:0,ab:0,bqa:0,gR:w,ik:w,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to move to"},Fa:{c:"Number",d:"Maximum time spend on navigation"},ab:{c:"Number",d:"The entity will move as close as to this distance "},
bqa:{c:"Number",d:"The entity will not move if distance is below this value"},gR:{c:"Boolean",d:"If true: stay behind target"},ik:{c:"Boolean",d:"If true, only plan navigation, but don't execute it"}}}),f:function(a){this.P=a.entity;this.Fa=a.maxTime||0;this.ab=a.distance||0;this.bqa=a.ignoreBelow||0;this.gR=a.stayBehind||w;this.ik=a.planOnly||w},start:function(a){var b=ig.Ra.pd(this.P);a.tb.path=s;if(b&&!(a.hU(b)<this.bqa)){a.Hb=a.Hb+this.Fa;var c=a.Af?a.Af.path:ig.navigation.BF(a);c.BL(b,this.ab,
this.gR);a.tb.path=c}},xa:function(b){return this.ik?j:a(this,b,b.tb.path)}});ig.Ha.NAVIGATE_ESCAPE_ENTITY=ig.Pa.extend({P:s,Fa:0,ab:0,pt:w,ik:w,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to escape from"},Fa:{c:"Number",d:"Maximum time spend on navigation"},ab:{c:"Number",d:"The minimum amount of distance to the target"},pt:{c:"Boolean",d:"True if after escape, entity should be able to throw at target"},ik:{c:"Boolean",d:"If true, only plan navigation, but don't execute it"}}}),f:function(a){this.P=
a.entity;this.Fa=a.maxTime||0;this.ab=a.distance||0;this.pt=a.throwing||w;this.ik=a.planOnly||w},start:function(a){var b=ig.Ra.pd(this.P);a.tb.path=s;if(b){a.Hb=a.Hb+this.Fa;var c=a.Af?a.Af.path:ig.navigation.BF(a);c.oQ(b,this.ab,this.pt);a.tb.path=c}},xa:function(b){return this.ik?j:a(this,b,b.tb.path)}});ig.Ha.NAVIGATE_DODGE=ig.Pa.extend({Fa:0,ab:0,ik:w,Fna:s,s:new ig.u({attributes:{Fa:{c:"Number",d:"Maximum time spend on navigation"},ab:{c:"Number",d:"The minimum amount of distance to the target"},
ik:{c:"Boolean",d:"If true, only plan navigation, but don't execute it"},Fna:{c:"String",d:"Type of dodging.",Y:sc.w7}}}),f:function(a){this.Fa=a.maxTime||0;this.ab=a.distance||0;this.ik=a.planOnly||w;this.Fna=sc.w7[a.dodgeType]||sc.w7[a.NEUTRAL]},start:function(a){var b=a.ega||a.target;a.tb.path=s;if(b){a.Hb=a.Hb+this.Fa;var c=a.Af?a.Af.path:ig.navigation.BF(a);c.Cq(b,this.ab,this.Fna);a.tb.path=c}},xa:function(b){return this.ik?j:a(this,b,b.tb.path)}});ig.Ha.NAVIGATE_TO_POINT=ig.Pa.extend({target:j,
Fa:0,ab:0,ji:w,ik:w,s:new ig.u({attributes:{target:{c:"Vec3",d:"Point to navigate to",BE:j,rv:j,Ht:j},Fa:{c:"Number",d:"Maximum time spend on navigation"},ab:{c:"Number",d:"The maximum amount of distance to the target"},ji:{c:"Boolean",d:"Reach the target precisely, slowing down accordingly"},ik:{c:"Boolean",d:"If true, only plan navigation, but don't execute it"}}}),f:function(a){assertContent(a,"target");this.target=a.target;this.Fa=a.maxTime||0;this.ab=a.distance||0;this.ji=a.precise||w;this.ik=
a.planOnly||w},start:function(a){a.Hb=a.Hb+this.Fa;var c=ig.rf.Mv(this.target,a,b);if(c){var d=a.Af?a.Af.path:ig.navigation.BF(a);d.jY(c,this.ab,this.ji);a.tb.path=d}else a.tb.path=s},xa:function(b){return this.ik?j:a(this,b,b.tb.path)}});ig.Ha.DO_NAVIGATION=ig.Pa.extend({Fa:0,s:new ig.u({attributes:{Fa:{c:"Number",d:"Maximum time spend on navigation"}}}),f:function(a){this.Fa=a.maxTime||0},start:function(a){a.Hb=a.Hb+this.Fa},xa:function(b){return!b.Af?j:a(this,b,b.Af.path)}});ig.Ha.CANCEL_IF_NAVIGATION_FAILED=
ig.Pa.extend({time:0,s:new ig.u({attributes:{time:{c:"Number",d:"Time to wait before canceling"}}}),f:function(a){this.time=a.time;if(this.time==g)this.time=0.5},start:function(a){a.Hb=a.Hb+this.time},xa:function(a){if(!a.Af||a.Af.path.uU==0)return j;if(a.Hb>0)return w;a.xk();return j}})});ig.G=j;ig.I("impact.feature.navigation.plug-in").J("impact.feature.navigation.nav-map","impact.feature.navigation.navigation","impact.feature.navigation.navigation-steps").H(F());ig.G=j;
ig.I("impact.feature.map-content.map-style").J("impact.base.game").H(function(){ig.qE={};ig.nf=ig.sf.extend({currentStyle:s,Pnb:j,f:function(){this.parent("MapStyle")},get:function(a){if(ig.qE[this.currentStyle]&&ig.qE[this.currentStyle][a])return ig.qE[this.currentStyle][a];if(ig.qE["default"])return ig.qE["default"][a]},TF:100,at:function(a){this.currentStyle=a.attributes&&a.attributes.mapStyle}});ig.nf.Hf=function(a,b,c){ig.qE[a]||(ig.qE[a]={});ig.qE[a][b]=c};ig.wf(function(){return ig.Ef=new ig.nf})});
ig.G=j;
ig.I("impact.feature.map-content.entities.hidden-block").J("impact.base.entity").H(function(){ig.ya.HiddenBlock=ig.gd.extend({mc:0,s:new ig.u({Bd:j,attributes:{shape:{c:"String",d:"Height-Shape of Block Entity",Y:ig.mk},ml:{c:"String",d:"Height-Shape of Block Entity",Y:ig.em},sg:{c:"Number"},mc:{c:"String",d:"Terrain of prop",Y:ig.Gd,Oi:j},Rp:{c:"VarCondition",d:"Condition for prop to appear",sd:j},xq:{c:"String",d:"Default is BLOCK",U:j,Y:ig.la}},label:R(""),Fj:j,Ip:j,Jp:j,hl:"rgba(0,255,255, 0.5)",yF:"rgba(0,120,120, 0.8)"}),
f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la[d.collType]||ig.la.BLOCK;d.size||this.b.v(32,32,0);this.b.shape=ig.mk[d.shape||"RECTANGLE"];this.b.ml=ig.em[d.heightShape]||0;this.mc=ig.Gd[d.terrain]||s;this.b.size.z=d.zHeight||0}})});ig.G=j;
ig.I("impact.feature.map-content.entities.door").J("impact.base.entity","impact.base.actor-entity","impact.feature.map-content.entities.hidden-block","impact.feature.base.entities.object-layer-view").H(function(){ig.SL={};ig.SL.DEFAULT={La:s,XW:0,size:{x:32,y:16,z:48}};var a={REGULAR:1,INTER_AREA:2};ig.ya.Door=ig.fe.extend({Ax:s,jb:s,map:"",De:"",dir:"SOUTH",jU:s,Ga:w,xK:0,Rk:w,PO:s,Ik:s,jo:s,EA:s,Kb:{vf:new ig.da("media/sound/puzzle/door-activate-2.mp3"),open:new ig.da("media/sound/puzzle/door-open.mp3")},
s:new ig.u({Bd:j,attributes:{Ax:{c:"String",d:"Type of door",Y:ig.SL},jb:{c:"VarCondition",d:"Condition for the door to open",sd:j},dir:{c:"String",d:"View direction of door.",Y:ig.Zb.zh,ub:"SOUTH"},map:{c:"Maps",d:"Map to be loaded",Ah:"Map"},De:{c:"Marker",d:"Marker on map to teleport player to"},Mba:{c:"VarCondition",d:"Condition for entity to become transparent"},Ik:{c:"Event",d:"Event to be performed when entering the door",sd:j,U:j},jo:{c:"VarCondition",d:"Condition to show the block event when entering this door"},
ytb:{c:"DoorVariations",d:"Variation of door"},wR:{c:"String",d:"Type of transition.",Y:a}},label:function(){return"[ "+this.jb+" ]\n"+this.map+" > "+this.De}}),f:function(b,c,d,e){this.parent(b,c,d,e);this.Ax=ig.SL[e.doorType]||ig.SL.DEFAULT;this.wR=a[e.transitionType]||a.REGULAR;this.b.type=ig.la.BLOCK;this.b.v(this.Ax.size.x,this.Ax.size.y,this.Ax.size.z);this.b.time.Gj=j;if(this.Ax.EA)this.EA=new ig.al(this.Ax.EA);this.map=e.map;this.De=e.marker;this.dir=e.dir||"SOUTH";b=this.b;if(this.Ax.La){this.Rk=
w;this.dir="SOUTH";this.ld(this.Ax.La)}else{var c=ig.Ef.get("map"),d=this.dir=="NORTH"?4:0,h=c.Gna&&c.Gna[e.variation],k=this.dir=="EAST"||this.dir=="WEST";this.Rk=c.Rk&&this.map;var l=0,m=0;if(h){l=h.x||0;m=h.y||0;this.Rk=(h.jU!=g?h.jU:this.Rk)&&this.map}k?this.ld({shapeType:"Y_FLAT",offset:{x:this.dir=="WEST"?-8:8,y:0,z:0},sheet:{src:c.sheet,width:16,height:96,offX:l+128,offY:m,xCount:1},tileOffset:d,flipX:this.dir=="EAST",SUB:[{name:"idle",time:1,frames:[0],repeat:w},{name:"open",time:1,frames:[0],
repeat:w},{name:"close",time:1,frames:[0],repeat:w}]}):this.ld({shapeType:"Y_FLAT",offset:{x:0,y:this.dir=="NORTH"?-15:0,z:0},sheet:{src:c.sheet,width:32,height:48,xCount:4,offX:l,offY:m},tileOffset:d,SUB:[{name:"idle",time:1,frames:[0],repeat:w},{name:"open",time:0.04,frames:[1,2,3],repeat:w},{name:"close",time:0.04,frames:[2,1,0],repeat:w}]});switch(this.dir){case "NORTH":this.Za.alpha=0.8;break;case "WEST":b.size.x=16;b.size.y=32;break;case "EAST":b.size.x=16;b.size.y=32}}this.jb=new ig.ce(e.condition);
this.Ga=this.jb.evaluate();if(e.blockEvent){this.Ik=new ig.Ra({name:"DOOR BLOCK EVENT",steps:e.blockEvent});this.jo=new ig.ce(e.blockEventCondition||"true")}this.Ja("idle");if(e.hideCondition)this.PO=new ig.rya(e.hideCondition)},Tb:function(a){this.parent(a);this.EA&&this.EA.Qa()},show:function(a){this.parent(a);a=this.b;if(this.Rk){var c=a.i.x,d=a.i.y;switch(this.dir){case "NORTH":d=d-a.size.y;break;case "WEST":c=c-a.size.x}this.jU=ig.t.af(ig.KUa,c,d,a.i.z,{dir:this.dir,active:this.Ga})}if(!this.map)if(this.dir==
"NORTH"||this.dir=="SOUTH"){ig.t.af("HiddenBlock",a.i.x,a.i.y,a.i.z,{size:{x:4,y:a.size.y},zHeight:a.size.z});ig.t.af("HiddenBlock",a.i.x+a.size.x-4,a.i.y,a.i.z,{size:{x:4,y:a.size.y},zHeight:a.size.z})}else{ig.t.af("HiddenBlock",a.i.x,a.i.y,a.i.z,{size:{x:a.size.x,y:4},zHeight:a.size.z});ig.t.af("HiddenBlock",a.i.x,a.i.y+a.size.y-4,a.i.z,{size:{x:a.size.x,y:4},zHeight:a.size.z})}},update:function(){this.PO&&this.PO.update(this);if(this.xK){if(this.R$a().length>(this.map?0:2))this.xK=1;this.xK=this.xK-
ig.g.ga;if(this.xK<=0){this.xK=0;this.Ja("close",j);this.map||this.b.Mp(ig.la.BLOCK)}}this.parent()},open:function(a){if(!this.xK){this.EA||(a?this.Kb.open.play():ig.Tg.ah(this.Kb.open,this));this.Ja("open",j);this.map||this.b.Mp(ig.la.TRIGGER)}this.xK=1+this.Ax.XW;this.EA&&this.EA.Ya(this)},Fg:function(){var a=this.jb.evaluate();if(this.Ga!=a){this.Ga=a;this.jU&&this.jU.setActive(this.Ga);this.Ga&&this.Kb.vf.play()}},lo:function(b,c){if(this.Ga){var d=Vec2.sub(b.kb(),this.kb()),e=this.b;if(this.dir==
"SOUTH"&&Math.abs(d.x)<e.size.x/2||this.dir=="NORTH"&&Math.abs(d.x)<e.size.x/2||this.dir=="EAST"&&Math.abs(d.y)<e.size.y/2||this.dir=="WEST"&&Math.abs(d.y)<e.size.y/2)if(!this.map&&b instanceof ig.Zb)this.open();else if(this.map&&ig.t.zqa(this,b,c)&&ig.t.bP()&&b.b.i.z==this.b.i.z)if(this.Ik&&this.jo.evaluate())sc.So.KD(this.Ik);else{if(this.wR==a.INTER_AREA){ig.t.sfa(255,255,255,w);ig.t.Vua(1,1);sc.pb.QHa();ig.Zf.XKa()&&ig.Zf.pause("SLOW")}this.b.nl=j;this.open(j);d=this.d$a(b);d.steps.push({type:"TELEPORT",
map:this.map,marker:this.De});d=new ig.Ra(d);ig.t.Vg.wq(d,ig.bl.BLOCKING)}}},nU:function(a){this.open();var c=this.fA(a),c=new ig.rf("doorAction",c);a.If(c)},mP:function(){this.open()},fA:function(a){return[{type:"SET_SLIP_THROUGH",value:j},{type:"SET_WALK_ANIMS",config:"normal"},{type:"SET_FACE_FIX",value:w},{type:"SET_RELATIVE_SPEED",value:0.5},{type:"MOVE_TO_POINT",target:this.kpa(a)},{type:"MOVE_TO_POINT",target:this.Z9a(a)},{type:"WAIT",time:1}]},d$a:function(a){var c={steps:[{type:"DO_ACTION",
entity:a,action:this.fA(a)}]};if(this.Ax.XW){c.steps.unshift({type:"WAIT",time:this.Ax.XW});var d=this.kb();d.y=d.y+(this.b.size.y/2+a.b.size.y/2+8);c.steps.unshift({type:"DO_ACTION",entity:a,action:[{type:"SET_SLIP_THROUGH",value:j},{type:"SET_WALK_ANIMS",config:"normal"},{type:"SET_FACE_TO_ENTITY",entity:this,rotate:j},{type:"SET_FACE_FIX",value:j},{type:"SET_RELATIVE_SPEED",value:0.5},{type:"MOVE_TO_POINT",target:d,precise:j},{type:"SET_FACE",face:"NORTH",rotate:j}]})}return c},kpa:function(a){var c=
this.kb(),d=this.b,a=a.b;switch(this.dir){case "NORTH":c.y=c.y-(d.size.y/2-a.size.y/2);break;case "SOUTH":c.y=c.y+(d.size.y/2-a.size.y/2);break;case "EAST":c.x=c.x+(d.size.x/2-a.size.x/2);break;case "WEST":c.x=c.x-(d.size.x/2-a.size.x/2)}return c},Z9a:function(){var a=this.kb(),c=this.b;switch(this.dir){case "NORTH":a.y=a.y+c.size.y/2;break;case "SOUTH":a.y=a.y-c.size.y/2;break;case "EAST":a.x=a.x-c.size.x/2;break;case "WEST":a.x=a.x+c.size.x/2}return a},ZB:function(a){var c=this.b;a.b.aa=c.aa;a.b.jc=
c.jc;a.b.i.z=c.i.z;ig.Zb.Mr(ig.Zb.Cl[this.dir]||0,a.face);var d=c.i.x+c.size.x/2-a.b.size.x/2,e=c.i.y+c.size.y/2-a.b.size.y/2;switch(this.dir){case "NORTH":e=e-(c.size.y/2+16);break;case "SOUTH":e=e+(c.size.y/2+16);break;case "WEST":d=d-(c.size.x/2+16);break;case "EAST":d=d+(c.size.x/2+16)}a.l(d,e)}});ig.KUa=ig.fe.extend({dir:"SOUTH",Tc:w,f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.NONE;this.b.v(32,32,0);this.b.time.Gj=j;this.dir=e.dir;this.Tc=e.active||w;a=ig.Ef.get("map");this.ld({sheet:{src:a.sheet,
width:32,height:32,offY:96,xCount:5},tileOffset:this.dir=="EAST"||this.dir=="WEST"?0:5,flipX:this.dir=="EAST",flipY:this.dir=="NORTH",SUB:[{name:"active",time:1,frames:[4],repeat:w},{name:"inactive",time:1,frames:[0],repeat:w},{name:"activate",time:0.06,frames:[1,2,3,3,3],repeat:w},{name:"deactivate",time:0.06,frames:[3,2,1],repeat:w}]});this.Ja(this.Tc?"active":"inactive")},setActive:function(a){if(a!=this.Tc)(this.Tc=a)?this.Ja("activate",j,"active"):this.Ja("deactivate",j,"inactive")}})});
ig.G=j;
ig.I("impact.feature.map-content.entities.stair-door").J("impact.base.entity","impact.base.actor-entity","impact.feature.map-content.entities.hidden-block","impact.feature.base.entities.object-layer-view").H(function(){var a={UPWARDS_EAST:{Cga:j,hd:w},UPWARDS_WEST:{Cga:j,hd:j},DOWNWARDS_EAST:{Uz:j,hd:w},DOWNWARDS_WEST:{Uz:j,hd:j}},b=Vec3.create(),c=Vec3.create(),d=Vec2.create(),e=Vec2.create();ig.ya.TeleportStairs=ig.gd.extend({r:s,map:"",De:"",sL:a.UPWARDS_EAST,Ik:s,jo:s,VQ:0,wR:0,yA:0,o$:w,Y3:s,
s:new ig.u({Bd:j,attributes:{sL:{c:"String",d:"View direction of teleport ground.",Y:a},map:{c:"Maps",d:"Map to be loaded",Ah:"Map"},De:{c:"Marker",d:"Marker on map to teleport player to"},Ik:{c:"Event",d:"Event to be performed when entering the teleport ground",sd:j,U:j},jo:{c:"VarCondition",d:"Condition to show the block event when entering this teleport ground"},yA:{c:"Number",d:"Probability that NPCs will enter and leave through this exit"},NLa:{c:"String",d:"Object layer from which to display surrounding stuff",
Y:{object1:1,object2:1,object3:1},Oi:j}},label:function(){return this.map+" > "+this.De+"\n\n\n"},Fj:j,hl:"rgba(255,255,0, 0.5)",yF:"rgba(120,120,0, 0.8)",L9:j}),f:function(b,c,d,e){this.parent(b,c,d,e);this.b.type=ig.la.BLOCK;this.b.v(32,16,48);this.map=e.map;this.De=e.marker;this.sL=a[e.stairType]||a.UPWARDS_EAST;if(b=e.layer)this.Y3=ig.t.sba(b);if((b=ig.Ef.get("map"))&&b.ZQ)this.r=new ig.$(b.sheet);this.yA=e.npcRunnerProb||0;if(e.blockEvent){this.Ik=new ig.Ra({name:"DOOR BLOCK EVENT",steps:e.blockEvent});
this.jo=new ig.ce(e.blockEventCondition||"true")}},Tb:function(a){this.parent(a);this.r&&this.r.zc()},Jn:function(){var a=1;Vec3.assign(b,this.b.i);b.x=b.x-16;Vec3.Sa(c,64,16,64);this.Y3&&(a=a+ig.oS.jpa(this,this.Y3,b,c));this.dm(a)},tj:function(){if(!this.qL){Vec3.assign(b,this.b.i);b.x=b.x-16;Vec3.Sa(c,64,16,64);if(!this.Y3||ig.oS.tj(this,this.Y3,0,s,b,c)){this.qL=j;var a=ig.Ef.get("map");if(a&&a.ZQ){var d=this.Ta.last();d.AG(this,32,48,ig.Xy.Z_FLAT,0,s,this.r,a.ZQ.x+(this.sL.Uz?32:0),a.ZQ.y);d.I5(this.sL.hd,
w)}}}},lo:function(a,b){if(this.map&&ig.t.zqa(this,a,b)&&ig.t.bP()&&a.b.i.z==this.b.i.z)if(this.Ik&&this.jo.evaluate())sc.So.KD(this.Ik);else{this.b.nl=j;var c=this.fA(a),c=new ig.Ra({steps:[{type:"DO_ACTION",entity:a,action:c},{type:"WAIT",time:0.4},{type:"TELEPORT",map:this.map,marker:this.De}]});ig.t.Vg.wq(c,ig.bl.BLOCKING)}},nU:function(a){var b=this.fA(a,j),b=new ig.rf("doorAction",b);a.If(b)},mP:F(),fA:function(a){var a=[{type:"SET_SLIP_THROUGH",value:j},{type:"SET_WALK_ANIMS",config:"normal"},
{type:"SET_FACE_FIX",value:w},{type:"SET_RELATIVE_SPEED",value:0.5},{type:"MOVE_TO_POINT",target:this.kpa(a)},{type:"SHOW_ANIMATION",anim:"move",viaWalkConfig:j},{type:"SET_FACE",value:0.2,face:"NORTH"},{type:"SET_FACE_FIX",value:j}],b,c,m;if(this.sL.Cga){d.y=-16;d.x=8;e.y=-40;e.x=24;b=this.sL.hd?"NORTH_WEST":"NORTH_EAST";m=c=0.4}else{d.y=-8;d.x=8;e.y=-4;e.x=24;c=0.2;m=0.3;b=this.sL.hd?"NORTH_WEST":"NORTH_EAST"}if(this.sL.hd){d.x=-d.x;e.x=-e.x}var n=Vec2.add(this.kb(),d),o=Vec2.add(this.kb(),e);a.push.apply(a,
[{type:"SET_RELATIVE_SPEED",value:c},{type:"MOVE_TO_POINT",target:n},{type:"SET_RELATIVE_SPEED",value:m},{type:"SET_FACE",value:0.2,face:b},{type:"MOVE_TO_POINT",target:o},{type:"WAIT",time:1}]);return a},kpa:function(a){var b=this.kb();b.y=b.y+(this.b.size.y/2-a.b.size.y/2+4);return b},ZB:function(a){var b=this.b;a.b.aa=b.aa;a.b.jc=b.jc;a.b.i.z=b.i.z;ig.Zb.Mr(ig.Zb.Cl[this.dir]||0,a.face);Vec2.hd(a.face);var c=b.i.x+b.size.x/2-a.b.size.x/2,d=b.i.y+b.size.y/2-a.b.size.y/2,d=d+(b.size.y/2+16);a.l(c,
d)},vba:function(){return!this.yA||!this.map?s:{qb:[{P:this,dir:this.dir,type:sc.GH.ENTER_EXIT,mw:sc.Y7.SIDE}],pU:this.yA,tU:this.yA,map:this.map}}})});ig.G=j;
ig.I("game.feature.npc.entities.npc-waypoint").J("impact.base.actor-entity").H(function(){sc.Rja=ig.ra.extend({pD:s,L$:s,OF:w,LT:[],zMa:w,Kp:{Tv:0,rma:s,GC:-1,vF:-1,closed:s},f:function(a,b){this.pD=a;this.L$=b||[];this.zMa=a instanceof ig.ya.NPCWaypoint},Mka:function(){if(!this.OF){this.OF=j;for(var a=0;a<this.L$.length;++a){var b=ig.Ra.pd(this.L$[a]);b&&this.LT.push(b.Uy)}for(a=this.LT.length;a--;)this.LT[a].H5a(this)}},H5a:function(a){this.Mka();this.LT.indexOf(a)==-1&&this.LT.push(a)},jba:function(a){return ig.Xf.xO(this.pD.b,
a.pD.b)},Bab:function(){this.Mka();return this.LT},gA:function(a){if(a!=this.Kp.Tv){this.Kp.Tv=a;this.Kp.rma=s;this.Kp.GC=-1;this.Kp.vF=-1;this.Kp.closed=w}return this.Kp}});sc.Cza={sQ:0,chb:function(){this.sQ=0},Khb:function(a,b){this.sQ++;var c=[a],d=a.gA(this.sQ);d.GC=0;for(d.vF=a.jba(b);c.length>0;){var d=c.pop(),e=d.gA(this.sQ);if(d==b)return this.q4a(a,b);e.closed=j;for(var h=d.Bab(),k=h.length;k--;){var l=h[k],m=l.gA(this.sQ),n=e.GC+l.jba(d),o=m.GC;if(l.zMa||l==b)if(!(m.closed&&n>=o)&&(o==
-1||n<o)){o!=-1&&c.xf(l);m.rma=d;m.GC=n;n=n+l.jba(b);m.vF=n;for(m=c.length;m&&c[m-1].gA(this.sQ).vF<n;)m--;c.splice(m,0,l)}}}return s},q4a:function(a,b){for(var c=[],d=b;d!=a;){d!=b&&c.unshift(d.pD);d=d.gA(this.sQ).rma}return c}};ig.ya.NPCWaypoint=ig.gd.extend({name:"",Uy:s,s:new ig.u({Bd:j,attributes:{L$:{c:"Array",d:"Connections to other stuff",LE:{c:"EntitySelect",i3a:function(a){return a.tpa}}}},Ip:j,Jp:j,label:function(){return"["+this.gc+"]"},Fj:j,hl:"rgba(120,120,255, 0.25)"}),f:function(a,
b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.b.Eu(ig.Gm.HB);this.Uy=new sc.Rja(this,d.connections)},kqa:function(){this.Uy.Mka()},tpa:M("Uy")})});ig.G=j;
ig.I("impact.feature.map-content.entities.teleport-ground").J("impact.base.entity","impact.base.actor-entity","impact.feature.map-content.entities.hidden-block","impact.feature.base.entities.object-layer-view","game.feature.npc.entities.npc-waypoint").H(function(){var a={REGULAR:1,INTER_AREA:2};ig.ya.TeleportGround=ig.gd.extend({map:"",De:"",dir:"SOUTH",Ik:s,jo:s,VQ:0,wR:0,yA:0,o$:w,Uy:s,s:new ig.u({Bd:j,attributes:{sg:{c:"Number",ub:64},dir:{c:"String",d:"View direction of teleport ground.",Y:ig.Zb.zh,
ub:"SOUTH"},map:{c:"Maps",d:"Map to be loaded",Ah:"Map"},De:{c:"Marker",d:"Marker on map to teleport player to"},VQ:{c:"Number",d:"Distance to place player away from teleportGround when spawning",ub:48},Ik:{c:"Event",d:"Event to be performed when entering the teleport ground",sd:j,U:j},jo:{c:"VarCondition",d:"Condition to show the block event when entering this teleport ground"},wR:{c:"String",d:"Type of transition.",Y:a},yA:{c:"Number",d:"Probability that NPCs will enter and leave through this exit"},
o$:{c:"Boolean",d:"If entity should always walk through the center of this opening"}},Ip:j,Jp:j,label:function(){return this.map+" > "+this.De},Fj:j,hl:"rgba(255,255,0, 0.5)",yF:"rgba(120,120,0, 0.8)"}),f:function(b,c,d,e){this.parent(b,c,d,e);this.b.type=ig.la.BLOCK;e.size?this.b.size.z=e.zHeight:this.b.v(8,8,e.zHeight||64);this.map=e.map;this.De=e.marker;this.dir=e.dir||"SOUTH";this.VQ=e.spawnDistance||48;this.wR=a[e.transitionType]||a.REGULAR;this.o$=e.centerWalkThrough||w;this.yA=e.npcRunnerProb||
0;if(e.blockEvent){this.Ik=new ig.Ra({name:"DOOR BLOCK EVENT",steps:e.blockEvent});this.jo=new ig.ce(e.blockEventCondition||"true")}this.Uy=new sc.Rja(this)},lo:function(b,c){if(!this.map&&b instanceof ig.Zb)this.open();else if(this.map&&ig.t.zqa(this,b,c)&&ig.t.bP()&&b.b.i.z==this.b.i.z)if(this.Ik&&this.jo.evaluate())sc.So.KD(this.Ik);else{if(this.wR==a.INTER_AREA){ig.t.sfa(255,255,255,w);ig.t.Vua(1,1);sc.pb.QHa();ig.Zf.XKa()&&ig.Zf.pause("SLOW")}this.b.nl=j;var d=this.fA(b),d=new ig.Ra({steps:[{type:"DO_ACTION",
entity:b,action:d},{type:"TELEPORT",map:this.map,marker:this.De}]});ig.t.Vg.wq(d,ig.bl.BLOCKING)}},nU:function(a){var c=this.fA(a,j),c=new ig.rf("doorAction",c);a.If(c)},mP:F(),fA:function(){var a=[{type:"SET_SLIP_THROUGH",value:j},{type:"SET_WALK_ANIMS",config:"normal"},{type:"SET_FACE_FIX",value:j},{type:"SET_FACE",face:this.dir},{type:"SET_Z_GRAVITY_FACTOR",value:0},{type:"SET_JUMPING",value:w},{type:"MOVE_FORWARD",time:2},{type:"WAIT",time:1}];if(this.o$){a.splice(0,0,{type:"SET_RELATIVE_SPEED",
value:0.5});a.splice(4,0,{type:"MOVE_TO_POINT",target:this.kb()})}return a},ZB:function(a){var c=this.b;a.b.aa=c.aa;a.b.jc=c.jc;a.b.i.z=c.i.z;ig.Zb.Mr(ig.Zb.Cl[this.dir]||0,a.face);Vec2.hd(a.face);var d=c.i.x+c.size.x/2-a.b.size.x/2,e=c.i.y+c.size.y/2-a.b.size.y/2;switch(this.dir){case "NORTH":e=e+(c.size.y/2+this.VQ);break;case "SOUTH":e=e-(c.size.y/2+this.VQ);break;case "WEST":d=d+(c.size.x/2+this.VQ);break;case "EAST":d=d-(c.size.x/2+this.VQ)}a.l(d,e)},vba:function(){return!this.yA||!this.map?
s:{qb:[{P:this,dir:this.dir,type:sc.GH.ENTER_EXIT,mw:sc.Y7.SIDE}],pU:this.yA,tU:this.yA,map:this.map}},tpa:M("Uy")})});ig.G=j;
ig.I("impact.feature.map-content.entities.glowing-ground").J("impact.base.entity").H(function(){ig.ya.GlowingGround=ig.gd.extend({BN:"",CN:"",duration:1,n:0,YI:s,s:new ig.u({Bd:j,attributes:{BN:{c:"String",d:"First color of interpolation"},CN:{c:"String",d:"Second color of interpolation"},duration:{c:"Number",d:"Duration of color interpolation (back and forth)"}},Ip:j,Jp:j,label:R("")}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;d.size||this.b.v(32,32,0);this.BN=d.color1;this.CN=
d.color2;this.duration=d.duration?d.duration:1;this.YI=new ig.G8(this.BN,this.CN)},Jn:function(){this.dm(1)},update:function(){this.n=this.n+ig.g.ga;this.n=this.n%this.duration},tj:function(){var a=this.n/this.duration;this.YI.sua(a<0.5?a*2:(1-a)*2);a=this.b;this.Ta[0].l(a.i.x,a.i.y,a.i.z);this.Ta[0].v(a.size.x,a.size.y,a.size.z);this.Ta[0].Vh(this.YI,0,0)}})});ig.G=j;
ig.I("impact.feature.map-content.entities.prop").J("impact.base.entity").H(function(){ig.tZa=ig.CB.extend({ui:"PropSheet",kta:{},Nn:F(),JC:function(){return ig.root+this.path.dr("data/props/",".json")+ig.kl()},onload:function(a){a.DOCTYPE!="PROP_SHEET"&&f(Error("Invalid JSON Format for PropSheet"));for(var a=a.props,b=0;b<a.length;++b)this.Pab(a[b])},Pab:function(a){if(a.name){var b=a.name;delete a.name;this.kta[b]=a}else if(a.sequence){var b=a.sequence,c=b.entries,d=b.sheet;delete a.sequence;for(var e=
0;e<c.length;++e){var h=c[e],k={},b=h.name;delete h.name;ig.merge(k,a);ig.merge(k,h);k.fix={gfx:d.gfx,x:d.x+d.w*e,y:d.y,w:d.w,h:d.h,Dd:w};this.kta[b]=k}}},aab:function(a){return this.kta[a]}});sc.dAa={};sc.dAa.PLANT=new ig.da("media/sound/environment/plant-shake.ogg",0.7,0.1);ig.sZ=s;ig.ya.Prop=ig.fe.extend({mc:0,face:Vec2.create(),csb:s,Bea:s,ita:s,Mn:{Ga:w,n:0,uj:0.01,Jda:w},Pma:s,sC:s,ZG:s,wI:w,gva:w,ua:s,vC:s,O:{sheet:s,show:s,hide:s,Pr:s,BX:s,bV:s,py:s,aea:s,dca:s},s:new ig.u({Bd:j,attributes:{dsb:{c:"PropType",
d:"Type of prop"},ita:{c:"EntityAnim",d:"Animation of prop"},sC:{c:"CondAnims",d:"Animations shown by conditions"},Rp:{c:"VarCondition",d:"Condition for prop to appear"},ZG:{c:"VarName",d:"Variable to be changed when prop is touched",U:j},ua:{c:"PropInteract",d:"Interaction for this property",sd:j,U:j},eva:{c:"Effect",d:"Effect to show when showing entity",U:j},kbb:{c:"Effect",d:"Effect to show when hiding entity",U:j},py:{c:"Effect",d:"Effect to be shown permanently",U:j}},label:R(""),Fj:j,hl:"rgba(255,255,0, 0.5)"}),
f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.b.v(32,32,0);this.ZG=d.touchVar||s;this.ita=d.propAnim||"default";a=d.condAnims;this.O.BX=d.showEffect?new ig.al(d.showEffect):s;this.O.bV=d.hideEffect?new ig.al(d.hideEffect):s;this.O.py=d.permaEffect?new ig.al(d.permaEffect):s;if(a&&a.length>0){this.sC=[];for(b=0;b<a.length;++b){c=s;a[b].interact&&ig.sZ&&(c=new ig.sZ(this,a[b].interact));this.sC.push({jb:new ig.ce(a[b].condition),vb:a[b].anim,ua:c})}}else this.Fg=s;if(d.interact&&
ig.sZ)this.ua=new ig.sZ(this,d.interact);if(d.propType&&d.propType.name&&d.propType.sheet){this.Bea=d.propType.name;if(window.nWa&&d.propType.sheet=="autumn"&&this.Bea.indexOf("tree")!=-1)this.Bea="cubaum";this.Cea=new ig.tZa(d.propType.sheet);this.Cea.wr(this)}},show:function(a){this.parent(a);if(this.O.Pr){this.O.Pr.stop();this.O.Pr=s}if(this.O.py)this.O.aea=this.O.py.Ya(this,{duration:-1});this.vC&&this.vC.CNa();this.wI=w;if(!a&&(this.O.sheet||this.O.BX)){this.Za.alpha=0;this.O.BX?this.O.BX.Ya(this,
{}):this.O.sheet.Ya(this.O.show,this,{})}},gG:function(){this.vC&&this.vC.lNa();this.O.aea&&this.O.aea.stop();this.O.aea=s;if(this.O.sheet||this.O.bV){this.O.bV?this.O.bV.Ya(this,{}):this.O.Pr=this.O.sheet.Ya(this.O.hide,this,{callback:this});this.b.Eu(ig.Gm.NY)}else this.hide()},Jn:function(){this.dm(1)},Pq:function(a){a||f(Error("Loading Failed!"));if(a=this.Cea.aab(this.Bea)){if(window.Yc){this.s=this.s.copy();this.s.Fj=w}Vec3.assign(this.b.size,a.size);this.b.type=ig.la[a.collType]||this.b.type;
this.b.shape=ig.mk[a.shapeType]||ig.mk.RECTANGLE;this.b.Ad.size=a.shadow||0;this.gva=a.shuffleAnims||w;if(a.nudging){this.Mn.Ga=j;this.Mn.uj=Math.PI*2*(a["nudge-variance"]?a["nudge-variance"]:0.015);this.Mn.n=new ig.Ct(w);if(this.b.type!=ig.la.BLOCK)this.b.type=ig.la.TRIGGER;this.Pma=a.collideSound||sc.dAa.PLANT}if(a.effects){this.O.sheet=new ig.ae(a.effects.sheet);this.O.hide=a.effects.hide;this.O.show=a.effects.show}this.mc=ig.Gd[a.terrain]||0;this.b.se=a.zGravityFactor||0;if(a.anims)this.ld(a.anims);
else{this.b.Eu(ig.Gm.HB);this.Tm={xc:new ig.$(a.fix.gfx),x:a.fix.x,y:a.fix.y,uc:a.fix.w,Gc:a.fix.h,Dd:a.fix.flipX,Qg:a.fix.wallY,tz:a.fix.aboveZ||0,shape:ig.Xy[a.fix.shape||"NO_EXPAND"],cb:{x:a.fix.pivotX,y:a.fix.pivotY},Vi:a.fix.offX||0,Bg:a.fix.offY||0,Ze:a.fix.renderMode||s}}this.DEa()}},Tb:function(a){this.parent(a);this.Cea&&this.Cea.zc();this.Tm&&this.Tm.xc.zc();this.ua&&this.ua.oW();this.O.sheet&&this.O.sheet.zc();this.O.BX&&this.O.BX.Qa();this.O.bV&&this.O.bV.Qa();this.O.py&&this.O.py.Qa();
if(this.sC)for(a=this.sC.length;a--;)this.sC[a].ua&&this.sC[a].ua.oW()},update:function(){if(this.Mn.n&&!this.Mn.n.yb()){this.Mn.n.ga();if(this.Mn.n.fX>=1){this.Mn.n.set(0);this.b.Eu(ig.Gm.HB)}}this.parent()},$r:function(a){if(a==this.O.Pr&&a.vp()){this.O.Pr=s;this.hide()}},tj:function(){var a=0,b=0;if(this.Mn.n&&!this.Mn.n.yb()){a=this.Mn.n.get();if(this.Mn.Jda){b=Math.sin(Math.PI*a)*2;a=this.Mn.uj*Math.sin(Math.PI*a)}else a=this.Mn.uj*a}if(this.nb){this.Za.oc=a;this.parent()}else if(this.Tm){var c=
this.Ta[0];c.AG(this,this.Tm.uc,this.Tm.Gc,this.Tm.shape||"NO_EXPAND",this.Tm.Qg,this.Tm.offset,this.Tm.xc,this.Tm.x,this.Tm.y);c.tz=this.Tm.tz||0;c.I5(this.Tm.Dd,w);c.rb(this.Tm.cb.x,this.Tm.cb.y);if(this.Tm.Ze)c.Ze=this.Tm.Ze;c.setTransform(1,1,a);c.wd(this.Za.alpha);c.JPa(this.Tm.Vi,this.Tm.Bg+b);this.Za.pY(this)}else this.Ta[0].bB()},lo:function(a){if(this.ZG&&a==ig.t.wb&&!this.wI){this.wI=j;ig.pa.set(this.ZG,j)}this.Mn&&(a.b.type==ig.la.PROJECTILE||this.b.type==ig.la.BLOCK||this.xda(a==ig.t.wb))},
d4:function(a){this.xda(a==ig.t.wb,j)},xda:function(a,b){if(this.Mn.n&&this.Mn.n.yb()){a&&this.Pma&&this.Pma.play();this.b.Eu(ig.Gm.NY);this.Mn.Jda=b||w;b?this.Mn.n.set(0.15,ig.qk.hq):this.Mn.n.set(0.3,ig.qk.Yia)}},Rkb:function(){this.wI=w},Fg:function(){this.DEa()},KFa:function(a){if(this.vC!=a){!this.ng&&this.vC&&this.vC.lNa();this.vC=a;!this.ng&&this.vC&&this.vC.CNa()}},DEa:function(){if(this.sC)for(var a=this.sC.length;a--;){var b=this.sC[a];if(b.jb.evaluate()){this.Tm||this.Ja(b.vb,j,s,j);this.KFa(b.ua||
this.ua);this.gva&&this.Za.NQa();return}}this.KFa(this.ua);this.Tm||this.Ja(this.ita);this.gva&&this.Za.NQa()}});ig.ya.Prop.vRa=j});ig.G=j;
ig.I("impact.feature.map-content.entities.scalable-prop").J("impact.base.entity").H(function(){ig.L_a=ig.CB.extend({ui:"ScalablePropSheet",qb:{},Nn:F(),JC:function(){return ig.root+this.path.dr("data/scale-props/",".json")+ig.kl()},onload:function(a){a.DOCTYPE!="SCALABLE_PROP_SHEET"&&f(Error("Invalid JSON Format for ScalablePropSheet"));this.qb=a.entries},iab:function(a){return this.qb[a]}});var a={west:{ylb:j,ZSa:j},east:{ZSa:j,right:j},north:{Clb:j,vJa:j,top:j},south:{vJa:j,bottom:j}};ig.ya.ScalableProp=
ig.fe.extend({mc:0,Aea:s,x5:s,JJa:w,r:s,wm:s,Wda:{x:0,y:0},cb:s,Qg:0,Vq:0,Ze:s,SU:[],qq:s,fN:s,qR:0,n:0,ZG:s,wI:w,O:{sheet:s,show:s,hide:s,Pr:s},s:new ig.u({Bd:j,attributes:{Aea:{c:"ScalablePropConfig",d:"Type of Scalable Prop"},Wda:{c:"Vec2",d:"Start offset of the repeating pattern in pixels"},ftb:{c:"Number",d:"Time offset of the animation"},Rp:{c:"VarCondition",d:"Condition for prop to appear",sd:j},ZG:{c:"VarName",d:"Variable to be changed when prop is touched",U:j},gC:{c:"Boolean",j2a:"If true, block path map and update when destroyed"}},
label:R(""),Fj:j,hl:"rgba(255,255,0, 0.5)"}),f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.NONE;this.ZG=e.touchVar||s;e.size?this.JJa=j:this.b.v(32,32,0);e.patternOffset&&Vec2.assign(this.Wda,e.patternOffset);this.n=e.timeOffset||0;this.gC=e.blockNavMap;if(e.propConfig&&e.propConfig.name&&e.propConfig.sheet){this.Aea=e.propConfig;this.x5=new ig.L_a(e.propConfig.sheet);this.x5.wr(this)}},show:function(a){this.parent(a);if(this.O.Pr){this.O.Pr.stop();this.O.Pr=s}this.wI=this.b.nl=w;if(!a&&
this.O.sheet){this.Za.alpha=0;this.O.sheet.Ya(this.O.show,this,{})}if(this.gC)this.dk=ig.navigation.i2(this)},gG:function(){this.dk&&this.dk.remove();this.dk=s;this.b.nl=j;if(this.O.sheet){this.O.Pr=this.O.sheet.Ya(this.O.hide,this,{callback:this});this.b.Eu(ig.Gm.NY)}else this.hide()},Pq:function(b){b||f(Error("Loading Failed!"));var c=this.b;if(b=this.x5.iab(this.Aea.name)){if(window.Yc){this.s=this.s.copy();this.s.Fj=w;this.s.Ip=b.scalableX;this.s.Jp=b.scalableY;this.s.w5=b.scalableStep}if(this.JJa){if(!b.scalableX&&
c.size.x!=b.baseSize.x||(c.size.x-b.baseSize.x)%b.scalableStep!=0){c.size.x=b.baseSize.x;c.size.y=b.baseSize.y}if(!b.scalableY&&c.size.y!=b.baseSize.y||(c.size.y-b.baseSize.y)%b.scalableStep!=0){c.size.x=b.baseSize.x;c.size.y=b.baseSize.y}}else Vec2.assign(c.size,b.baseSize);c.size.z=b.baseSize.z;this.b.type=ig.la[b.collType]||this.b.type;this.Qg=b.wallY||0;this.mc=ig.Gd[b.terrain]||0;this.Vq=c.size.z;if(b.renderHeight!=g)this.Vq=b.renderHeight;this.Ze=b.renderMode;this.qq=b.animFrames||s;this.fN=
b.animTime||0.1;this.qR=b.timePadding||s;if(b.effects){this.O.sheet=new ig.ae(b.effects.sheet);this.O.hide=b.effects.hide;this.O.show=b.effects.show}this.cb=b.pivot||s;var d=b.patterns,c=b.gfxBaseX||0,e=b.gfxBaseY||0;this.wm=new ig.cv(b.gfx,b.scalableX?b.scalableY?ig.ue.Pf.gz:ig.ue.Pf.Xn:ig.ue.Pf.tE,d.w,d.h,c+(d.x||0),e+(d.y||0),d.xCount||1,d.yCount||1);this.r=new ig.$(b.gfx);if(d=this.Aea.ends)for(var h in b.gfxEnds){var k=b.gfxEnds[h][d[h]];if(k){k={x:k.x,y:k.y,uc:k.w,Gc:k.h,sg:k.zHeight==g?this.Vq:
k.zHeight,Dd:k.flipX||w,yi:k.flipY||w,qq:k.animFrames||s};ig.merge(k,a[h]);k.x=k.x+c;k.y=k.y+e;this.SU.push(k)}}this.dm(1+this.SU.length);!this.qq&&(!this.fN&&!this.qR)&&this.b.Eu(ig.Gm.HB)}},Jn:function(){this.dm(1+this.SU.length)},Tb:function(a){this.dk&&this.dk.remove();this.parent(a);this.x5&&this.x5.zc();this.wm&&this.wm.zc();this.O.sheet&&this.O.sheet.zc();this.r&&this.r.zc()},update:function(){this.parent();if(this.qq||this.qR)this.n=this.n+ig.g.ga},$r:function(a){if(a==this.O.Pr&&a.vp()){this.O.Pr=
s;!this.qq&&(!this.fN&&!this.qR)&&this.b.Eu(ig.Gm.HB);this.hide()}},tj:function(){var a=this.b;if(this.wm){var c=0,d=0,e=0;if(this.qq)var h=this.qq.length*this.fN,h=Math.floor(this.n%h/this.fN),c=this.qq[h];for(var k=a.i.x,l=a.i.y,m=0,n=0,o=a.size.x,t=a.size.y,r=w,p=0;p<this.SU.length;++p){var q=this.SU[p],x=a.i.z,y=q.sg;if(q.top){x=x+this.Vq;y=y-this.Vq}var z=q.Gc-y;this.Ta[p].l(a.i.x+(q.right?a.size.x-q.uc:0),a.i.y+(q.bottom?a.size.y-z:0),x);this.Ta[p].v(q.uc,z,y,this.Qg);this.Ta[p].rb(q.uc/2,(z+
y)/2);x=q.x;y=q.y;h=c;if(q.qq){h=q.qq.length*this.fN;h=Math.floor(this.n%h/this.fN);h=q.qq[h]}if(h)var u=q.Bl||100,x=x+h%u*q.uc,y=y+Math.floor(h/u)*q.Gc;this.Ta[p].Vh(this.r,x,y);this.Ta[p].I5(q.Dd,q.yi);q.ylb&&(m=m+q.uc);q.Clb&&(n=n+z);q.ZSa&&(o=o-q.uc);q.vJa&&(t=t-z);this.Ta[p].Ze=this.Ze;this.Ta[p].wd(this.Za.alpha);this.Ta[p].setTransform(this.Za.Ia,this.Za.Ma,this.Za.oc);r=q.bottom||r}if(this.qR){d=Math.floor(this.n*this.qR.x);e=Math.floor(this.n*this.qR.y)}a=this.Vq;q=this.b.i.z;if(this.SU&&
r){q=q+a;a=0}this.Ta[p].l(k+m,l+n,q);if(o>0&&t>0){this.Ta[p].v(o,t,a,this.Qg);this.Ta[p].rb(o*(this.cb?this.cb.x:0.5),(t+a)*(this.cb?this.cb.y:0.5));this.Ta[p].Vh(this.wm.eu(c),this.Wda.x+d,this.Wda.y+e);this.Ta[p].Ze=this.Ze;this.Ta[p].wd(this.Za.alpha);this.Ta[p].setTransform(this.Za.Ia,this.Za.Ma,this.Za.oc)}else this.Ta[p].bB();this.Za.pY(this)}else for(p=0;p<this.Ta.length;++p)this.Ta[p].bB()},lo:function(a){if(this.ZG&&a==ig.t.wb&&!this.wI){this.wI=j;ig.pa.set(this.ZG,j)}}});ig.ya.ScalableProp.vRa=
j});ig.G=j;ig.I("impact.feature.map-content.entities.note").J("impact.base.entity").H(function(){ig.ya.Note=ig.gd.extend({text:"",s:new ig.u({Bd:j,attributes:{sg:{c:"Number",ub:0},text:{c:"String",d:"Text to display in information.",mq:j}},Ip:j,Jp:j,Fj:j,label:M("text"),hl:"rgba(30, 30, 30, 1)",yF:"rgba(0, 0, 0, 1)"}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;d.size?this.b.size.z=d.zHeight||0:this.b.v(32,32,d.zHeight||0);this.text="\n"+d.text||""}})});ig.G=j;
ig.I("impact.feature.map-content.map-content-steps").J("impact.base.action","impact.base.event").H(function(){ig.ma.NUDGE_PROP=ig.na.extend({Ep:s,KA:w,s:new ig.u({attributes:{Ep:{c:"Entity",d:"Prop Entity",vka:"Prop",rv:j},KA:{c:"Boolean",d:"True if the nudge sound should be played"}}}),f:function(a){assertContent(a,"prop");this.Ep=a.prop;this.KA=a.playSound||w},start:function(a,b){var c=ig.Ra.pd(this.Ep,b);c.xda&&c.xda(this.KA)}});ig.Ha.ENTER_DOOR=ig.Pa.extend({zx:s,s:new ig.u({attributes:{zx:{c:"Entity",
d:"Door Entity to enter"}}}),f:function(a){assertContent(a,"door");this.zx=a.door},xa:function(a){var b=ig.Ra.pd(this.zx);b&&b.nU&&b.nU(a);return j}})});ig.G=j;
ig.I("impact.feature.map-content.plug-in").J("impact.feature.map-content.map-style","impact.feature.map-content.entities.door","impact.feature.map-content.entities.stair-door","impact.feature.map-content.entities.teleport-ground","impact.feature.map-content.entities.glowing-ground","impact.feature.map-content.entities.prop","impact.feature.map-content.entities.scalable-prop","impact.feature.map-content.entities.hidden-block","impact.feature.map-content.entities.note","impact.feature.map-content.map-content-steps").H(function(){if(window.Yc){wm.pj.push("impact.feature.map-content.editors.map-content-editor");
wm.Vs&&(wm.Vs.mapStyle={c:"String",d:"Select style of map (influences appearance of several entities)",Y:ig.qE,Oi:j})}});ig.G=j;
ig.I("impact.feature.overlay.overlay").J("impact.base.event","impact.base.game","impact.feature.gui.gui").H(function(){ig.$l.vd=j;ig.QYa=ig.X.extend({color:s,qh:w,f:function(){this.parent();this.a.zIndex=-10},va:function(a){if(ig.$l.vd&&this.color){var b=this.color;if(b.$S>0.01){b="rgba("+Math.floor(b.Uh)+","+Math.floor(b.Oh)+","+Math.floor(b.Mh)+","+b.$S+")";a=a.Ec(b,0,0,ig.g.width,ig.g.height);this.qh&&a.dh("lighter")}}}});ig.mxa=ig.ra.extend({n:s,aR:0,PRa:0,$f:g,f:function(){this.n=new ig.Ct(j)},
update:function(){if(!this.n.yb()){this.n.ga();this.n.get();if(this.$f!==g&&this.n.Odb()){this.aR=this.$f;this.$f=g}return w}return j},FU:function(){var a=this.n.get();return(1-a)*this.aR+a*this.PRa},set:function(a,b,c){this.aR=this.FU();this.PRa=a;this.$f=c;this.n.set(b,c!==g?ig.qk.$ga:ig.qk.hq)}});ig.PYa=ig.X.extend({r:s,NE:s,f:function(a){this.parent();this.a.Vc=0;this.a.zIndex=-20;this.r=a;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.NE=new ig.mxa(j)},update:function(){if(!this.NE.update())this.a.Vc=
this.NE.FU()},va:function(a){if(ig.$l.vd){a.ia(this.r,0,0);a.ia(this.r,this.a.size.x-this.r.width,0,0,0,g,g,j)}},wd:function(a,b,c){if(!b)this.a.Vc=a;this.NE.set(a,b,c)}});ig.nZ={WHITE:0,RED:1,BLACK:2};ig.OYa=ig.sf.extend({C$:{Uh:0,Oh:0,Mh:0,$S:0},pC:{Uh:0,Oh:0,Mh:0,$S:0},qh:w,n:0,max:0,r:{WHITE:new ig.$("media/gui/env-white.png"),RED:new ig.$("media/gui/env-red.png"),BLACK:new ig.$("media/gui/env-black.png")},B$:s,sGa:[],f:function(){this.parent("Overlay");this.B$=new ig.QYa;ig.T.Mc(this.B$);for(var a in this.r){var b=
new ig.PYa(this.r[a]);this.sGa[ig.nZ[a]]=b;ig.T.Mc(b)}},oF:400,$s:function(){if(this.n<this.max){this.n=this.n+ig.g.Da;if(this.n>=this.max){this.n=this.max;if(this.pC.$S==0){this.pC.Uh=0;this.pC.Oh=0;this.pC.Mh=0;this.qh=w}}}var a=this.iI();this.B$.color=a;this.B$.qh=this.qh},nj:function(){this.Te(0,0,0,0,0,w);for(var a in ig.nZ)this.aB(a,0,0,w)},Te:function(a,b,c,d,e,h){this.C$=this.iI();this.pC.Uh=a;this.pC.Oh=b;this.pC.Mh=c;this.pC.$S=d;this.qh=h||w;this.max=e;this.n=0},wd:function(a,b){this.C$=
this.iI();this.pC.$S=a;this.max=b;this.n=0},aB:function(a,b,c,d){a=typeof a=="string"?ig.nZ[a]:a;this.sGa[a].wd(b,c,d)},iI:function(){var a={},b=this.max?(this.n/this.max).Vb(0,1):1,c;for(c in this.C$)a[c]=this.C$[c]*(1-b)+this.pC[c]*b;return a}});ig.wf(function(){return ig.vd=new ig.OYa})});ig.G=j;
ig.I("impact.feature.overlay.overlay-steps").J("impact.base.action","impact.base.event").H(function(){ig.ma.SET_OVERLAY=ig.na.extend({color:s,alpha:0,time:0,qh:w,s:new ig.u({attributes:{color:{c:"Color",d:"Color of overlay"},alpha:{c:"Number",d:"Alpha of overlay, range [0,1]. 0 = transparent"},time:{c:"Number",d:"Transition time to new overlay color and alpha"},qh:{c:"Boolean",d:"Apply color in lighter mode"}}}),f:function(a){assertContent(a,"alpha","time","color");this.alpha=a.alpha;this.time=a.time;
this.color=new ig.Yn(a.color);this.qh=a.lighter||w},start:function(){ig.vd.Te(this.color.Uh||0,this.color.Oh||0,this.color.Mh||0,this.alpha,this.time,this.qh)}});ig.ma.SET_OVERLAY_CORNER=ig.na.extend({color:s,alpha:0,time:0,$f:s,s:new ig.u({attributes:{color:{c:"String",d:"Color of corner",Y:ig.nZ},alpha:{c:"Number",d:"Alpha of corner, range [0,1]. 0 = transparent"},time:{c:"Number",d:"Transition time to new alpha value"},$f:{c:"Number",d:"If specified: alterate between alpha and blinkAlpha",U:j}}}),
f:function(a){assertContent(a,"alpha","time","color");this.alpha=a.alpha;this.time=a.time;this.color=a.color;this.$f=a.blinkAlpha},start:function(){ig.vd.aB(this.color,this.alpha,this.time,this.$f===s?g:this.$f)}})});ig.G=j;ig.I("impact.feature.overlay.plug-in").J("impact.feature.overlay.overlay","impact.feature.overlay.overlay-steps").H(function(){window.Yc&&wm.fo(/OVERLAY/,"yellow")});ig.G=j;
ig.I("impact.feature.dream-fx.dream-fx").J("impact.base.event","impact.base.game","impact.feature.gui.gui","impact.base.utils").H(function(){ig.$l.vd=j;ig.dya=ig.ra.extend({Zua:s,hva:s,Nna:s,Hna:s,f:function(){this.Zua=new ig.$("media/pics/dream/shadow-circle.png");this.hva=new ig.$("media/pics/dream/side-line.png");this.Nna=new ig.$("media/pics/dream/edge.png");this.Hna=new ig.$("media/pics/dream/dot.png")},clone:function(){return new ig.dya},Qa:function(){this.Zua.zc();this.hva.zc();this.Nna.zc();
this.Hna.zc()}});var a=new ig.Yn;ig.LUa=ig.X.extend({Hk:s,jC:{IP:new ig.Yn,BP:new ig.Yn},borderColor:{IP:new ig.Yn,BP:new ig.Yn},I0:0,HT:0,Pm:{IP:1,BP:1,n:0,duration:0},Zwa:0,f:function(){this.parent();this.a.zIndex=-21;this.v(ig.g.width,ig.g.height)},hfa:function(a,c,d){this.iI(this.jC.IP,this.jC);this.iI(this.borderColor.IP,this.borderColor);this.jC.BP.assign(a);this.borderColor.BP.assign(c);this.HT=d;this.I0=0},iI:function(a,c){ig.Yn.Tbb(c.IP,c.BP,this.HT?this.I0/this.HT:1,a);return a},FCa:function(){var a=
this.Pm.duration?this.Pm.n/this.Pm.duration:1;a!=1&&(a=KEY_SPLINES.EASE_IN_OUT.get(a));return this.Pm.IP*(1-a)+this.Pm.BP*a},gfa:function(a,c){this.Pm.IP=this.FCa();this.Pm.BP=a;this.Pm.duration=c;this.Pm.n=0},update:function(){if(this.Pm.duration){this.Pm.n=this.Pm.n+ig.g.Da;if(this.Pm.n>=this.Pm.duration)this.Pm.duration=0}this.Zwa=this.Zwa+ig.g.Da;if(this.HT){this.I0=this.I0+ig.g.Da;if(this.I0>=this.HT)this.HT=0}},va:function(b){if(this.Hk){b.Ec("black",0,0,ig.g.width,ig.g.height).wd(0.5);var c=
this.iI(a,this.jC).kY();b.Ec(c,0,0,ig.g.width,ig.g.height).dh("lighter");var d=this.FCa(),e=this.Zwa*Math.PI*1,d=d+0.015*Math.sin(e);b.ho().tw(d,d);var c=this.Hk.Zua,h=c.width,k=c.height,l=ig.g.width/d,m=(l-h)/2,d=(ig.g.height/d-k)/2;b.ia(c,m,d,0,0,h,k,w,w);if(d>=0){b.Ec("#161616",0,0,Math.ceil(l),Math.ceil(d+2));b.Ec("#161616",0,Math.floor(d+k-2),Math.ceil(l),Math.ceil(d+4))}if(m>=0){b.Ec("#161616",0,Math.floor(d-2),Math.ceil(m+4),Math.ceil(k+4));b.Ec("#161616",Math.floor(m+h-2),Math.floor(d-4),
Math.ceil(m+4),Math.ceil(k+4))}b.Po();c=this.iI(a,this.borderColor).kY();b.Ec(c,0,0,ig.g.width,ig.g.height).dh("lighter");e=0.05*Math.sin(e*0.25);b.ho().tw(1.1,1.1).vX(e).rb(ig.g.width/2,ig.g.height/2);e=this.Hk.Nna;c=e.width;b.ia(e,0,0,0,0,c,this.a.size.y,w,w).dh("lighter");b.ia(e,this.a.size.x-c,0,0,0,c,this.a.size.y,j,w).dh("lighter");b.Po()}}});ig.PUa=ig.X.extend({Hk:s,Xc:[],Sp:0,wca:w,$ea:{left:new ig.Kja(12,j),right:new ig.Kja(12,j)},f:function(){this.parent();this.a.zIndex=-15},update:function(){this.Sp=
this.Sp-ig.g.Da;if(this.Sp<=0){this.Sp=this.Sp+0.15;this.Cm()}for(var a=this.Xc.length;a--;){var c=this.Xc[a];c.n=c.n+ig.g.Da;c.y=c.y+ig.g.Da*c.Jjb;c.n>=c.duration&&this.Xc.splice(a,1)}},va:function(a){if(this.Hk)for(var c=this.Hk.hva,d=c.width,e=c.height,h=this.Xc.length,k=ig.g.height/2;h--;){var l=this.Xc[h],m=1;l.n<0.4?m=l.n/0.4:l.n>l.duration-0.4&&(m=(l.duration-l.n)/0.4);var n=(k-(l.y-e/2))/k,n=(1-n*n)*64;a.ia(c,l.right?ig.g.width-d+n:-n,l.y-e/2,0,0,d,e,l.right,w).wd(m).dh("lighter")}},Cm:function(){var a=
(this.wca?this.$ea.left.get():this.$ea.right.get())*ig.g.height,c=(Math.random()-0.5)*12,a={duration:2.5,n:0,right:this.wca,y:a,Jjb:c};this.wca=!this.wca;this.Xc.push(a)}});ig.MUa=ig.X.extend({Hk:s,Xc:[],Sp:0,$ea:new ig.Kja(36,w),rotate:0,f:function(){this.parent();this.a.zIndex=-14},update:function(){this.rotate=this.rotate+ig.g.Da*0.02;if(this.rotate>=1)this.rotate=this.rotate-1;this.Sp=this.Sp-ig.g.Da;if(this.Sp<=0){this.Sp=this.Sp+0.15;this.Cm()}for(var a=this.Xc.length;a--;){var c=this.Xc[a];
c.n=c.n+ig.g.Da;c.n>=c.duration&&this.Xc.splice(a,1)}},va:function(a){if(this.Hk){var c=this.Hk.Hna,d=c.width,e=c.height,h=this.Xc.length;a.ho().vX(this.rotate*Math.PI*2).rb(ig.g.width/2,ig.g.height/2);for(var k=ig.g.width/2-160,l=ig.g.height/2-160;h--;){var m=this.Xc[h],n=Math.sin(Math.PI*m.n/m.duration),o=n,t=k+m.x,r=l+m.y,m=m.oMa/2+m.oMa/2*n;a.ho().tw(m,m).rb(t,r);a.ia(c,t-d/2,r-e/2,0,0,d,e,w,w).wd(o).dh("lighter");a.Po()}a.Po()}},Cm:function(){var a=Math.floor(this.$ea.get()*36),c=Math.floor(a/
6),d=320/6,a=(a%6+0.5)*d+(Math.random()-0.5)*d,c={duration:2.5,n:0,y:(c+0.5)*d+(Math.random()-0.5)*d,x:a,oMa:0.5+Math.random()*0.5};this.Xc.push(c)}});ig.nZ={WHITE:0,RED:1,BLACK:2};ig.NUa=ig.sf.extend({Hk:s,tN:s,V5:s,o1:s,f:function(){this.parent("Overlay");this.tN=new ig.LUa;this.V5=new ig.PUa;this.o1=new ig.MUa},nj:function(){this.clear()},start:function(a){if(!this.Hk){this.Hk=a.clone();this.tN.Hk=a;this.V5.Hk=a;this.o1.Hk=a;ig.T.Mc(this.tN);ig.T.Mc(this.V5);ig.T.Mc(this.o1)}},clear:function(){if(this.Hk){this.Hk.Qa();
this.Hk=s;this.tN.Hk=s;this.V5.Hk=s;this.o1.Hk=s;ig.T.Kta(this.tN);ig.T.Kta(this.V5);ig.T.Kta(this.o1)}},hfa:function(a,c,d){this.tN.hfa(a,c,d)},gfa:function(a,c){this.tN.gfa(a,c)},Tc:function(){return!!this.Hk}});ig.wf(function(){return ig.$N=new ig.NUa})});ig.G=j;
ig.I("impact.feature.dream-fx.dream-fx-steps").J("impact.base.action","impact.base.event").H(function(){ig.ma.START_DREAM_FX=ig.na.extend({s:new ig.u({attributes:{jC:{c:"Color",d:"Color of center"},borderColor:{c:"Color",d:"Color of border"},Pm:{c:"Number",d:"Size of visible circle in center. 1=fullSize"}}}),f:function(a){this.Hk=new ig.dya;this.jC=new ig.Yn(a.centerColor);this.borderColor=new ig.Yn(a.borderColor);this.Pm=a.circleSize||0.01},Qa:function(){this.Hk.Qa()},start:function(){ig.$N.start(this.Hk);
ig.$N.hfa(this.jC,this.borderColor,0);ig.$N.gfa(this.Pm,0)}});ig.ma.CLEAR_DREAM_FX=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){ig.$N.clear()}});ig.ma.SET_DREAM_FX_COLORS=ig.na.extend({s:new ig.u({attributes:{jC:{c:"Color",d:"Color of center"},borderColor:{c:"Color",d:"Color of border"},duration:{c:"Number",d:"Duration of transition"}}}),f:function(a){this.jC=new ig.Yn(a.centerColor);this.borderColor=new ig.Yn(a.borderColor);this.duration=a.duration||0},start:function(){ig.$N.hfa(this.jC,
this.borderColor,this.duration)}});ig.ma.SET_DREAM_FX_CIRCLE_SIZE=ig.na.extend({s:new ig.u({attributes:{Pm:{c:"Number",d:"Size of visible circle in center. 1=fullSize"},duration:{c:"Number",d:"Duration of transition"}}}),f:function(a){this.Pm=a.circleSize||0.01;this.duration=a.duration||0},start:function(){ig.$N.gfa(this.Pm,this.duration)}})});ig.G=j;
ig.I("impact.feature.dream-fx.plug-in").J("impact.feature.dream-fx.dream-fx","impact.feature.dream-fx.dream-fx-steps").H(function(){if(window.Yc){wm.fo(/DREAM_MSG/,"red");wm.fo(/DREAM/,"yellow")}});ig.G=j;
ig.I("impact.feature.gui.base.basic-gui").J("impact.feature.gui.gui").H(function(){ig.Dc=ig.X.extend({xc:s,offsetX:0,offsetY:0,Ze:s,Dd:w,yi:w,YNa:w,frames:s,Bl:0,Ql:0,n:0,loop:w,Ck:j,f:function(a,b,c,d,e){this.parent();a&&this.PPa(a,b,c,d,e)},PPa:function(a,b,c,d,e){this.xc=a;this.offsetX=b||0;this.offsetY=c||0;this.a.size.x=d||0;this.a.size.y=e||0;this.xc.wr(this)},D5:function(a,b,c,d){this.loop=d!=g?d:j;this.Ck=w;this.frames=a;this.Ql=b;this.Bl=c},qsb:function(){this.n=0;this.Ck=w},Pq:function(){this.a.size.x=
this.a.size.x||this.xc.width;this.a.size.y=this.a.size.y||this.xc.height;this.a.size.x=Math.min(this.a.size.x,this.xc.width);this.a.size.y=Math.min(this.a.size.y,this.xc.height);if(!this.YNa){this.a.cb.x=this.a.size.x/2;this.a.cb.y=this.a.size.y/2}},update:function(){if(this.frames&&!this.Ck)this.n=this.n+ig.g.Da},va:function(a){var b=0,c=0;if(this.frames){c=Math.floor(this.n/this.Ql)%this.frames.length;if(c==this.frames.length-1&&!this.loop)this.Ck=j;b=c%this.Bl*this.a.size.x;c=Math.floor(c/this.Bl)*
this.a.size.y}a.ia(this.xc,0,0,this.offsetX+b,this.offsetY+c,this.a.size.x,this.a.size.y,this.Dd,this.yi).dh(this.Ze)}});ig.Lf=ig.X.extend({color:s,Ze:s,f:function(a,b,c){this.parent();this.color=a;this.a.size.x=b==g?ig.g.width:b;this.a.size.y=c==g?ig.g.height:c;this.a.cb.x=this.a.size.x/2;this.a.cb.y=this.a.size.y/2},va:function(a){this.a.size.x!=0&&this.a.size.y!=0&&a.Ec(this.color,0,0,this.a.size.x,this.a.size.y).dh(this.Ze)}});ig.l8={$ya:1,eE:2};ig.rja=ig.X.extend({n:-1,Py:0,r:s,T:s,Hi:s,Nea:[],
Z$:s,f:function(a){this.parent();this.Ob=a;this.Hi&&this.nKa(this.r,this.T,this.Hi)},nKa:function(a,b,c){this.r=a;this.T=b;this.Hi=c;for(var d in this.T){a=this.T[d];if(a.r){this.T[d]=a.src?new ig.Dc(this.r[a.r],a.src.x,a.src.y,a.src.uc,a.src.Gc):new ig.Dc(this.r[a.r]);a.vb&&this.T[d].D5(a.vb.frames,a.vb.time,a.vb.Bl);if(a.i)this.T[d].a.i=a.i;if(a.align)this.T[d].a.align=a.align;if(a.Ze)this.T[d].Ze=a.Ze;if(a.cb){this.T[d].a.cb=a.cb;this.T[d].YNa=j}if(a.Ab)this.T[d].Ab=a.Ab;this.T[d].Dd=a.Dd||w;this.T[d].yi=
a.yi||w}else this.T[d]=new ig.Lf(a.color);this.T[d].a.N=a.N;this.T[d].j("HIDDEN",j);this.m(this.T[d])}},update:function(){if(this.n>=0)for(this.n=this.n+ig.g.Da;this.Py<this.Hi.length&&this.Hi[this.Py].time<=this.n;){var a=this.Hi[this.Py];if(a.T){a.fOa&&this.T[a.T].j(a.fOa,j);a.state&&this.T[a.T].j(a.state);a.Ab&&a.Ab.play()}else if(a.end){this.end();break}else if(a.qJa)this.qca(a.qJa);else if(a.label)this.iEa(a.label);else if(a.QQa!==g)this.Z$=a.QQa;this.Py++}},iEa:function(a){if(this.Nea.indexOf(a)==
-1){this.Nea.push(a);this.PMa(ig.l8.$ya,a)}},start:function(){for(var a in this.T)this.T[a].j("HIDDEN",j);this.vd={};this.Nea.length=0;this.Z$=s;this.Py=this.n=0},end:function(){this.Py=0;this.n=-1;this.PMa(ig.l8.eE)},PMa:function(a,b){this.Ob&&this.Ob(a,b||s)},Ko:function(){this.Z$&&this.qca(this.Z$)},qca:function(a){for(var b=this.Hi.length;b--;)if(this.Hi[b].label==a){this.n=this.Hi[b].time;this.Py=b;this.iEa(a);break}},x2:function(){return this.n<0},kcb:function(a){return this.Nea.indexOf(a)!=
-1}});ig.NZ=ig.X.extend({hide:function(a,b){this.j("HIDDEN",a,w,s,b)},show:function(a,b){this.j("DEFAULT",a,w,s,b)}})});ig.G=j;
ig.I("impact.feature.parallax.parallax").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.base.image").H(function(){ig.Wza=ig.CB.extend({ui:"Parallax",r:{},T:{},Hi:[],f:function(a){this.parent(a)},Nn:function(){for(var a in this.r)this.r[a].zc();delete this.r},JC:function(){return ig.root+this.path.dr("data/parallax/",".json")+ig.kl()},onload:function(a){this.C2a(a.entries,a.points);this.D2a(a.sequence)},C2a:function(a,b){for(var c=0;c<a.length;++c){var d=a[c],e={};this.r[d.gfx]||
(this.r[d.gfx]=new ig.$(d.gfx));if(d.gfx)e.r=d.gfx;else if(d.color)e.color=d.color;e.align={x:ig.k.fb,y:ig.k.W};if(d.align){if(d.align.x){var h=ig.Oha[d.align.x];h||f(Error("Unknown x align type '"+d.align.x+"'"));e.align.x=h}if(d.align.y){(h=ig.Pha[d.align.y])||f(Error("Unknown y align type '"+d.align.y+"'"));e.align.y=h}}e.N={HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR}};if(d.pos)e.i=Vec2.create(d.pos);if(d.src)e.src={x:d.src.x,y:d.src.y,uc:d.src.w,Gc:d.src.h};if(d.anim)e.vb={frames:d.anim.frames,
time:d.anim.time,Bl:d.anim.xCount};if(d.pivot)if(h=b[d.pivot]){e.cb=Vec2.create(h);e.i&&Vec2.sub(e.cb,e.i)}e.Ze=d.renderMode||s;e.Dd=d.flipX||w;e.yi=d.flipY||w;this.T[d.name]=e}},D2a:function(a){for(var b=0,c=KEY_SPLINES.LINEAR,d=0;d<a.length;++d){var e=a[d];if(e.wait)b=b+e.wait*1;else if(e.keySpline)c=KEY_SPLINES[e.keySpline];else if(e["goto"])this.Hi.push({time:b,qJa:e["goto"]});else if(e.label)this.Hi.push({time:b,label:e.label});else if(e.skipLabel!==g)this.Hi.push({time:b,QQa:e.skipLabel});else{var h=
this.T[e.entry],k={T:e.entry};if(e.reset||!e.reset&&!e.move){var l="STEP"+d+"_PRE",m={};e.reset&&this.fCa(m,e.reset);h.N[l]={state:m,time:0,p:c};k.fOa=l}if(e.move){l="STEP"+d;m={};this.fCa(m,e.move);h.N[l]={state:m,time:e.duration*1,p:c};k.state=l}k.time=b;this.Hi.push(k)}}this.Hi.push({time:b,end:j})},fCa:function(a,b){a.offsetX=b.x||0;a.offsetY=b.y||0;if(b.alpha!=g)a.alpha=b.alpha;a.oc=(b.angle||0)*Math.PI*2;a.Ia=1;a.Ma=1;if(b.zoom!=g){a.Ia=a.Ia*b.zoom;a.Ma=a.Ma*b.zoom}if(b.scaleX!=g)a.Ia=a.Ia*
b.scaleX;if(b.scaleY!=g)a.Ma=a.Ma*b.scaleY}});ig.Ji.Parallax=ig.Xza=ig.rja.extend({rD:s,xLa:w,s:new ig.u({attributes:{rD:{c:"String",d:"Parallax to show",Y:"parallax"}}}),N:{DEFAULT:{state:{},time:0,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR}},f:function(a,b){this.parent(b||s);this.a.zIndex=0;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.rD=new ig.Wza(a.parallax);this.rD.wr(this)},Qa:function(){this.rD&&this.rD.zc()},Pq:function(){this.nKa(this.rD.r,ig.copy(this.rD.T),
ig.copy(this.rD.Hi))},dn:function(){this.j("HIDDEN",j);this.j("DEFAULT")},start:function(a){this.parent();this.xLa=a||w;this.j("HIDDEN",j);this.j("DEFAULT")},end:function(){this.parent();this.xLa||this.j("HIDDEN",w,j)}})});ig.G=j;
ig.I("impact.feature.parallax.parallax-steps").J("impact.feature.parallax.parallax","impact.base.action","impact.base.event").H(function(){ig.ma.SHOW_PARALLAX=ig.na.extend({C4:s,s:new ig.u({attributes:{rD:{c:"String",d:"Parallax to show",Y:"parallax"}}}),f:function(a){if(!window.Yc)this.C4=ig.T.$ma("__parallaxGui__","Parallax",{parallax:a.parallax})},Qa:function(){ig.T.VHa(this.C4)},start:function(){ig.T.sva(this.C4);this.C4.start()},xa:function(){return this.C4.x2()}})});ig.G=j;
ig.I("impact.feature.parallax.plug-in").J("impact.feature.parallax.parallax","impact.feature.parallax.parallax-steps").H(F());ig.G=j;
ig.I("impact.feature.screen-blur.screen-blur").J("impact.base.game").H(function(){ig.cha={LIGHT:{Vga:0.05,duration:0.5,repeat:3,e0:0.5},MEDIUM:{Vga:0.15,duration:0.1,repeat:5,e0:0.3},STATIC_LIGHT:{Vga:0.05,duration:0,repeat:3,e0:0.5}};ig.M_a=ig.sf.extend({buffer:s,context:s,pFa:s,k0:s,NRa:s,ORa:s,iy:1,bn:1,xD:0,Wgb:0,Uaa:w,n:s,rB:[],fW:{},f:function(){this.parent("ScreenBlur");this.n=new ig.Ct(j,1,ig.qk.$ga);var a=ig.aq("canvas");a.width=ig.g.cQ;a.height=ig.g.bQ;this.buffer=a;this.context=ig.g.bu(a);
this.context.scale(ig.g.Nz,ig.g.Nz);a=ig.aq("canvas");a.width=ig.g.cQ;a.height=ig.g.bQ;this.pFa=a;this.k0=ig.g.bu(a);this.k0.scale(ig.g.Nz,ig.g.Nz);this.Uaa=j},wd:function(a){this.bn=this.iy=a;if(a==1)this.Uaa=j},clear:function(){this.wd(1)},X6a:function(){this.rB.length=0;this.fW={}},Qla:function(a){if(a.name){this.fW[a.name]&&this.rB.xf(this.fW[a.name]);this.fW[a.name]=a}this.rB.push(a)},AHa:function(a,b){var c=this.fW[a];c&&c.jfa(b)},gw:function(){this.n.ga();this.xD=this.xD-ig.g.ga;for(var a=
this.rB.length;a--;)if(this.rB[a].update()){var b=this.rB[a];b.name&&delete this.fW[b.name];this.rB.splice(a,1)}},nea:1E3,Nda:function(){if(this.DCa()<1||this.rB.length){this.ORa=ig.g.context;this.NRa=ig.g.canvas;ig.g.context=this.context}},iea:200,Lda:function(){var a=this.DCa();if(a<1||this.rB.length){var b=w,c=ig.g.cQ,d=ig.g.bQ,e=ig.g.px,h=ig.g.ox;if(a<1&&this.xD<=0){this.xD=this.xD+this.Wgb;this.k0.globalAlpha=this.Uaa?1:a;this.k0.drawImage(this.buffer,0,0,c,d,0,0,e,h);this.k0.globalAlpha=1;this.Uaa=
w;b=j}ig.g.context=this.ORa;ig.g.canvas=this.NRa;a<1&&ig.g.context.drawImage(this.pFa,0,0,c,d,0,0,e,h);if(!b){ig.g.context.globalAlpha=a;ig.g.context.drawImage(this.buffer,0,0,c,d,0,0,e,h);ig.g.context.globalAlpha=1}for(a=0;a<this.rB.length;++a)this.rB[a].Xa(this.buffer,c,d,e,h)}},nj:function(){this.clear();this.X6a()},DCa:function(){var a=this.n.get();return this.iy*a+this.bn*(1-a)}});ig.wf(function(){return ig.rQ=new ig.M_a});ig.Vja=ig.ra.extend({name:s,ad:s,eFa:0,dA:s,xD:s,Taa:0,duration:0,kO:0,
state:0,f:function(a,b,c,d,e){this.dA=new ig.Ct(j);this.xD=new ig.Ct(j);this.ad=ig.cha[a];this.eFa=this.ad.e0/(this.ad.repeat-1);this.name=e||s;this.duration=b;this.Taa=c;this.kO=d;this.xD.set(this.ad.duration,ig.qk.REPEAT);this.state=0;this.dA.set(this.Taa,ig.qk.hq)},update:function(){if(this.state==0&&(!this.Taa||this.dA.yb())){this.state=1;this.dA.set(this.duration,ig.qk.hq)}if(this.state==1&&this.duration!=-1&&this.dA.yb()){this.state=2;this.dA.set(this.kO,ig.qk.hq)}if(this.state==2&&(!this.kO||
this.dA.yb()))return j;this.dA.ga();this.xD.ga();return w},Zr:function(){this.jfa(this.kO)},jfa:function(a){this.kO=a;this.state=2;this.dA.set(a,ig.qk.hq)},Xa:function(a,b,c,d,e){var h;switch(this.state){case 0:h=this.dA.get();break;case 1:h=1;break;case 2:h=1-this.dA.get()}var k=this.xD.get(),l=this.ad,m=1+k*l.Vga;ig.g.context.globalAlpha=h*k*l.e0;for(var n=0;n<l.repeat;++n){var o=m,t=ig.g.context;t.save();t.translate(ig.g.px/2,ig.g.ox/2);t.scale(o,o);t.translate(-ig.g.px/2,-ig.g.ox/2);ig.g.context.drawImage(a,
0,0,b,c,0,0,d,e);ig.g.context.restore();ig.g.context.globalAlpha=h*(l.e0-this.eFa*(k+n));m=m+l.Vga}ig.g.context.globalAlpha=1}})});ig.G=j;
ig.I("impact.feature.screen-blur.screen-blur-steps").J("impact.feature.screen-blur.screen-blur","impact.base.action","impact.base.event").H(function(){ig.ma.SET_SCREEN_BLUR=ig.na.extend({alpha:0,s:new ig.u({attributes:{alpha:{c:"Number",d:"Alpha of Screen blur. The lower, the stronger the effect",ub:0.5}}}),f:function(a){this.alpha=a.alpha||0.5},start:function(){ig.rQ.wd(this.alpha)}});ig.ma.CLEAR_SCREEN_BLUR=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){ig.rQ.clear()}});ig.ma.SET_ZOOM_BLUR=
ig.na.extend({HR:s,fadeIn:0,duration:0,fadeOut:0,name:s,s:new ig.u({attributes:{HR:{c:"String",d:"Type of Zoom Blur effect",Y:ig.cha},fadeIn:{c:"Number",d:"Time in seconds for effect to fade in",ub:0.2},duration:{c:"Number",d:"Time of effect. -1 = run forever",ub:1},fadeOut:{c:"Number",d:"Time in seconds for effect to fade out",ub:0.2},name:{c:"String",d:"Name of zoom blur. Can be used to fadeOut permanent zoom blurs",U:j}}}),f:function(a){this.HR=a.zoomType;this.fadeIn=a.fadeIn;this.duration=a.duration;
this.fadeOut=a.fadeOut;this.name=a.name},start:function(){var a=new ig.Vja(this.HR,this.duration,this.fadeIn,this.fadeOut,this.name);ig.rQ.Qla(a)}});ig.ma.FADE_OUT_ZOOM_BLUR=ig.na.extend({name:s,fadeOut:0,s:new ig.u({attributes:{name:{c:"String",d:"Name of zoom blur to be faded out"},fadeOut:{c:"Number",d:"Time in seconds for effect to fade out",ub:0.2}}}),f:function(a){this.name=a.name;this.fadeOut=a.fadeOut||0},start:function(){ig.rQ.AHa(this.name,this.fadeOut)}});ig.Ha.SET_ZOOM_BLUR=ig.Pa.extend({HR:s,
fadeIn:0,duration:0,fadeOut:0,name:s,s:new ig.u({attributes:{HR:{c:"String",d:"Type of Zoom Blur effect",Y:ig.cha},fadeIn:{c:"Number",d:"Time in seconds for effect to fade in",ub:0.2},duration:{c:"Number",d:"Time of effect. -1 = run forever",ub:1},fadeOut:{c:"Number",d:"Time in seconds for effect to fade out",ub:0.2},name:{c:"String",d:"Name of zoom blur. Can be used to fadeOut permanent zoom blurs",U:j}}}),f:function(a){this.HR=a.zoomType;this.fadeIn=a.fadeIn;this.duration=a.duration;this.fadeOut=
a.fadeOut;this.name=a.name},start:function(a){var b=new ig.Vja(this.HR,this.duration,this.fadeIn,this.fadeOut,this.name);ig.rQ.Qla(b);this.duration==-1&&a.fp(b)}});ig.Ha.FADE_OUT_ZOOM_BLUR=ig.Pa.extend({name:s,fadeOut:0,s:new ig.u({attributes:{name:{c:"String",d:"Name of zoom blur to be faded out"},fadeOut:{c:"Number",d:"Time in seconds for effect to fade out",ub:0.2}}}),f:function(a){this.name=a.name;this.fadeOut=a.fadeOut||0},start:function(){ig.rQ.AHa(this.name,this.fadeOut)}})});ig.G=j;
ig.I("impact.feature.screen-blur.plug-in").J("impact.feature.screen-blur.screen-blur","impact.feature.screen-blur.screen-blur-steps").H(function(){window.Yc&&wm.fo(/SCREEN_BLUR/,"yellow")});ig.G=j;
ig.I("impact.feature.terrain.terrain").J("impact.base.loader","game.config").H(function(){var a=Vec2.create();ig.d1a=ig.SH.extend({ui:"Terrain",wbb:{},ydb:{},kga:{},FGa:[],BHa:[],f:function(){if(!ig.Gd)return ig.warn("No TERRAIN specified. Please create ig.TERRAIN in game.config");if(!ig.zja)return ig.warn("Can't initialize terrain because no ig.TERRAIN_FILE was provided");ig.Gd.undefined=0;this.ydb=ig.Gd;for(var a in ig.Gd)this.wbb[ig.Gd[a]]=a;this.parent()},Cta:function(a,c){this.FGa.push(a);c&&
this.BHa.push(a)},EKa:function(a){return this.FGa.indexOf(a)!=-1},uqa:function(a){return this.BHa.indexOf(a)!=-1},FO:function(b,c,d){if(!b)return 0;var e=b.kb(a);if(b.Lc&&b.Lc.$j&&b.Lc.$j.P.mc)return b.Lc.$j.P.mc*1;var h=0,k=b.aa;do{h=this.dpa(e.x,e.y,k,c?b.size.x:0,c?b.size.y:0);k--}while(d&&!h&&k>=0);return h||ig.UH},Z$a:function(a,c,d,e,h){for(var k=ig.t.KC(d),l=ig.t.PIa(k),m=ig.t.Lx(a-e/2,c-h/2,l,e,h,d-l),n=m.length,o=0;n--;){var t=m[n],r=t.b,r=r.i.z+r.size.z;if(t.mc&&r<=d&&r>=l){o=t.mc;l=r}}return o?
o:this.dpa(a,c,k,e,h)},dpa:function(a,c,d,e,h){if(!ig.t.$a[d])return 0;var c=c-ig.t.$a[d].height,d=ig.t.$a[d].jf,k;if(k=this.e_(d,a,c))return k;if(e||h){if(k=this.e_(d,a-e/2,c))return k;if(k=this.e_(d,a+e/2,c))return k;if(k=this.e_(d,a,c-h/2))return k;if(k=this.e_(d,a,c+h/2))return k}return 0},e_:function(a,c,d){for(var e=a.length;e--;){var h=this.kga[a[e].oR];if(a[e]instanceof ig.pi.Background&&h){var k=a[e].o2(c,d);if(k&&h[k-1])return h[k-1]*1}}return 0},tab:function(a,c){var d=this.kga[a.oR];return!d?
ig.UH:d[c-1]},Us:function(){$.ajax({dataType:"json",url:ig.root+ig.zja+ig.kl(),context:this,success:this.onload.bind(this),error:this.onerror.bind(this)})},onerror:function(){this.kga={};this.zk(j)},onload:function(a){this.kga=a;this.zk(j)}});ig.mc=new ig.d1a});ig.G=j;ig.I("impact.feature.terrain.plug-in").J("impact.feature.terrain.terrain").H(F());ig.G=j;
ig.I("impact.feature.interact.interact").J("impact.base.game").H(function(){ig.Xya=ig.ra.extend({Tc:function(){return ig.ua.qb[ig.ua.qb.length-1]==this},ZMa:F(),bNa:F(),update:F()});ig.zWa=ig.sf.extend({tv:0,qb:[],f:function(){this.parent("Interact")},de:function(a){if(this.qb.indexOf(a)==-1){this.qb.push(a);a.ZMa()}},ie:function(a){var b=this.qb.indexOf(a);if(b!=-1){this.qb.splice(b,1);a.bNa()}},ed:function(a){this.tv=a===g?0.2:a},Ph:function(){return this.tv>0},oF:0,$s:function(){if(this.tv>0){this.tv=
this.tv-ig.g.Da;if(this.tv<0)this.tv=0;else return}this.qb.length>0&&this.qb[this.qb.length-1].update()}});ig.wf(function(){return ig.ua=new ig.zWa})});ig.G=j;
ig.I("impact.feature.interact.button-interact").J("impact.feature.interact.interact").H(function(){ig.mr={gH:0,AE:1,I7:2};ig.Wf=ig.ra.extend({Q:s,elements:[],B5:[],wea:[],N3:s,ti:s,Ea:{x:0,y:0},xOa:{x:0,y:0},z3:j,TQ:w,Daa:w,UO:w,C5:ig.mr.gH,bp:s,Qka:w,Kb:{focus:s},f:function(a,b,c){this.C5=a||ig.mr.gH;this.z3=b!=g?b:j;this.TQ=c||w},Uc:function(a,b,c,d){d&&this.v4a(a);this.elements[b]||(this.elements[b]=[]);this.elements[b][c]=a;a.ka=this;a.Q=s},qKa:function(a,b,c){this.elements[b]||(this.elements[b]=
[]);this.Aga();this.elements[b].splice(c,0,a);a.ka=this;a.Q=s},Jta:function(a,b){this.elements[a]||(this.elements[a]=[]);var c=this.elements[a].splice(b,1)[0];c.Ij&&c.Ce(w);c.zg();c.ka=s;c.Q=s;return c},w5a:function(a,b){this.elements[a]||(this.elements[a]=[]);this.elements[a][b]=s},mrb:function(a,b){for(var c=0;c<a;c++)for(var d=0;d<b;d++){this.elements[c]||(this.elements[c]=[]);this.elements[c][d]=s}},rqa:function(){if(this.elements[this.Ea.x]){var a=this.elements[this.Ea.x][this.Ea.y];if(a)if(a.Ga){if(a.Ij){if(!a.Bc){a.Vv();
a.Ce(j)}}else a.Vv();this.kDa(a);this.bp&&(!this.bp.Bqa(a)&&this.bp.Ij)&&this.bp.Ce(w);if(!this.Daa)this.bp=a}else a.gl&&a.gl.play()}},eca:function(){this.ti&&this.ti.Vv()},Bk:function(a){if(a)this.N3=a},tk:function(a){a&&this.wea.push(a)},lsb:function(a){a&&this.wea.remove(a)},si:function(a){a&&this.B5.push(a)},nsb:function(a){a&&this.B5.remove(a)},V6a:function(){this.B5.length=0},Ufa:function(){if(this.C5!=ig.mr.AE&&!this.Lq()){var a=this.Ea.x;if(this.z3)for(;!this.elements[++a%this.elements.length];);
else{a++;if(a>=this.elements.length)a=this.elements.length-1;else for(var b=a;b<this.elements.length;b++)if(this.elements[b]){a=b;break}}a=a%this.elements.length;if(this.elements[a][this.Ea.y])this.KHa(a);else{for(var c=b=this.Ea.y,d=0,e=0;!this.elements[a][++b%this.elements[a].length];)d++;c--;for(c<0&&(c=this.elements[a].length-1);!this.elements[a][c];){c--;e++;c<0&&(c=this.elements[a].length-1)}d<e?this.yf(a,b):this.yf(a,c)}}},Tfa:function(){if(this.C5!=ig.mr.AE&&!this.Lq()){var a=this.Ea.x-1;
if(this.z3)for(a<0&&(a=this.elements.length-1);!this.elements[a];){a--;a<0&&(a=this.elements.length-1)}else if(a<0)a=0;else for(var b=a;b>=0;b--)if(this.elements[b]){a=b;break}if(this.elements[a][this.Ea.y])this.KHa(a);else{for(var c=b=this.Ea.y,d=0,e=0;!this.elements[a][++b%this.elements[a].length];)d++;c--;for(c<0&&(c=this.elements[a].length-1);!this.elements[a][c];){c--;e++;c<0&&(c=this.elements[a].length-1)}d<e?this.yf(a,b):this.yf(a,c)}}},xRa:function(){if(this.C5!=ig.mr.I7&&!this.Lq()){var a=
this.Ea.y;if(this.elements[this.Ea.x]){if(this.z3)for(;this.elements[this.Ea.x][++a%this.elements[this.Ea.x].length]===g;);else{a++;if(a>=this.elements[this.Ea.x].length)a=this.elements[this.Ea.x].length-1;else for(var b=a;b<this.elements[this.Ea.x].length;b++)if(this.elements[this.Ea.x][b]!==g){a=b;break}}a=a%this.elements[this.Ea.x].length;if(this.elements[this.Ea.x][a])this.LHa(a);else{for(var c=b=this.Ea.x,d=0,e=0;!this.elements[++b%this.elements.length][a];)d++;c--;for(c<0&&(c=this.elements.length-
1);!this.elements[c][a];){c--;e++;c<0&&(c=this.elements.length-1)}d<e?this.yf(b,a):this.yf(c,a)}}}},yRa:function(){if(this.C5!=ig.mr.I7&&!this.Lq()){var a=this.Ea.y-1;if(this.elements[this.Ea.x]){if(this.z3)for(a<0&&(a=this.elements[this.Ea.x].length-1);this.elements[this.Ea.x][a]===g;){a--;a<0&&(a=this.elements[this.Ea.x].length-1)}else if(a<0)a=0;else for(var b=a;b>=0;b--)if(this.elements[this.Ea.x][b]!==g){a=b;break}if(this.elements[this.Ea.x][a])this.LHa(a);else{for(var c=b=this.Ea.x,d=0,e=0;!this.elements[++b%
this.elements.length][a];)d++;for(;!this.elements[c][a];){c--;e++;c<0&&(c=this.elements.length-1)}d<e?this.yf(b,a):this.yf(c,a)}}}},OBa:function(){if(!ig.input.dd&&!this.UO){var a=this.KU();if(a){a.Pl();this.nI(a)}}},qCa:function(){for(var a=0;a<this.elements.length;++a)if(this.elements[a])for(var b=0;b<this.elements[a].length;++b)this.elements[a][b]&&this.elements[a][b].zg();this.bp&&this.bp.Ce(w);this.bp=s},clear:function(){var a=this.elements[this.Ea.x]?this.elements[this.Ea.x][this.Ea.y]:s;if(a){a.Ij&&
a.Ce(w);a.zg()}this.Ea.x=0;this.Ea.y=0;this.elements=[];this.bp=s},sF:F(),KU:function(){return this.elements[this.Ea.x]&&this.elements[this.Ea.x][this.Ea.y]},Kn:R(w),Lq:function(){return this.elements.length==0},YKa:function(a,b){return this.elements[a]&&this.elements[a][b]},Tc:function(){if(!this.Q||!this.Q.Tc())return w;if(this.Qka)return j;var a=this.Q.vT;return a.length==0?w:this==a[a.length-1]},Asb:L("bp"),Lua:F(),Mj:function(a,b){this.Ea.x=a;this.Ea.y=b},R5:function(a,b){this.xOa.x=a;this.xOa.y=
b},KHa:function(a){if(this.Ea.x!=a){this.elements[this.Ea.x][this.Ea.y]&&this.elements[this.Ea.x][this.Ea.y].zg();this.Ea.x=a%this.elements.length;a=this.elements[this.Ea.x][this.Ea.y];a.Ij&&!this.TQ?a.Bc||this.Kb.focus&&this.Kb.focus.play():this.Kb.focus&&this.Kb.focus.play();a.Pl();this.nI(a)}},LHa:function(a){if(this.Ea.y!=a){this.elements[this.Ea.x][this.Ea.y]&&this.elements[this.Ea.x][this.Ea.y].zg();this.Ea.y=a%this.elements[this.Ea.x].length;a=this.elements[this.Ea.x][this.Ea.y];a.Ij&&!this.TQ?
a.Bc||this.Kb.focus&&this.Kb.focus.play():this.Kb.focus&&this.Kb.focus.play();a.Pl();this.nI(a)}},yf:function(a,b,c,d,e,h){if(!this.Q||!this.Q.qf)if(h||this.KU())if(!e||!(this.Ea.x==a&&this.Ea.y==b)){this.elements[this.Ea.x][this.Ea.y]&&this.elements[this.Ea.x][this.Ea.y].zg();this.Ea.x=a%this.elements.length;this.Ea.y=b%this.elements[this.Ea.x].length;d=d!=g?d:w;a=this.elements[this.Ea.x][this.Ea.y];a.Ij&&!this.TQ?a.Bc||!d&&this.Kb.focus&&this.Kb.focus.play():!d&&this.Kb.focus&&this.Kb.focus.play();
a.Pl();c||this.nI(a)}},qgb:function(a){this.yf(this.Ea.x,this.Ea.y,a||w,j)},Aga:function(){var a=this.elements[this.Ea.x][this.Ea.y];a&&a.zg()},V9a:function(){return this.Ea.x},qIa:function(){return this.Ea.y},rfa:function(a){this.bp&&this.bp.Ce(w);a.Ce(j);if(!this.Daa)this.bp=a},v4a:L("ti"),nI:function(a){for(var b=this.B5.length;b--;)this.B5[b](a)},kDa:function(a,b){for(var c=this.wea.length;c--;)this.wea[c](a,b||w)}});ig.nr=ig.Xya.extend({vT:[],D4:[],me:[],H2:[],qf:s,fda:w,Cg:function(a){this.vT.push(a);
a.Q=this;if(this.Tc()){a.OBa();ig.input.dd&&(this.fda&&this.qf)&&a.nI(this.qf)}},Lj:function(a){this.vT.xf(a);a.Q=this;a.qCa()},md:function(a,b,c){if(!(c&&this.me.indexOf(a)!=-1)){this.H2.push(b||s);this.me.push(a);a.Q=this;a.ka=s}},zd:function(a){a.Q=s;var b=this.me.indexOf(a);if(b!=-1){this.me.splice(b,1);this.H2.splice(b,1);a.zg()}},aN:function(a){if(a){a.Qka=j;a.Q=this;this.D4.push(a)}},gQ:function(a){if(a){a.Qka=w;a.Q=s;this.D4.xf(a)}},E0:function(){for(var a=this.me.length,b=s;a--;){b=this.me[a];
b.Q=s;b.zg()}this.me=[];this.H2=[]},pause:function(a){this.tD=a||BUTTON_GROUP_DEFAULT_PAUSE_TIME},ZMa:function(){var a=this.p2();a&&a.OBa()},bNa:function(){var a=this.p2();a&&a.qCa();if(this.qf){this.qf.zg();this.qf=s}},update:function(){var a=this.p2();if(a&&a.Kn())ig.input.dd=w;if(ig.input.dd){if(a&&!this.e5){this.e5=j;var b=a.KU();if(b&&this.qf!=b){b.focus&&!this.qf&&this.jDa();b.zg()}}if(this.qf&&sc.V.JIa()&&!ig.ua.Ph()){a=this.qf.ka;if(this.qf.Ga){if(this.qf.Ij){if(!this.qf.Bc){this.qf.Vv();
this.qf.Ce(j)}}else this.qf.Vv();a&&a.kDa(this.qf,j);if(a){a.bp&&(!a.bp.Bqa(this.qf)&&a.bp.Ij)&&a.bp.Ce(w);if(!a.Daa)a.bp=this.qf}}else this.qf.gl&&this.qf.gl.play()}if(!this.fda&&this.qf&&this.qf.sma()){this.qf.zg();this.qf=s;this.jDa()}this.fda=w}else if(a){if(this.e5){b=a.KU();if(this.qf==b)this.e5=w;if(this.qf){this.qf.zg();this.qf=s}if(b&&!a.UO){b.Pl();a.nI(b)}}a.sF(this.e5);this.e5=w}for(a=this.me.length;a--;)if(this.H2[a]&&this.H2[a]()){if(!this.me[a].Ul)ig.input.dd=w;this.me[a].Ga?this.me[a].Vv():
this.me[a].gl&&this.me[a].gl.play()}},Lua:function(a){var b=a.ka||this.p2();if(b.Tc()&&ig.input.dd){if(this.qf!=a&&(this.qf?this.qf.sma():1)){this.qf&&this.qf.zg();a.tma()&&(a.Ij?b.TQ?b.Kb.focus&&b.Kb.focus.play():a.Bc||b.Kb.focus&&b.Kb.focus.play():b.Kb.focus&&b.Kb.focus.play());a.Pl();this.qf=a;b.nI(this.qf)}this.fda=j}},p2:function(){return this.vT.length>0?this.vT[this.vT.length-1]:s},jDa:function(){var a=this.p2();a&&a.N3&&a.N3();for(a=this.D4.length;a--;)this.D4[a].N3&&this.D4[a].N3()}})});
ig.G=j;ig.I("impact.feature.interact.press-repeater").H(function(){ig.vZ=ig.ra.extend({ena:s,KLa:s,n:0,HHa:0.3,JOa:0.1,f:function(a,b){this.HHa=a||0.3;this.JOa=b||0.1},fs:L("ena"),j2:function(){var a=this.ena;this.ena=s;if(a!=this.KLa){this.n=this.HHa;return this.KLa=a}if(a){this.n=this.n-ig.g.Da;if(this.n<=0){this.n=this.JOa;return a}}return s}})});ig.G=j;
ig.I("impact.feature.interact.gui.focus-gui").J("impact.feature.gui.gui").H(function(){ig.Vn=ig.X.extend({focus:w,ka:s,Q:s,Ga:j,Ij:w,Bc:w,Ul:w,f:function(a,b){this.parent();this.a.gL(j);this.Ga=a==g?j:a;this.Ij=b==g?w:b},wu:function(a){a&&(this.ka&&this.ka.Q?this.ka.Q.Lua(this):this.Q&&this.Q.Lua(this))},Pl:function(){this.focus=j},zg:function(){this.focus=w},Vv:function(){this.Qb()},Qb:F(),tma:R(j),sma:R(j),Ce:L("Bc"),setActive:L("Ga"),Bqa:function(a){return this==a}})});ig.G=j;
ig.I("impact.feature.interact.plug-in").J("impact.feature.interact.interact","impact.feature.interact.button-interact","impact.feature.interact.press-repeater","impact.feature.interact.gui.focus-gui").H(F());ig.G=j;
ig.I("impact.feature.env-particles.env-particles").J("impact.base.game","impact.base.loader").H(function(){ig.$l.CC=j;ig.pr={};ig.pr.WHITE_DUST={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offX:0},renderMode:"lighter",SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:30,Bw:5,dir:{x:1,y:0},zu:{x:j,y:w},PA:0.2,time:3,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.DARK_DUST={nb:{sheet:{src:"media/env/particle.png",
width:8,height:8,offY:8},renderMode:"lighter",SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:30,Bw:5,dir:{x:1,y:0},zu:{x:j,y:w},PA:0.2,time:3,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.LEAVES={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offX:24},SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:90,Bw:20,
dir:{x:1,y:0.8},zu:{x:w,y:w},PA:0.1,dua:0.375,MQ:0.1,JG:1.3,time:5,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.GREEN_LEAVES={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offX:24,offY:8},SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:90,Bw:20,dir:{x:1,y:0.8},zu:{x:w,y:w},PA:0.1,dua:0.375,MQ:0.1,JG:1.3,time:5,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},
{scale:1.5,vb:"big"}]};ig.pr.BLUE_SQUARES={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offX:48},renderMode:"lighter",SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:30,Bw:10,dir:{x:0,y:-1},zu:{x:w,y:w},time:2,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.RED_SQUARES={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offX:72},renderMode:"lighter",SUB:[{name:"small",
frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:80,Bw:20,dir:{x:0,y:-1},zu:{x:w,y:w},time:1.2,Iw:0.3,Fv:0.3,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.SNOW_FLAKES={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offX:96},renderMode:"lighter",SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:120,Bw:20,dir:{x:0.4,y:1},zu:{x:w,y:w},MQ:0.05,JG:0.5,
time:2.5,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.COLD_CRYSTALS={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offX:96,offY:8},renderMode:"lighter",SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:30,Bw:5,dir:{x:1,y:0},zu:{x:j,y:w},PA:0.2,time:3,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.SAND_OUTSIDE={nb:{sheet:{src:"media/env/particle.png",
width:8,height:8,offY:24},SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:160,Bw:20,dir:{x:1,y:0.2},zu:{x:w,y:w},PA:0.1,MQ:0.05,JG:4,time:5,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.SANDSTORM={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offY:24},SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:320,Bw:20,
dir:{x:1,y:0.2},zu:{x:w,y:w},PA:0.1,MQ:0.05,JG:4,time:2,Iw:0.5,Fv:0.2,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.SAND={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offY:16},renderMode:"lighter",SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:20,Bw:5,dir:{x:0,y:1},zu:{x:j,y:w},PA:1,time:3,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.COAL_SPARKS=
{nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offY:16,offX:24},renderMode:"lighter",SUB:[{name:"small",frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:120,Bw:20,dir:{x:0,y:-1},zu:{x:w,y:w},PA:0.1,MQ:0.05,JG:4,time:3,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.pr.COAL_SPARKS_FAST={nb:{sheet:{src:"media/env/particle.png",width:8,height:8,offY:24,offX:24},renderMode:"lighter",SUB:[{name:"small",
frames:[0],time:0.1},{name:"medium",frames:[1],time:0.1},{name:"big",frames:[2],time:0.1}]},speed:240,Bw:40,dir:{x:0,y:-1},zu:{x:w,y:w},PA:0.1,MQ:0.05,JG:4,time:2,Iw:0.5,Fv:0.5,$a:[{scale:1,vb:"small"},{scale:1.2,vb:"medium"},{scale:1.5,vb:"big"}]};ig.Fha=ig.VR.extend({ui:"EnvParticleSpawner",name:s,nb:s,ad:s,$a:[],f:function(a){this.parent();this.name=a;var c=ig.pr[a];c||f(Error("Unknown environment particles '"+a+"'"));this.ad=c;this.nb=new ig.wj(c.nb);this.G3a()},xJ:ba(),Nn:function(){this.nb.Qa()},
G3a:function(){for(var a=this.ad.$a,c=0;c<a.length;++c){var d=a[c];this.$a.push({scale:d.scale,vb:d.vb,ID:0,Sp:0,Xc:[]})}},bQa:function(a,c){for(var d=0,e=0;e<this.$a.length;++e)d=d+1/this.$a[e].scale;for(e=0;e<this.$a.length;++e){var h=this.$a[e],k=a*(1/h.scale)/d;h.ID=this.ad.time/k;h.Sp=Math.random()*h.ID;if(c)for(var l=h.Xc.length=0;l<k;++l){this.HSa(h,h.ID);this.Cm(h)}}},update:function(){for(var a=j,c=this.$a.length;c--;){var d=this.$a[c],e=ig.g.ga;this.HSa(d,e);if(d.ID){a=w;for(d.Sp=d.Sp+e;d.Sp>=
d.ID;){d.Sp=d.Sp-d.ID;this.Cm(d)}}else d.Xc.length>0&&(a=w)}return a},Cm:function(a){var c=this.ad.time+(Math.random()-0.5)*2*this.ad.Iw,d=Vec2.pc(ig.CC.width,ig.CC.height);Vec2.aG(d,Math.random(),Math.random());var e=Vec2.create(this.ad.dir);if(this.ad.zu.x&&Math.random()>=0.5)e.x=e.x*-1;if(this.ad.zu.y&&Math.random()>=0.5)e.y=e.y*-1;if(this.ad.PA>0){var h=(Math.random()-0.5)*this.ad.PA*2*Math.PI;Vec2.rotate(e,h)}h=this.ad.speed+(Math.random()-0.5)*2*this.ad.Bw*a.scale;Vec2.length(e,h);a.Xc.push({duration:c,
n:0,Rv:0,i:d,Z:e,ePa:-1})},HSa:function(b,c){for(var d=b.Xc,e=d.length;e--;){var h=d[e];h.n=h.n+c;if(h.n>=h.duration)d.splice(e,1);else{if(this.ad.JG){var k=Math.sin(Math.PI*2*h.n/this.ad.JG+Math.PI*0.52)*this.ad.MQ*ig.g.ga*22/this.ad.JG,l=Vec2.assign(a,h.Z),m=Vec2.length(h.Z);Vec2.lX(l);Vec2.ck(l,k);Vec2.add(h.Z,l);Vec2.length(h.Z,m)}Vec2.bT(h.i,h.Z,c)}}},Xa:function(){for(var a=this.$a.length;a--;)this.$7a(this.$a[a])},$7a:function(a){for(var c=ig.t.bm,d=this.nb.La[a.vb].R1(),e=a.Xc,h=e.length,
k=0,l=a.scale,a=(l-1)*(ig.g.zoom-1),m=ig.CC.width,n=ig.CC.height,o=ig.t.screen.x*l,l=ig.t.screen.y*l,t=this.ad.Fv;h--;){var r=e[h],p=r.i.x-o,q=r.i.y-l,p=(p%m+m)%m,q=(q%n+n)%n,x=(p>m/2?1:0)+(q>n/2?2:0),y=x!=r.ePa;r.ePa=x;if(a){p=p+(p-m/2)*a;q=q+(q-n/2)*a}if(ig.t.ocb(p+ig.t.screen.x,q+ig.t.screen.y))r.Rv=y?0.3:Math.min(0.3,r.Rv+ig.g.ga);else if(r.Rv>0)r.Rv=y?0:Math.max(0,r.Rv-ig.g.ga);if(!(r.Rv>=0.3)){this.ad.dua!=g&&(k=Vec2.Gs(r.Z)-this.ad.dua*2*Math.PI);x=1-r.Rv/0.3;r.n<t?x=x*(r.n/t):r.n>r.duration-
t&&(x=x*((r.duration-r.n)/t));for(y=d.length;y--;)c.X7a(d[y],p,q,r.n,x,k)}}}});var a=Vec2.create();ig.pVa=ig.sf.extend({VB:[],width:0,height:0,f:function(){this.parent("EnvParticles");this.width=ig.g.width+32;this.height=ig.g.height+32},Ola:function(a,c,d){this.VB.indexOf(a)==-1&&this.VB.push(a);a.bQa(c,d)},clear:function(a){for(var c=this.VB.length;c--;)this.VB[c].bQa(0,a);if(a)this.VB.length=0},oF:0,$s:function(){if(!ig.t.paused)for(var a=this.VB.length;a--;)this.VB[a].update()&&this.VB.splice(a,
1)},L3:101,k4:function(){if(ig.$l.CC){for(var a=this.VB.length;a--;)this.VB[a].Xa();ig.g.context.globalCompositeOperation="source-over"}}});ig.wf(function(){return ig.CC=new ig.pVa})});ig.G=j;
ig.I("impact.feature.env-particles.env-particles-steps").J("impact.feature.env-particles.env-particles","impact.base.action","impact.base.event").H(function(){ig.ma.SET_ENV_PARTICLES=ig.na.extend({XQ:0,Ed:0,s:new ig.u({attributes:{Fo:{c:"String",d:"Type of Env Particles",Y:ig.pr},Ed:{c:"NumberExpression",d:"Quantity of particles (average number of visible particles)",ub:10}}}),f:function(a){this.XQ=new ig.Fha(a.particleType);this.Ed=a.quantity},Qa:function(){this.XQ.zc()},start:function(){var a=ig.Ra.so(this.Ed)||
0;ig.CC.Ola(this.XQ,a,w)}});ig.ma.CLEAR_ENV_PARTICLES=ig.na.extend({XQ:0,s:new ig.u({attributes:{Fo:{c:"String",d:"Type of Env Particles",Y:ig.pr}}}),f:function(a){this.XQ=new ig.Fha(a.particleType)},Qa:function(){this.XQ.zc()},start:function(){ig.CC.Ola(this.XQ,0,w)}})});ig.G=j;ig.I("impact.feature.env-particles.plug-in").J("impact.feature.env-particles.env-particles","impact.feature.env-particles.env-particles-steps").H(F());ig.G=j;
ig.I("impact.feature.storage.plug-in").J("impact.feature.storage.storage").H(function(){window.Yc&&wm.Vs&&(wm.Vs.saveMode={c:"String",Y:ig.Uia,d:"Save Mode of the map (Enabled = can save at any time, disable = only on savepoints)",Oi:j})});ig.G=j;
ig.I("impact.feature.weather.clouds").J("impact.base.game").H(function(){ig.eUa=ig.ra.extend({r:new ig.$("media/map/cloud.png"),Rt:[],yx:0,Z:Vec2.create(),Br:Vec2.create(),n:0,Fa:0,alpha:0,xfa:0,f:F(),RFa:function(a){if(a){this.Rt=[];ig.ph.g5(this)}else for(a=this.Rt.length;a--;)this.Rt[a].n=-2;this.yx=0},cib:function(a,b,c,d){this.RFa(d);this.yx=a;Vec2.assign(this.Z,b);this.alpha=c||0.7;this.Br.x=Math.floor(this.r.width/Math.sqrt(a));this.Br.y=Math.floor(this.r.height/Math.sqrt(a));this.Fa=(b=Math.abs(this.Z.x)>
Math.abs(this.Z.y))?this.Br.x/Math.abs(this.Z.x):this.Br.y/Math.abs(this.Z.y);a=d?0:this.Rt.length;for(b=(b?Math.ceil(ig.t.size.x/this.Br.x):Math.ceil(ig.t.size.y/this.Br.y))+1;b--;){c=Math.max(Math.abs(this.Z.x),Math.abs(this.Z.y));this.DMa(this.Br.x*this.Z.x/c,this.Br.y*this.Z.y/c,a,!d);this.aRa(d)}ig.ph.G9(this)},aRa:function(a){var b,c,d,e,h,k=Math.abs(this.Z.x)>Math.abs(this.Z.y);if(k){d=this.Z.x;b=ig.t.size.x;e=this.Z.y;c=ig.t.size.y;h=this.Br.y}else{d=this.Z.y;b=ig.t.size.y;e=this.Z.x;c=ig.t.size.x;
h=this.Br.x}for(b=-b*Math.abs(e)/Math.abs(d);b<c;b=b+h)this.g5a(k?-this.Br.x:b,k?b:-this.Br.y,a)},g5a:function(a,b,c){a=this.Z.x>0?a:ig.t.size.x-a-this.Br.x;b=this.Z.y>0?b:ig.t.size.y-b-this.Br.y;c={x:0,y:0,apb:Math.random()>0.5,yi:Math.random()>0.5,n:c?0:2};c.x=a+Math.random()*(this.Br.x-this.r.width);c.y=b+Math.random()*(this.Br.y-this.r.height);this.Rt.push(c)},DMa:function(a,b,c,d){for(var e=this.Rt.length;e--;){if(c&&e<c)break;var h=this.Rt[e];h.x=h.x+a;h.y=h.y+b;if(!d)if(h.n>0){h.n=h.n-ig.g.ga;
if(h.n<0)h.n=0}else if(h.n<0){h.n=h.n+ig.g.ga;if(h.n>=0){this.Rt.splice(e,1);continue}}(this.Z.x<=0&&h.x>ig.t.size.x||this.Z.x<=0&&h.x<this.r.width||this.Z.y>=0&&h.y>ig.t.size.y||this.Z.y<=0&&h.y<this.r.height)&&this.Rt.splice(e,1)}this.Rt.length==0&&ig.ph.g5(this)},update:function(){if(this.Rt.length!=0){this.DMa(this.Z.x*ig.g.ga,this.Z.y*ig.g.ga);if(this.yx>0){this.n=this.n+ig.g.ga;if(this.n>=this.Fa){this.aRa();this.n=this.n-this.Fa}}}},Lna:function(){if(this.Rt.length!=0){var a=ig.g.context.globalAlpha,
b=a*this.alpha;ig.g.context.globalAlpha=b;for(var c=this.Rt.length,d=ig.t.screen.x,e=ig.t.screen.y,h=ig.g.width,k=ig.g.height,l=this.r.width,m=this.r.height;c--;){var n=this.Rt[c];if(!(n.x>d+h||n.x+l<d||n.y>e+k||n.y+m<e)){if(n.n)ig.g.context.globalAlpha=ig.g.context.globalAlpha*(n.n>0?1-n.n/2:-n.n/2);this.r.Xa(n.x-d,n.y-e,0,0,g,g,n.Dd,n.yi);if(n.n)ig.g.context.globalAlpha=b}}ig.g.context.globalAlpha=a}}})});ig.G=j;
ig.I("impact.feature.weather.fog").J("impact.base.game").H(function(){ig.MVa=ig.ra.extend({lw:new ig.cv("media/map/fog2.png",ig.ue.Pf.gz,512,512,0,0,1,1),Z:Vec2.create(),scroll:Vec2.create(),alpha:0,iOa:0,n:0,xfa:1,zoom:0,f:function(){this.zoom=1.4},O6a:function(a){this.GPa(0,s,this.zoom,a)},GPa:function(a,b,c,d){c=c||1.4;if(c!=this.zoom){this.scroll.x=this.scroll.x+ig.t.screen.x*this.zoom-ig.t.screen.x*c;this.scroll.y=this.scroll.y+ig.t.screen.y*this.zoom-ig.t.screen.y*c;this.zoom=c}if(d){this.alpha=
a;this.n=0;a==0?ig.ph.g5(this):ig.ph.G9(this)}else if(this.alpha!=a){this.iOa=this.alpha;this.alpha=a;this.n=2;a>0&&ig.ph.G9(this)}b&&Vec2.assign(this.Z,b)},update:function(){if(this.n>0){this.n=this.n-ig.g.ga;if(this.n<=0){this.n=0;this.alpha==0&&ig.ph.g5(this)}}Vec2.bT(this.scroll,this.Z,ig.g.ga)},Lna:function(){var a=this.alpha;this.n>0&&(a=this.alpha+(this.iOa-this.alpha)*(this.n/2));var b=ig.g.context.globalAlpha;ig.g.context.globalAlpha=a;this.lw.eu(0).Xa(0,0,-this.scroll.x+ig.t.screen.x*this.zoom,
-this.scroll.y+ig.t.screen.y*this.zoom,ig.g.width,ig.g.height);ig.g.context.globalAlpha=b}})});ig.G=j;
ig.I("impact.feature.weather.rain").J("impact.base.game","impact.base.entity-pool").H(function(){ig.Uw={NONE:s,WEAK:{pattern:0,move:{x:80,y:320},duration:0.35,kc:0.15,lJ:15,Ab:new ig.da("media/sound/background/rain.ogg",0.7)},MEDIUM:{pattern:1,move:{x:80,y:320},duration:0.35,kc:0.15,lJ:30,Ab:new ig.da("media/sound/background/rain.ogg",0.7)},STRONG:{pattern:2,move:{x:80,y:320},duration:0.35,kc:0.15,lJ:45,Ab:new ig.da("media/sound/background/rain-strong.ogg",0.7)},SNOW_WEAK:{pattern:4,move:{x:30,y:75},
duration:0.5,kc:0.2,lJ:0,Ab:s,alpha:0.8,Zj:0.1},SNOW_MEDIUM:{pattern:5,move:{x:30,y:75},duration:0.5,kc:0.2,lJ:0,Ab:s,alpha:0.8,Zj:0.1},SANDSTORM_WEAK:{pattern:3,move:{x:320,y:80},duration:0.5,kc:0.2,lJ:0,Ab:s,Zj:0.2},SANDSTORM_NERD:{pattern:3,move:{x:256,y:64},duration:0.5,kc:0.2,lJ:0,Ab:s,Zj:0.2}};ig.nAa=ig.fe.extend({nb:new ig.wj({sheet:{src:"media/map/rain-drop.png",width:8,height:8},renderMode:"lighter",SUB:[{name:"default",time:0.05,frames:[0,1,2,3],repeat:w}]}),f:function(a,b,e,h){this.parent(a,
b,e,h);this.hDa(h)},reset:function(a,b,e,h){this.parent(a,b,e,h);this.hDa(h)},hDa:function(){this.b.v(8,8,0);this.b.type=ig.la.NONE;this.Za.alpha=0.6;this.ld();this.Ja("default",j,s,j,j)},CI:function(){this.Tb()}});ig.ut.Xz(ig.nAa);var a=0,b=0;ig.a_a=ig.ra.extend({r:new ig.cv("media/map/rain.png",ig.ue.Pf.gz,128,128),mt:ig.Uw.NONE,qb:[],n:0,r1:0,fB:s,f:F(),fQa:function(a,b){if((this.mt&&this.mt.Ab&&this.mt.Ab.group)!=(a&&a.Ab&&a.Ab.group)){this.fB&&this.fB.stop();this.fB=a&&a.Ab&&a.Ab.qy()}this.mt=
a;if(b)this.qb.length=0},U6a:function(a){this.fQa(ig.Uw.NONE,a);this.fB&&this.fB.stop()},update:function(){if(this.mt){for(this.n=this.n+ig.g.ga;this.n>this.mt.kc;){this.Hjb();this.n=this.n-this.mt.kc}if(this.mt.lJ){this.r1=this.r1+ig.g.ga;for(var a=1/this.mt.lJ;this.r1>a;){this.r1=this.r1-a;this.Ijb()}}}this.vdb()},Hjb:function(){var c=Math.random()*0.75+0.25;a=a+c*128;b=b+(1-c)*128;this.qb.push({n:this.mt.duration,Fa:this.mt.duration,i:{x:a,y:b},move:this.mt.move,alpha:this.mt.alpha||0.2,Zj:this.mt.Zj||
0.025,pattern:this.mt.pattern})},Ijb:function(){var a=10;do{for(var b=ig.t.screen.x+Math.random()*ig.g.width,e=ig.t.screen.y+Math.random()*ig.g.height,h=ig.t.bk;h--;){var k=ig.t.$a[h];if(k.collision&&k.collision.lLa(b,e)){a=k.height;k=k.collision.hb;b=b+(-(b%k)+Math.random()*(k-8));e=e+(-(e%k)+Math.random()*(k-8));e=e+a;ig.t.af(ig.nAa,b,e,a,{});return}}a--}while(a)},vdb:function(){for(var a=this.qb.length;a--;){var b=this.qb[a];b.n=b.n-ig.g.ga;b.n<=0?this.qb.splice(a,1):Vec2.bT(b.i,b.move,ig.g.ga)}},
Xa:function(){if(ig.$l.eH){var a=ig.g.context.globalAlpha;ig.g.context.globalCompositeOperation="lighter";for(var b=this.qb.length;b--;){var e=this.qb[b],h=this.r.eu(e.pattern),k=1;e.n<e.Zj?k=e.n/e.Zj:e.n>e.Fa-e.Zj&&(k=(e.Fa-e.n)/e.Zj);k=k*e.alpha;ig.g.context.globalAlpha=a*k;h.Xa(0,0,-e.i.x+ig.t.screen.x,-e.i.y+ig.t.screen.y,ig.g.width,ig.g.height)}ig.g.context.globalAlpha=a;ig.g.context.globalCompositeOperation="source-over"}}})});ig.G=j;
ig.I("impact.feature.weather.weather").J("impact.base.game","impact.feature.weather.clouds","impact.feature.weather.fog","impact.feature.weather.rain").H(function(){ig.$l.eH=j;ig.Qja={NONE:{Vl:0.6},CARGO_HOLD:{Xc:[{type:"DARK_DUST",Ed:10}]},CLOUDY:{zn:{alpha:0.5,time:2,$f:0.7},wv:{yx:0.5,Z:{x:60,y:24},alpha:0.4}},BEFORE_RAIN:{zn:{alpha:0.2,time:2,$f:0.3},Qk:{alpha:0.3,Z:{x:100,y:40}}},RAINY_WEAK:{Ty:{alpha:0.2,time:2,$f:0.3},es:ig.Uw.WEAK,Qk:{alpha:0.3,Z:{x:100,y:40}}},RAINY_MEDIUM:{Ty:{alpha:0.25,
time:2,$f:0.35},es:ig.Uw.MEDIUM,Qk:{alpha:0.4,Z:{x:150,y:60}}},RAINY_STRONG:{Ty:{alpha:0.5,time:2,$f:0.7},es:ig.Uw.STRONG,Qk:{alpha:0.5,Z:{x:225,y:90}}},ROOKIE_HARBOR:{zn:{alpha:0.3,time:2,$f:0.5},wv:{yx:0.3,Z:{x:90,y:36},alpha:0.24},Xc:[]},ROOKIE_HARBOR_INNER:{Vl:0.6,Xc:[{type:"DARK_DUST",Ed:3}],Iq:"#0f0f0f"},EXPO_SPACE:{zn:{alpha:1,time:2,$f:1},Vl:0.2,Xc:[{type:"BLUE_SQUARES",Ed:15}]},AUTUMN:{zn:{alpha:0.3,time:2,$f:0.5},wv:{yx:0.3,Z:{x:90,y:36},alpha:0.24},Xc:[{type:"LEAVES",Ed:6}]},AUTUMN_RAIN_WEAK:{zn:{alpha:0.3,
time:2,$f:0.5},wv:{yx:0.3,Z:{x:90,y:36},alpha:0.24},es:ig.Uw.WEAK,Qk:{alpha:0.3,Z:{x:100,y:40}},Xc:[{type:"LEAVES",Ed:8}]},AUTUMN_RAIN_MEDIUM:{zn:{alpha:0.3,time:2,$f:0.5},wv:{yx:0.3,Z:{x:90,y:36},alpha:0.24},es:ig.Uw.MEDIUM,Qk:{alpha:0.4,Z:{x:150,y:60}},Xc:[{type:"LEAVES",Ed:12}]},OLD_HIDEOUT_OUTSIDE:{Ty:{alpha:0.5,time:2,$f:0.7},Qk:{alpha:0.7,Z:{x:30,y:10}},Vl:0.2,Xc:[{type:"WHITE_DUST",Ed:10}],Iq:"#000b2c"},OLD_HIDEOUT_OUTSIDE_ALT:{Ty:{alpha:0.2,time:2,$f:0.3},Qk:{alpha:0.8,Z:{x:30,y:10}},Vl:0.4,
Xc:[{type:"WHITE_DUST",Ed:10}],Iq:"#000b2c"},OLD_HIDEOUT_INNER:{Qk:{alpha:0.7,Z:{x:30,y:10}},Vl:0.8,Xc:[{type:"DARK_DUST",Ed:10}]},OLD_HIDEOUT_OFFICE:{Qk:{alpha:0.7,Z:{x:30,y:10}},Vl:0.8,Xc:[{type:"DARK_DUST",Ed:10}]},RHOMBUS_DNG_TOP:{zn:{alpha:0.5,time:2,$f:0.7},Xc:[{type:"BLUE_SQUARES",Ed:10}]},RHOMBUS_DUNGEON:{zn:{alpha:0.3,time:2,$f:0.5},Xc:[{type:"BLUE_SQUARES",Ed:10}],Iq:"#101112"},CAVE_BERGEN:{Qk:{alpha:0.7,Z:{x:30,y:10}},Vl:0.8,Xc:[{type:"DARK_DUST",Ed:10}]},BERGEN_SUNNY:{zn:{alpha:0.3,time:2,
$f:0.5},wv:{yx:0.3,Z:{x:90,y:36},alpha:0.24},Xc:[{type:"GREEN_LEAVES",Ed:6}]},BERGEN_SNOW_START:{Ty:{alpha:0.1,time:2,$f:0.2},es:ig.Uw.SNOW_WEAK,Xc:[{type:"GREEN_LEAVES",Ed:2},{type:"SNOW_FLAKES",Ed:2}]},BERGEN_SNOW:{Ty:{alpha:0.2,time:2,$f:0.3},es:ig.Uw.SNOW_MEDIUM,Xc:[{type:"SNOW_FLAKES",Ed:6}]},BERGEN_INNER:{Vl:0.6,Xc:[{type:"DARK_DUST",Ed:3}],Iq:"#0f0f0f"},COLD_DUNGEON:{Ty:{alpha:0.2,time:2,$f:0.3},Qk:{alpha:0.8,Z:{x:30,y:10}},Vl:0.5,Iq:"#021116",Xc:[{type:"COLD_CRYSTALS",Ed:6},{type:"DARK_DUST",
Ed:10}]},COLD_DUNGEON_DARK:{Ty:{alpha:0.2,time:2,$f:0.3},Qk:{alpha:0.8,Z:{x:30,y:10}},Vl:0.7,Iq:"#021116",Xc:[{type:"COLD_CRYSTALS",Ed:12},{type:"DARK_DUST",Ed:6}]},COLD_DUNGEON_POST_BOSS:{Ty:{alpha:0.2,time:2,$f:0.3},Qk:{alpha:0.8,Z:{x:30,y:10}},Vl:0.9,Iq:"#021116",Xc:[{type:"COLD_CRYSTALS",Ed:6},{type:"DARK_DUST",Ed:10}]},HEAT_DUSTY:{zn:{alpha:0.4,time:2,$f:0.6},wv:{yx:0.3,Z:{x:90,y:36},alpha:0.24},Xc:[{type:"SAND_OUTSIDE",Ed:12}]},HEAT_PARALLAX:{zn:{alpha:0.4,time:2,$f:0.6},Xc:[{type:"SAND_OUTSIDE",
Ed:12}]},HEAT_SANDSTORM:{zn:{alpha:0.8,time:2,$f:0.9},es:ig.Uw.SANDSTORM_WEAK,Qk:{alpha:0.3,Z:{x:240,y:60},zoom:1},Xc:[{type:"SANDSTORM",Ed:12}]},HEAT_SANDSTORM_LIGHT:{zn:{alpha:0.4,time:2,$f:0.5},es:ig.Uw.SANDSTORM_NERD,Qk:{alpha:0.3,Z:{x:120,y:45},zoom:1},Xc:[{type:"SAND_OUTSIDE",Ed:12}]},HEAT_GREEN:{zn:{alpha:0.3,time:2,$f:0.5},wv:{yx:0.3,Z:{x:90,y:36},alpha:0.24},Xc:[{type:"GREEN_LEAVES",Ed:6}]},HEAT_DUNGEON:{zn:{alpha:0.3,time:2,$f:0.5},Qk:{alpha:0.8,Z:{x:5,y:-15}},Vl:0.5,Iq:"#140e08",Xc:[{type:"SAND",
Ed:16}]},HEAT_VILLAGE_INNER:{Vl:0.6,Xc:[{type:"DARK_DUST",Ed:3}],Iq:"#0f0f0f"},HEAT_VILLAGE_INNER_DUSTY:{Vl:0.6,Xc:[{type:"DARK_DUST",Ed:10}],Iq:"#0f0f0f"},HEAT_DUNGEON_MIDBOSS:{zn:{alpha:0.3,time:2,$f:0.5},es:ig.Uw.SANDSTORM_NERD,Qk:{alpha:0.8,Z:{x:120,y:45},zoom:1},Vl:0.5,Iq:"#140e08",Xc:[{type:"SANDSTORM",Ed:12}]},HEAT_DUNGEON_COAL:{zn:{alpha:0.3,time:2,$f:0.5},Qk:{alpha:0.8,Z:{x:5,y:-15}},Vl:0.5,Iq:"#140e08",Xc:[{type:"COAL_SPARKS",Ed:16}]},HEAT_DUNGEON_BOSS:{zn:{alpha:0.2,time:1,$f:0.7},Qk:{alpha:0.8,
Z:{x:5,y:-15}},Vl:0.5,Iq:"#140e08",Xc:[{type:"COAL_SPARKS_FAST",Ed:30}]},DREAM:{Ty:{alpha:1,time:1,$f:0.8}},UNKNOWN_INNER:{Vl:0.6,Xc:[],Iq:"#260a2e"},OFFICE:{Vl:0.6,Xc:[],Iq:"#0f0f0f"}};ig.L8=ig.VR.extend({ui:"Weather",name:s,ad:s,F4:[],f:function(a){this.parent();this.name=a;this.ad=ig.Qja[this.name];if(a=this.ad.Xc)for(var b=0;b<a.length;++b)this.F4.push(new ig.Fha(a[b].type))},xJ:ba(),Nn:function(){for(var a=this.F4.length;a--;)this.F4[a].zc();this.F4.length=0}});ig.W1a=ig.sf.extend({PV:s,aaa:new ig.L8("NONE"),
wv:new ig.eUa,Qk:new ig.MVa,es:new ig.a_a,nF:s,f:function(){this.parent("Weather");this.nF=new ig.$R;ig.ph.$_(this.nF)},sQa:function(a,b){this.aaa=a;this.mlb(b)},TF:100,at:function(a){this.PV&&this.PV.zc();this.PV=a.attributes&&a.attributes.weather?new ig.L8(a.attributes.weather||"NONE"):new ig.L8("NONE");this.PV.ad.Iq?ig.ph.KPa(this.PV.ad.Iq):ig.ph.KPa("#000000")},UF:100,my:function(){this.sQa(this.PV,j)},oF:0,$s:function(){if(!ig.t.paused){this.wv.update();this.Qk.update();this.es.update()}},L3:100,
k4:function(){this.es.Xa()},mlb:function(a){var b=this.aaa.ad;if(b.zn){var c=b.zn;ig.vd.aB("BLACK",c.alpha,c.time,c.$f)}else ig.vd.aB("BLACK",0,a?0:2);if(b.Ty){c=b.Ty;ig.vd.aB("WHITE",c.alpha,c.time,c.$f)}else ig.vd.aB("WHITE",0,a?0:2);if(b.wv){c=b.wv;this.wv.cib(c.yx,c.Z,c.alpha,a)}else this.wv.RFa(a);if(b.Qk){c=b.Qk;this.Qk.GPa(c.alpha,c.Z,c.zoom,a)}else this.Qk.O6a(a);b.es?this.es.fQa(b.es,a):this.es.U6a(a);b.KN?this.nF.kfa(b.KN,a?0:2):this.nF.kfa(0,a?0:2);b=b.Vl;b==g&&(b=0.6);ig.ph.Vl=b;this.YOa(a)},
YOa:function(a){ig.CC.clear(a);for(var b=this.aaa.ad,c=this.aaa.F4,d=c.length;d--;)ig.CC.Ola(c[d],b.Xc[d].Ed,a)}});ig.wf(function(){return ig.eH=new ig.W1a})});ig.G=j;
ig.I("impact.feature.weather.weather-steps").J("impact.feature.weather.weather","impact.base.action","impact.base.event").H(function(){ig.ma.SET_WEATHER=ig.na.extend({eH:0,s:new ig.u({attributes:{eH:{c:"String",d:"Type of Weather",Y:ig.Qja},kV:{c:"Boolean",d:"If true, change weather immediately with no transition"}}}),f:function(a){this.eH=new ig.L8(a.weather||"NONE");this.kV=a.immediately},Qa:function(){this.eH.zc()},start:function(){ig.eH.sQa(this.eH,this.kV)}});ig.ma.RESTORE_WEATHER_PARTICLES=
ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){ig.eH.YOa(w)}})});ig.G=j;ig.I("impact.feature.weather.plug-in").J("impact.feature.weather.weather","impact.feature.weather.weather-steps").H(function(){window.Yc&&wm.Vs&&(wm.Vs.weather={c:"String",Y:ig.Qja,d:"Weather to be displayed"})});ig.G=j;
ig.I("impact.feature.map-sounds.map-sounds").J("impact.base.game").H(function(){ig.bj={};ig.bj.CARGO_SHIP_OUTSIDE={loop:[{path:"media/sound/background/cargo/cargo-ambient-out.ogg",volume:1},{path:"media/sound/background/cargo/ocean-ambient.ogg",volume:0.5}],segments:[[{wait:1},{path:"media/sound/background/cargo/seagull-a.ogg",volume:0.8},{wait:10}],[{wait:2},{path:"media/sound/background/cargo/seagull-a.ogg",volume:0.4},{wait:8}],[{wait:2},{path:"media/sound/background/cargo/seagull-b.ogg",volume:0.5},
{wait:15}],[{wait:2},{path:"media/sound/background/cargo/seagull-b.ogg",volume:0.7},{wait:17}],[{wait:1},{path:"media/sound/background/cargo/seagull-c.ogg",volume:0.7},{wait:11}]]};ig.bj.CARGO_SHIP_OUTSIDE_RAIN={loop:[{path:"media/sound/background/cargo/cargo-ambient-out.ogg",volume:1},{path:"media/sound/background/cargo/ocean-ambient.ogg",volume:0.5}],segments:[]};ig.bj.CARGO_SHIP_INSIDE={loop:[{path:"media/sound/background/ship-outside.ogg",volume:1}],segments:[]};ig.bj.STRONG_RAIN={loop:[{path:"media/sound/background/rain.ogg",
volume:0.7}],segments:[]};ig.bj.LIGHT_WIND={loop:[{path:"media/sound/background/wind.ogg",volume:0.8}],segments:[]};ig.bj.CARGO_SHIP_AMBIENT_A={loop:[{path:"media/sound/background/cargo/cargo-ambient-a.ogg",volume:0.2}],segments:[]};ig.bj.CARGO_SHIP_AMBIENT_B={loop:[{path:"media/sound/background/cargo/cargo-ambient-b.ogg",volume:0.6}],segments:[]};ig.bj.CARGO_SHIP_AMBIENT_C={loop:[{path:"media/sound/background/cargo/cargo-ambient-c.ogg",volume:0.6}],segments:[]};ig.bj.CARGO_SHIP_AMBIENT_D={loop:[{path:"media/sound/background/cargo/cargo-ambient-d.ogg",
volume:0.6}],segments:[]};ig.bj.CARGO_SHIP_AMBIENT_E={loop:[{path:"media/sound/background/cargo/cargo-ambient-e.ogg",volume:0.6}],segments:[]};ig.bj.CARGO_SHIP_AMBIENT_F={loop:[{path:"media/sound/background/cargo/cargo-ambient-f.ogg",volume:0.5}],segments:[]};ig.bj.CARGO_SHIP_AMBIENT_G={loop:[{path:"media/sound/background/cargo/cargo-ambient-g.ogg",volume:0.6}],segments:[]};ig.bj.CARGO_SHIP_AMBIENT_H={loop:[{path:"media/sound/background/cargo/cargo-ambient-h.ogg",volume:0.6}],segments:[]};ig.bj.HIDEOUT_AMBIENT=
{loop:[{path:"media/sound/background/hideout/hideout-ambient.ogg",volume:0.8}],segments:[]};ig.bj.HIDEOUT_INNER_AMBIENT={loop:[{path:"media/sound/background/hideout/hideout-inner-ambient.ogg",volume:1}],segments:[]};ig.bj.HIDEOUT_OFFICE_AMBIENT={loop:[{path:"media/sound/background/hideout/hideout-office-ambient.ogg",volume:0.8}],segments:[]};ig.bj.CROSS_CENTRAL_INNER={loop:[{path:"media/sound/background/rhombus-square/cross-central-inner.ogg",volume:1}],segments:[]};ig.bj.BERGEN_TRAIL_WIND={loop:[{path:"media/sound/background/bergen-trail/cold-wind.ogg",
volume:0.3}],segments:[]};ig.bj.BERGEN_TRAIL_WIND_SUBTLE={loop:[{path:"media/sound/background/strong-wind.ogg",volume:0.2}],segments:[]};ig.bj.ROOKIE_HARBOR_TELEPORTER={loop:[{path:"media/sound/background/cargo/ocean-ambient.ogg",volume:0.5}],segments:[[{wait:1},{path:"media/sound/background/cargo/seagull-a.ogg",volume:0.8},{wait:10}],[{wait:2},{path:"media/sound/background/cargo/seagull-a.ogg",volume:0.4},{wait:8}],[{wait:2},{path:"media/sound/background/cargo/seagull-b.ogg",volume:0.5},{wait:15}],
[{wait:2},{path:"media/sound/background/cargo/seagull-b.ogg",volume:0.7},{wait:17}],[{wait:1},{path:"media/sound/background/cargo/seagull-c.ogg",volume:0.7},{wait:11}]]};ig.bj.ROOKIE_HARBOR_CROWD={loop:[{path:"media/sound/background/rookie-harbor/crowd.ogg",volume:0.5}],segments:[]};ig.bj.COLD_DUNGEON={loop:[],segments:[]};ig.bj.HEAT_DUNGEON={loop:[],segments:[]};ig.bj.HEAT_AREA_WIND={loop:[{path:"media/sound/background/strong-wind.ogg",volume:0.2}],segments:[]};ig.bj.HEAT_DUNGEON_OUTSIDE={loop:[{path:"media/sound/background/strong-wind.ogg",
volume:0.5}],segments:[]};ig.bj.DREAM={loop:[{path:"media/sound/background/dreams/dream-atmo.ogg",volume:0.5}],segments:[]};ig.rza=ig.ra.extend({A3:[],tQ:[],Lca:[],Y$:-1,Ri:0,n:0,f:function(a){var b=ig.bj[a];b||f(Error('Map Sounds of name "'+a+'" not found.'));for(var c=b.loop,a=0;a<c.length;++a)this.A3.push(new ig.da(c[a].path,c[a].volume));b=b.segments;for(a=0;a<b.length;++a)this.tQ.push(this.L2a(b[a]))},Qa:function(){for(var a=this.A3.length;a--;)this.A3[a].Qa();for(a=this.tQ.length;a--;)for(var b=
this.tQ[a].qb.length;b--;)this.tQ[a].qb[b].Ab.Qa()},start:function(){for(var a=this.A3.length;a--;)this.Lca.push(this.A3[a].qy());this.Y$=-1;this.n=this.Ri=0},update:function(){if(this.tQ.length&&ig.g.ga){this.Y$==-1&&this.bEa();var a=this.tQ[this.Y$];this.n=this.n+ig.g.Da;for(var b=a.qb;this.Ri<b.length&&b[this.Ri].time<=this.n;){b[this.Ri].Ab.play();this.Ri++}if(this.n>=a.Fa){this.n=this.n-a.Fa;this.bEa()}}},stop:function(){for(var a=this.Lca.length;a--;)this.Lca[a].stop();this.Lca.length=0},L2a:function(a){for(var b=
{Fa:0,qb:[]},c=0,d=0;d<a.length;++d){var e=a[d];e.wait?c=c+e.wait:b.qb.push({time:c,Ab:new ig.da(e.path,e.volume)})}b.Fa=c;return b},bEa:function(){this.Y$=Math.floor(Math.random()*this.tQ.length);this.Ri=0}});ig.QXa=ig.sf.extend({Sca:s,Ri:s,f:function(){this.parent("MapSounds")},H5:function(a){this.Ri&&this.Ri.stop();(this.Ri=a)&&this.Ri.start()},nj:function(){this.H5(s)},TF:100,at:function(a){this.Sca&&this.Sca.Qa();this.Sca=a.attributes&&a.attributes["map-sounds"]?new ig.rza(a.attributes["map-sounds"]):
s},UF:100,my:function(){this.H5(this.Sca)},oF:0,$s:function(){ig.t.paused||this.Ri&&this.Ri.update()}});ig.wf(function(){return ig.lMa=new ig.QXa})});ig.G=j;
ig.I("impact.feature.map-sounds.map-sounds-steps").J("impact.feature.map-sounds.map-sounds","impact.base.action","impact.base.event").H(function(){ig.ma.SET_MAP_SOUNDS=ig.na.extend({Ifa:s,s:new ig.u({attributes:{lMa:{c:"String",d:"Type of Map Sounds",Y:ig.bj,Oi:j}}}),f:function(a){if(a.mapSounds)this.Ifa=new ig.rza(a.mapSounds)},Qa:function(){this.Ifa&&this.Ifa.Qa()},start:function(){ig.lMa.H5(this.Ifa)}})});ig.G=j;
ig.I("impact.feature.map-sounds.plug-in").J("impact.feature.map-sounds.map-sounds","impact.feature.map-sounds.map-sounds-steps").H(function(){window.Yc&&wm.Vs&&(wm.Vs["map-sounds"]={c:"String",Y:ig.bj,d:"Map sounds to be played in the background",Oi:j})});ig.G=j;
ig.I("impact.feature.nwf.nwf-errors").H(function(){function a(a){if(!(a.G8a===0||a.errorCode===0))switch(a.G8a){case nwf.g.zS.nmb:case nwf.g.zS.DZ:b(a.errorCode,a.Ob);break;case nwf.g.zS.Glb:case nwf.g.zS.Ilb:l&&b(evt.errorCode,function(a){a.xtb!==e.fnb&&console.log("[NWF] Error ignored. WARNING: SAMPLE WILL NOT WORK PROPERLY")});break;case nwf.g.zS.hnb:switch(a.errorCode){case h.inb:var c=nwf.input.Y1a.N9a(0);if(!c.Aob){c.addEventListener(nwf.Vg.sUa.RTa,d);b(a.errorCode)}break;default:console.log("[NWF] Unhandled VPAD: "+
a.Maa)}break;case nwf.g.zS.Ulb:switch(a.errorCode){case h.Vlb:b(a.errorCode,a.Ob,e.tha);break;case h.Xlb:b(a.errorCode,a.Ob,e.tha);break;case h.Wlb:b(a.errorCode,a.Ob,e.tha);break;default:console.log("[NWF] Unhandled CMN_MSG: "+a.Maa)}break;case nwf.g.zS.Aza:var c="UNKNOWN",k;for(k in h)h[k]==a.errorCode&&(c=k);switch(a.errorCode){default:console.log("[NWF] Unhandled NWF ("+a.errorCode+" = "+c+"):"+a.Maa)}break;case 115:switch(a.errorCode){default:console.log("[NWF] MIIVERSE: "+a.Maa);b(a.errorCode,
a.Ob,e.tha)}break;default:ig.log("[NWF] Unhandled error: ("+a.errorCode+") "+a.Maa)}}function b(a,b,c){var d;typeof b!=="function"&&(b=m);if(typeof c==="undefined")c=e.dmb;typeof d==="undefined"&&(d=w);e.Gob(b,a,c,d)}function c(){ig.log("******** [NWF] CRASH IMMINENT ********")}function d(){nwf.input.Y1a.N9a(0).removeEventListener(nwf.Vg.sUa.RTa,d);e.vob()}if(window.nwf){var e=nwf.otb.hmb,h=nwf.g.$mb,k=nwf.Vg.anb,l=w,m=F(),n=nwf.g.onb.Fpb();n.addEventListener(k.kmb,a);n.addEventListener(k.Ylb,c)}});
ig.G=j;ig.I("impact.feature.nwf.plug-in").J("impact.feature.nwf.nwf-errors").H(F());ig.G=j;
ig.I("impact.feature.video.video").J("impact.base.loader","game.config").H(function(){var a=[{qkb:"webm",type:"video/webm"}];ig.S1a=ig.hS.extend({ui:"Video",Al:s,vK:s,ys:0,tka:0,Ska:0,zCa:s,f:function(a){this.parent(a)},Us:function(){this.Al=document.createElement("video");this.Al.addEventListener("canplaythrough",this.onload.bind(this));this.Al.addEventListener("error",this.onerror.bind(this));this.Al.addEventListener("ended",this.l4a.bind(this));console.log("LOAD VIDEO!");this.Al.className="igVideo";
this.Al.asb=j;for(var b=ig.root+this.path.match(/^(.*)\.[^\.]+$/)[1],c=a.length;c--;){var d=a[c],e=document.createElement("source");e.type=d.type;e.src=b+"."+d.qkb+ig.kl();this.Al.appendChild(e)}},onload:function(){console.log("LOADED!");this.zk(j)},onerror:function(a){console.log("NOPE!",a);this.zk(w)},play:function(a){this.vK=a;this.Al.currentTime=0;this.Al.volume=1;this.Al.play()},pause:function(){this.Al.pause()},reset:function(){this.Al.currentTime=0},O8a:function(a){this.ys=this.tka=a;this.Ska=
Date.now();this.zCa=window.setInterval(this.g3a.bind(this),10)},g3a:function(){var a=Date.now(),c=(a-this.Ska)/1E3;this.Ska=a;this.ys=this.ys-c;if(this.ys<0)this.ys=0;this.Al.volume=this.ys/this.tka;this.ys==0&&window.clearInterval(this.zCa)},Xa:function(a,c,d,e){if(!this.Al.paused){var h=ig.g.scale,a=ig.g.Ae(a),c=ig.g.Ae(c);ig.g.context.drawImage(this.Al,a,c,d*h,e*h)}},l4a:function(){this.vK&&this.vK()}})});ig.G=j;
ig.I("impact.feature.video.video-gui").J("impact.feature.video.video","impact.feature.gui.gui").H(function(){ig.T1a=ig.X.extend({Al:s,xm:w,f:function(a,b,c){this.parent();this.Al=a;this.a.size.x=b||ig.g.width;this.a.size.y=c||ig.g.height},play:function(a){this.xm=1;this.Al.play(a)},pause:function(){this.xm=0;this.Al.pause()},reset:function(){this.Al.currentTime=0},va:function(a){this.xm&&this.xm<=4?this.xm++:this.xm==5&&a.G5a(this.Al,0,0,this.a.size.x,this.a.size.y)}});ig.jnb=ig.X.extend({oB:s,N:{DEFAULT:{state:{},
time:1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:1,p:KEY_SPLINES.LINEAR}},vK:s,pe:s,f:function(a,b,c){this.parent(a);this.oB=new ig.T1a(a,b,c);this.oB.a.N.DEFAULT={state:{},time:0,p:KEY_SPLINES.LINEAR};this.oB.a.N.HIDDEN={state:{alpha:0},time:1,p:KEY_SPLINES.LINEAR};this.m(this.oB);this.j("HIDDEN",j);this.pe=new sc.At(this,j);Vec2.assign(this.a.size,this.oB.a.size)},start:function(a){this.vK=a;this.j("DEFAULT",w,w,this.O4a.bind(this))},O4a:function(){this.oB.j("DEFAULT");this.oB.play(this.wEa.bind(this));
ig.ua.de(this.pe)},wEa:function(){this.oB.j("HIDDEN",w,w,this.d4a.bind(this));this.oB.Al.O8a(1);ig.ua.ie(this.pe)},ql:function(){this.wEa()},d4a:function(){this.j("HIDDEN");this.oB.reset();this.oB.pause();this.vK&&this.vK();this.vK=s},va:function(a){a.Ec("black",0,0,this.a.size.x,this.a.size.y)}})});ig.G=j;ig.I("impact.feature.video.plug-in").J("impact.feature.video.video","impact.feature.video.video-gui").H(F());ig.G=j;
ig.I("impact.feature.influencer.influencer").H(function(){ig.Wya={pN:[],Z_:function(a){this.pN.push(a)},f:function(a){for(var b=0;b<this.pN.length;++b)a.pN[b]=new this.pN[b](a,a.P)}};ig.wWa=ig.ra.extend({P:s,qb:[],pN:[],f:function(a){this.P=a;ig.Wya.f(this)},REa:function(a){this.qb.indexOf(a)==-1&&this.qb.push(a)},GOa:function(a){this.qb.xf(a);if(a.S6==this)a.S6=this},Ukb:function(){for(var a=0;a<this.pN.length;++a)this.pN[a].Vk(this,this.P)},Vk:function(){this.Ukb();for(var b=this.P.b,d=1,e=1,h=
this.qb.length;h--;){var k=this.qb[h];if(!k.S6)k.S6=this;var l=1;if(k.state==a.tS)this.qb.splice(h,1);else{if(k.S6==this){if(!k.Zt.yb()){k.Zt.ga();k.state=a.xya;if(k.Zt.yb()){this.qb.splice(h,1);k.state=a.tS;continue}l=k.c2()}}else k.state==a.xya&&(l=k.c2());d=d*(1-l+l*k.iwa);e=e*(1-l+l*k.HMa);k.push&&k.O5a(b,l)}}b.time.lh=d;b.time.zra=e},Ueb:function(){for(var b=0,d=this.qb.length;d--;){var e=this.qb[d];e.state=a.Ki;var h=e.c2(),b=b+e.uJa*h}if(b=Math.round(b)){e=this.P.Ta;for(d=e.length;d--;)e[d].i.z=
e[d].i.z-b}}});var a={Ki:0,xya:1,tS:2};sc.lWa={cZa:function(a,b,e,h,k,l,m){b.kb(a);Vec2.sub(a,e);Vec2.hd(a);b=Vec2.length(a);e=1;k&&(b>k?e=0:b>=h&&(e=(b-h)/(k-h)));b<2&&(e=0);Vec2.length(a,e*m*l)},Lmb:function(a,b,e,h,k,l,m){b.kb(a);Vec2.sub(a,e);b=Vec2.length(a);e=1;k&&(b>k?e=0:b>=h&&(e=(b-h)/(k-h)));b<2&&(e=0);Vec2.length(a,e*m*l)},cmb:function(a,b,e,h,k,l,m){Vec2.sub(a,e);Vec2.length(l*m)}};var b=Vec2.create();ig.Vya=ig.ra.extend({Zt:s,iwa:1,HMa:1,uJa:0,S6:s,state:a.Ki,push:s,f:function(){this.Zt=
new ig.Ct(w)},Dib:function(a,b,e,h){this.push={type:a,min:b,max:e,speed:h,Twa:Vec2.create()}},Fsb:function(a,b){this.push&&Vec2.assign(this.push.Twa,a,b)},Cib:function(a){this.push&&a.kb(this.push.Twa)},O5a:function(a,d){if(this.push){this.push.type(b,a,this.push.Twa,this.push.min,this.push.max,this.push.speed,d);Vec2.add(a.ow,b)}},jfa:function(a){this.Zt.set(a,ig.qk.hq)},c2:function(){return this.Zt.yb()?1:1-this.Zt.get()}})});ig.G=j;ig.I("impact.feature.influencer.plug-in").J("impact.feature.influencer.influencer").H(F());
ig.G=j;
ig.I("game.feature.version.version").J("impact.base.game","impact.feature.storage.storage").H(function(){sc.Q1a=ig.SH.extend({Oca:0,cda:7,Vda:1,TJa:0,Tp:"Demo",pX:2,Xra:0,Yra:0,Zra:0,lC:s,f:function(){if(ig.Fxa){this.parent();var a=JSON.parse(localStorage.getItem("cc.version"));if(a){this.Xra=a.major||0;this.Yra=a.minor||0;this.Zra=a.patch||0}}else ig.warn("Can't load changelog because no ig.CHANGE_LOG is given!")},Ehb:function(){localStorage.setItem("cc.version",JSON.stringify(this.S4a()))},C$a:function(a){a=
a?a:[];a.length=0;for(var b=this.UCa(this.Xra,this.Yra,this.Zra),c=0;c<this.lC.length;c++)if(this.lC[c].version==b)break;else a.push(this.lC[c]);return a},toString:function(){var a=this.pga();window.IG_GAME_DEBUG?a=a+" DEV":window.IG_GAME_BETA&&(a=a+" BETA");this.Tp&&(a=a+(" "+this.Tp));return a},pga:function(){return"v"+this.Oca+"."+this.cda+"."+this.Vda+(this.TJa>1?"-"+this.TJa:"")},hbb:function(){return this.Oca!=this.Xra||this.cda!=this.Yra||this.Vda!=this.Zra},Us:function(){$.ajax({dataType:"json",
url:ig.root+ig.Fxa+ig.kl(),context:this,success:this.onload.bind(this),error:this.onerror.bind(this)})},onerror:function(a){this.lC=s;this.zk(j);ig.error("Could not load Changelog json file! Event: %O",a)},onload:function(a){this.lC=a.changelog;window.Yc&&ig.Dj.dg("changelog","ChangelogList","Changelog",{path:"data/changelog.json",data:this.lC});var b=this.UCa(this.Oca,this.cda,this.Vda);b!=this.lC[0].version&&f(Error("Version collision! Inlined: "+b+", Json: "+this.lC[0].version+", missing entry?"));
this.zk(j);ig.hM&&ig.log("%cLOADABLE: %cLoaded Changelog: \n%O","color:blue","",a)},Kpb:function(){return ig.Cc.OIa({version:this.pga(),saveVersion:this.pX})},elb:function(a){a.kdb({version:this.pga(),saveVersion:this.pX})},UCa:function(a,b,c){return a+"."+b+"."+c},S4a:function(){var a={};a.major=this.Oca;a.minor=this.cda;a.patch=this.Vda;return a}});sc.version=new sc.Q1a;sc.R1a=ig.sf.extend({Zqa:s,Hca:s,f:function(){ig.Cc.dg(this);this.nj()},nj:function(){this.Zqa=sc.version.pga();this.Hca=sc.version.pX},
Rq:function(a){a.version=this.Zqa;a.saveVersion=this.Hca},Qq:function(a){this.Zqa=a.version;this.Hca=a.saveVersion||0;this.Hca<sc.version.pX&&ig.t.Pla(ig.lang.get("sc.gui.loading.versionOutdated"))}});ig.wf(function(){return new sc.R1a})});ig.G=j;
ig.I("game.feature.control.control").J("impact.base.game","impact.feature.interact.press-repeater","impact.feature.gui.gui").H(function(){function a(){var a=ig.t.wb;if(!a)return 9999;a=a.b;ig.g.Kv(c,a.i.x+a.size.x/2,a.i.y+a.size.y/2-a.i.z-Constants.KR-Constants.aE/2);return Vec2.ab(c,ig.input.Sh)/ig.g.zoom}var b=Vec2.create();ig.Fs=j;sc.TVa=ig.sf.extend({f:function(){this.parent("GlobalInput");ig.T.fib(sc.V)},JK:5,BA:function(){var b=!ig.t.paused&&sc.q.Xm()&&sc.q.SJ()&&ig.t.wb&&!ig.t.wb.VC();if(ig.input.bb==
ig.Gb.Jc)ig.g.xQ("none");else if(b){var b=sc.q.R.Si(sc.hg.CLOSE_COMBAT),c=sc.q.R.Si(sc.hg.THROWING);!b&&!c?ig.g.xQ(s):c?b?a()<sc.hH?ig.g.xQ("melee"):ig.g.xQ("throw"):ig.g.xQ("throw"):ig.g.xQ("melee")}else ig.g.xQ(s);sc.V.dlb()},rG:8999,gw:function(){if(!ig.uu){if((sc.V.pause()||sc.q.Mq()&&sc.V.Bo())&&ig.Fs)if(sc.q.Mq()){sc.q.Ir();sc.qd.back.play()}else sc.q.tHa()&&sc.qd.submit.play();(sc.q.Qe()&&sc.q.Xm()||sc.q.message.cw)&&!ig.g.tl&&ig.Fs&&!sc.q.Sab()&&!sc.q.EX&&sc.V.Efa()&&sc.q.Efa();!sc.q.Qe()&&
sc.V.Efa()&&sc.mL.Hkb();if(sc.V.e()&&sc.q.R.Si(sc.hg.MENU))if(sc.q.xo()){if(sc.e.bcb()){sc.q.Ir();sc.qd.back.play()}}else sc.q.Xm()&&(sc.q.pA()?sc.q.v0():sc.q.Sr()?sc.qd.xx.play():sc.q.Ex()&&sc.qd.submit.play());sc.q.R.Si(sc.hg.QUEST_SWITCH)&&(sc.q.Xm()&&sc.q.SJ())&&(sc.V.bgb()?sc.Xb.hna(1):sc.V.cgb()&&sc.Xb.hna(-1));if(sc.q.R.Si(sc.hg.QUICK_MENU)){var a=sc.options.get("quick-menu-access");if(a==sc.f8.Mya)if(sc.V.fgb()){if(!sc.ib.vz&&sc.q.Jaa()){sc.ib.vz=j;sc.qd.rOa.play()}}else{if(sc.ib.vz){sc.ib.vz=
w;if(sc.ib.visible){sc.q.Ir();sc.qd.qOa.play()}}}else if(a==sc.f8.Uza&&sc.V.ggb())if(sc.q.yV()){sc.q.Ir();sc.qd.rOa.play()}else sc.q.Jaa()&&sc.qd.qOa.play()}if(ig.platform==ig.pk.DESKTOP&&ig.input.Bc("fullscreen")){sc.options.set("fullscreen",!sc.options.get("fullscreen"));sc.options.WNa()}if(ig.input.Bc("snapshot")){a=ig.g.canvas.toDataURL("image/png");window.open(a,"_blank")}}}});sc.hH=48;sc.rUa=ig.ra.extend({rj:new ig.vZ,Nta:w,Wa:s,tPa:L("Wa"),to:function(){return this.Wa?this.Wa.get("mouseX"):
ig.input.Sh.x},Vm:function(){return this.Wa?this.Wa.get("mouseY"):ig.input.Sh.y},JIa:function(){return this.Wa?ig.input.bb==ig.Gb.gm&&this.Wa.get("menuConfirm"):ig.input.ALa("aim")},e2:function(){return this.Wa?w:ig.input.Bc("aim")},$oa:function(){return this.Wa?w:ig.input.state("aim")},ke:function(a){if(this.Wa){if(a==ig.Pc.El)return this.Wa.get("axisLeftX");if(a==ig.Pc.Fl)return this.Wa.get("axisLeftY");if(a==ig.Pc.ss)return this.Wa.get("axisRightX");if(a==ig.Pc.ts)return this.Wa.get("axisRightY");
f(Error("Unknown Axis: "+a))}return ig.fc.ke(a)},hca:function(){return this.Wa?this.Wa.get("leftStickDown"):ig.fc.hca()},Zx:function(){return this.Wa?this.Wa.get("rightStickDown"):ig.fc.Zx()},dlb:function(){ig.fc.ou(ig.nc.BH)?this.rj.fs("scrollUp"):ig.fc.ou(ig.nc.uE)&&this.rj.fs("scrollDown");this.Nta=this.rj.j2()},J9:function(){return this.Wa?this.Wa.get("aimStart"):ig.input.Bc("aim")||ig.fc.Zx()},oq:function(){return this.Wa?this.Wa.get("aiming"):ig.input.state("aim")||ig.fc.Zx()},U5a:function(){return this.Wa?
this.Wa.get("attacking"):ig.input.Bc("aim")&&a()<sc.hH||!ig.fc.Zx()&&ig.fc.ci(ig.nc.uE)},XHa:function(){return this.Wa?this.Wa.get("attacking"):ig.input.Bc("aim")||ig.fc.ci(ig.nc.uE)},w6a:function(){return this.Wa?w:ig.input.state("aim")&&a()>=sc.hH||ig.fc.Zx()},v6a:function(){return this.Wa?w:ig.input.Bc("aim")&&a()<sc.hH||ig.input.bb==ig.Gb.Jc&&!ig.fc.Zx()},gY:function(){return this.Wa?this.Wa.get("thrown"):ig.input.ALa("aim")||ig.fc.Zx()&&ig.fc.ci(ig.nc.uE)},td:function(){return this.Wa?this.Wa.get("charge"):
ig.input.state("special")||ig.fc.ou(ig.nc.BZ)},V5a:function(){return this.Wa?w:ig.fc.Zx()&&ig.fc.ou(ig.nc.uE)},lna:function(){return this.Wa?this.Wa.get("dashing"):ig.input.Bc("dash")||ig.input.Bc("dash2")||ig.fc.ci(ig.nc.BH)},A7a:function(){return this.Wa?this.Wa.get("dashHold"):ig.input.state("dash")||ig.input.state("dash2")||ig.fc.ou(ig.nc.BH)},Jq:function(){return this.Wa?this.Wa.get("guarding"):(ig.input.state("dash")||ig.fc.ou(ig.nc.BH))&&!ig.ua.Ph()},$g:function(a,c,h){if(this.Wa){a.x=this.Wa.get("moveDirX");
a.y=this.Wa.get("moveDirY");return 1}if(ig.fc.hca()){a.x=ig.fc.ke(ig.Pc.El,j);a.y=ig.fc.ke(ig.Pc.Fl,j);if(!h)if(Vec2.hj(a,b)>=0){var h=Vec2.length(a),k=h>0.8?1:h*h/0.64;c>k&&(k=c*0.8+0.2*k)}else{Vec2.Sa(a,0,0);k=1}Vec2.assign(b,a);return k}a.x=a.y=0;if(ig.input.state("left"))a.x=-1;else if(ig.input.state("right"))a.x=1;if(ig.input.state("up"))a.y=-1;else if(ig.input.state("down"))a.y=1;return 1},pause:function(){return this.Wa?this.Wa.get("pause"):ig.input.Bc("pause")||ig.fc.ci(ig.nc.Gl)},e:function(){return this.Wa?
this.Wa.get("menu"):ig.input.Bc("menu")||ig.fc.ci(ig.nc.Via)},fgb:function(){return this.Wa?this.Wa.get("quickmenu"):ig.input.state("quick")||ig.fc.ou(ig.nc.fS)},ggb:function(){return this.Wa?this.Wa.get("quickmenu"):ig.input.Bc("quick")||ig.fc.ci(ig.nc.fS)},Efa:function(){return this.Wa?this.Wa.get("skipCutscene"):ig.input.Bc("skip-cutscene")||ig.fc.ci(ig.nc.C7)},Xr:function(){return this.Wa?ig.input.bb==ig.Gb.Jc&&this.Wa.get("menuConfirm"):(ig.input.Bc("confirm")||ig.fc.ci(ig.nc.SY))&&!ig.ua.Ph()},
Bo:function(){return this.Wa?this.Wa.get("menuBack"):ig.input.Bc("pause")||ig.input.Bc("back")||ig.input.Bc("dash")||ig.fc.ci(ig.nc.Hha)},Ap:function(){return this.Wa?this.Wa.get("menuHotkeyHelp"):ig.input.Bc("help")||ig.fc.ci(ig.nc.C7)},ZF:function(){return this.Wa?this.Wa.get("menuHotkeyHelp2"):ig.input.Bc("help2")||ig.fc.ci(ig.nc.Iha)},hK:function(){return this.Wa?this.Wa.get("menuHotkeyHelp3"):ig.input.Bc("help3")||ig.fc.ci(ig.nc.Gl)},rMa:function(){return this.Wa?this.Wa.get("menuHotkeyHelp4"):
ig.input.Bc("skip-cutscene")||ig.fc.ci(ig.nc.j8)},tMa:function(a){if(this.Wa)return this.Wa.get("menuSkillLeft");a=a!=g?a:0.8;return ig.input.state("left")||ig.fc.ke(ig.Pc.ss)<-a},uMa:function(a){if(this.Wa)return this.Wa.get("menuSkillRight");a=a!=g?a:0.8;return ig.input.state("right")||ig.fc.ke(ig.Pc.ss)>a},vMa:function(a){if(this.Wa)return this.Wa.get("menuSkillUp");a=a!=g?a:0.8;return ig.input.state("up")||ig.fc.ke(ig.Pc.ts)<-a},sMa:function(a){if(this.Wa)return this.Wa.get("menuSkillDown");a=
a!=g?a:0.8;return ig.input.state("down")||ig.fc.ke(ig.Pc.ts)>a},Ws:function(){return this.Wa?this.Wa.get("menuCircleLeft"):ig.input.Bc("circle-left")||ig.fc.ci(ig.nc.BH)},Xs:function(){return this.Wa?this.Wa.get("menuCircleRight"):ig.input.Bc("circle-right")||ig.fc.ci(ig.nc.uE)},bgb:function(){return this.Wa?this.Wa.get("questCircleLeft"):ig.input.Bc("circle-left")||ig.fc.ci(ig.nc.$ha)},cgb:function(){return this.Wa?this.Wa.get("questCircleRight"):ig.input.Bc("circle-right")||ig.fc.ci(ig.nc.j8)},
trb:function(a){a=a!=g?a:0.8;return ig.input.state("left")||ig.fc.ke(ig.Pc.El)<-a||ig.fc.ke(ig.Pc.ss)<-a},urb:function(a){a=a!=g?a:0.8;return ig.input.state("right")||ig.fc.ke(ig.Pc.El)>a||ig.fc.ke(ig.Pc.ss)>a},vrb:function(a){a=a!=g?a:0.8;return ig.input.state("up")||ig.fc.ke(ig.Pc.Fl)<-a||ig.fc.ke(ig.Pc.ts)<-a},srb:function(a){a=a!=g?a:0.8;return ig.input.state("down")||ig.fc.ke(ig.Pc.Fl)>a||ig.fc.ke(ig.Pc.ts)>a},aW:function(){return this.Wa?this.Wa.get("menuScrollUp"):ig.input.Bc("scrollUp")},
$V:function(){return this.Wa?this.Wa.get("menuScrollDown"):ig.input.Bc("scrollDown")},Jhb:function(){return this.Wa?this.Wa.get("scrollUp"):ig.input.Bc("scrollUp")||this.Nta=="scrollUp"},Ihb:function(){return this.Wa?this.Wa.get("scrollDown"):ig.input.Bc("scrollDown")||this.Nta=="scrollDown"},wKa:function(a,b){return!b&&this.Wa?this.Wa.get("interactPressed"):ig.input.Bc("aim")||ig.fc.ci(ig.nc.SY)||ig.input.Bc("confirm")||(a?this.Bo():w)},Rbb:function(){return this.Wa?this.Wa.get("interactDown"):ig.input.state("aim")||
ig.fc.ou(ig.nc.SY)},n3:function(){return this.Wa?this.Wa.get("leftPressed"):ig.input.Bc("left")||ig.fc.ci(ig.nc.YR)},p5:function(){return this.Wa?this.Wa.get("rightPressed"):ig.input.Bc("right")||ig.fc.ci(ig.nc.ZR)},stb:function(){return this.Wa?this.Wa.get("upPressed"):ig.input.Bc("up")||ig.fc.ci(ig.nc.UL)},Iob:function(){return this.Wa?this.Wa.get("downPressed"):ig.input.Bc("down")||ig.fc.ci(ig.nc.TL)},frb:function(){return this.Wa?this.Wa.get("leftPressedSticks"):ig.input.Bc("left")||ig.fc.ci(ig.nc.YR)||
ig.fc.ke(ig.Pc.El)<-0.8||ig.fc.ke(ig.Pc.ss)<-0.8},rsb:function(){return this.Wa?this.Wa.get("rightPressedSticks"):ig.input.Bc("right")||ig.fc.ci(ig.nc.ZR)||ig.fc.ke(ig.Pc.El)>0.8||ig.fc.ke(ig.Pc.ss)>0.8},ttb:function(){return this.Wa?this.Wa.get("upPressedSticks"):ig.input.Bc("up")||ig.fc.ou(ig.nc.UL)||ig.fc.ke(ig.Pc.Fl)<-0.8||ig.fc.ke(ig.Pc.ts)<-0.8},Job:function(){return this.Wa?this.Wa.get("downPressedSticks"):ig.input.Bc("down")||ig.fc.ou(ig.nc.TL)||ig.fc.ke(ig.Pc.Fl)>0.8||ig.fc.ke(ig.Pc.ts)>
0.8},sA:function(){return this.Wa?this.Wa.get("menuLeft"):ig.input.state("left")||ig.fc.ou(ig.nc.YR)||ig.fc.ke(ig.Pc.El)<-0.8||ig.fc.ke(ig.Pc.ss)<-0.8},UA:function(){return this.Wa?this.Wa.get("menuRight"):ig.input.state("right")||ig.fc.ou(ig.nc.ZR)||ig.fc.ke(ig.Pc.El)>0.8||ig.fc.ke(ig.Pc.ss)>0.8},ls:function(){return this.Wa?this.Wa.get("menuUp"):ig.input.state("up")||ig.fc.ou(ig.nc.UL)||ig.fc.ke(ig.Pc.Fl)<-0.8||ig.fc.ke(ig.Pc.ts)<-0.8},Fr:function(){return this.Wa?this.Wa.get("menuDown"):ig.input.state("down")||
ig.fc.ou(ig.nc.TL)||ig.fc.ke(ig.Pc.Fl)>0.8||ig.fc.ke(ig.Pc.ts)>0.8},Sna:function(){return this.Wa?this.Wa.get("heatMode")?sc.ja.HEAT:this.Wa.get("coldMode")?sc.ja.COLD:this.Wa.get("shockMode")?sc.ja.SHOCK:this.Wa.get("waveMode")?sc.ja.WAVE:w:ig.input.Bc("heat")||ig.fc.ci(ig.nc.TL)?sc.ja.HEAT:ig.input.Bc("cold")||ig.fc.ci(ig.nc.UL)?sc.ja.COLD:ig.input.Bc("shock")||ig.fc.ci(ig.nc.ZR)?sc.ja.SHOCK:ig.input.Bc("wave")||ig.fc.ci(ig.nc.YR)?sc.ja.WAVE:w}});var c=Vec2.create();sc.V=new sc.rUa;ig.wf(function(){return sc.gqb=
new sc.TVa})});ig.G=j;
ig.I("game.feature.combat.stat-change").J("impact.base.game").H(function(){window.FOR_THE_HACKERS="I see you are browsing through the code of our game! Hope you having a good time around here. I thought I adda little extra for you here, since you took the effort to check out the optimized/obfuscated code of CrossCode.If you happen to have a particular question about a feature, you can write us a mail and will be happy to answer it!Simply check out our homepage over at www.radicalfishgames.com! Also don't tell Lachsen you found this, or he will throw evil looks at me all day! - R.D.";sc.v_a=
{"stat-default":[0,0],"stat-hp":[0,0],"stat-attack":[0,1],"stat-defense":[0,2],"stat-focus":[0,3],"stat-heat":[0,4],"stat-cold":[0,5],"stat-shock":[0,6],"stat-wave":[0,7],"stat-rank-1":[0,8],"stat-rank-2":[0,9],"stat-rank-3":[0,10],"stat-level-1":[0,11],"stat-level-2":[0,12],"stat-level-3":[0,13],"stat-regen":[0,14]};sc.w_a={"stat-default":[4,0],"stat-hp":[4,0],"stat-attack":[4,1],"stat-defense":[4,2],"stat-focus":[4,3],"stat-heat":[4,4],"stat-cold":[4,5],"stat-shock":[4,6],"stat-wave":[4,7],"stat-rank-1":[4,
8],"stat-rank-2":[4,9],"stat-rank-3":[4,10],"stat-level-1":[4,11],"stat-level-2":[4,12],"stat-level-3":[4,13],"stat-regen":[4,14]};sc.D0a=ig.ra.extend({ba:{hp:1,attack:1,defense:1,focus:1,elemFactor:[1,1,1,1]},Ys:{},Sba:"\\i[stat-default]",f:function(a){var b=a.length,c=s;for(this.Sba="";b--;)if((c=sc.Sg[a[b]])&&c.change!=sc.Qf.HEAL){this.Sba=this.Sba+("\\i["+(c.icon||"stat-default")+"]"+("\\i["+c.grade+"]"||""));if(c.change==sc.Qf.STATS)c.type.key!="elemFactor"?this.ba[c.type.key]=this.ba[c.type.key]*
(c.value||1):this.ba.elemFactor[c.type.index]=this.ba.elemFactor[c.type.index]*(c.value||1);else{this.Ys[c.type.key]||(this.Ys[c.type.key]=0);this.Ys[c.type.key]=this.Ys[c.type.key]+c.value}}},multiply:function(a,b){var c=this.ba[b];if(c)if(a instanceof Array)for(var d=c.length;d--;)a[d]=a[d]*c[d];else return a*c;return a},add:function(a,b){return a+(this.Ys[b]||0)},Xpb:function(a){return this.ba[a]}});sc.DTa=sc.D0a.extend({n:0,time:0,rLa:-1,f:function(a,b,c){this.parent(a);this.n=this.time=b||0;
this.rLa=c||-1},update:function(){if(this.n>0){this.n=this.n-ig.g.Da;if(this.n<=0){this.n=0;return j}}return w},reset:function(a){this.n=this.time=a+this.n},alpha:function(){return this.time<=0?0:this.n/this.time}});sc.Qf={};sc.Qf.STATS=0;sc.Qf.MODIFIER=1;sc.Qf.HEAL=2;sc.Rf={};sc.Rf.HP_REGEN={key:"HP_REGEN"};sc.Rf.HP={key:"hp"};sc.Rf.HEAL={key:"heal"};sc.Rf.ATTACK={key:"attack"};sc.Rf.DEFENSE={key:"defense"};sc.Rf.FOCUS={key:"focus"};sc.Rf.HEAT={key:"elemFactor",index:0};sc.Rf.COLD={key:"elemFactor",
index:1};sc.Rf.SHOCK={key:"elemFactor",index:2};sc.Rf.WAVE={key:"elemFactor",index:3};sc.uM={};sc.uM.NORMAL=1;sc.uM.SLOW=2;sc.uM.FAST=3;sc.Sg={};sc.Sg["HP-1"]={change:sc.Qf.STATS,type:sc.Rf.HP,value:1.1,icon:"stat-hp",grade:"stat-rank-1"};sc.Sg["HP-2"]={change:sc.Qf.STATS,type:sc.Rf.HP,value:1.15,icon:"stat-hp",grade:"stat-rank-2"};sc.Sg["HP-3"]={change:sc.Qf.STATS,type:sc.Rf.HP,value:1.2,icon:"stat-hp",grade:"stat-rank-3"};sc.Sg["ATTACK-1"]={change:sc.Qf.STATS,type:sc.Rf.ATTACK,value:1.1,icon:"stat-attack",
grade:"stat-rank-1"};sc.Sg["ATTACK-2"]={change:sc.Qf.STATS,type:sc.Rf.ATTACK,value:1.15,icon:"stat-attack",grade:"stat-rank-2"};sc.Sg["ATTACK-3"]={change:sc.Qf.STATS,type:sc.Rf.ATTACK,value:1.2,icon:"stat-attack",grade:"stat-rank-3"};sc.Sg["DEFENSE-1"]={change:sc.Qf.STATS,type:sc.Rf.DEFENSE,value:1.1,icon:"stat-defense",grade:"stat-rank-1"};sc.Sg["DEFENSE-2"]={change:sc.Qf.STATS,type:sc.Rf.DEFENSE,value:1.15,icon:"stat-defense",grade:"stat-rank-2"};sc.Sg["DEFENSE-3"]={change:sc.Qf.STATS,type:sc.Rf.DEFENSE,
value:1.2,icon:"stat-defense",grade:"stat-rank-3"};sc.Sg["FOCUS-1"]={change:sc.Qf.STATS,type:sc.Rf.FOCUS,value:1.1,icon:"stat-focus",grade:"stat-rank-1"};sc.Sg["FOCUS-2"]={change:sc.Qf.STATS,type:sc.Rf.FOCUS,value:1.15,icon:"stat-focus",grade:"stat-rank-2"};sc.Sg["FOCUS-3"]={change:sc.Qf.STATS,type:sc.Rf.FOCUS,value:1.2,icon:"stat-focus",grade:"stat-rank-3"};sc.Sg["REGEN-1"]={change:sc.Qf.MODIFIER,type:sc.Rf.HP_REGEN,value:0.1,icon:"stat-regen",grade:"stat-rank-1"};sc.Sg["REGEN-2"]={change:sc.Qf.MODIFIER,
type:sc.Rf.HP_REGEN,value:0.2,icon:"stat-regen",grade:"stat-rank-2"};sc.Sg["REGEN-3"]={change:sc.Qf.MODIFIER,type:sc.Rf.HP_REGEN,value:0.3,icon:"stat-regen",grade:"stat-rank-3"};sc.Sg["HEAT-RES-1"]={change:sc.Qf.STATS,type:sc.Rf.HEAT,value:1.1,icon:"stat-heat",grade:"stat-rank-1"};sc.Sg["HEAT-RES-2"]={change:sc.Qf.STATS,type:sc.Rf.HEAT,value:1.25,icon:"stat-heat",grade:"stat-rank-2"};sc.Sg["HEAT-RES-3"]={change:sc.Qf.STATS,type:sc.Rf.HEAT,value:1.5,icon:"stat-heat",grade:"stat-rank-3"};sc.Sg["COLD-RES-1"]=
{change:sc.Qf.STATS,type:sc.Rf.COLD,value:1.1,icon:"stat-cold",grade:"stat-rank-1"};sc.Sg["COLD-RES-2"]={change:sc.Qf.STATS,type:sc.Rf.COLD,value:1.25,icon:"stat-cold",grade:"stat-rank-2"};sc.Sg["COLD-RES-3"]={change:sc.Qf.STATS,type:sc.Rf.COLD,value:1.5,icon:"stat-cold",grade:"stat-rank-3"};sc.Sg["SHOCK-RES-1"]={change:sc.Qf.STATS,type:sc.Rf.SHOCK,value:1.1,icon:"stat-shock",grade:"stat-rank-1"};sc.Sg["SHOCK-RES-2"]={change:sc.Qf.STATS,type:sc.Rf.SHOCK,value:1.25,icon:"stat-shock",grade:"stat-rank-2"};
sc.Sg["SHOCK-RES-3"]={change:sc.Qf.STATS,type:sc.Rf.SHOCK,value:1.5,icon:"stat-shock",grade:"stat-rank-3"};sc.Sg["WAVE-RES-1"]={change:sc.Qf.STATS,type:sc.Rf.WAVE,value:1.1,icon:"stat-wave",grade:"stat-rank-1"};sc.Sg["WAVE-RES-2"]={change:sc.Qf.STATS,type:sc.Rf.WAVE,value:1.25,icon:"stat-wave",grade:"stat-rank-2"};sc.Sg["WAVE-RES-3"]={change:sc.Qf.STATS,type:sc.Rf.WAVE,value:1.5,icon:"stat-wave",grade:"stat-rank-3"};sc.Sg["HEAL-1"]={change:sc.Qf.HEAL,type:sc.Rf.HEAL,value:1.15,icon:"stat-default"};
sc.Sg["HEAL-2"]={change:sc.Qf.HEAL,type:sc.Rf.HEAL,value:1.25,icon:"stat-default"};sc.Sg["HEAL-3"]={change:sc.Qf.HEAL,type:sc.Rf.HEAL,value:1.5,icon:"stat-default"};sc.Sg["HEAL-4"]={change:sc.Qf.HEAL,type:sc.Rf.HEAL,value:1.7,icon:"stat-default"};sc.Sg["HEAL-5"]={change:sc.Qf.HEAL,type:sc.Rf.HEAL,value:1.8,icon:"stat-default"}});ig.G=j;
ig.I("game.feature.font.font-system").J("impact.base.font","impact.base.game","game.feature.combat.stat-change").H(function(){sc.Vo={hm:1,uH:2,tZ:3,qr:4,nM:5,omb:6,pmb:7};var a={o:[0,0],x:[0,1],"<":[0,2],">":[0,3],tech:[0,4],general:[0,7],"interface":[0,8],video:[0,9],audio:[0,10],controls:[0,11],lea:[0,12],lea2:[0,15],li:[0,13],"item-news":[0,14],lea3:[0,16],quest:[0,17],"quest-solve":[0,18],"quest-fav":[0,19],"quest-all":[0,20],exp:[0,21],credit:[0,22],landmark:[0,23],lore:[0,24],loreNew:[0,25],
"lore-story":[0,26],"lore-people":[0,27],"lore-cross-lore":[0,28],"lore-earth-lore":[0,29],"lore-memories":[0,30],"lore-others":[0,31],"enemy-mecha":[0,32],"enemy-avatars":[0,33],"enemy-animals":[0,34],"enemy-abstract":[0,35],"enemy-mecha-boss":[0,36],"enemy-avatars-boss":[0,37],"enemy-animals-boss":[0,38],"enemy-abstract-boss":[0,39],"enemy-boss":[0,40],"social-close":[0,41],"social-contacts":[0,42],"social-3":[0,43],"stats-general":[0,44],"stats-combat":[0,45],"stats-items":[0,46],"stats-exploration":[0,
47],"stats-misc":[0,48],"stats-quests":[0,49],"arrow-percent":[0,50],"element-neutral":[0,51],"element-heat":[0,52],"element-cold":[0,53],"element-shock":[0,54],"element-wave":[0,55],slash:[0,56],"slash-highlight":[0,57],"stats-log":[0,58],"logs-TROPHY":[0,59],"logs-LANDMARK":[0,60],"logs-LORE":[0,64],"logs-TRADER":[0,62],"logs-QUEST":[0,61],"area-rookie-harbor":[0,67],"area-autumn-area":[0,68],"area-autumn-fall":[0,69],"area-bergen":[0,71],"area-bergen-trails":[0,70],"area-heat-area":[0,72],"area-heat-village":[0,
73],"area-rhombus-square":[0,74]},b={"arrow-n":[0,0],"arrow-e":[0,1],"arrow-s":[0,2],"arrow-w":[0,3],"arrow-ne":[0,4],"arrow-se":[0,5],"arrow-sw":[0,6],"arrow-nw":[0,7],"quest-no":[0,8],"quest-ok":[0,9],"quest-mini-no":[0,10],"quest-mini-ok":[0,11],"break":[0,12],"rank-up":[0,13],lore:[0,14],loreNew:[0,15],insetArrow:[0,16]},c={};c[ig.Ua.qxa]=4;c[ig.Ua.hBa]=93;c[ig.Ua.nya]=10;c[ig.Ua.FAa]=16;c[ig.Ua.BXa]=40;c[ig.Ua.kya]=41;c[ig.Ua.qS]=42;c[ig.Ua.KTa]=43;c[ig.Ua.rAa]=44;c[ig.Ua.TYa]=45;c[ig.Ua.SYa]=
46;c[ig.Ua.QUa]=47;c[ig.Ua.cWa]=48;c[ig.Ua.jxa]=49;c[ig.Ua.WYa]=50;c[ig.Ua.AUa]=51;c[ig.Ua.PTa]=51;c[ig.Ua.BUa]=65;c[ig.Ua.mWa]=66;c[ig.Ua.Rxa]=81;c[ig.Ua.ixa]=82;c[ig.Ua.z_a]=83;c[ig.Ua.DUa]=84;c[ig.Ua.DXa]=85;c[ig.Ua.zBa]=77;c[ig.Ua.lAa]=78;c[ig.Ua.bza]=79;c[ig.Ua.$xa]=80;c[ig.Ua.GBa]=55;c[ig.Ua.HBa]=56;c[ig.Ua.IBa]=57;c[ig.Ua.JBa]=58;c[ig.Ua.KBa]=59;c[ig.Ua.LBa]=60;c[ig.Ua.h2a]=61;c[ig.Ua.MBa]=62;c[ig.Ua.NBa]=63;c[ig.Ua.i2a]=64;c[ig.Ua.mYa]=67;c[ig.Ua.nYa]=68;c[ig.Ua.oYa]=69;c[ig.Ua.pYa]=70;c[ig.Ua.qYa]=
71;c[ig.Ua.rYa]=72;c[ig.Ua.sYa]=73;c[ig.Ua.tYa]=74;c[ig.Ua.uYa]=75;c[ig.Ua.vYa]=76;c[ig.Ua.xTa]=87;c[ig.Ua.wTa]=88;c[ig.Ua.EQUAL]=89;c[ig.Ua.yTa]=86;c[ig.Ua.n_a]=90;c[ig.Ua.j_a]=52;c[ig.Ua.QVa]=91;c[ig.Ua.o_a]=92;c[ig.Ua.fxa]=0;c[ig.Ua.pxa]=13;c[ig.Ua.Exa]=17;c[ig.Ua.Vxa]=2;c[ig.Ua.E]=12;c[ig.Ua.zVa]=18;c[ig.Ua.Eya]=19;c[ig.Ua.Lya]=14;c[ig.Ua.iWa]=20;c[ig.Ua.PWa]=21;c[ig.Ua.VWa]=22;c[ig.Ua.Yha]=23;c[ig.Ua.T7]=24;c[ig.Ua.vza]=25;c[ig.Ua.DYa]=26;c[ig.Ua.RYa]=27;c[ig.Ua.eAa]=11;c[ig.Ua.jAa]=28;c[ig.Ua.k8]=
1;c[ig.Ua.gBa]=29;c[ig.Ua.M1a]=30;c[ig.Ua.N1a]=31;c[ig.Ua.CBa]=3;c[ig.Ua.a2a]=32;c[ig.Ua.f2a]=33;c[ig.Ua.g2a]=34;var d={},e;for(e in c)d["keyCode-"+e]=[1,c[e]];var h={"key-left":[1,0],"key-down":[1,1],"key-right":[1,2],"key-up":[1,3],"key-throw":[1,5],"key-dash":[1,6],mousewheel:[1,7],"key-menu":[1,9],"key-pause":[1,10]},k={"left-stick":[2,0],"right-stick":[2,1],"gamepad-left":[2,8],"gamepad-down":[2,9],"gamepad-right":[2,10],"gamepad-up":[2,11],"gamepad-dash":[2,2],"gamepad-throw":[2,3],"gamepad-pause":[2,
7],"gamepad-l1":[2,2],"gamepad-r1":[2,3],"gamepad-l2":[2,4],"gamepad-r2":[2,5],"gamepad-a":[2,12],"gamepad-b":[2,13],"gamepad-x":[2,14],"gamepad-y":[2,15],"left-stick-left":[2,16],"left-stick-right":[2,17],"left-stick-press":[2,18],"right-stick-press":[2,19]},l={left:[1,0],down:[1,1],right:[1,2],up:[1,3],aim:[1,5],"throw":[1,5],dash:[1,6],guard:[1,6],pause:[1,7],back:[1,4],special:[1,16],select:[0,0],help:[1,14],help2:[1,13],help3:[1,17],help4:[1,19],menu:[1,9],quick:[1,44],heat:[1,58],cold:[1,56],
"arrow-left":[0,5],"arrow-right":[0,6],"arrow-left-off":[0,65],"arrow-right-off":[0,66],"circle-left":[1,11],"circle-right":[1,12],"page-left":[1,0],"page-right":[1,2],"skip-cutscene":[1,19]},m={left:[2,8],down:[2,9],right:[2,10],up:[2,11],aim:[2,1],"throw":[2,3],dash:[2,2],guard:[2,2],pause:[2,7],back:[2,13],special:[2,5],select:[0,0],help:[2,15],help2:[2,14],help3:[2,7],help4:[2,19],menu:[2,6],quick:[2,4],heat:[2,9],cold:[2,11],"arrow-left":[2,2],"arrow-right":[2,3],"arrow-left-off":[2,20],"arrow-right-off":[2,
21],"circle-left":[2,2],"circle-right":[2,3],"page-left":[2,8],"page-right":[2,10],"skip-cutscene":[2,15]};sc.oWa={"item-default":[3,0],"item-helm":[3,1],"item-sword":[3,2],"item-belt":[3,3],"item-shoe":[3,4],"item-items":[3,5],"item-key":[3,6],"item-trade":[3,7]};sc.mmb={"feat-default":[3,0]};sc.lE={};for(e=0;e<4;e++){var n=(e+1)*8,o="";switch(e){case 0:o="normal";break;case 1:o="rare";break;case 2:o="legend";break;case 3:o="unique"}sc.lE["item-default-"+o]=[3,n++];sc.lE["item-helm-"+o]=[3,n++];
sc.lE["item-sword-"+o]=[3,n++];sc.lE["item-belt-"+o]=[3,n++];sc.lE["item-shoe-"+o]=[3,n++];sc.lE["item-items-"+o]=[3,n++];sc.lE["item-key-"+o]=[3,n++];sc.lE["item-trade-"+o]=[3,n++]}sc.NVa=ig.sf.extend({CU:w,Sv:{global:new ig.Gg("media/font/icons.png",16,ig.Wn.Pw),Fab:new ig.Gg("media/font/icons-small.png",14,ig.Wn.Pw),Icb:new ig.Gg("media/font/icons-keyboard.png",16,ig.Wn.Pw),fc:new ig.Gg("media/font/icons-gamepad.png",16,ig.Wn.Pw),rc:new ig.Gg("media/font/icons-items.png",16,ig.Wn.Pw),ta:new ig.Gg("media/font/icons-buff.png",
8,ig.Wn.Pw),ekb:new ig.Gg("media/font/icons-buff-large.png",16,ig.Wn.Pw)},Cr:{red:new ig.$("media/font/colors/hall-fetica-bold-red.png",16),green:new ig.$("media/font/colors/hall-fetica-bold-green.png",16),Xfb:new ig.$("media/font/colors/hall-fetica-bold-purple.png",16),Kab:new ig.$("media/font/colors/hall-fetica-bold-grey.png",16),wfb:new ig.$("media/font/colors/hall-fetica-small-orange.png",13),xfb:new ig.$("media/font/colors/tiny-orange.png",7),Yfb:new ig.$("media/font/colors/hall-fetica-small-purple.png",
13),Lab:new ig.$("media/font/colors/hall-fetica-small-grey.png",13),Mab:new ig.$("media/font/colors/tiny-grey.png",7),mgb:new ig.$("media/font/colors/hall-fetica-small-red.png",13),ngb:new ig.$("media/font/colors/tiny-red.png",7)},font:new ig.Wn("media/font/hall-fetica-bold.png",16),Ve:new ig.Wn("media/font/hall-fetica-small.png",13),Lb:new ig.Wn("media/font/tiny.png",7),Zsb:1,f:function(){this.parent("FontSystem");this.font.YP(this.Sv.global);this.font.YP(this.Sv.Icb);this.font.YP(this.Sv.fc);this.font.YP(this.Sv.rc);
this.font.YP(this.Sv.ekb);this.Lb.YP(this.Sv.ta);this.Ve.YP(this.Sv.Fab);this.font.yy(a);this.font.yy(h);this.font.yy(k);this.font.yy(l);this.font.yy(d);this.font.yy(sc.oWa);this.font.yy(sc.lE);this.font.yy(sc.w_a);this.Ve.yy(b);this.Lb.yy(sc.v_a);this.font.NA(this.Cr.red,sc.Vo.hm);this.font.NA(this.Cr.green,sc.Vo.uH);this.font.NA(this.Cr.Xfb,sc.Vo.tZ);this.font.NA(this.Cr.Kab,sc.Vo.qr);this.Ve.NA(this.Cr.Lab,sc.Vo.qr);this.Ve.NA(this.Cr.mgb,sc.Vo.hm);this.Ve.NA(this.Cr.Yfb,sc.Vo.tZ);this.Ve.NA(this.Cr.wfb,
sc.Vo.nM);this.Lb.NA(this.Cr.Mab,sc.Vo.qr);this.Lb.NA(this.Cr.ngb,sc.Vo.hm);this.Lb.NA(this.Cr.xfb,sc.Vo.tZ);this.CU=w},Ama:function(a,b){var d=h["key-"+a];d&&(d[1]=c[b]);(d=l[a])&&(d[1]=c[b]);this.font.e6a()},Zab:function(b){return a[b]},MP:function(){var a=ig.input.bb==ig.Gb.Jc;if(this.CU!=a)(this.CU=a)?this.font.yy(m):this.font.yy(l)}});sc.Ka=new sc.NVa;ig.wf(function(){return sc.Ka})});ig.G=j;
ig.I("game.feature.gui.base.text").J("impact.base.font","impact.feature.gui.gui","game.feature.font.font-system").H(function(){sc.ea=ig.X.extend({font:s,text:"",df:s,Az:s,Y9:0,KA:w,Ck:w,f:function(a,b){this.parent();var b=b||{},c=b.font;this.font=c?c:sc.Ka.font;this.text=a;this.df=new ig.rd(this.font,a,b);this.a.size.x=this.df.size.x;this.a.size.y=this.df.size.y;this.a.cb.x=Math.floor(this.a.size.x/2);this.a.cb.y=Math.floor(this.a.size.y/2)},Pda:function(a){a?this.df.fta():this.df.wN()},vPa:function(a){this.Az=
a;this.df.ol()&&this.Az.play()},VPa:function(a){this.df.maxWidth=a||0;this.fa(this.text)},Tib:function(a){this.df.align=a},Uib:function(a){this.df.speed=a},BQ:function(a,b){if(a&&a!=this.font){this.font=a;this.df.font=a;if(b!=g)this.df.VF=b||0;this.fa(this.text)}},fa:function(a){this.text=a;this.df.fa(a);this.a.Il&&this.df.fta();this.a.size.x=this.df.size.x;this.a.size.y=this.df.size.y;this.a.cb.x=Math.floor(this.a.size.x/2);this.a.cb.y=Math.floor(this.a.size.y/2);this.Ck=w},clear:function(){this.df.wN()},
finish:function(){this.df.finish()},update:function(){if(!this.Ck){var a=Math.floor(this.df.vi/3);this.df.update();if(Math.floor(this.df.vi/3)!=a)this.KA=j;if(!sc.q.c3()&&this.Az&&this.KA&&this.Y9<=0){this.Az.play();this.KA=w;this.Y9=0.05}this.Y9=this.Y9-ig.g.Da}},stop:function(){this.Ck=j},reset:function(){this.df.reset()},VK:function(){this.Ck=w},$pb:function(){return this.df.lpa()},Isb:function(a){this.df.iL(a)},va:function(a){a.ax().fa(this.df,0,0)},dn:function(){this.a.Il&&this.df.fta()},th:function(){this.df.wN()}})});
ig.G=j;
ig.I("game.feature.interact.button-group").J("impact.feature.interact.button-interact").H(function(){sc.W7=ig.Wf.extend({Kb:{focus:new ig.da("media/sound/menu/menu-hover.ogg",0.9)},P8:0,f:function(){this.parent()},Uc:function(a){this.parent(a,0,this.P8);a.f9a=this.P8;this.P8++},clear:function(){this.P8=0;this.parent()},Uk:s,sF:function(a){sc.V.Bo()&&this.eca();this.Uk&&this.Uk(a)},Kn:R(w)});sc.Wf=ig.Wf.extend({Kb:{focus:new ig.da("media/sound/menu/menu-hover.ogg",0.9)},rj:s,f:function(a,b,c){this.parent(b,
c);if(a)this.Kb.focus=s;this.rj=new ig.vZ},R5:function(){this.Mj(this.Ea.x,this.Ea.y)},dX:function(a,b,c){this.yf(this.Ea.x,this.Ea.y,a,b,c)},Kn:function(){return sc.V.Xr()||sc.V.UA()||sc.V.sA()||sc.V.Fr()||sc.V.ls()},Uk:s,sF:function(a){sc.V.Bo()&&this.eca();var b=this.Ox();if(!a){sc.V.Xr()&&this.rqa();switch(b){case "right":this.Ufa();break;case "left":this.Tfa();break;case "up":this.yRa();break;case "down":this.xRa()}}this.Uk&&this.Uk(a)},Ox:function(){sc.V.UA()?this.rj.fs("right"):sc.V.sA()?this.rj.fs("left"):
sc.V.Fr()?this.rj.fs("down"):sc.V.ls()&&this.rj.fs("up");return this.rj.j2()},vf:function(){this.parent();this.Ox()}});sc.e_a=sc.Wf.extend({rowIndex:[],Sf:-1,Swa:w,Z8:0,o3:s,f:function(){this.parent()},Uc:function(a,b,c){if(!this.elements[c]){this.elements[c]=[];this.rowIndex[c]=0}if(this.Sf==-1){this.Sf=c;this.Ea.x=c}this.elements[c][b]=a;a.ka=this;a.Q=s},Vnb:function(a){if(!this.elements[a]){this.elements[a]=[];this.rowIndex[a]=0}},tib:function(a){if(a)this.o3=a},upb:function(){return this.rowIndex[this.Sf]},
dX:function(a,b,c){this.yf(this.Sf,this.rowIndex[this.Sf],a,b,c)},wsb:function(a,b,c,d,e,h){if(this.elements[a].length==0){for(var k=a;this.elements[k].length==0;)k=(k+1)%this.elements.length;this.Sf=k=k%this.elements.length}else this.Sf=a;this.rowIndex[a]=b;c&&this.yf(this.Sf,this.rowIndex[this.Sf],d,e,h)},YKa:function(a,b){return this.elements[a]&&this.elements[a][b]!=g},clear:function(){this.parent();this.rowIndex.length=0;this.Sf=-1},Ufa:function(){if(!(this.Lq()||this.Sf==-1)){var a=this.rowIndex[this.Sf]+
1;if(a>=this.elements[this.Sf].length)a=this.elements[this.Sf].length-1;else for(var b=a;b<this.elements[this.Sf].length;b++)if(this.elements[this.Sf][b]!==g){a=b;break}this.Z8=a=a%this.elements[this.Sf].length;this.rowIndex[this.Sf]=a;this.o3&&this.o3(j,this.Sf)&&this.yf(this.Sf,this.rowIndex[this.Sf],w,w,j)}},Tfa:function(){if(!(this.Lq()||this.Sf==-1)){var a=this.rowIndex[this.Sf]-1;if(a<0)a=0;else for(var b=a;b>=0;b--)if(this.elements[this.Sf][b]!==g){a=b;break}this.Z8=a=a%this.elements[this.Sf].length;
this.rowIndex[this.Sf]=a;this.o3&&this.o3(w,this.Sf)&&this.yf(this.Sf,this.rowIndex[this.Sf],w,w,j)}},xRa:function(){if(!(this.Lq()||this.Sf==-1)){var a=this.Ea.x+1;for(a>=this.elements.length&&(a=0);!this.elements[a]||this.elements[a].length==0;){a++;a>=this.elements.length&&(a=0)}this.Sf=a=a%this.elements.length;this.yf(this.Sf,this.Swa?this.Z8:this.rowIndex[this.Sf],w,w,j)}},yRa:function(){if(!(this.Lq()||this.Sf==-1)){var a=this.Ea.x-1;for(a<0&&(a=this.elements.length-1);!this.elements[a]||this.elements[a].length==
0;){a--;a<0&&(a=this.elements.length-1)}this.Sf=a=a%this.elements.length;this.yf(this.Sf,this.Swa?this.Z8:this.rowIndex[this.Sf],w,w,j)}},KU:function(){return this.elements[this.Sf]&&this.elements[this.Sf][this.rowIndex[this.Sf]]},V9a:function(){return this.rowIndex[this.Sf]},qIa:M("Sf")})});ig.G=j;
ig.I("game.feature.gui.base.button").J("impact.feature.gui.base.box","game.feature.gui.base.text","impact.feature.interact.gui.focus-gui","game.feature.interact.button-group").H(function(){sc.ps=144;sc.NR=128;sc.OR=66;sc.Ic={};sc.qd={submit:new ig.da("media/sound/menu/menu-submit.ogg"),back:new ig.da("media/sound/menu/menu-cancel.ogg"),Wb:new ig.da("media/sound/menu/equip-sound-07.ogg"),xx:new ig.da("media/sound/menu/menu-blocked.ogg",0.9),qOa:new ig.da("media/sound/menu/quick-menu-appear.ogg",0.8),
rOa:new ig.da("media/sound/menu/quick-menu-hide.ogg",0.8),yQa:new ig.da("media/sound/menu/shop/shop-menu-up.ogg",1),xQa:new ig.da("media/sound/menu/shop/shop-menu-down.ogg",1),djb:new ig.da("media/sound/menu/shop/shop-kashing.ogg",0.8)};sc.ITa=ig.te.extend({f:function(a,c){this.parent(a,c.height,w,c.eb)}});sc.JTa=ig.X.extend({I1:s,r:s,pattern:s,Jd:s,f:function(a,c){this.parent();this.a.size.x=a;this.a.size.y=c.height;this.Jd=c.Jd;this.pattern=c.Jd.pattern;this.r=c.Jd.r},va:function(a){if(this.I1>
0){var c=this.Jd,d=this.Jd.offsetY,e=c.NV,h=c.jX;if(this.I1>=1)a.Rj(this.pattern,e,0,0,0,this.a.size.x-h-e,this.a.size.y);else{var k=Math.floor(this.I1*this.a.size.x/2),e=Math.min(e,k),h=Math.min(h,k);k>e&&a.Rj(this.pattern,e,0,0,0,k-e,this.a.size.y);k>h&&a.Rj(this.pattern,this.a.size.x-k,0,0,0,k-h,this.a.size.y)}a.ia(this.r,0,0,c.LD,d,e,this.a.size.y);a.ia(this.r,this.a.size.x-h,0,c.mU-h,d,h,this.a.size.y)}}});sc.ec=ig.Vn.extend({text:s,uq:s,vo:s,r:new ig.$("media/gui/buttons.png"),Hv:0,pq:0,oN:s,
dc:s,gl:s,data:s,LMa:w,N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:0,Ma:0},time:0.3,p:KEY_SPLINES.EASE_IN}},re:s,f:function(a,c,d,e,h,k,l){this.parent(d,k);this.oN=e||sc.Ic.Wxa;this.v(0,24);this.rb(72,14);this.a.size.y=this.oN.height;this.text=a;this.dc=h||sc.qd.submit;this.gl=l||sc.qd.xx;this.re=new sc.ea(this.IU(),{speed:ig.rd.Nd.We});this.re.F(this.oN.xr||ig.k.za,ig.k.gb);this.re.l(this.oN.J5a||0,0);this.a.size.x=Math.ceil(c/2)*2||Math.ceil(this.re.a.size.x/
2+12)*2;this.uq=new sc.ITa(this.a.size.x,this.oN);this.m(this.uq);if(this.oN.Jd){this.vo=new sc.JTa(this.a.size.x,this.oN);this.m(this.vo)}this.m(this.re)},Vv:function(){this.dc&&this.dc.play();this.Qb()},setData:function(a){if(a!=g)this.data=a},FG:function(a){this.a.size.x=a;this.a.cb.x=a/2;this.uq.a.size.x=a;if(this.vo)this.vo.a.size.x=a},Aua:function(a){this.a.size.y=a;this.a.cb.y=a/2;this.uq.a.size.y=a;if(this.vo)this.vo.a.size.y=a},fa:function(a,c){this.text=a;this.re.fa(a);if(!c){var d=Math.ceil(this.re.a.size.x/
2+12)*2;this.a.size.x=d;this.a.cb.x=d/2;this.uq.a.size.x=d;if(this.vo)this.vo.a.size.x=d}},TOa:function(){this.re.fa(this.IU());var a=Math.ceil(this.re.a.size.x/2+12)*2;this.a.size.x=a;this.a.cb.x=a/2;this.uq.a.size.x=a;if(this.vo)this.vo.a.size.x=a},M6:function(){this.focus=w;if(this.vo){this.vo.a.Vc=1;this.vo.I1=0}this.Hv=this.pq=0},update:function(){this.parent();if(this.Ij&&this.Bc&&!this.LMa){this.Hv=this.Hv+ig.g.Da;if(this.Hv>0.1)this.Hv=0.1;this.pq=0}else if(this.focus&&this.Hv<0.1){this.Hv=
this.Hv+ig.g.Da;this.pq=0}else if(!this.focus&&this.Hv>0){this.Hv=this.Hv-ig.g.Da;this.pq=0}else this.pq=(this.pq+ig.g.Da)%1;this.Hv.Vb(0,0.1);this.uq.Nk=this.Ij&&this.Bc?"pressed":this.focus?"focus":"default";if(this.vo){this.vo.I1=this.Hv/0.1;var a=this.pq/1,a=KEY_SPLINES.EASE_IN_OUT.get(1-(a>0.5?1-(a-0.5)*2:a*2)),a=0.8*a+0.2;this.Ga||(a=a*0.5);this.vo.a.Vc=a}},IU:function(){return this.Ga?"\\c[0]"+this.text:"\\c["+sc.Vo.qr+"]"+this.text},setActive:function(a){this.parent(a);this.re.fa(this.IU())}});
var a={"default":{x:160,y:0},pressed:{x:180,y:0}};sc.VTa=sc.ec.extend({G2:s,f:function(b,c,d){this.parent("",c,d,sc.Ic.GYa,s,w);c=(b=b==g?w:b)?"pressed":"default";this.G2=new ig.Dc(this.r,a[c].x,a[c].y,20,18);this.G2.F(ig.k.za,ig.k.gb);this.SC(this.G2,this.a.children.length-2);this.Ce(b)},Ce:function(b){this.parent(b);b=b?"pressed":"default";this.G2.offsetX=a[b].x;this.G2.offsetY=a[b].y},Vv:function(){this.dc&&this.dc.play();this.Ce(!this.Bc);this.Qb()}});sc.Ic.Wxa={height:24,eb:new ig.$b("media/gui/buttons.png",
{width:16,height:0,left:8,top:24,right:8,bottom:0,Fb:{"default":{x:0,y:0},focus:{x:32,y:0},pressed:{x:32,y:0}}}),Jd:{LD:64,mU:96,NV:9,jX:8,offsetY:0,r:new ig.$("media/gui/buttons.png"),pattern:new ig.ue("media/gui/buttons.png",73,0,15,24,ig.ue.Pf.Xn)}};sc.Ic.Kc={height:21,eb:new ig.$b("media/gui/buttons.png",{width:16,height:0,left:8,top:21,right:8,bottom:0,Fb:{"default":{x:0,y:24},focus:{x:32,y:24},pressed:{x:32,y:24}}}),Jd:{LD:64,mU:96,NV:9,jX:8,offsetY:24,r:new ig.$("media/gui/buttons.png"),pattern:new ig.ue("media/gui/buttons.png",
73,24,15,21,ig.ue.Pf.Xn)}};sc.Ic.rH={height:39,eb:new ig.$b("media/gui/buttons.png",{width:13,height:6,left:9,top:9,right:9,bottom:9,Fb:{"default":{x:0,y:65},focus:{x:32,y:65},pressed:{x:32,y:65}}}),Jd:s};sc.Ic.kE={height:20,eb:new ig.$b("media/gui/buttons.png",{width:2,height:0,left:8,top:20,right:8,bottom:0,Fb:{"default":{x:0,y:45},focus:{x:44,y:45},pressed:{x:44,y:45}}}),Jd:s,xr:ig.k.fb,J5a:5};sc.Ic.GYa={height:21,eb:new ig.$b("media/gui/buttons.png",{width:16,height:0,left:8,top:21,right:8,bottom:0,
Fb:{"default":{x:96,y:0},focus:{x:96,y:0},pressed:{x:96,y:0}}}),Jd:{LD:128,mU:160,NV:9,jX:8,offsetY:0,r:new ig.$("media/gui/buttons.png"),pattern:new ig.ue("media/gui/buttons.png",137,0,15,21,ig.ue.Pf.Xn)}};sc.Ic.bM={height:21,eb:new ig.$b("media/gui/buttons.png",{width:8,height:0,left:4,top:21,right:4,bottom:0,Fb:{"default":{x:184,y:24},focus:{x:184,y:24},pressed:{x:168,y:24}}}),Jd:{LD:200,mU:216,NV:4,jX:4,offsetY:24,r:new ig.$("media/gui/buttons.png"),pattern:new ig.ue("media/gui/buttons.png",204,
24,8,21,ig.ue.Pf.Xn)}};sc.Ic.Gya={height:21,eb:new ig.$b("media/gui/buttons.png",{width:8,height:0,left:8,top:21,right:8,bottom:0,Fb:{"default":{x:120,y:24},focus:{x:120,y:24},pressed:{x:96,y:24}}}),Jd:{LD:144,mU:168,NV:9,jX:4,offsetY:24,r:new ig.$("media/gui/buttons.png"),pattern:new ig.ue("media/gui/buttons.png",153,24,11,21,ig.ue.Pf.Xn)}};sc.Ic.Hya={height:21,eb:new ig.$b("media/gui/buttons.png",{width:8,height:0,left:8,top:21,right:8,bottom:0,Fb:{"default":{x:120,y:48},focus:{x:120,y:48},pressed:{x:96,
y:48}}}),Jd:{LD:144,mU:168,NV:4,jX:9,offsetY:48,r:new ig.$("media/gui/buttons.png"),pattern:new ig.ue("media/gui/buttons.png",147,48,13,21,ig.ue.Pf.Xn)}}});ig.G=j;
ig.I("game.feature.gui.base.boxes").J("impact.feature.gui.base.box","impact.feature.gui.gui").H(function(){sc.b_a=ig.te.extend({eb:new ig.$b("media/gui/message.png",{width:16,height:16,left:8,top:16,right:8,bottom:8,Fb:{"default":{x:0,y:0}}}),IH:8,JH:4,f:function(a){this.parent(0,0,a,this.eb);this.a.cb.x=this.a.size.x/2;this.a.cb.y=this.a.size.y/2},uh:function(a){this.v(a.a.size.x+this.IH*2,a.a.size.y+this.JH*2);this.m(a);a.l(this.IH,this.JH)}});sc.X1a=ig.te.extend({N:{DEFAULT:{state:{alpha:1},time:0.15,
p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:1.5,Ma:1.5},time:0.15,p:KEY_SPLINES.EASE_IN}},eb:new ig.$b("media/gui/message.png",{width:14,height:14,left:1,top:1,right:1,bottom:1,Fb:{"default":{x:16,y:96}}}),f:function(a,b){this.parent(a,b,w,this.eb);this.eb.Jf[0]=this.eb.Jf[2]=1;this.eb.Jf[4]=1;this.eb.Jf[6]=this.eb.Jf[8]=1;this.a.cb.x=this.a.size.x/2;this.a.cb.y=this.a.size.y/2}});var a=[{x:8,y:4},{x:10,y:6}];sc.os=ig.te.extend({N:{DEFAULT:{state:{alpha:0.8},time:0,p:KEY_SPLINES.LINEAR}},r:new ig.$("media/gui/message.png"),
eb:new ig.$b("media/gui/message.png",{width:16,height:16,left:8,top:16,right:8,bottom:8,Fb:{"default":{x:0,y:0}}}),IH:8,JH:4,Gmb:8,pointerType:0,f:function(b,c,h){var k=a[sc.options.get("message-padding")];this.IH=k.x;this.JH=k.y;this.parent(b+this.IH*2,c+this.JH*2,w,this.eb);if(this.a.size.x%2==1)this.a.size.x=this.a.size.x+1;this.pointerType=h||sc.os.ev.NONE;this.a.cb.x=this.pointerType>2?this.a.size.x:0;this.a.cb.y=this.a.size.y},resize:function(a,b){this.v(a+this.IH*2,b+this.JH*2)},ofa:function(){if(this.pointerType==
sc.os.ev.Cja)this.pointerType=sc.os.ev.sxa;else if(this.pointerType==sc.os.ev.Dja)this.pointerType=sc.os.ev.txa},va:function(a){this.eb.Jf[0]=this.pointerType;this.pointerType>2&&a.ho().tw(-1,1).ufa(this.a.size.x,0);this.parent(a);if(this.pointerType){var b=Math.min(this.eb.wh.top,this.a.size.y-this.eb.wh.bottom);a.ia(this.r,-8,0,this.pointerType%2==0?16:0,40,16,b)}this.pointerType>2&&a.Po()}});sc.os.ev={NONE:0,Cja:1,sxa:2,Dja:3,txa:4};sc.Mmb=ig.te.extend({N:{HIDDEN:{state:{alpha:0,Ia:0,Ma:0},time:0,
p:KEY_SPLINES.EASE_IN},DEFAULT:{state:{alpha:1},time:0,p:KEY_SPLINES.EASE_OUT}},r:new ig.$("media/gui/message.png"),eb:new ig.$b("media/gui/message.png",{width:16,height:16,left:8,top:16,right:8,bottom:8,Fb:{"default":{x:0,y:0}}}),direction:0,f:function(){this.parent(width+this.IH*2,height+this.JH*2,w,this.eb);if(this.a.size.x%2==1)this.a.size.x=this.a.size.x+1;this.pointerType=pointerType||ig.te.ev.NONE;this.a.cb.x=this.pointerType>2?this.a.size.x:0;this.a.cb.y=this.a.size.y},ofa:function(){if(this.pointerType==
sc.os.ev.Cja)this.pointerType=sc.os.ev.sxa;else if(this.pointerType==sc.os.ev.Dja)this.pointerType=sc.os.ev.txa},va:function(a){this.eb.Jf[0]=this.pointerType;this.pointerType>2&&a.ho().tw(-1,1).ufa(this.a.size.x,0);this.parent(a);if(this.pointerType){var b=Math.min(this.eb.wh.top,this.a.size.y-this.eb.wh.bottom);a.ia(this.r,-8,0,this.pointerType%2==0?16:0,40,16,b)}this.pointerType>2&&a.Po()}});sc.FH=ig.te.extend({eb:new ig.$b("media/gui/message.png",{width:12,height:2,left:2,top:0,right:0,bottom:0,
Fb:{"default":{x:0,y:80}}}),f:function(a){this.parent(a,2,w,this.eb)}});sc.ATa=ig.te.extend({text:s,eb:new ig.$b("media/gui/message.png",{width:16,height:16,left:8,top:16,right:8,bottom:8,Fb:{"default":{x:0,y:0}}}),f:function(a,b,c){this.parent(a,b,c)}});sc.Cxa=ig.te.extend({text:s,eb:new ig.$b("media/gui/message.png",{width:22,height:22,left:5,top:5,right:5,bottom:5,Fb:{"default":{x:48,y:0}}}),f:function(a,b,c){this.parent(a,b,c);this.a.Vc=0.8}});sc.UAa=ig.te.extend({text:s,N:{DEFAULT:{state:{},
time:0,p:KEY_SPLINES.LINEAR},FLIPPED:{state:{Ia:-1,Ma:-1},time:0,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/message.png",{width:12,height:20,left:0,top:7,right:0,bottom:5,Fb:{"default":{x:32,y:0}}}),f:function(a,b){this.parent(12,a,w);b&&this.j("FLIPPED",j)},Aua:function(a){this.v(12,a)}});sc.tja=ig.X.extend({N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{},time:0.3,p:KEY_SPLINES.EASE_IN}},Ii:s,Hd:[],right:w,f:function(a,b){this.parent();this.a.Vc=1;this.right=a;this.Ii=
new sc.k0a(b,a,75);this.Ii.a.Vc=this.a.Vc;this.Ii.F(this.right?ig.k.ha:ig.k.fb,ig.k.W);this.Ii.j("HIDDEN",j);this.m(this.Ii);this.v(this.Ii.a.size.x,this.Ii.a.size.y)},ds:function(a,b){var c=new sc.i0a(a,this.right,8,2,80);this.right&&c.F(ig.k.ha,ig.k.W);this.Hd.push(c);c.j("HIDDEN",j);b&&c.j("DEFAULT");this.m(c);this.dQ(c)},Vea:function(a,b){this.Hd[a].uh(b);this.dQ()},f5:function(a){a=this.Hd.splice(a,1)[0];a.j("HIDDEN",w,j);this.dQ();return a},x$:function(){for(;this.Hd.length;)this.Hd.pop().j("HIDDEN",
w,j)},Zrb:function(){this.Hd.pop().j("HIDDEN",w,j);this.dQ()},dQ:function(a){for(var b=this.Ii.a.size.x,c=this.Ii.a.size.y,k=0;k<this.Hd.length;++k){var l=this.Hd[k];k&&(c=c+1);l==a?l.l(0,c):l.bd(0,c,0.3,KEY_SPLINES.EASE_OUT);c=c+l.a.size.y;b=Math.max(b,l.a.size.x)}this.v(b,c)},hide:function(a,b){if(!this.a.qj){this.Ii.j("HIDDEN",a);for(var c=0;c<this.Hd.length;++c)this.Hd[c].j("HIDDEN",a);this.j("HIDDEN",w,w,b)}},show:function(a,b){if(!this.a.qj){this.Ii.j("DEFAULT",a,w,s,b||0);for(var c=0;c<this.Hd.length;++c)this.Hd[c].j("DEFAULT",
a,w,s,b||0);this.j("DEFAULT")}},remove:function(){this.Ii.j("HIDDEN");for(var a=0;a<this.Hd.length;++a)this.Hd[a].j("HIDDEN");this.j("HIDDEN",w,j)}});sc.uB=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.3,p:KEY_SPLINES.EASE_IN_OUT},HIDDEN:{state:{alpha:0.5,Ia:1,Ma:0},time:0.3,p:KEY_SPLINES.EASE_IN_OUT}},vqb:new ig.$("media/gui/message.png"),lda:s,Hz:s,e$:s,f$:s,f:function(a){this.parent();this.lda=a;this.Hz=new sc.Cxa(a.a.size.x+16,a.a.size.y+10);this.m(this.Hz);this.Hz.l(5,3);this.v(this.Hz.a.size.x+
10,this.Hz.a.size.y+6);this.a.cb.x=this.a.size.x/2;this.a.cb.y=this.a.size.y/2;this.m(this.lda);this.lda.l(13,8);this.e$=new sc.UAa(this.a.size.y-1);this.e$.F(ig.k.fb,ig.k.xb);this.m(this.e$);this.f$=new sc.UAa(this.a.size.y-1,j);this.f$.F(ig.k.ha,ig.k.W);this.m(this.f$);this.j("HIDDEN",j);this.j("DEFAULT")},remove:function(){this.j("HIDDEN",w,j)},resize:function(){var a=this.lda;this.Hz.v(a.a.size.x+16,a.a.size.y+10);this.v(this.Hz.a.size.x+10,this.Hz.a.size.y+6);this.a.cb.x=this.a.size.x/2;this.a.cb.y=
this.a.size.y/2;this.e$.Aua(this.a.size.y-1);this.f$.Aua(this.a.size.y-1)}});var b=Vec2.create(),c=2/60;sc.gja={BOTTOM:function(a,b){a.x=b.size.x/2;a.y=b.size.y},CENTER:function(a,b){a.x=b.size.x/2;a.y=b.size.y/2-b.size.z/2},TOP:function(a,b){a.x=b.size.x/2;a.y=-b.size.z}};sc.y8=ig.X.extend({eb:new ig.$b("media/gui/message.png",{width:16,height:0,left:16,top:11,right:16,bottom:0,Fb:{"default":{x:96,y:64}}}),N:{DEFAULT:{state:{alpha:1},time:0.1,p:KEY_SPLINES.EASE_IN_OUT},START:{state:{alpha:0.5,Ia:0.8,
Ma:0},time:0.15,p:KEY_SPLINES.EASE_IN_OUT},HIDDEN:{state:{alpha:0.5,Ia:2,Ma:0},time:0.15,p:KEY_SPLINES.EASE_IN_OUT}},P:s,Va:s,n:0,fPa:0,Eq:w,hoa:Vec2.create(),Bg:0,f:function(a,b,c,k,l){this.parent();this.P=a;this.Va=new sc.ea(b,{font:sc.Ka.Ve});this.Va.F(ig.k.za,ig.k.gb);this.Va.l(0,1);this.m(this.Va);this.v(this.Va.a.size.x+16,11);this.a.Vc=0.5;this.rb(this.a.size.x/2,this.a.size.y/2);this.j("START",j);this.j("DEFAULT");this.n=c;this.fPa=c/2;k=k||sc.gja.TOP;k(this.hoa,a.b);this.Bg=l||0},update:function(){this.sk();
this.n=this.n-ig.g.Da;this.n<=0&&this.remove()},va:function(a){this.eb.Xa(a,this.a.size.x,this.a.size.y,"default")},sk:function(){if(this.P){var a=this.P.b;ig.g.Kv(b,Math.round(a.i.x+this.hoa.x),Math.round(a.i.y-a.i.z+this.hoa.y-this.Bg));a=0;if(this.n>this.fPa){var e=Math.floor(this.n/c);e%4==1&&(a=2);e%4==3&&(a=-2)}this.a.i.x=b.x-this.a.size.x/2+a;this.a.i.y=b.y-this.a.size.y/2-4+0}},remove:function(){this.Eq=j;this.j("HIDDEN",w,j)},ol:M("Eq")});sc.qXa=ig.X.extend({eb:new ig.$b("media/gui/message.png",
{width:16,height:0,left:16,top:26,right:16,bottom:0,Fb:{"default":{x:48,y:32}}}),N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_IN_OUT},HIDDEN:{state:{alpha:0.5,Ia:1,Ma:0},time:0.2,p:KEY_SPLINES.EASE_IN_OUT}},content:s,A4:0,f:function(a,b){this.parent();this.content=a;this.A4=b||16;this.a.Vc=0.8;this.m(this.content);this.content.F(ig.k.za,ig.k.gb);this.v(ig.g.width,26);this.rb(this.a.size.x/2,this.a.size.y/2);this.j("HIDDEN",j);this.j("DEFAULT")},va:function(a){var b=this.content.a.size.x+
this.A4*2,c=ig.g.width/2-b/2;this.eb.Xa(a,b,this.a.size.y,"default",c,0);a.Ec("black",0,12,c,2);a.Ec("black",c+b,12,c,2)}});sc.m0a=ig.te.extend({text:s,N:{DEFAULT:{state:{alpha:0.5},time:0.2,p:KEY_SPLINES.EASE_IN_OUT}},eb:new ig.$b("media/gui/message.png",{width:8,height:0,left:4,top:15,right:4,bottom:0,Fb:{"default":{x:24,y:80}}}),f:function(a){this.parent(a,15,w)}})});ig.G=j;
ig.I("game.feature.gui.base.numbers").J("impact.feature.gui.gui").H(function(){function a(a,c){for(a.dU=0;c;){a.dU++;c=Math.floor(c/10)}if(a.lP>a.dU)a.dU=a.lP;a.a.size.x=(a.dU+(a.Bfa||a.KQ))*a.tP.width;a.a.size.y=a.tP.height;a.a.cb.x=Math.floor(a.a.size.x/2)}sc.ef={$o:0,hm:1,uH:2,qr:3,nM:4};sc.uf={Ki:{x:0,y:0,width:8,height:8},KB:{x:136,y:0,width:6,height:6},hh:{x:0,y:32,width:12,height:14},Bt:{x:160,y:32,width:8,height:10},Kc:{x:0,y:48,width:6,height:8}};sc.Ib=ig.X.extend({r:new ig.$("media/gui/basic.png"),
bw:9999,dU:0,Bfa:w,KQ:w,tP:s,color:sc.ef.$o,nR:0,aca:0,yda:0,Sra:0,n:s,Mra:w,lP:0,qQ:w,f:function(b,c){this.parent();this.v(0,7);this.rb(0,4);this.bw=b;this.Bfa=c&&c.signed||w;this.yda=c&&c.transitionTime||0;this.Sra=c&&c.transitionScale||0;this.color=c&&c.color||this.color;this.KQ=c&&c.showPlus||w;this.tP=c&&c.size||sc.uf.Ki;this.Mra=c&&c.noZero||w;this.lP=c&&c.leadingZeros||0;this.qQ=c&&c.scramble||w;this.n=new ig.Ct(j);b&&a(this,b)},v:function(b){this.tP=b||sc.uf.Ki;a(this,this.bw)},sa:function(b,
c){c=c!=g?c:w;b=b*1;isNaN(b)&&(b=0);this.bw?b=b.Vb(this.Bfa?-this.bw:0,this.bw):a(this,b);if(this.nR!=b){this.aca=c?b:this.zka();this.nR=b;var d=c?0:this.yda,e=Math.abs(this.aca-this.nR);this.Sra?d=d*(e/this.Sra):d/e>0.066&&(d=e*0.066);this.n.set(d)}},Te:L("color"),update:function(){this.n.ga()},va:function(a){var c=this.tP,d=c.x,e=c.y+this.color*c.height,h=c.width,c=c.height,k=this.a.size.x,l=w,m=this.zka();if(m<0){l=j;m=-m}else if(m==0&&this.Mra)return;var n=this.lP;do{var k=k-h,o=m%10;a.ia(this.r,
k,0,d+(this.qQ?15:o)*h,e,h,c);m=Math.floor(m/10);n--}while(this.lP?n>0||this.dU>=this.lP&&m:m);k=k-h;l?a.ia(this.r,k,0,d+10*h,e,h,c):this.KQ&&a.ia(this.r,k-1,0,d+11*h,e,h,c)},zka:function(){if(this.n.yb())return this.nR;var a=this.n.get();return Math.floor((1-a)*this.aca+a*this.nR)}});sc.TXa=ig.X.extend({r:new ig.$("media/gui/basic.png"),WT:s,Di:s,f:function(a,c){this.parent();this.WT=new sc.Ib(a,{transitionTime:c});this.Di=new sc.Ib(a);this.Di.l(this.WT.a.size.x+12,0);this.Di.sa(a);this.m(this.WT);
this.m(this.Di);this.v(this.WT.a.size.x+this.Di.a.size.x+12,7)},sa:function(a,c){this.WT.sa(a,c)},va:function(a){a.PEa(this.r,this.WT.a.size.x+2,0,12,8)}})});ig.G=j;
ig.I("game.feature.menu.gui.menu-misc").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.interact.gui.focus-gui","impact.feature.gui.base.box","impact.feature.gui.base.basic-gui","game.feature.gui.base.button","game.feature.combat.stat-change").H(function(){sc.Hl={};sc.Hl.MR=0;sc.Hl.kz=1;sc.Hl.Uja=2;sc.yj={};sc.yj.lBa=0;sc.yj.us=1;sc.yj.Z0a=2;sc.yj.Eja=3;sc.yj.IAa=4;var a=KEY_SPLINES.EASE,b=Vec2.pc(0,0);sc.Bza=sc.ec.extend({r:new ig.$("media/gui/menu.png"),vd:s,f:function(a,
b,e,h,k,l,m){this.parent(a,b,e,h,k,l,m);this.vd=new sc.sia;this.vd.l(4,4);this.m(this.vd)},KEa:function(a){this.vd.vf(a)},caa:function(){this.vd.xi()}});sc.sia=ig.Dc.extend({N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}},r:new ig.$("media/gui/menu.png"),Isa:w,small:w,n:0,alpha:1,f:function(){this.parent(this.r,464,488,11,11);this.F(ig.k.ha,ig.k.W);this.rb(5.5,5.5)},update:function(){this.parent();if(this.Isa){this.n=(this.n+ig.g.Da)%1.6;
var a=this.n/1.6,a=KEY_SPLINES.EASE_IN_OUT.get(1-(a>0.5?1-(a-0.5)*2:a*2)),a=0.7*a+0.3;this.Ga||(a=a*0.7);this.alpha=Math.min(1,a+0.3);this.a.Vc=this.alpha}},va:function(a){a.ho().rb(this.a.cb.x,this.a.cb.y).tw(this.alpha,this.alpha);this.parent(a);a.Po()},vf:function(){this.Isa=j;this.j("DEFAULT",j)},xi:function(a,b){this.Isa=w;this.j("HIDDEN",a?b||w:j,a)}});sc.iha=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},FADE_OUT:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{},
time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/status-gui.png",{width:4,height:0,left:11,top:12,right:11,bottom:0,Fb:{"default":{x:216,y:144}}}),text:s,Bs:0,f:function(){this.parent();this.a.size.x=100;this.a.size.y=21;this.l(2,0);this.text=new sc.ea("",{font:sc.Ka.Lb,speed:ig.rd.Nd.We});this.text.F(ig.k.fb,ig.k.gb);this.text.l(13,0);this.text.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},FADE_OUT:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{},time:0.2,p:KEY_SPLINES.LINEAR}};
this.text.j("DEFAULT",j);this.m(this.text);this.j("HIDDEN",j)},fa:function(a,b){b=b||0;if(b>0)this.j("FADE_OUT",w,w,s,b);else{this.a.fj=="FADE_OUT"&&this.j("DEFAULT",j);this.text.fa(a);this.Bs=a?this.text.a.size.x+21:0}},va:function(a){this.Bs&&this.eb.Xa(a,this.Bs,12,"default",2,4)}});sc.Wha=ig.X.extend({text:s,N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-21},time:0.2,p:KEY_SPLINES.LINEAR}},Hc:s,yw:s,alpha:0.5,f:function(a,b,e){this.parent();this.a.size.x=a||ig.g.width;
this.a.size.y=b||21;this.jL("HIDDEN","offsetY",-this.a.size.y);this.yw=e||w;this.text=new sc.ea("",{speed:ig.rd.Nd.We});this.text.F(ig.k.ha,ig.k.gb);this.text.l(8,0);this.text.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},FADE_OUT:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{},time:0.2,p:KEY_SPLINES.LINEAR}};this.text.j("HIDDEN",j);this.m(this.text);this.j("HIDDEN",j)},update:function(){if(this.Hc){this.Hc.n=this.Hc.n+ig.g.Da;var a=Math.min(1,Math.max(0,this.Hc.n)/this.Hc.time),
a=this.Hc.p.get(a);this.a.size.x=Math.round(this.Hc.cR*(1-a)+this.Hc.width*a);this.a.size.y=Math.round(this.Hc.Dw*(1-a)+this.Hc.height*a);if(a==1)this.Hc=s}},va:function(a){this.yw||a.Ec("#000000",0,0,this.a.size.x,this.a.size.y).wd(this.alpha)},Bq:function(a,b,e,h,k){if(e)this.Hc={cR:this.a.size.x,width:a||0,Dw:this.a.size.y,height:b||0,time:e,p:h||KEY_SPLINES.EASE,n:0-(k||0)};else{this.a.size.x=a;this.a.size.y=b}},fa:function(a,b){b=b||0;if(b>0)this.text.j("FADE_OUT",w,w,s,b);else{this.text.a.fj==
"FADE_OUT"&&this.text.j("DEFAULT",j);this.text.fa(a)}}});sc.eya=ig.X.extend({f:function(a){this.parent();this.v(ig.g.width,ig.g.height);this.rb(ig.g.width/2,ig.g.height/2);this.a.clip=j;this.m(a)}});sc.iM=ig.Vn.extend({r:new ig.$("media/gui/buttons.png"),button:s,data:s,$H:0,Bs:0,gl:sc.qd.xx,f:function(a,b,e,h,k,l,m,n){this.parent(j,w);b=b||1;e=e||1;k=k!=g?k:"";if(l||w){this.$H=-1;b=b+e}else this.$H=Math.max(0,e-22);this.Bs=b;this.v(b+e,sc.Ic.kE.height);this.button=new sc.ec(a,b,j,sc.Ic.kE,n);this.button.a.gL(w);
if(m){this.button.re.F(ig.k.za,ig.k.gb);this.button.re.l(0,0)}k!=g&&this.setData({id:h,description:k});this.m(this.button);if(!this.constructor.Nza)this.constructor.Nza=this.r.createPattern(62,45,4,1,ig.ue.Pf.Xn);if(!this.constructor.Oza)this.constructor.Oza=this.r.createPattern(18,45,4,1,ig.ue.Pf.Xn)},FG:function(a,b){a=a||1;b=b||1;this.$H=Math.max(0,b-22);this.Bs=a;this.a.size.x=a+b;this.button.a.size.x=a},setData:function(a){if(a)this.data=a},va:function(a){if(!(this.$H<0)){var b=this.button.a.size.x;
if(this.focus||this.Ij&&this.Bc){a.Rj(this.constructor.Nza,b,0,0,0,this.$H,1);a.ia(this.r,b+this.$H,0,66,45,22,1)}else{a.Rj(this.constructor.Oza,b,0,0,0,this.$H,1);a.ia(this.r,b+this.$H,0,22,45,22,1)}}},Pl:function(){this.focus=j;this.button.focus=j},fa:function(a){this.button.fa(a);this.button.FG(this.Bs)},zg:function(){this.focus=w;this.button.focus=w},setActive:function(a){this.parent(a);this.button.setActive(a)},Vv:function(){this.button.Vv()}});sc.AB=sc.iM.extend({zb:s,f:function(a,b,e,h,k,l,
m,n,o,t){this.parent(a,b,e,k,l,m,n,o);if(h>=0){this.zb=new sc.Ib(t||99);this.zb.sa(h,j);this.zb.F(ig.k.ha,ig.k.W);this.zb.l(5,7);this.m(this.zb)}}});sc.w8=ig.X.extend({r:new ig.$("media/gui/menu.png"),name:"nope.",VLa:0,aqa:0,WD:w,Rba:Vec2.pc(0,0),U0:s,Iz:s,ee:s,OE:s,$da:s,pG:s,dB:w,jW:w,N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},width:0,f:function(a,b,e,h,k,l,m,n){this.parent();this.v(m||169,11);this.width=this.a.size.x;this.name=a||
"nope.";this.VLa=b||0;this.aqa=e||0;this.WD=h||w;this.dB=l||w;this.jW=n||w;this.Rba.x=this.aqa%11;this.Rba.y=Math.floor(this.aqa/11);this.ee=new sc.ea(a,{speed:ig.rd.Nd.We,font:sc.Ka.Lb});this.ee.l(13,3);this.m(this.ee);if(!this.jW){if(!this.dB){this.U0=new sc.Ib(k,{signed:j,transitionTime:0.2});this.U0.F(ig.k.ha,ig.k.W);this.U0.l(this.WD?63:54,4);this.m(this.U0);if(this.WD){this.$da=new sc.Zza;this.$da.F(ig.k.ha,ig.k.W);this.$da.l(54,4);this.m(this.$da)}this.OE=new ig.Dc(this.r,1,321,4,6);this.OE.F(ig.k.ha,
ig.k.W);this.OE.l(47,5);this.OE.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},FADE:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.OE.j("HIDDEN",j);this.m(this.OE)}this.Iz=new sc.Ib(k,{signed:j,showPlus:j,transitionTime:0});this.Iz.F(ig.k.ha,ig.k.W);this.Iz.l(this.WD?12:3,4);this.Iz.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},FADE:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};
this.Iz.j("HIDDEN",j);this.m(this.Iz);if(this.WD){this.pG=new sc.Zza;this.pG.F(ig.k.ha,ig.k.W);this.pG.l(3,4);this.m(this.pG);this.pG.j("HIDDEN",j)}}},Am:function(a,b){if(!this.jW&&!this.dB){a=a||0;a=this.WD?Math.round(a*100)-100:a;this.U0.sa(a,b)}},bh:function(a){if(!this.jW)if(a){var a=a||0,a=this.WD?Math.round(a*100):a,b=0,b=a>0?sc.ef.uH:a<0?sc.ef.hm:sc.ef.$o;this.Iz.sa(a);this.Iz.Te(b);this.Iz.j("DEFAULT",j);this.dB||this.OE.j("DEFAULT",j);if(this.WD){this.pG.state=b;this.pG.j("DEFAULT",j)}}else{this.Iz.j("HIDDEN",
j);this.dB||this.OE.j("HIDDEN",j);this.WD&&this.pG.j("HIDDEN",j)}},$ob:function(a){if(!this.jW){a=a||0;this.Iz.j("FADE",w,w,s,a);this.dB||this.OE.j("FADE",w,w,s,a);this.WD&&this.pG.j("FADE",w,w,s,a)}},va:function(a){var d=0,e=this.VLa*12;if(this.jW){b.x=this.dB?144:0;b.y=(this.dB?408:329)+e;a.ia(this.r,0,0,b.x,b.y,72,11);a.ia(this.r,72,0,b.x+11,b.y,9,11);a.ia(this.r,81,10,b.x+81,b.y,this.dB?46:89,11)}else a.ia(this.r,0,0,this.dB?144:0,(this.dB?408:329)+e,this.width,11);d=this.Rba.x*12;e=this.Rba.y*
12;a.ia(this.r,0,0,33+d,280+e,11,11)}});sc.Zza=ig.X.extend({N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},FADE:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},r:new ig.$("media/gui/menu.png"),state:0,f:function(){this.parent();this.v(8,8)},va:function(a){a.ia(this.r,0,0,this.state*9,407,8,8)}});sc.gq=ig.te.extend({eb:new ig.$b("media/gui/menu.png",{width:5,height:5,left:5,top:5,right:5,bottom:5,Fb:{"top-left":{x:100,y:425},"top-right":{x:116,
y:425},"top-left-dark":{x:100,y:441},"top-right-dark":{x:116,y:441},square:{x:88,y:496}}}),f:function(a){this.parent();a=a||sc.yj.lBa;switch(a){case sc.yj.lBa:this.Nk="top-left";break;case sc.yj.us:this.Nk="top-right";break;case sc.yj.Z0a:this.Nk="top-left-dark";break;case sc.yj.Eja:this.Nk="top-right-dark";break;case sc.yj.IAa:this.Nk="square"}}});sc.jE=sc.gq.extend({Kpa:new ig.$b("media/gui/menu.png",{width:2,height:0,left:1,top:9,right:5,bottom:0,Fb:{"default":{x:96,y:408}}}),qg:s,title:"",f:function(a,
b){this.parent(b);this.title=a||"";this.qg=new sc.ea(this.title,{font:sc.Ka.Lb,speed:ig.rd.Nd.We});this.qg.l(2,1);this.m(this.qg)},va:function(a){this.parent(a);this.Kpa.Xa(a,this.a.size.x,9,"default")},rg:function(){this.a.rg();this.m(this.qg)}});sc.kM=ig.X.extend({r:new ig.$("media/gui/menu.png"),f:function(){this.parent();if(!this.constructor.Km)this.constructor.Km=this.r.createPattern(88,475,16,16,ig.ue.Pf.tE)},va:function(a){a.ax().aQa(this.constructor.Km,0,0,0,0,this.a.size.x,this.a.size.y)}});
sc.RH=ig.X.extend({vc:s,qw:sc.Hl.kz,gt:s,ft:s,U5:j,yX:j,f:function(a){this.parent();this.qw=a||sc.Hl.MR;this.vc=new sc.RH.qUa;this.vc.l(0,1);this.m(this.vc);if(this.qw!=sc.Hl.Uja){this.gt=new sc.OZ;this.gt.F(ig.k.ha,ig.k.W);this.gt.l(1,2);this.gt.v(2,this.a.size.y-4-(this.qw==sc.Hl.MR?3:0));this.m(this.gt)}if(this.qw!=sc.Hl.kz){this.ft=new sc.OZ(w);this.ft.F(ig.k.fb,ig.k.xb);this.ft.l(1,2);this.ft.v(this.a.size.x-(this.qw==sc.Hl.MR?5:0),2);this.m(this.ft)}},uh:function(a){this.vc.rg();this.vc.m(a);
this.ct()},scrollX:function(b,d){if(this.qw!=sc.Hl.kz){this.ft.nq(b,d);this.vc.gj(-this.ft.value,this.gt?-this.gt.value:0,d?0:0.1,a)}},scrollY:function(b,d,e,h){if(this.qw!=sc.Hl.Uja){this.gt.nq(b,d);this.vc.gj(this.ft?-this.ft.value:0,-this.gt.value,d?0:e||0.1,h||a)}},wX:function(b,d,e,h){this.gt.Np(b,d);this.vc.gj(this.ft?-this.ft.value:0,-this.gt.value,d?0:e||0.1,h||a)},ct:function(a){if(!(this.vc.a.children.length<=0))if(this.qw==sc.Hl.MR){this.Pea(this.vc.a.size.x,this.vc.jIa(),this.ft,a);this.Pea(this.vc.a.size.y,
this.vc.W1(),this.gt,a)}else this.qw==sc.Hl.kz?this.Pea(this.vc.a.size.y,this.vc.W1(),this.gt,a):this.Pea(this.vc.a.size.x,this.vc.jIa(),this.ft,a)},Pea:function(a,b,e,h){e&&e.M5(0,Math.max(0,b-a),h)},va:function(a){this.U5&&a.Ec("#7E7E7E",0,0,this.a.size.x*ig.g.scale,1);this.yX&&a.Ec("#7E7E7E",0,this.a.size.y-1,this.a.size.x*ig.g.scale,1)},v:function(a,b){this.parent(a,b);this.vc.a.size.x=this.a.size.x-(this.qw!=sc.Hl.Uja?3:0);this.vc.a.size.y=this.a.size.y-2-(this.qw!=sc.Hl.kz?4:0);this.gt&&this.gt.v(2,
this.a.size.y-4-(this.qw==sc.Hl.MR?3:0));this.ft&&this.ft.v(this.a.size.x-(this.qw==sc.Hl.MR?5:0),2);this.ct()},CJ:function(){return-this.vc.a.scroll.y}});sc.OZ=ig.X.extend({offset:Vec2.pc(0,0),Hj:{top:0,right:0,bottom:0,left:0},eD:0,Mg:0,value:0,nB:j,jPa:j,S4:0,uea:0,Sn:s,f:function(a,b,e){this.parent();this.nB=a!=g?a:j;this.Sn=b||new sc.OZ.e1a;this.jPa=e==g?j:e;this.m(this.Sn)},va:function(a){a.Ec("#1A1A1A",0,0,this.a.size.x*ig.g.scale,this.a.size.y*ig.g.scale)},Xk:function(a){if(this.eD<this.Mg)if(a<
this.eD)a=this.eD;else{if(a>this.Mg)a=this.Mg}else if(a>this.eD)a=this.eD;else if(a<this.Mg)a=this.Mg;return a},c6a:function(){return this.nB?Math.max(1,this.a.size.y-(this.uea||4)):Math.max(1,this.a.size.x-(this.S4||4))},tfa:function(b){var d=this.Mg-this.eD,e=(this.nB?this.uea:this.S4)||4;if(this.jPa)var h=Math.max(1,this.nB?this.KIa():this.mJa()),e=Math.floor(Math.max(e,h*(h/(h+d))));h=Math.max(1,(this.nB?this.KIa():this.mJa())-e);d=(d!=0?Math.floor((this.value-this.eD)*h/d):0)+(this.nB?this.Hj.top:
this.Hj.left);if(this.nB){this.Sn.v(this.S4||this.a.size.x,e);this.Sn.bd(this.offset.x,d,b?0:0.1,a)}else{this.Sn.v(e,this.uea||this.a.size.y);this.Sn.bd(d,this.offset.y,b?0:0.1,a)}},qfa:function(a,b){this.S4=a||4;this.uea=b||4},nq:function(a,b){this.Np(this.value+a,b)},Np:function(a,b){a=this.Xk(a);if(this.value!=a||b){this.value=a;this.tfa(b)}},M5:function(a,b,e){b<a&&f(Error("max value can never less then min in ScrollBar!"));this.eD=a;this.Mg=b;this.value=this.Xk(this.value);this.tfa(e)},hab:function(){return Math.abs(this.Mg-
this.eD)},mJa:function(){return this.a.size.x-this.Hj.right-this.Hj.left},KIa:function(){return this.a.size.y-this.Hj.bottom}});sc.OZ.e1a=ig.X.extend({va:function(a){a.Ec("#7E7E7E",0,0,this.a.size.x*ig.g.scale,this.a.size.y*ig.g.scale)}});sc.RH.qUa=ig.X.extend({kPa:0,f:function(){this.parent();this.a.clip=j},jIa:function(){return this.a.children.length<=0?0:this.a.children[this.kPa].size.x},W1:function(){return this.a.children.length<=0?0:this.a.children[this.kPa].size.y}});sc.h1a=sc.gq.extend({r:new ig.$("media/gui/message.png"),
ZRa:new ig.$("media/gui/basic.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},DEFAULT_FAST:{state:{},time:0.1,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{offsetX:-136},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_FAST:{state:{offsetX:-136},time:0.1,p:KEY_SPLINES.EASE_OUT}},Ud:s,B6:s,A6:s,z6:s,wDa:-1,vDa:-1,tDa:-1,f:function(){this.parent(sc.yj.us);this.v(136,33);this.F(ig.k.fb,ig.k.xb);sc.K.Na(sc.q.R,this);var a=new sc.ea(ig.lang.get("sc.gui.menu.credits"),{font:sc.Ka.Lb});a.l(5,8);this.m(a);a=new sc.ea(ig.lang.get("sc.gui.menu.playtime"),
{font:sc.Ka.Lb});a.l(5,21);this.m(a);this.Ud=new sc.Ib(9999999);this.Ud.sa(sc.q.R.Ud);this.Ud.F(ig.k.ha,ig.k.W);this.Ud.l(22,7);this.m(this.Ud);this.B6=new sc.Ib(99,{leadingZeros:2});this.B6.F(ig.k.ha,ig.k.W);this.B6.l(8,20);this.m(this.B6);this.A6=new sc.Ib(99,{leadingZeros:2});this.A6.F(ig.k.ha,ig.k.W);this.A6.l(32,20);this.m(this.A6);this.z6=new sc.Ib(999,{leadingZeros:3});this.z6.F(ig.k.ha,ig.k.W);this.z6.l(56,20);this.m(this.z6);this.j("HIDDEN",j)},Wkb:function(){this.Ud.sa(sc.q.R.Ud)},update:function(){var a=
sc.ta.pg("player","playtime"),b=Math.floor(a)%60;if(b!=this.wDa){this.B6.sa(b,j);this.wDa=b}b=Math.floor(a/60)%60;if(b!=this.vDa){this.A6.sa(b,j);this.vDa=b}b=Math.floor(a/60/60)%60;if(b!=this.tDa){this.z6.sa(b,j);this.tDa=b}},va:function(a){this.parent(a);a.ia(this.r,this.a.size.x-10-8,7,0,88,10,8);a.ia(this.ZRa,107,21,107,1,3,7);a.ia(this.ZRa,82,21,107,1,3,7)},lb:function(a,b){a==sc.q.R&&b==sc.Wc.r7&&this.Ud.sa(sc.q.R.Ud)}})});ig.G=j;
ig.I("game.feature.version.gui.changelog-gui").J("impact.base.image","impact.base.event","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.interact.button-interact","game.feature.control.control","game.feature.gui.base.button","game.feature.gui.base.boxes","game.feature.gui.base.numbers","game.feature.menu.gui.menu-misc").H(function(){function a(a){return a.indexOf("+")==0?0:a.indexOf("~")==0?3:a.indexOf("-")==0?6:9}sc.TTa=ig.X.extend({lk:s,content:s,f:function(){this.parent();
this.content=new ig.X;this.lk=new sc.RH(sc.Hl.kz);this.lk.uh(this.content);this.lk.U5=w;this.lk.yX=w;this.m(this.lk)},vua:function(a){this.content.rg();this.content.a.size.y=0;this.lk.vc.gj(0,0,0);this.lk.ct(j);this.content.m(a);this.qla()},scroll:function(a,c){this.lk.scrollY(a,c,0.05)},CJ:function(){return this.lk.CJ()},clear:function(){this.content.rg();this.content.a.size.y=0;this.lk.vc.gj(0,0,0);this.lk.ct(j)},v:function(a,c){this.parent(a,c);this.lk.v(a,c)},qla:function(){var a=this.content.a.children,
a=a[a.length-1];this.content.a.size.y=a.i.y+a.size.y;this.lk.ct()}});sc.cAa=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},qa:s,text:s,Ga:j,f:function(a,c,d){this.parent();this.qa=new sc.ea(c);this.text=new sc.ea(a,{font:sc.Ka.Lb});this.text.F(ig.k.fb,ig.k.xb);this.qa.l(d?this.text.a.size.x+2:0,0);this.text.l(d?0:this.qa.a.size.x,2);this.v(this.qa.a.size.x+this.text.a.size.x+(d?2:0),17);this.m(this.qa);this.m(this.text)}});
sc.UTa=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},ge:s,content:s,back:s,hC:s,iC:s,hn:s,qg:s,aJ:s,Q:s,ka:s,J0:w,b7a:[],E$:s,cK:[],vi:s,f:function(){this.parent();this.a.Vc=0.8;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.Q=new ig.nr;this.ka=new sc.Wf(w,ig.mr.I7);this.Q.Cg(this.ka);this.content=new ig.X;this.content.v(300,240);this.k7a();this.ge=new sc.uB(this.content);this.ge.F(ig.k.za,ig.k.gb);this.ge.l(0,
-10);this.m(this.ge);this.back=new sc.ec("\\i[back]Back",sc.ps);this.back.F(ig.k.za,ig.k.gb);this.back.l(sc.ps/2+4,122+this.back.a.size.y-10);this.back.dc=sc.qd.back;this.back.Qb=function(){this.rbb()}.bind(this);this.m(this.back);this.Q.md(this.back,this.dsa.bind(this));this.aJ=new sc.ec("\\i[help]Show Newest",sc.ps);this.aJ.F(ig.k.za,ig.k.gb);this.aJ.l(-sc.ps/2-4,122+this.back.a.size.y-10);this.aJ.Qb=function(){this.ifb()}.bind(this);this.m(this.aJ);this.Q.md(this.aJ,this.ceb.bind(this));this.j("HIDDEN",
j)},Lsb:function(){ig.ua.de(this.Q);ig.ua.ed(0.2);this.J0=w;this.q7a();this.j("DEFAULT")},rbb:function(){ig.ua.ie(this.Q);ig.ua.ed(0.2);this.j("HIDDEN")},Jma:function(){this.E$=s;this.hn.clear()},rib:function(a,c){this.J0?this.qg.fa("Updates since last Login - "+c):this.qg.fa("Changelog - v"+c+" ["+a+"]")},update:function(){if(!ig.ua.Ph()){sc.V.aW()?this.hn.scroll(-20):sc.V.$V()&&this.hn.scroll(20);sc.V.Fr()?this.hn.scroll(200*ig.g.ga):sc.V.ls()&&this.hn.scroll(-200*ig.g.ga)}},va:function(a){a.Ec("#000",
0,0,this.a.size.x,this.a.size.y)},dsa:function(){return sc.V.Bo()},ceb:function(){return sc.V.Ap()},ifb:function(){if(this.J0){this.J0=w;this.aJ.re.fa("\\i[help]Show Newest");this.vi=0;this.L5(this.cK[0])}else{this.aJ.re.fa("\\i[help]Show History");this.J0=j;this.dib();this.hC.j("HIDDEN",j);this.iC.j("HIDDEN",j)}},Ieb:function(){var a=this.vi;this.vi++;if(this.vi>=this.cK.length-1)this.vi=this.cK.length-1;a!=this.vi&&this.L5(this.cK[this.vi])},bfb:function(){var a=this.vi;this.vi--;if(this.vi<=0)this.vi=
0;a!=this.vi&&this.L5(this.cK[this.vi])},dib:function(){var b=sc.version.C$a(this.b7a);if(!this.E$){var c={};if(b.length==0){b.push(sc.version.lC[0]);c.version="[v"+b[0].version+"]"}else c.version=b.length==1?"[v"+b[0].version+"]":"[v"+b[b.length-1].version+" - v"+b[0].version+"]";c.fixes=[];c.changes=[];for(var d=s,e=0,h=0,h=0;h<b.length;h++){if(d=b[h].fixes)for(e=0;e<d.length;e++)c.fixes.push(d[e]);if(d=b[h].changes)for(e=0;e<d.length;e++)c.changes.push(d[e])}c.changes.length==0?c.changes=s:c.changes.sort(function(b,
c){return a(b)-a(c)}.bind(this));this.E$=c}this.L5(this.E$)},L5:function(a){if(a){var c=new ig.X;c.a.size.x=296;var d=s,e=0,h=0;this.rib(a.name,a.version);if(a.fixes){e=this.tGa(c,e,"Bug Fixes",sc.Vo.hm);d=a.fixes;for(h=0;h<d.length;h++)e=this.vGa(c,e,d[h],j)}if(a.changes){e=this.tGa(c,e,"Changes",sc.Vo.tZ);d=a.changes;for(h=0;h<d.length;h++)e=this.vGa(c,e,d[h])}c.a.size.y=e;this.hn.vua(c);this.vi>=this.cK.length-1?this.hC.j("HIDDEN",j):this.hC.j("DEFAULT",j);this.vi==0?this.iC.j("HIDDEN",j):this.iC.j("DEFAULT",
j)}},tGa:function(a,c,d,e,h){d=new sc.ea("\\c["+e+"]"+d+"\\c[0]");h&&d.F(ig.k.za,ig.k.W);h=new ig.Lf("#7E7E7E",296,1);d.l(2,c);c=c+(d.a.size.y+2-2);h.l(0,c);c=c+3;a.m(d);a.m(h);return c},vGa:function(a,c,d,e){var h=0,k="+";if(e)k="~";else if(d.indexOf("+")==0)h=sc.Vo.uH;else if(d.indexOf("~")==0){k="~";h=sc.Vo.tZ}else if(d.indexOf("-")==0){k="-";h=sc.Vo.hm}else{e=j;k="~"}k=new sc.ea("\\c["+h+"]"+k+"\\c[0]");k.l(4,c);d=new sc.ea("\\c["+h+"]"+(e?d:d.substring(2))+"\\c[0]",{maxWidth:280});d.l(15,c);
a.m(k);a.m(d);return c=c+d.a.size.y},q7a:function(){this.vi=0;this.L5(this.cK[0])},k7a:function(){var a=2;this.cK=sc.version.lC;this.qg=new sc.ea("Changelog - "+sc.version.toString());this.qg.F(ig.k.za,ig.k.W);this.qg.l(0,a);this.content.m(this.qg);var a=a+(this.qg.a.size.y+2),c=new sc.FH(300);c.F(ig.k.za,ig.k.W);c.l(0,a);this.content.m(c);a=a+1;this.hC=new sc.cAa("Previous Log","\\i[circle-left]",w);this.hC.F(ig.k.fb,ig.k.xb);this.hC.l(-2,-2);this.hC.j("HIDDEN",j);this.hC.Vv=this.Ieb.bind(this);
this.content.m(this.hC);this.iC=new sc.cAa("Next Log","\\i[circle-right]",j);this.iC.F(ig.k.ha,ig.k.xb);this.iC.l(-4,-2);this.iC.j("HIDDEN",j);this.iC.Vv=this.bfb.bind(this);this.content.m(this.iC);this.Q.md(this.hC,function(){return sc.V.Ws()});this.Q.md(this.iC,function(){return sc.V.Xs()});this.hn=new sc.TTa;this.hn.l(0,a);this.hn.v(301,202);a=a+this.hn.a.size.y;c=new sc.FH(300);c.F(ig.k.za,ig.k.W);c.l(0,a);this.content.m(c);this.content.m(this.hn)}})});ig.G=j;
ig.I("game.feature.version.plug-in").J("game.feature.version.version","game.feature.version.gui.changelog-gui").H(function(){window.Yc&&wm.pj.push("game.feature.version.editors.changelog-editor")});ig.G=j;
ig.I("game.feature.model.base-model").H(function(){sc.K={Na:function(a,b){a.um.indexOf(b)==-1&&a.um.push(b)},lc:function(a,b){a.um.xf(b)},wa:function(a,b,c){for(var d=0;d<a.um.length;++d)a.um[d].lb(a,b,c)},Nqb:function(a,b){return a.um.indexOf(b)!=-1},Opb:function(a,b){for(var c in a)if(a[c]==b)return c;return"INVALID"}}});ig.G=j;
ig.I("game.feature.gui.hud.right-hud").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.base.image","game.feature.gui.base.boxes").H(function(){sc.c_a=ig.X.extend({ukb:s,YV:0,RT:0,gc:s,N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{},time:0.3,p:KEY_SPLINES.EASE_IN}},wg:[],Ena:w,f:function(){this.parent();this.F(ig.k.ha,ig.k.W);this.a.zIndex=101;this.a.Ee=j;sc.K.Na(sc.q,this)},update:function(){if(this.Ena){this.Ena=w;for(var a=4,b=0;b<this.wg.length;++b){if(!this.wg[b].hidden){this.wg[b].eP?
this.wg[b].l(0,a):this.wg[b].bd(0,a,0.3,KEY_SPLINES.EASE_OUT);a=a+(this.wg[b].a.size.y+8)}this.wg[b].eP=w}}},XB:function(a,b){a.BK=this;a.eP=j;a.a.align.x=ig.k.ha;this.wg.xf(a);if(b===g){this.wg.push(a);this.m(a)}else{this.wg.splice(b,0,a);this.SC(a,b)}this.hQ()},q5a:function(a,b){var c=this.Poa(b);this.XB(a,c==-1?g:c)},Mgb:function(a){a.BK=s;this.wg.xf(a);this.hQ()},hQ:function(){this.Ena=j},lb:function(){var a=sc.q.Sr();this.bd(0,!a?0:16,0.2,KEY_SPLINES.EASE_IN_OUT,!a?0.5:0)}});sc.GB=sc.tja.extend({hidden:j,
eP:w,BK:s,f:function(a){this.parent(j,a);this.j("HIDDEN",j)},show:function(a,b){this.parent(a,b);if(this.hidden)this.eP=j;this.hidden=w;this.BK&&this.BK.hQ()},hide:function(a,b){this.parent(a,b);this.hidden=j;this.BK&&this.BK.hQ()},remove:function(){this.parent();this.BK&&this.BK.Mgb(this)}})});ig.G=j;
ig.I("game.feature.timers.gui.timers-hud").J("game.feature.gui.hud.right-hud").H(function(){sc.j1a=ig.X.extend({r:new ig.$("media/gui/basic.png"),Nq:s,wy:s,vA:s,OJ:s,RO:s,n:s,f:function(a){this.parent();this.v(80,8);this.n=a;var a=2,b=s;if(this.n.Nq){this.Nq=new sc.Ib(99,{leadingZeros:2});this.Nq.F(ig.k.ha,ig.k.W);this.Nq.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.m(this.Nq);this.Nq.l(a,0);a=a+16;b=new ig.Dc(this.r,112,0,3,8);
b.F(ig.k.ha,ig.k.W);b.l(a,0);a=a+3;this.m(b)}this.wy=new sc.Ib(99,{leadingZeros:2});this.wy.F(ig.k.ha,ig.k.W);this.wy.l(a,0);a=a+17;this.m(this.wy);b=new ig.Dc(this.r,107,0,3,8);b.F(ig.k.ha,ig.k.W);b.l(a,0);a=a+4;this.m(b);this.vA=new sc.Ib(99,{leadingZeros:2});this.vA.F(ig.k.ha,ig.k.W);this.vA.l(a,0);a=a+17;this.m(this.vA);this.RO=new ig.Dc(this.r,107,0,3,8);this.RO.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.RO.F(ig.k.ha,ig.k.W);
this.RO.l(a,0);a=a+4;this.m(this.RO);this.OJ=new sc.Ib(999,{leadingZeros:2});this.OJ.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.OJ.F(ig.k.ha,ig.k.W);this.OJ.l(a,0);a=a+18;this.m(this.OJ);this.a.size.x=a;this.V6()},update:function(){!sc.q.Mq()&&(!sc.q.xo()&&!this.hidden)&&this.V6()},V6:function(){var a=0,a=this.n.mode==sc.JB.COUNTDOWN?this.n.BJ():this.n.n,b=Math.floor(a*100)%100,c=Math.floor(a%60),d=Math.floor(a/60)%60,a=Math.floor(a/
60/60)%60;this.Nq&&this.Nq.sa(b);this.wy.sa(c);this.vA.sa(d);if(a>0){this.OJ.sa(a);this.OJ.j("DEFAULT",j);this.RO.j("DEFAULT",j)}else{this.OJ.j("HIDDEN",j);this.RO.j("HIDDEN",j)}}});sc.i1a=sc.GB.extend({Zz:s,f:function(a){var b="";switch(a.mode){case sc.JB.COUNTER:b=ig.lang.get("sc.gui.timer-hud.counter");break;case sc.JB.COUNTDOWN:b=ig.lang.get("sc.gui.timer-hud.countdown")}this.parent(b);this.Zz=new sc.j1a(a);this.ds(this.Zz,!sc.q.Qe());sc.K.Na(sc.q,this);sc.K.Na(sc.gg,this);this.hidden&&!sc.q.Qe()&&
this.show()},update:function(){!this.hidden&&this.Hd.length==0&&this.hide()},tna:function(){sc.K.lc(sc.q,this);sc.K.lc(sc.gg,this);this.remove()},lb:function(a,b,c){a==sc.q?a.WC()?this.tna():a.Qe()||a.qA()||sc.Xb.Gt?this.hide():!a.Qe()&&(!a.qA()&&this.Hd.length>0&&!sc.Xb.Gt)&&this.show():a==sc.gg&&(b==sc.iz.KY?this.Zz.n.name==c&&this.tna():b==sc.iz.Pxa&&this.Zz.n.name==c.name&&c.RD&&this.tna())}})});ig.G=j;
ig.I("game.feature.timers.timers-model").J("impact.base.game","game.feature.model.base-model","game.feature.timers.gui.timers-hud").H(function(){function a(a){var c="0000"+Math.floor(a);return c.length>=6?Math.floor(a):c.substr(c.length-2)}sc.JB={COUNTER:0,COUNTDOWN:1};sc.k1a=ig.sf.extend({um:[],gg:{},f:function(){this.parent("Timers");ig.Cc.dg(this);ig.pa.Gp("timers",this,"VarTimersEditor")},gw:function(){if((sc.q.SJ()||!sc.q.Qe())&&!sc.q.Mq()&&!sc.q.xo()&&!sc.q.yV()&&(sc.q.Xm()||sc.q.xo()))for(var a in this.gg){var c=
this.gg[a];if(c.mode==sc.JB.COUNTDOWN&&c.yb())break;c.ga();if(c.mode==sc.JB.COUNTDOWN&&c.yb()){ig.t.Zi();c.RD&&delete this.gg[a];sc.K.wa(this,sc.iz.Pxa,c)}}},nj:function(){for(var a in this.gg)sc.K.wa(this,sc.iz.KY,a);this.gg={}},at:function(){for(var a in this.gg){var c=this.gg[a];if(c.RD){delete this.gg[a];c.ob&&sc.Xb.Sta(c.ob.quest,c.ob.index);sc.K.wa(this,sc.iz.KY,a);ig.t.Zi()}}},D5a:function(a,c,d,e,h,k,l,m){this.gg[a]&&f(Error("Timer with name "+a+" is already in use!"));c=new sc.pBa(a,c,d,
e,h,l,m);this.gg[a]=c;if(k){sc.T.VA.XB(new sc.i1a(c),1);sc.K.wa(this,sc.iz.kTa,c)}ig.t.Zi()},lkb:function(a){if(this.gg[a]){this.gg[a].stop();ig.t.Zi()}},uhb:function(a){if(this.gg[a]){this.gg[a].VK();ig.t.Zi()}},Wq:function(a,c,d){if(this.gg[a]){this.gg[a].reset(c,d);ig.t.Zi()}},IOa:function(a){if(!this.gg[a])return s;var c=this.gg[a];delete this.gg[a];sc.K.wa(this,sc.iz.KY,a);ig.t.Zi();return c},dJa:function(a){return!this.gg[a]?s:this.gg[a].BJ()},$Ia:function(a){return!this.gg[a]?s:this.gg[a].n},
UHa:function(b,c){var d=Math.floor(b*100)%100,e=Math.floor(b/60/60)%60;return(e>0?a(e)+":":"")+a(Math.floor(b/60)%60)+":"+a(Math.floor(b%60))+(c?"."+d:"")},On:function(a,c){if(c[0]=="timers"&&c[1])switch(c[2]){case "time":return this.$Ia(c[1]);case "remainingTime":return this.dJa(c[1]);case "formatTime":return this.UHa(this.$Ia(c[1]),this.gg[c[1]].Nq);case "formatRemainingTime":return this.UHa(this.dJa(c[1]),this.gg[c[1]].Nq)}f(Error("Unsupported var access path: "+a))},Rq:function(a){var c={},d;
for(d in this.gg){var e=this.gg;if(e.RD){e.ob&&sc.Xb.Sta(e.ob.quest,e.ob.index);sc.K.wa(this,sc.iz.KY,d)}else c[d]=this.gg[d].LC()}a.timers=c},Qq:function(a){a=a.timers||{};this.gg={};for(var c in a){var d=a[c];this.gg[c]=new sc.pBa(d.name||s,d.mode||sc.JB.COUNTER,d.duration||0,d.area||s,d.temp||w,d.millis||j,d.quest||s);this.gg[c].n=d.timer||0;this.gg[c].Ck=d.stopped||w}}});sc.pBa=ig.ra.extend({name:s,mode:sc.JB.COUNTER,n:0,duration:0,RD:w,Nq:j,Ub:s,ob:s,Ck:w,f:function(a,c,d,e,h,k,l){this.name=
a||"";this.mode=c||0;this.duration=d||0;this.Ub=e||s;this.RD=h||w;this.Nq=k;this.ob=l||s},ga:function(){if(!this.Ck&&!(this.Ub&&this.Ub!=sc.map.Zh.path)){this.n=this.n+ig.g.uy;if(this.duration&&this.n>=this.duration){this.n=this.duration;this.Ck=j}}},stop:function(){this.Ck=j},VK:function(){this.Ck=w},reset:function(a,c){if(a!=g)this.mode=a;if(c!=g)this.duration=c;this.n=0;this.Ck=w},BJ:function(){return!this.duration?0:Math.max(this.duration-this.n,0)},yb:function(){return!this.duration?w:this.n>=
this.duration},LC:function(){var a={};a.name=this.name;a.mode=this.mode;a.timer=this.n;a.duration=this.duration;a.millis=this.Nq;a.temp=this.RD;a.stopped=this.Ck;if(this.Ub)a.area=this.Ub;this.ob&&(a.quest={quest:this.ob.quest,index:this.ob.index});return a}});sc.iz={};sc.iz.Pxa=0;sc.iz.KY=1;sc.iz.kTa=2;ig.wf(function(){return sc.gg=new sc.k1a})});ig.G=j;
ig.I("game.feature.timers.timers-steps").J("impact.base.action","impact.base.entity","impact.base.event","game.feature.timers.timers-model").H(function(){ig.ma.ADD_TIMER=ig.na.extend({name:s,mode:s,duration:0,Ub:s,RD:s,EQa:w,Nq:j,ob:s,s:new ig.u({attributes:{name:{c:"Timer",d:"Name of the timer to access it. Must be unique"},mode:{c:"Select",d:"Mode the timer should use",Y:sc.JB},Nq:{c:"Boolean",d:"Set false if millis should be shown",ub:j},T:{c:"Boolean",d:"True if a gui should be added to the top-right",
U:j,ub:j},duration:{c:"Number",d:"Time in seconds the timer should update. Only applicable for COUNTDOWN mode.",U:j},Ub:{c:"String",d:"Only update timer when inside this area.",Y:"areas",U:j},RD:{c:"Boolean",d:"True if the timer should be deleted once a map has been switched",U:j,ub:j},ob:{c:"QuestResetSelect",d:"If the timer hits the duration on COUNTDOWN mode or your leave the map and the temp property is set to true.",U:j}}}),f:function(a){this.name=a.name;this.mode=sc.JB[a.mode]||0;this.duration=
a.duration||0;this.Ub=a.area||s;this.RD=a.temp||s;this.EQa=a.gui||w;this.Nq=a.millis!=g?a.millis:j;this.ob=a.quest||s},start:function(){sc.gg.D5a(this.name,this.mode,this.duration,this.Ub,this.RD,this.EQa,this.Nq,this.ob)}});ig.ma.REMOVE_TIMER=ig.na.extend({name:s,s:new ig.u({attributes:{name:{c:"Timer",d:"Name of the timer to remove."}}}),f:function(a){this.name=a.name},start:function(){sc.gg.IOa(this.name)}});ig.ma.RESET_TIMER=ig.na.extend({name:s,mode:s,duration:s,s:new ig.u({attributes:{name:{c:"Timer",
d:"Name of the timer to access it. Must be unique"},mode:{c:"Select",d:"New timer mode",U:j},duration:{c:"Number",d:"New duration time if any. Only valid when timer is COUNTDOWN",U:j}}}),f:function(a){this.name=a.name;this.mode=a.mode?sc.JB[a.mode]:g;this.duration=a.duration||g},start:function(){sc.gg.IOa(this.name,this.mode,this.duration)}});ig.ma.PAUSE_TIMER=ig.na.extend({name:s,s:new ig.u({attributes:{name:{c:"Timer",d:"Name of the timer to pause."}}}),f:function(a){this.name=a.name},start:function(){sc.gg.lkb(this.name)}});
ig.ma.RESUME_TIMER=ig.na.extend({name:s,s:new ig.u({attributes:{name:{c:"Timer",d:"Name of the timer to pause."}}}),f:function(a){this.name=a.name},start:function(){sc.gg.uhb(this.name)}})});ig.G=j;ig.I("game.feature.timers.plug-in").J("game.feature.timers.timers-steps","game.feature.timers.gui.timers-hud","game.feature.timers.timers-model").H(function(){if(window.Yc){wm.pj.push("game.feature.timers.editors.timers-editors");wm.fo(/TIMER/,"cyan")}});ig.G=j;
ig.I("game.feature.achievements.stats-model").J("impact.base.game","impact.feature.storage.storage").H(function(){sc.G0a=ig.sf.extend({um:[],Sb:{},i_:[],fI:0,Iu:w,f:function(){this.parent("Stats");if(window.aj)this.Iu=j;ig.Cc.dg(this);ig.pa.Gp("stat",this,"VarStatEditor");this.Gwa(j)},rG:-100,gw:function(){if((sc.q.SJ()||sc.q.Qe())&&!sc.q.Mq()&&(sc.q.Xm()||sc.q.xo()))if(this.Iu)this.cc("player","playtime",ig.g.uy);else{this.Sb.player||(this.Sb.player={});this.Sb.player.playtime||(this.Sb.player.playtime=
0);this.Sb.player.playtime=this.Sb.player.playtime+ig.g.uy}if(this.fI>0){this.fI=this.fI-ig.g.Da;if(this.fI<=0){this.fI=0;window.aj&&sc.pH&&sc.pH.Wnb(this.i_);sc.K.wa(this,sc.LZ.DEFERRED_STAT_CHANGED,this.i_);this.i_.length=0}}},nj:function(){this.Sb={};this.fI=this.i_.length=0;this.Gwa(w)},On:function(a,b){if(b[0]=="stat"){if(b[1]&&b[2])return this.pg(b[1],b[2]);if(b[1])return this.get(b[1])}f(Error("Unsupported var access path: "+a))},set:function(a,b){if(this.Iu){this.Sb[a]=b;this.IE(a)}},UPa:function(a,
b){if(this.Iu){this.Sb[a]=Math.max(this.Sb[a],b);this.IE(a)}},Csb:function(a,b){if(this.Iu){this.Sb[a]=Math.min(this.Sb[a],b);this.IE(a)}},add:function(a,b){if(this.Iu){this.Sb[a]=this.Sb[a]?this.Sb[a]+b:b;this.IE(a)}},Xsb:function(a,b){if(this.Iu){this.Sb[a]=this.Sb[a]?this.Sb[a]-b:b;this.IE(a)}},Hua:function(a,b,c){if(this.Iu){this.Sb[a]||(this.Sb[a]={});this.Sb[a][b]=c;this.IE(a,b)}},cc:function(a,b,c){if(this.Iu){this.Sb[a]||(this.Sb[a]={});this.Sb[a][b]=this.Sb[a][b]?this.Sb[a][b]+c:c;this.IE(a,
b)}},XX:function(a,b,c){if(this.Iu){this.Sb[a]||(this.Sb[a]={});this.Sb[a][b]=this.Sb[a][b]?this.Sb[a][b]-c:c;this.IE(a,b)}},Bsb:function(a,b,c){if(this.Iu){this.Sb[a]||(this.Sb[a]={});this.Hua(a,b,this.Sb[a][b]==g?c:Math.min(this.Sb[a][b],c))}},lfa:function(a,b,c){if(this.Iu){this.Sb[a]||(this.Sb[a]={});this.Hua(a,b,this.Sb[a][b]==g?c:Math.max(this.Sb[a][b],c));this.IE(a,b)}},get:function(a){return this.Sb[a]},pg:function(a,b){this.Sb[a]||(this.Sb[a]={});return this.Sb[a][b]},bsb:function(){for(var a in this.Sb)if(this.Sb[a]==
{})for(var b in a)console.log("  "+b+": "+this.Sb[a][b]);else console.log(a+": "+this.Sb[a])},setActive:function(a){this.Iu=a||w},Gwa:function(a){var b=parseInt(localStorage.getItem("ccLocalStatBoots"))||0;a&&b++;localStorage.setItem("ccLocalStatBoots",b);this.Sb.gameBoots=b},Rq:function(a){a.playtime=this.pg("player","playtime");a.stats=ig.copy(this.Sb)},Qq:function(a){this.Sb=a.stats||{};this.Iu=j;this.Gwa(w)},IE:function(a,b){this.i_.push({key:a,nrb:b});if(this.fI<=0)this.fI=1}});sc.LZ={};sc.LZ.STAT_CHANGED=
0;sc.LZ.DEFERRED_STAT_CHANGED=1;ig.wf(function(){return sc.ta=new sc.G0a})});ig.G=j;
ig.I("game.feature.achievements.achievements").J("impact.base.game","impact.base.loader","impact.base.vars","impact.feature.database.database","game.config","game.feature.achievements.stats-model").H(function(){var a=new ig.ce("");sc.qTa=ig.sf.extend({um:[],bo:s,uR:0,Ku:s,Sqa:[],f:function(){this.parent("Achievements");sc.K.Na(sc.ta,this);this.H3a();if(window.Yc){ig.Dj.dg("achievements","FeatEnumList","Achievements");ig.Dj.dg("aatest","FeatList2","TESTING GROUNDS")}ig.Cc.dg(this)},dqb:function(a){var c=
0,d=0,e;for(e in this.bo){this.bo[e].triggered&&c++;d++}return a?c/d:c},Mga:1E4,MP:function(){this.Ku.varConditions&&this.wla(this.Ku.varConditions)},mtb:function(a){if(this.bo[a]&&!this.bo[a].triggered){this.bo[a].triggered=j;this.uR=this.uR+(this.bo[a].points||0);this.TBa(this.bo[a]);sc.K.wa(this,sc.Xga.$0a,this.bo[a])}},rob:function(){for(var a in this.bo)this.bo[a].triggered=w;ig.Cc.fua()},ulb:function(){this.uR=0;for(var a in this.bo){var c=this.bo[a];if(c.triggered)this.uR=this.uR+(c.sb||0)}},
TBa:function(a){this.Sqa.push(a);this.Sqa.length>=3&&this.Sqa.shift()},H3a:function(){this.Ku={};this.bo=ig.Dj.get("achievements");var a=s,c=s,d=0,e;for(e in this.bo){a=this.bo[e];a.key=e;if(!a.stats||a.stats.length==0){if(a.condition){this.Ku.varConditions||(this.Ku.varConditions=[]);this.Ku.varConditions.push(a)}}else for(d=a.stats.length;d--;){c=a.stats[d];this.Ku[c.key]||(this.Ku[c.key]=[]);this.Ku[c.key].push(a)}}ig.hM&&ig.log("%cDATABASE: %cLoaded Achievements: \n%O","color:orange","",this.Ku)},
wla:function(b){for(var c=b.length,d=0,e=sc.ta,h=s,k,l,m=w;c--;){h=b[c];if(!h.triggered){d=h.stats.length;for(m=j;d--;){k=h.stats[d];l=k.mapKey?e.pg(k.key,k.mapKey):e.get(k.key);if(!this.B2a(k.compare,l,k.value)){m=w;break}}if(h.condition&&m){a.fL(h.condition);m=a.evaluate()}if(m){h.triggered=j;this.uR=this.uR+(h.points||0);this.TBa(h);ig.Cc.fua()}}}},B2a:function(a,c,d){if(a=="min")return c>=d;if(a=="max")return c<=d;if(a=="equal")return c==d},zsa:function(a){var c={},d;for(d in this.bo)this.bo[d].triggered&&
(c[d]=j);a.feats=c},ysa:function(a){var a=a.feats,c;for(c in a)this.bo[c]&&a[c]==j&&(this.bo[c].triggered=j);this.ulb()},lb:function(a,c,d){if(c==sc.LZ.STAT_CHANGED)this.Ku[d.key]&&this.wla(this.Ku[d.key]);else if(c==sc.LZ.DEFERRED_STAT_CHANGED)for(a=d.length;a--;)this.Ku[d[a].key]&&this.wla(this.Ku[d[a].key])}});sc.Xga={};sc.Xga.TRIGGERED=0;ig.wf(function(){return sc.CHa=new sc.qTa})});ig.G=j;
ig.I("game.feature.achievements.gui.feat-hud").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.base.image","impact.base.lang","game.feature.gui.hud.right-hud","game.feature.achievements.achievements").H(function(){sc.LVa=ig.X.extend({n:0,S8a:s,Va:s,f:function(a){this.parent();this.S8a=a||s;this.n=3;var b=sc.options.get("item-hud-size")==sc.dS.Ki,a=ig.lang.get("sc.gui.feats.unlocked")+" \\c[3]"+new ig.Oa(a.name)+"\\c[0]! + ["+a.sb+"]";this.Va=new sc.ea(a,{font:b?sc.Ka.font:sc.Ka.Ve});
this.Va.F(ig.k.fb,ig.k.gb);this.m(this.Va);this.v(this.Va.a.size.x,b?18:8);this.a.cb.x=this.a.size.x;this.a.cb.y=0},bH:function(){if(this.n>0)this.n=this.n-ig.g.ga},Nwa:function(a){if(a){if(this.Va.font==sc.Ka.font)return;this.Va.BQ(sc.Ka.font);this.xz.v(sc.uf.Bt)}else{if(this.Va.font==sc.Ka.Ve)return;this.Va.BQ(sc.Ka.Ve);this.xz.v(sc.uf.Kc)}this.v(this.Va.a.size.x,a?18:8)}});sc.KVa=sc.GB.extend({f:function(){this.parent(ig.lang.get("sc.gui.feats.hud-title"));sc.K.Na(sc.CHa,this);sc.K.Na(sc.options,
this)},de:function(a){a=new sc.LVa(a);this.ds(a,j);this.hidden&&!sc.q.Qe()&&this.show()},update:function(){if(!sc.q.Mq()&&!sc.q.xo()&&!this.hidden){for(var a=this.Hd.length,b=s;a--;){b=this.Hd[a].Xi;b.bH();if(b.n<=0){b=this.f5(a);if(a==0&&this.Hd.length==0)b.a.cb.y=b.a.size.y/2;else{b.a.cb.y=0;b.a.vb.p=KEY_SPLINES.EASE_OUT}}}!this.hidden&&this.Hd.length==0&&this.hide()}},ula:function(a){for(var b=this.Hd.length,c=s;b--;){c=this.Hd[b];c.Xi.Nwa(a);c.uh(c.Xi)}this.dQ()},lb:function(a,b,c){if(a==sc.CHa){if(b==
sc.Xga.$0a){console.log(c);this.de(c)}}else if(a==sc.options&&b==sc.iq.Tw){a=sc.options.get("item-hud-size");if(a!=this.size){this.ula(a==sc.dS.Ki);this.size=a}}}})});ig.G=j;ig.I("game.feature.achievements.plug-in").J("game.feature.achievements.achievements","game.feature.achievements.stats-model","game.feature.achievements.gui.feat-hud").H(function(){window.Yc&&wm.pj.push("game.feature.achievements.editors.feat-editors")});ig.G=j;
ig.I("game.feature.auto-control.auto-control").J("impact.base.game").H(function(){sc.pTa=["left","right"];sc.g7={MOUSE:ig.Gb.gm,GAMEPAD:ig.Gb.Jc};sc.lxa=["menu","quickmenu","menuConfirm","menuBack","menuDown","menuUp","menuLeft","menuRight","menuHotkeyHelp","menuHotkeyHelp2","menuHotkeyHelp3","menuCircleLeft","menuCircleRight","questCircleLeft","questCircleRight","heatMode","coldMode","shockMode","waveMode","moveDirX","moveDirY","aiming","charge","dashing","guarding"];sc.uTa=ig.sf.extend({Sh:{Ea:Vec2.create(),
start:Vec2.create(),target:Vec2.create(),n:0,duration:0},axis:{left:{x:0,y:0,n:0},right:{x:0,y:0,n:0}},ug:{},f:function(){this.parent("AutoControl")},get:function(a){return a=="mouseX"?this.Sh.Ea.x:a=="mouseY"?this.Sh.Ea.y:a=="axisLeftX"?this.axis.left.x:a=="axisLeftY"?this.axis.left.y:a=="axisRightX"?this.axis.right.x:a=="axisRightY"?this.axis.right.y:a=="leftStickDown"?this.axis.left.x||this.axis.left.y:a=="rightStickDown"?this.axis.right.x||this.axis.right.y:!this.ug[a]?w:this.ug[a].value},Tc:M("Ga"),
setActive:function(a){if(this.Ga=a){sc.V.tPa(this);sc.q.fhb();Vec2.assign(this.Sh.Ea,ig.input.Sh)}else{sc.V.tPa(s);this.ug={};this.Uua("left",0,0,0);this.Uua("right",0,0,0)}},JK:0,BA:function(){if(this.Ga){if(this.Sh.n){this.Sh.n=this.Sh.n-ig.g.Da;if(this.Sh.n<0)this.Sh.n=0;var a=1-this.Sh.n/this.Sh.duration,a=KEY_SPLINES.EASE_IN_OUT.get(a);Vec2.Zm(this.Sh.start,this.Sh.target,a,this.Sh.Ea)}for(var b in this.ug){a=this.ug[b];if(a.target){a.value=a.target;a.target=s}else a.F2||delete this.ug[b]}for(b in this.axis){a=
this.axis[b];if(a.n){a.n=a.n-ig.g.Da;if(a.n<=0){a.n=0;a.x=a.y=0}}}}},yib:function(a,b,c){if(c){Vec2.assign(this.Sh.start,this.Sh.Ea);Vec2.Sa(this.Sh.target,a,b)}else Vec2.Sa(this.Sh.Ea,a,b);this.Sh.duration=c;this.Sh.n=c},Uua:function(a,b,c,d){this.axis[a].x=b;this.axis[a].y=c;this.axis[a].n=d},If:function(a,b,c){this.ug[a]={target:b,value:s,F2:c||w}},J6a:function(a){delete this.ug[a]}});ig.wf(function(){return sc.Wa=new sc.uTa})});ig.G=j;
ig.I("game.feature.auto-control.auto-control-steps").J("impact.base.event","game.feature.auto-control.auto-control").H(function(){ig.ma.START_AUTO_CTRL=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(a,b){sc.q.oU();b.H4=j;b.pQ=ig.bl.PARALLEL;sc.Wa.setActive(j)}});ig.ma.END_AUTO_CTRL=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(a,b){b.H4=w;b.pQ=ig.bl.BLOCKING;sc.Wa.setActive(w);sc.q.Zna()}});ig.ma.SET_AUTO_CTRL_MOUSE=ig.na.extend({i:Vec2.create(),duration:0,s:new ig.u({attributes:{i:{c:"Vec2",
d:"Position of mouse in screen pixels. 0,0 = top left"},duration:{c:"Number",d:"Duration to move mouse to this position"}}}),f:function(a){Vec2.assign(this.i,a.pos);this.duration=a.duration||0},start:function(){sc.Wa.Tc()||f(Error("Use Auto Ctrl Step outside of 'AUTO_CONTROL' event"));ig.input.bb==ig.Gb.gm&&sc.Wa.yib(this.i.x,this.i.y,this.duration)}});ig.ma.SET_AUTO_CTRL_STICK=ig.na.extend({hR:s,value:Vec2.create(),duration:0,s:new ig.u({attributes:{hR:{c:"String",d:"Type of Stick",Y:sc.pTa},value:{c:"Vec2",
d:"Type of value for the axis"},duration:{c:"Number",d:"Time in seconds to hold the stick in that direction. If 0 = hold forever."}}}),f:function(a){this.hR=a.stick||"left";Vec2.assign(this.value,a.value);this.duration=a.duration||0},start:function(){sc.Wa.Tc()||f(Error("Use Auto Ctrl Step outside of 'AUTO_CONTROL' event"));ig.input.bb==ig.Gb.Jc&&sc.Wa.Uua(this.hR,this.value.x,this.value.y,this.duration)}});ig.ma.SET_AUTO_CTRL_ACTION=ig.na.extend({action:s,value:s,F2:w,qF:s,s:new ig.u({attributes:{action:{c:"String",
d:"Kind of action",Y:sc.lxa},value:{c:"Number",d:"Value for action. 1 usually makes sense",ub:1},F2:{c:"Boolean",d:"True if action should be hold"},qF:{c:"String",d:"Only do action for a specific device",Y:sc.g7,Oi:j}}}),f:function(a){this.action=a.action||s;this.value=a.value||0;this.F2=a.hold||w;this.qF=sc.g7[a.deviceFilter]||s},start:function(){sc.Wa.Tc()||f(Error("Use Auto Ctrl Step outside of 'AUTO_CONTROL' event"));this.qF&&ig.input.bb!=this.qF||sc.Wa.If(this.action,this.value,this.F2)}});ig.ma.CLEAR_AUTO_CTRL_ACTION=
ig.na.extend({action:s,qF:s,s:new ig.u({attributes:{action:{c:"String",d:"Kind of action",Y:sc.lxa},qF:{c:"String",d:"Only do action for a specific device",i3a:sc.g7,Oi:j}}}),f:function(a){this.action=a.action||s;this.qF=sc.g7[a.deviceFilter]||s},start:function(){sc.Wa.Tc()||f(Error("Use Auto ntrl Step outside of 'AUTO_CONTROL' event"));this.qF&&ig.input.bb!=this.qF||sc.Wa.J6a(this.action)}})});ig.G=j;ig.I("game.feature.auto-control.plug-in").J("game.feature.auto-control.auto-control","game.feature.auto-control.auto-control-steps").H(F());
ig.G=j;
ig.I("game.feature.inventory.inventory").J("impact.base.loader","game.config").H(function(){sc.Hm={CONS:"CONS",EQUIP:"EQUIP",TRADE:"TRADE",KEY:"KEY"};sc.Of={HEAD:"HEAD",ARM:"ARM",TORSO:"TORSO",FEET:"FEET"};sc.YY={LOW:0,NORMAL:1,RARE:2,LEGENDARY:3,UNIQUE:4};sc.ih={ORDER:0,NAME:1,AMOUNT:2,RARITY:3,HP:4,ATTACK:5,DEFENSE:6,FOCUS:7};sc.BWa=ig.SH.extend({rc:[],f:function(){if(!ig.Qya)return ig.warn("Can't initialize item database because no ig.ITEM_DATABASE was provided!");this.parent()},getItem:function(a){return a<0?
s:this.rc[a]},v$a:function(a){a=this.getItem(a);return!a?s:ig.Oa.wc(a.name)},Gpb:function(a){return this.u$a(a)==-1?s:this.rc[i]},u$a:function(a){for(var a=a.trim().toLowerCase(),b=this.rc.length;b--;)if(this.rc[b].name.en_US.toLowerCase()==a)return b;return-1},S1:function(a){if(this.rV(a)){for(var b=this.rc[a].stats,c=b.length,d=s,e="";c--;)(d=sc.Sg[b[c]])&&d.change!=sc.Qf.HEAL&&(e=e+("\\i["+(d.icon||"stat-default")+"]"+("\\i["+d.grade+"]"||"")));return e+" "+(this.rc[a].time||0)+"sec"}},rV:function(a){return this.rc[a].isBuff},
gcb:function(a){return this.rc[a].type==sc.Hm.EQUIP},uo:function(a){switch(a){case sc.YY.LOW:return"";case sc.YY.NORMAL:return"-normal";case sc.YY.RARE:return"-rare";case sc.YY.LEGENDARY:return"-legend";case sc.YY.UNIQUE:return"-unique"}},w$a:function(a){a=this.rc[a];return!a?"":"\\i["+(a.icon+this.uo(a.rarity||0)||"item-default")+"]"+ig.Oa.wc(a.name)},t$a:function(a){return this.rc[a]?ig.Oa.wc(this.rc[a].description):""},hA:function(a,b,c){for(var d=this.rc.length,e=sc.Pb,h=0,k=0;d--;)if(!e.getItem(d).name.en_US.Jva("-"))if(b)if(c){var l=
e.getItem(d);if(l.type==b&&l.equipType==c){sc.ta.pg("items",d)&&h++;k++}}else{if(e.getItem(d).type==b){sc.ta.pg("items",d)&&h++;k++}}else{sc.ta.pg("items",d)&&h++;k++}return a?h/k:h},Us:function(){$.ajax({dataType:"json",url:ig.root+ig.Qya+ig.kl(),context:this,success:this.onload.bind(this),error:this.onerror.bind(this)})},onerror:function(a){this.rc={};this.zk(j);ig.error("Could not load Inventory json file! Event: %O",a)},onload:function(a){this.rc=a.items;for(var b=this.rc.length,c=s;b--;){c=this.rc[b];
c.effect&&(c.effect.sheet&&c.effect.name)&&(c.effect=new ig.al(this.rc[b].effect));this.N3a(c)&&(c.isBuff=j)}this.zk(j);ig.hM&&ig.log("%cLOADABLE: %cLoaded Inventory: \n%O","color:blue","",a)},N3a:function(a){if(a.stats)for(var b=a.stats.length;b--;)if(sc.Sg[a.stats[b]].change!=sc.Qf.HEAL)return j;return w}});sc.Pb=new sc.BWa});ig.G=j;ig.I("game.feature.inventory.plug-in").J("game.feature.inventory.inventory").H(function(){window.Yc&&wm.pj.push("game.feature.inventory.editors.item-editors")});
ig.G=j;
ig.I("game.feature.ar.gui.ar-box").J("impact.feature.gui.gui").H(function(){sc.JR={NO_LINE:0,LINE_FILL:1,LINE_EMPTY:2};sc.wY={GREEN:{bPa:"#166c70",KL:0},RED:{bPa:"#6e0000",KL:16}};ig.Ji.ARBox=ig.X.extend({N:{DEFAULT:{state:{},time:0.25,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:1,Ma:0},time:0.25,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/map-ar.png"),target:s,text:s,n:0,Fa:0,Dp:Vec2.pc(-1,-1),jh:Vec2.pc(-1,-1),kT:0,mode:sc.JR.NO_LINE,color:s,Eq:w,f:function(a,b,c,d,e){this.parent();this.rb(0,4);
this.a.zIndex=-50;this.target=a;this.text=b;this.Fa=this.n=c||0;this.mode=d||w;this.color=e||sc.wY.GREEN;this.a.TC=j;a=new sc.ea(this.text,{speed:ig.rd.Nd.Ki,font:sc.Ka.Ve});a.F(ig.k.za,ig.k.gb);this.m(a);this.v(a.a.size.x+8,a.a.size.y+4+(this.mode?2:0));this.a.cb.y=a.a.size.y/2+2;this.j("HIDDEN",j);this.target?this.sk(w):this.j("DEFAULT")},update:function(){if(this.n){this.n=this.n-ig.g.ga;this.n<=0&&this.remove()}this.target||this.remove();this.target.Ne&&this.remove();this.target instanceof ig.ya.Combatant&&
this.target.Yg()&&this.remove();this.sk(j)},va:function(a){a.Ec(this.color.bPa,2,2,this.a.size.x-4,this.a.size.y-4).wd(0.5);if(this.Os()){var b=this.qpa();this.a.fj=="DEFAULT"&&(b=1-b);a.ax().wd(b).Te("white",2,2,this.a.size.x-4,this.a.size.y-4)}else{a.ho().wd(0.5);a.ia(this.r,0,0,0,0+this.color.KL,8,8);a.ia(this.r,this.a.size.x-8,0,8,0+this.color.KL,8,8);a.ia(this.r,this.a.size.x-8,this.a.size.y-8,8,8+this.color.KL,8,8);a.ia(this.r,0,this.a.size.y-8,0,8+this.color.KL,8,8);a.Po();this.kT<=3?a.ia(this.r,
-13,this.a.size.y-3,32,0+this.color.KL,16,16,j):this.kT>=this.a.size.x-3?a.ia(this.r,this.a.size.x-3,this.a.size.y-3,32,0+this.color.KL,16,16):a.ia(this.r,this.kT-8,this.a.size.y-1,16,0+this.color.KL,16,16)}if(this.mode&&this.Fa){a.Ec("black",4,this.a.size.y-2-2,this.a.size.x-8,1);b=(this.n/this.Fa).Vb(0,1);this.mode==sc.JR.LINE_FILL&&(b=1-b);a.Ec("white",4,this.a.size.y-2-2,(this.a.size.x-8)*b,1)}},remove:function(){this.Eq=j;this.j("HIDDEN",w,j)},ol:M("Eq"),Zr:function(){this.remove()},eG:function(){this.remove()},
zka:function(){if(this.n>=this.yda)return this.nR;var a=this.n/this.yda;return Math.floor((1-a)*this.aca+a*this.nR)},sk:function(a){var b=this.a,c=this.target.kb(),d=Math.round(c.x)-ig.t.screen.x,c=Math.round(c.y-this.target.b.i.z-this.target.b.size.z/2)-ig.t.screen.y,e=this.target.b.size.x/2,h=(this.target.b.size.y+this.target.b.size.z)/2-4,k=Math.max(e,h),l=d-ig.g.width/2,m=l>0?1:-1;if(a){if(m!=this.Dp.x&&Math.abs(l)>16)this.Dp.x=m;this.jh.x=this.jh.x*0.9+this.Dp.x*0.1;this.jh.y=this.jh.y*0.9+this.Dp.y*
0.1}else{this.Dp.x=this.jh.x=m;this.Dp.y=this.jh.y=-1}b.i.x=d+this.jh.x*(e+b.size.x/2)-b.size.x/2;b.i.y=c+this.jh.y*(h+b.size.y/2)-b.size.y/2;b.i.x=b.i.x.Vb(0,ig.g.width-b.size.x);b.i.y=b.i.y.Vb(0,ig.g.height-b.size.y);this.kT=d-b.i.x;b.qj||(this.kT<-8-k||this.kT>b.size.x+k+8||b.i.y>c||b.i.y<c-k-b.size.y-8?this.j("HIDDEN"):this.j("DEFAULT"))}})});ig.G=j;
ig.I("game.feature.ar.ar-steps").J("impact.base.action","impact.base.event","game.feature.ar.gui.ar-box").H(function(){ig.ma.SHOW_AR_MSG=ig.na.extend({P:s,text:s,time:s,mode:w,color:s,ii:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to show AR Message on"},text:{c:"LangLabel",d:"AR Text to display"},time:{c:"Number",d:"Time in seconds the message should be visible. 0 = forever"},mode:{c:"String",d:"Mode of AR display.",Y:sc.JR},color:{c:"String",d:"Color of AR display.",Y:sc.wY},ii:{c:"String",
d:"If provided: Show AR display to sub part of entity",U:j}},width:400}),f:function(a){this.P=a.entity;this.text=new ig.Oa(a.text);this.time=a.time;this.mode=sc.JR[a.mode];this.color=sc.wY[a.color];this.ii=a.partName},start:function(a,b){var c=ig.Ra.pd(this.P,b),d=c;if(this.ii)for(var c=c.b.xl,e=c.length;e--;)if(c[e].P.ii==this.ii){d=c[e].P;break}ig.T.Mc(new ig.Ji.ARBox(d,this.text.toString(),this.time,this.mode,this.color))}});ig.Ha.SHOW_AR_MSG=ig.Pa.extend({text:s,time:s,mode:w,color:s,vr:w,ii:s,
s:new ig.u({attributes:{text:{c:"LangLabel",d:"AR Text to display"},time:{c:"Number",d:"Time in seconds the message should be visible. 0 = forever"},mode:{c:"String",d:"Mode of AR display.",Y:sc.JR},color:{c:"String",d:"Color of AR display.",Y:sc.wY},vr:{c:"Boolean",d:"If true, keep Message even after action is finished or canceled"},ii:{c:"String",d:"If provided: Show AR display to sub part of entity",U:j}}}),f:function(a){this.text=new ig.Oa(a.text);this.time=a.time;this.mode=sc.JR[a.mode];this.color=
sc.wY[a.color];this.vr=a.actionDetached||w;this.ii=a.partName},start:function(a){var b=a;if(this.ii)for(var c=a.b.xl,d=c.length;d--;)if(c[d].P.ii==this.ii){b=c[d].P;break}b=new ig.Ji.ARBox(b,this.text.toString(),this.time,this.mode,this.color);ig.T.Mc(b);this.vr||a.fp(b);a.yI(b)}});ig.Ha.CLEAR_AR_MSG=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),w1:function(a){return a instanceof ig.Ji.ARBox},start:function(a){a.CT(this.w1.bind(this))}})});ig.G=j;
ig.I("game.feature.ar.plug-in").J("game.feature.ar.gui.ar-box","game.feature.ar.ar-steps").H(F());ig.G=j;
ig.I("game.feature.npc.entities.sc-actor").J("impact.base.actor-entity","impact.feature.effect.effect-sheet").H(function(){function a(a,c){var d=ig.mc.FO(a,j,j),e=sc.$k[c]||sc.$k.none;return e[d]||e[ig.UH]}sc.$k={};sc.$k.none={};sc.$k.none[ig.UH]={};sc.$k["default"]={};sc.$k["default"][ig.UH]={Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/land.ogg",1,0.1),Hy:new ig.da("media/sound/move/step-2.ogg",0.5,0.1),Iy:new ig.da("media/sound/move/step-1.ogg",0.5,0.1)};sc.$k["default"][ig.Gd.CARDBOARD]=
{Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/cardboard-land.ogg",0.5,0.1),Hy:new ig.da("media/sound/move/cardboard-step-2.ogg",0.5,0.1),Iy:new ig.da("media/sound/move/cardboard-step-1.ogg",0.5,0.1)};sc.$k["default"][ig.Gd.EARTH]={Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/grass-land.ogg",1,0.1),Hy:new ig.da("media/sound/move/earth-step-1.ogg",1,0.1),Iy:new ig.da("media/sound/move/earth-step-2.ogg",1,0.1),Lo:"dust"};sc.$k["default"][ig.Gd.GRASS]=
{Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/grass-land.ogg",1,0.1),Hy:new ig.da("media/sound/move/grass-step-2.ogg",1,0.1),Iy:new ig.da("media/sound/move/grass-step-1.ogg",1,0.1)};sc.$k["default"][ig.Gd.WOOD]={Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/wooden-land.ogg",0.5,0.1),Hy:new ig.da("media/sound/move/wooden-step-2.ogg",0.5,0.1),Iy:new ig.da("media/sound/move/wooden-step-1.ogg",0.5,0.1)};sc.$k["default"][ig.Gd.STONE]=
{Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/stone-land.ogg",0.7,0.1),Hy:new ig.da("media/sound/move/stone-step-2.ogg",0.8,0.1),Iy:new ig.da("media/sound/move/stone-step-1.ogg",0.8,0.1)};sc.$k["default"][ig.Gd.METALSOLID]={Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/metal-solid-land.ogg",0.7,0.1),Hy:new ig.da("media/sound/move/metal-solid-step-2.ogg",0.8,0.1),Iy:new ig.da("media/sound/move/metal-solid-step-1.ogg",0.8,0.1)};
sc.$k["default"][ig.Gd.SNOW]={Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/snow-land.ogg",0.6,0.1),Hy:new ig.da("media/sound/move/snow-step-1.ogg",0.5,0.1),Iy:new ig.da("media/sound/move/snow-step-2.ogg",0.5,0.1)};sc.$k["default"][ig.Gd.ICE]={Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/ice-land.ogg",1,0.1),Hy:new ig.da("media/sound/move/ice-step-1.ogg",1,0.1),Iy:new ig.da("media/sound/move/ice-step-2.ogg",1,0.1)};sc.$k["default"][ig.Gd.SAND]=
{Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/snow-land.ogg",0.6,0.1),Hy:new ig.da("media/sound/move/snow-step-1.ogg",0.5,0.1),Iy:new ig.da("media/sound/move/snow-step-2.ogg",0.5,0.1)};sc.$k["default"][ig.Gd.QUICKSAND]={Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/snow-land.ogg",0.6,0.1),Hy:new ig.da("media/sound/move/snow-step-1.ogg",0.5,0.1),Iy:new ig.da("media/sound/move/snow-step-2.ogg",0.5,0.1)};sc.$k["default"][ig.Gd.SHALLOW_WATER]=
{Qh:new ig.da("media/sound/move/jump.ogg",0.4,0.1),Ts:new ig.da("media/sound/move/ice-land.ogg",1,0.1),Hy:new ig.da("media/sound/move/ice-step-1.ogg",1,0.1),Iy:new ig.da("media/sound/move/ice-step-2.ogg",1,0.1),Lo:"water"};sc.$k.defaultQuiet={};sc.$k.defaultQuiet[ig.UH]={Qh:new ig.da("media/sound/move/jump.ogg",0.2,0.1),Ts:new ig.da("media/sound/move/land.ogg",0.5,0.1)};sc.$k.giantMachine={};sc.$k.giantMachine[ig.UH]={Qh:new ig.da("media/sound/boss/crab/robot-jump.ogg",0.8),Ts:new ig.da("media/sound/boss/crab/robot-land.ogg",
0.8)};sc.$k.colDngBoss={};sc.$k.colDngBoss[ig.UH]={Qh:new ig.da("media/sound/boss/crab/robot-jump.ogg",0.8),Ts:new ig.da("media/sound/boss/drill-boss/drill-boss-walk-2.ogg",0.8)};sc.Zb=ig.Zb.extend({LG:"default",Lo:{frames:0,Pqa:0,O:new ig.ae("stepFx")},Af:{path:s,D1:0,HLa:0},rga:w,n6:{mc:0,IFa:0},WO:s,f:function(a,c,d,e){this.parent(a,c,d,e);this.Af.path=ig.navigation.BF(this);this.WO=new ig.wWa(this)},update:function(){this.n6.mc=ig.mc.FO(this.b,j);this.n6.IFa=ig.mc.FO(this.b,w);this.FNa();this.WO.Vk();
var b=this.Af;if(b.path.uU){b.D1=b.D1+ig.g.ga;if(b.path.uU!=b.HLa){b.HLa=b.path.uU;this.l4(b.D1)}}else b.D1=0;this.parent();if(!this.Zg&&!this.lm&&this.Lo.frames&&!Vec2.Tl(this.b.Eb)&&this.b.kg>=ig.jTa){b=this.Za.GIa();if(b!=this.Lo.Pqa){var c=a(this.b,this.LG),d=w;if(b==this.Lo.frames[0]){d=j;ig.Tg.ah(c.Hy,this);this.mD&&this.mD("step")}if(b==this.Lo.frames[1]){d=j;ig.Tg.ah(c.Iy,this);this.mD&&this.mD("step")}d&&c.Lo&&this.Lo.O.Ya(c.Lo,this);this.Lo.Pqa=b}}else this.Lo.Pqa=-1},FNa:F(),mD:s,lsa:function(b,
c){var d=a(this.b,this.LG);c||ig.Tg.ah(d.Qh,this);var e=this.kb();ig.t.O.aO.eh("medium",e.x,e.y,this.b.i.z);this.mD&&this.mD("jump");d.Lo&&this.Lo.O.Ya(d.Lo,this)},DA:function(b){this.parent(b);if((this.rga||this.b.i.z>=-1)&&!this.b.nl&&!this.b.nd.height){var c=this.kb();if(b<0){var d=a(this.b,this.LG);ig.Tg.ah(d.Ts,this);d.Lo&&this.Lo.O.Ya(d.Lo,this)}if(b<-150){this.rga?ig.t.O.aO.eh("giantHole",c.x,c.y,this.b.i.z):this.b.size.x>100?ig.t.O.aO.eh("giant",c.x,c.y,this.b.i.z):this.b.size.x>20?ig.t.O.aO.eh("large",
c.x,c.y,this.b.i.z):ig.t.O.aO.eh("medium",c.x,c.y,this.b.i.z);this.mD&&this.mD("land")}}},l4:F(),tj:function(){this.parent();this.WO.Ueb()}});ig.Ro.Pmb={B0:sc.Zb,eS:{stepSfxFrames:0,soundType:"default"},N1:F(),apply:function(a){a.Lo.frames=this.stepSfxFrames;a.LG=this.soundType},load:function(a){this.stepSfxFrames=a.Lo.frames;this.soundType=a.LG}}});ig.G=j;
ig.I("game.feature.base.action-steps").J("impact.base.action","impact.base.actor-entity","game.feature.npc.entities.sc-actor").H(function(){ig.Ha.SET_SOUNDTYPE=ig.Pa.extend({value:Vec2.create(),s:new ig.u({attributes:{value:{c:"String",d:"New Soundtype",Y:sc.$k}}}),f:function(a){this.value=a.value},xa:function(a){a.LG=this.value;return j}})});ig.G=j;
ig.I("game.feature.base.event-steps").J("impact.base.utils","impact.base.event","impact.base.action").H(function(){ig.ma.CHANGE_PLAYER_HP=ig.na.extend({zb:0,s:new ig.u({attributes:{zb:{c:"Number",d:"the delta to remove (-) or add."}}}),f:function(a){this.zb=a.amount||0},start:function(){this.zb>0?sc.q.R.ba.mV(this.zb):this.zb<0&&sc.q.R.ba.c5(-this.zb)}});ig.ma.SET_TELEPORT_COLOR=ig.na.extend({color:s,qh:w,s:new ig.u({attributes:{color:{c:"Color",d:"Color of overlay"},qh:{c:"Boolean",d:"Apply color in lighter mode"}}}),
f:function(a){this.color=new ig.Yn(a.color);this.qh=a.lighter||w},start:function(){ig.t.sfa(this.color.Uh,this.color.Oh,this.color.Mh,this.qh)}});ig.ma.SET_TELEPORT_TIME=ig.na.extend({color:s,qh:w,s:new ig.u({attributes:{fadeIn:{c:"Number",d:"Color fade in time in seconds"},fadeOut:{c:"Number",d:"Color fade out time in seconds"}}}),f:function(a){this.fadeIn=a.fadeIn||0;this.fadeOut=a.fadeOut||0},start:function(){ig.t.Vua(this.fadeIn,this.fadeOut)}});ig.ma.LOAD=ig.na.extend({s:new ig.u({attributes:{}}),
f:F(),start:function(){ig.Cc.Tcb()}});ig.ma.SAVE=ig.na.extend({De:s,s:new ig.u({attributes:{De:{c:"Entity",d:"Marker to place entity at",U:j}}}),f:function(a){this.De=a.marker},start:function(a,c){var d=s,e=ig.Ra.pd(this.De,c);e&&e.name&&(d=new ig.jz(e.name));ig.Cc.gPa(g,d)}});ig.ma.GOTO_TITLE=ig.na.extend({s:new ig.u({attributes:{}}),start:function(){ig.t.rJa()}});ig.ma.ADD_MONEY=ig.na.extend({zb:0,s:new ig.u({attributes:{zb:{c:"Number",d:"Amount to add",ub:0}},label:function(){return"<b>ADD MONEY: </b> <em>"+
this.zb+"</em>"}}),f:function(a){this.zb=a.amount||0},start:function(){this.zb>0&&sc.q.R.D9(this.zb)}});ig.ma.REMOVE_MONEY=ig.na.extend({zb:0,s:new ig.u({attributes:{zb:{c:"Number",d:"Amount to remove",ub:0}},label:function(){return"<b>REMOVE MONEY: </b> <em>"+this.zb+"</em>"}}),f:function(a){this.zb=a.amount||0},start:function(){this.zb>0&&sc.q.R.Ita(this.zb)}});ig.ma.DROP_ITEM_ENTITY=ig.na.extend({P:s,item:0,zb:0,s:new ig.u({attributes:{P:{c:"Entity",d:"the entity to spawn the drop from"},item:{c:"Item",
d:"The item to spawn."},zb:{c:"Number",d:"Amount of the given item. 0 = 1.",ub:1}},label:function(){return"<b>DROP ITEM: </b> "+wmPrint("Entity",this.P)+" <em>"+wmPrint("Item",this.item)+"</em> x"+this.zb}}),f:function(a){this.P=a.entity||s;this.item=a.item||0;this.zb=a.amount||1},start:function(a,c){var d=ig.Ra.pd(this.P,c);sc.fM.WQ(d,ig.Rb.CENTER,ig.t.wb,this.item,this.zb,sc.mE.PROP)}});ig.ma.GIVE_ITEM=ig.na.extend({item:0,zb:0,Ko:w,s:new ig.u({attributes:{item:{c:"Item",d:"The item to spawn."},
zb:{c:"Number",d:"Amount of the given item. 0 = 1.",ub:1},Ko:{c:"Boolean",d:"True if the side gui should hide the obtained item",ub:w}},label:function(){return"<b>GIVE ITEM: </b> <em>"+wmPrint("Item",this.item)+"</em> x"+this.zb+(this.Ko?"  <i>+ Skip Display</i>":"")}}),f:function(a){this.item=a.item||0;this.zb=a.amount||1;this.Ko=a.skip||w},start:function(){sc.q.R.bx(this.item,this.zb,this.Ko)}});ig.ma.REMOVE_ITEM=ig.na.extend({item:0,zb:0,s:new ig.u({attributes:{item:{c:"Item",d:"The item to spawn."},
zb:{c:"Number",d:"Amount of the given item. 0 = 1.",ub:1}},label:function(){return"<b>REMOVE ITEM: </b> <em>"+wmPrint("Item",this.item)+"</em> x"+this.zb}}),f:function(a){this.item=a.item||0;this.zb=a.amount||1},start:function(){sc.q.R.removeItem(this.item,this.zb)}});var a={BOTTOM_POS:1,JUMPING:2,SIZE:3,VELOCITY:4};ig.ma.SET_VAR_ENTITY_STAT=ig.na.extend({we:s,cd:s,P:s,s:new ig.u({attributes:{we:{c:"VarName",d:"Variable to store stat"},P:{c:"Entity",d:"Entity of which to fetch stat"},cd:{c:"String",
d:"Type of Stat",Y:a}}}),f:function(b){this.we=b.varName;this.P=b.entity;this.cd=a[b.stat]||a.RELATIVE_HP},start:function(b,c){var d=ig.Ra.fu(this.we);if(d){var e=ig.Ra.pd(this.P,c);if(e){var h;this.cd==a.BOTTOM_POS?h=e.je(ig.Rb.BOTTOM):this.cd==a.JUMPING?h=e.Zg||w:this.cd==a.SIZE?h=ig.copy(e.b.size):this.cd==a.VELOCITY&&(h=ig.copy(e.b.Z));ig.pa.set(d,h)}}else ig.log("SET_VAR_ENTITY_STAT: Variable Name is not a String!")}})});ig.G=j;
ig.I("game.feature.base.plug-in").J("game.feature.base.action-steps","game.feature.base.event-steps").H(F());ig.G=j;
ig.I("game.feature.bgm.playlist").J("impact.feature.bgm.bgm").H(function(){ig.merge(ig.zY,{tutorial:{path:"media/bgm/cargoship-bgm1-main.mp3",pf:124.364,volume:0.5,Wx:"media/bgm/cargoship-bgm1-intro.mp3",Ci:3.272},intro:{path:"media/bgm/awakened.mp3",pf:130.068,volume:0.5},"short":{path:"media/bgm/short.mp3",pf:5,volume:0.5},"tutorial-battle":{path:"media/bgm/cargoship-battle-main.mp3",pf:61.736,volume:0.5,Wx:"media/bgm/cargoship-battle-intro.mp3",Ci:0.385},challenge:{path:"media/bgm/challenge.mp3",
pf:64,volume:0.5,Wx:"media/bgm/challenge-intro.mp3",Ci:3.2},title:{path:"media/bgm/menu.mp3",pf:36,volume:0.45},"cargoship-exterior":{path:"media/bgm/cargoship-bgm2.mp3",pf:80,volume:0.5},lolfanfare:{path:"media/bgm/lolfanfare.mp3",pf:5.8,volume:0.5},landmark:{path:"media/sound/hud/landmark-discovery.mp3",pf:3,volume:0.5},"ability-got":{path:"media/bgm/ability-got.mp3",pf:1.5,volume:0.5},exposition:{path:"media/bgm/exposition.mp3",pf:83.173,volume:0.5},designer:{path:"media/bgm/designer-main.mp3",
pf:72,volume:0.5,Wx:"media/bgm/designer-pre.mp3",Ci:6},challenge2:{path:"media/bgm/challenge-main.mp3",pf:65.581,volume:0.5,Wx:"media/bgm/challenge-pre.mp3",Ci:5.581},"puzzle-pg":{path:"media/bgm/puzzle-bgm.mp3",pf:81,volume:0.5},bossbattle1:{path:"media/bgm/bossbattle-main.mp3",pf:59.823,volume:0.5,Wx:"media/bgm/bossbattle-pre.mp3",Ci:11.823},escape:{path:"media/bgm/dangerzone-main.mp3",pf:55.334,volume:0.5,Wx:"media/bgm/dangerzone-pre.mp3",Ci:2.666},crosscounter:{path:"media/bgm/crosscounter-main.mp3",
pf:42.352,volume:0.5,Wx:"media/bgm/crosscounter-pre.mp3",Ci:8.823},oldHideout1:{path:"media/bgm/oldhideout.mp3",pf:42.666,volume:0.5},oldHideoutBattle:{path:"media/bgm/oldhideout-battle-main.mp3",pf:57.6,volume:0.5,Wx:"media/bgm/oldhideout-battle-pre.mp3",Ci:2.742},oldHideoutEnding:{path:"media/bgm/title-cutscene.mp3",pf:27,volume:0.5},autumnsRise:{path:"media/bgm/autumnsrise.mp3",pf:59.999,volume:0.5},fieldBattle:{path:"media/bgm/cargoship-battle-main.mp3",pf:61.736,volume:0.5,Wx:"media/bgm/cargoship-battle-intro.mp3",
Ci:0.385},rhombusDungeon:{path:"media/bgm/rhombusdungeon.mp3",pf:60,volume:0.5},rookieHarbor:{path:"media/bgm/rookie-harbor.mp3",pf:61.832,volume:0.5},bergenTrail:{path:"media/bgm/bergentrail-main.mp3",pf:81,volume:0.5,Wx:"media/bgm/bergentrail-pre.mp3",Ci:8},rhombusSquare:{path:"media/bgm/newcomer.mp3",pf:64.477,volume:0.5},apolloTheme:{path:"media/bgm/apollotheme-main.mp3",pf:44.689,volume:0.5,Wx:"media/bgm/apollotheme-pre.mp3",Ci:10.758},coldDungeon:{path:"media/bgm/coldmine.mp3",pf:83.076,volume:0.5},
bergenVillage:{path:"media/bgm/bergenvillage.mp3",pf:98.1,volume:0.5},heatArea:{path:"media/bgm/heatarea.mp3",pf:90.666,volume:0.75},heatVillage:{path:"media/bgm/heatvillage.mp3",pf:104.873,volume:0.5},heatDungeon:{path:"media/bgm/heatdungeon.mp3",pf:108.521,volume:0.5}});ig.PL.Qfb();ig.merge(ig.h7,{cargoShipIntro:{field:{Bb:"intro",volume:1},battle:{Bb:"tutorial-battle",volume:1}},cargoShip:{field:{Bb:"tutorial",volume:1},battle:{Bb:"tutorial-battle",volume:1}},cargoChallenge:{field:{Bb:"tutorial",
volume:1},battle:{Bb:"tutorial-battle",volume:1}},cargoShipExterior:{field:{Bb:"cargoship-exterior",volume:1},battle:{Bb:"tutorial-battle",volume:1}},puzzle:{field:{Bb:"rhombusDungeon",volume:1},battle:{Bb:"tutorial-battle",volume:1}},hideout:{field:{Bb:"oldHideout1",volume:1},battle:{Bb:"oldHideoutBattle",volume:1}},autumn:{field:{Bb:"autumnsRise",volume:1},battle:{Bb:"fieldBattle",volume:1}},rookieHarbor:{field:{Bb:"rookieHarbor",volume:1},battle:{Bb:"fieldBattle",volume:1}},bergenTrail:{field:{Bb:"bergenTrail",
volume:1},battle:{Bb:"fieldBattle",volume:1}},bergenVillage:{field:{Bb:"bergenVillage",volume:1},battle:{Bb:"fieldBattle",volume:1}},heatArea:{field:{Bb:"heatArea",volume:1},battle:{Bb:"fieldBattle",volume:1}},rhombusSquare:{field:{Bb:"rhombusSquare",volume:1},battle:{Bb:"tutorial-battle",volume:1}},crossCentral:{field:{Bb:"intro",volume:1},battle:{Bb:"tutorial-battle",volume:1}},coldDungeon:{field:{Bb:"coldDungeon",volume:1},battle:{Bb:"tutorial-battle",volume:1}},heatVillage:{field:{Bb:"heatVillage",
volume:1},battle:{Bb:"tutorial-battle",volume:1}},heatDungeonOutside:{field:{Bb:s,volume:0.3},battle:{Bb:"fieldBattle",volume:1}},silence:{field:{Bb:s,volume:0.3},battle:{Bb:"fieldBattle",volume:1}},heatDungeon:{field:{Bb:"heatDungeon",volume:1},battle:{Bb:"tutorial-battle",volume:1}}})});ig.G=j;
ig.I("game.feature.bgm.volume-map").J("impact.base.sound").H(function(){ig.cM.set("media/sound/menu/menu-cancel.ogg",0.8);ig.cM.set("media/sound/move/jump.ogg",0.7);ig.cM.set("media/sound/misc/scifi-effect-1.ogg",0.68);ig.cM.set("media/sound/battle/ball-kill.ogg",0.7);ig.cM.set("media/sound/puzzle/door-open.ogg",0.8)});ig.G=j;ig.I("game.feature.bgm.plug-in").J("game.feature.bgm.playlist","game.feature.bgm.volume-map").H(F());ig.G=j;
ig.I("game.feature.character.character").H(function(){sc.mH=ig.CB.extend({ui:"Character",data:s,name:s,Saa:s,f:function(a){this.parent(a);this.name=a},getExpression:function(a){return this.data.face&&this.data.face.expressions[a]},Nn:function(){this.Saa&&this.Saa.zc()},JC:function(){return ig.root+this.path.dr("data/characters/",".json")+ig.kl()},onload:function(a){this.data=a;if(this.data.face){this.data.face.ABSTRACT&&(this.data.face=sc.Zu[this.data.face.ABSTRACT]);this.Saa=new ig.$("media/face/"+
this.data.face.src)}}});sc.Zu={};sc.Zu.maleNormalHair1={src:"npcs.png",width:128,height:152,centerX:43,centerY:55,parts:[{straight:{srcX:0,srcY:88,width:128,height:64,destX:0,destY:88}},{norm:{srcX:16,srcY:0,width:88,height:88,destX:16,destY:0}}],expressions:{DEFAULT:{faces:[["straight","norm"]]}}};sc.Zu.maleNormalHair2={src:"npcs.png",width:128,height:152,centerX:43,centerY:55,parts:[{straight:{srcX:0,srcY:88,width:128,height:64,destX:0,destY:88}},{norm:{srcX:0,srcY:152,width:88,height:88,destX:16,
destY:0},glass:{srcX:88,srcY:152,width:88,height:88,destX:16,destY:0}}],expressions:{DEFAULT:{faces:[["straight","norm"]]},GLASS:{faces:[["straight","glass"]]}}};sc.Zu.maleNormalBald1={src:"npcs.png",width:128,height:152,centerX:43,centerY:55,parts:[{straight:{srcX:128,srcY:0,width:128,height:152,destX:0,destY:0}}],expressions:{DEFAULT:{faces:[["straight"]]}}};sc.Zu.femaleShortHair1={src:"npcs.png",width:104,height:152,centerX:36,centerY:60,parts:[{straight:{srcX:256,srcY:96,width:104,height:56,destX:0,
destY:96}},{norm:{srcX:264,srcY:8,width:80,height:88,destX:8,destY:8}}],expressions:{DEFAULT:{faces:[["straight","norm"]]}}};sc.Zu.femaleShortHair2={src:"npcs.png",width:104,height:152,centerX:36,centerY:60,parts:[{straight:{srcX:256,srcY:96,width:104,height:56,destX:0,destY:96}},{norm:{srcX:176,srcY:152,width:80,height:88,destX:8,destY:8}}],expressions:{DEFAULT:{faces:[["straight","norm"]]}}};sc.Zu.tribladerMale={src:"avatars.png",width:136,height:160,centerX:43,centerY:55,parts:[{straight:{srcX:0,
srcY:0,width:136,height:160,destX:0,destY:0}}],expressions:{DEFAULT:{faces:[["straight"]]}}};sc.Zu.quadroguardMale={src:"avatars.png",width:128,height:160,centerX:43,centerY:55,parts:[{straight:{srcX:136,srcY:0,width:128,height:160,destX:0,destY:0}}],expressions:{DEFAULT:{faces:[["straight"]]}}};sc.Zu.pentafistMale={src:"avatars.png",width:120,height:160,centerX:43,centerY:55,parts:[{straight:{srcX:264,srcY:0,width:120,height:160,destX:0,destY:0}}],expressions:{DEFAULT:{faces:[["straight"]]}}};sc.Zu.hexacastMale=
{src:"avatars.png",width:128,height:160,centerX:43,centerY:55,parts:[{straight:{srcX:384,srcY:0,width:128,height:160,destX:0,destY:0}}],expressions:{DEFAULT:{faces:[["straight"]]}}};sc.Zu.tribladerFemale={src:"avatars.png",width:104,height:144,centerX:43,centerY:55,parts:[{straight:{srcX:0,srcY:160,width:104,height:144,destX:0,destY:0}}],expressions:{DEFAULT:{faces:[["straight"]]}}};sc.Zu.shadMale={src:"shad.png",width:128,height:160,centerX:43,centerY:55,parts:[{straight:{srcX:0,srcY:0,width:128,
height:160,destX:0,destY:0}}],expressions:{DEFAULT:{faces:[["straight"]]}}};sc.Zu.shadFemale={src:"shad.png",width:112,height:160,centerX:43,centerY:55,parts:[{straight:{srcX:128,srcY:0,width:112,height:160,destX:0,destY:0}}],expressions:{DEFAULT:{faces:[["straight"]]}}}});ig.G=j;
ig.I("game.feature.character.char-templates").J("impact.base.loader").H(function(){ig.pca.dg("NPCBasic",{name:{jsonPARAM:"name","default":s},gender:{jsonPARAM:"gender","default":s},animSheet:{DOCTYPE:"MULTI_DIR_ANIMATION",namedSheets:{move:{src:{jsonPARAM:"img"},width:32,height:40,xCount:3,offX:{jsonPARAM:"x"},offY:{jsonPARAM:"y"}},sit:{jsonIF:"sitX",src:{jsonPARAM:"img"},width:32,height:40,xCount:1,offX:{jsonPARAM:"sitX"},offY:{jsonPARAM:"sitY"}}},shapeType:"Y_FLAT",offset:{x:0,y:-2,z:0},SUB:[{sheet:"move",
dirs:4,flipX:[0,0,0,1],tileOffsets:[0,3,6,3],SUB:[{name:"idle",time:1,repeat:w,frames:[1]},{name:"walk",time:0.133,repeat:j,frames:[0,1,2,1]}]},{jsonIF:"sitX",sheet:"sit",dirs:4,flipX:[0,0,0,1],tileOffsets:[0,1,2,1],SUB:[{name:"sit",time:1,repeat:w,frames:[0]}]}]},walkAnimSet:{normal:{idle:"idle",move:"walk"},sit:{jsonIF:"sitX",idle:"sit"}},walkAnims:"normal",configs:{normal:{relativeVel:0.5},sit:{jsonIF:"sitX",walkAnims:"sit",shadow:0}},face:{ABSTRACT:{jsonPARAM:"face"}}});ig.pca.dg("NPCAvatarSimple",
{name:{jsonPARAM:"name","default":s},realname:{jsonPARAM:"realname","default":s},gender:{jsonPARAM:"gender","default":s},animSheet:{DOCTYPE:"MULTI_DIR_ANIMATION",namedSheets:{move:{src:{jsonPARAM:"img"},width:32,height:40,xCount:3,offX:{jsonPARAM:"x"},offY:{jsonPARAM:"y"}},offline:{src:{jsonPARAM:"img"},width:32,height:40,xCount:3,offX:{jsonPARAM:"offlineX"},offY:{jsonPARAM:"offlineY"}},run:{jsonIF:"runSrc",src:{jsonPARAM:"runSrc"},width:32,height:40,xCount:5,offX:{jsonPARAM:"runX"},offY:{jsonPARAM:"runY"}}},
shapeType:"Y_FLAT",offset:{x:0,y:-2,z:0},SUB:[{sheet:"move",dirs:4,flipX:[0,0,0,1],tileOffsets:[0,3,6,3],SUB:[{name:"idle",time:1,repeat:w,frames:[1]},{name:"walk",time:0.133,repeat:j,frames:[0,1,2,1]},{sheet:"offline",name:"offline",time:0.166,repeat:j,frames:[0,1,2]}]},{jsonIF:"runSrc",sheet:"run",dirs:6,flipX:[0,0,0,1,1,1],tileOffsets:[0,5,10,10,5,0],SUB:[{name:"run",time:0.1,repeat:j,frames:[0,1,2,3]},{name:"jump",time:0.1,repeat:j,frames:[3]},{name:"fall",time:0.1,repeat:j,frames:[4]}]},{sheet:"move",
dirs:2,flipX:[0,1],tileOffsets:[9,9],SUB:[{name:"ground",time:1,repeat:w,frames:[0],offset:{x:0,y:2,z:0}}]}]},walkAnimSet:{normal:{idle:"idle",move:"walk",run:{jsonIF:"runSrc",jsonTHEN:"run"},jump:{jsonIF:"runSrc",jsonTHEN:"jump"},fall:{jsonIF:"runSrc",jsonTHEN:"fall"}},ground:{idle:"ground"},offline:{idle:"offline"}},walkAnims:"normal",configs:{normal:{relativeVel:0.5},run:{jsonIF:"runSrc",relativeVel:1},ground:{walkAnims:"ground"},offline:{walkAnims:"offline"}},face:{ABSTRACT:{jsonPARAM:"face"}}})});
ig.G=j;ig.I("game.feature.character.plug-in").J("game.feature.character.character","game.feature.character.char-templates").H(F());ig.G=j;
ig.I("game.feature.combat.model.combat-params").J("game.feature.model.base-model").H(function(){sc.ja={NEUTRAL:0,HEAT:1,COLD:2,SHOCK:3,WAVE:4};sc.uS=[{bba:4,lh:1},{bba:8,lh:1},{bba:12,lh:1}];var a={LINEAR:function(a,b){return a*2-b},PERCENTAGE:function(a,b){return a>b?a*(1+Math.pow(1-b/a,0.5)*0.2):a*Math.pow(a/b,1.5)}};sc.t7=ig.ra.extend({$c:s,um:[],Nb:{hp:100,attack:10,defense:5,focus:5,elemFactor:[1,1,1,1],statusInflict:[1,1,1,1],statusEffect:[1,1,1,1]},Ys:s,zr:[],Jb:100,Ao:12,Wj:6,d6:0,zo:2,ykb:[1,
1,1,1],zkb:[1,1,1,1],Xj:1,$la:1,aU:w,TX:[],tbb:10,I2:0,yGa:1.5,UV:0,f:function(a){if(a)for(var b in this.Nb)this.Nb[b]=a[b]||this.Nb[b];this.Jb=this.le("hp");for(b=0;b<4;++b)this.TX[b]=new sc.GY[b]},kQ:function(a){this.aU=w;if(this.Jb<0)this.Jb=0;this.mV(Math.round(this.le("hp")*(a||1)))},tua:L("$c"),Kua:L("Ys"),Ujb:function(a){if(a.od&&a.co.indexOf(this)==-1){a.fp(this);this.UV++}},i8a:function(a){if(a.SK(this)){this.UV--;this.UV<0&&f(Error("Lock Count goes below 0"))}},b3:function(){return this.UV>
0},Zr:function(){this.UV--;this.UV<0&&f(Error("Lock Count goes below 0"))},reset:function(a){this.zr.length=0;this.Jb=this.le("hp");this.d6=0;this.aU=w;this.Xj=1;this.Ao=a||16;this.Wj=this.Ao/2;this.ROa();sc.K.wa(this,sc.oi.i8)},ROa:function(){for(var a=this.TX.length;a--;)this.TX[a].clear()},Iua:function(a){this.Ao=a||0;this.Wj=this.Ao/2;sc.K.wa(this,sc.oi.iia)},pua:function(a){var b=this.le("hp")-this.Jb,c;for(c in this.Nb)this.Nb[c]=a[c]||this.Nb[c];this.Jb=this.le("hp")-b;sc.K.wa(this,sc.oi.Ww)},
le:function(a){for(var b=this.Nb[a],c=this.zr.length;c--;)b=this.zr[c].multiply(b,a);typeof b=="number"&&(b=Math.round(b));return b},Rl:function(a){for(var b=this.Ys&&this.Ys[a]||0,c=this.zr.length;c--;)b=this.zr[c].add(b,a);return b},rIa:function(e,h){var k=e.Xj;e.jva&&(k=k*(1+e.yz.Rl(e.jva)));var l=e.yz.$c;if(l.rC.G3){var m=Math.max(1-l.rC.W0/l.rC.G3,0);m<0.5&&(k=Math.max(k*2*m,0.01))}l.rC.W0=l.rC.W0+k;var l=this.Xj*(h===g?1:h),n=1;e.element&&(n=this.le("elemFactor")[e.element-1]*this.ykb[e.element-
1]);l=l*n;e.V9&&(l=l*this.$la);var o=e.yz.le("focus")/this.le("focus"),t=(Math.pow(o,0.25)-0.95)*e.wGa;(t=Math.random()<=t)&&(k=k*e.yz.yGa);var r=1;sc.Dg.Tc()&&(r=0.5);if(e.element&&e.Nva){var p=e.element-1,m=k*e.Nva;t&&(m=m*4);var q=(Math.pow(1+(o>=1?o-1:1-o)*d,b)-1)*c,o=o>=1?1+q:Math.max(0,1-q),m=m*o*this.le("statusInflict")[p]*this.zkb[p]*n;this.TX[p].Cbb(m,this,e)}n=e.yz.le("attack");o=e.IGa*this.le("defense");o=Math.max(1,a.PERCENTAGE(n,o));o=o*l;n=a.PERCENTAGE(n,0)-o;n=n*k*r;o=o*(k*r)*(0.95+
Math.random()*0.1);n=n*(0.95+Math.random()*0.1);o=Math.round(o);return{Ge:o,I7a:n,FP:k,pna:l,xGa:t}},r$a:function(a){a=!a.Bla?this.le("hp")*a.value:a.value;a=a*(0.95+Math.random()*0.1);return a=Math.round(a)},c5:function(a){if(a<0)return this.mV(-a);if(this.Jb<=a)this.aU=j;this.Jb=this.Jb-a;sc.K.wa(this,sc.oi.eM)},mV:function(a){this.Jb=Math.min(this.le("hp"),this.Jb+a);if(this.Jb>0)this.aU=w;sc.K.wa(this,sc.oi.eM)},f2:function(){return this.Jb/this.le("hp")},Nla:function(a,b){if(a>0)this.d6=5;for(var c=
sc.uS.length,b=b||(a>0?this.Ao:0);c--;)if(this.Wj>=sc.uS[c].bba){a=a/sc.uS[c].lh;break}this.Wj=this.Wj+a;if(a>0&&this.Wj>b)this.Wj=b;if(a<0&&this.Wj<b)this.Wj=b;sc.K.wa(this,sc.oi.r8)},oGa:function(a){this.Wj=this.Wj-a;if(this.Wj<0)this.Wj=0;sc.K.wa(this,sc.oi.r8)},Fib:function(a){this.Wj=Math.round(this.Ao*a);sc.K.wa(this,sc.oi.r8)},nab:function(){return Math.floor(this.Wj)},Yg:function(){return this.aU&&!this.b3()},Gla:function(a,b,c){if(this.zr.length==this.zo)return w;b=b*(1+this.Rl("ITEM_BOOST"));
a=new sc.DTa(a,b,c);b=this.le("hp")-this.Jb;this.zr.push(a);this.Jb=this.le("hp")-b;sc.K.wa(this,sc.oi.eha,a);sc.K.wa(this,sc.oi.Ww);return j},GJa:function(){return this.zr.length==this.zo},update:function(a){if(!this.aU){var b=this.Ao/2,c=a?0.05:0.25;sc.Dg.Tc()&&(c=c*3);var d=ig.g.tp;if(this.Wj<b)this.Nla(d*c,b);else if(this.Wj>b)this.d6>0?this.d6=this.d6-d:this.Nla(d*-0.05,b);if(!a&&this.f2()<1){if(this.I2<=0){this.I2=1;a=Math.round(this.le("hp")*1/this.tbb);this.mV(a)}this.I2=this.I2-d}else this.I2=
1;if(sc.q.Xm()){for(d=this.TX.length;d--;)this.TX[d].update(this.$c,this);for(d=this.zr.length;d--;)if(this.zr[d].update()){a=this.le("hp")-this.Jb;b=this.zr.splice(d,1);this.Jb=this.le("hp")-a;sc.K.wa(this,sc.oi.zTa,b[0]);sc.K.wa(this,sc.oi.Ww)}}}}});var b=0.25,c=2,d=5;sc.oi={eM:1,r8:2,Ww:3,eha:4,zTa:5,i8:6,iia:7};sc.hc={NONE:0,LIGHT:1,MEDIUM:2,HEAVY:3,MASSIVE:4,BREAK:5};sc.nTa={BLUNT:0,SLASH:1};sc.F7={AUTO:0,NEVER:1,ALWAYS:2};sc.NL=ig.ra.extend({type:sc.hc.LIGHT,YSa:s,LG:sc.nTa.SLASH,yz:s,V9:w,
Upa:s,Xj:1,IGa:1,Nva:0,element:sc.ja.NONE,wGa:1,Jfa:1,zi:s,Ju:[],jva:s,Apa:s,f:function(a,b,c){this.V9=c||w;this.yz=a;if(b.type!=g)this.type=typeof b.type=="string"?sc.hc[b.type]:b.type;this.YSa=b.visualType?typeof b.visualType=="string"?sc.hc[b.visualType]:b.visualType:this.type;if(b.damageFactor!=g)this.Xj=b.damageFactor*1;if(b.defenseFactor!=g)this.IGa=b.defenseFactor*1;if(b.element)this.element=typeof b.element=="string"?sc.ja[b.element]:b.element;this.Jfa=b.spFactor!==g?b.spFactor:1;this.zi=
b.fly||s;if(b.critFactor!=g)this.wGa=b.critFactor;if(b.stunSteps){a=b.stunSteps;for(c=a.length;c--;)this.Ju.push(new sc.tB[a[c].type](a[c]))}this.Apa=sc.F7[b.guardable]||sc.F7.AUTO;this.Nva=b.status||0;this.Upa=b.hints||s;this.jva=b.skillBonus||s},yk:function(a){return this.Upa&&this.Upa.indexOf(a)!=-1}});sc.K7=ig.ra.extend({PJa:s,value:0,Bla:w,f:function(a,b){this.PJa=a;this.value=b.value||0;this.Bla=b.absolute||w},clone:function(){return new sc.K7(this.PJa,{value:this.value,absolute:this.Bla})}})});
ig.G=j;
ig.I("game.feature.combat.entities.projectile").J("game.constants","impact.feature.effect.effect-sheet","impact.base.entity").H(function(){ig.rZ={DBa:1,lTa:2,Jza:3};ig.ya.Projectile=ig.fe.extend({Qsb:{c:"Number",d:"Speed variance. Value will be applied +- 50%"},$c:s,RK:3,mra:3,f0:[],lva:w,f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.PROJECTILE;this.b.mm=1;this.b.uz=0;this.b.uk=0;this.b.pp=0;this.b.Z.x=d.vel.x;this.b.Z.y=d.vel.y;this.$c=d.combatant||s;this.Za.oc=Vec3.Gs(this.b.Z)},update:function(){this.Za.oc=
Vec3.Gs(this.b.Z);this.parent()},v2:function(a){if(!this.Ne){if(a.gF){this.f0.length=0;var b=this.kb();b.x=b.x+a.jp.x*this.b.size.x/2.05;b.y=b.y+a.jp.y*this.b.size.y/2.05;if(!this.RK){this.wK&&this.wK(ig.rZ.DBa,b,a);this.Tb();return}this.RK--;this.esa&&this.esa(b,a)}this.lva?this.lva=w:this.parent(a)}},Tb:function(a){this.parent(a)},lo:function(a){if(!(a.b.xl.length>0)){var b=a.b.hk?a.b.hk.P:a;if(this.f0.indexOf(b.id)==-1){var c=w;this.ssa&&(c=!this.ssa(a,this.b.Lc&&this.b.Lc.jp));c||this.f0.push(b.id)}}},
Q6a:function(){this.f0.length=0},F9:function(a){this.f0.push(a.id)},ij:function(a,b){return this.PU(a,b)},du:function(a,b){var c=b||{};Vec2.assign(c,this.b.Z);return c},nh:function(){return sc.ja.NEUTRAL},Bi:M("$c"),nca:R(j)})});ig.G=j;
ig.I("game.feature.combat.model.ball-behavior").H(function(){sc.j7=ig.ra.extend({oNa:F(),Vk:F()});sc.xY={};var a=Vec2.create(),b=Vec2.create();sc.xY.FOLLOW_TARGET=sc.j7.extend({UX:0,eT:0,f:function(a){this.UX=a.steerDegree||1;this.eT=a.adjustTime||0},Vk:function(a){a.target&&sc.fha.cFa(a,a.target,a.Fa-a.n,this.eT,this.UX)}});sc.xY.CLOSE_SELF_DESTRUCT=sc.j7.extend({ab:0,f:function(a){this.ab=a.distance||1},Vk:function(a){a.target&&ig.Xf.xO(a.b,a.target.b)<this.ab&&a.Hn()}});var c=Vec2.create();sc.xY.WIRL_SIDEWAYS=
sc.j7.extend({zOa:0.2,cTa:0.5,delay:0,f:function(a){this.zOa=a.relWirl||0.2;this.cTa=a.wirlTime||0.5;this.delay=a.delay||0},Vk:function(a){if(a.target){var b=a.Fa-a.n;if(!(b<this.delay)){var b=b-this.delay,b=Math.sin(Math.PI*2*b/this.cTa+Math.PI*0.52)*this.zOa*ig.g.ga*60,h=Vec2.assign(c,a.b.Z);Vec2.lX(h);Vec2.ck(h,b);Vec2.add(a.b.Z,h)}}}});sc.xY.SLOW_DOWN=sc.j7.extend({kt:0,sRa:0,fadeOut:0,zHa:0,pause:0,fadeIn:0,f:function(a){this.kt=a.speedFactor||0.05;this.sRa=a.startWait||0;this.fadeOut=a.fadeOut||
0;this.zHa=a.fadeOutVary||0;this.pause=a.pause||0;this.Bfb=a.pauseVary||0;this.fadeIn=a.fadeIn||0},oNa:function(a){var b=Math.random();a.pT.kO=this.fadeOut+(0.5-b)*2*this.zHa;a.pT.Afb=this.pause+(0.5-b)*2*this.Bfb},Vk:function(a){var b=a.pT.kO,c=a.pT.Afb,k=a.Fa-a.n,k=k-this.sRa,l=1;k>=0&&(k<b?l=1-k/b:k<b+c?l=0:k<b+c+this.fadeIn&&(l=l*((k-c-b)/this.fadeIn)));Vec2.length(a.b.Z,a.speed*(l+(1-l)*this.kt))}});sc.fha={};sc.fha.cFa=function(c,e,h,k,l){h=h<k?l*h/k:l;e=e.kb(a);k=c.kb(b);e=Vec2.sub(e,k);k=
Vec2.length(c.b.Z);Vec2.ZK(c.b.Z,e,Math.PI*2*h*ig.g.ga);Vec2.length(c.b.Z,k)}});ig.G=j;ig.I("game.feature.combat.model.proxy").H(function(){sc.Dia=ig.ra.extend({Hu:F()});sc.rS={};sc.FB={vea:function(a){return typeof a=="object"?new sc.rS[a.type](a):a},tba:function(a,b){return typeof a=="object"?a:b.fn&&b.fn[a]},AOa:function(a){typeof a=="object"&&a.Qa()}}});ig.G=j;
ig.I("game.feature.combat.entities.ball").J("game.feature.combat.entities.projectile","game.feature.combat.model.ball-behavior","game.feature.combat.model.proxy","game.constants","impact.feature.effect.effect-sheet","impact.base.entity","impact.feature.light.light").H(function(){sc.wxa=sc.rS.BALL=sc.Dia.extend({data:s,s:new ig.u({attributes:{gFa:{c:"AnimSheet",d:"Animation sheet of ball. Needs one entry with name 'default'",sd:j},size:{c:"Offset",d:"Size of projectile",U:j},O:{c:"String",d:"Effect sheet for effects",
Y:"effects",Oi:j},ro:{c:"EffectKets",d:"What keys to use in the effect sheet",U:j},speed:{c:"Number",d:"Speed of ball",ub:300},hdb:{c:"Integer",d:"Number of times the ball can bounce on walls"},n:{c:"Number",d:"The time until ball will disappear"},vk:{c:"AttackInfo",d:"How the ball will hit its target"},pR:{c:"BallBoni",d:"Damage boni depending on time the ball is alive"},fC:{c:"BallBehaviors",d:"Additional Behaviors of the ball"},ktb:{c:"Boolean",d:"True if ball should show a trail"},bG:{c:"Boolean",
d:"True if ball can hit multiple targets"},ph:{c:"String",d:"Size of light shown for this ball",U:j,Y:ig.cl},Edb:{c:"Boolean",d:"If true, don't make light glow for ball"},Eob:{c:"ProxyRef",d:"Proxy to be spawned when ball is destroyed",U:j}}}),f:function(a){this.data=a;a.animation.shapeType||(a.animation.shapeType="YZ_EXPAND");a.animation.wallY=1;a.animation=new ig.wj(a.animation);a.effects&&(a.effects=new ig.ae(a.effects));if(a.timeBoni)for(var b=a.timeBoni.length;b--;){var e=ig.copy(a.attack);ig.merge(e,
a.timeBoni[b]);a.timeBoni[b]=e}if(a.behaviors)for(b=a.behaviors.length;b--;)a.behaviors[b]=new sc.xY[a.behaviors[b].type](a.behaviors[b])},Qa:function(){this.data.effects&&this.data.effects.zc();this.data.animation&&this.data.animation.Qa()},Hu:function(a,b,e,h,k){return ig.t.af(ig.ya.Ball,a,b,e,{dir:k,ballInfo:this.data,params:h.ba,party:h.Ca,combatant:h})}});Vec2.create();var a=Vec3.create(),b=Vec3.create();ig.ya.Ball=ig.ya.Projectile.extend({Wv:j,Ca:0,target:s,ba:s,ic:s,bG:w,Fa:0,n:1.5,pR:[],O:s,
ro:s,speed:0,kt:1,Gh:s,hu:s,yna:s,fC:s,pT:s,f:function(a,b,e,h){this.parent(a,b,e,{vel:h.dir,combatant:h.combatant});this.Ca=h.party;this.ba=h.params;this.uPa(h.ballInfo);this.RK=this.mra;this.n=this.Fa},uPa:function(b){var d=this.b;this.speed=b.speed;Vec2.length(d.Z,this.speed);var e=b.size,h=Vec3.assign(a,d.size);e?d.v(e.x,e.y,e.z):d.v(8,8,8);d.l(d.i.x-(this.b.size.x-h.x)/2,d.i.y-(this.b.size.y-h.y)/2,d.i.z);this.b.Ad.size=4;this.b.type=ig.la.PROJECTILE;this.b.v(8,8,8);if(this.$c)this.target=this.$c.target;
this.fC=b.behaviors||s;this.nb=b.animation;this.ld(b.animation);this.b.Ui=b.speed;this.O=b.effects;this.ro=b.effectKeys||s;this.bG=b.multiHit||w;this.mra=b.maxBounce;this.Fa=b.timer;if(b.destroyProxy)this.yna=sc.FB.vea(b.destroyProxy);if(b.attack)this.ic=new sc.NL(this.ba,b.attack,j);this.pR.length=0;if(b.timeBoni)for(d=0;d<b.timeBoni.length;++d)this.pR[d]={time:b.timeBoni[d].time,ic:new sc.NL(this.ba,b.timeBoni[d],j)};ig.sH.vN(this,"trail");b.trail&&this.O.Ya(this.ro&&this.ro.trail||"ballTrail",
this,{duration:-1,group:"trail"});this.Gh&&this.Gh.stop();this.Gh=new ig.Qw(this,ig.cl[b.light||"XS"],0,0.2,-1,1,!b.noLightGlow);ig.ph.cx(this.Gh);if(this.fC){this.pT={};for(d=this.fC.length;d--;)this.fC[d].oNa(this)}},sJa:function(a,d){this.hu&&Vec3.assign(this.b.Z,this.hu.$ra);var d=d||1,e=Vec3.sub(a,this.b.i,b),h=Vec3.length(e)/(this.speed*d);this.hu={i:Vec3.create(a),Kdb:Vec3.create(this.b.i),n:new ig.Ct(w,h,ig.qk.hq),$ra:Vec3.create(this.b.Z)};Vec3.assign(this.b.Z,e);Vec3.length(this.b.Z,5);
return h},Bma:function(a,b){this.speed=this.speed*a;this.b.Ui=this.speed;Vec2.length(this.b.Z,this.speed);this.n=this.n/a;this.Fa=this.Fa/a;if(b)this.kt=this.kt*a},ghb:function(){if(this.kt!=1){this.Bma(1/this.kt);this.kt=1;return j}return w},r6a:function(a){Vec2.assign(this.b.Z,a);Vec2.length(this.b.Z,this.speed)},esa:function(a,b){this.O&&this.O.eh(this.ro&&this.ro.bounce||"ballBounce",a.x,a.y,this.b.i.z,s,{angle:Vec2.Gs(b.jp)})},Hn:function(){this.wK(ig.rZ.Jza);this.Tb()},wK:function(a,d,e){if(this.yna){d=
this.Bi();if(e=sc.FB.tba(this.yna,d)){var a=this.b.Z,h=this.je(ig.Rb.CENTER,b);e.Hu(h.x,h.y,h.z,d,a)}}else if(a!=ig.rZ.Jza&&this.O)if(a==ig.rZ.DBa){a=this.ro&&this.ro.wall||"ballWallKill";this.O.Gba(a)&&this.O.eh(a,d.x,d.y,this.b.i.z,s,{angle:Vec2.Gs(e.jp)})}else{d=this.kb();a=this.ro&&this.ro.air||"ballAirKill";this.O.Gba(a)&&this.O.eh(a,d.x,d.y,this.b.i.z)}},ssa:function(a,b){var e=w;if(a.Om){var h=a.Om(this,b);(e=h)&&!this.bG&&this.Hn();if(a.b.type==ig.la.IGNORE&&this.bG)this.lva=j}if(this.ic&&
a.Ge&&a.Ca!=this.Ca){for(var h=this.ic,e=j,k=0;k<this.pR.length&&this.pR[k].time>this.n;)++k;if(k<this.pR.length)h=this.pR[k].ic;a.Ge(this,h)&&(this.bG||this.Hn())}e&&this.$c.Xv&&sc.ta.cc("player","throwHits",1);return e},update:function(){if(this.hu){this.hu.n.ga();var a=this.hu.n.get();Vec3.Zm(this.hu.Kdb,this.hu.i,a,b);this.b.l(b.x,b.y,b.z);if(this.hu.n.yb()){Vec3.assign(this.b.Z,this.hu.$ra);this.hu=s}}else if(this.fC)for(a=this.fC.length;a--;)this.fC[a].Vk(this);if(this.n>0){this.n=this.n-ig.g.ga;
if(this.n<=0){this.wK(ig.rZ.lTa);this.Tb()}}this.parent()},tj:function(){this.parent()},nh:function(){return this.ic&&this.ic.element||sc.ja.NEUTRAL},du:function(a,b){var e=b||{};this.hu?Vec2.assign(e,this.hu.$ra):Vec2.assign(e,this.b.Z);return e},Ygb:function(){this.RK=this.mra},Uta:function(a){this.n=a||this.Fa},QFa:function(a){Vec2.round(this.b.Z,Math.PI*2*a)}})});ig.G=j;
ig.I("game.feature.player.player-config").H(function(){sc.XYa={};sc.Jmb={SPHEROMANCER:0,TRIBLADER:1,QUADROGUARD:2,PENTAFIST:3,HEXACAST:4,UNKNOWN:5};sc.cj={AIM_START:1,THROW_NORMAL:2,THROW_NORMAL_REV:3,THROW_CHARGED:4,THROW_CHARGED_REV:5,ATTACK:6,ATTACK_REV:7,ATTACK_FINISHER:8,DASH:9,DASH_SLOW:10,CHARGING:11,GUARD:12,PERFECT_GUARD:13,THROW_SPECIAL1:21,THROW_SPECIAL2:22,THROW_SPECIAL3:23,ATTACK_SPECIAL1:24,ATTACK_SPECIAL2:25,ATTACK_SPECIAL3:26,DASH_SPECIAL1:27,DASH_SPECIAL2:28,DASH_SPECIAL3:29,GUARD_SPECIAL1:30,
GUARD_SPECIAL2:31,GUARD_SPECIAL3:32};var a={AIM_START:j,THROW_NORMAL:w,THROW_NORMAL_REV:w,THROW_CHARGED:w,THROW_CHARGED_REV:w,ATTACK:w,ATTACK_REV:w,ATTACK_FINISHER:w,DASH:w,DASH_SLOW:w,GUARD:j,CHARGING:w};sc.d8=ig.CB.extend({ui:"PlayerConfig",name:s,nC:s,Nc:s,DN:0,nb:s,fn:{},OO:0,ta:s,U9:s,Es:[],Pk:{},f:function(a){this.name=a;this.parent(a.toLowerCase())},JC:function(){return ig.root+this.path.dr("data/players/",".json")+ig.kl()},onload:function(a){var b;(b=ig.pca.k5(a))||f(Error("Can't find data of player '"+
h+"'"));for(var e in b.proxies){a=b.proxies[e];this.fn[e]=new sc.rS[a.type||"BALL"](a)}this.nC=b["class"];this.Nc=new sc.mH(b.character);this.nb=new ig.wj(b.sheet);this.ta=b.stats;this.DN=b.comboCount||4;this.U9=b.autoequip;this.OO=b.headIdx||0;this.Es=new sc.bAa("BASE",b.actions.BASE);for(var h in sc.ja)this.Pk[sc.ja[h]]=new sc.bAa(h,b.actions[h])},xJ:ba(),Nn:function(){this.Nc.zc();this.Es.Qa();for(var a in this.Pk[a])this.Pk[a].Qa();for(var b in this.fn)this.fn[b].Qa()},AIa:function(a,b){var e=
b?"charged":"default";a==sc.ja.NEUTRAL?e=e+"Neutral":a==sc.ja.HEAT?e=e+"Heat":a==sc.ja.COLD?e=e+"Cold":a==sc.ja.WAVE?e=e+"Wave":a==sc.ja.SHOCK&&(e=e+"Shock");return this.fn[e]}});var b={NEUTRAL:{hp:1,attack:1,defense:1,focus:1,elemFactor:[1,1,1,1]},HEAT:{hp:1,attack:1,defense:1,focus:1,elemFactor:[1,1.5,1,1]},COLD:{hp:1,attack:1,defense:1,focus:1,elemFactor:[1.5,1,1,1]},SHOCK:{hp:1,attack:1,defense:1,focus:1,elemFactor:[1,1,1,1.5]},WAVE:{hp:1,attack:1,defense:1,focus:1,elemFactor:[1,1,1.5,1]}};sc.bAa=
ig.ra.extend({EW:s,sl:{},ug:{},Nb:{},Ys:{},Ela:{},B9:{},f:function(c,d){this.EW=b[c]||s;for(var e in d)this.ug[e]=new ig.rf(e,d[e],a[e]);this.cta()},Qa:function(){for(var a in this.ug)this.ug[a].Qa()},cta:function(){this.sl.hp=0;this.sl.attack=0;this.sl.defense=0;this.sl.focus=0;this.sl.elemFactor||(this.sl.elemFactor=[]);this.sl.elemFactor[sc.ja.HEAT-1]=0;this.sl.elemFactor[sc.ja.COLD-1]=0;this.sl.elemFactor[sc.ja.SHOCK-1]=0;this.sl.elemFactor[sc.ja.WAVE-1]=0;for(var a in sc.Me)this.sl[a]=0;this.Ela=
{};for(var b in this.fn)this.Ela[b]=this.fn[b];this.B9={};for(var e in sc.cj)this.ug[e]&&(this.B9[sc.cj[e]]=this.ug[e])},update:function(a,b){if(this.EW){for(var e in a)this.Nb[e]=Math.floor(a[e]*(this.EW[e]+this.sl[e]));this.Nb.elemFactor=this.Nb.elemFactor||[];var h=a.elemFactor;for(e=0;e<this.EW.elemFactor.length;++e)this.Nb.elemFactor[e]=(2-h[e])*(this.EW.elemFactor[e]+this.sl.elemFactor[e]);for(var k in sc.Me){e=0;b&&b[k]!==g&&(e=b[k]-1);e=e+this.sl[k];this.Ys[k]=e}}},S$a:function(a){return this.Nb[a]},
T$a:function(a){return this.EW[a]},Hq:function(a){return this.B9[a]},gba:M("Ela")})});ig.G=j;
ig.I("game.feature.player.player-steps").J("impact.base.animation","impact.base.action","impact.base.entity","game.feature.player.player-config","game.feature.combat.model.combat-params","impact.feature.camera.camera").H(function(){function a(a,b){for(var c=a.co,k=c.length;k--;){var l=c[k];if(l instanceof sc.Bia){l.add!=b&&c.splice(k,1);return j}}return w}var b={NONE:0,MONEY:1};ig.ma.ENABLED_STATS=ig.na.extend({s:new ig.u({attributes:{},label:R("<i style='color: orange'>ENABLED STATS</i>")}),f:F(),
start:function(){sc.ta.setActive(j)}});ig.ma.DISABLE_STATS=ig.na.extend({s:new ig.u({attributes:{},label:R("<i style='color: orange'>DISABLE STATS</i>")}),f:F(),start:function(){sc.ta.setActive(w)}});ig.ma.SAVE_PLAYER_MODEL_VALUE=ig.na.extend({eda:s,s:new ig.u({attributes:{eda:{c:"String",d:"Mode value to set",Y:b}},label:function(){return"<i>SET</i> "+this.eda+" TO <b>player.model.value</b>"}}),f:function(a){this.eda=b[a.modelType]||b.NONE},start:function(){var a=g;switch(this.eda){case b.MONEY:a=
sc.q.R.Ud>=1E3}a!=g&&ig.pa.set("player.model.value",a)}});ig.ma.ADD_PLAYER_CAMERA_TARGET=ig.na.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to target"},speed:{c:"String",d:"Speed of camera transition",Y:ig.ye.hv,U:j}}}),f:function(a){this.P=a.entity;this.speed=a.speed},start:function(a,b){var c=ig.Ra.pd(this.P,b);c&&ig.t.wb.Hla(c,this.speed)}});ig.ma.REMOVE_PLAYER_CAMERA_TARGET=ig.na.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to target"},speed:{c:"String",d:"Speed of camera transition",
Y:ig.ye.hv,U:j}}}),f:function(a){this.P=a.entity;this.speed=a.speed},start:function(a,b){var c=ig.Ra.pd(this.P,b);c&&ig.t.wb.Gta(c,this.speed)}});ig.ma.LEARN_SKILL=ig.na.extend({$e:s,s:new ig.u({attributes:{$e:{c:"Integer",d:"Skill ID"}}}),f:function(a){this.$e=a.skill},start:function(){sc.q.R.m3(this.$e)}});var c={NEUTRAL:0,HEAT:1,COLD:2,SHOCK:3,WAVE:4,ALL_AVAILABLE:5};ig.ma.RESET_SKILL_TREE=ig.na.extend({element:s,s:new ig.u({attributes:{element:{c:"String",d:"element to reset",Y:c,ub:c.Llb}},label:function(){return"RESET <b>"+
this.element+"</b> SKILLTREE"}}),f:function(a){this.element=c[a.element||"NEUTRAL"]},start:function(){if(this.element>=5)for(var a=0;a<5;a++)sc.q.R.MO(a)&&sc.q.R.vy(a);else sc.q.R.vy(this.element)}});ig.ma.SWITCH_PLAYER_CONFIG=ig.na.extend({name:s,ad:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of player config",Y:sc.XYa}}}),f:function(a){this.name=a.name;this.ad=new sc.d8(this.name)},Qa:function(){this.ad.zc()},start:function(){sc.q.R.rX(this.ad)}});ig.ma.WAIT_UNTIL_PLAYER_CHARGED=ig.na.extend({aa:s,
s:new ig.u({attributes:{aa:{c:"Number",d:"Wait until this level of charge has been reached"}}}),f:function(a){this.aa=a.level},xa:function(){return this.aa<=ig.t.wb.P9a()}});ig.ma.SWITCH_ELEMENT_MODE=ig.na.extend({element:s,s:new ig.u({attributes:{element:{c:"String",d:"Element to switch to",Y:sc.ja}}}),f:function(a){this.element=sc.ja[a.element]||sc.ja.NEUTRAL},start:function(){sc.q.R.G5(this.element,j)}});ig.ma.SWITCH_TO_ELEMENT_WITH_COMBAT_ART=ig.na.extend({s:new ig.u({attributes:{lFa:{c:"String",
d:"Type of combat art",Y:["THROW","ATTACK","DASH","GUARD"]},aa:{c:"Integer",d:"Minimum Level"}}}),f:function(a){this.lFa=a.artType;this.aa=a.level},start:function(){for(var a in sc.ja)if(sc.q.R.JU(this.lFa,sc.ja[a])>=this.aa){sc.q.R.G5(sc.ja[a],j);break}}});ig.Ha.SHOOT_PROXY_PLAYER=ig.Pa.extend({ZW:s,u1:s,s:new ig.u({attributes:{proxy:{c:"ProxyRef",d:"Ball the entity will shoot",U:j},u1:{c:"String",d:"Ball the entity will shoot",U:j,Y:["QUICK","CHARGED"]}}}),f:function(a){a.elementProxy?this.u1=a.elementProxy:
this.ZW=sc.FB.vea(a.proxy)},xa:function(a){var b;if(b=this.u1?this.u1=="CHARGED"&&a.QNa?a.QNa:a.q.ad.AIa(a.q.Uj,this.u1=="CHARGED"):sc.FB.tba(this.ZW,a)){var c=a.b.i.x+a.b.size.x/2,k=a.b.i.y+a.b.size.y/2,l=a.qP<0?a.b.i.z:Math.min(a.b.i.z,a.qP),l=l+Constants.KR;b.Hu(c,k,l,a,a.fga)}return j}});ig.Ha.SET_PLAYER_ACTION_BLOCK=ig.Pa.extend({hob:s,s:new ig.u({attributes:{vFa:{c:"Object",d:"Block Time Data"}}}),f:function(a){assertContent(a,"blockData");this.vFa=a.blockData},xa:function(a){a.oua&&a.oua(this.vFa);
return j}});ig.Ha.SET_PLAYER_INVINCIBLE=ig.Pa.extend({lh:w,s:new ig.u({attributes:{lh:{c:"Number",d:"Factor multiplied with base invincibility",ub:1}}}),f:function(a){this.lh=a.factor||1},xa:function(a){var b=(3+a.ba.le("focus")/250+1*a.ba.Rl("DASH_INVINC"))/60*this.lh;a.Yx=b;return j}});ig.Ha.PLAYER_ADJUST_FACE=ig.Pa.extend({time:0,s:new ig.u({attributes:{time:{c:"Number",d:"Duration over which to adjust face"}}}),f:function(a){this.time=a.time||0},start:function(a){a.Hb=a.Hb+this.time},xa:function(a){a.Xv&&
a.T.Lg.Uoa(a.face);return a.Hb<=0}});sc.Bia=ig.ra.extend({add:w,speed:s,f:function(a,b){this.add=a;this.speed=b},Zr:function(a){this.add?ig.t.wb.Hla(a,this.speed):ig.t.wb.Gta(a,this.speed)}});ig.Ha.ADD_PLAYER_CAMERA_TARGET=ig.Pa.extend({s:new ig.u({attributes:{speed:{c:"String",d:"Speed of camera transition",Y:ig.ye.hv,U:j},vr:{c:"Boolean",d:"If true: Do NOT undo change when action is cancelled"}}}),f:function(a){this.speed=a.speed;this.vr=a.actionDetached},start:function(b){ig.t.wb.Hla(b,this.speed);
if(!this.vr&&!a(b,j)){var c=new sc.Bia(j,this.speed);b.fp(c)}}});ig.Ha.REMOVE_PLAYER_CAMERA_TARGET=ig.Pa.extend({s:new ig.u({attributes:{speed:{c:"String",d:"Speed of camera transition",Y:ig.ye.hv,U:j},vr:{c:"Boolean",d:"If true: Do NOT undo change when action is cancelled"}}}),f:function(a){this.speed=a.speed;this.vr=a.actionDetached},start:function(b){ig.t.wb.Gta(b,this.speed);if(!this.vr&&!a(b,w)){var c=new sc.Bia(w,this.speed);b.fp(c)}}})});ig.G=j;
ig.I("game.feature.player.player-level").H(function(){sc.fz={kGa:function(a,b,c){for(var d in b){var e=b[d].base,h=b[d].increase,k=Math.sin(Math.PI*2*(c/4+b[d].variance)),l,m;l=(Math.pow(1.25,c/10)-1)/(Math.pow(1.25,10)-1);m=Math.log(1.25)/10*Math.pow(1.25,c/10)/(Math.pow(1.25,10)-1);m=m*h*0.5;a[d]=e+Math.floor(h*l+k*m)}},G$:function(a,b,c,d,e,h){var k=c-b,c=1;switch(k){case -6:c=0.01;break;case -5:c=0.05;break;case -4:c=0.15;break;case -3:c=0.3;break;case -2:c=0.55;break;case -1:c=0.85;break;case 0:c=
1;break;case 1:c=1.2;break;case 2:c=1.4;break;case 3:c=1.6;break;case 4:c=1.8;break;case 5:c=2;break;default:c=k<0?0.01:2}b=100/(99+b);h&&(b=1);return e?0:Math.max(1,Math.floor(a*c*b*(d!=g?d:1)))},CSa:function(a,b,c){for(var d in a)if(a[d]>=0){var e=sc.Pb.getItem(a[d]),h=e.params;b.hp=b.hp+Math.floor(h.hp||0);b.attack=b.attack+Math.floor(h.attack||0);b.defense=b.defense+Math.floor(h.defense||0);b.focus=b.focus+Math.floor(h.focus||0);if(h.elemFactor)for(var k=4;k--;)b.elemFactor[k]=Math.min(200,Math.floor(b.elemFactor[k]*
100)+Math.floor((h.elemFactor[k]||1)*100-100))/100;var e=e.properties,l;for(l in e)if(sc.Me[l])if(c[l]){h=c[l];h=Math.round(h*100)+Math.round(e[l]*100-100);c[l]=Math.min(200,h)/100}else c[l]=e[l]}},U9:function(a,b,c,d,e,h){if(b){for(var k=0,l=0;l<b.length;++l)if(b[l].level)if(b[l].level<=c)k=l;else break;for(l=k;l<b.length;++l){k=b[l];if(!h&&k.condition&&!k.condition.evaluate())break;if(k.level&&k.level<=d){var c=k.level,m;for(m in sc.Zc){var n=sc.Zc[m],o=k[m];if(o){e&&a.bx(o,1,j);a.AQ(n,o)}}}else if(k.level>
d)break}return c}},Wb:function(a,b,c){var d;switch(b){case sc.Zc.HEAD:d=a.head;a.head=c;break;case sc.Zc.LEFT_ARM:d=a.di;a.di=c;break;case sc.Zc.RIGHT_ARM:d=a.ki;a.ki=c;break;case sc.Zc.TORSO:d=a.Jh;a.Jh=c;break;case sc.Zc.FEET:d=a.mh;a.mh=c}return d}}});ig.G=j;
ig.I("game.feature.player.player-model").J("game.feature.model.base-model","game.feature.combat.model.combat-params","game.feature.combat.entities.ball","game.feature.player.player-config","game.feature.player.player-steps","game.feature.achievements.stats-model","game.feature.player.player-level").H(function(){var a={id:0,zb:0,Ko:w},b=s,c=s,d,e;sc.pWa=10;sc.Sya=12;sc.Wc={qH:1,r7:2,ZL:3,nE:4,Aha:5,Qxa:6,wE:7,o8:8,AZ:9,M7:10,FZ:11,o7:12,$Y:13,Ww:14,Uha:15,Sha:16,Tha:17,Rya:18};sc.hg={MOVE:1,CHARGE:2,
DASH:3,CLOSE_COMBAT:4,GUARD:5,CREDITS:6,MENU:7,ELEMENT_NEUTRAL:8,ELEMENT_HEAT:9,ELEMENT_COLD:10,ELEMENT_SHOCK:11,ELEMENT_WAVE:12,QUICK_MENU:13,THROWING:14,ELEMENT_LOAD:15,ELEMENT_CHANGE:16,SPECIAL:17,COMBAT_RANK:18,QUEST_SWITCH:19,EXP:20,MENU_CIRCUIT:21,MENU_SYNOPSIS:22,MENU_SOCIAL:23,MENU_SOCIAL_INVITE:24};sc.$L=1E3;sc.Bmb=16;sc.JZ=[0,4,8,12,16];var h=[];h[sc.cj.THROW_NORMAL]=1;h[sc.cj.THROW_NORMAL_REV]=1;h[sc.cj.THROW_NORMAL_CHARGED]=3;h[sc.cj.THROW_NORMAL_CHARGED_REV]=3;h[sc.cj.ATTACK]=1;h[sc.cj.ATTACK_REV]=
1;h[sc.cj.ATTACK_FINISHER]=2;h[sc.cj.THROW_SPECIAL1]=4;h[sc.cj.THROW_SPECIAL2]=6;h[sc.cj.THROW_SPECIAL3]=12;h[sc.cj.ATTACK_SPECIAL1]=4;h[sc.cj.ATTACK_SPECIAL2]=6;h[sc.cj.ATTACK_SPECIAL3]=12;sc.pZa=ig.ra.extend({um:[],Qm:{},ad:s,w3:s,Wb:{head:-1,di:-1,ki:-1,Jh:-1,mh:-1},rc:[],ru:[],xp:[],nb:s,ta:s,Nb:{elemFactor:[1,1,1,1]},Bv:{},Fx:{},ba:s,name:s,Nc:s,Ud:0,aa:1,exp:0,Ue:[],Pp:[],Ar:0,UQ:2,Es:s,Pk:{},OV:{level:0,cp:0,hp:0,attack:0,defense:0,focus:0},Uj:0,Tt:0,Caa:0,jA:w,qu:0,zT:s,f:function(){this.ba=
new sc.t7;this.CG(2);for(var a in sc.hg)this.Qm[sc.hg[a]]=j;for(var b in sc.ja)this.Pp[sc.ja[b]]=0;window.Yc&&ig.Dj.dg("chapters","ChapterList","Chapters");this.zT=ig.Dj.get("chapters");ig.pa.Gp("item",this,"VarItemEditor");ig.pa.Gp("equip",this,"VarEquipEditor");ig.pa.Gp("player",this,"VarPlayerEditor");ig.pa.Gp("chapter",this,"VarChapterEditor")},rX:function(a){this.ad&&this.ad.zc();this.ad=a;this.ad.fqa();this.name=a.name;this.Nc=a.Nc;this.nb=a.nb;this.ta=a.ta;this.Es=a.Es;this.Pk=a.Pk;this.ms();
sc.K.wa(this,sc.Wc.o7)},xSa:function(a){for(var b=ig.pa.get("plot.line"),c=this.zT.length;c--;)if(b>=this.zT[c].plotline){this.Ar=c;break}b=sc.ud.fIa(sc.dz.STORY,sc.pE.ORDER);for(c=0;c<this.Ar+1;c++)a?sc.ud.L6(b[c],w,j,!sc.ud.wV(b[c])):sc.ud.wV(b[c])||sc.ud.L6(b[c],w)},reset:function(){for(var a in sc.hg)this.Qm[sc.hg[a]]=j;for(var b in sc.ja)this.Pp[sc.ja[b]]=0;this.aa=1;this.exp=0;this.CG(1);this.ba.reset(sc.JZ[2]);this.UQ=2;for(b in this.Wb)this.Wb[b]=-1;this.rc.length=0;this.ru.length=0;this.xp.length=
0;this.Tt=this.Uj=this.Ud=this.Ue.length=0;this.jA=w;this.Ar=0;this.ms();sc.K.wa(this,sc.Wc.AZ)},$kb:function(a){this.Caa=this.Caa+ig.g.tp;sc.ta.cc("element","time"+this.Uj,ig.g.uy);var b=0;this.Caa>1&&(b=1);a||(b=b*8);!this.jA&&!this.Uj&&(b=b*3);this.jA&&(b=b*4);b&&this.Tt>0&&this.Kla(-b*ig.g.tp);if(this.qu>0){this.qu=sc.pb.xqa(ig.t.wb)?this.qu-ig.g.tp:this.qu-ig.g.tp*10;if(this.qu<=0){this.qu=0;sc.K.wa(this,sc.Wc.Sha)}}},Kla:function(a){if(this.Qm[sc.hg.ELEMENT_LOAD]){var b=50*(1+this.ba.Rl("OVERHEAT_REDUCTION"));
this.Tt=this.Tt+a/b;if(this.Tt<0){this.jA=w;this.Tt=0}else if(this.Tt>=1){this.q8a();this.Tt=1}}},q8a:function(){if(!this.jA){sc.ta.cc("element","overload",1);sc.pb.WN(ig.t.wb,ig.t.wb,sc.dE.OVERLOAD);var a=new sc.y8(ig.t.wb,"Elemental Overload",1);ig.T.Mc(a);this.jA=j;this.G5(sc.ja.NEUTRAL,j)}},q4:function(a,b,c){this.Uj==sc.ja.NEUTRAL&&this.Kla(-(c.FP*c.pna))},Abb:function(a){if(this.Uj!=sc.ja.NEUTRAL)if(a=h[a]){this.Kla(a);this.Caa=0}},eA:R("Lea"),Uva:function(a,b,c){for(var d=w,b=b?1:-1,e=3,c=
c!=g?c:-1;e--;){if(c==a){this.m3(c);d=j;break}if(this.Ue[a+b]){this.Ue[a+b]=s;this.Ue[a]=sc.Qp.Ue[a];ig.debug("SWITCH SKILL: "+a);d=j}a=a+2}sc.ta.cc("player","branches",1);this.ms();d&&sc.K.wa(this,sc.Wc.o8)},m3:function(a,b){if(!b){var c=sc.Qp.DF(a);ig.debug("LEARN SKILL: "+a+" ["+c.OQ+"]");var d=c.element,c=c.T1();if(c!=g&&d!=g){this.Pp[d]=this.Pp[d]-c;sc.ta.cc("player","skillPoints",c);sc.ta.cc("player","skillPoints"+d,c);this.Pp[d]<0&&f(Error("Skillpoints can never be below zero!"))}}this.Ue[a]=
sc.Qp.Ue[a];sc.ta.cc("player","skills",1);this.Ue[a].PQ?sc.ta.cc("player","skillsActive",1):sc.ta.cc("player","skillsPassive",1);this.ms();sc.K.wa(this,sc.Wc.wE,a)},Nkb:function(a){a!=g&&(this.Ue[a]=s);sc.K.wa(this,sc.Wc.wE)},ne:function(a){return this.Ue[a]},Ipa:function(a){a=sc.Qp.DF(a);return this.Pp[a.element]-a.T1()>=0},ZEa:function(a,b,c){if(c)for(b=this.Pp.length;b--;)this.Pp[b]=Math.min(this.Pp[b]+a,200);else this.Pp[b]=Math.min(this.Pp[b]+a,200);sc.K.wa(this,sc.Wc.Qxa)},vy:function(a){if(!(a==
g||a<0)){for(var b=s,c=this.Ue.length;c--;)(b=this.Ue[c])&&b.element==a&&(this.Ue[c]=s);this.Pp[a]=this.SIa(a);this.ms();sc.K.wa(this,sc.Wc.wE)}},CG:function(a){if(!(a<0||a>=sc.JZ.length)){this.UQ=a;this.ba.Iua(sc.JZ[a]);this.ba.Wj=this.ba.Ao/2}},bx:function(b,c,d){if(!(b<0)){this.rc[b]=this.rc[b]?Math.min(this.rc[b]+(c|0),99):c|0;this.p2a(b);sc.ta.cc("items","total",c);sc.ta.cc("items",b,c);a.id=b;a.zb=c;a.Ko=d;sc.K.wa(this,sc.Wc.M7,a)}},Rwa:function(a){if(!(a<0)){if(this.rc[a]){this.qu=sc.pWa;this.rc[a]=
this.rc[a]-1;if(this.rc[a]<=0){this.vV(a)&&this.DSa(a);this.QDa(a)}sc.ta.cc("items","used",1);sc.K.wa(this,sc.Wc.$Y,a);return j}return w}},removeItem:function(b,c,d){if(!(b<0||c<=0)){if(this.rc[b]){c=Math.min(this.rc[b],c);this.rc[b]=this.rc[b]-c;this.rc[b]<=0&&this.QDa(b);a.id=b;a.zb=c;d||sc.K.wa(this,sc.Wc.Uha,a);return j}return w}},Nr:function(a){if(!(a<0))return this.rc[a]||0},Ov:function(a){return this.Nr(a)>0},OU:function(a){if(!(a<0)){var b=this.rc[a]||0,c=sc.Pb.getItem(a);if(c.type==sc.Hm.EQUIP){var d=
-1,e=-1;switch(c.equipType){case sc.Of.HEAD:d=this.Wb.head;break;case sc.Of.ARM:d=this.Wb.di;e=this.Wb.ki;break;case sc.Of.TORSO:d=this.Wb.Jh;break;case sc.Of.FEET:d=this.Wb.mh}d>=0&&d==a&&b++;e>=0&&e==a&&b++}return b}},apa:function(a,b,c){if(!a)return[];for(var d=[],e=this.rc.length,h=s;e--;)if(this.rc[e])(h=sc.Pb.getItem(e))&&h.type==a&&d.push(e);b!=g&&this.XQa(d,b,c);return d},Ppb:M("xp"),vO:function(a,b,c){if(!a)return[];var d=[],e=this.rc.length,h=s,r=-10,p=-10;if(b)switch(a){case sc.Of.ARM:r=
this.Wb.di;p=this.Wb.ki;break;case sc.Of.HEAD:r=this.Wb.head;break;case sc.Of.TORSO:r=this.Wb.Jh;break;case sc.Of.FEET:r=this.Wb.mh}for(;e--;){if(b){if(e!=r&&e!=p&&!this.rc[e])continue}else if(!this.rc[e])continue;(h=sc.Pb.getItem(e))&&(h.type==sc.Hm.EQUIP&&h.equipType==a)&&d.push(e)}c!=g&&this.XQa(d,c);return d},XQa:function(a,b,c){switch(b){case sc.ih.ORDER:c?a.sort(this.L4a.bind(this)):a.sort(this.l9.bind(this));break;case sc.ih.NAME:a.sort(this.K4a.bind(this));break;case sc.ih.AMOUNT:a.sort(this.I4a.bind(this));
break;case sc.ih.RARITY:a.sort(this.M4a.bind(this));break;case sc.ih.HP:this.m9(a,"hp");break;case sc.ih.ATTACK:this.m9(a,"attack");break;case sc.ih.DEFENSE:this.m9(a,"defense");break;case sc.ih.FOCUS:this.m9(a,"focus")}},p2a:function(a){for(var b=this.xp.length;b--;)if(this.xp[b]==a){this.xp.splice(b,1);break}this.xp.splice(0,0,a);if(this.xp.length>=22)this.xp.length=22},QDa:function(a){for(var b=this.xp.length;b--;)if(this.xp[b]==a){this.xp.splice(b,1);break}},L4a:function(a,d){var e=sc.Pb;b=e.getItem(a).order||
0;c=e.getItem(d).order||0;this.vV(a)&&(b=b-1E6);this.vV(d)&&(c=c-1E6);return b-c},l9:function(a,b){var c=sc.Pb;return(c.getItem(a).order||0)-(c.getItem(b).order||0)},K4a:function(a,d){var e=sc.Pb;b=ig.Oa.wc(e.getItem(a).name);c=ig.Oa.wc(e.getItem(d).name);return b<c?-1:b>c?1:0},I4a:function(a,b){var c=sc.Pb;return this.rc[a]==this.rc[b]?(c.getItem(a).order||0)-(c.getItem(b).order||0):(this.rc[a]||0)-(this.rc[b]||0)},M4a:function(a,d){var e=sc.Pb;b=e.getItem(a);c=e.getItem(d);return b.rarity==c.rarity?
(b.order||0)-(c.order||0):(b.rarity||0)-(c.rarity||0)},m9:function(a,h){a.sort(function(a,k){var o=sc.Pb;b=o.getItem(a);c=o.getItem(k);if(!b.params)return-1;if(!c.params)return 1;if(!c.params||!c.params)return 0;d=b.params||{};e=c.params||{};return e[h]==d[h]?(c.order||0)-(b.order||0):(e[h]||0)-(d[h]||0)}.bind(this))},g6a:function(){return this.ru.length<12},vV:function(a){for(var b=this.ru.length;b--;)if(this.ru[b]==a)return j;return w},DSa:function(a){for(var b=this.ru.length;b--;)if(this.ru[b]==
a){this.ru.splice(b,1);this.ru.sort(this.l9.bind(this));sc.K.wa(this,sc.Wc.Tha);return w}this.ru.push(a);this.ru.sort(this.l9.bind(this));sc.K.wa(this,sc.Wc.Tha);return j},AQ:function(b,c){var d=sc.fz.Wb(this.Wb,b,c);if(c!=d){this.ms();if(c>0){this.rc[c]--;this.rc[c]<0&&(this.rc[c]=s);a.id=c;a.zb=-1;sc.K.wa(this,sc.Wc.Rya,a)}if(d&&d>0){this.rc[d]?this.rc[d]++:this.rc[d]=1;a.id=d;a.zb=1;sc.K.wa(this,sc.Wc.Rya,a)}sc.K.wa(this,sc.Wc.Aha,a)}},GKa:function(a){for(var b in this.Wb)if(this.Wb[b]!=-1&&this.Wb[b]==
a)return j;return w},gib:function(a,b){this.Qm[a]=b},hib:function(a){for(var b in sc.hg)this.Qm[sc.hg[b]]=a?j:w},Si:function(a){return this.Qm[a]},iIa:function(){return sc.q.sqa()?10:0},MO:function(a){switch(a){case sc.ja.NEUTRAL:return this.Qm[sc.hg.ELEMENT_NEUTRAL];case sc.ja.HEAT:return this.Qm[sc.hg.ELEMENT_HEAT];case sc.ja.COLD:return this.Qm[sc.hg.ELEMENT_COLD];case sc.ja.SHOCK:return this.Qm[sc.hg.ELEMENT_SHOCK];case sc.ja.WAVE:return this.Qm[sc.hg.ELEMENT_WAVE]}return w},DQ:function(a){this.aa=
a;this.ms();this.vy(sc.ja.NEUTRAL);this.vy(sc.ja.HEAT);this.vy(sc.ja.COLD);this.vy(sc.ja.SHOCK);this.vy(sc.ja.WAVE);sc.K.wa(this,sc.Wc.nE,s)},$M:function(a,b,c,d,e){if(this.Si(sc.hg.EXP)){var h=sc.Ca.$M(a,b,c,d,e),r=0,a=a*h,r=d?sc.fz.G$(a,this.aa,b,g,g,e):sc.fz.G$(a,this.aa,b,1+this.ba.Rl("XP_PLUS"),this.ba.Rl("XP_ZERO"),e),r=r+(c||0);if(r==0)return 0;this.exp=this.exp+r;sc.ta.cc("player","exp",r);if(this.exp>=1E3){a=Math.floor(this.exp/1E3);this.aa=this.aa+a;sc.ta.cc("player","level",a);this.ZEa(a,
s,j);this.exp=this.exp%1E3;b=ig.copy(this.Nb);this.ms();for(var p in b)b[p]=this.Nb[p]-b[p];b.level=a;b.cp=a;for(p in b)this.OV[p]=this.OV[p]+b[p];sc.K.wa(this,sc.Wc.nE,b)}sc.K.wa(this,sc.Wc.ZL,r);return r}},D9:function(a,b,c){c&&(a=Math.round(a*(1+this.ba.Rl("MONEY_PLUS"))));this.Ud=this.Ud+a;if(this.Ud>=9999999)this.Ud=9999999;sc.ta.cc("player","money",a);sc.K.wa(this,sc.Wc.r7,a)},Ita:function(a,b){this.Ud=Math.max(this.Ud-a,0);b||sc.K.wa(this,sc.Wc.r7,-a)},gpa:function(a,b){return sc.fz.G$(a,this.aa,
b)},Tea:function(){this.ba.mV(9999)},G5:function(a,b){if(b||this.Qm[sc.hg.ELEMENT_CHANGE])if(b||this.MO(a)){this.Uj=a;sc.ta.cc("element","used"+a,1);this.ba.pua(this.Pk[a].Nb);this.ba.Kua(this.Pk[this.Uj].Ys);sc.K.wa(this,sc.Wc.qH)}},lIa:function(){return this.Pk[this.Uj]},Hq:function(a){return this.Pk[this.Uj].Hq(a)||this.Es.Hq(a)},gba:function(){return this.ad.fn},Qpb:R("DEFAULT"),ms:function(){sc.fz.kGa(this.Nb,this.ta,this.aa);this.Bv=ig.copy(this.Nb);this.Fx={};sc.fz.CSa(this.Wb,this.Bv,this.Fx);
for(var a in sc.ja)this.Pk[sc.ja[a]].cta();for(var b=0;b<this.Ue.length;b++)this.Ue[b]&&this.Ue[b].yn(this);this.Es.update(this.Bv,this.Fx);for(a in sc.ja)this.Pk[sc.ja[a]].update(this.Bv,this.Fx);this.ba.pua(this.Pk[this.Uj].Nb);this.ba.Kua(this.Pk[this.Uj].Ys);sc.K.wa(this,sc.Wc.Ww)},JU:function(a,b){for(var c=0,d=this.Ue.length;d--;)this.Ue[d]&&this.Ue[d].JU&&(c=Math.max(c,this.Ue[d].JU(a,b)));return c},cqb:function(a){var b=g,c=0,d;for(d in sc.ja){var e=sc.ja[d],h=this.JU(a,e);if(h>c){c=h;b=e}}return b},
Hpa:function(){return this.OV.level>0},VFa:function(){for(var a in this.OV)this.OV[a]=0},On:function(a,b){if(b[0]=="item"){var c=b[1];if(b[2]=="amount")return this.rc[c]||0;if(b[2]=="name")return sc.Pb.v$a(c)}else if(b[0]=="equip")switch(b[1]){case "head":return this.Wb.head;case "feet":return this.Wb.mh;case "leftArm":return this.Wb.di;case "rightArm":return this.Wb.ki;case "torso":return this.Wb.Jh}else if(b[0]=="player")switch(b[1]){case "money":return this.Ud+"";case "level":return this.aa+"";
case "hasLevelUp":return this.Hpa();case "exp":return this.exp+"";case "element":return this.Uj+"";case "hasElement":return this.MO(b[2]*1);case "elementLoad":return this.Tt+"";case "param":return this.ba.le(b[2])+"";case "paramElementFactor":return this.ba.le("elemFactor")[b[2]]+"";case "modifier":return this.ba.Rl(b[2])+"";case "hp":return this.ba.Jb+"";case "sp":return this.ba.Wj+"";case "core":return this.Si(b[2]);case "artLevel":return this.JU(b[2])}else if(b[0]=="chapter")switch(b[1]){case "current":return this.Ar;
case "name":return this.zT[b[2]]?ig.Oa.wc(this.zT[b[2]].name):"No Title"}f(Error("Unsupported var access path: "+a))},slb:function(){for(var a=0;a<this.Pp.length;++a)if(this.Pp[a]<this.SIa(a))return j;return w},SIa:function(){return this.aa-1},LC:function(){var a={};a.playerConfig=this.ad.name;a.credit=this.Ud;a.level=this.aa;a.exp=this.exp;a.currentElementMode=this.Uj;a.elementLoad=this.Tt;a.hasOverload=this.jA;a.hp=this.ba.Jb;a.core=ig.copy(this.Qm);a.skills=[];a.chapter=this.Ar||0;for(var b=0;b<
this.Ue.length;++b)this.Ue[b]&&(a.skills[b]=j);a.skillPoints=ig.copy(this.Pp);a.items=ig.copy(this.rc);a.equip={head:this.Wb.head,leftArm:this.Wb.di,rightArm:this.Wb.ki,torso:this.Wb.Jh,feet:this.Wb.mh};a.spLevel=this.UQ;a.itemFavs=ig.copy(this.ru);a.itemNew=ig.copy(this.xp);a.skillVersion=sc.Qp.version;return a},Ofb:function(a){this.VFa();this.ru=a.itemFavs||[];this.xp=a.itemNew||[];this.Ud=Math.round(a.credit||0);this.aa=a.level||1;this.exp=a.exp||0;this.Ar=a.chapter||0;this.Uj=a.currentElementMode||
0;this.Tt=a.elementLoad||0;this.jA=a.hasOverload||w;this.ba.Jb=a.hp||1;this.ba.ROa();this.Qm=a.core;for(var b in sc.hg){var c=sc.hg[b];this.Qm[c]==g&&(this.Qm[c]=j)}for(b=this.Ue.length=0;b<a.skills.length;++b)a.skills[b]&&(this.Ue[b]=sc.Qp.Ue[b]);this.Pp=ig.copy(a.skillPoints);this.rc=ig.copy(a.items);if(a.equip.leftArm===g){ig.log("Apply fix for outdated equipment structure");for(c in a.equip)a.equip[c]!=-1&&a.equip[c]!==g&&this.rc[a.equip[c]]++;this.Wb.head=this.Wb.mh=this.Wb.di=this.Wb.ki=this.Wb.Jh=
-1}else{this.Wb.head=a.equip.head;this.Wb.mh=a.equip.feet;this.Wb.di=a.equip.leftArm;this.Wb.ki=a.equip.rightArm;this.Wb.Jh=a.equip.torso}this.CG(a.spLevel||0);this.ms();this.xSa(j);if(a.playerConfig)this.w3=new sc.d8(a.playerConfig);this.ba.Jb=Math.min(this.ba.Jb,this.ba.le("hp"));if(a.skillVersion!=sc.Qp.version&&this.slb()){this.vy(sc.ja.NEUTRAL);this.vy(sc.ja.HEAT);this.vy(sc.ja.COLD);this.vy(sc.ja.SHOCK);this.vy(sc.ja.WAVE);ig.t.Pla(ig.lang.get("sc.gui.loading.skillUpdate"))}for(b=this.xp.length;b--;)this.rc[this.xp[b]]<=
0&&!this.GKa(this.xp[b])&&this.xp.splice(b,1);sc.K.wa(this,sc.Wc.FZ)},Lfb:function(){if(this.w3){this.rX(this.w3);this.w3.zc();this.w3=s}}})});ig.G=j;
ig.I("game.feature.msg.message-model").J("impact.base.game","impact.feature.storage.storage","game.feature.model.base-model","impact.feature.interact.interact","impact.feature.interact.button-interact").H(function(){var a=new ig.nr;sc.YXa=ig.sf.extend({um:[],xw:[],DD:[],iva:w,gU:0,Vj:{},MX:[],Nt:w,S$:s,LLa:s,gp:w,loaded:w,pe:s,yu:0,qT:w,cw:w,f:function(){this.parent("MessageModel");ig.Cc.dg(this);this.pe=new sc.At(this);ig.pa.Gp("msg",this,"VarMsgEditor")},UC:M("Nt"),fF:function(){ig.ua.ie(this.pe);
this.Nt=w},cfb:function(){if(this.yu==1)this.yu=2;this.fF()},cPa:function(a){this.yu=1;if(!ig.g.tl){this.Nt=j;ig.ua.de(this.pe);ig.ua.ed(0.1)}sc.K.wa(this,sc.be.Qia,a)},ZKa:function(){return this.yu==2},ucb:function(){return this.yu==3},nRa:function(){if(this.yu!=3){this.D0();this.yu=3;this.Nt=j;sc.K.wa(this,sc.be.KAa)}},pHa:function(a){if(this.yu!=0){var c=j;if(this.yu==3){c=w;this.D0();this.XI()}this.yu=0;this.Nt=j;sc.K.wa(this,c?sc.be.aya:sc.be.gya,a)}},WPa:function(b){if(this.cw!=b){(this.cw=
b)?ig.ua.de(a):ig.ua.ie(a);sc.K.wa(this,sc.be.iza,this.cw);sc.q.p6()}},Lqb:M("cw"),AX:function(a,c,d){this.XI();this.ZBa(a);this.Nt=j;this.gp=d;ig.ua.de(this.pe);ig.ua.ed(0.1);sc.K.wa(this,sc.be.pia,{name:a,text:c})},sjb:function(a,c,d){this.XI();this.Nt=j;this.gp=d;ig.ua.de(this.pe);ig.ua.ed(0.1);sc.K.wa(this,sc.be.pia,{name:s,text:c,left:a})},gjb:function(a,c){sc.q.Mma();this.qT||this.tRa();this.Nt=j;ig.ua.de(this.pe);ig.ua.ed(0.1);this.qT=j;sc.K.wa(this,sc.be.wza,{text:a,ko:c})},jqb:M("qT"),ijb:function(a,
c){this.XI();if(ig.Re)for(var d=c.length;d--;)ig.Re.ND("Choice "+d,c[d].label);this.ZBa(a);this.Nt=j;this.S$=c;sc.q.p6();sc.K.wa(this,sc.be.wAa,{name:a,options:c})},tjb:function(a,c,d){this.iva||this.G0();this.iva=j;a={kx:new sc.mH(a.name),Wg:c,message:d};this.DD.push(a);sc.K.wa(this,sc.be.xza)},Nhb:function(a){this.LLa=a;this.S$=s;this.fF()},G0:function(){for(this.kgb=this.DD.length;this.DD.length>0;){var a=this.DD.shift();this.xw.push(a)}for(;this.xw.length>50;)this.xw.shift().kx.zc();sc.K.wa(this,
sc.be.Jxa)},XEa:function(a,c,d,e,h){this.XI();var k=a.name;if(!a.getExpression(c)){ig.warn("Expression '"+c+"' of Person '"+k+"' does not exist. Use DEFAULT instead");c=s}if(this.Vj[k]){this.Vj[k].$q=d;this.Vj[k].gi=e;this.Vj[k].Wg=c;this.Vj[k].kh=h||s;sc.K.wa(this,sc.be.Rza,k)}else{this.Vj[k]={kx:a,$q:d,gi:e,Wg:c||"DEFAULT",kh:h||s};sc.K.wa(this,sc.be.Qza,k)}},setExpression:function(a,c){if(this.Vj[a]){this.Vj[a].Wg=c;sc.K.wa(this,sc.be.pya,a)}},Ugb:function(a){this.XI();if(this.Vj[a]){delete this.Vj[a];
sc.K.wa(this,sc.be.Sza,a)}},xN:function(a){for(var c in this.Vj)(!a||this.Vj[c].$q==a)&&delete this.Vj[c];sc.K.wa(this,sc.be.Ixa,a)},D0:function(){this.xN(sc.jia.ALL)},XI:function(){if(this.qT){this.qT=w;sc.K.wa(this,sc.be.Kxa,s);this.MQa()}},wsa:function(a){this.D0();this.XI();this.yu&&this.pHa(a)},tRa:function(){this.MX.length=0;for(var a in this.Vj){var c=this.Vj[a];this.MX.push({kx:c.kx,$q:c.$q,Wg:c.Wg,gi:c.gi})}this.D0()},MQa:function(){if(this.MX.length!=0){this.D0();for(var a=0;a<this.MX.length;++a){var c=
this.MX[a];this.XEa(c.kx,c.Wg,c.$q,c.gi)}this.MX.length=0}},cbb:function(){for(var a in this.Vj)return j;return w},clear:function(){this.wsa(j);for(var a=this.xw.length;a--;)this.xw[a].kx.zc();this.xw=[];this.G0()},E9a:function(a){return this.Vj[a]?this.Vj[a].kx:s},getExpression:function(a){return this.Vj[a]?this.Vj[a].Wg:s},RU:function(a){return this.Vj[a]?this.Vj[a].$q:0},epa:function(a){return this.Vj[a]?this.Vj[a].gi:0},xIa:function(a){return this.Vj[a]?this.Vj[a].kh:s},P$a:function(){var a=this.DD.shift();
this.xw.push(a);this.xw.length>50&&this.xw.shift().kx.zc();return a},KJa:function(){return this.DD.length>0},hLa:function(){return this.gU>0},ql:function(){if(this.yu==1){this.yu=2;this.fF()}else sc.K.wa(this,sc.be.jza,s)},at:function(){sc.q.message.G0()},my:function(){if(this.loaded){sc.K.wa(this,sc.be.xAa);this.loaded=w}},nj:function(){this.S$=s;this.clear()},BA:function(){this.iva=w},Rq:function(a){var c={};c.sideMessages=this.dCa(this.xw);c.sideMessageStack=this.dCa(this.DD);c.displayedSideMessages=
this.gU;a.message=c},dCa:function(a){for(var c=[],d=0;d<a.length;++d){var e=a[d];c.push({"char":e.kx.name,expression:e.Wg,message:e.message.data})}return c},Qq:function(a){this.loaded=j;a=a.message;this.xw=this.bCa(a.sideMessages||[]);this.DD=this.bCa(a.sideMessageStack||[]);this.gU=a.displayedSideMessages},bCa:function(a){for(var c=[],d=0;d<a.length;++d){var e=a[d];e["char"]&&c.push({kx:new sc.mH(e["char"]),Wg:e.expression,message:new ig.Oa(e.message)})}return c},DJa:function(){return!!this.S$},
ZBa:function(a){this.Vj[[a]]||f(Error("Character of name '"+a+'" is currently not in conversation!'))},On:function(a,c){if(c[0]=="msg"){var d=c[1];return d=="hasSideMsg"?this.KJa():d=="stackCount"?this.DD.length:d=="recentlyClearedSideMsg"?this.kgb:s}}});sc.be={};sc.be.Qza=0;sc.be.Sza=1;sc.be.Rza=2;sc.be.pya=3;sc.be.pia=4;sc.be.xza=5;sc.be.Ixa=6;sc.be.Jxa=7;sc.be.wAa=8;sc.be.xAa=9;sc.be.jza=10;sc.be.Qia=11;sc.be.KAa=12;sc.be.gya=13;sc.be.aya=14;sc.be.wza=15;sc.be.Kxa=16;sc.be.iza=17;sc.DB={RIGHT:1,
LEFT:2};sc.jia={RIGHT:1,LEFT:2,ALL:0};ig.wf(function(){return sc.message=new sc.YXa})});ig.G=j;
ig.I("game.feature.menu.area-loadable").J("impact.base.game","impact.base.loader").H(function(){function a(b,d,e,h,k){if(h<0||e<0||h>=d.length||e>=d[0].length?0:d[h][e]==k){d[h][e]=d[h][e]+1E4;b.min.x=Math.min(b.min.x,e);b.min.y=Math.min(b.min.y,h);b.max.x=Math.max(b.max.x,e);b.max.y=Math.max(b.max.y,h);a(b,d,e-1,h,k);a(b,d,e+1,h,k);a(b,d,e,h-1,k);a(b,d,e,h+1,k)}}sc.vY={uY:1};sc.kxa={arrow_up:{index:0,MW:6},arrow_down:{index:1,MW:-5},floor_down:{index:4,MW:-5},arrow_left:{index:2,MW:-2},arrow_right:{index:3,
MW:-2},shop:{index:2},pub:{index:3},armor:{index:4},weapons:{index:5},quest:{index:6},entrance:{index:7},chest:{index:8},area_up:{index:10,MW:6,type:sc.vY.uY,s:{Ub:{c:"Select",d:"Area this leads to",Y:"areas"},map:{c:"Maps",d:"The map this points to"},offset:{c:"Vec2",d:"optional offset",U:j}}},area_down:{index:11,MW:-6,type:sc.vY.uY,s:{Ub:{c:"Select",d:"Area this leads to",Y:"areas"},map:{c:"Maps",d:"The map this points to"},offset:{c:"Vec2",d:"optional offset",U:j}}},area_left:{index:12,Dfb:6,type:sc.vY.uY,
s:{Ub:{c:"Select",d:"Area this leads to",Y:"areas"},map:{c:"Maps",d:"The map this points to"},offset:{c:"Vec2",d:"optional offset",U:j}}},area_right:{index:13,Dfb:-6,type:sc.vY.uY,s:{Ub:{c:"Select",d:"Area this leads to",Y:"areas"},map:{c:"Maps",d:"The map this points to"},offset:{c:"Vec2",d:"optional offset",U:j}}}};sc.mTa={VERTICAL:{first:{x:304,y:416,uc:8,Gc:2,BW:0,DW:6,X6:4,u2:2},Lp:{x:304,y:418,uc:8,Gc:3,BW:0,DW:8,X6:4,u2:3},step:{x:4,y:0,DR:8,ER:0}},HORIZONTAL:{first:{x:296,y:416,uc:3,Gc:8,
BW:5,DW:0,X6:3,u2:4},Lp:{x:299,y:416,uc:2,Gc:8,BW:8,DW:0,X6:2,u2:4},step:{x:0,y:4,DR:0,ER:8}}};sc.tTa=ig.ra.extend({Yu:0,Xu:0,min:{x:0,y:0},max:{x:0,y:0},offset:{x:0,y:0},name:"default_empty",text:"???",id:1,f:function(b,d,e,h,k){this.name=b.path||"default_empty";this.text=b.name?ig.Oa.wc(b.name)||"???":"???";this.id=d||1;this.offset.x=b.offset?b.offset.x:0;this.offset.y=b.offset?b.offset.y:0;this.min.x=this.max.x=e||0;this.min.y=this.max.y=h||0;this.Yu=b.zMin;this.Xu=b.zMax;a(this,k,e,h,this.id);
this.max.x++;this.max.y++}});var b=[];sc.oxa=ig.hS.extend({ui:"AreaMap",data:s,fra:0,f:function(a){this.parent(a)},Us:function(a){$.ajax({dataType:"json",url:ig.root+a.dr("data/areas/",".json")+ig.kl(),context:this,success:this.onload.bind(this),error:this.onerror.bind(this)})},onerror:function(){this.data=s;this.zk(w)},onload:function(a){this.data=a;this.lka();this.zk(j)},lka:function(){for(var a=this.data.floors,d=s,e=s,h=[],k=a.length;k--;){e=a[k];if(e.level<this.fra)this.fra=e.level;b.length=
0;h=[];if((d=e.tiles)&&d[0][0]!=g){for(var l=0;l<d.length;l++)for(var m=0;m<d[l].length;m++){d[l][m]>1E4&&(d[l][m]=d[l][m]-1E4);if(d[l][m]!=0&&!b[d[l][m]]){b[d[l][m]]=1;h.push(new sc.tTa(e.maps[d[l][m]-1],d[l][m],m,l,d));d[l][m]>1E4&&(d[l][m]=d[l][m]-1E4)}}e.rooms=h}else console.error("Tiles must by a two dimensional Array! Tiles: %O",d)}}})});ig.G=j;
ig.I("game.feature.menu.gui.base-menu").J("impact.feature.gui.gui").H(function(){sc.bq=ig.X.extend({visible:w,N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();this.a.Ee=j;this.j("HIDDEN",j)},ac:F(),Yb:F(),xd:F(),Ti:F(),Rc:F()});sc.xja=sc.bq.extend({mb:s,Kd:s,Aa:s,list:s,info:s,Sc:s,f:function(a,b){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;if(a){this.list=a;this.list.l(8,29);this.m(this.list);
this.list.j("HIDDEN",j)}if(b){this.info=b;this.info.l(8,29);this.m(this.info);this.info.j("HIDDEN",j)}this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.Kd=new sc.ec("\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title"),g,j,sc.Ic.Kc);this.Kd.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.Kd.a.size.y},
time:0.2,p:KEY_SPLINES.LINEAR}};this.Kd.Qb=this.CA.bind(this);this.Sc=new sc.xM(this.KP.bind(this));this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this);this.list&&this.list.ac&&this.list.ac()},Yb:function(){sc.K.lc(sc.e,this);this.list&&this.list.Yb&&this.list.Yb()},xd:function(){this.ac();sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);ig.ua.ed(0.2);this.list&&this.list.show();this.info&&this.info.show();this.ek()},Ti:function(){this.Yb();this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.zd(this.Kd);
this.list&&this.list.hide();this.info&&this.info.hide();this.Aa=s;this.Sc.Ga&&this.Sc.Sk()},jr:function(a){var b="\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title")+": ";this.Kd.fa(b+("\\c[3]"+a+"\\c[0]"));sc.e.Ru()},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();if(this.Aa){ig.T.Mc(this.Aa);this.Aa.as()}},lD:function(){return sc.V.hK()},CA:function(){if(this.Sc.Ga)this.Sc.Sk();else{ig.T.Mc(this.Sc);this.Sc.CX(this.Kd)}},KP:function(a){if(a.data){this.Sc.Sk();sc.e.Dy(a)}},Dh:F(),ek:function(){sc.e.Q.md(this.mb,
this.gk.bind(this));sc.e.Q.md(this.Kd,this.lD.bind(this));sc.e.Qi(M("Kd").bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:F()})});ig.G=j;
ig.I("game.feature.menu.gui.list-boxes").J("impact.feature.gui.gui","game.feature.menu.gui.menu-misc").H(function(){sc.dZ={ONE:1,b1a:2};sc.jH=sc.RH.extend({ka:s,Bj:s,paddingTop:0,z4:0,Rma:0,nma:0,wtb:w,RHa:w,Q:s,Uda:0,Fb:{x:0,y:0},il:sc.dZ.ONE,el:0,KE:w,Fnb:0,f:function(a,b,c,d,e,h,k){this.parent(sc.Hl.kz);this.Q=k||sc.e.Q;this.Bj=new ig.X;this.uh(this.Bj);this.paddingTop=a||0;this.z4=b||0;this.Uda=c||0;this.il=d||sc.dZ.ONE;this.Rma=this.il>1?e||0:0;this.nma=this.il>1?h||0:0;this.ka=new sc.Wf(w,this.il>
1?ig.mr.gH:ig.mr.AE);this.si(this.BNa.bind(this))},E5:function(a){if(a){if(this.ka.Tc()){sc.e.Q.Lj(this.ka);this.ka.clear();this.ka.V6a()}this.ka=a;this.ka.si(this.BNa.bind(this))}},vf:function(a){a?a.Cg(this.ka):sc.e.Q.Cg(this.ka)},xi:function(a){a?a.Lj(this.ka):sc.e.Q.Lj(this.ka)},si:function(a){a&&this.ka.si(a)},Vkb:function(){this.fla(this.yka())},Rd:function(a,b,c,d){var e=this.Bj.a.children.length,h=e%this.il,k=Math.floor(e/this.il);a.l(e%this.il*this.nma+this.Rma+(c||0),this.yka(e%this.il!=
0)+this.z4+(d||0));a.F(ig.k.fb,ig.k.W);b||this.ka.Uc(a,h,k+this.Fb.y);this.Bj.m(a);this.fla(this.yka())},nqa:function(a,b,c,d,e,h){this.Bj.SC(a,b);a.F(ig.k.fb,ig.k.W);var k=b%this.il,b=Math.floor(b/this.il);e||this.ka.qKa(a,k,b);this.XDa(c,d,g,h)},Dgb:function(a,b,c,d,e){b?this.Bj.Ooa(a).j(b,w,j):this.Bj.Hta(a);var b=a%this.il,h=Math.floor(a/this.il);e||this.ka.Jta(b,h);this.XDa(c,d,a)},qdb:function(a,b,c,d,e,h){if(a!=b){var k=this.Bj.a.children,l=s,m=k[a],n=0;if(a>b)for(n=b;n<a;n++){l=k[n];l.bd(m.i.x,
l.i.y+m.size.y,c,d||KEY_SPLINES.EASE,0,j);h&&h(l.T,1)}else if(a<b)for(n=a;n<b;n++){l=k[n];l.bd(m.i.x,l.i.y-m.size.y,c,d||KEY_SPLINES.EASE,0,j);h&&h(l.T,-1)}m.bd(0,k[b].i.y,c,d||KEY_SPLINES.EASE,0,j,function(){var c=this.Bj.Hta(a);this.Bj.SC(c,b)}.bind(this));if(!e){c=a%this.il;d=Math.floor(a/this.il);e=this.ka.Jta(c,d);c=b%this.il;d=Math.floor(b/this.il);this.ka.qKa(e,c,d)}}},Dpb:function(a){if(!a)return-1;for(var b=this.Bj.a.children,c=b.length,a=a.a;c--;)if(a==b[c])return c;return-1},qp:function(){return this.Bj.a.children},
NU:function(a){var b=this.Bj.a.children,c=b[a]?b[a].i.y+b[a].size.y:this.paddingTop;this.RHa&&a==b.length-1&&(c=c+200);return c},kab:function(a){return Math.max(this.NU(a)-(this.vc.a.size.y+this.vc.a.scroll.y*-1),0)},clear:function(a){this.el=0;this.KE=a||w;this.Bj.rg();this.Bj.a.size.y=0;this.vc.gj(0,0,0);this.ct()},zG:function(a,b){this.KE=w;this.vc.gj(0,0,0);this.scrollY(a,b)},wX:function(a,b,c){this.KE=w;c||this.vc.gj(0,0,0);this.parent(a,b)},update:function(){this.parent();this.Q.Tc()&&this.ka.Tc()&&
(sc.V.aW()?this.scrollY(-this.Uda):sc.V.$V()&&this.scrollY(this.Uda))},BNa:function(){var a=this.ka.qIa();if(ig.input.dd)this.el=-1;else{var b=this.el;if(b<a){var b=this.NU(a),c=this.vc.a.size.y+this.vc.a.scroll.y*-1,c=Math.max(b-c,0);if(c>0)this.scrollY(c,this.KE);else{c=this.vc.a.scroll.y*-1;if(b<=c){b=this.NU(a-1)-this.paddingTop;this.scrollY(-(c-b),this.KE)}}}else if(b>a){b=this.NU(a-1)-this.paddingTop;c=this.vc.a.scroll.y*-1;c=Math.max(c-b,0);if(c>0)this.scrollY(-c,this.KE);else{c=this.vc.a.size.y+
this.vc.a.scroll.y*-1;b=this.NU(a);c<=b&&this.scrollY(b-c,this.KE)}}this.KE=w;this.el=a}},XDa:function(a,b,c,d){for(var e=this.Bj.a.children,h=0,k=this.paddingTop,l=s,m=0;m<e.length;m++)if(!(c!=g&&c==m)){l=e[m];h=m%this.il*this.nma+this.Rma;if(a)l.bd(h,k,a,b||KEY_SPLINES.EASE,0,j);else{if(!d)l.i.x=h;l.i.y=k}(m+1)%this.il==0&&(k=k+(l.size.y+this.z4))}this.fla(k)},yka:function(a){var b=this.Bj.a.children;if(this.il>=2){var c=b.length;a&&(c=c-1);for(a=0;c--;){a=a+(b[c].size.y+this.z4);c=c-(this.il-1);
if(c<0)break}return a+this.paddingTop}if(b.length==0)return this.paddingTop;b=b[b.length-1];return a=b.i.y+b.size.y},fla:function(a){this.Bj.a.size.y=a;this.ct()}});sc.bZ=ig.X.extend({list:s,select:s,Ed:s,Oe:s,f:function(a,b,c){this.parent();this.Oe=new sc.kM;this.Oe.F(ig.k.fb,ig.k.xb);this.Oe.a.size.x=this.a.size.x;this.list=new sc.jH(a,0,20,g,g,g,c);this.list.F(ig.k.fb,ig.k.xb);this.list.a.size.x=this.a.size.x;this.m(this.Oe);if(!b){this.Ed=new sc.ea(ig.lang.get("sc.gui.menu.quantity"),{speed:ig.rd.Nd.We,
font:sc.Ka.Lb});this.Ed.F(ig.k.ha,ig.k.W);this.Ed.l(1,0);this.m(this.Ed)}this.m(this.list)},v:function(a,b){this.parent(a,b);this.Oe.a.size.x=this.a.size.x;this.Oe.a.size.y=this.a.size.y-7;this.list.v(this.a.size.x,this.a.size.y-7)},clear:function(a){this.list.clear(a)},Rd:function(a){this.list.Rd(a)},qp:function(){return this.list.qp()}});sc.eYa=ig.X.extend({list:s,lua:[],mta:[],Oe:s,il:sc.dZ.ONE,f:function(a,b,c,d){this.parent();this.il=c||sc.dZ.ONE;this.Oe=new sc.kM;this.Oe.F(ig.k.fb,ig.k.xb);
this.Oe.a.size.x=this.a.size.x;this.m(this.Oe);for(var e,b=b||0,d=d||0,h=b+d,k=0,l=0;l<this.il;l++){e=new sc.ea(ig.lang.get("sc.gui.menu.select"),{speed:ig.rd.Nd.We,font:sc.Ka.Lb});e.l(7+l*h,0);e.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.lua[l]=e;this.m(e);k=this.il*h-(l+1)*h;e=new sc.ea(ig.lang.get("sc.gui.menu.quantity"),{speed:ig.rd.Nd.We,font:sc.Ka.Lb});e.F(ig.k.ha,ig.k.W);e.l(k+4,0);e.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},
HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.mta[l]=e;this.m(e)}this.list=new sc.jH(a,0,20,c,d,b);this.list.F(ig.k.fb,ig.k.xb);this.list.a.size.x=this.a.size.x;this.m(this.list)},Rd:function(a){this.list.Rd(a)},clear:function(a){this.list.clear(a)},zG:function(a,b){this.list.scrollY(a,b)},Kib:function(a,b){for(var c=this.lua.length;c--;)this.lua[c].j(a,b)},Gsb:function(a,b){for(var c=this.mta.length;c--;)this.mta[c].j(a,b)},ka:function(){return this.list.ka},vf:function(){sc.e.Q.Cg(this.list.ka)},
xi:function(){sc.e.Q.Lj(this.list.ka)},v:function(a,b){this.parent(a,b);this.Oe.a.size.x=this.a.size.x;this.Oe.a.size.y=this.a.size.y-7;this.list.v(this.a.size.x,this.a.size.y-7)}})});ig.G=j;
ig.I("game.feature.menu.gui.main-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes").H(function(){sc.fq=ig.X.extend({y5:j,r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},ot:{},Jw:s,JJ:s,HX:s,YJ:s,SQ:s,wP:s,rP:s,ti:s,info:s,Ot:s,Vsb:0,f:function(){this.parent();this.a.zIndex=1200;this.a.Ee=j;this.a.size.x=ig.g.width;this.a.size.y=
ig.g.height;this.a.y5=j;sc.K.Na(sc.q,this);sc.K.Na(sc.q.e,this);this.j("HIDDEN",j);if(!this.constructor.Km)this.constructor.Km=this.r.createPattern(0,0,32,320,ig.ue.Pf.Xn);this.ot.start=new sc.A8;var c=new sc.ec("\\i[back]"+ig.lang.get("sc.gui.menu.back"),sc.OR,j,sc.Ic.Kc,sc.qd.back);c.Ul=j;c.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetX:-sc.OR},time:0.2,p:KEY_SPLINES.LINEAR}};c.F(ig.k.ha,ig.k.W);c.Qb=function(){sc.e.Xbb()}.bind(this);c.setData(ig.lang.get("sc.gui.menu.description.back"));
this.ti=c;c=new ig.Lf("#000000",this.a.size.x,21);c.F(ig.k.fb,ig.k.W);c.a.N={DEFAULT:{state:{alpha:0.5},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-21,alpha:0.5},time:0.2,p:KEY_SPLINES.LINEAR}};c.j("HIDDEN",j);this.Jw=c;c=new sc.fq.o1a(this.a.size.x);c.j("HIDDEN",j);this.JJ=c;c=new sc.fq.n0a;c.F(ig.k.fb,ig.k.W);this.HX=c;this.info=new sc.Wha(this.a.size.x,21);this.info.F(ig.k.ha,ig.k.xb);this.Ot=new sc.iha;this.wP=new sc.h1a;this.YJ=new sc.fq.hXa;this.YJ.F(ig.k.za,ig.k.gb);this.YJ.l(0,101);
this.SQ=new sc.fq.L0a;this.SQ.l(a,b);this.rP=new sc.fq.xUa;this.rP.F(ig.k.fb,ig.k.W);this.m(this.HX);this.m(this.SQ);this.m(this.YJ);this.m(this.ot.start);this.m(this.Jw);this.m(this.JJ);this.m(this.info);this.info.m(this.Ot);this.m(this.wP);this.m(this.rP);this.m(this.ti)},update:function(){this.parent()},va:function(a){a.Rj(this.constructor.Km,0,0,0,0,this.a.size.x,this.a.size.y)},$Ba:function(){return sc.V.Bo()},a4a:function(){sc.q.uHa()},ska:function(){this.n4a();this.JJ.Ex();if(sc.e.i1&&sc.e.hJ){this.BEa(sc.e.hJ,
0);this.CDa(sc.e.hJ,s,j);this.rP.lta(sc.e.TIa(sc.e.hJ));sc.e.Sm=sc.e.hJ}else{sc.e.i1=w;this.ot.start.xd();this.rP.lta(ig.lang.get("sc.gui.menu.menu-titles.start"));this.YJ.reset();this.YJ.j("DEFAULT");this.info.Bq(431,21);this.wP.j("DEFAULT");this.HX.j("DEFAULT");this.SQ.IG()}sc.e.Ex();sc.e.Q.md(this.ti,this.$Ba.bind(this));sc.e.kk(this.a4a.bind(this));this.ti.j("DEFAULT");this.Jw.j("DEFAULT");this.info.j("DEFAULT")},LM:function(){this.Eka(sc.e.Sm).Rc();this.ot.start.Rc();sc.e.Q.E0();sc.e.Rc();ig.ua.ed(0.2);
this.ti.j("HIDDEN");this.Jw.j("HIDDEN");this.JJ.Rc();this.HX.j("HIDDEN");this.info.j("HIDDEN");this.wP.j("HIDDEN");this.SQ.Qpa();this.YJ.RJa();this.rP.jbb()},n4a:function(){this.Ot.fa("");this.info.fa("");this.rP.reset();this.wP.Wkb();this.LDa()},LDa:function(){for(var a in this.ot)if(a!="start"&&this.ot[a]){this.fQ(this.ot[a]);this.ot[a]&&this.ot[a].Yb();this.ot[a]=s}this.JJ.I6a()},BEa:function(a,b){this.I2a(a);var e=this.Eka(b),h=this.Eka(a);if(e!=s){e.Ti(h);h.xd(e)}},I2a:function(a){if(a!=sc.Cd.Gl&&
!this.ot[sc.Pj[a].name]){this.ot[sc.Pj[a].name]=new sc.Pj[a].Un;this.SC(this.ot[sc.Pj[a].name],4)}},Eka:function(a){return this.ot[sc.Pj[a].name]},CDa:function(a,b,e){switch(a){case sc.Cd.Gl:this.HX.j("DEFAULT",e);this.SQ.IG(0.1);break;default:this.HX.j("HIDDEN",e);this.SQ.qbb()}if(a==sc.Cd.Gl){this.info.Bq(431,21,0.1,KEY_SPLINES.EASE_OUT);this.wP.j("DEFAULT_FAST")}else{this.info.Bq(ig.g.width,21,0.1,KEY_SPLINES.EASE_OUT);this.wP.j("HIDDEN_FAST")}},lb:function(a,b,e){if(a==sc.q)if(b==sc.Le.jq){(a=
sc.q.xo())?this.j("DEFAULT",w,w,function(){sc.e.p9a()}.bind(this)):this.j("HIDDEN",w,w,function(){this.LDa();sc.e.Wbb()}.bind(this));a?this.ska():this.LM()}else b==sc.Le.kAa&&this.ot.start.Zgb();else if(a==sc.e)if(b==sc.ca.bz)this.info.fa(sc.e.Vx,e||w?0.5:0);else if(b==sc.ca.QY||b==sc.ca.cZ){this.JJ.obb();this.BEa(sc.e.Sm,sc.e.Y4);this.CDa(sc.e.Sm,sc.e.Y4)}else b==sc.ca.Bja?this.JJ.p5a():b==sc.ca.kBa?this.JJ.Ru(e):b==sc.ca.qAa&&this.Ot.fa(sc.e.aF,e||w?0.5:0)}});sc.fq.o1a=ig.X.extend({pm:[],N:{DEFAULT:{state:{alpha:1},
time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-21,alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},yDa:w,lI:0.2,LS:0.2,f:function(a){this.parent();this.v(a,21)},update:function(){this.parent();if(this.lI<this.LS){this.lI=this.lI+ig.g.Da;if(this.lI>=this.LS){this.lI=this.LS;this.a.rg();this.yDa&&this.QBa()}}},Ex:function(){this.a.rg();this.LS=this.lI=0.2;this.j("DEFAULT")},Rc:function(){this.j("HIDDEN",w,w,function(){this.a.rg()}.bind(this))},I6a:function(){this.a.rg()},QBa:function(){if(this.a.children.length>
0){ig.warn("At this point there should be no children, but there are: "+this.a.children.length);this.a.rg()}this.KDa(j);for(var a=sc.e.eV,b=66+(sc.options.Xg?7:5),e=a.length;e--;){var h=a[e]();if(h){h.F(ig.k.ha,ig.k.W);h.a.i.x=b;b=b+(h.a.size.x+(sc.options.Xg?7:5));h.a.j("HIDDEN",j);h.Sjb||h.a.j("DEFAULT");this.a.Ila(h.a)}}},KDa:function(a,b){for(var e=sc.e.eV,h=66+(sc.options.Xg?7:5),k=e.length;k--;){var l=e[k]();if(l){b&&l.TOa&&l.TOa();l.F(ig.k.ha,ig.k.W);l.a.i.x=h;h=h+(l.a.size.x+(sc.options.Xg?
7:5));if(a){l.a.j("HIDDEN",j);l.Sjb||l.a.j("DEFAULT");this.a.Ila(l.a)}}}},obb:function(){var a=this.a.children;if(a.length>0){this.lI=0;this.LS=0.2;for(var b=a.length;b--;)a[b].j("HIDDEN")}},p5a:function(){this.lI<this.LS?this.yDa=j:this.QBa()},Ru:function(a){this.KDa(w,a)}});sc.fq.xUa=ig.X.extend({wg:[],f:function(){this.parent();this.v(120,21);sc.K.Na(sc.q.e,this)},reset:function(){this.wg=[];this.rg()},jbb:function(){if(this.wg.length>0){var a=this.wg[this.wg.length-1];a.a.fj!="HIDDEN_TOP"&&a.j("HIDDEN")}},
lta:function(a){this.wg.length>0&&this.wg[this.wg.length-1].j("HIDDEN_TOP");a=new sc.fq.R0a(a);this.wg.push(a);this.m(a);a.j("DEFAULT")},Ifb:function(){if(this.wg.length>1){var a=this.wg[this.wg.length-2];this.m(a);a.j("DEFAULT");a=this.wg[this.wg.length-1];a.j("HIDDEN",w,w,F().bind(this));this.wg.pop()}else if(this.wg.length>0){a=this.wg[this.wg.length-1];a.j("HIDDEN",w,w,function(){this.wg.pop()}.bind(this))}},lb:function(a,b){b==sc.ca.QY?this.lta(a.R9a()):b==sc.ca.cZ&&this.Ifb()}});sc.fq.R0a=ig.te.extend({eb:new ig.$b("media/gui/menu.png",
{width:2,height:21,left:2,top:0,right:7,bottom:0,Fb:{"default":{x:88,y:436}}}),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:-120},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_TOP:{state:{offsetY:-21},time:0.2,p:KEY_SPLINES.LINEAR}},text:s,f:function(a){this.parent(120,21);this.F(ig.k.za,ig.k.gb);this.text=new sc.ea(a,{speed:ig.rd.Nd.We});this.text.F(ig.k.za,ig.k.gb);this.m(this.text);this.j("HIDDEN",j)}});var a=64,b=85;sc.fq.L0a=ig.X.extend({eg:s,Ld:s,f:function(){this.parent();
this.a.size.x=200;this.a.size.y=30;this.a.clip=j;this.eg=new sc.x8(19);this.eg.hide();this.Ld=new ig.Lf("white",sc.options.Xg?174:128,1);this.Ld.l(19,19);this.Ld.rb(0,0);this.Ld.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ia:0},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN_FADE:{state:{Ia:0,alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}};this.Ld.j("HIDDEN",j);this.m(this.eg);this.m(this.Ld)},IG:function(a){a=a!=g?a:0;this.eg.j("DEFAULT");this.eg.show(0.1,a);this.Ld.j("DEFAULT",w,w,s,0.1+
a)},Qpa:function(){this.Ld.j("HIDDEN");this.eg.hide(0.1,0.11)},qbb:function(){this.Ld.j("HIDDEN_FADE");this.eg.j("HIDDEN");this.eg.hide(0.1,0.11)}});sc.fq.iXa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},FADE_TO_SMALL:{state:{Ia:0.69,Ma:0.69,alpha:1},time:0.2,p:KEY_SPLINES.EASE},FADE_IN_ALPHA:{state:{Ia:0.69,Ma:0.69,alpha:0},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();this.a.size.x=
138;this.a.size.y=380;this.a.cb.x=this.a.size.x/2;this.a.cb.y=this.a.size.y/2;this.j("DEFAULT")},va:function(a){a.ax().yua(this.r,0,0,173,0,138,380)}});sc.fq.jXa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();this.a.size.x=97;this.a.size.y=263;this.a.cb.x=this.a.size.x/2;this.a.cb.y=this.a.size.y/2;this.j("DEFAULT")},va:function(a){a.ia(this.r,0,0,311,0,97,263)}});
sc.fq.hXa=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetY:20},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_NO_OFFSET:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},WJ:s,small:s,f:function(){this.parent();this.a.size.x=138;this.a.size.y=380;this.WJ=new sc.fq.iXa;this.WJ.F(ig.k.za,ig.k.gb);this.small=new sc.fq.jXa;this.small.F(ig.k.za,ig.k.gb);this.small.l(1,0);this.m(this.WJ);this.m(this.small);this.j("HIDDEN",j);this.reset();sc.K.Na(sc.q.e,this)},tdb:function(a,
b,e){(this.a.fj=="HIDDEN"||this.a.fj=="HIDDEN_NO_OFFSET")&&this.a.j("DEFAULT");this.bd(0+a,101+b,0.3,KEY_SPLINES.EASE);e&&!this.Cqa()?this.Q8a():!e&&this.Cqa()&&this.P8a()},RJa:function(){this.Cqa()?this.j("HIDDEN_NO_OFFSET",w,w,function(){this.reset();this.j("HIDDEN",j)}.bind(this)):this.j("HIDDEN",w,w,function(){this.reset()}.bind(this))},reset:function(){this.WJ.j("DEFAULT",j);this.small.j("HIDDEN",j);this.l(0,101)},Q8a:function(){this.WJ.j("FADE_TO_SMALL",w,w,function(){this.WJ.j("FADE_IN_ALPHA")}.bind(this));
this.small.j("DEFAULT",w,w,s,0.2)},P8a:function(){this.small.j("HIDDEN");this.WJ.j("FADE_TO_SMALL",w,w,function(){this.WJ.j("DEFAULT")}.bind(this))},Cqa:function(){return this.small.a.fj=="DEFAULT"},lb:function(a,b,e){a==sc.e&&b==sc.ca.aza&&(sc.e.Tqa==sc.Rg.dq?this.RJa():this.tdb(e.x,e.y,sc.e.Tqa))}});sc.fq.n0a=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{alpha:0.5,offsetY:21},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetX:-87,alpha:0.5},time:0.2,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();
this.a.size.x=87;this.a.size.y=87},va:function(a){a.ia(this.r,0,0,0,425,87,87)}})});ig.G=j;
ig.I("game.feature.menu.gui.start-menu").J("impact.feature.gui.gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.main-menu","game.feature.menu.gui.menu-misc").H(function(){var a=[{x:4,y:43},{x:12,y:73},{x:20,y:103},{x:28,y:133},{x:28,y:163},{x:20,y:193},{x:12,y:223},{x:4,y:253}];sc.A8=sc.bq.extend({r:new ig.$("media/gui/menu.png"),oa:{rc:s,Ue:s,loa:s,status:s,oL:s,PD:s,map:s,save:s},uca:s,N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}},
ka:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.ka=new sc.Wf;this.oa.rc=this.Mi("items",0,function(){sc.e.sy(sc.Cd.cz)}.bind(this));this.oa.Ue=this.Mi("skills",1,function(){sc.e.sy(sc.Cd.Md)}.bind(this),sc.q.R.Si("MENU_CIRCUIT"));this.oa.loa=this.Mi("equipment",2,function(){sc.e.sy(sc.Cd.A7)}.bind(this));this.oa.oL=this.Mi("social",3,function(){sc.e.sy(sc.Cd.DAa)}.bind(this),sc.q.R.Si("MENU_SOCIAL"));this.oa.status=this.Mi("status",4,function(){ig.debug("Pressed Status!")}.bind(this),
j);this.oa.PD=this.Mi("synopsis",5,function(){sc.e.sy(sc.Cd.oja)}.bind(this),w,j);this.oa.map=this.Mi("map",6,function(){sc.e.sy(sc.Cd.pi)}.bind(this));this.oa.save=this.Mi("save",7,function(){sc.e.sy(sc.Cd.DZ)}.bind(this));this.oa.status.setActive(w);this.oa.oL.setActive(w);var a=new sc.A8.gXa;a.F(ig.k.ha,ig.k.gb);this.uca=a;this.m(this.uca);for(var c in this.oa)this.m(this.oa[c]);this.ka.Uc(this.oa.rc,0,0);this.ka.Uc(this.oa.Ue,0,1);this.ka.Uc(this.oa.loa,0,2);this.ka.Uc(this.oa.oL,0,3);this.ka.Uc(this.oa.status,
0,4);this.ka.Uc(this.oa.PD,0,5);this.ka.Uc(this.oa.map,0,6);this.ka.Uc(this.oa.save,0,7);this.ka.si(function(a){a.Ga?sc.e.tc(a.data):sc.e.tc("???")});this.ka.Bk(function(){sc.e.tc("",j)});this.j("DEFAULT")},xd:function(){if(sc.q.R.Si(sc.hg.MENU_SYNOPSIS)){this.oa.PD.fa(ig.lang.get("sc.gui.menu.menu-titles.synopsis"),j);this.oa.PD.setActive(j);sc.e.IJa(sc.Cd.oE)&&sc.q.R.Ov(135)?this.oa.PD.KEa():this.oa.PD.caa()}else{this.oa.PD.caa();this.oa.PD.fa("???",j);this.oa.PD.setActive(w)}if(sc.q.R.Si(sc.hg.MENU_CIRCUIT)){this.oa.Ue.fa(ig.lang.get("sc.gui.menu.menu-titles.skills"),
j);this.oa.Ue.setActive(j)}else{this.oa.Ue.fa("???",j);this.oa.Ue.setActive(w)}if(sc.q.R.Si(sc.hg.MENU_SOCIAL)){this.oa.oL.fa(ig.lang.get("sc.gui.menu.menu-titles.social"),j);this.oa.oL.setActive(j)}else{this.oa.oL.fa("???",j);this.oa.oL.setActive(w)}sc.q.mca()?this.oa.save.setActive(j):this.oa.save.setActive(w);this.oa.rc.j("DEFAULT");this.oa.Ue.j("DEFAULT",w,w,s,0.016);this.oa.loa.j("DEFAULT",w,w,s,0.032);this.oa.oL.j("DEFAULT",w,w,s,0.048);this.oa.status.j("DEFAULT",w,w,s,0.048);this.oa.PD.j("DEFAULT",
w,w,s,0.032);this.oa.map.j("DEFAULT",w,w,s,0.016);this.oa.save.j("DEFAULT");this.uca.j("DEFAULT",w,w,s,0.016);sc.e.Q.Cg(this.ka)},Ti:function(){var a=s,c;for(c in this.oa)(a=this.oa[c])&&a.j("HIDDEN");this.uca.j("HIDDEN");sc.e.Q.Lj(this.ka)},Rc:function(){this.Ti(s)},Zgb:function(){this.ka.Mj(0,0)},Mi:function(b,c,d,e,h){var k=s,k=h?new sc.Bza(e?"???":ig.lang.get("sc.gui.menu.menu-titles."+b),sc.NR):new sc.ec(e?"???":ig.lang.get("sc.gui.menu.menu-titles."+b),sc.NR);k.F(ig.k.ha,ig.k.W);k.l(a[c].x,
a[c].y);k.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetX:-(sc.NR+a[c].x)},time:0.2,p:KEY_SPLINES.LINEAR}};k.setData(ig.lang.get("sc.gui.menu.description."+b));k.Qb=d;k.j("HIDDEN",j);return k}});sc.A8.gXa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{alpha:0.5},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetX:-141,alpha:0.5},time:0.2,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();this.a.size.x=141;this.a.size.y=279},va:function(a){a.ia(this.r,0,
0,32,0,141,279)}})});ig.G=j;
ig.I("game.feature.gui.base.slick-box").J("impact.feature.gui.base.box","impact.feature.gui.gui").H(function(){sc.k0a=ig.te.extend({text:s,N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ma:1,offsetX:-32},time:0.3,p:KEY_SPLINES.EASE_IN}},eb:new ig.$b("media/gui/message.png",{width:16,height:9,left:0,top:0,right:8,bottom:0,Fb:{"default":{x:0,y:64}}}),f:function(a,b,c){a=new sc.ea(a,{font:sc.Ka.Lb});c=c||a.a.size.x+this.wh.right+8;this.parent(c,9,b);this.a.cb.y=this.a.size.y;
a.l(1,0);b&&a.F(ig.k.ha,ig.k.W);this.m(a)}});sc.uja=ig.te.extend({eb:new ig.$b("media/gui/message.png",{width:12,height:12,left:0,top:4,right:4,bottom:0,Fb:{"default":{x:24,y:64}}}),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0.5,Ia:1,Ma:0,offsetX:0},time:0.2,p:KEY_SPLINES.EASE_IN}},f:function(a,b,c){this.parent(a,b,c);this.a.Vc=0.5}});sc.i0a=sc.uja.extend({A4:0,Ksa:0,minWidth:0,Xi:s,f:function(a,b,c,d,e){this.A4=c||0;this.Ksa=d||0;this.minWidth=e||0;this.parent(0,0,
b);this.uh(a)},uh:function(a){this.Xi=a;a.a.align.x=this.xF?ig.k.ha:ig.k.fb;a.l(2,this.Ksa);var b=a.a.size.x+this.A4+2;if(this.minWidth&&b<this.minWidth)b=this.minWidth;this.v(b,a.a.size.y+this.Ksa*2);this.rg();this.m(a)}});sc.h0a=ig.te.extend({eb:new ig.$b("media/gui/message.png",{width:16,height:16,left:0,top:16,right:0,bottom:16,Fb:{"default":{x:40,y:64}}}),f:function(a,b){this.parent(16,a,b);this.a.Vc=0.5}});sc.j0a=ig.te.extend({eb:new ig.$b("media/gui/message.png",{width:8,height:32,left:0,top:8,
right:0,bottom:8,Fb:{"default":{x:40,y:64}}}),f:function(a,b){this.parent(8,a,b);this.a.Vc=0.5}})});ig.G=j;
ig.I("game.feature.gui.base.misc").J("impact.feature.interact.gui.focus-gui","impact.feature.gui.gui").H(function(){sc.fmb=ig.Vn.extend({color:"#00FF00",zfb:"#FF0000",e9a:"#0000FF",f:function(a,b){this.parent();this.a.size.x=a||20;this.a.size.y=b||20;this.a.cb.x=this.a.size.x/2;this.a.cb.y=this.a.size.y/2},va:function(a){var b=s,b=this.focus?this.e9a:this.a.hda?this.zfb:this.color;a.Ec(b,0,0,this.a.size.x,this.a.size.y).wd(0.5)}});sc.TH={$o:{x:88,y:458},bha:{x:105,y:458},nM:{x:122,y:458},qr:{x:576,
y:0},yUa:{x:592,y:0}};sc.x8=ig.X.extend({r:new ig.$("media/gui/menu.png"),L4:0,right:j,Uz:j,height:0,n:0,time:0,visible:j,YS:0,bI:0,N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}},f:function(a,b,c,d){this.parent();this.color=d||sc.TH.$o;this.YS=this.L4=a;this.right=b!=g?b:j;this.Uz=c!=g?c:j},update:function(){if(this.n<this.time){this.n=this.n+ig.g.Da;if(this.n>=this.time){this.n=this.time;if(this.bI==2)this.visible=w;this.bI=0}}if(this.bI==
0)this.YS=this.L4;else if(this.bI==1)this.YS=Math.ceil(Math.max(0,this.n)/this.time*this.L4);else if(this.bI==2)this.YS=Math.ceil((1-Math.max(0,this.n)/this.time)*this.L4)},va:function(a){if(this.visible){var b=0,c=Math.ceil(Math.abs(this.YS)/16),d=this.YS,e=16;if(!this.right||!this.Uz)a.ho().tw(this.right?1:-1,this.Uz?1:-1);for(;c--;){d<16&&(e=d);a.ia(this.r,b,b,this.color.x,this.color.y,e,e);b=b+16;d=Math.max(0,d-16)}(!this.right||!this.Uz)&&a.Po()}},show:function(a,b){if(a){this.n=0-(b||0);this.time=
a||0.3}else this.time=this.n=0.1;this.bI=1;this.visible=j},hide:function(a,b){if(a){this.n=0-(b||0);this.time=a||0.3;this.bI=2}else{this.n=this.time=0;this.visible=w;this.bI=0}}});sc.bXa=ig.X.extend({Je:s,f:function(a,b,c,d){this.parent();a=new sc.ea(a);this.m(a);this.Je=new sc.Ib(c,d);this.Je.F(ig.k.ha,ig.k.xb);this.Je.l(0,3);this.m(this.Je);this.v(b+this.Je.a.size.x,Math.max(a.a.size.y,this.Je.a.size.y))},sa:function(a,b){this.Je.sa(a,b)}})});ig.G=j;
ig.I("game.feature.gui.base.compact-choice-box").J("impact.feature.gui.base.box","impact.feature.gui.gui").H(function(){sc.pUa=ig.te.extend({N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_IN_OUT},HIDDEN:{state:{alpha:0,Ma:0},time:0.3,p:KEY_SPLINES.EASE_IN_OUT}},eb:new ig.$b("media/gui/menu.png",{width:8,height:8,left:8,top:8,right:8,bottom:8,Fb:{"default":{x:480,y:304}}}),options:s,Ob:s,f:function(a,b,c){this.parent();this.options=a;this.Ob=c;this.Q=new ig.nr;this.ka=new sc.Wf;this.ka.tk(this.Qb.bind(this));
this.Q.Cg(this.ka);for(var c=b-6,d=3,e=0;e<a.length;++e){var h=a[e],k=new sc.ec(h.label,c,j,sc.Ic.kE);k.re.F(ig.k.za,ig.k.gb);k.re.l(0,0);k.l(3,d);k.setData(e);d=d+20;this.m(k);this.ka.Uc(k,0,e,h.backButton||w)}this.v(b,d+2);ig.ua.de(this.Q);sc.q.p6()},th:function(){ig.ua.ie(this.Q)},Qb:function(a){a=this.options[a.data];this.Ob&&this.Ob(a.key)}})});ig.G=j;
ig.I("game.feature.gui.hud.combat-hud").J("impact.feature.gui.gui","impact.feature.gui.base.box").H(function(){sc.hUa=ig.X.extend({Lw:s,ey:s,ln:s,aD:0,sV:w,Aqa:w,f:function(){this.parent();this.a.zIndex=100;this.a.Ee=j;this.v(ig.g.width,ig.g.height);this.Lw=new sc.kUa;this.m(this.Lw);this.ey=new sc.iUa;this.m(this.ey);this.ln=new sc.jUa;this.m(this.ln);sc.K.Na(sc.q,this)},update:function(){if(sc.q.pA())this.aD=0.7*sc.q.J9a();else if(this.aD){this.aD=this.aD-ig.g.Da;if(this.aD<=0){this.aD=0;if(!this.sV){this.tG=
0;this.Lw.j("HIDDEN");this.ey.j("HIDDEN")}}}},pba:function(){return this.sV?1-this.aD/0.7:this.aD/0.7},lb:function(a,c){if(c==sc.Le.EY){var d=sc.q.pu();if(this.sV!=d){this.sV=d;this.Aqa=sc.q.sqa();d=sc.Dg.Tc();this.aD=0.7-this.aD;this.Lw.Sma(this.sV,this.Aqa,d);this.ey.Sma(this.sV,this.Aqa,d)}if(sc.q.pA()){this.ln.l(this.Lw.zab(),3);this.ln.show()}else this.ln.hide()}}});sc.jUa=ig.te.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ma:0,alpha:0},time:0.2,p:KEY_SPLINES.EASE_OUT}},
eb:new ig.$b("media/gui/message.png",{width:16,height:0,left:16,top:14,right:16,bottom:0,Fb:{"default":{x:48,y:38}}}),f:function(){var a="\\i[menu]"+ig.lang.get("sc.gui.combat-hud.skip"),a=new sc.ea(a);this.parent(a.a.size.x+24,14);this.a.Vc=0.5;a.F(ig.k.za,ig.k.gb);this.m(a);this.F(ig.k.ha,ig.k.W);this.j("HIDDEN",j)},show:function(){this.j("DEFAULT")},hide:function(){this.j("HIDDEN")}});sc.kUa=ig.X.extend({N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:16},time:0.1,
p:KEY_SPLINES.LINEAR}},r:new ig.$("media/gui/status-gui.png"),eb:new ig.$b("media/gui/status-gui.png",{width:16,height:0,left:16,top:14,right:0,bottom:0,Fb:{battle:{x:128,y:80},cooldown:{x:160,y:80}}}),sub:{},Sz:s,f:function(){this.parent();this.v(ig.g.width,20);this.j("HIDDEN",j);this.sub.empty=new a.EMPTY;this.sub.igb=new a.ZZa;this.sub.Dg=new a.eZa},va:function(a){var c=this.a,d=c.kw.T;if(this.Sz){var e=this.Sz.a.size.x+13,d=Math.ceil(c.size.x*d.pba()),h=c.size.x-e,c=c.size.x-d,k=!sc.q.Sr()||sc.q.pA(),
l=k?"#006d7d":"#b0001d";c<h-1&&a.Ec(l,c,0,h-1-c,2).dh("lighter");c=Math.max(0,e+1-d);c<13&&a.ia(this.r,h-1+c,0,128+(k?16:0)+c,96,13-c,16).dh("lighter");var m=e-13+1,c=Math.max(0,m-d);c<m&&a.Ec(l,h-1+13+c,13,m-c,2).dh("lighter");a.ho().wd(0.5);this.eb.Xa(a,e,16,k?"cooldown":"battle",h,0);a.Po()}},jlb:function(a,c){if(this.Sz){this.Sz.end();this.fQ(this.Sz)}this.Sz=c?this.sub.Dg:a?this.sub.igb:this.sub.empty;this.m(this.Sz);this.Sz.F(ig.k.ha,ig.k.W);this.Sz.start()},Sma:function(a,c,d){if(a){this.j("DEFAULT");
this.jlb(c,d)}},zab:function(){return(this.Sz&&this.Sz.a.size.x||0)+13}});var a={};sc.iUa=ig.X.extend({N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();this.v(ig.g.width,2);this.F(ig.k.fb,ig.k.xb);this.j("HIDDEN",j)},va:function(a){var c=this.a,d=c.size.x;a.Ec(!sc.q.Sr()||sc.q.pA()?"#006d7d":"#b0001d",0,0,d-Math.ceil(d*(1-c.kw.T.pba())),c.size.y).dh("lighter")},Sma:function(a){a&&this.j("DEFAULT")}});a.EMPTY=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),
f:function(){this.parent();this.v(17,20)},va:function(a){a.ia(this.r,this.a.size.x-18,0,160+(!sc.q.Sr()||sc.q.pA()?16:0),96,13,13)},start:F(),end:F()});a.ZZa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),Mea:s,aX:s,tG:0,f:function(){this.parent();this.v(49,20);this.Mea=new sc.ea("Rank",{font:sc.Ka.Lb});this.Mea.F(ig.k.ha,ig.k.W);this.Mea.l(28,1);this.aX=new sc.ea("A");this.aX.F(ig.k.ha,ig.k.W);this.aX.l(18,-2);this.m(this.Mea);this.m(this.aX)},update:function(){var a=sc.q.L9a();if(this.tG!=
a){this.tG=0.2*a+0.8*this.tG;if(Math.abs(this.tG-a)<0.05)this.tG=a}},va:function(a){var c=this.a,d=!sc.q.Sr()||sc.q.pA();a.ia(this.r,c.size.x-18,0,160+(d?16:0),96,13,13);var e=Math.floor(21*this.tG);a.ia(this.r,c.size.x-50,8,128,112,24,3);e&&a.ia(this.r,c.size.x-50,8,128,112+(d?8:4),1+e,3)},start:function(){sc.K.Na(sc.q,this);this.aX.fa(sc.q.Roa());this.tG=0},end:function(){sc.K.lc(sc.q,this)},lb:function(a,c){if(c==sc.Le.Mxa){this.tG=1;this.aX.fa(sc.q.Roa())}}});a.eZa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),
$U:new ig.$("media/gui/severed-heads.png"),f:function(){this.parent();var a;a=110+sc.Dg.pB*10;a=a+(sc.Ca.Xe.length+1)*16;a=a+sc.Dg.Tf.length*16;this.v(a,20)},va:function(a){var c=this.a.size.x/2;a.ia(this.r,c-8,0,136,160,16,16);var d=sc.Dg.pB;this.WDa(a,c-12-4,-1,d,sc.Dg.sb[sc.Qd.PLAYER],0);this.WDa(a,c+12,1,d,sc.Dg.sb[sc.Qd.ENEMY],8);for(var d=12+d*5,e=[0],h=0;h<sc.Ca.Xe.length;++h)e.push(sc.Ca.ZIa(h).zO());this.VDa(a,c-d,j,e);e=[];for(h=0;h<sc.Dg.Tf.length;++h)e.push(sc.Dg.Tf[h].zO());this.VDa(a,
c+d,w,e)},WDa:function(a,c,d,e,h,k){for(var l=0;l<e;++l){a.ia(this.r,c,2,(e-l>h?124:120)+k,160,4,12);c=c+5*d}},VDa:function(a,c,d,e){d&&(c=c-24);for(var h=0;h<e.length;++h){a.ia(this.$U,c,-10,e[h]*24,0,24,24,d);c=c+(d?-16:16)}},start:F(),end:F()})});ig.G=j;
ig.I("game.feature.model.options-model").J("impact.base.game","impact.feature.storage.storage","impact.base.input","game.feature.model.base-model").H(function(){sc.xt={};sc.xt[ig.Ua.Rxa]=j;sc.xt[ig.Ua.AVa]=j;sc.xt[ig.Ua.CVa]=j;sc.xt[ig.Ua.DVa]=j;sc.xt[ig.Ua.EVa]=j;sc.xt[ig.Ua.FVa]=j;sc.xt[ig.Ua.GVa]=j;sc.xt[ig.Ua.vya]=j;sc.xt[ig.Ua.wya]=j;sc.xt[ig.Ua.HVa]=j;sc.xt[ig.Ua.tya]=j;sc.xt[ig.Ua.uya]=j;sc.xt[ig.Ua.BVa]=j;sc.CUa={Tlb:0,Ki:1,smb:2,Zlb:3};sc.Hxa={Kc:0,zXa:1,hh:2};sc.l7={SHORT:0,aXa:1};sc.XR=
{HYa:0,h_a:1,zya:2,y_a:3};sc.imb={zmb:0,zXa:1,umb:2};sc.CZ={tia:0,Pja:1,Ki:2,u8:3};sc.f8={Mya:0,Uza:1};sc.O7={iya:0,PVa:1};sc.dS={Ki:0,Kc:1};sc.kza={Ki:0,mnb:1};sc.Nmb={We:0,Uza:1};sc.J8={hh:0,Kc:1,NONE:2};sc.TZ={hh:0,Kc:1,NONE:2};sc.I8={hh:0,Kc:1,NONE:2};sc.dnb={hh:0,Kc:1,NONE:2};sc.J7={$Wa:0,KH:1,NONE:2};var a={};a[sc.O7.iya]="en_US";a[sc.O7.PVa]="de_DE";sc.nS={BUTTON_GROUP:0,ARRAY_SLIDER:1,OBJECT_SLIDER:2,CHECKBOX:3,CONTROLS:4};sc.jd={wt:0,sn:1,UZ:2,oTa:3,Yh:4};sc.Kh={language:{type:"BUTTON_GROUP",
data:sc.O7,f:sc.O7.iya,Sd:sc.jd.wt,WOa:j},"rumble-strength":{type:"BUTTON_GROUP",data:sc.CZ,f:sc.CZ.u8,Sd:sc.jd.wt},"text-speed":{type:"OBJECT_SLIDER",data:ig.rd.Nd,f:ig.rd.Nd.yya,Sd:sc.jd.wt,fill:j},"message-padding":{type:"BUTTON_GROUP",data:sc.kza,f:sc.kza.Ki,Sd:sc.jd.wt,fill:j,GF:j,qg:"cutscenes"},"skip-confirm":{type:"CHECKBOX",f:j,Sd:sc.jd.wt},"skip-tutorials":{type:"CHECKBOX",f:w,Sd:sc.jd.wt},"volume-music":{type:"ARRAY_SLIDER",data:[0,1],f:0.8,Sd:sc.jd.wt,fill:j,GF:j,qg:"sound"},"volume-sound":{type:"ARRAY_SLIDER",
data:[0,1],f:1,Sd:sc.jd.wt,fill:j},"web-audio":{type:"CHECKBOX",f:!window.wmb||j,Sd:sc.jd.wt,WOa:j},"circuit-text-size":{type:"BUTTON_GROUP",data:sc.Hxa,f:sc.Hxa.hh,Sd:sc.jd.sn,GF:j,qg:"main"},"circuit-display-time":{type:"BUTTON_GROUP",data:sc.l7,f:sc.l7.SHORT,Sd:sc.jd.sn},"update-quest-style":{type:"BUTTON_GROUP",data:sc.J8,f:sc.J8.hh,Sd:sc.jd.sn,GF:j,qg:"updates"},"update-landmark-style":{type:"BUTTON_GROUP",data:sc.TZ,f:sc.TZ.hh,Sd:sc.jd.sn},"update-lore-style":{type:"BUTTON_GROUP",data:sc.I8,
f:sc.I8.Kc,Sd:sc.jd.sn},"hud-display":{type:"CHECKBOX",f:j,Sd:sc.jd.sn,GF:j,qg:"field"},"close-circle":{type:"CHECKBOX",f:j,Sd:sc.jd.sn},"show-money":{type:"CHECKBOX",f:j,Sd:sc.jd.sn},"show-items":{type:"CHECKBOX",f:j,Sd:sc.jd.sn},"item-hud-size":{type:"BUTTON_GROUP",data:sc.dS,f:sc.dS.Ki,Sd:sc.jd.sn},"element-select":{type:"CHECKBOX",f:j,Sd:sc.jd.sn},"element-overload":{type:"CHECKBOX",f:j,Sd:sc.jd.sn},"low-health-warning":{type:"CHECKBOX",f:j,Sd:sc.jd.sn},"damage-numbers":{type:"CHECKBOX",f:j,Sd:sc.jd.sn},
"hp-bars":{type:"BUTTON_GROUP",data:sc.J7,f:sc.J7.KH,Sd:sc.jd.sn},"min-quest":{type:"CHECKBOX",f:w,Sd:sc.jd.sn},"quick-menu-access":{type:"BUTTON_GROUP",data:sc.f8,f:sc.f8.Mya,Sd:sc.jd.sn,GF:j,qg:"quick"},"quick-cursor":{type:"CHECKBOX",f:j,Sd:sc.jd.sn},"display-type":{type:"BUTTON_GROUP",data:sc.XR,f:sc.XR.zya,Sd:sc.jd.UZ},fullscreen:{type:"CHECKBOX",f:window.IG_GAME_DEBUG||ig.platform!=ig.pk.DESKTOP?w:j,Sd:sc.jd.UZ,Ddb:j},"double-pixels":{type:"CHECKBOX",f:j,WOa:j,Sd:sc.jd.UZ},"keys-confirm":{type:"CONTROLS",
f:{key1:ig.Ua.kya,key2:g},Sd:sc.jd.Yh,GF:j,qg:"menu"},"keys-back":{type:"CONTROLS",f:{key1:ig.Ua.qxa,key2:g},Sd:sc.jd.Yh},"keys-menu":{type:"CONTROLS",f:{key1:ig.Ua.hBa,key2:g},Sd:sc.jd.Yh},"keys-pause":{type:"CONTROLS",f:{key1:ig.Ua.nya,key2:g},Sd:sc.jd.Yh},"keys-help":{type:"CONTROLS",f:{key1:ig.Ua.Lya,key2:g},Sd:sc.jd.Yh},"keys-help2":{type:"CONTROLS",f:{key1:ig.Ua.pxa,key2:g},Sd:sc.jd.Yh},"keys-help3":{type:"CONTROLS",f:{key1:ig.Ua.vza,key2:g},Sd:sc.jd.Yh},"keys-skip-cutscene":{type:"CONTROLS",
f:{key1:ig.Ua.Eya,key2:g},Sd:sc.jd.Yh},"keys-circle-left":{type:"CONTROLS",f:{key1:ig.Ua.eAa,key2:g},Sd:sc.jd.Yh},"keys-circle-right":{type:"CONTROLS",f:{key1:ig.Ua.E,key2:g},Sd:sc.jd.Yh},"keys-up":{type:"CONTROLS",f:{key1:ig.Ua.CBa,key2:ig.Ua.zBa},Sd:sc.jd.Yh,GF:j,qg:"gameplay"},"keys-right":{type:"CONTROLS",f:{key1:ig.Ua.Vxa,key2:ig.Ua.lAa},Sd:sc.jd.Yh},"keys-down":{type:"CONTROLS",f:{key1:ig.Ua.k8,key2:ig.Ua.$xa},Sd:sc.jd.Yh},"keys-left":{type:"CONTROLS",f:{key1:ig.Ua.fxa,key2:ig.Ua.bza},Sd:sc.jd.Yh},
"keys-quick":{type:"CONTROLS",f:{key1:ig.Ua.rAa,key2:g},Sd:sc.jd.Yh},"keys-special":{type:"CONTROLS",f:{key1:ig.Ua.FAa,key2:g},Sd:sc.jd.Yh},"keys-dash2":{type:"CONTROLS",f:{key1:ig.Ua.jxa,key2:g},Sd:sc.jd.Yh},"keys-cold":{type:"CONTROLS",f:{key1:ig.Ua.HBa,key2:g},Sd:sc.jd.Yh},"keys-shock":{type:"CONTROLS",f:{key1:ig.Ua.IBa,key2:g},Sd:sc.jd.Yh},"keys-heat":{type:"CONTROLS",f:{key1:ig.Ua.JBa,key2:g},Sd:sc.jd.Yh},"keys-wave":{type:"CONTROLS",f:{key1:ig.Ua.KBa,key2:g},Sd:sc.jd.Yh},"keys-neutral":{type:"CONTROLS",
f:{key1:ig.Ua.LBa,key2:g},Sd:sc.jd.Yh}};if(window.aj){sc.Kh["keys-jump"]={type:"CONTROLS",f:{key1:ig.Ua.Exa,key2:g},Sd:sc.jd.Yh,aP:j,GF:j,qg:"debug"};sc.Kh["keys-time"]={type:"CONTROLS",f:{key1:ig.Ua.gBa,key2:g},Sd:sc.jd.Yh,aP:j};sc.Kh["keys-rumble"]={type:"CONTROLS",f:{key1:ig.Ua.jAa,key2:g},Sd:sc.jd.Yh,aP:j};sc.Kh["keys-debug"]={type:"CONTROLS",f:{key1:ig.Ua.MBa,key2:g},Sd:sc.jd.Yh,aP:j};sc.Kh["keys-debug2"]={type:"CONTROLS",f:{key1:ig.Ua.NBa,key2:g},Sd:sc.jd.Yh,aP:j};sc.Kh["keys-addBuff"]={type:"CONTROLS",
f:{key1:ig.Ua.GBa,key2:g},Sd:sc.jd.Yh,aP:j};sc.Kh["keys-levelUp"]={type:"CONTROLS",f:{key1:ig.Ua.ixa,key2:g},Sd:sc.jd.Yh,aP:j}}var b={},c;for(c in sc.Kh)sc.Kh[c].type=="CONTROLS"&&c.indexOf("keys")==0&&(b[c.substr(5)]=c);sc.XWa=ig.ra.extend({f:F(),eKa:function(){var a=sc.options.Sb,c;for(c in b){if(a[b[c]].key1!=g){ig.input.bind(a[b[c]].key1,c);sc.Ka.Ama(c,a[b[c]].key1)}a[b[c]].key2!=g&&ig.input.bind(a[b[c]].key2,c)}},unbind:function(a,b){ig.input.Bz[b.f.key1!=g]&&ig.input.unbind(b.f.key1);ig.input.Bz[b.f.key2]!=
g&&ig.input.unbind(b.f.key2)},q6a:function(a,c,h,k){var l=sc.options.Sb;sc.options.YU=j;h?ig.input.Bz[l[a].key2]&&ig.input.unbind(l[a].key2):ig.input.unbind(l[a].key1);if(h&&k)l[a].key2=g;else{var m=a.substr(5),k=ig.input.Bz[c];ig.input.bind(c,m);sc.Ka.Ama(m,c);if(k){var n=l[b[k]],m=h?l[b[m]].key2:l[b[m]].key1;n.key2==c?n.key2=m:n.key1=m;ig.input.bind(m,k);sc.Ka.Ama(k,m);sc.options.O7a()}h?l[a].key2=c:l[a].key1=c}}});sc.IYa=ig.sf.extend({um:[],Xg:w,YU:w,RF:new sc.XWa,Sb:{},A9:s,a9:w,f:function(){this.parent("OptionsModel");
ig.Cc.dg(this);if(ig.g.width>480)this.Xg=j;if(ig.platform==ig.pk.DESKTOP)this.A9=window.require("nw.gui").Window.get();if(!window.Yc){var a=s,b;for(b in sc.Kh){a=sc.Kh[b];if(a.GJ){this.Sb[b+"-global"]=ig.copy(a.browser&&ig.platform==ig.pk.BROWSER?a.browser:a.f);this.Sb[b+"-local"]=ig.copy(a.browser&&ig.platform==ig.pk.BROWSER?a.browser:a.f)}else this.Sb[b]=ig.copy(a.browser&&ig.platform==ig.pk.BROWSER?a.browser:a.f);this.f_(b)}}ig.pa.Gp("option",this,"VarOptionEditor")},On:function(a,b){if(b[0]==
"option"){var c=b[1];if(sc.Kh[c]!==g)return this.Sb[c]}f(Error("Unsupported var access path: "+a))},WNa:function(){if(this.YU){this.YU=w;ig.Cc.fua()}},$gb:function(a){this.YU=j;for(var b in sc.Kh){var c=sc.Kh[b];c.GJ?a?this.Sb[b+"-local"]=ig.copy(c.browser&&ig.platform==ig.pk.BROWSER?c.browser:c.f):this.Sb[b+"-global"]=ig.copy(c.browser&&ig.platform==ig.pk.BROWSER?c.browser:c.f):this.Sb[b]=ig.copy(c.browser&&ig.platform==ig.pk.BROWSER?c.browser:c.f);c.type=="CONTROLS"&&this.RF.unbind(b,c);this.f_(b)}this.RF.eKa();
sc.K.wa(this,sc.iq.Tw);sc.K.wa(this,sc.iq.wia)},O7a:function(){sc.K.wa(this,sc.iq.wia)},set:function(a,b,c){if(sc.Kh[a]){if(!this.YU)this.YU=j;sc.Kh[a].GJ?c?this.Sb[a+"-local"]=b:this.Sb[a+"-global"]=b:this.Sb[a]=b;this.f_(a);sc.K.wa(this,sc.iq.Tw)}else ig.warn("Can't set option because of invalid key: "+a+" [v: "+b+"]")},get:function(a,b){if(sc.Kh[a])return sc.Kh[a].GJ?b?this.Sb[a+"-local"]:this.Sb[a+"-global"]:this.Sb[a];ig.warn("Can't get option because of invalid key: "+a);return s},GJ:function(a){if(sc.Kh[a]){if(sc.Kh[a].GJ)return j}else ig.warn("Can't find option because of invalid key: "+
a);return w},f_:function(b){if(!window.IG_IGNORE_OPTIONS)if(b=="fullscreen")this.y4a();else if(b=="volume-master")ig.g.setMasterVolume(this.Sb[b]);else if(b=="language")localStorage.setItem("IG_LANG",a[this.Sb[b]]);else if(b=="volume-music"){window.IG_MUSIC_VOLUME=this.Sb[b];ig.g.setMusicVolume(this.Sb[b]);localStorage.setItem("options.soundVolume",this.Sb[b])}else if(b=="volume-sound"){window.IG_SOUND_VOLUME=this.Sb[b];ig.g.setSoundVolume(this.Sb[b]);localStorage.setItem("options.soundVolume",this.Sb[b])}else if(b==
"display-type"){this._setDisplaySize();localStorage.setItem("options.screenMode",window.IG_SCREEN_MODE)}else if(b=="web-audio"){window.IG_USE_WEBAUDIO=this.Sb[b];localStorage.setItem("options.useWebAudio",this.Sb[b])}else if(b=="double-pixels"){window.IG_GAME_SCALE=this.Sb[b]?2:1;localStorage.setItem("options.scale",window.IG_GAME_SCALE)}},x2a:function(){var a=w,b;for(b in sc.Kh){var c=sc.Kh[b];if(c.type=="CONTROLS"&&this.Sb[b].key1===g){a=j;break}}if(a){console.log("KEY BINDING FAILURE. RESET TO DEFAULT CONFIG");
for(b in sc.Kh){c=sc.Kh[b];c.type=="CONTROLS"&&(this.Sb[b]=ig.copy(c.f))}}},_setDisplaySize:function(){var a=0,b=0,c=window.IG_WIDTH,k=window.IG_HEIGHT,b=$(window).width(),l=$(window).height(),m=w;switch(this.Sb["display-type"]){case sc.XR.HYa:a=c;b=k;break;case sc.XR.h_a:a=c*2;b=k*2;break;case sc.XR.zya:if(b/l>c/k){b=l;a=c*l/k}else{a=b;b=k*b/c}m=j;break;case sc.XR.y_a:a=b;b=l;m=j;break;default:a=c;b=k}window.IG_SCREEN_MODE=this.Sb["display-type"];if(window.lu&&window.lu.g)ig.g.setCanvasSize(a,b,
m);else{$("#canvas").width(a);$("#canvas").height(b);$("#canvas")[0].className=m?"borderHidden":""}},y4a:function(){if(ig.platform==ig.pk.DESKTOP){var a=this.Sb.fullscreen;if(this.A9.isFullscreen!=a){ig.log("%cChanging Fullscreen: "+a,"color:#CC0000");a?this.A9.enterFullscreen():this.A9.leaveFullscreen()}}},Rq:function(a){var b={},c=s,k;for(k in sc.Kh){c=sc.Kh[k];c.GJ&&(b[k]=this.Sb[k+"-local"])}a.options=b},Qq:function(a){var a=a.options,b;for(b in a){this.Sb[b+"-local"]=a[b];this.f_(b)}sc.K.wa(this,
sc.iq.Tw)},zsa:function(a){var b={},c=s,k;for(k in sc.Kh){c=sc.Kh[k];b[k]=c.GJ?this.Sb[k+"-global"]:this.Sb[k]}a.options=b},ysa:function(a){var a=a.options,b;for(b in a)if(sc.Kh[b]){sc.Kh[b].GJ?this.Sb[b+"-global"]=a[b]:this.Sb[b]=a[b];this.f_(b)}this.x2a();this.a9=j;sc.K.wa(this,sc.iq.Tw)}});sc.iq={};sc.iq.Tw=0;sc.iq.wia=1;ig.wf(function(){return sc.options=sc.options=new sc.IYa})});ig.G=j;
ig.I("game.feature.gui.hud.item-hud").J("game.feature.gui.hud.right-hud","game.feature.model.options-model").H(function(){sc.DWa=ig.X.extend({n:0,id:-1,zb:0,Va:s,xz:s,f:function(a,b){this.parent();this.id=a==g?-1:a;this.zb=b||1;this.n=3;var c=sc.Pb.rc[a],c="\\i["+((c.icon||"item-default")+sc.Pb.uo(c.rarity||0))+"]"+ig.Oa.wc(c.name)+" x",d=sc.options.get("item-hud-size")==sc.dS.Ki;this.Va=new sc.ea(c,{speed:ig.rd.Nd.We,font:d?sc.Ka.font:sc.Ka.Ve});this.Va.F(ig.k.fb,ig.k.gb);this.xz=new sc.Ib(99,{size:d?
sc.uf.Bt:sc.uf.Kc});this.xz.F(ig.k.ha,ig.k.gb);this.xz.sa(this.zb);this.m(this.Va);this.m(this.xz);this.bKa(0);this.v(this.Va.a.size.x+this.xz.a.size.x+4,d?18:8);this.a.cb.x=this.a.size.x;this.a.cb.y=0},Nwa:function(a){if(a){if(this.Va.font==sc.Ka.font)return;this.Va.BQ(sc.Ka.font);this.xz.v(sc.uf.Bt)}else{if(this.Va.font==sc.Ka.Ve)return;this.Va.BQ(sc.Ka.Ve);this.xz.v(sc.uf.Kc)}this.v(this.Va.a.size.x+this.xz.a.size.x+4,a?18:8)},bH:function(){if(this.n>0)this.n=this.n-ig.g.ga},bKa:function(a,b){this.zb=
this.zb+(a||0);this.xz.sa(this.zb,b);this.n=3}});sc.HWa=sc.GB.extend({Ej:[],size:0,f:function(){this.parent(ig.lang.get("sc.gui.item-hud.title"));this.size=sc.options.get("item-hud-size");sc.K.Na(sc.q.R,this);sc.K.Na(sc.q,this);sc.K.Na(sc.options,this)},de:function(a,b){var c=s;if((c=this.PS(a))!=s)c.bKa(b,this.Hd.length<=5);else{c=new sc.DWa(a,b);this.Hd.length>=5?this.Ej.push(c):this.ds(c,!sc.q.Qe());this.hidden&&!sc.q.Qe()&&this.show()}},update:function(){if(!sc.q.Mq()&&!sc.q.xo()&&!this.hidden){for(var a=
this.Hd.length,b=s;a--;){b=this.Hd[a].Xi;b.bH();if(b.n<=0){b=this.f5(a);if(a==0&&this.Hd.length==0)b.a.cb.y=b.a.size.y/2;else{b.a.cb.y=0;b.a.vb.p=KEY_SPLINES.EASE_OUT}this.QM()}}!this.hidden&&this.Hd.length==0&&this.hide()}},PS:function(a){for(var b=this.Hd.length;b--;)if(this.Hd[b].Xi.id==a)return this.Hd[b].Xi;for(b=this.Ej.length;b--;)if(this.Ej[b].id==a)return this.Ej[b];return s},QM:function(){if(this.Ej.length!=0){var a=this.Ej.splice(0,1)[0];this.ds(a,j)}},ula:function(a){for(var b=this.Hd.length,
c=s;b--;){c=this.Hd[b];c.Xi.Nwa(a);c.uh(c.Xi)}this.dQ()},lb:function(a,b,c){if(a==sc.q.R)b==sc.Wc.M7&&sc.options.get("show-items")&&!c.Ko&&this.de(c.id,c.zb);else if(a==sc.q)if(a.WC()){this.x$();this.Ej.length=0;this.hide()}else a.Qe()||a.qA()||sc.Xb.Gt?this.hide():!a.Qe()&&(!a.qA()&&this.Hd.length>0&&!sc.Xb.Gt)&&this.show();else if(a==sc.options&&b==sc.iq.Tw){a=sc.options.get("item-hud-size");if(a!=this.size){this.ula(a==sc.dS.Ki);this.size=a}}}})});ig.G=j;
ig.I("game.feature.gui.hud.element-hud").J("impact.feature.gui.gui","game.feature.combat.model.combat-params","game.feature.model.options-model").H(function(){var a=[sc.ja.HEAT,sc.ja.COLD,sc.ja.SHOCK,sc.ja.WAVE],b=Vec2.pc(0,0);sc.VUa=ig.X.extend({N:{DEFAULT:{state:{},time:0.15,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.15,p:KEY_SPLINES.EASE_IN}},n:0,Sv:[],f:function(){this.parent();this.v(64,64);this.zIndex=10;for(var b=0;b<a.length;++b){var c=new sc.WUa(h[a[b]]);this.Sv.push(c);this.m(c)}this.j("HIDDEN",
j);sc.K.Na(sc.q.R,this)},lb:function(a,b){b==sc.Wc.qH&&sc.options.get("element-select")&&this.jjb(a.Uj)},jjb:function(b){for(var c=0;c<a.length;++c)this.Sv[c].show(b,b==a[c]);this.n=0.5;this.j("DEFAULT")},hide:function(){for(var b=0;b<a.length;++b)this.Sv[b].hide();this.j("HIDDEN")},update:function(){if(this.n){this.n=this.n-ig.g.Da;this.n<=0&&this.hide()}this.sk(j)},sk:function(){var a=ig.t.wb;if(a){a=a.b;ig.g.Kv(b,Math.round(a.i.x+a.size.x/2),Math.round(a.i.y-a.i.z-a.size.z/2+a.size.y/2));this.a.i.x=
b.x-this.a.size.x/2;this.a.i.y=b.y-this.a.size.y/2}}});var c={xr:ig.k.za,Mt:ig.k.W,wh:0,rotate:0,x4:16,y4:32,v4:16,w4:0},d={xr:ig.k.ha,Mt:ig.k.gb,wh:1,rotate:0.25,x4:0,y4:16,v4:32,w4:16},e={xr:ig.k.fb,Mt:ig.k.gb,wh:3,rotate:0.75,x4:32,y4:16,v4:0,w4:16},h={};h[sc.ja.HEAT]={xr:ig.k.za,Mt:ig.k.xb,wh:2,rotate:0.5,x4:16,y4:0,v4:16,w4:32};h[sc.ja.COLD]=c;h[sc.ja.SHOCK]=d;h[sc.ja.WAVE]=e;sc.WUa=ig.X.extend({N:{DEFAULT:{state:{},time:0.15,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:0,Ma:0},time:0.15,p:KEY_SPLINES.EASE_IN}},
r:new ig.$("media/gui/status-gui.png"),Ux:s,Qz:0,X9:w,f:function(a){this.parent();this.Ux=a;this.v(32,32);this.F(a.xr,a.Mt);this.j("HIDDEN",j)},show:function(a,b){this.Qz=a;this.X9=b;a!=sc.ja.NEUTRAL?this.rb(this.Ux.x4,this.Ux.y4):this.rb(this.Ux.v4,this.Ux.w4);this.j("HIDDEN",j);this.j("DEFAULT")},hide:function(){this.Qz!=sc.ja.NEUTRAL?this.rb(this.Ux.v4,this.Ux.w4):this.rb(this.Ux.x4,this.Ux.y4);this.j("HIDDEN")},va:function(a){!this.X9&&this.Ux.rotate&&a.ho().rb(16,16).vX(this.Ux.rotate*2*Math.PI);
var b=h[this.Qz],c,d=0,e;if(this.X9){b=128+b.wh*32;c=224;e=32}else{b=b?136+(1+b.wh)*24:136;c=200;e=24;d=4}a.ia(this.r,d,0,b,c,e,e);!this.X9&&this.Ux.rotate&&a.Po()}})});ig.G=j;
ig.I("game.feature.gui.hud.money-hud").J("game.feature.gui.hud.right-hud").H(function(){sc.tza=ig.X.extend({r:new ig.$("media/gui/message.png"),yc:s,N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ma:0},time:0.2,p:KEY_SPLINES.LINEAR}},f:function(a){this.parent();this.yc=new sc.Ib(9999999,{showPlus:!a,signed:j,transitionTime:0.5});this.yc.l(0,2);this.m(this.yc);this.a.size.x=this.yc.a.size.x+10+4;this.a.size.y=this.yc.a.size.y+4;this.a.cb.x=this.a.size.x;this.a.cb.y=a?this.a.size.y:
0},va:function(a){a.ia(this.r,this.a.size.x-10,2,0,88,10,8)}});sc.$Xa=ig.X.extend({GK:s,r6:s,f:function(){this.parent();this.GK=new sc.tza(w);this.r6=new sc.tza(j);this.m(this.GK);this.m(this.r6);this.a.size.x=this.GK.a.size.x;this.a.size.y=this.GK.a.size.y},KQ:function(a){this.r6.j("HIDDEN",j);this.GK.j("DEFAULT",j);this.GK.yc.sa(a)},fva:function(a){this.GK.j("HIDDEN");this.r6.j("DEFAULT");this.r6.yc.sa(a)},clear:function(){this.GK.yc.sa(0,j)}});sc.aYa=sc.GB.extend({Lk:s,dT:0,n:0,f:function(){this.parent(ig.lang.get("sc.gui.money-hud.title"));
this.Lk=new sc.$Xa;this.ds(this.Lk);sc.K.Na(sc.q.R,this);sc.K.Na(sc.q,this)},update:function(){if(this.n>0){var a=this.n;this.n=this.n-ig.g.Da;if(this.n<=0){this.dT=0;this.Lk.clear();this.hide()}a>2&&this.n<=2&&this.fva()}},lb:function(a,b,c){if(a==sc.q.R)b==sc.Wc.r7&&sc.options.get("show-money")&&this.u5a(c);else if(a==sc.q&&b==sc.Le.jq&&sc.q.KK!=sc.Yf.Gia){this.n=this.dT=0;this.Lk.clear();this.hide()}},u5a:function(a){this.dT=this.dT+a;this.Lk.KQ(this.dT);this.n=5;this.show()},fva:function(){this.Lk.fva(sc.q.R.Ud)}})});
ig.G=j;
ig.I("game.feature.gui.hud.task-hud").J("game.feature.gui.hud.right-hud").H(function(){sc.c1a=sc.GB.extend({Lk:s,dT:0,n:0,f:function(){this.parent(ig.lang.get("sc.gui.task-hud.title"));this.Lk=new sc.ea("",{bestRatio:12,maxWidth:240});this.ds(this.Lk);sc.K.Na(sc.q,this)},update:function(){if(!ig.t.paused&&!this.hidden&&!sc.q.f3&&this.n>0){this.n=this.n-ig.g.Da;this.n<=0&&this.hide()}},lb:function(a,b){if(a==sc.q){var c=a.Wd||a.K4;if(b==sc.Le.iBa){c&&!this.hidden&&this.hide(j);if(c){this.Lk.fa(c);this.Vea(0,
this.Lk);this.show();this.n=7}else{this.Lk.fa("");this.Vea(0,this.Lk);this.hide()}}else if(b==sc.Le.Pza){this.Lk.fa(c||"");this.Vea(0,this.Lk)}else b==sc.Le.jq&&(a.Mq()&&c?this.show():a.xo()&&c?this.hide():c&&(this.n>0||a.f3)?this.show():this.hide())}}})});ig.G=j;
ig.I("game.feature.gui.hud.hp-hud").J("impact.feature.gui.gui","game.feature.gui.base.numbers","game.feature.model.options-model").H(function(){sc.gWa=ig.X.extend({N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.LINEAR}},r:new ig.$("media/gui/status-gui.png"),QC:s,Qr:s,f:function(a){this.parent();this.v(68,16);this.rb(36,16);this.QC=new sc.Ib(9999,{signed:j,transitionTime:0.5});this.QC.l(12,1);this.m(this.QC);a=sc.q.R.ba;this.Qr=new sc.Nya(a,48,3);
this.Qr.l(12,9);this.m(this.Qr);sc.K.Na(a,this);sc.K.Na(sc.q.R,this);sc.K.Na(sc.options,this);this.QC.sa(a.Jb,j)},update:function(){var a=sc.q.R.Hpa()?1:(sc.q.R.exp/sc.$L).Vb(0,1);this.Qr.EPa(a)},va:function(a){a.ia(this.r,0,0,0,0,this.a.size.x,this.a.size.y)},lb:function(a,b){if(a==sc.q.R.ba){b==sc.oi.eM?this.QC.sa(a.Jb):b==sc.oi.Ww?this.QC.sa(a.Jb,!this.a.Il):b==sc.oi.i8&&this.QC.sa(a.Jb,j);if(b==sc.oi.eM||b==sc.oi.Ww)if(a.f2()<0.25){this.QC.Te(sc.ef.hm);sc.options.get("low-health-warning")&&ig.vd.aB("RED",
1,0.4,0.5)}else{this.QC.Te(sc.ef.$o);sc.options.get("low-health-warning")&&ig.vd.aB("RED",0,0.4)}}else if(a==sc.q.R){if(b==sc.Wc.FZ||b==sc.Wc.o7){this.QC.sa(sc.q.R.ba.Jb,j);this.Qr.bhb()}}else a==sc.options&&b==sc.iq.Tw&&(this.qe/this.tA<0.25?sc.options.get("low-health-warning")?ig.vd.aB("RED",1,0.4,0.5):ig.vd.aB("RED",0,0.4):ig.vd.aB("RED",0,0.4))}});sc.Nya=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),tA:0,Jb:0,qe:0,n:0,poa:0,ba:s,width:0,height:0,Paa:0,f:function(a,b,c){this.parent();this.ba=
a;this.width=b||48;this.height=c||3;this.tA=a.le("hp");this.Jb=this.qe=a.Jb},dn:function(){sc.K.Na(this.ba,this)},th:function(){sc.K.lc(this.ba,this)},update:function(){if(this.qe<0){this.Jb=this.qe;this.n=(this.n+ig.g.Da)%0.2}else if(this.n>0)this.n=this.n-ig.g.Da;else if(this.qe!=this.Jb){var a=ig.g.Da*this.tA/2;if(this.Jb>this.qe)this.Jb=Math.max(this.qe,this.Jb-a);else if(this.Jb<this.qe)this.Jb=Math.min(this.qe,this.Jb+a)}if(this.Paa>=1)this.poa=(this.poa+ig.g.Da)%0.2},EPa:L("Paa"),bhb:function(){this.tA=
this.ba.le("hp");this.Jb=this.qe=this.ba.Jb},va:function(a){var b,c,d,e,h=1;if(this.qe>0){if(this.qe<this.Jb){c=this.Jb/this.tA;b=this.qe/this.tA;e=49}else{c=this.qe/this.tA;b=this.Jb/this.tA;e=51}d=b>0.25?48:50}else{b=1;d=50;h=this.n/0.2;h=(h<0.5?h:1-h)*2}for(var k=0;k<this.height;k++){c&&this.qe!=this.Jb&&a.ia(this.r,k,k,0,e,c.Vb(0,1)*this.width,1).wd(h);b>0&&a.ia(this.r,k,k,0,d,b.Vb(0,1)*this.width,1).wd(h)}b=this.poa>0.1;c=this.Paa;d=this.Paa>=1;c&&a.ia(this.r,this.height+1,this.height+1,0,48+
(d&&b?6:4),c.Vb(0,1)*this.width,1)},lb:function(a,b){if(b==sc.oi.eM){this.n=0.5;if((this.qe-this.Jb)*(a.Jb-this.qe)<0)this.Jb=this.qe;this.qe=a.Jb;this.tA=a.le("hp")}else if(b==sc.oi.Ww){this.tA=a.le("hp");this.qe=a.Jb;this.Jb=this.Jb-(this.qe-a.Jb)}else if(b==sc.oi.i8){this.tA=a.le("hp");this.Jb=this.qe=a.Jb}}})});ig.G=j;
ig.I("game.feature.gui.hud.sp-hud").J("impact.feature.gui.gui","game.feature.gui.base.numbers").H(function(){function a(a,b,d,k,l,r,p){var t=e,K=h;r||(K=K+q);p||(K=K+x);r=m*2+n*4;p=r-o;if(k!=g){t=t+(m+k*n);r=r-(m+k*n);p=r-o}if(l!=g)p=r=r-(m+(4-l)*n);a.ia(b,d.cs,0,t,K,r,c);d.cs=d.cs+p}function b(b,d,e,h,m,n,o){e.lf&&e.lf%4==0&&a(b,d,e,g,0,o!=y.tS,h<=m);for(var I=h<=m,K=6,H=sc.uS.length;H--;)if(h>=sc.uS[H].bba){K=K*sc.uS[H].lh;break}var n=KEY_SPLINES.EASE_IN_OUT.get(n),K=Math.round(n*K+(1-n)*3),H=Math.floor(K*
(h-Math.floor(h))),n=1+H,H=1+K-H,G=t,J=r;if(o==y.IR){G=k;J=l}else if(o==y.tS){G=k;J=l+8}else I||(J=J+x);b.ia(d,e.cs,0,G,J,n,c);o||(J=J+q);G=G+(p-H);b.ia(d,e.cs+n,0,G,J,H,c);e.cs=e.cs+(K+2);e.lf++;e.dj++;if(e.lf%4==0){a(b,d,e,4,g,o==y.IR,h<=m);e.dj=0;e.Gf=(m-e.lf).Vb(0,4)}}var c=7,d={lf:0,cs:0,dj:0,Gf:0};sc.y0a=ig.X.extend({sv:0,SE:0,HJ:w,My:0,N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ma:0},time:0.1,p:KEY_SPLINES.LINEAR}},r:new ig.$("media/gui/status-gui.png"),f:function(){this.parent();
this.v(142,c);this.rb(71,3);var a=sc.q.R.ba;sc.K.Na(a,this);a.Ao==0&&this.j("HIDDEN",j)},update:function(){var a=sc.q.R.ba.Wj,b=this.My!=Math.floor(this.My);if(a>this.My){if(!this.HJ&&!b){this.HJ=w;this.SE=0.2}if(Math.floor(this.My)<Math.floor(a)){this.HJ=w;this.sv=0.2;if(Math.floor(a)<a)this.SE=0.2}}else if(a<this.My){if(Math.floor(a)==a&&b){this.HJ=j;this.sv=0.2}if(Math.floor(this.My)>Math.floor(a)){this.HJ=j;this.SE=0.2;if(b)this.sv=0.2}}this.My=a;if(this.SE){this.SE=this.SE-ig.g.Da;if(this.SE<
0)this.SE=0}if(this.sv){this.sv=this.sv-ig.g.Da;if(this.sv<0)this.sv=0}},va:function(e){var h=sc.q.R.ba,k=h.Ao||4,l=k/2,h=h.Wj,m=Math.floor(h);e.ia(this.r,0,0,0,16,19,c);this.sv&&!this.HJ&&(m=Math.max(0,m-1));d.cs=19;d.lf=0;d.dj=Math.min(4,m);for(d.Gf=Math.min(4,l);d.lf+1<=m;){var n=d.lf?g:0;if(d.dj==4&&(d.Gf==4||d.Gf==0))a(e,this.r,d,n,g,j,d.Gf==4);else if(d.Gf>0&&d.Gf<d.dj){var r=d.dj==4?g:d.dj;a(e,this.r,d,n,d.Gf,j,j);a(e,this.r,d,d.Gf,r,j,w)}else a(e,this.r,d,n,d.dj,j,d.Gf>0);d.lf=d.lf+d.dj;if(d.dj==
4){d.dj=Math.min(4,m-d.lf);d.Gf=(l-d.lf).Vb(0,4)}}if(this.sv&&!this.HJ){n=this.sv/0.2;b(e,this.r,d,d.lf-0.001,l,n,y.IR);m++}if(h-m>0){n=(0.2-this.SE)/0.2;b(e,this.r,d,h,l,n)}if(this.sv&&this.HJ){n=this.sv/0.2;b(e,this.r,d,d.lf+1,l,n,y.tS)}if(d.lf==0||d.lf%4!=0){if(d.Gf>d.dj&&d.Gf<4){a(e,this.r,d,d.dj,d.Gf,w,j);d.dj=d.Gf}a(e,this.r,d,d.dj,g,w,d.Gf==4);d.lf=d.lf==0?4:Math.ceil(d.lf/4)*4}for(;d.lf<k;){d.Gf=(l-d.lf).Vb(0,4);if(d.Gf==4||d.Gf==0)a(e,this.r,d,g,g,w,d.Gf==4);else{a(e,this.r,d,g,d.Gf,w,j);
a(e,this.r,d,d.Gf,g,w,w)}d.lf=d.lf+4}},lb:function(a,b){if(b==sc.oi.iia)if(sc.q.R.ba.Ao==0){this.j("HIDDEN");this.My=0}else this.j("DEFAULT")}});var e=96,h=0,k=40,l=16,m=8,n=5,o=6,t=68,r=0,p=26,q=16,x=8,y={NONE:0,IR:1,tS:2}});ig.G=j;
ig.I("game.feature.gui.hud.param-hud").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box").H(function(){sc.EB=ig.X.extend({N:{DEFAULT:{state:{},time:0,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR}},aa:s,Fh:s,rq:s,zq:s,Fq:s,Y8:w,f:function(){this.parent();this.aa=new sc.EB.kXa;this.aa.F(ig.k.fb,ig.k.W);this.m(this.aa);this.Fh=new sc.EB.b8("maxhp","hp",62,9999);this.Fh.F(ig.k.fb,ig.k.W);this.Fh.l(52,0);this.m(this.Fh);this.rq=new sc.EB.b8("atk",
"attack",54,999);this.rq.F(ig.k.fb,ig.k.W);this.rq.l(100,0);this.m(this.rq);this.zq=new sc.EB.b8("def","defense",54,999);this.zq.F(ig.k.fb,ig.k.W);this.zq.l(140,0);this.m(this.zq);this.Fq=new sc.EB.b8("foc","focus",54,999);this.Fq.F(ig.k.fb,ig.k.W);this.Fq.l(180,0);this.m(this.Fq);this.Tpa(j);this.j("DEFAULT")},KQa:function(a){a?this.Os()||this.Y8?this.bd(54,26,0.2,KEY_SPLINES.EASE):this.l(54,26):this.Os()||this.Y8?this.bd(52,5,0.2,KEY_SPLINES.LINEAR):this.l(52,5);this.Y8=j;this.aa.j("DEFAULT",w,
w,s,0.048);this.Fh.j("DEFAULT",w,w,s,0.048);this.rq.j("DEFAULT",w,w,s,0.048);this.zq.j("DEFAULT",w,w,s,0.048);this.Fq.j("DEFAULT",w,w,s,0.048)},Tpa:function(a){a=a!=g?a:w;this.aa.j("HIDDEN",a);this.Fh.j("HIDDEN",a);this.rq.j("HIDDEN",a);this.zq.j("HIDDEN",a);this.Fq.j("HIDDEN",a);this.Y8=w}});sc.EB.mZa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),param:"",offsetX:0,offsetY:0,Od:0,O_:1,uEa:1,f:function(a){this.parent();this.param=a;this.v(8,8);sc.K.Na(sc.q.R,this);this.Od=0.2;this.XBa(1)},update:function(){if(this.Od<
0.2){this.Od=this.Od+ig.g.Da;if(this.Od>=0.2)this.Od=0.2;this.XBa(this.p3a())}},va:function(a){a.ia(this.r,0,0,1+this.offsetX,146+this.offsetY,this.a.size.x,this.a.size.y)},p3a:function(){if(this.Od>=0.2)return this.O_;var a=this.Od/0.2;return(1-a)*this.uEa+a*this.O_},XBa:function(a){var b=a<1?(a-1)*-1+1:a,c=(Math.abs(b)-1)*10%6;this.offsetX=(a<1?Math.ceil(c):Math.floor(c))*9;this.offsetY=(a<1?18:0)+(Math.abs(b)-1>=0.6?9:0)},lb:function(a,b){if(a==sc.q.R&&(b==sc.Wc.qH||b==sc.Wc.nE||b==sc.Wc.wE)){var c=
sc.q.R.lIa().T$a(this.param);if(this.O_!=c){this.Od=0;this.uEa=this.O_;this.O_=c}}}});sc.EB.b8=ig.te.extend({eb:new ig.$b("media/gui/status-gui.png",{width:3,height:0,left:17,top:17,right:17,bottom:0,Fb:{"default":{x:0,y:128}}}),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{Ma:0,alpha:0,Ia:0.8},time:0.2,p:KEY_SPLINES.LINEAR}},h9:s,ME:s,vn:s,IDa:"",f:function(a,b,c,d){this.parent(c,17);this.a.cb.x=0;this.a.cb.y=0;this.IDa=b;sc.K.Na(sc.q.R,this);this.ME=new sc.ea(ig.lang.get("sc.gui.status-hud."+
a),{speed:ig.rd.Nd.We,font:sc.Ka.Lb});this.ME.F(ig.k.fb,ig.k.W);this.ME.l(19,0);this.m(this.ME);this.h9=new sc.EB.mZa(b);this.h9.F(ig.k.fb,ig.k.W);this.h9.l(9,1);this.m(this.h9);this.vn=new sc.Ib(d,{signed:j,transitionTime:0.2});this.vn.F(ig.k.ha,ig.k.xb);this.vn.l(10,1);this.hla(j);this.m(this.vn);this.j("HIDDEN",j)},hla:function(a){var b=sc.q.R.lIa();b&&this.vn.sa(b.S$a(this.IDa),a)},lb:function(a,b){a==sc.q.R&&(b==sc.Wc.qH||b==sc.Wc.nE?this.hla():(b==sc.Wc.Aha||b==sc.Wc.AZ||b==sc.Wc.o7||b==sc.Wc.FZ||
b==sc.Wc.wE)&&this.hla(j))}});sc.EB.kXa=ig.te.extend({eb:new ig.$b("media/gui/status-gui.png",{width:3,height:0,left:17,top:17,right:17,bottom:0,Fb:{"default":{x:0,y:128}}}),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{Ma:0,alpha:0,Ia:0.8},time:0.2,p:KEY_SPLINES.LINEAR}},ME:s,PM:s,f:function(){this.parent(66,17);this.a.cb.x=0;this.a.cb.y=0;sc.K.Na(sc.q.R,this);this.ME=new sc.ea(ig.lang.get("sc.gui.status-hud.lvl"),{speed:ig.rd.Nd.We,font:sc.Ka.Lb});this.ME.F(ig.k.fb,ig.k.W);this.ME.l(10,
1);this.m(this.ME);this.PM=new sc.Ib(99,{signed:j,transitionTime:0.2,size:sc.uf.hh});this.PM.F(ig.k.ha,ig.k.xb);this.PM.l(17,1);this.PM.sa(sc.q.R.aa,j);this.m(this.PM);this.j("HIDDEN",j)},lb:function(a,b){a==sc.q.R&&(b==sc.Wc.nE?this.PM.sa(sc.q.R.aa):b==sc.Wc.FZ&&this.PM.sa(sc.q.R.aa,j))}})});ig.G=j;
ig.I("game.feature.gui.hud.buff-hud").J("impact.feature.gui.gui","impact.feature.gui.base.box","impact.feature.gui.base.basic-gui").H(function(){sc.ETa=ig.te.extend({eb:new ig.$b("media/gui/status-gui.png",{width:2,height:0,left:2,top:10,right:2,bottom:0,Fb:{"default":{x:241,y:128}}}),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:20},time:0.2,p:KEY_SPLINES.LINEAR},REMOVE:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},SCALED:{state:{Ia:0},time:0.2,p:KEY_SPLINES.EASE}},
mN:s,id:0,f:function(a,b,c){this.parent(10,10);this.mN=a;this.id=b||0;a=new sc.ea(a.Sba,{font:sc.Ka.Lb,speed:ig.rd.Nd.We});a.F(ig.k.fb,ig.k.W);a.l(1,1);this.m(a);this.v(a.a.size.x+5+1,10);this.l(c,0);this.rb(0,this.a.size.y/2);this.j(b==0?"HIDDEN":"SCALED",j)},va:function(a){this.parent(a);var b=Math.ceil(this.mN.alpha()*8);a.ia(this.eb.r,this.a.size.x-4,1,249,129,2,8);b>0&&a.ia(this.eb.r,this.a.size.x-4,this.a.size.y-1-b,252,129+(8-b),2,b)}});sc.FTa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),
NG:s,Bx:s,kp:[s,s,s,s],f:function(){this.parent();sc.K.Na(sc.q.R.ba,this);this.NG=new ig.Dc(this.r,216,128,10,10);this.NG.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:20},time:0.2,p:KEY_SPLINES.LINEAR},REMOVE:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.NG.j("REMOVE",j);this.m(this.NG);this.Bx=new ig.Dc(this.r,230,129,10,10);this.Bx.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:20},time:0.2,p:KEY_SPLINES.LINEAR},REMOVE:{state:{alpha:0},
time:0.2,p:KEY_SPLINES.LINEAR}};this.Bx.j("REMOVE",j);this.m(this.Bx)},update:function(){for(var a=this.kp.length,b=w;a--;)if(this.kp[a]&&this.kp[a].mN.alpha()<=0){a==0&&!this.kp[a+1]?this.kp[a].j("REMOVE",w,j):this.kp[a].j("SCALED",w,j);this.kp[a]=s;b=j}if(b&&this.Bjb()){this.NG.j("REMOVE");this.Bx.j("REMOVE")}},Bjb:function(){this.kp.sort();for(var a=10,b=j,c=s,d=0;d<this.kp.length;d++)if(c=this.kp[d]){b=w;c.bd(a,0,0.2,KEY_SPLINES.EASE);c.id=d;a=a+c.a.size.x}b||this.Bx.bd(a,0,0.2,KEY_SPLINES.EASE);
return b},Gla:function(a){for(var b=10,c=0,d=0;d<this.kp.length;d++)if(this.kp[d]){b=b+this.kp[d].a.size.x;c++}a=new sc.ETa(a,c,b);a.j("DEFAULT");this.m(a);this.kp[c]=a;if(c==0){this.NG.j("HIDDEN",j);this.Bx.j("HIDDEN",j);this.Bx.l(b+a.a.size.x,0)}else this.Bx.bd(b+a.a.size.x,0,0.2,KEY_SPLINES.EASE);this.NG.j("DEFAULT");this.Bx.j("DEFAULT")},Cgb:function(){this.a.rg();for(var a=0;a<this.kp.length;a++)if(this.kp[a]){this.kp[a].j("REMOVE",j,j);this.kp[a]=s}this.NG.j("REMOVE",j);this.Bx.j("REMOVE",j);
this.m(this.NG);this.m(this.Bx)},lb:function(a,b,c){b==sc.oi.eha?this.Gla(c):b==sc.oi.i8&&this.Cgb()}})});ig.G=j;
ig.I("game.feature.gui.hud.item-timer-hud").J("impact.feature.gui.gui","impact.feature.gui.base.box").H(function(){sc.NWa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:0},time:0.2,p:KEY_SPLINES.EASE_IN}},Je:s,R:s,Fa:s,f:function(){this.parent();this.v(44,10);this.rb(0,5);sc.K.Na(sc.q.R,this);this.R=sc.q.R;this.Je=new sc.Ib(60,{leadingZeros:2,size:sc.uf.KB,color:sc.ef.$o});this.Je.F(ig.k.fb,ig.k.gb);this.Je.sa(0);
this.Je.l(18,0);this.m(this.Je);this.j("HIDDEN",j)},update:function(){this.a.Il&&this.Je.sa(Math.ceil(this.R.qu))},va:function(a){a.ia(this.r,0,0,216,160,this.a.size.x,this.a.size.y);a.Ec("white",16,8,Math.ceil(this.R.qu/this.Fa*13),1)},lb:function(a,b){if(a==sc.q.R)if(b==sc.Wc.$Y){this.Fa=this.R.qu;this.Je.sa(this.R.qu);this.j("DEFAULT")}else b==sc.Wc.Sha?this.j("HIDDEN"):b==sc.Wc.AZ&&this.j("HIDDEN",j)}})});ig.G=j;
ig.I("game.feature.quick-menu.quick-menu-model").J("impact.base.game","impact.feature.interact.button-interact","impact.feature.database.database","game.feature.model.base-model").H(function(){sc.zj={};sc.zj.NONE=0;sc.zj.cz=1;sc.zj.CY=2;sc.zj.KH=3;sc.zj.pi=4;sc.VZa=ig.sf.extend({um:[],Q:s,vz:w,Id:sc.zj.NONE,a5:sc.zj.NONE,visible:w,V0:w,cursor:Vec2.pc(0,0),fl:s,Ecb:0,Vx:s,aF:s,Dfa:w,Co:[],P1:w,k3:0,f:function(){this.parent("QuickMenuModel");this.Q=new ig.nr;window.Yc&&ig.Dj.dg("names","NPCNamesList",
"NPC Names");this.Co=ig.Dj.get("names")},Jaa:function(){ig.ua.de(this.Q);this.visible=j},L8a:function(){ig.ua.ie(this.Q);this.visible=w;this.a5=this.Id=sc.zj.NONE;this.Ecb=0;this.V0=w;this.fl=s;this.cursor.x=0;this.cursor.y=0;this.Dfa?this.Dfa=w:this.vz=w;sc.K.wa(this,sc.qi.YL)},r8a:function(){this.t9(sc.zj.cz)},x8a:function(){this.t9(sc.zj.KH)},m8a:function(){this.t9(sc.zj.CY)},$na:function(){this.t9(sc.zj.NONE)},tc:function(a,b){this.Vx=a;sc.K.wa(this,sc.qi.bz,b)},cm:function(a,b){this.aF=a;sc.K.wa(this,
sc.qi.AY,b)},Bkb:function(){sc.K.wa(this,sc.qi.Pya)},NOa:function(){this.V0=w;if(this.fl)this.fl.focus=w;this.fl=s},NHa:function(a,b,c,d){if(this.fl==c){if(ig.input.bb==ig.Gb.Jc){this.cursor.x=a;this.cursor.y=b;sc.K.wa(this,sc.qi.jya)}}else{this.cursor.x=a;this.cursor.y=b;this.fl&&this.fl.focus&&this.fl.zg();(this.fl=c)&&!this.fl.focus&&this.fl.Pl();sc.K.wa(this,sc.qi.Aya,d)}},Bga:function(a){if(this.fl==a){this.fl&&this.fl.zg();this.fl=s;sc.K.wa(this,sc.qi.xBa)}},ecb:function(){return this.k3==ig.input.bb},
t9:function(a){if(this.Id!=a){this.a5=this.Id;this.Id=a;sc.K.wa(this,sc.qi.vM)}},vcb:function(){return this.Id==sc.zj.NONE},aLa:function(){return this.Id==sc.zj.cz},bLa:function(){return this.Id==sc.zj.KH},lca:function(){return this.Id==sc.zj.CY}});sc.qi={};sc.qi.YL=0;sc.qi.vM=1;sc.qi.bz=2;sc.qi.AY=3;sc.qi.Pya=4;sc.qi.Aya=5;sc.qi.xBa=6;sc.qi.jya=7;ig.wf(function(){return sc.ib=new sc.VZa})});ig.G=j;
ig.I("game.feature.menu.map-model").J("impact.base.game","impact.base.loader","impact.base.vars","impact.feature.database.database","game.config","game.feature.quick-menu.quick-menu-model","game.feature.model.options-model").H(function(){var a={yo:"",Ub:""};sc.ymb={DEFAULT:{qa:s,vq:{x:0,y:0,uc:8,Gc:8}}};sc.gza={DUNGEON:1,NO_DUNGEON:2};sc.ML={};sc.ML.TOWN=0;sc.ML.PATH=1;sc.ML.DUNGEON=2;sc.LL={DUNGEON_KEY:{Vla:"keyItem"},DUNGEON_MASTER_KEY:{Vla:"masterKeyItem"}};sc.OXa=ig.sf.extend({um:[],Kt:{},areas:s,
aC:{},$h:s,Zh:s,XT:0,ej:0,JN:s,qtb:s,dwa:s,yla:[],f:function(){this.parent("MapModel");ig.Cc.dg(this);window.Yc&&ig.Dj.dg("areas","AreaList","Areas");this.Ebb();ig.pa.Gp("area",this,"VarAreaEditor");ig.pa.Gp("location",this,"VarLocationEditor")},mpa:function(a){var c=0,d=0,e;for(e in this.areas)if(this.areas[e].track){this.aC[e.Qy()]&&c++;d++}return a?c/d:c},opa:function(a){var c=0,d=0,e;for(e in this.areas)for(var h in this.areas[e].landmarks)if(this.areas[e].track){this.Kt[e]&&this.Kt[e][h]&&c++;
d++}return a?c/d:c},zba:function(a){var c=0,d=0,e;for(e in this.areas)if(this.areas[e].track){c=c+(sc.ta.pg("chests",e)||0);d=d+(this.areas[e].chests||0)}return a?c/d:c},uab:function(){var a=0,c;for(c in this.areas)this.areas[c].track&&(a=a+(this.areas[c].chests||0));return a},zJa:function(){for(var a in this.areas)if(this.areas[a].track&&!this.aC[a.Qy()])return w;return j},ppa:function(a){if(a=this.Kt[a]){var c=0,d;for(d in a)c++;return c||0}},TF:10,at:function(a){if(a.attributes&&a.attributes.area){this.JN=
a.name.Akb();a=a.attributes.area;this.llb(a);var c=w;this.$h&&this.$h.path!=a?c=j:this.$h||(c=j);if(c){this.$h=new sc.oxa(a);this.$h.wr(this);this.Zh=this.$h}else{this.Zh=this.$h;this.Pq()}}else this.Zh=this.$h=s},UF:150,my:function(){var a=ig.t.entities,c=a.length;Math.seedrandomSeed(ig.t.E3);this.yla.length=0;for(var d=sc.ib.Co,e=0,h=sc.ez.BOTH;c--;){var k=a[c];if(k&&k instanceof ig.ya.NPC&&!k.kh&&!k.Nc.data.name){for(var h=sc.ez[k.Nc.data.gender]||sc.ez.BOTH,l=Math.floor(Math.randomSeed()*d.length),
e=0;!this.h6a(h,sc.ez[d[l].gender])||this.yla[l];){l=Math.floor(Math.randomSeed()*d.length);e++;if(e>=3)break}this.yla[l]=j;k.oaa=ig.Oa.wc(d[l].name)}}},h6a:function(a,c){switch(c||0){case sc.ez.BOTH:return a==sc.ez.MALE||a==sc.ez.FEMALE;case sc.ez.MALE:return a==sc.ez.MALE;case sc.ez.FEMALE:return a==sc.ez.FEMALE}return w},nj:function(){this.aC={};this.Kt={}},On:function(a,c){if(c[0]=="area"){var d=c[1];if(this.areas[d])switch(c[2]){case "name":return ig.Oa.wc(this.areas[d].name);case "chests":return(this.areas[d].chests||
0)+"";case "landmark":switch(c[3]){case "name":return ig.Oa.wc(this.areas[d].landmarks[c[4]].name);case "active":return this.Kt[c[1]][c[4]]}}}if(c[0]=="location")switch(c[1]){case "isMapDungeon":return this.uV();case "isAreaDungon":return this.uV(j)}f(Error("Unsupported var access path: "+a))},Ebb:function(){this.areas=ig.Dj.get("areas")},Wqa:function(a,c){if(a==this.$h.path){this.Zh=this.$h;c.Pq(j,this.Zh)}else{this.Zh=new sc.oxa(a);this.Zh.wr(c)}},Okb:function(){if(this.Zh.path!=this.$h.path){this.Zh.zc();
this.Zh=s}},llb:function(a){if(!this.aC[a.Qy()]){this.areas[a].track&&sc.ta.cc("exploration","areas",1);this.aC[a.Qy()]={}}},WSa:function(){var a=this.$h.data,c=a.floors.length,d=0,e=s,h=s;this.XT=this.ej=0;for(var k=w;c--;){e=a.floors[c];for(d=e.maps.length;d--;){h=e.maps[d];k=h.path==this.JN;h.zMin&&(k=k&ig.t.wb.b.aa>=h.zMin);h.zMax&&(k=k&ig.t.wb.b.aa<=h.zMax);if(k){this.ej=this.XT=e.level||0;return}}}},tlb:function(){var a=this.Zh.data,c=a.floors.length,d=0,e=s,h=s;this.ej=0;for(var k=a.defaultFloor==
g?g:a.defaultFloor,l=w;c--;){e=a.floors[c];for(d=e.maps.length;d--;){h=e.maps[d];l=ig.pa.get("maps."+h.path.Qy().dr("",""));h.zMin&&(l=l&ig.t.wb.b.aa>=h.zMin);h.zMax&&(l=l&ig.t.wb.b.aa<=h.zMax);if(l){if(k==g){this.ej=e.level||0;return}if(k==e.level){this.ej=k;return}}else e.level==k&&(k=g)}}},restore:function(){this.ej=this.XT;this.Zh&&this.$h&&this.Zh.path!=this.$h.path&&this.Zh.zc();this.Zh=this.$h},SEa:function(b,c,d){this.lcb(b,c||this.$h.path)||f(Error("invalid Landmark: "+b+"! Maybe missing entry in database?"));
c=c||this.$h.path;this.Kt[c]||(this.Kt[c]={});if(!this.Kt[c][b]){this.Kt[c][b]=j;sc.ta.cc("exploration","landmarks",1);sc.e.zI({type:"LANDMARK",area:c,landmark:b});a.yo=b;a.Ub=c||this.$h.path;d&&sc.options.get("update-landmark-style")!=sc.TZ.NONE&&ig.t.Vg.wq(this.A$a(d),ig.bl.INTERRUPTABLE);sc.Xb.Geb(c);sc.K.wa(this,sc.gZ.Zha,a)}},ckb:function(a){this.dwa=this.sab(a.path);sc.ta.cc("player","teleports",1);sc.q.Ir();sc.So.KD(this.dwa)},kpb:function(a){return sc.ML[this.areas[a].areaType]},lcb:function(a,
c){var d=this.areas[c].landmarks;return d?d[a]:w},Loa:function(a){if(!this.$h)return-1;a=this.$h.data[a.Vla];return!a&&a!==0?-1:a},w9a:function(a){if(!this.$h)return s;for(var c in sc.LL)if(a==this.$h.data[sc.LL[c].Vla])return c},fba:function(a){a=this.Loa(a);return a==-1?0:sc.q.R.Nr(a)},QKa:function(a,c){if(c=c||this.$h.path){this.Kt[c]||(this.Kt[c]={});return this.Kt[c][a]||w}},uV:function(a){if(!this.$h)return w;if(!a)if(a=this.E$a(this.JN))return a==sc.gza.DUNGEON;a=this.areas[this.$h.path];return sc.ML[a&&
a.areaType]==sc.ML.DUNGEON},Uab:function(){for(var a in this.areas)if(this.areas[a]&&this.areas[a].track&&this.aC[a.Qy()])return j;return w},yab:function(){var a=[],c;for(c in this.areas)this.areas[c]&&(this.areas[c].track&&this.aC[c.Qy()])&&a.push(c);return a},bpa:function(a,c){var d=(c=this.areas[c])&&c.landmarks&&c.landmarks[a]&&c.landmarks[a].name;return d?new ig.Oa(d):"???"},Jpb:function(a,c){return this.areas[c].landmarks[a]},kIa:function(a){return this.areas[this.Zh.path].landmarks[a]},oIa:function(){return new ig.Oa(this.areas[this.$h.path].name)},
O9a:function(){return new ig.Oa(this.areas[this.Zh.path].name)},AF:function(a){if(!a)return"";return(a=this.areas[a])?new ig.Oa(a.name):s},mIa:function(){return this.RIa(this.JN)},RIa:function(a){for(var c=this.Zh.data.floors[this.Soa()].maps,d=c.length;d--;){var e=c[d];if(e.path==a&&e.name)return new ig.Oa(e.name)}return this.JN},E$a:function(a){if(!this.Zh)return s;for(var c=this.Zh.data.floors[this.Soa()].maps,d=c.length;d--;){var e=c[d];if(e.path==a)return sc.gza[e.dungeon]||s}return s},Soa:function(){return this.ej-
this.Zh.fra},zJ:function(){return this.Zh?this.Zh.data:s},A$a:function(a){return new ig.Ra({steps:[{type:"SET_CAMERA_BETWEEN",entity1:a,entity2:ig.t.wb,speed:"NORMAL",wait:j,transition:"EASE_OUT"},{type:"WAIT",time:1},{type:"RESET_CAMERA",speed:"SLOW",transition:"EASE_IN_OUT"}]})},sab:function(a){var c=ig.t.wb,d=[];d.push({time:0.2,ignoreSlowDown:w,type:"WAIT"});d.push({type:"SET_TELEPORT_COLOR",lighter:j,color:"white"});d.push({color:"white",alpha:1,time:1,lighter:j,type:"SET_OVERLAY"});d.push({type:"SET_CAMERA_TARGET",
entity:c,speed:"NORMAL",transition:"EASE_IN_OUT",zoom:1.5});d.push({time:0.2,ignoreSlowDown:w,type:"WAIT"});d.push({type:"SHOW_EFFECT",entity:c,effect:{sheet:"teleport",name:"hideMapTeleport"}});for(c=sc.Ca.Xe.length;c--;)d.push({type:"SHOW_EFFECT",entity:sc.Ca.EO(c),effect:{sheet:"teleport",name:"hideFast"}});d.push({time:1,ignoreSlowDown:w,type:"WAIT"});d.push({type:"TELEPORT",map:a,marker:"landmark"});d.push({time:3,ignoreSlowDown:w,type:"WAIT"});return new ig.Ra({steps:d})},spa:function(a){return this.aC[a.Qy()]},
Zpb:M("dwa"),Q9a:function(){return this.areas[this.Zh.path].chests||0},spb:function(a){return this.areas[a].chests||0},Rq:function(a){if(this.$h){a.area=ig.Oa.wc(this.areas[this.$h.path].name);if(this.XT!=g)for(var c=this.$h.data.floors,d=c.length;d--;){if(this.XT==c[d].level){a.floor=c[d].name?ig.Oa.wc(c[d].name):"";c=c[d].maps;for(d=c.length;d--;)c[d].path==this.JN&&c[d].name&&(a.specialMap=ig.Oa.wc(c[d].name));break}}else a.floor="???"}else{a.area="???";a.floor=""}a.visitedAreas=ig.copy(this.aC);
a.landmarks=ig.copy(this.Kt)},Qq:function(a){this.aC=a.visitedAreas||{};this.Kt=a.landmarks||{}},Pq:function(){this.WSa()}});sc.gZ={};sc.gZ.Zha=1;sc.gZ.Imb=2;ig.wf(function(){return sc.map=new sc.OXa})});ig.G=j;
ig.I("game.feature.gui.hud.key-hud").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","game.feature.menu.map-model").H(function(){sc.ZWa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),eb:new ig.$b("media/gui/status-gui.png",{width:6,height:0,left:0,top:11,right:10,bottom:0,Fb:{"default":{x:128,y:128},master:{x:128,y:140}}}),N:{DEFAULT:{state:{},time:0,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ma:0},time:0,p:KEY_SPLINES.LINEAR}},kFa:sc.LL.DUNGEON_KEY,
P5a:sc.LL.DUNGEON_MASTER_KEY,Je:s,Iba:w,f:function(){this.parent();this.Je=new sc.Ib(9,{});this.Je.sa(0);this.Je.l(11,2);this.m(this.Je);this.j("HIDDEN");this.v(28,11);sc.K.Na(sc.q.R,this);sc.K.Na(sc.q,this);this.a.Vc=0.8},va:function(a){this.eb.Xa(a,this.a.size.x,this.a.size.y,this.Iba?"master":"default");a.ia(this.r,1,0,144,this.Iba?140:128,8,11)},lb:function(a,b){a==sc.q?b==sc.Le.jq&&sc.q.Xm()&&this.Jga():a==sc.q.R&&(b==sc.Wc.M7||b==sc.Wc.Uha)&&this.GSa()},Jga:function(){var a=sc.map.Loa(this.kFa)!=
-1;sc.map.uV()||(a=w);this.j(a?"DEFAULT":"HIDDEN");this.GSa()},GSa:function(){var a=sc.map.fba(this.kFa);this.Iba=sc.map.fba(this.P5a)>0;this.Je.sa(a+(this.Iba?1:0))}})});ig.G=j;
ig.I("game.feature.gui.hud.status-hud").J("impact.feature.gui.gui","game.feature.gui.hud.hp-hud","game.feature.gui.hud.sp-hud","game.feature.gui.hud.param-hud","game.feature.gui.hud.buff-hud","game.feature.gui.hud.item-timer-hud","game.feature.model.options-model","game.feature.gui.hud.key-hud").H(function(){var a=[{x:20,y:20},{x:20,y:44},{x:20,y:-4},{x:44,y:20},{x:-4,y:20}];sc.K0a=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},
dob:s,fob:s,Lw:s,ey:s,dO:s,Ut:s,OP:s,RP:s,fP:s,mJ:0,cw:w,f:function(){this.parent();this.a.zIndex=1201;this.a.Ee=j;this.dO=new sc.I0a;this.dO.l(3,3);this.m(this.dO);this.Ut=new sc.J0a;this.Ut.l(0,0);this.m(this.Ut);this.OP=new sc.EB;this.OP.l(54,26);this.m(this.OP);this.ey=new sc.M0a;this.ey.l(29,21);this.m(this.ey);this.Lw=new sc.O0a;this.Lw.l(24,3);this.m(this.Lw);this.RP=new sc.gZa;this.RP.l(2,39);this.m(this.RP);this.fP=new sc.ZWa;this.fP.l(0,53);this.m(this.fP);sc.K.Na(sc.q,this);sc.K.Na(sc.q.R,
this);sc.K.Na(sc.q.e,this);sc.K.Na(sc.ib,this);this.j("HIDDEN",j)},update:function(){if(this.mJ>0&&!sc.q.cP()&&!sc.Wa.Tc()){this.mJ=this.mJ-ig.g.Da;this.mJ<=0&&this.Xka()}},lb:function(a,b){if(a==sc.q){if(b==sc.Le.Vw||b==sc.Le.jq)if(sc.q.cP())this.mHa();else if(sc.q.xo()){this.cw=j;sc.e.i1&&sc.e.hJ?this.cka(sc.e.hJ):this.cka(sc.e.Sm)}else{if(this.cw){this.Xka();this.cw=w}this.xla()}}else if(a==sc.e)(b==sc.ca.QY||b==sc.ca.cZ)&&this.cka(sc.e.Sm);else if(a==sc.q.R)b==sc.Wc.qH&&this.mHa();else if(a==
sc.ib&&b==sc.qi.vM)if(sc.ib.lca()){this.DDa();this.j("HIDDEN")}else this.j("DEFAULT")},Fg:function(){this.xla()},xla:function(){if(!sc.q.xo()&&!sc.q.cP()&&!sc.q.yV()){var a=ig.pa.get("playerVar.statusHidden"),b=sc.options.get("hud-display"),a=!a&&sc.q.SJ()&&sc.q.Xm()&&b;if(!a&&this.mJ>0){this.mJ=0;this.Xka()}this.j(a?"DEFAULT":"HIDDEN")}},Xka:function(){this.Ut.bd(0,0,0.3,KEY_SPLINES.EASE_IN_OUT);this.Ut.z5=w;this.dO.j("HIDDEN");this.Lw.bd(24,3,0.3,KEY_SPLINES.EASE_IN_OUT);this.ey.bd(29,21,0.3,KEY_SPLINES.EASE_IN_OUT);
this.RP.bd(2,39,0.3,KEY_SPLINES.EASE_IN_OUT);this.fP.bd(0,53,0.3,KEY_SPLINES.EASE_IN_OUT);this.OP.Tpa();this.j("DEFAULT")},DDa:function(){this.Ut.bd(0,0,0.2,KEY_SPLINES.EASE_IN_OUT);this.Ut.z5=w;this.dO.j("HIDDEN_MENU");this.Lw.bd(24,3,0.2,KEY_SPLINES.EASE_IN_OUT);this.ey.bd(29,21,0.2,KEY_SPLINES.EASE_IN_OUT);this.RP.bd(2,39,0.2,KEY_SPLINES.EASE_IN_OUT);this.fP.bd(0,53,0.2,KEY_SPLINES.EASE_IN_OUT);this.OP.Tpa();this.j("DEFAULT");this.xla()},a3a:function(){this.mJ=0;var b=sc.q.R.Uj;this.dO.j("MENU");
b=a[b];this.Ut.bd(b.x+3+2,b.y+3+21,0.2,KEY_SPLINES.EASE);this.Ut.j("MENU");this.Ut.z5=j;this.Lw.bd(75,47,0.2,KEY_SPLINES.EASE);this.ey.bd(80,65,0.2,KEY_SPLINES.EASE);this.RP.bd(2,109,0.2,KEY_SPLINES.EASE);this.fP.bd(0,110,0.2,KEY_SPLINES.EASE);this.OP.KQa(j);this.j("DEFAULT")},cka:function(a){switch(a){case sc.Cd.Gl:this.j("DEFAULT");this.a3a();break;default:this.DDa();this.j("HIDDEN")}},mHa:function(){var b=sc.q.R.Uj;this.mJ=sc.q.cP()?0.1:2;this.dO.j("DEFAULT");b=a[b];this.Ut.l(b.x+3,b.y+3);this.Ut.j("ZOOM",
j);this.Ut.j("DEFAULT");this.Ut.z5=j;this.Lw.bd(73,26,0.1,KEY_SPLINES.LINEAR);this.ey.bd(78,44,0.1,KEY_SPLINES.LINEAR);this.RP.bd(2,88,0.1,KEY_SPLINES.LINEAR);this.fP.bd(0,80,0.1,KEY_SPLINES.LINEAR);this.OP.KQa(w)},Mnb:F()});sc.O0a=ig.X.extend({f:function(){this.parent();var a=new sc.gWa;this.m(a);a=new sc.y0a;this.m(a);a.l(55,0);a=new sc.xVa;a.l(63,8);this.m(a)}});sc.M0a=ig.X.extend({mma:s,Gqa:s,f:function(){this.parent();sc.K.Na(sc.q.R,this);this.mma=new sc.FTa;this.m(this.mma);this.Gqa=new sc.NWa;
this.Gqa.l(0,0);this.m(this.Gqa)},lb:function(a,b){a==sc.q.R&&(b==sc.Wc.$Y?this.yra(j):b==sc.Wc.Sha?this.yra(w):b==sc.Wc.AZ&&this.yra(w))},yra:function(a){this.mma.bd(a?32:0,0,0.2,KEY_SPLINES.EASE_IN_OUT)}});var b=[{U_:0,interval:0.5,iy:0,bn:0},{U_:0.25,interval:1,iy:0.1,bn:0.2},{U_:0.5,interval:0.5,iy:0.2,bn:0.5},{U_:0.75,interval:0.25,iy:0,bn:1},{U_:1,interval:1,iy:0.3,bn:0.8}];sc.XUa=ig.X.extend({r:new ig.$("media/gui/overload-overlay.png"),NE:s,AGa:-1,f:function(){this.parent();this.a.zIndex=
-40;this.v(ig.g.width,ig.g.height);this.NE=new ig.mxa(j)},update:function(){var a=sc.q.R.Tt;sc.q.R.jA&&(a=1);for(var c=b.length;c--;)if(a>=b[c].U_)break;if(c!=this.AGa){this.AGa=c;a=b[c];this.NE.set(a.iy,a.interval,a.bn)}if(!this.NE.update())this.a.Vc=this.NE.FU()},va:function(a){if(sc.options.get("element-overload")){var b=sc.q.R.jA||sc.q.R.Tt<0.1?160:0;a.ia(this.r,0,0,b,0,160,160,w,w).dh("lighter");a.ia(this.r,ig.g.width-160,0,b,0,160,160,j,w).dh("lighter");a.ia(this.r,ig.g.width-160,ig.g.height-
160,b,0,160,160,j,j).dh("lighter");a.ia(this.r,0,ig.g.height-160,b,0,160,160,w,j).dh("lighter")}}});sc.J0a=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),n:0,z5:w,N:{DEFAULT:{state:{},time:0.15,p:KEY_SPLINES.LINEAR},MENU:{state:{},time:0.2,p:KEY_SPLINES.EASE},ZOOM:{state:{Ia:0.25,Ma:0.25},time:0.15,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();this.v(40,40);this.rb(20,20)},update:function(){this.n=(this.n+ig.g.Da)%2},va:function(a){var b=sc.q.R.Uj,c=sc.q.R.Tt,k=Math.ceil(c*(this.a.size.y-
7)),l=2;c>=0.9?l=0.25:c>=0.75?l=0.5:c>=0.5&&(l=1);c=this.n%l/l;c=c<0.5?c*2:(1-c)*2;a.ia(this.r,0,0,64,32+this.a.size.x*(this.z5?0:1),this.a.size.x,this.a.size.y);if(k&&c){k=k+4;a.ia(this.r,0,this.a.size.x-k,64,32+this.a.size.x*3-k,this.a.size.x,k).wd(c)}a.ia(this.r,8,8,104,32+b*24,24,24)}});var c=[{x:32,y:32},{x:32,y:56},{x:32,y:8},{x:56,y:32},{x:8,y:32}];sc.I0a=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE_IN_OUT},MENU:{state:{offsetY:21,offsetX:2},
time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,Ia:0,Ma:0},time:0.3,p:KEY_SPLINES.EASE_IN_OUT},HIDDEN_MENU:{state:{alpha:0,Ia:0,Ma:0},time:0.2,p:KEY_SPLINES.EASE_IN_OUT}},f:function(){this.parent();this.v(80,80);this.rb(10,10);this.j("HIDDEN",j)},va:function(a){a.ia(this.r,0,0,136,0,80,80);for(var b=sc.q.R.Uj,h=0;h<c.length;++h)if(h!=b){var k=c[h],l=(h?h-1:b-1)*16,m=h?96:64;ig.input.bb==ig.Gb.gm&&(m=m+16);!sc.q.R.Si(h+8)&&h&&(m=m-32);a.ia(this.r,k.x,k.y,l,m,16,16)}}});sc.Olb=ig.Dc.extend({ema:new ig.$("media/gui/status-gui.png"),
N:{DEFAULT:{state:{offsetX:-23,offsetY:-23,alpha:0.6},time:0.3,p:KEY_SPLINES.EASE_IN_OUT},MAXIMIZED:{state:{alpha:0.6},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetX:-44,offsetY:-44,alpha:0},time:0.2,p:KEY_SPLINES.EASE_IN_OUT}},f:function(){this.parent(this.ema,128,80,88,88)}});sc.Plb=ig.Dc.extend({ema:new ig.$("media/gui/status-gui.png"),N:{DEFAULT:{state:{offsetX:0,offsetY:0},time:0.3,p:KEY_SPLINES.EASE_IN_OUT},MAXIMIZED:{state:{offsetX:6,offsetY:6},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetX:-16,
offsetY:-16,alpha:0},time:0.2,p:KEY_SPLINES.EASE_IN_OUT}},f:function(){this.parent(this.ema,216,80,16,16)}})});ig.G=j;
ig.I("game.feature.gui.hud.exp-hud").J("impact.feature.gui.gui","game.feature.gui.base.numbers").H(function(){sc.sya=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_IN_OUT},HIDDEN:{state:{alpha:0,offsetX:16},time:0.2,p:KEY_SPLINES.EASE_IN_OUT},MERGE:{state:{alpha:0,offsetX:-32},time:0.3,p:KEY_SPLINES.EASE_IN_OUT}},yc:s,exp:0,Qga:w,f:function(a,b){this.parent();this.Qga=a;this.yc=new sc.Ib(0,{size:sc.uf.KB,transitionTime:0.3});this.yc.l(a?37:13,
1);this.m(this.yc);this.ifa(b||0);this.a.size.y=7},ifa:function(a){this.yc.sa(a);this.a.size.x=this.yc.a.size.x+(this.Qga?37:13)+6;this.exp=a},va:function(a){var b=this.Qga?37:13,c=this.a.size.y;a.ia(this.r,0,0,this.Qga?0:40,32,b,c);a.Ec("black",b,0,this.a.size.x-6-b,c);a.ia(this.r,this.a.size.x-6,0,53,32,6,c)}});sc.yVa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},MM:s,f:function(){this.parent();
this.a.size.x=88;this.a.size.y=7;sc.K.Na(sc.q,this);sc.K.Na(sc.q.R,this);sc.K.Na(sc.q.e,this);this.MM=new sc.Ib(1E3,{signed:j,size:sc.uf.KB});this.MM.F(ig.k.ha,ig.k.W);this.MM.l(35,1);this.MM.sa(sc.q.R.exp,j);this.m(this.MM);this.j("HIDDEN",j)},va:function(a){a.ia(this.r,0,0,0,182,88,7)},lb:function(a,b){if(a==sc.q){if(b==sc.Le.jq){var c=a.xo();this.MM.sa(sc.q.R.exp);this.j(c?"DEFAULT":"HIDDEN")}}else if(a==sc.e&&(b==sc.ca.QY||b==sc.ca.cZ))switch(a.Sm){case sc.Cd.Gl:this.j("DEFAULT");break;case sc.Cd.A7:this.j("HIDDEN")}}});
sc.xVa=ig.X.extend({zz:s,rra:s,n:0,qJ:0,uF:[],f:function(){this.parent();this.zz=new sc.sya(j);this.zz.j("HIDDEN",j);this.m(this.zz);this.rra=new sc.yVa;this.m(this.rra);sc.K.Na(sc.q,this);sc.K.Na(sc.q.R,this)},update:function(){if(this.n>0){this.n=this.n-ig.g.Da;if(this.n<=0)if(this.uF.length>0){this.sra();this.n=this.uF.length?1:5}else{this.qJ=0;this.zz.j("HIDDEN")}}},l5a:function(a){if(this.qJ){a=new sc.sya(w,a);a.j("HIDDEN",j);a.j("DEFAULT");this.uF.push(a);this.SC(a,Math.max(this.a.children.length-
2,0));this.n=2}else{this.qJ=a;this.zz.j("DEFAULT");this.zz.ifa(a);this.n=5}this.uF.length>3?this.sra():this.hQ()},sra:function(){var a=this.uF.shift();this.qJ=this.qJ+a.exp;this.zz.ifa(this.qJ);a.j("MERGE",w,j);this.hQ()},wMa:function(){for(;this.uF.length>0;)this.sra()},hQ:function(){for(var a=this.zz.a.size.x,b=0;b<this.uF.length;++b){a=a+-3;this.uF[b].bd(a,0,0.3,KEY_SPLINES.EASE_IN_OUT);a=a+this.uF[b].a.size.x}},lb:function(a,b,c){if(a==sc.q.R)if(b==sc.Wc.ZL)this.l5a(c);else{if(b==sc.Wc.AZ){this.wMa();
this.n=this.qJ=0;this.zz.ifa(0);this.rra.MM.sa(0);this.zz.j("HIDDEN")}}else if(a==sc.q&&b==sc.Le.jq&&a.xo()){this.wMa();this.qJ=0;this.zz.j("HIDDEN")}}})});ig.G=j;
ig.I("game.feature.menu.gui.quests.quest-entries").J("impact.feature.gui.base.box","impact.feature.gui.gui").H(function(){sc.QZ=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{Ma:0},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",{width:2,height:0,left:4,top:13,right:4,bottom:0,Fb:{"default":{x:488,y:0}}}),ob:s,VG:s,GRa:s,Qn:s,Va:s,yb:w,f:function(a,b,c,d){this.parent(150,13);this.rb(75,6.5);this.ob=a||s;this.VG=b||0;this.Va=new sc.ea("",{font:sc.Ka.Ve});
this.Va.l(6,-1);this.m(this.Va);this.Q$&&this.Q$();this.oQa(c,d)},oQa:function(a,b){this.GRa=a;(this.Qn=b)&&this.sW&&this.sW()},lpa:function(){return sc.Xb.rab(this.ob,this.VG,this.GRa)}});sc.yS={};sc.yS.COLLECT=sc.QZ.extend({r:new ig.$("media/gui/basic.png"),Je:s,Di:s,V2a:w,f:function(a,b,c,d){this.parent(a,b,c,d)},va:function(a){this.parent(a);a.ia(this.r,this.a.size.x-21,2,73,48,4,8)},sW:function(){var a=sc.q.R.Nr(this.Qn.item),b=this.Qn.zb;this.yb=sc.Xb.Ss(this.ob.id)||sc.Xb.Eqa(this.ob,this.VG)||
a>=b;var c=sc.Pb.getItem(this.Qn.item||0),d=this.yb?"\\i[quest-mini-ok]":"\\i[quest-mini-no]",d=this.Qn.Spa&&!this.yb?a>=1?d+ig.Oa.wc(c.name):d+"???????????????":d+ig.Oa.wc(c.name);this.Va.fa(d);this.Je.sa(this.yb?b:Math.min(a,b));this.Di.sa(b);if(this.Qn.Rpa&&!this.yb){this.Di.sa(99);this.Di.qQ=j}else this.Di.qQ=w},Q$:function(){this.Je=new sc.Ib(99,{size:sc.uf.Kc});this.Je.F(ig.k.ha,ig.k.W);this.Je.l(22,2);this.m(this.Je);this.Di=new sc.Ib(99,{size:sc.uf.Kc});this.Di.F(ig.k.ha,ig.k.W);this.Di.l(4,
2);this.m(this.Di)}});sc.yS.LANDMARK=sc.QZ.extend({r:new ig.$("media/gui/basic.png"),Je:s,Di:s,V2a:w,f:function(a,b,c,d){this.parent(a,b,c,d)},va:function(a){this.parent(a);a.ia(this.r,this.a.size.x-21,2,73,48,4,8)},sW:function(){var a=sc.map.ppa(this.Qn.Ub),b=this.Qn.zb;this.yb=sc.Xb.Ss(this.ob.id)||sc.Xb.Eqa(this.ob,this.VG)||a>=b;var c=sc.map.AF(this.Qn.Ub);this.Va.fa((this.yb?"\\i[quest-mini-ok]":"\\i[quest-mini-no]")+c);this.Je.sa(this.yb?b:Math.min(a,b));this.Di.sa(b)},Q$:function(){this.Je=
new sc.Ib(99,{size:sc.uf.Kc});this.Je.F(ig.k.ha,ig.k.W);this.Je.l(22,2);this.m(this.Je);this.Di=new sc.Ib(99,{size:sc.uf.Kc});this.Di.F(ig.k.ha,ig.k.W);this.Di.l(4,2);this.m(this.Di)}});sc.yS.KILL=sc.QZ.extend({r:new ig.$("media/gui/basic.png"),Je:s,Di:s,f:function(a,b,c,d){this.parent(a,b,c,d)},va:function(a){this.parent(a);a.ia(this.r,this.a.size.x-21,2,73,48,4,8)},sW:function(){var a=this.lpa().killed,b=this.Qn.zb,c=this.Qn.hf;this.yb=sc.Xb.Ss(this.ob.id)||sc.Xb.Eqa(this.ob,this.VG)||a>=b;this.Va.fa((this.yb?
"\\i[quest-mini-ok]":"\\i[quest-mini-no]")+sc.pb.Voa(c));this.Je.sa(this.yb?b:a);this.Di.sa(b)},Q$:function(){this.Je=new sc.Ib(99,{size:sc.uf.Kc});this.Je.F(ig.k.ha,ig.k.W);this.Je.l(22,2);this.m(this.Je);this.Di=new sc.Ib(99,{size:sc.uf.Kc});this.Di.F(ig.k.ha,ig.k.W);this.Di.l(4,2);this.m(this.Di)}});sc.yS.CONDITION=sc.QZ.extend({f:function(a,b,c,d){this.parent(a,b,c,d)},sW:function(){var a=sc.Xb.$Ka(this.ob,this.Qn.label);this.yb=a;var b="",b=this.a.size.x<240&&this.Qn.JQ?this.Qn.JQ:this.Qn.text;
this.Va.fa((a?"\\i[quest-mini-ok]":"\\i[quest-mini-no]")+b)}});sc.yS.QUEST=sc.QZ.extend({f:function(a,b,c,d){this.parent(a,b,c,d)},sW:function(){var a=sc.Xb.Ss(this.Qn.ob);this.yb=a;var b="",b=this.a.size.x<240&&this.Qn.JQ?this.Qn.JQ:this.Qn.text;this.Va.fa((a?"\\i[quest-mini-ok]":"\\i[quest-mini-no]")+b)}});sc.RZ=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},VG:s,ob:s,zL:s,cwa:s,r9:[],f:function(a,b,c,d){this.parent();this.cwa=
new sc.ea("",{font:sc.Ka.Ve});this.zL=new sc.ea("",{font:sc.Ka.Ve});this.zL.l(17,0);this.kL(a,b,c,d);this.j("HIDDEN",j)},kL:function(a,b,c,d,e){this.VG=a!=g?a:g;this.ob=b||s;this.rg();this.r9.length=0;if(a!=g){var h=this.ob.Ih[this.VG];this.m(this.cwa);this.m(this.zL);if(h.Jy.length!=0){if(e){this.zL.VPa(260);for(var k=0,l=0,a=0;a<b.Ih.length;a++)for(var m=0;m<b.Ih[a].Jy.length;m++){sc.Xb.xcb(b,a,m)&&l++;k++}this.zL.fa(b.name.toString()+" - "+Math.floor(l/k*100)+"%")}else{this.zL.VPa(d?240:150);this.zL.fa(h.Gi)}k=
this.zL.a.size.y+1;l=s;h=h.Jy;m=j;if(h.length==1&&h[0].type=="CONDITION")m=sc.Xb.$Ka(b,h[0].label);else if(h.length==1&&h[0].type=="QUEST")m=sc.Xb.Ss(h[0].ob);else for(a=0;a<h.length;a++){l=new sc.yS[h[a].type](b,this.VG,a);l.l(15,k);d&&l.v(240,13);l.oQa(a,h[a]);l.yb||(m=w);c&&l.j("HIDDEN",j);if(!e){k=k+14;this.m(l);this.r9.push(l)}}this.cwa.fa(m?"\\i[quest-ok]":"\\i[quest-no]");this.v(d?260:165,k-13+15)}}},show:function(a,b){for(var c=b||0,d=0;d<this.r9.length;d++){this.r9[d].j("DEFAULT",w,w,s,c);
a&&(c=c+0.016)}},qnb:F()})});ig.G=j;
ig.I("game.feature.gui.hud.quest-hud").J("game.feature.gui.hud.right-hud","game.feature.menu.gui.quests.quest-entries").H(function(){var a=/\\c\[\d\]/g;sc.MZa=ig.X.extend({n:0,id:s,Va:s,f:function(b,c){this.parent();this.id=b||s;this.n=5;var d="\\c[3]"+c.Gi.toString().replace(a,"")+"\\c[0] ",d=d+(ig.lang.get("sc.gui.quest-hud.taskDone2")+"!");this.Va=new sc.ea(d,{font:sc.Ka.Lb,maxWidth:150});this.m(this.Va);this.v(this.Va.a.size.x,this.Va.a.size.y)},bH:function(){if(this.n>0)this.n=this.n-ig.g.ga}});
sc.NZa=sc.GB.extend({Ej:[],f:function(){this.parent(ig.lang.get("sc.gui.quest-hud.taskUpdated"));sc.K.Na(sc.q,this);sc.K.Na(sc.Xb,this)},de:function(a,c){var d=s;if((d=this.PS(c.id))!=s)d.n=5;else{d=Math.max(0,a.Wd-1);d=new sc.MZa(c.id+d,c.Ih[d]);this.Hd.length>=3?this.Ej.push(d):this.ds(d,!sc.q.Qe());this.hidden&&!sc.q.Qe()&&this.show()}},PS:function(a){for(var c=this.Hd.length;c--;)if(this.Hd[c].Xi.id==a)return this.Hd[c].Xi;for(c=this.Ej.length;c--;)if(this.Ej[c].id==a)return this.Ej[c];return s},
QM:function(){if(this.Ej.length!=0){var a=this.Ej.splice(0,1)[0];this.ds(a,j)}},update:function(){if(!sc.q.Mq()&&!sc.q.xo()&&!this.hidden){for(var a=this.Hd.length,c=s;a--;){c=this.Hd[a].Xi;c.bH();if(c.n<=0){c=this.f5(a);if(a==0&&this.Hd.length==0)c.a.cb.y=c.a.size.y/2;else{c.a.cb.y=0;c.a.vb.p=KEY_SPLINES.EASE_OUT}this.QM()}}!this.hidden&&this.Hd.length==0&&this.hide()}},lb:function(a,c,d){if(a==sc.q)if(a.WC()){this.x$();this.hide()}else a.Qe()||a.qA()||sc.Xb.Gt||a.vJ?this.hide():!a.Qe()&&(!a.qA()&&
this.Hd.length>0&&!sc.Xb.Gt)&&this.show();else a==sc.Xb&&(c==sc.Li.C8&&sc.options.get("update-quest-style")==sc.J8.Kc&&d&&d.state&&!d.state.SQa())&&this.de(d.state,d.ob)}});sc.IVa=sc.GB.extend({Gi:s,f:function(){this.parent(ig.lang.get("sc.gui.quest-hud.title"));this.Gi=new sc.RZ;this.Gi.j("DEFAULT",j);this.Gi.l(40,3);this.ds(this.Gi,w);sc.K.Na(sc.q,this);sc.K.Na(sc.Xb,this);sc.K.Na(sc.options,this)},tX:function(a){if(a==-1||sc.Xb.TKa())this.hide();else{this.Gi.kL(sc.Xb.nIa(),sc.Xb.qba(),w,w,sc.options.get("min-quest"));
this.Hd[0].v(this.Gi.a.size.x+4,this.Gi.a.size.y+1);this.dQ();this.nDa()&&this.show(w,0.2)}},nDa:function(){return!sc.q.Qe()&&!sc.q.qA()&&!sc.q.vJ&&!sc.Xb.Gt},lb:function(a,c,d){if(a==sc.q){if((c==sc.Le.jq||c==sc.Le.Vw)&&!a.iLa()&&!a.RKa())if(a.WC()){this.tX(-1);this.hide()}else this.nDa()?sc.Xb.Ai!=-1&&!sc.Xb.TKa()&&this.show(w,0.2):this.hide()}else a==sc.Xb?c==sc.Li.TY||c==sc.Li.D7?d!=sc.Xb.Ai&&this.tX(sc.Xb.Ai):(c==sc.Li.Ija||c==sc.Li.C8||c==sc.Li.yja)&&this.tX(sc.Xb.Ai):a==sc.options&&c==sc.iq.Tw&&
this.tX(sc.Xb.Ai)}})});ig.G=j;
ig.I("game.feature.gui.hud.landmark-hud").J("game.feature.gui.hud.right-hud","game.feature.menu.gui.quests.quest-entries","game.feature.model.options-model").H(function(){sc.cXa=ig.X.extend({n:0,id:s,Va:s,f:function(a,b){this.parent();this.id=a||s;this.n=5;var c=ig.lang.get("sc.gui.landmark-hud.landmark")+" \\c[3]"+sc.map.bpa(a,b)+"\\c[0] "+ig.lang.get("sc.gui.landmark-hud.unlocked")+"!";this.Va=new sc.ea(c,{font:sc.Ka.Lb,maxWidth:180});this.m(this.Va);this.v(this.Va.a.size.x,this.Va.a.size.y)},bH:function(){if(this.n>
0)this.n=this.n-ig.g.ga}});sc.eXa=sc.GB.extend({Ej:[],f:function(){this.parent(ig.lang.get("sc.gui.landmark-hud.title"));sc.K.Na(sc.q,this);sc.K.Na(sc.map,this)},de:function(a,b){var c=s;if((c=this.PS(a))!=s)c.n=5;else{c=new sc.cXa(a,b);this.Hd.length>=3?this.Ej.push(c):this.ds(c,!sc.q.Qe());this.hidden&&!sc.q.Qe()&&this.show()}},PS:function(a){for(var b=this.Hd.length;b--;)if(this.Hd[b].Xi.id==a)return this.Hd[b].Xi;for(b=this.Ej.length;b--;)if(this.Ej[b].id==a)return this.Ej[b];return s},QM:function(){if(this.Ej.length!=
0){var a=this.Ej.splice(0,1)[0];this.ds(a,j)}},update:function(){if(!sc.q.Mq()&&!sc.q.xo()&&!this.hidden){for(var a=this.Hd.length,b=s;a--;){b=this.Hd[a].Xi;b.bH();if(b.n<=0){b=this.f5(a);if(a==0&&this.Hd.length==0)b.a.cb.y=b.a.size.y/2;else{b.a.cb.y=0;b.a.vb.p=KEY_SPLINES.EASE_OUT}this.QM()}}!this.hidden&&this.Hd.length==0&&this.hide()}},lb:function(a,b,c){if(a==sc.q)if(a.WC()){this.x$();this.hide()}else a.Qe()||a.qA()||sc.Xb.Gt?this.hide():!a.Qe()&&(!a.qA()&&this.Hd.length>0&&!sc.Xb.Gt)&&this.show();
else a==sc.map&&b==sc.gZ.Zha&&c&&c.yo&&c.Ub&&sc.options.get("update-landmark-style")==sc.TZ.Kc&&this.de(c.yo,c.Ub)}})});ig.G=j;
ig.I("game.feature.menu.lore-model").J("impact.base.game","game.feature.model.base-model","impact.feature.storage.storage").H(function(){sc.dz={STORY:0,MEMORIES:1,CHARACTERS:2,CROSS_LORE:3,EARTH_LORE:4,ETC:5};sc.pE={ORDER:0,NAME:1,UNLOCKED:2};sc.bia={LEFT:0,CENTER:1,RIGHT:2};var a={ud:s,Zz:s,mB:w};sc.wXa=ig.sf.extend({um:[],Tk:s,Qo:{},f:function(){this.parent("LoreModel");ig.Cc.dg(this);window.Yc&&ig.Dj.dg("lore","LoreEnumEditor","Lore");ig.pa.Gp("lore",this,"VarLoreEditor");this.Tk=ig.Dj.get("lore")},
nj:function(){this.Qo={}},On:function(a,c){if(c[0]=="lore")switch(c[1]){case "unlock":var d=this.Q2a(c[2],c[3]);c[3]?this.rSa(c[2],c[3],j):this.L6(c[2],j);return d;case "title":return this.cpa(c[2]);case "unlocked":return c[3]?this.jca(c[2],c[3]):this.wV(c[2])}f(Error("Unsupported var access path: "+a))},Q2a:function(a,c){return c?!this.jca(a,c)?"\\i[loreNew]":"\\i[lore]":!this.wV(a)?"\\i[loreNew]":"\\i[lore]"},L6:function(b,c,d,e){e=e==g?j:e;if(this.Tk[b]){if(!this.Qo[b]||d){this.Qo[b]={};a.Zz=s;
a.ud=b;a.mB=w;var h=this.Tk[b].content,k;for(k in h){this.Qo[b][k]=j;!d&&e&&sc.ta.cc("exploration","loreEntry",1)}!d&&e&&sc.e.UEa(sc.Cd.oE,b);!d&&e&&sc.ta.cc("exploration","lore",1);!d&&e&&sc.e.zI({type:"LORE",lore:b});c&&sc.K.wa(this,sc.CH.H8,a)}}else f(Error("Now such Lore found: "+b))},rSa:function(b,c,d){if(this.Tk[b]){var e=this.Tk[b].content;if(e[c]){if(!this.Qo[b]||!this.Qo[b][c]){a.ud=b;a.Zz=c;a.mB=w;if(this.Qo[b]){sc.e.zI({type:"LORE",lore:b,update:j});a.mB=j}else{this.Qo[b]={};sc.ta.cc("exploration",
"lore",1);sc.e.zI({type:"LORE",lore:b});a.mB=w}for(var h in e){if(!this.Qo[b][h]){this.Qo[b][h]=j;sc.ta.cc("exploration","loreEntry",1)}if(h==c)break}sc.e.UEa(sc.Cd.oE,b);d&&sc.K.wa(this,sc.CH.H8,a)}}else f(Error('No such entry in lore "'+b+'" found: '+c))}else f(Error("Now such lore found: "+b))},Hdb:function(){sc.K.wa(this,sc.CH.gxa)},h2:function(a){return this.Tk[a]},cpa:function(a){return ig.Oa.wc(this.Tk[a].title)},Lpb:function(a,c){return this.Tk[a]?this.Tk[a].content[c]:s},wV:function(a){if(!this.Qo[a])return w;
var c=this.Tk[a].content,d;for(d in c)if(!this.Qo[a][d])return w;return j},ica:function(a){return this.Qo[a]?j:w},jca:function(a,c){return this.Qo[a]&&this.Qo[a][c]},fIa:function(a,c){var d=[],e=s,h;for(h in this.Tk){e=this.Tk[h];sc.dz[e.category]==a&&d.push(h)}c!=g&&this.pva(d,c);return d},pva:function(a,c){switch(c){case sc.pE.ORDER:a.sort(function(a,b){return(this.Tk[a].order||0)-(this.Tk[b].order||0)}.bind(this));break;case sc.pE.NAME:a.sort(function(a,b){return ig.Oa.wc(this.Tk[a].title).localeCompare(ig.Oa.wc(this.Tk[b].title))}.bind(this));
break;case sc.pE.UNLOCKED:a.sort(function(a,b){var c=this.ica(a),k=this.ica(b);return c==k?(this.Tk[a].order||0)-(this.Tk[b].order||0):c===k?0:c?-1:1}.bind(this))}},M9a:function(a){if(!this.Qo[a])return 0;var c=this.Tk[a].content,d=0,e=0,h;for(h in c){this.Qo[a][h]&&e++;d++}return!d&&!e?100:d?e/d:0},eqb:function(a,c){var d=0,e=0,h;for(h in this.Tk)if(c){if(c==this.Tk[h].category){this.wV(h)&&d++;e++}}else{this.wV(h)&&d++;e++}return a?d/e:d},EF:function(a,c){var d=0,e=0,h;for(h in this.Tk)if(!(c&&
c!=this.Tk[h].category)){var k=this.Tk[h].content,l=j,m;for(m in k){l=w;this.jca(h,m)&&d++;e++}l&&e++}return a?d/e:d},Rq:function(a){a.lories=ig.copy(this.Qo)},Qq:function(a){this.Qo=a.lories||{}}});sc.CH={};sc.CH.H8=0;sc.CH.gxa=1;ig.wf(function(){return sc.ud=new sc.wXa})});ig.G=j;
ig.I("game.feature.gui.hud.lore-hud").J("game.feature.gui.hud.right-hud","game.feature.menu.lore-model").H(function(){sc.xXa=ig.X.extend({n:0,Va:s,f:function(a){this.parent();this.n=5;var b="\\c[3]"+sc.ud.cpa(a.ud)+"\\c[0] ",b=a.mB?b+ig.lang.get("sc.gui.lore-hud.updated"):b+ig.lang.get("sc.gui.lore-hud.unlocked");this.Va=new sc.ea(b,{font:sc.Ka.Lb});this.m(this.Va);this.v(this.Va.a.size.x,this.Va.a.size.y)},bH:function(){if(this.n>0)this.n=this.n-ig.g.ga}});sc.yXa=sc.GB.extend({Ej:[],f:function(){this.parent(ig.lang.get("sc.gui.lore-hud.title"));
sc.K.Na(sc.q,this);sc.K.Na(sc.ud,this)},de:function(a){a=new sc.xXa(a);this.Hd.length>=3?this.Ej.push(a):this.ds(a,!sc.q.Qe());this.hidden&&!sc.q.Qe()&&this.show()},PS:function(a){for(var b=this.Hd.length;b--;)if(this.Hd[b].Xi.id==a)return this.Hd[b].Xi;for(b=this.Ej.length;b--;)if(this.Ej[b].id==a)return this.Ej[b];return s},QM:function(){if(this.Ej.length!=0){var a=this.Ej.splice(0,1)[0];this.ds(a,j)}},update:function(){if(!sc.q.Mq()&&!sc.q.xo()&&!this.hidden){for(var a=this.Hd.length,b=s;a--;){b=
this.Hd[a].Xi;b.bH();if(b.n<=0){b=this.f5(a);if(a==0&&this.Hd.length==0)b.a.cb.y=b.a.size.y/2;else{b.a.cb.y=0;b.a.vb.p=KEY_SPLINES.EASE_OUT}this.QM()}}!this.hidden&&this.Hd.length==0&&this.hide()}},lb:function(a,b,c){if(a==sc.q)if(a.WC()){this.x$();this.hide()}else a.Qe()||a.qA()||sc.Xb.Gt?this.hide():!a.Qe()&&(!a.qA()&&this.Hd.length>0&&!sc.Xb.Gt)&&this.show();else a==sc.ud&&(b==sc.CH.H8&&sc.options.get("update-lore-style")==sc.I8.Kc&&c)&&this.de(c)}})});ig.G=j;
ig.I("game.feature.gui.hud.member-hud").J("impact.feature.gui.gui","impact.feature.gui.base.box").H(function(){var a={};sc.gZa=ig.X.extend({q:s,Yca:[],N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,offsetX:-32},time:0.2,p:KEY_SPLINES.EASE_IN}},f:function(){this.parent();sc.K.Na(sc.Ca,this);sc.K.Na(sc.q,this);this.ISa()},lb:function(a,c){a==sc.Ca?c==sc.LH.oZ?this.ISa():c==sc.LH.vha&&this.Jga():a==sc.q&&this.Jga()},Jga:function(){this.j(!sc.q.cP()&&!sc.Ca.Vz?"DEFAULT":
"HIDDEN")},ISa:function(){for(var a=this.Yca.length;a--;)this.Yca[a].remove(!this.a.Il);this.Yca.length=0;for(var c=sc.Ca.Xe.length,d=0,a=0;a<c;++a){var e=new sc.VXa(sc.Ca.ZIa(a));e.l(0,d);this.m(e);this.Yca.push(e);d=d+26}}});sc.VXa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),$U:new ig.tg("media/gui/severed-heads.png",24,24),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,offsetX:-32},time:0.2,p:KEY_SPLINES.EASE_IN}},q:s,$pa:s,f:function(a){this.parent();this.v(25,
25);this.rb(12,12);this.q=a;this.$pa=new sc.UXa(this.q);this.$pa.l(16,2);this.m(this.$pa);this.j("HIDDEN",j);this.j("DEFAULT")},update:F(),va:function(b){b.ia(this.r,0,0,231,175,this.a.size.x,this.a.size.y);this.$U.Lv(a,this.q.zO());b.ia(this.$U.xc,0,-2,a.x,a.y,24,24,j)},lb:F(),remove:function(a){this.j("HIDDEN",a,j)}});sc.UXa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),q:s,Qr:s,Ey:s,f:function(a){this.parent();this.v(39,10);this.q=a;sc.K.Na(this.q,this);this.Qr=new sc.Nya(a.ba,26,2);this.Qr.l(7,
5);this.m(this.Qr);this.Ey=new sc.bBa(a.ba);this.Ey.l(6,1);this.m(this.Ey)},th:function(){sc.K.lc(this.q,this)},va:function(a){a.ia(this.r,0,0,64,160,this.a.size.x,this.a.size.y)},lb:function(a,c){c==sc.pZ.ZL&&this.Qr.EPa(this.q.exp/sc.$L)}})});ig.G=j;
ig.I("game.feature.gui.hud.sp-mini-hud").J("impact.feature.gui.gui","game.feature.gui.base.numbers").H(function(){sc.bBa=ig.X.extend({N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ma:0},time:0.1,p:KEY_SPLINES.LINEAR}},r:new ig.$("media/gui/status-gui.png"),ba:s,My:0,f:function(a){this.parent();this.v(22,3);this.ba=a;sc.K.Na(a,this)},th:function(){sc.K.lc(this.ba,this)},update:function(){this.My=this.ba.Wj},va:function(a){for(var b=this.ba.Ao,c=Math.floor(this.My),d=b>8,e=0,h,
k=0;k<b;k=k+4)if(d&&k+4<c){a.ia(this.r,e,0,104,164,4,3);e=e+5}else if(d&&k>=c){a.ia(this.r,e,0,104,160,4,3);e=e+5}else{var l=(c-k).Vb(0,4);if(l){h=l*2;a.ia(this.r,e,0,108,164,h,3);e=e+h}if(l<4){h=(4-l)*2;a.ia(this.r,e,0,108,160,h,3);e=e+h}d||(e=e+1)}},lb:function(a,b){if(b==sc.oi.iia&&sc.q.R.ba.Ao==0)this.My=0}})});ig.G=j;
ig.I("game.feature.gui.hud.top-msg-hud").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.model.options-model").H(function(){var a={qa:0,Zf:"landmark"},b={qa:1,Ab:new ig.da("media/sound/hud/quest-task-solved.ogg",0.6)},c={qa:2};sc.p1a=ig.X.extend({G6:s,Ez:s,rp:s,visible:w,n:0,Fa:0,Ea:s,Bp:[],Zf:{},f:function(){this.parent();this.a.zIndex=51;this.a.Ee=j;this.F(ig.k.za,ig.k.W);this.G6=new sc.t1a;this.G6.F(ig.k.za,ig.k.W);this.m(this.G6);this.Ez=new sc.s1a;this.Ez.F(ig.k.za,
ig.k.W);this.Ez.l(0,14);this.m(this.Ez);this.rp=new sc.q1a;this.rp.F(ig.k.za,ig.k.W);this.rp.l(0,0);this.m(this.rp);this.Zf.landmark=ig.Zf.nP("landmark");this.hFa=this.N5a.bind(this);sc.K.Na(sc.q,this);sc.K.Na(sc.map,this);sc.K.Na(sc.Xb,this);sc.K.Na(sc.ud,this);this.v(222,64)},uh:function(a,b,c,k){this.Ez.uh(b,c,k);this.rp.xy(a.qa);a.Ab&&a.Ab.play();a.Zf&&ig.Zf.N2(this.Zf[a.Zf],1,"FAST")},AX:function(a,b,c,k,l){this.Bp.push({qa:a,Ou:b,okb:c,nkb:k,id:l||s});this.visible?this.Fa=3:this.SW()},SW:function(){var a=
this.Bp.pop();this.uh(a.qa,a.Ou,a.okb,a.nkb);this.visible=j;this.G6.j("DEFAULT");this.rp.j("DEFAULT");this.Ez.j("DEFAULT",w,w,this.hFa);this.n=0;this.Fa=this.Bp.length>0?3:4;this.Ea=a},update:function(){if(!ig.t.paused&&this.Fa>0){this.n=this.n+ig.g.Da;this.n>=this.Fa&&this.hide()}},clear:function(){this.Bp.length=0;this.Ea=s;this.hide()},hide:function(){this.nra=0;this.rp.j("HIDDEN");if(this.Bp.length>0)this.Ez.hide(this.hFa);else{this.Ea=s;this.visible=w;this.Ez.hide();this.G6.j("HIDDEN")}},N5a:function(){this.Ez.a.fj==
"DEFAULT"?this.Ez.ujb():this.Ez.a.fj=="HIDDEN"&&this.Bp.length>0&&this.SW()},z6a:function(a){if(this.Ea&&this.Ea.id==a)return j;for(var b=this.Bp.length;b--;)if(this.Bp.id==a)return j;return w},lb:function(d,e,h){if(d==sc.q)e==sc.Le.jq?d.WC()&&this.clear():e==sc.Le.Lxa&&this.clear();else if(d==sc.map)e==sc.gZ.Zha&&h&&h.yo&&h.Ub&&sc.options.get("update-landmark-style")==sc.TZ.hh&&this.AX(a,ig.lang.get("sc.gui.landmark-hud.title-new"),sc.map.bpa(h.yo,h.Ub),sc.Ka.font);else if(d==sc.Xb){if(e==sc.Li.C8){console.log(h);
if(h&&h.state&&!h.state.SQa()&&sc.options.get("update-quest-style")==sc.J8.hh&&!this.z6a(h.ob.id)){d=Math.max(0,h.state.Wd-1);d=h.ob.Ih[d];this.AX(b,ig.lang.get("sc.gui.quest-hud.taskDoneCenter"),d.Gi.toString(),sc.Ka.Ve,h.ob.id)}}}else if(d==sc.ud)if(e==sc.CH.H8){if(h&&sc.options.get("update-lore-style")==sc.I8.hh){d="\\c[3]"+sc.ud.cpa(h.ud)+"\\c[0] ";d=d+(h.mB?ig.lang.get("sc.gui.lore-hud.updated"):ig.lang.get("sc.gui.lore-hud.unlocked"));this.AX(c,ig.lang.get("sc.gui.lore-hud.top-title"),d,sc.Ka.font)}}else e==
sc.CH.gxa&&this.AX(c,ig.lang.get("sc.gui.lore-hud.top-first-title"),ig.lang.get("sc.gui.lore-hud.top-first"),sc.Ka.font)}});sc.q1a=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:0,Ma:0},time:0.2,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/message.png"),qa:0,f:function(){this.parent();this.v(24,24);this.rb(12,12);this.j("HIDDEN",j)},xy:L("qa"),va:function(a){a.ia(this.r,0,0,96+this.qa*24,128,24,24,w,w)}});sc.t1a=ig.Dc.extend({N:{DEFAULT:{state:{alpha:0},
time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:0,Ma:0},time:0.2,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/message.png"),f:function(){this.parent(this.r,48,148,32,12);this.rb(this.a.size.x/2,0);this.j("HIDDEN",j)}});sc.s1a=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:0,Ma:0},time:0.2,p:KEY_SPLINES.EASE_IN}},hY:s,Lu:s,r:new ig.$("media/gui/message.png"),qda:{left:new ig.$b("media/gui/message.png",{width:4,height:0,left:12,top:4,right:0,
bottom:0,Fb:{"default":{x:0,y:144}}}),Pcb:new ig.$b("media/gui/message.png",{width:8,height:0,left:8,top:11,right:0,bottom:0,Fb:{"default":{x:16,y:136}}}),whb:new ig.$b("media/gui/message.png",{width:8,height:0,left:0,top:11,right:8,bottom:0,Fb:{"default":{x:64,y:136}}}),right:new ig.$b("media/gui/message.png",{width:4,height:0,left:0,top:4,right:12,bottom:0,Fb:{"default":{x:80,y:144}}})},f:function(){this.parent();this.hY=new sc.ea("",{font:sc.Ka.Lb});this.hY.F(ig.k.za,ig.k.W);this.hY.l(0,8);this.m(this.hY);
this.Lu=new sc.r1a;this.Lu.F(ig.k.za,ig.k.W);this.Lu.l(0,17);this.m(this.Lu);this.v(222,22);this.rb(111,9);this.j("HIDDEN",j)},uh:function(a,b,c){this.hY.fa(a);this.Lu.uh(b,c)},ujb:function(){this.Lu.j("DEFAULT")},hide:function(a){this.j("HIDDEN",w,w,a);this.Lu.j("HIDDEN")},va:function(a){var b=this.a.size.x,c=Math.max(64,this.hY.a.size.x+20),c=Math.ceil(c/2)*2,b=(b-c)/2,c=(c-32)/2,k=0;this.qda.left.Xa(a,b,8,"default",k,14);k=k+b;this.qda.Pcb.Xa(a,c,11,"default",k,6);k=k+c;a.ia(this.r,k,0,32,130,
32,17,w,w);k=k+32;this.qda.whb.Xa(a,c,11,"default",k,6);this.qda.right.Xa(a,b,8,"default",k+c,14)}});sc.r1a=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ma:0},time:0.1,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/message.png",{width:24,height:4,left:8,top:5,right:8,bottom:3,Fb:{"default":{x:8,y:148}}}),f:function(){this.parent();this.a.Vc=0.7;this.Lu=new sc.ea("",{maxWidth:206,textAlign:ig.Gg.vj.cq,bestRatio:8});this.Lu.F(ig.k.za,ig.k.gb);this.Lu.l(0,
0);this.m(this.Lu);this.rb(109,0);this.j("HIDDEN",j)},uh:function(a,b){this.Lu.BQ(b);this.Lu.fa(a);this.v(218,this.Lu.a.size.y);this.rb(109,0)}})});ig.G=j;
ig.I("game.feature.gui.screen.loading-screen").J("impact.feature.gui.gui","impact.base.image").H(function(){sc.rXa=ig.X.extend({r:new ig.$("media/gui/loading.png"),n:0,N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.LINEAR}},df:s,f:function(){this.parent();this.a.zIndex=2E3;this.a.Ee=j;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.df=new ig.rd(sc.Ka.font,"",{});sc.K.Na(sc.q,this);this.j("HIDDEN",j)},update:function(){ig.t.MJa&&this.j("HIDDEN")},
va:function(a){this.n=this.n+ig.g.Da;a.PEa(this.r,ig.g.width-56,ig.g.height-56,Math.floor(this.n/0.05)%16,48);if(window.aj)if(ig.t.dJ instanceof ig.t.kMa||ig.t.dJ instanceof ig.eZ){this.df.fa("LOADING: "+ig.t.dJ.vca);a.aFa(this.df,5,5)}else if(ig.t.dJ!=""){this.df.fa(ig.t.dJ);a.aFa(this.df,5,5)}},lb:function(a,b){b==sc.Le.jq&&this.j(a.RKa()?"DEFAULT":"HIDDEN")}})});ig.G=j;
ig.I("game.feature.gui.screen.intro-screen").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.button","impact.base.image").H(function(){ig.Ji.IntroScreen=ig.rja.extend({r:{rfgLogo:new ig.$("media/gui/rfg-fish.png"),rfgText:new ig.$("media/gui/rfg-text.png"),techBG:new ig.$("media/gui/tech-intro-bg.png"),html5Logo:new ig.$("media/gui/html5-logo.png"),impactLogo:new ig.$("media/gui/impact-logo.png")},T:{baseBG:{color:"black",N:{DEFAULT:{state:{},time:0,p:KEY_SPLINES.LINEAR},
HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR}}},rfgLogo:{r:"rfgLogo",i:{x:0,y:-32},align:{x:ig.k.za,y:ig.k.gb},N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,offsetY:-16},time:0.3,p:KEY_SPLINES.EASE_IN}}},rfgText:{r:"rfgText",i:{x:0,y:32},align:{x:ig.k.za,y:ig.k.gb},N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ma:0},time:0.3,p:KEY_SPLINES.LINEAR}}},whiteBG:{color:"white",N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},
time:0.3,p:KEY_SPLINES.LINEAR}}},techBG:{r:"techBG",i:{x:0,y:0},align:{x:ig.k.fb,y:ig.k.W},N:{DEFAULT:{state:{},time:0.6,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetY:64,Ma:2},time:0.3,p:KEY_SPLINES.LINEAR}}},html5Logo:{r:"html5Logo",i:{x:0,y:14},align:{x:ig.k.za,y:ig.k.W},N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,offsetY:-16},time:0.3,p:KEY_SPLINES.LINEAR}}},impactLogo:{r:"impactLogo",i:{x:0,y:25},align:{x:ig.k.za,y:ig.k.xb},N:{DEFAULT:{state:{},time:0.3,
p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,offsetY:-16},time:0.1,p:KEY_SPLINES.LINEAR}}},blackBG:{color:"black",N:{DEFAULT:{state:{},time:0.5,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.5,p:KEY_SPLINES.LINEAR}}}},Hi:[{time:0,T:"baseBG",state:"DEFAULT"},{time:0,T:"rfgLogo",state:"DEFAULT",Ab:new ig.da("media/sound/menu/radicalfish-bubbles.ogg",1)},{time:0.3,T:"rfgText",state:"DEFAULT"},{time:2,T:"whiteBG",state:"DEFAULT"},{time:2.5,T:"html5Logo",state:"DEFAULT"},{time:2.7,T:"techBG",state:"DEFAULT"},
{time:2.9,T:"impactLogo",state:"DEFAULT"},{time:4.5,T:"blackBG",state:"DEFAULT"},{time:5,end:j}],N:{DEFAULT:{state:{},time:0,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR}},pe:s,f:function(a){this.parent(a);this.a.gL(j);this.a.zIndex=1E3;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.j("HIDDEN",j);this.pe=new sc.At(this)},ql:function(){if(this.n<2)this.n=2;else if(this.n<4.5)this.n=4.5},va:function(a){a.Ec("black",ig.g.px,ig.g.ox)},start:function(){this.parent();
this.j("HIDDEN",j);this.j("DEFAULT");ig.ua.de(this.pe)},end:function(){this.parent();this.j("HIDDEN");ig.ua.ie(this.pe)}})});ig.G=j;
ig.I("game.feature.gui.screen.title-logo").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.button","impact.base.image").H(function(){ig.Ji.TitleLogo=ig.rja.extend({r:{logo:new ig.$("media/gui/title-logo.png")},T:{logoBG:{r:"logo",src:{x:0,y:128,uc:192,Gc:64},i:{x:0,y:0},align:{x:ig.k.fb,y:ig.k.W},N:{DEFAULT:{state:{},time:0.5,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:1.3,Ma:1.3},time:0.3,p:KEY_SPLINES.EASE_IN}}},logoC1:{r:"logo",src:{x:0,y:0,uc:48,Gc:64},
i:{x:0,y:0},align:{x:ig.k.fb,y:ig.k.W},N:{HIDDEN:{state:{alpha:0,offsetX:64},time:0.3,p:KEY_SPLINES.EASE_IN},STATE1:{state:{offsetX:64},time:0.2,p:KEY_SPLINES.EASE_IN},STATE2:{state:{},time:0.5,p:KEY_SPLINES.EASE_IN_OUT}}},logoC2:{r:"logo",src:{x:0,y:64,uc:48,Gc:64},i:{x:136,y:0},align:{x:ig.k.fb,y:ig.k.W},N:{HIDDEN:{state:{alpha:0,offsetX:-72},time:0.3,p:KEY_SPLINES.EASE_IN},STATE1:{state:{offsetX:-72},time:0.2,p:KEY_SPLINES.EASE_IN},STATE2:{state:{},time:0.5,p:KEY_SPLINES.EASE_IN_OUT}}},logoRoss:{r:"logo",
src:{x:48,y:0,uc:112,Gc:64},i:{x:31,y:0},align:{x:ig.k.fb,y:ig.k.W},N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ma:0},time:0.3,p:KEY_SPLINES.EASE_IN}}},logoOde:{r:"logo",src:{x:48,y:64,uc:96,Gc:64},i:{x:173,y:0},align:{x:ig.k.fb,y:ig.k.W},N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ma:0},time:0.3,p:KEY_SPLINES.EASE_IN}}},logoTechDemo:{r:"logo",src:{x:0,y:192,uc:96,Gc:32},i:{x:263,y:16},align:{x:ig.k.fb,y:ig.k.W},N:{DEFAULT:{state:{},
time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ma:0},time:0.3,p:KEY_SPLINES.EASE_IN}}},logoTechDemo2:{r:"logo",src:{x:0,y:224,uc:108,Gc:58},i:{x:420,y:30},align:{x:ig.k.fb,y:ig.k.W},N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ma:0},time:0.3,p:KEY_SPLINES.EASE_IN}}}},Hi:[{time:0,T:"logoC1",state:"STATE1"},{time:0,T:"logoC2",state:"STATE1"},{time:0.3,T:"logoC1",state:"STATE2"},{time:0.3,T:"logoC2",state:"STATE2"},{time:0.8,T:"logoRoss",state:"DEFAULT"},{time:0.8,
T:"logoOde",state:"DEFAULT"},{time:0.8,T:"logoBG",state:"DEFAULT"},{time:0.8,T:"logoTechDemo2",state:"DEFAULT"},{time:1.2,T:"logoTechDemo",state:"DEFAULT"},{time:1.6,end:j}],f:function(a){this.parent(a);this.v(465,64);this.a.zIndex=1E3}})});ig.G=j;
ig.I("game.feature.gui.screen.title-preset").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc").H(function(){sc.Hja=sc.jE.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0.5,offsetX:-204},time:0.2,p:KEY_SPLINES.LINEAR}},Q:s,qc:s,ti:s,dc:s,Ke:[],GE:s,RM:s,KM:w,v_:-1,HS:w,f:function(a,b){this.parent(ig.lang.get("sc.gui.title-screen.preset-title"),sc.yj.Eja);this.v(204,257);this.a.zIndex=2001;this.a.Ee=j;this.GE=a;this.RM=
b;this.dc=sc.qd.submit;this.Q=new ig.nr;this.ti=new sc.ec("\\i[back]"+ig.lang.get("sc.gui.menu.back"),204,j,sc.Ic.Kc);this.ti.F(ig.k.fb,ig.k.xb);this.ti.l(0,1);this.ti.dc=sc.qd.back;this.ti.Qb=function(){this.xi()}.bind(this);this.m(this.ti);this.qc=new sc.bZ(1,j,this.Q);this.qc.list.U5=w;this.qc.v(204,231);this.qc.F(ig.k.fb,ig.k.W);this.qc.list.ka.tk(function(a){if(a.Bf>=0){this.dc.play();this.KM=j;this.v_=a.Bf}}.bind(this));this.qc.l(0,2);this.m(this.qc);this.Q.Cg(this.qc.list.ka);this.Q.md(this.ti,
function(){return sc.V.Bo()}.bind(this));this.j("HIDDEN",j)},update:function(){if(this.a.Il&&(!ig.ua.Ph()&&!ig.Fs)&&sc.V.Bo()){sc.qd.back.play();this.xi()}if(this.KM){this.KM=w;this.GE&&this.GE(this.v_)}},l:function(a,b){this.parent(a,b);this.jL("HIDDEN","offsetX",-(204+a));this.j("DEFAULT",j);this.j("HIDDEN",j)},vf:function(){ig.Fs=w;ig.ua.de(this.Q);this.ana();this.j("DEFAULT")},xi:function(){this.RM&&this.RM();ig.Fs=j;ig.ua.ie(this.Q);this.j("HIDDEN")},ana:function(){var a=0,b=0,c=ig.input.dd,
a=this.qc.list.ka.Ea.y,b=-this.qc.list.vc.a.scroll.y;this.qc.list.ka.clear();this.qc.list.clear(w);this.Ke.length=0;for(var d=sc.hPa.Ke,e=s,e=s,h=0;h<d.length;h++)if(e=d[h]){e=new sc.Hja.qja(h,e);e.v(201,44);this.qc.Rd(e);this.Ke[h]=e}a=Math.max(0,Math.min(a,this.qc.list.qp().length));this.qc.list.el=a;c?this.qc.list.ka.Mj(0,a):this.qc.list.ka.yf(0,a,w,j);this.qc.list.zG(b,j)}});sc.Hja.qja=ig.Vn.extend({N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ma:0},time:0.1,p:KEY_SPLINES.LINEAR}},
eb:new ig.$b("media/gui/buttons.png",{width:13,height:6,left:9,top:9,right:9,bottom:9,Fb:{"default":{x:0,y:65},focus:{x:32,y:65},"delete":{x:64,y:65}}}),aa:s,location:s,Nca:s,position:s,Bf:-1,f:function(a,b){this.parent();this.Bf=a;var c=b.u5.getData();if(c){var d=new sc.Ib(99,{leadingZeros:2,size:sc.uf.KB});d.sa(a);d.l(8,8);this.m(d);c=c.player;this.aa=new sc.Ib(99,{size:sc.uf.Bt});this.aa.sa(c.level);this.aa.F(ig.k.ha,ig.k.W);this.aa.l(8,8);this.m(this.aa);c=new sc.ea("LV: ",{speed:ig.rd.Nd.We});
c.F(ig.k.ha,ig.k.W);c.l(26,4);this.m(c);this.location=new sc.ea(b.sub.toString(),{speed:ig.rd.Nd.We,font:sc.Ka.Lb});this.location.F(ig.k.fb,ig.k.W);this.location.l(8,29);this.m(this.location);this.Nca=new sc.ea(b.title.toString(),{speed:ig.rd.Nd.We,font:sc.Ka.Ve});this.Nca.F(ig.k.fb,ig.k.W);this.Nca.l(8,16);this.m(this.Nca)}},Pl:function(){this.parent()},va:function(a){this.eb.Xa(a,this.a.size.x,this.a.size.y,this.focus?"focus":"default")}})});ig.G=j;
ig.I("game.feature.gui.widget.modal-dialog").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.interact.gui.focus-gui","game.feature.interact.button-group").H(function(){sc.qs={};sc.qs.NONE=0;sc.qs.INFO=1;sc.qs.WARNING=2;sc.qs.ERROR=3;sc.qs.QUESTION=4;sc.ZXa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},ge:s,Va:s,Gw:w,qa:0,pe:s,Ob:s,
f:function(a,b,c,d){this.parent();this.a.zIndex=9999999;this.a.Vc=0.8;this.a.cr=j;this.a.Ee=j;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.Ob=d;this.qa=b||sc.qs.NONE;this.Va=new sc.ea(a,{maxWidth:300+(!c?15:0)});a=new ig.X;a.m(this.Va);if(c){b=Math.max(16,this.Va.a.size.y);if(this.qa){d=new ig.Dc(this.r,416+16*(this.qa-1),464,15,15);a.m(d);c=Math.max(16,this.Va.a.size.x+15+4);d.l(0,1);this.Va.l(19,0)}else c=Math.max(16,this.Va.a.size.x)}else{c=Math.max(16,this.Va.a.size.x);if(this.qa){d=
new ig.Dc(this.r,416+16*(this.qa-1),464,15,15);a.m(d);b=Math.max(16,this.Va.a.size.y+15+4);d.l(c/2-7.5,2);this.Va.l(0,19)}else b=Math.max(16,this.Va.a.size.y)}a.v(c,b);this.ge=new sc.uB(a);this.ge.F(ig.k.za,ig.k.gb);this.m(this.ge);this.j("HIDDEN",j);this.j("DEFAULT");this.Va.df.AA=this.D_.bind(this);this.Gw=this.Va.df.ol();this.pe=new sc.At(this);ig.g.tl||ig.ua.de(this.pe)},update:function(){!this.a.qj&&(this.Gw&&ig.g.tl)&&this.rk();this.parent()},va:function(a){a.Ec("#000",0,0,this.a.size.x,this.a.size.y)},
D_:function(){this.Gw=j},rk:function(){this.ge.j("HIDDEN");this.j("HIDDEN",w,j);this.Ob&&this.Ob()},ql:function(){if(this.Gw){ig.ua.ie(this.pe);this.rk()}else this.Va.finish()}});sc.sza=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.EASE_IN}},ge:s,Va:s,content:s,oa:[],qa:0,Q:s,Ba:s,Ob:s,back:s,f:function(a,b,c,d){this.parent();this.a.zIndex=9999999;this.a.Vc=0.8;this.a.cr=j;this.a.Ee=j;this.a.size.x=
ig.g.width;this.a.size.y=ig.g.height;this.Ob=d;this.Q=new ig.nr;this.Ba=new sc.Wf;this.Q.Cg(this.Ba);this.Ba.tk(function(a){this.hide();this.Ob&&a.data!=g&&this.Ob(a)}.bind(this));this.back=new sc.ec("",sc.ps);this.back.data=-1;this.back.dc=sc.qd.back;this.back.Qb=function(){this.hide();this.Ob&&this.Ob(this.back)}.bind(this);this.Q.md(this.back,this.dsa.bind(this));this.qa=b||sc.qs.NONE;this.Va=new sc.ea(a,{maxWidth:315});this.content=new ig.X;this.content.m(this.Va);d=new ig.X;d.F(ig.k.za,ig.k.xb);
for(var b=a=0,e=s,h=c.length>=4,k=0;k<c.length;k++){e=new sc.ec(c[k],sc.OR,j,sc.Ic.Kc);if(h){e.l(0,b);b=b+(sc.Ic.Kc+1);if(e.a.size.x>a)a=e.a.size.x;this.Ba.Uc(e,0,k)}else{e.l(a,0);a=a+(e.a.size.x+1);if(e.a.size.y>b)b=e.a.size.y;this.Ba.Uc(e,k,0)}e.data=k;this.oa.push(e);d.m(e)}d.v(a,b);this.content.m(d);if(this.qa){d=new ig.Dc(this.r,416+16*(this.qa-1),464,15,15);this.content.m(d);c=Math.max(16,this.Va.a.size.x+15+4);d.l(0,1);this.Va.l(19,0)}else c=Math.max(16,this.Va.a.size.x);if(a>c){c=a;this.Va.F(ig.k.za,
ig.k.W)}a=Math.max(16,this.Va.a.size.y+b+4);this.content.v(c,a);this.ge=new sc.uB(this.content);this.ge.F(ig.k.za,ig.k.gb);this.m(this.ge);this.j("HIDDEN",j)},va:function(a){a.Ec("#000",0,0,this.a.size.x,this.a.size.y)},show:function(){ig.ua.de(this.Q);ig.ua.ed(0.2);this.ge.j("DEFAULT");this.j("DEFAULT")},hide:function(){ig.ua.ie(this.Q);ig.ua.ed(0.2);this.ge.j("HIDDEN");this.j("HIDDEN",w,j)},dsa:function(){return sc.V.Bo()}});sc.rn={zX:function(a,b,c,d){a=new sc.ZXa(a,b,c,d);ig.T.Mc(a)},GQa:function(a,
b,c){this.zX(a,sc.qs.INFO,b,c)},Nsb:function(a,b,c){this.zX(a,sc.qs.WARNING,b,c)},CQa:function(a,b,c){this.zX(a,sc.qs.ERROR,b,c)},Msb:function(a,b,c){this.zX(a,sc.qs.QUESTION,b,c)},cva:function(a,b,c,d){c instanceof Array||f(Error("options must be an array!"));a=new sc.sza(a,b,c,d);ig.T.Mc(a);a.show()},Ksb:function(a,b,c,d){this.cva(a,b,[c],d)},ww:function(a,b,c){this.cva(a,b,[ig.lang.get("sc.gui.dialogs.yes"),ig.lang.get("sc.gui.dialogs.no")],c)}}});ig.G=j;
ig.I("game.feature.menu.gui.save.save-misc").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.version.version","game.feature.gui.widget.modal-dialog","game.feature.menu.gui.menu-misc","impact.feature.interact.gui.focus-gui").H(function(){sc.I_a=ig.Vn.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/buttons.png",{width:28,height:0,left:8,top:40,right:8,bottom:0,Fb:{"default":{x:0,
y:114},focus:{x:45,y:114}}}),Bf:-1,zw:s,text:s,f:function(a){this.parent();this.v(448,40);this.Bf=a==g?-1:a;this.text=new sc.ea(ig.lang.get("sc.gui.menu.save-menu.new-slot"));this.text.F(ig.k.za,ig.k.gb);this.m(this.text);this.zw=new sc.QAa;this.m(this.zw);this.zw.BG(this.Bf)},Pl:function(){this.focus=j;this.zw.focus=j},zg:function(){this.focus=w;this.zw.focus=w},va:function(a){this.eb.Xa(a,this.a.size.x,this.a.size.y,this.focus?"focus":"default")}});sc.v8=ig.Vn.extend({N:{DEFAULT:{state:{},time:0.2,
p:KEY_SPLINES.LINEAR},MOVE:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},DELETE:{state:{alpha:0.5,Ma:0},time:0.2,p:KEY_SPLINES.EASE}},r:new ig.$("media/gui/menu.png"),eb:new ig.$b("media/gui/buttons.png",{width:28,height:0,left:8,top:40,right:8,bottom:0,Fb:{"default":{x:0,y:114},focus:{x:45,y:114}}}),Bf:-1,zw:s,aa:s,location:s,time:s,Ud:s,Ar:s,Ca:s,lT:s,ZD:s,content:s,Pe:s,f:function(a,c){this.parent();this.v(448,40);this.ZD=new ig.X;this.ZD.v(448,40);
this.ZD.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.ZD.j("DEFAULT",j);this.content=new ig.X;this.content.v(448,40);this.content.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.content.j("DEFAULT",j);this.Ar=new sc.G_a;this.content.m(this.Ar);var d=new sc.ea(ig.lang.get("sc.gui.menu.save-menu.level"),{font:sc.Ka.Lb});d.l(154,5);this.content.m(d);this.aa=new sc.Ib(99,
{size:sc.uf.hh});this.aa.l(170,6);this.content.m(this.aa);this.location=new sc.H_a;this.content.m(this.location);this.Ca=new sc.J_a;this.content.m(this.Ca);var e=new ig.X;e.l(313,5);e.v(47,18);d=new sc.ea(ig.lang.get("sc.gui.menu.save-menu.playtime"),{font:sc.Ka.Lb});d.F(ig.k.ha,ig.k.W);d.l(0,0);e.m(d);d=new sc.ea(ig.lang.get("sc.gui.menu.save-menu.credit"),{font:sc.Ka.Lb});d.F(ig.k.ha,ig.k.W);d.l(0,11);e.m(d);this.content.m(e);this.time=new sc.RAa;this.content.m(this.time);this.Ud=new sc.Ib(9999999);
this.Ud.l(368,15);this.content.m(this.Ud);this.ZD.m(this.content);this.zw=new sc.QAa;this.ZD.m(this.zw);this.lT=new sc.ea(ig.lang.get("sc.gui.menu.save-menu.noAuto"));this.lT.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.lT.F(ig.k.za,ig.k.gb);this.m(this.lT);this.lT.j("HIDDEN",j);this.m(this.ZD);this.Pe=new sc.K_a;this.m(this.Pe);this.hQa(a,c)},hQa:function(a,c,d){d=d==g?j:d;this.Bf=c==g?-1:c;this.zw.BG(this.Bf);if(a){if(a.player){this.Ar.$hb(a.player.chapter||
0,d);this.aa.sa(a.player.level||0,d);this.Ud.sa(a.player.credit||0,d)}this.location.Fua(a);this.Ca.Bib(a,d);this.time.setTime(a,d)}else{this.content.j("HIDDEN",j);this.lT.j("DEFAULT",j)}},U7a:function(){this.ZD.j("HIDDEN",j);this.Pe.Ffb(function(){this.ZD.j("DEFAULT",j)}.bind(this))},aHa:function(a,c){this.Pe.Hfb(c,function(){this.hQa(a,this.Bf,j)}.bind(this))},BG:function(a){this.Bf=a==g?-1:a;this.zw.BG(this.Bf)},Mib:function(a){this.zw.BG(a)},Pl:function(){this.focus=j;this.zw.focus=j},zg:function(){this.focus=
w;this.zw.focus=w},va:function(a){if(this.ZD.a.fj!="HIDDEN"){this.eb.Xa(a,this.a.size.x,this.a.size.y,this.focus?"focus":"default");this.content.a.fj!="HIDDEN"&&a.ia(this.r,430,15,490,224,10,8)}}});sc.RAa=ig.X.extend({r:new ig.$("media/gui/basic.png"),OC:s,vP:s,Lp:s,f:function(a,c,d){this.parent();this.F(ig.k.ha,ig.k.W);this.v(72,13);this.l(8,4);this.OC=new sc.Ib(c||999,{leadingZeros:d||3,size:a||s});this.OC.F(ig.k.ha,ig.k.W);this.OC.l(48,0);this.m(this.OC);this.vP=new sc.Ib(99,{leadingZeros:2,size:a||
s});this.vP.F(ig.k.ha,ig.k.W);this.vP.l(24,0);this.m(this.vP);this.Lp=new sc.Ib(99,{leadingZeros:2,size:a||s});this.Lp.F(ig.k.ha,ig.k.W);this.Lp.l(0,0);this.m(this.Lp);this.v(48+this.OC.a.size.x,13)},setTime:function(a,c){var d=a.playtime;this.Lp.sa(Math.floor(d)%60,c);this.vP.sa(Math.floor(d/60)%60,c);this.OC.sa(Math.floor(d/60/60)%60,c)},va:function(a){a.ia(this.r,this.a.size.x-21,this.OC.tP==sc.uf.Bt?2:1,107,1,3,7);a.ia(this.r,this.a.size.x-46,this.OC.tP==sc.uf.Bt?2:1,107,1,3,7)}});sc.H_a=ig.te.extend({eb:new ig.$b("media/gui/menu.png",
{width:4,height:4,left:13,top:13,right:4,bottom:0,Fb:{"default":{x:459,y:224}}}),location:s,version:s,f:function(){this.parent(305,13);this.F(ig.k.ha,ig.k.xb);this.l(3,3);this.location=new sc.ea("",{font:sc.Ka.Ve});this.location.l(26,0);this.m(this.location);this.version=new sc.ea("",{font:sc.Ka.Lb});this.version.F(ig.k.ha,ig.k.gb);this.version.l(5,1);this.m(this.version)},Fua:function(a){var c;c=""+(a.area?a.area:"???");c=c+(" - "+(a.specialMap?a.specialMap:a.map||"???"));this.location.fa(c);c=a.version||
"V0.2.2";if((a.saveVersion||0)<sc.version.pX)c="\\c[1]"+c;this.version.fa(c)},va:function(a){this.parent(a);a.ia(this.eb.r,13,1,481,224,8,11)}});sc.J_a=ig.te.extend({Lpa:new ig.$("media/gui/severed-heads.png"),eb:new ig.$b("media/gui/menu.png",{width:4,height:0,left:19,top:19,right:19,bottom:0,Fb:{"default":{x:416,y:224}}}),Ca:[],f:function(){this.parent(116,19);this.l(196,3);this.Ca.push(0)},Bib:function(a){this.Ca.length=1;if(a.party)for(var a=a.party.currentParty,c=0;c<a.length;c++){var d=sc.Ca.fi[a[c]];
d&&this.Ca.push(d.zO())}},va:function(a){this.parent(a);for(var c=0;c<this.Ca.length;c++)a.ia(this.Lpa,14+c*21,2,this.Ca[c]*24,8,24,16)}});sc.G_a=ig.X.extend({r:new ig.$("media/gui/chapters.png"),Ar:s,Va:s,sN:s,f:function(){this.parent();this.v(147,34);this.l(4,2);this.Va=new sc.ea(ig.lang.get("sc.gui.menu.save-menu.chapter"),{font:sc.Ka.Lb});this.Va.F(ig.k.fb,ig.k.xb);this.Va.l(68,0);this.m(this.Va);this.sN=new sc.Ib(99,{leadingZeros:2});this.sN.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},
HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.sN.l(106,25);this.m(this.sN)},$hb:function(a){this.Ar=Math.min(sc.q.R.zT.length,(a||0)+1);this.sN.sa(this.Ar,j);if(this.Ar==0){this.Va.fa(ig.lang.get("sc.gui.menu.save-menu.chapter0"));this.sN.j("HIDDEN",j)}else{this.Va.fa(ig.lang.get("sc.gui.menu.save-menu.chapter"));this.sN.j("DEFAULT",j)}},va:function(a){a.ia(this.r,0,0,this.Ar%2*147,Math.floor(this.Ar/2)*34,147,34)}});var a={"default":{top:"#525B68",bottom:"#2D343C"},focus:{top:"#EB7F30",
bottom:"#730D19"}};sc.QAa=ig.X.extend({eb:new ig.$b("media/gui/buttons.png",{width:12,height:0,left:6,top:37,right:7,bottom:0,Fb:{"default":{x:91,y:115},focus:{x:134,y:115}}}),Bf:-1,focus:w,By:s,f:function(){this.parent();this.l(2,1);this.v(446,38)},BG:function(a){if(this.Bf!=a&&this.By){this.By.remove();this.By=s}this.Bf=a==g?-1:a;if(this.Bf<=-2){if(!this.By){this.By=new sc.ea("auto");this.By.l(5,-2);this.m(this.By)}}else{if(!this.By){this.By=new sc.Ib(99,{leadingZeros:2});this.By.l(4,3);this.m(this.By)}this.By.sa(this.Bf+
1,j)}},va:function(b){var c=this.Bf<=-2?37:25,d=this.focus?"focus":"default";this.eb.Xa(b,c,39,d);var e=this.a.size.x-c-7;b.Ec(a[d].top,c,0,e,1);b.Ec(a[d].bottom,c,36,e,1);b.ia(this.eb.r,this.a.size.x-7,0,this.focus?169:126,115,5,37)},v:function(a){a=Math.max(a,50);this.parent(a,39)}});sc.K_a=ig.X.extend({eb:new ig.$b("media/gui/buttons.png",{width:28,height:0,left:8,top:40,right:8,bottom:0,Fb:{"default":{x:175,y:114}}}),N:{DEFAULT:{state:{alpha:1},time:0.5,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,
Ma:0},time:0.5,p:KEY_SPLINES.EASE},HIDDEN_UPDATE:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE},DEFAULT_UPDATE:{state:{alpha:1},time:0.3,p:KEY_SPLINES.EASE},NEW_HIDDEN:{state:{alpha:0.5,Ia:0},time:0.5,p:KEY_SPLINES.EASE},NEW_HIDDEN_END:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE}},f:function(){this.parent();this.v(448,40);this.rb(0,20);this.j("HIDDEN",j)},Ffb:function(a){this.j("NEW_HIDDEN",j);this.rb(0,20);this.j("DEFAULT",w,w,function(){this.rb(448,20);a&&a();this.j("NEW_HIDDEN_END",w,w,s,0.05)}.bind(this),
0.2)},Hfb:function(a,c){this.j("HIDDEN_UPDATE",j);this.rb(0,20);this.j("DEFAULT_UPDATE",w,w,function(){this.rb(448,20);c&&c();this.j("HIDDEN_UPDATE",w,w,s,0.05)}.bind(this),a)},va:function(a){this.eb.cHa(a,this.a.size.x,this.a.size.y,"default","lighter")}})});ig.G=j;
ig.I("game.feature.menu.gui.save.save-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes","game.feature.menu.gui.save.save-misc").H(function(){sc.B_a=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",{width:10,height:7,left:8,top:8,right:8,bottom:8,
Fb:{"default":{x:545,y:441}}}),button:s,f:function(){this.parent();var a=new sc.ea("- This is where you will find your auto save soon -",{font:sc.Ka.Lb});a.F(ig.k.za,ig.k.gb);a.l(0,1);this.m(a)}});sc.C_a=ig.X.extend({r:new ig.$("media/gui/menu.png"),list:s,Ba:s,Ke:[],dc:s,dL:s,tq:s,f:function(){this.parent();var a=sc.e.WF;this.v(452,246);this.F(ig.k.za,ig.k.gb);this.l(0,a?0:2);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:226},time:0.2,p:KEY_SPLINES.LINEAR}};
this.dc=sc.qd.submit;if(!a){this.tq=new sc.B_a;this.tq.F(ig.k.za,ig.k.W);this.tq.v(448,41);this.tq.l(0,-2);this.m(this.tq);var b=new sc.v8(ig.Cc.tq?ig.Cc.tq.getData():s,-2);b.l(0,1);this.tq.m(b)}var b=203+(a?40:0),c=new sc.kM;c.v(452,b);c.l(0,45-(a?40:0));this.m(c);this.list=new sc.jH(1,0,40);this.list.v(452,b);this.list.l(0,45-(a?40:0));this.m(this.list);this.Ba=this.list.ka;this.Ba.si(function(a){this.dL=a.Bf!=g&&a.Bf>=0?a:s;a.data&&sc.e.tc(a.data)}.bind(this));this.Ba.Bk(function(){this.dL=s;sc.e.tc(ig.lang.get("sc.gui.menu.save-menu.description-save"))}.bind(this));
this.Ba.tk(function(a){if(a.Bf!=g&&a.Bf>=-2){this.dc.play();a.Bf==-1?ig.Cc.Ke.length>=100?sc.rn.CQa(ig.lang.get("sc.gui.dialogs.slotsOverflow"),w):this.Reb():sc.e.WF?sc.rn.ww(ig.lang.get("sc.gui.dialogs.loadConfirm"),s,function(b){b.data==0&&this.dfb(a)}.bind(this)):sc.rn.ww(ig.lang.get("sc.gui.dialogs.overrideConfirm"),s,function(b){b.data==0&&this.efb(a)}.bind(this))}}.bind(this));this.j("HIDDEN",j)},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){this.v3();this.list.vf();
sc.e.tc(ig.lang.get("sc.gui.menu.save-menu.description-save"));ig.input.dd?this.Ba.Mj(0,this.Ba.Ea.y):this.Ba.yf(0,this.Ba.Ea.y,w,j);this.j("DEFAULT")},Rc:function(){this.list.xi();sc.e.tc("",j);this.j("HIDDEN")},Reb:function(){sc.rn.ww(ig.lang.get("sc.gui.dialogs.newConfirm"),s,function(a){if(a.data==0){sc.e.IMa();sc.ta.cc("player","saves",1)}})},efb:function(a){ig.Cc.save(a.Bf);sc.ta.cc("player","saves",1);this.Ke.splice(a.Bf,1);this.Ke.unshift(a);if(a.Bf!=0){a.Mib(0);this.list.qdb(a.Bf+1,1,0.2,
s,w,function(a,c){a.BG(a.Bf+c)}.bind(this));a.BG(0);a.aHa(ig.Cc.l2(0).getData(),0.1)}else a.aHa(ig.Cc.l2(0).getData());this.list.el=1;if(ig.input.dd){if(this.Ba.Q.qf){this.Ba.Q.qf.zg();this.Ba.Q.qf=s}this.Ba.Mj(0,1)}else this.Ba.yf(0,1,w,j);this.list.wX(0,w,j);ig.ua.ed(ig.input.dd?0.2:0.4)},dfb:function(a){sc.e.Xcb(a.Bf==-2?-1:a.Bf);sc.q.uHa()},heb:function(){if(this.dL&&this.dL.Bf>=0)sc.rn.ww(ig.lang.get("sc.gui.dialogs.deleteConfirm"),s,function(a){if(a.data==0){sc.e.cU(this.dL.Bf);this.cU(this.dL)}}.bind(this));
else{var a=ig.lang.get("sc.gui.menu.save-menu.delete-info-title")+"\n\n"+ig.lang.get("sc.gui.menu.save-menu.delete-info-content"),a=new sc.RL(a,{maxWidth:300,speed:ig.rd.Nd.We},"black",0.9);a.a.zIndex=15E4;a.a.Ee=j;ig.T.Mc(a)}},v3:function(a,b){var c=ig.input.dd,d=a?1:this.Ba.Ea.y||1,e=a?0:-this.list.vc.a.scroll.y||0;this.Ke.length=0;this.Ba.clear();this.list.clear();var h=ig.Cc.Ke,k=s;if(sc.e.WF){if(ig.Cc.tq){k=new sc.v8(ig.Cc.tq.getData(),-2);this.list.Rd(k)}}else{k=new sc.I_a(-1);this.list.Rd(k)}for(var l=
0;l<h.length;l++){k=new sc.v8(h[l].getData(),l);this.list.Rd(k,w);this.Ke[l]=k}d=Math.max(0,Math.min(d,this.list.qp().length));this.list.el=d;c?this.Ba.Mj(0,d):this.Ba.yf(0,d,w,j);this.list.zG(e,!b)},Obb:function(){var a=new sc.v8(ig.Cc.Ke[0].getData(),0);this.list.nqa(a,1,0.2);this.Ke.splice(0,0,a);for(a=0;a<this.Ke.length;a++)this.Ke[a].BG(a);this.list.el=1;ig.input.dd?this.Ba.Mj(0,1):this.Ba.yf(0,1,w,j);this.list.wX(0,w);ig.ua.ed(ig.input.dd?0.5:1)},cU:function(a,b){var c=this.Ba.Ea.y||0,d=-this.list.vc.a.scroll.y||
0;this.list.Dgb(a.Bf+1,b?"MOVE":"DELETE",0.2);this.Ke.splice(a.Bf,1);for(var e=0;e<this.Ke.length;e++)this.Ke[e].BG(e);c=c+1>=this.list.qp().length?c-1:Math.max(0,Math.min(c,this.list.qp().length-1));this.list.el=c;if(a==this.dL)this.dL=s;ig.input.dd?this.Ba.Mj(0,c):this.Ba.yf(0,c,w,j,w,j);c=this.list.NU(c);-d!=c-1?this.list.wX(d,w,j):this.list.wX(c-1,w,j);ig.ua.ed(0.2)},lb:function(a,b){if(a==sc.e&&b==sc.ca.oAa){this.Obb();this.Ke[0].U7a()}}})});ig.G=j;
ig.I("game.feature.menu.gui.save.save-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.widget.modal-dialog","game.feature.menu.gui.base-menu","game.feature.menu.gui.menu-misc","game.feature.control.control","game.feature.menu.gui.save.save-list").H(function(){function a(a,c){var d="0000"+Math.floor(a);return d.length>=4+c?Math.floor(a):d.substr(d.length-c)}sc.D_a=sc.bq.extend({mb:s,KJ:s,LJ:s,Aa:s,list:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=
ig.g.height;this.list=new sc.C_a;this.m(this.list);this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.KJ=new sc.ec("\\i[help2]"+ig.lang.get("sc.gui.menu.hotkeys.deleteSlot"),g,j,sc.Ic.Kc);this.KJ.Ul=j;this.KJ.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.KJ.a.size.y},
time:0.2,p:KEY_SPLINES.LINEAR}};this.KJ.Qb=this.geb.bind(this);this.LJ=new sc.ec("\\i[help3]"+ig.lang.get("sc.gui.menu.hotkeys.newSlot"),g,j,sc.Ic.Kc);this.LJ.Ul=j;this.LJ.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.LJ.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.LJ.Qb=this.Qeb.bind(this);this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this);this.list.ac()},Yb:function(){sc.K.lc(sc.e,this);this.list.Yb()},xd:function(){this.ac();sc.e.kk(this.Og.bind(this));sc.e.Th(0,
0,sc.Rg.dq);ig.ua.ed(0.2);this.list.xd();this.ek()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.zd(this.KJ);sc.e.Q.zd(this.LJ);this.list.Rc();this.Aa=s},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},teb:function(){return sc.V.ZF()},geb:function(){this.list.heb()},veb:function(){return sc.V.hK()},Qeb:function(){ig.Cc.Ke.length>=100?sc.rn.CQa(ig.lang.get("sc.gui.dialogs.slotsOverflow"),w):sc.rn.ww(ig.lang.get("sc.gui.dialogs.newConfirm"),
s,function(a){a.data==0&&sc.e.IMa()})},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;if(sc.e.WF){this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.load.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.load.pages"))}else{this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.save.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.save.pages"))}this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Q.md(this.KJ,this.teb.bind(this));if(!sc.e.WF){sc.e.Q.md(this.LJ,
this.veb.bind(this));sc.e.Qi(M("LJ").bind(this))}sc.e.Qi(M("KJ").bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:F()});sc.bya=sc.jE.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0.5,offsetX:-204},time:0.2,p:KEY_SPLINES.LINEAR}},Q:s,qc:s,gW:s,pF:s,ti:s,load:w,dc:s,Ke:[],sI:s,gI:w,GE:s,RM:s,KM:w,v_:-1,HS:w,f:function(a,c,d){this.parent(a?ig.lang.get("sc.gui.menu.save-menu.load"):ig.lang.get("sc.gui.menu.save-menu.save"),sc.yj.Eja);
this.v(204,283);this.a.zIndex=2001;this.a.Ee=j;this.load=a||w;this.GE=c;this.RM=d;this.dc=sc.qd.submit;this.Q=new ig.nr;this.sI=new ig.Lf("red",204,273);this.sI.l(0,9);this.sI.a.N={DEFAULT:{state:{alpha:0.5},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.sI.j("HIDDEN",j);this.m(this.sI);this.pF=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.save-menu.delete"),!a?101:204,j,sc.Ic.Kc);this.pF.F(ig.k.fb,ig.k.W);this.pF.l(!a?102:0,12);this.pF.Qb=function(){this.fSa()}.bind(this);
this.m(this.pF);this.ti=new sc.ec("\\i[back]"+ig.lang.get("sc.gui.menu.back"),204,j,sc.Ic.Kc);this.ti.F(ig.k.fb,ig.k.xb);this.ti.l(0,1);this.ti.dc=sc.qd.back;this.ti.Qb=function(){this.xi()}.bind(this);this.m(this.ti);if(!a){this.gW=new sc.ec("\\i[help2]"+ig.lang.get("sc.gui.menu.save-menu.new-save"),101,j,sc.Ic.Kc);this.gW.F(ig.k.fb,ig.k.W);this.gW.l(0,12);this.gW.Qb=function(){this.gI&&this.fSa();ig.Cc.save(ig.Cc.Ke.length);this.v3(j,j)}.bind(this);this.m(this.gW)}this.qc=new sc.bZ(1,j,this.Q);
this.qc.v(204,230);this.qc.F(ig.k.fb,ig.k.W);this.qc.list.ka.tk(function(a){if(a.Bf!=g&&a.Bf>=0){this.dc.play();if(this.gI)sc.rn.ww(ig.lang.get("sc.gui.dialogs.deleteConfirm"),s,function(b){if(b.data==0){ig.Cc.cU(a.Bf);this.v3(j,s,ig.input.dd)}}.bind(this));else if(this.load){this.KM=j;this.v_=a.Bf}else sc.rn.ww(ig.lang.get("sc.gui.dialogs.overrideConfirm"),s,function(b){if(b.data==0){ig.Cc.save(a.Bf);a.iPa();for(b=this.Ke.length;b--;)a==this.Ke[b]&&this.Ke[b].Zkb()}}.bind(this))}}.bind(this));this.qc.l(0,
28);this.m(this.qc);this.Q.Cg(this.qc.list.ka);a||this.Q.md(this.gW,function(){return sc.V.ZF()}.bind(this));this.Q.md(this.pF,function(){return sc.V.Ap()}.bind(this));this.Q.md(this.ti,function(){return sc.V.Bo()}.bind(this));this.j("HIDDEN",j)},update:function(){if(this.a.Il&&(!ig.ua.Ph()&&!ig.Fs)&&sc.V.Bo()){sc.qd.back.play();this.xi()}if(this.KM){this.KM=w;this.GE&&this.GE(this.v_)}},l:function(a,c){this.parent(a,c);this.jL("HIDDEN","offsetX",-(204+a));this.j("DEFAULT",j);this.j("HIDDEN",j)},
fSa:function(){if(this.gI=!this.gI){this.pF.re.fa("\\i[help]"+ig.lang.get("sc.gui.menu.save-menu.exit-del"));this.sI.j("DEFAULT")}else{this.pF.re.fa("\\i[help]"+ig.lang.get("sc.gui.menu.save-menu.delete"));this.sI.j("HIDDEN")}for(var a=this.Ke.length;a--;)this.Ke[a].una=this.gI},vf:function(){ig.Fs=w;ig.ua.de(this.Q);this.pF.re.fa("\\i[help]"+ig.lang.get("sc.gui.menu.save-menu.delete"));this.v3(j,w,ig.input.dd);this.j("DEFAULT")},xi:function(){this.RM&&this.RM();ig.Fs=j;ig.ua.ie(this.Q);this.gI=w;
this.sI.j("HIDDEN");this.j("HIDDEN")},v3:function(a,c,d){var e=0,h=0;if(a){e=this.qc.list.ka.Ea.y;h=-this.qc.list.vc.a.scroll.y}this.qc.list.ka.clear();this.qc.list.clear(w);this.Ke.length=0;for(var k=ig.Cc.Ke,l=s,m=s,n=0;n<k.length;n++)if(m=k[n].getData()){l=new sc.bya.qja(n,this.gI);l.v(201,44);this.qc.Rd(l);this.Ke[n]=l}if(a){if(this.HS)e=Math.max(0,Math.min(e,this.qc.list.qp().length));else{e=Math.max(0,Math.min(ig.Cc.jP,this.qc.list.qp().length));h=this.qc.list.kab(e);this.HS=j}this.qc.list.el=
e;d?this.qc.list.ka.Mj(0,e):this.qc.list.ka.yf(0,e,w,j);this.qc.list.zG(h,j)}c&&l.iPa()}});sc.bya.qja=ig.Vn.extend({N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ma:0},time:0.1,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/buttons.png",{width:13,height:6,left:9,top:9,right:9,bottom:9,Fb:{"default":{x:0,y:65},focus:{x:32,y:65},"delete":{x:64,y:65}}}),aa:s,location:s,M4:s,position:s,Bf:-1,una:w,f:function(b,c){this.parent();this.Bf=b==g?-1:b;this.una=c||w;if(this.Bf>=0){var d=
ig.Cc.l2(this.Bf).getData();if(d){var e=new sc.Ib(99,{leadingZeros:2,size:sc.uf.KB});e.sa(b);e.l(8,8);this.m(e);e=d.player;this.aa=new sc.Ib(99,{size:sc.uf.Bt});this.aa.sa(e.level);this.aa.F(ig.k.ha,ig.k.W);this.aa.l(8,8);this.m(this.aa);e=new sc.ea("LV: ",{speed:ig.rd.Nd.We});e.F(ig.k.ha,ig.k.W);e.l(26,4);this.m(e);e=s;e=d.specialMap?d.area+" - "+d.specialMap:d.area+(d.floor?" - "+d.floor:"");this.location=new sc.ea(e,{speed:ig.rd.Nd.We,font:sc.Ka.Lb});this.location.F(ig.k.fb,ig.k.W);this.location.l(8,
28);this.m(this.location);e=this.VCa(d);this.version=new sc.ea(e,{speed:ig.rd.Nd.We,font:sc.Ka.Lb});this.version.F(ig.k.fb,ig.k.W);this.version.l(28,7);this.m(this.version);d=d.playtime;e=ig.lang.get("sc.gui.menu.save-menu.time")+": "+a(d/60/60,3)+":"+a(Math.floor(d/60)%60,2)+":"+a(Math.floor(d)%60,2);this.M4=new sc.ea(e,{speed:ig.rd.Nd.We,font:sc.Ka.Ve});this.M4.F(ig.k.fb,ig.k.W);this.M4.l(8,16);this.m(this.M4);this.qX=new sc.ea(" - Saved!",{speed:ig.rd.Nd.We,font:sc.Ka.Lb});this.qX.l(76,7);this.qX.a.N=
{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.5,p:KEY_SPLINES.LINEAR}};this.qX.j("HIDDEN",j);this.m(this.qX)}}},Pl:function(){this.parent()},va:function(a){this.eb.Xa(a,this.a.size.x,this.a.size.y,this.focus?this.una?"delete":"focus":"default")},iPa:function(){this.qX.j("DEFAULT",j,w,function(){this.qX.j("HIDDEN",w,w,s,0.1)}.bind(this))},Zkb:function(){var b=ig.Cc.l2(this.Bf).getData();this.aa.sa(b.player.level);var c=s,c=b.specialMap?b.area+" - "+b.specialMap:b.area+
(b.floor?" - "+b.floor:"");this.location.fa(c);c=b.playtime;c=ig.lang.get("sc.gui.menu.save-menu.time")+": "+a(c/60/60,3)+":"+a(Math.floor(c/60)%60,2)+":"+a(Math.floor(c)%60,2);this.M4.fa(c);c=this.VCa(b);this.version.fa(c)},VCa:function(a){var c=a.version||"V0.2.2";if((a.saveVersion||0)<sc.version.pX)c="\\c[1]"+c;return c}})});ig.G=j;
ig.I("game.feature.gui.screen.title-screen").J("impact.feature.gui.gui","game.feature.gui.base.button","impact.feature.parallax.parallax","game.feature.gui.screen.intro-screen","game.feature.gui.screen.title-logo","impact.base.image","game.feature.gui.screen.title-preset","game.feature.menu.gui.save.save-menu","game.feature.version.version","game.feature.control.control").H(function(){sc.SXa=ig.X.extend({N:{DEFAULT:{state:{},time:0.5,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.5,p:KEY_SPLINES.LINEAR}},
f:function(){this.parent();this.a.zIndex=900;this.a.Ee=j;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;sc.K.Na(sc.q,this);this.j("HIDDEN",j)},va:function(a){a.Ec("rgb("+ig.t.mF.Uh+","+ig.t.mF.Oh+","+ig.t.mF.Mh+")",0,0,this.a.size.x,this.a.size.y)},lb:function(a,b){if(b==sc.Le.Vw||b==sc.Le.jq)!a.Mq()&&(!a.xo()&&!a.cP()&&!a.yV()&&!a.yqa()&&!a.Ss())&&this.j(a.c3()||!a.Xm()?"DEFAULT":"HIDDEN")}});sc.m1a=ig.X.extend({background:new ig.$("media/gui/title-bg.png"),N:{DEFAULT:{state:{},time:0,p:KEY_SPLINES.LINEAR},
HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR}},rD:new ig.Wza("title"),uq:s,Rfa:s,oa:s,qqa:s,pe:s,Uu:s,f:function(){this.parent();this.a.zIndex=1E3;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.pe=new sc.At(this);this.uq=new ig.Xza({parallax:"title"},this.v2a.bind(this));this.m(this.uq);this.Rfa=new sc.n1a;this.m(this.Rfa);this.oa=new sc.l1a;this.m(this.oa);this.Uu=new sc.ea(sc.version.toString(),{font:sc.Ka.Lb});this.Uu.F(ig.k.ha,ig.k.xb);this.Uu.l(2,0);this.Uu.a.N={DEFAULT:{state:{},
time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.Uu.j("HIDDEN",j);this.m(this.Uu);this.qqa=new ig.Ji.IntroScreen(this.L3a.bind(this));this.m(this.qqa);sc.K.Na(sc.q,this);sc.K.Na(sc.e,this);this.j("HIDDEN",j)},lb:function(a,b){if(a==sc.q&&b==sc.Le.Vw){var c=a.c3()?"DEFAULT":"HIDDEN";if(this.a.fj!=c)if(c=="DEFAULT"){this.oa.hide(j);ig.Zf.clear("MEDIUM");if(window.aj){ig.Zf.play(ig.PL.Fva,1,"MEDIUM");this.j(c,j);this.rEa()}else{this.qqa.start();this.uq.j("HIDDEN",
j);this.j(c,j)}}else{this.oa.hide();this.Uu.j("HIDDEN");this.uq.x2()?this.j(c):sc.q.ncb()?this.uq.qca("QUICK_END"):this.uq.qca("SLOW_END")}}else if(a==sc.e&&b==sc.ca.YL){sc.e.yQ(w);sc.e.Gsa=j;sc.e.WF=w;if(ig.input.dd){this.oa.T3.setOptions.M6();this.oa.T3.loadGame.M6()}}else if(a==sc.e&&b==sc.ca.Tza&&sc.e.Fca>=-1){this.oa.p$.Jma();ig.Zf.clear("MEDIUM_OUT");ig.ua.ie(this.oa.Q);ig.t.Gca(sc.e.Fca);sc.e.Fca=-2}},ql:function(){if(this.uq.kcb("IDLE")){sc.qd.submit.play();this.oa.show();this.Rfa.hide();
ig.ua.ie(this.pe)}else this.uq.Ko()},rEa:function(){this.uq.start(j);ig.ua.de(this.pe)},L3a:function(){ig.Zf.play(ig.PL.Fva,1,"MEDIUM");this.rEa()},v2a:function(a,b){if(a==ig.l8.$ya&&b=="IDLE"){this.Rfa.show();this.Uu.j("DEFAULT")}else a==ig.l8.eE&&this.j("HIDDEN")}});var a={x:0,y:192,uc:40,Gc:24},b={x:40,y:192,uc:64,Gc:24};sc.n1a=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ma:0.5},time:0.2,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/buttons.png"),n:s,
f:function(){this.parent();this.F(ig.k.za,ig.k.gb);this.l(0,-8);var c=new sc.ea(ig.lang.get("sc.gui.title-screen.pressStart"),{font:sc.Ka.font});c.F(ig.k.za,ig.k.gb);c.l(0,-c.a.size.y/2);this.m(c);c=new sc.FH(176);c.F(ig.k.za,ig.k.gb);c.l(0,c.a.size.y/2);this.m(c);var c=0,d=a,k;if(ig.browser=="Chrome"){c=c-32;k=new ig.Dc(this.r,d.x,d.y,d.uc,d.Gc);k.F(ig.k.za,ig.k.gb);k.l(c,d.Gc/2+1);this.m(k);c=c+64}d=b;k=new ig.Dc(this.r,d.x,d.y,d.uc,d.Gc);k.F(ig.k.za,ig.k.gb);k.l(c,d.Gc/2+1);this.m(k);this.n=new ig.Ct(j,
3,ig.qk.yAa);this.j("HIDDEN",j)},show:function(){this.j("DEFAULT")},hide:function(){this.j("HIDDEN")},update:function(){this.n.ga();for(var a=0.6+this.n.get()*0.4,b=this.a.children,c=b.length;c--;)b[c].Vc=a}});sc.l1a=ig.X.extend({N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.LINEAR}},Q:s,ka:s,epb:s,Dsb:s,T3:{},YW:s,Usb:s,fpb:s,oOa:s,uob:s,oob:s,p$:s,HC:s,background:s,oa:[],p4a:0,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=
ig.g.height;this.Q=new ig.nr;this.ka=new sc.Wf;this.Q.Cg(this.ka);var a=c;ig.platform==ig.pk.DESKTOP&&(a=a+this.Mi("close",a,5,function(){ig.ua.ie(this.Q);window.setTimeout(function(){var a=window.require("nw.gui").Window.get();a.isFullscreen&&a.leaveFullscreen();a.close()},300);this.hide()}.bind(this),"setOptions"));a=a+this.Mi("options",a,4,function(){this.c3a()}.bind(this),"setOptions");a=a+this.Mi("load",a,3,function(){ig.Zf.clear("MEDIUM_OUT");ig.ua.ie(this.Q);ig.t.Gca(0)}.bind(this),"loadGame");
this.p4a=a=a+d*3;a=a+this.Mi("start",a,0,function(){this.p$.Jma();ig.Zf.clear("MEDIUM_OUT");ig.ua.ie(this.Q);ig.t.start(sc.KZ.mja,1)}.bind(this),"start");this.HC=new sc.ec(ig.lang.get("sc.gui.title-screen.early-access"),sc.ps);this.HC.F(ig.k.za,ig.k.xb);this.HC.l(0,c);this.HC.Qb=function(){sc.qd.submit.play();window.SHOW_EARLY_ACCESS&&window.SHOW_EARLY_ACCESS()};this.HC.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-40,alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.HC.j("HIDDEN",
j);this.ka.Uc(this.HC,1,0);this.m(this.HC);this.p$=new sc.UTa;this.background=new ig.Lf("#000",ig.g.width,ig.g.height);this.background.a.N={DEFAULT:{state:{alpha:0.8},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.background.j("HIDDEN");this.m(this.background);this.YW=new sc.Hja(function(a){this.YW.xi();this.background.j("HIDDEN");this.p$.Jma();ig.Zf.clear("MEDIUM_OUT");ig.ua.ie(this.Q);sc.hPa.load(a)}.bind(this),function(){this.background.j("HIDDEN")}.bind(this));
this.YW.F(ig.k.ha,ig.k.xb);this.YW.l(10,8);this.m(this.YW);this.j("DEFAULT",j)},hide:function(a){this.background.j("DEFAULT");this.YW.xi();this.j("DEFAULT",a);for(var b=this.oa.length;b--;)this.oa[b].j("HIDDEN",a);this.HC.j("HIDDEN",a)},show:function(){this.background.j("HIDDEN");this.j("DEFAULT");for(var a=0,b=this.oa.length;b--;){this.oa[b].j("DEFAULT",w,w,s,a);a=a+0.016}ig.ua.ed(0.3);ig.ua.de(this.Q);ig.input.dd?this.ka.Mj(0,0):this.ka.yf(0,0,w,j);this.HC.j("DEFAULT");a=s;localStorage.getItem("ccLanguageFirst")||
(a="German Language option added!\n\nIf you prefer \\c[3]German\\c[0], you can change the game's language within options.\n\n");localStorage.setItem("ccFirstTime",j);localStorage.setItem("ccLanguageFirst",j);if(a){a=new sc.RL(a,{maxWidth:300,speed:ig.rd.Nd.We,textAlign:ig.Gg.vj.cq},"black",0.9);a.a.zIndex=1500;ig.T.Mc(a)}ig.Cc.dbb(0)?this.T3.loadGame.setActive(j):this.T3.loadGame.setActive(w)},Mi:function(a,b,k,l,m){a=new sc.ec(ig.lang.get("sc.gui.title-screen."+a),sc.ps);a.l(c,b);a.F(ig.k.fb,ig.k.xb);
a.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetX:-(sc.ps+c)},time:0.2,p:KEY_SPLINES.LINEAR}};a.Qb=l;a.j("DEFAULT",j);this.ka.Uc(a,0,k);this.m(a);m&&(this.T3[m]=a);this.oa.push(a);return a.a.size.y+d},ynb:function(){sc.e.WF=j;sc.e.yQ(j,sc.Cd.DZ);sc.q.Ex(j)},c3a:function(){sc.e.yQ(j,sc.Cd.Z7);sc.e.Gsa=w;sc.q.Ex(j)}});var c=12,d=4});ig.G=j;
ig.I("game.feature.gui.screen.pause-screen").J("impact.feature.gui.gui","impact.base.image","game.feature.gui.base.button","game.feature.menu.gui.save.save-menu","game.feature.gui.widget.modal-dialog").H(function(){sc.kZa=ig.X.extend({Q:s,ka:s,jQ:s,RQ:s,YG:s,yD:s,yK:s,Uu:s,P2:s,r:new ig.$("media/gui/scanlines.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},Onb:w,f:function(){this.parent();this.a.Vc=0.8;this.a.zIndex=100;this.a.Ee=j;
this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.Q=new ig.nr;this.ka=new sc.Wf;this.Q.Cg(this.ka);this.YG=new sc.ec(ig.lang.get("sc.gui.pause-screen.to-title"),sc.ps);this.YG.F(ig.k.ha,ig.k.xb);this.YG.Qb=function(){ig.Fs=w;sc.rn.ww(ig.lang.get("sc.gui.dialogs.titleConfirm"),s,function(a){ig.Fs=j;if(a.data==0){ig.ua.ie(this.Q);ig.t.rJa()}}.bind(this))}.bind(this);this.RQ=new sc.ec(ig.lang.get("sc.gui.pause-screen.skip"),sc.ps);this.RQ.F(ig.k.ha,ig.k.xb);this.RQ.Qb=function(){sc.q.Eva();sc.q.Ir()}.bind(this);
this.jQ=new sc.ec(ig.lang.get("sc.gui.pause-screen.resume"),sc.ps,g,g,sc.qd.back);this.jQ.F(ig.k.ha,ig.k.xb);this.jQ.Qb=function(){sc.q.Ir()}.bind(this);this.YG.l(3,3);this.yD=new sc.ec(ig.lang.get("sc.gui.pause-screen.save-game"),sc.ps);this.yD.F(ig.k.ha,ig.k.xb);this.yD.Qb=function(){ig.Cc.save(0);ig.Fs=w;sc.rn.GQa(ig.lang.get("sc.gui.pause-screen.demo-text"),j,function(){ig.Fs=j})}.bind(this);this.yK=new sc.ec(ig.lang.get("sc.gui.menu.menu-titles.options"),sc.ps);this.yK.F(ig.k.ha,ig.k.xb);this.yK.Qb=
function(){sc.e.yQ(j,sc.Cd.Z7);sc.q.Ex(j)}.bind(this);this.Uu=new sc.ea(sc.version.toString(),{font:sc.Ka.Lb});this.Uu.F(ig.k.za,ig.k.xb);this.Uu.l(2,1);this.Uu.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.m(this.Uu);this.P2=new sc.ea("Found a typo? Press \\c[3]F7 to open the Lang Editor\\c[0] and send us the fix!",{font:sc.Ka.Ve});this.P2.F(ig.k.fb,ig.k.W);this.P2.l(2,1);this.P2.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},
HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.m(this.P2);this.m(this.YG);this.m(this.jQ);this.m(this.yD);this.m(this.yK);sc.K.Na(sc.q,this);sc.K.Na(sc.e,this);this.j("HIDDEN",j);if(!this.constructor.Km)this.constructor.Km=this.r.createPattern(0,0,64,64,ig.ue.Pf.gz)},va:function(a){a.Rj(this.constructor.Km,0,0,0,0,this.a.size.x,this.a.size.y)},lb:function(a,b){if(a==sc.q){if(b==sc.Le.jq&&!sc.q.WC()&&sc.q.Ml!=sc.Yf.iZ){var c=sc.e.i1?j:sc.q.Mq();this.j(c?"DEFAULT":"HIDDEN");if(c){this.Tkb(sc.q.KK==
sc.Yf.iZ);ig.ua.de(this.Q);ig.ua.ed(0.2)}else ig.ua.ie(this.Q)}}else if(a==sc.e&&b==sc.ca.Dya)this.a.TC=w},Tkb:function(a){this.fQ(this.RQ);var b=this.ka.Ea.y,c=ig.input.dd,a=a?a:w;this.ka.clear();this.ka.Uc(this.jQ,0,0,j);this.ka.Uc(this.yK,0,1);this.ka.Uc(this.yD,0,2);this.YG.l(3,3);var d=this.YG.a.size.y;if(sc.q.Id==sc.vt.UR){this.m(this.RQ);this.ka.Uc(this.RQ,0,3);this.ka.Uc(this.YG,0,4);this.RQ.l(3,3+d+4);this.yD.l(3,d*2+11);this.yK.l(3,d*3+15);this.jQ.l(3,d*4+19)}else{this.ka.Uc(this.YG,0,3);
this.yD.l(3,3+d+4);this.yK.l(3,d*2+11);this.jQ.l(3,d*3+15)}if(window.aj){d=ig.lang.get("sc.gui.pause-screen.save-game");sc.q.mca()||(d="\\c[4]"+d);this.yD.fa(d);this.yD.FG(sc.ps)}else this.yD.setActive(sc.q.mca());b>this.ka.elements[0].length&&(b=0);a||(b=0);if(c){this.ka.Mj(0,b);this.ka.Aga();this.yK.M6()}else this.ka.yf(0,b,w,j)}});ig.Ji.PauseScreenLabel=ig.X.extend({n:0,jwa:1,r:new ig.$("media/gui/pause_word.png"),N:{DEFAULT:{state:{},time:0.5,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.5,
p:KEY_SPLINES.LINEAR}},f:function(){this.parent();this.a.Vc=1;this.a.zIndex=0;this.a.size.x=this.r.width;this.a.size.y=this.r.height},update:function(){this.n=this.n+ig.g.Da;if(this.n>=this.jwa)this.n=this.n-this.jwa;var a=this.n/this.jwa;this.a.Vc=0.4+(a>0.5?1-a:a)*1.6;if(this.a.Vc>1)this.a.Vc=1},va:function(a){a.ia(this.r,0,0,0,0,this.a.size.x,this.a.size.y)}})});ig.G=j;
ig.I("game.feature.gui.screen.credits-screen").J("impact.feature.gui.gui").H(function(){ig.Ji.CreditsScreen=ig.X.extend({s:new ig.u({width:200,attributes:{gc:{c:"VarName",d:"Variable that will be set to true when the credits are finished"}},label:function(){return"<b>Credits</b> and set <b>"+this.gc+"</b> to true"}}),GN:{ideaConcept:{title:"sc.gui.credits.ideaConcept",Co:["Felix 'Lachsen' Klein","Stefan 'R.D.' Lange"]},mainProgramming:{title:"sc.gui.credits.programming",Co:["Felix 'Lachsen' Klein",
"Stefan 'R.D.' Lange"]},graphics:{title:"sc.gui.credits.spriteart",Co:["Felix 'Lachsen' Klein","Thomas 'T-Free' Fr\u00f6se","Martina Brodehl","Daniel 'The_question' Tillmann"]},conceptart:{title:"sc.gui.credits.conceptart",Co:["Fabrice 'Frece' Magdanz","Solacy","Felix 'Lachsen' Klein","Stefan 'R.D.' Lange"]},leveldesign:{title:"sc.gui.credits.leveldesign",Co:["Stefan 'R.D.' Lange","Henning 'GFl\u00fcgel' Hartmann","Felix 'Lachsen' Klein"]},sound:{title:"sc.gui.credits.sound",Co:["Florian 'Teflo' Valentin Valerius Ben \n Abdeslam Ben Modeslam Ben Omar Mohammed Abdeslam",
"Airon","Deniz 'Intero' Akbulut"]},music:{title:"sc.gui.credits.music",Co:["Deniz 'Intero' Akbulut "]},betatesters:{title:"sc.gui.credits.betatesters",Co:["Jens Meisters","Stefan Links","Lobby","Maximilian Malek","ChronoMoogle","IHeartPieGaming"]},thanks:{title:"sc.gui.credits.thanks",Co:["Anna M. Geudert - Lead Mental Support","Josephine Rettig - Cubic Environment Architect","Itaju - High-Level Complaining","FamilyJules7X - Musical Coffee Substitute","FlareShard","Steven Sch\u00e4fer","That guy named Steve",
"Friends and Family","Our Supporters and Fans (You are great!)"]}},Hi:[],n:0,Py:0,yb:w,iRa:w,gc:s,N:{DEFAULT:{state:{},time:0,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR},ROLL:{state:{offsetY:0},time:0,p:KEY_SPLINES.LINEAR}},ara:s,f:function(a){this.parent();this.a.zIndex=80;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.gc=a.variable;var b=a=0,c;for(c in this.GN){var d=this.GN[c],e=new sc.ea(ig.lang.get(d.title),{speed:ig.rd.Nd.We});e.F(ig.k.za,ig.k.W);e.a.N=
{HIDDEN:{state:{Ma:0},time:0,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{Ma:1},time:0.7,p:KEY_SPLINES.LINEAR}};e.a.i.y=a+ig.g.height;e.j("HIDDEN",j);this.m(e);this.Hi[b]={};this.Hi[b].T=e;this.Hi[b].time=a/35+3;b++;var h=new ig.Lf("#989898",e.a.size.x+10,1);h.F(ig.k.za,ig.k.W);h.a.N={HIDDEN:{state:{Ia:0},time:0,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{Ia:1},time:1,p:KEY_SPLINES.EASE_OUT}};h.j("HIDDEN",j);a=a+(3+e.a.size.y);h.a.i.y=a+ig.g.height;this.m(h);a=a+4;this.Hi[b]={};this.Hi[b].T=h;this.Hi[b].time=
a/35+3;b++;for(e=0;e<d.Co.length;e++){c=d.Co[e].indexOf("sc.gui.credits")==0?ig.lang.get(d.Co[e]):d.Co[e];h=new sc.ea(c,{speed:ig.rd.Nd.We,textAlign:ig.Gg.vj.cq,linePadding:0});h.a.N={HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{alpha:1},time:2,p:KEY_SPLINES.LINEAR}};h.F(ig.k.za,ig.k.W);h.j("HIDDEN",j);h.a.i.y=a+ig.g.height;this.m(h);a=a+(h.a.size.y+2);this.Hi[b]={};this.Hi[b].T=h;this.Hi[b].time=a/35+3;b++}a=a+105}a=a+ig.g.height;this.a.N.ROLL.state.offsetY=-a;this.a.N.ROLL.time=
a/35;c=new ig.Xza({parallax:"logo"},this.U3a.bind(this));c.F(ig.k.za,ig.k.gb);this.m(c);this.ara=c},Qa:function(){this.ara.Qa()},dn:function(){this.ara.start(j)},update:function(){if(this.iRa)for(this.n=this.n+ig.g.Da;this.Py<this.Hi.length&&this.Hi[this.Py].time<=this.n;){this.Hi[this.Py].T.j("DEFAULT");this.Py++}},U3a:function(){this.iRa=j;this.j("ROLL",w,j,this.G4a.bind(this))},G4a:function(){this.gc&&ig.pa.set(this.gc,j)}})});ig.G=j;
ig.I("game.feature.gui.widget.click-box").J("impact.base.image","impact.feature.interact.gui.focus-gui","game.feature.interact.button-group").H(function(){sc.RL=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},bgColor:s,ge:s,Va:s,Gw:w,pe:s,Ob:s,f:function(a,b,c,d,e){this.parent();this.a.Vc=d;this.a.zIndex=90;this.a.cr=j;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.Va=new sc.ea(a,b);this.bgColor=c;this.ge=
new sc.uB(this.Va);this.ge.F(ig.k.za,ig.k.gb);this.m(this.ge);this.j("HIDDEN",j);this.j("DEFAULT");this.Va.df.AA=this.D_.bind(this);this.Gw=this.Va.df.ol();this.Ob=e;this.pe=new sc.At(this);ig.g.tl||ig.ua.de(this.pe)},wPa:function(a,b){this.ge.a.i.x=a;this.ge.a.i.y=b},D_:function(){this.Gw=j},ql:function(){if(this.Gw){ig.ua.ie(this.pe);this.rk()}else this.Va.finish()},rk:function(){this.ge.j("HIDDEN");this.j("HIDDEN",w,j);this.Ob&&this.Ob()},update:function(){!this.a.qj&&(this.Gw&&ig.g.tl)&&this.rk();
this.parent()},va:function(a){this.bgColor&&a.Ec(this.bgColor,0,0,this.a.size.x,this.a.size.y)}})});ig.G=j;
ig.I("game.feature.gui.widget.gamepad-box").J("impact.base.image","impact.feature.gui.gui").H(function(){ig.Ji.GamepadBox=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:1},time:0.3,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/buttons.png"),nV:s,text:s,P1:w,f:function(a,b,c){this.parent();this.v(180,26);this.a.zIndex=90;this.nV=new sc.ec("?",28);this.nV.l(1,1);this.nV.F(ig.k.ha,ig.k.xb);this.nV.Qb=function(){var a=ig.lang.get("sc.gui.gamepad-box.info-title")+
"\n\n"+ig.lang.get("sc.gui.gamepad-box.info-text"),a=new sc.RL(a,{maxWidth:300,speed:ig.rd.Nd.We},"black",0.9);a.a.zIndex=1500;ig.T.Mc(a)}.bind(this);a.Uc(this.nV,b,c);this.m(this.nV);this.text=new sc.ea(ig.lang.get("sc.gui.gamepad-box.not-connected"),{maxWidth:105,speed:ig.rd.Nd.fja});this.text.F(ig.k.za,ig.k.gb);this.text.l(4,0);this.m(this.text)},Fg:function(){if(!this.P1&&ig.input.bb==ig.Gb.Jc){this.P1=j;this.text.fa(ig.lang.get("sc.gui.gamepad-box.connected"))}},va:function(a){a.ia(this.r,0,
0,0,160,this.a.size.x,this.a.size.y)}})});ig.G=j;
ig.I("game.feature.gui.widget.counter-hud").J("game.feature.gui.hud.right-hud","impact.feature.gui.base.basic-gui","impact.base.image").H(function(){ig.Ji.CounterHud=sc.GB.extend({YV:0,RT:0,gc:s,zIndex:101,s:new ig.u({width:500,attributes:{ukb:{c:"LangLabel",d:"Text to describe task"},YV:{c:"Number",d:"Maximum count to reach"},gc:{c:"VarName",d:"Variable that stores current hit count"}}}),Di:s,f:function(a){this.parent(new ig.Oa(a.taskTitle));this.YV=a.maxCount;this.gc=a.variable;this.RT=ig.pa.get(this.gc);
this.Di=new sc.TXa(this.YV,0);this.Di.sa(this.RT);this.ds(this.Di,j)},Fg:function(){if(this.YV>0){var a=ig.pa.get(this.gc);if(a!=this.RT){this.RT=a;this.Di.sa(this.RT)}}}});ig.Ji.CounterHud.bRa=function(a){sc.T.VA.q5a(a,sc.T.AMa);a.show()}});ig.G=j;
ig.I("game.feature.gui.widget.information").J("game.feature.gui.base.boxes","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.base.image","impact.base.lang","game.feature.gui.base.boxes").H(function(){ig.Ji.Information=sc.tja.extend({text:s,Sla:s,K9:s,s:new ig.u({width:500,attributes:{text:{c:"LangLabel",d:"Text to display in information.",mq:j},Sla:{c:"LangLabel",d:"Alternative text to display",mq:j,U:j},K9:{c:"VarCondition",d:"Condition for alternative text",ub:"false"}}}),Kga:w,
Va:s,hidden:w,f:function(a){this.parent(j,ig.lang.get("sc.gui.information.title"));this.a.zIndex=99;this.a.Ee=j;this.text=new ig.Oa(a.text);if(a.altText){this.Sla=new ig.Oa(a.altText);this.K9=new ig.ce(a.altCondition)}this.Va=new sc.ea(this.text,{maxWidth:200});this.ds(this.Va);this.PSa();this.l(0,3);this.F(ig.k.ha,ig.k.xb);this.show()},dn:function(){sc.K.Na(sc.q,this)},th:function(){sc.K.lc(sc.q,this)},PSa:function(){if(this.K9&&this.K9.evaluate()!=this.Kga){this.Kga=!this.Kga;this.Va.fa(this.Kga?
this.Sla:this.text);this.Vea(0,this.Va);this.hide(j);this.show()}},lb:function(a,b){if(b==sc.Le.Vw||b==sc.Le.jq)!this.hidden&&a.SJ()&&!a.Mq()&&!a.xo()&&!a.yV()&&!a.cP()&&!a.Ss()?this.show():this.hide()},Fg:function(){this.PSa()},remove:function(){this.parent()}})});ig.G=j;
ig.I("game.feature.combat.gui.hp-bar-boss").J("impact.feature.gui.gui","impact.feature.gui.base.box").H(function(){Vec2.create();sc.zxa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),Bdb:new ig.$b("media/gui/status-gui.png",{width:12,height:0,left:10,top:11,right:10,bottom:0,Fb:{"default":{x:0,y:213}}}),Adb:new ig.$b("media/gui/status-gui.png",{width:12,height:0,left:6,top:7,right:6,bottom:0,Fb:{"default":{x:32,y:215}}}),yg:0,Yi:0,tJ:0,Mg:0,n:0,QLa:s,f:function(a,b,c){this.parent();this.QLa=
a;this.bdb=c;this.olb=b;this.a.zIndex=0;this.a.TC=j},Jua:L("Mg"),Np:function(a,b){this.n=0.75;if((this.Yi-this.yg)*(a-this.Yi)<0)this.tJ=a;this.Yi=a;if(this.Yi<0)this.Yi=0;if(b){this.tJ=this.Yi;this.n=0}},update:function(){if(this.n>0){this.n=this.n-ig.g.ga;if(this.n<=0)this.tJ=this.Yi}if(this.tJ!=this.yg){var a=ig.g.Da*this.Mg/4;if(this.yg>this.tJ)this.yg=Math.max(this.tJ,this.yg-a);else if(this.yg<this.tJ)this.yg=Math.min(this.tJ,this.yg+a)}},va:function(a){var b=this.a;this.Bdb.Xa(a,b.size.x,b.size.y,
"default");var c=this.Mg,d=b.size.y-4,e=this.QLa+12,b=b.size.x-e-12-d+1;this.Adb.Xa(a,b+d-1,d,"default",e,2);var h=Math.round(b*Math.min(this.Yi,this.yg)/c),c=Math.round(b*Math.max(this.Yi,this.yg)/c);h&&this.vSa(a,e,h,this.olb,this.bdb,d);c!=h&&this.vSa(a,e+h,c-h,"white","white",d);if(this.target){d=this.target.bc.fV;for(c=d.length;c-- >this.target.nA;){h=Math.round(d[c].Fh*b)-10;a.ia(this.r,e+h,0,56,213,24,11)}}},vSa:function(a,b,c,d,e,h){for(var k=2,b=b+h-1,l=Math.ceil(h/2);h--;){a.Ec(h>=l?d:e,
b,k,c,1);k++;b--}}});sc.Axa=sc.zxa.extend({N:{DEFAULT:{state:{},time:0.25,p:KEY_SPLINES.EASE_OUT},CUTSCENE:{state:{offsetY:20},time:0.25,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:1,Ma:0},time:0.25,p:KEY_SPLINES.EASE_IN}},target:s,f:function(a,b){this.parent(b,"#ff7a7a","#d71112");this.target=a;sc.K.Na(sc.q,this);this.j("HIDDEN",j);this.target.dx!=sc.Ow.PEACEFUL&&(sc.q.Qe()?this.j("CUTSCENE"):this.j("DEFAULT"))},cca:function(){this.Jua(this.target.ba.le("hp"));this.Np(this.target.ba.Jb,j);sc.K.Na(this.target.ba,
this)},lb:function(a,b){if(a instanceof sc.WY)b==sc.Le.Vw&&this.target.dx!=sc.Ow.PEACEFUL&&(a.Qe()?this.j("CUTSCENE"):this.j("DEFAULT"));else{this.Jua(this.target.ba.le("hp"));this.K5(this.target.ba.Jb)}},K5:function(a){this.Np(a)},update:function(){if(!this.a.qj){if(this.target.dx==sc.Ow.PEACEFUL){this.j("HIDDEN");return}sc.q.Qe()?this.j("CUTSCENE"):this.j("DEFAULT")}this.parent()},remove:function(){this.target.ba&&sc.K.lc(this.target.ba,this);sc.K.lc(sc.q,this);this.j("HIDDEN",w,j)},Yaa:function(){this.target.ba&&
sc.K.lc(this.target.ba,this);sc.K.lc(sc.q,this);this.j("HIDDEN",j,j)}});sc.nja={};sc.nja.BOSS=sc.Axa.extend({SF:s,f:function(a){this.SF=new sc.ea("Boss",{font:sc.Ka.Lb});this.SF.l(12,2);this.parent(a,this.SF.a.size.x+4);this.m(this.SF);this.v(ig.g.width-4,11);this.rb(this.a.size.x/2,5.5);this.F(ig.k.za,ig.k.xb);this.l(0,4)}});sc.nja.PVP=sc.Axa.extend({$U:new ig.$("media/gui/severed-heads.png"),Cjb:new ig.$b("media/gui/status-gui.png",{width:13,height:0,left:7,top:7,right:7,bottom:0,Fb:{"default":{x:0,
y:128}}}),f:function(a){this.parent(a,4);this.v(ig.g.width/3,9);this.rb(this.a.size.x/2,this.a.size.y/2);this.F(ig.k.ha,ig.k.xb);this.l(2,4);this.Ey=new sc.bBa(a.ba);this.Ey.l(12,-6);this.m(this.Ey)},va:function(a){this.parent(a);this.Cjb.Xa(a,36,7,"default",4,-8);a.ia(this.r,-15,-13,231,175,25,25);a.ia(this.$U,-14,-16,this.target.zO()*24,0,24,24)}})});ig.G=j;
ig.I("game.feature.gui.widget.bar-widget").J("game.feature.gui.base.boxes","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.base.image","impact.base.lang","game.feature.gui.base.boxes","game.feature.combat.gui.hp-bar-boss").H(function(){var a={FILL:1,EMPTY:2},b={RED:{upper:"#ff7a7a",lower:"#d71112"},GREEN:{upper:"#96f766",lower:"#25b000"}};ig.Ji.BarWidget=sc.zxa.extend({N:{DEFAULT:{state:{},time:0.25,p:KEY_SPLINES.EASE_OUT},CUTSCENE:{state:{offsetY:20},time:0.25,p:KEY_SPLINES.EASE_OUT},
HIDDEN:{state:{Ia:1,Ma:0},time:0.25,p:KEY_SPLINES.EASE_IN}},s:new ig.u({width:500,attributes:{text:{c:"LangLabel",d:"Text to display infront of widget.",mq:j},gc:{c:"VarName",d:"Variable from which to fetch the value"},Mg:{c:"Number",d:"Maximum value of bar"},bma:{c:"String",d:"Type of Bar. EMPTY => is empty when value=maxValue",Y:a},color:{c:"String",d:"Color of Bar",Y:b}}}),SF:s,gc:s,bma:s,prevValue:-1,f:function(c){var d=new ig.Oa(c.text);this.SF=new sc.ea(d.toString(),{font:sc.Ka.Lb});this.SF.l(12,
2);d=b[c.color]||b.RED;this.parent(this.SF.a.size.x+4,d.upper,d.lower);this.m(this.SF);this.v(ig.g.width/2,11);this.rb(this.a.size.x/2,5.5);this.F(ig.k.ha,ig.k.xb);this.l(2,4);this.gc=c.variable;this.bma=a[c.barType];this.Jua(c.maxValue)},dn:function(){sc.K.Na(sc.q,this);this.j("HIDDEN",j);this.j(sc.q.Qe()?"CUTSCENE":"DEFAULT");this.Iga(j)},th:function(){sc.K.lc(sc.q,this)},lb:function(a,b){a instanceof sc.WY&&b==sc.Le.Vw&&(a.Qe()?this.j("CUTSCENE"):this.j("DEFAULT"))},Iga:function(b){var d=ig.pa.get(this.gc);
if(d!=this.prevValue){this.prevValue=d;this.bma==a.EMPTY&&(d=this.Mg-d);this.Np(d,b)}},Fg:function(){this.Iga()},remove:function(){this.j("HIDDEN",w,j)}})});ig.G=j;
ig.I("game.feature.gui.widget.indiegogo-gui").J("impact.feature.gui.gui","impact.feature.interact.gui.focus-gui","impact.feature.gui.base.box").H(function(){sc.kWa="http://www.cross-code.com/page/api/get-indiegogo-data.php";sc.xmb=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_IN},HIDDEN:{state:{alpha:0,offsetY:-20},time:0.2,p:KEY_SPLINES.EASE_OUT}},button:s,KO:s,Jab:s,Ga:w,f:function(){this.parent();this.v(158,93);this.button=new sc.rWa(this.Ndb.bind(this));this.m(this.button);this.KO=
new sc.vWa;this.KO.F(ig.k.fb,ig.k.xb);this.KO.l(0,94);this.m(this.KO)},setData:function(a){this.Jab=a.goals;this.button.setData(a);this.KO.setData(a.goals);this.Ga&&this.j("DEFAULT")},Ndb:function(a){this.KO.Eib(a)},update:function(){this.KO.$ib(this.button.focus)},show:function(){this.Ga=j;$.ajax({url:sc.kWa,type:"GET",dataType:"json",async:j,success:this.T2a.bind(this)})},T2a:function(a){this.setData(a)},hide:function(a){this.Ga=w;this.j("HIDDEN",a)}});sc.rWa=ig.Vn.extend({r:new ig.$("media/gui/indiegogo.png"),
Jd:s,Z0:s,O1:s,W_:s,f:function(a){this.parent();this.v(158,93);this.Jd=new sc.sWa;this.m(this.Jd);var b=new sc.ea("days\nleft!",{font:sc.Ka.Lb});b.F(ig.k.ha,ig.k.W);b.l(10,8);this.m(b);this.Z0=new sc.Ib(99,{size:sc.uf.hh,transitionTime:3});this.Z0.F(ig.k.ha,ig.k.W);this.Z0.l(37,9);this.m(this.Z0);b=new sc.ea("fund-o-meter",{font:sc.Ka.Lb});b.F(ig.k.ha,ig.k.xb);b.l(9,27);this.m(b);this.O1=new sc.tWa(a);this.O1.F(ig.k.fb,ig.k.xb);this.O1.l(5,23);this.m(this.O1);this.W_=new sc.ea("",{font:sc.Ka.font,
speed:ig.rd.Nd.Ki});this.W_.F(ig.k.za,ig.k.xb);this.W_.l(0,3);this.m(this.W_)},setData:function(a){this.O1.setData(a.goals,a.current);this.Z0.sa(a.days,j);this.W_.fa(a.callToAction||"Make it happen!")},update:function(){this.Jd.j(this.focus?"DEFAULT":"HIDDEN")},va:function(a){var b=this.a;a.ia(this.r,0,0,0,0,b.size.x,b.size.y)},Qb:function(){sc.qd.submit.play();window.SHOW_INDIEGOGO&&window.SHOW_INDIEGOGO()}});sc.sWa=ig.te.extend({eb:new ig.$b("media/gui/indiegogo.png",{width:8,height:8,left:8,top:8,
right:8,bottom:8,Fb:{"default":{x:184,y:0}}}),N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}},f:function(){this.parent(158,93,w)}});sc.tWa=ig.X.extend({r:new ig.$("media/gui/indiegogo.png"),EHa:s,zF:s,value:0,Mg:0,bA:0,Zt:0,Az:new ig.da("media/sound/hud/dialog-beep-2.ogg",0.5),n0:0,f:function(a){this.parent();this.v(148,5);this.EHa=a},setData:function(a,b){this.zF=a;this.Mg=b;this.bA=this.value=0},update:function(){if(this.zF){var a=this.zF[this.bA].money-
(this.bA?this.zF[this.bA-1].money:0);if(this.value<this.Mg){this.value=this.value+Math.min(a*1,4E4)*ig.g.Da;if(this.value>=this.Mg){this.value=this.Mg;this.Az.play(s)}else{this.n0=this.n0+ig.g.Da;if(this.n0>0.05){this.n0=this.n0-0.05;a=0.2+0.8*(Math.log(this.value/5)/13);this.Az.play(s,{speed:a})}}}for(a=this.zF.length;a--;)if(this.zF[a].money<=this.value)break;a++;if(a>this.bA){this.bA=a;this.EHa(a);this.Zt=0.4}if(this.Zt>0)this.Zt=this.Zt-ig.g.Da}},va:function(a){if(this.zF){var b=this.bA?this.zF[this.bA-
1].money:0,c=this.a,k=Math.floor(c.size.x*((this.value-b)/(this.zF[this.bA].money-b)%1));if(this.Zt>0){b=this.bA%2?112:120;a.ia(this.r,0,0,0,b,c.size.x,c.size.y).wd(this.Zt/0.4)}b=this.bA%2?120:112;a.ia(this.r,0,0,0,b,k,c.size.y)}}});var a={x:160,y:16},b={x:160,y:24},c={x:160,y:32};sc.uWa=ig.te.extend({r:new ig.$("media/gui/indiegogo.png"),eb:new ig.$b("media/gui/indiegogo.png",{width:16,height:8,left:4,top:4,right:4,bottom:4,Fb:{"default":{x:160,y:0}}}),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},
FADE_1:{state:{alpha:0.9},time:0.2,p:KEY_SPLINES.LINEAR},FADE_2:{state:{alpha:0.75},time:0.2,p:KEY_SPLINES.LINEAR},FADE_3:{state:{alpha:0.5},time:0.2,p:KEY_SPLINES.LINEAR},FADE_4:{state:{alpha:0.2},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},Zj:1,qa:s,f:function(b){b=new sc.ea(b,{font:sc.Ka.Lb,maxWidth:138});b.l(16,2);this.parent(158,4+b.a.size.y-1,w);this.m(b);this.qa=new ig.Dc;this.qa.F(ig.k.fb,ig.k.gb);this.qa.l(4,0);this.m(this.qa);this.LPa(a);this.a.Vc=
0.9},LPa:function(a){this.qa.PPa(this.r,a.x,a.y,10,8)}});sc.vWa=ig.X.extend({Cba:[],Nga:w,MK:0,f:function(){this.parent();this.v(158,0)},setData:function(a){this.rg();for(var b=this.MK=this.Cba.length=0;b<a.length;++b){var c=new sc.uWa(a[b].text);this.Cba.push(c);c.F(ig.k.za,ig.k.xb);this.m(c)}this.yR()},yR:function(){for(var d=this.Cba.length,e=0;d--;){var h=this.Cba[d];h.bd(0,e,0.2);var k=a;d<this.MK?k=c:d==this.MK&&(k=b);h.LPa(k);if(this.Nga||d<=this.MK)e=e+(h.a.size.y+1);k="DEFAULT";if(!this.Nga)if(d>
this.MK)k="HIDDEN";else if(d<this.MK-5){k=this.MK-5-d;k=k>4?"HIDDEN":"FADE_"+k}h.j(k)}},$ib:function(a){if(this.Nga!=a){this.Nga=a;this.yR()}},Eib:function(a){this.MK=a;this.yR()}})});ig.G=j;
ig.I("game.feature.gui.widget.level-up-hud").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.boxes","impact.base.image").H(function(){var a=["level","cp","hp","attack","defense","focus"];sc.lXa=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),jT:0,f:function(){this.parent();this.v(136,20)},update:function(){if(this.jT<1.5){this.jT=this.jT+ig.g.Da;if(this.jT>1.5)this.jT=1.5}},va:function(a){a.ia(this.r,1,0,0,192,112,20);var c=this.jT/1.5,c=KEY_SPLINES.EASE_OUT.get(c),
c=c*12%1,d=0,d=0,e=20,d=Math.round(c*20);(e=e-d)&&a.ia(this.r,113,0,112,192+d,23,e);e=20;d=Math.round((1-c)*20);(e=e-d)&&a.ia(this.r,113,d,112,192,23,e)}});sc.mXa=sc.tja.extend({f1:s,f:function(b){this.parent(j,ig.lang.get("sc.gui.levelup.title"));this.a.zIndex=99;this.a.Ee=j;this.f1=b.deltaValues;for(var b=178,c=a.length;c--;)this.f1[a[c]]||(b=b+22);this.l(0,b);this.F(ig.k.ha,ig.k.W);this.show()},k5a:function(a){if(!this.f1[a])return w;var c=ig.lang.get("sc.gui.levelup."+a),d=Math.min(0.5,this.f1[a]*
0.07),c=new sc.bXa(c,60,9999,{signed:j,showPlus:j,transitionTime:d});c.sa(this.f1[a],w);this.ds(c,j);return j}});ig.Ji.LevelUpHud=ig.NZ.extend({N:{DEFAULT:{state:{alpha:1},time:0.5,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:1},time:0.5,p:KEY_SPLINES.EASE_IN}},pe:s,Ri:0,n:0,Afa:s,Dca:s,f:function(a){this.parent(j,ig.lang.get("sc.gui.levelup.title"));this.v(ig.g.width,ig.g.height);this.Afa=new sc.mXa(a);this.m(this.Afa);a=new sc.lXa;this.Dca=new sc.qXa(a,32);this.Dca.l(0,100);this.m(this.Dca);this.pe=
new sc.At(this);ig.ua.de(this.pe);ig.pa.set("tmp._levelUpFinished",w)},update:function(){if(this.Ri<a.length){this.n=this.n-ig.g.Da;if(this.n<=0){do{var b=this.Afa.k5a(a[this.Ri]);this.Ri++}while(this.Ri<a.length&&!b);this.n=0.5}}},ql:function(){if(this.Ri<a.length)this.n=0;else{ig.pa.set("tmp._levelUpFinished",j);ig.ua.ie(this.pe);this.remove()}},remove:function(){this.Dca.j("HIDDEN",w,j);this.Afa.remove();this.j("HIDDEN",w,j)}})});ig.G=j;
ig.I("game.feature.gui.widget.social").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.base.image").H(function(){ig.Ji.Social=ig.NZ.extend({N:{DEFAULT:{state:{alpha:1},time:0,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},s:new ig.u({width:500,attributes:{},label:R("Social Gui! FOLLOW US FFS!!!")}),f:function(){this.parent();this.v(200,32);this.F(ig.k.za,ig.k.xb);this.a.zIndex=100;$("#socialPopup").css({display:"block",height:0});$("#socialPopup").animate({height:110},
400)},remove:function(){this.parent();$("#socialPopup").animate({height:0},400,"swing",function(){$("#socialPopup").hide()})}})});ig.G=j;
ig.I("game.feature.gui.widget.timer-gui").J("impact.base.event","game.feature.gui.base.boxes","game.feature.gui.base.numbers").H(function(){ig.Ji.TimerGui=sc.uja.extend({i:{x:4,y:50},size:{x:80,y:18},cb:{x:40,y:6},align:{x:ig.k.fb,y:ig.k.W},s:new ig.u({width:100,attributes:{start:{c:"Boolean",d:"True if the timer should start right aways"}}}),N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-100},time:0.3,p:KEY_SPLINES.LINEAR}},r:new ig.$("media/gui/basic.png"),yT:s,
wy:s,vA:s,time:0,Hp:w,zIndex:1001,f:function(a){this.parent(w,"Timer");this.v(80,16);this.l(0,60);this.a.zIndex=1E6;this.yT=new sc.Ib(99,{padZeros:j});this.wy=new sc.Ib(99,{padZeros:j});this.vA=new sc.Ib(99,{padZeros:j});this.yT.F(ig.k.ha,ig.k.W);this.wy.F(ig.k.ha,ig.k.W);this.vA.F(ig.k.ha,ig.k.W);var b=8;this.yT.l(b,3);var b=b+this.yT.a.size.x,c=new ig.Dc(this.r,104,0,8,8);c.F(ig.k.ha,ig.k.W);c.l(b,3);this.m(c);b=b+8;this.wy.l(b,3);b=b+this.wy.a.size.x;c=new ig.Dc(this.r,104,0,8,8);c.F(ig.k.ha,ig.k.W);
c.l(b,3);this.m(c);this.vA.l(b+8,3);this.m(this.yT);this.m(this.wy);this.m(this.vA);if(a)this.Hp=a.start||w;this.j("HIDDEN",j);this.j("DEFAULT")},update:function(){if(this.Hp)this.time=this.time+ig.g.ga;var a=Math.floor(this.time*100);this.yT.sa(a%100);a=Math.floor(a/100);this.wy.sa(a%60);a=Math.floor(a/60);this.vA.sa(a);this.parent()},start:function(){this.Hp=j},stop:function(){this.Hp=w},remove:function(){this.j("HIDDEN",w,j)}});ig.ma.STOP_TIMER=ig.na.extend({hide:s,s:new ig.u({attributes:{hide:{c:"Boolean",
d:"True if the timer should be hidden and removed."}}}),f:function(a){this.hide=a.hide},start:function(){var a=ig.T.ky.timer;if(a){a.stop();this.hide&&a.remove()}}})});ig.G=j;
ig.I("game.feature.gui.widget.sergey-mode").J("impact.feature.gui.gui").H(function(){ig.Ji.SergeyMode=ig.X.extend({s:new ig.u({width:100,attributes:{}}),N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}},NT:s,wm:s,oRa:s,qHa:s,scroll:0,f:function(){this.parent();this.v(ig.g.width,ig.g.height);this.a.zIndex=49;this.a.Vc=0.4;this.NT=new ig.$("media/gui/sergey-mode-corner.png");this.wm=new ig.cv("media/gui/sergey-mode-corner.png",ig.ue.Pf.gz,64,
64,64,0,1,1);this.oRa=new ig.da("media/sound/scenes/sergey-mode-start.ogg",0.8);this.qHa=new ig.da("media/sound/scenes/sergey-mode-end.ogg",0.8)},Qa:function(){this.NT.zc();this.wm.zc()},dn:function(){this.j("HIDDEN",j);this.j("DEFAULT");ig.Yd.Gea();this.oRa.play()},update:function(){this.scroll=this.scroll-ig.g.Da*32},va:function(a){a.Rj(this.wm.eu(0),0,0,this.scroll,this.scroll,ig.g.width,ig.g.height).dh("lighter");a.ia(this.NT,0,20,0,0,64,64,w,w).dh("lighter");a.ia(this.NT,ig.g.width-64,20,0,0,
64,64,j,w).dh("lighter");a.ia(this.NT,ig.g.width-64,ig.g.height-64-20,0,0,64,64,j,j).dh("lighter");a.ia(this.NT,0,ig.g.height-64-20,0,0,64,64,w,j).dh("lighter")},remove:function(){this.qHa.play();ig.Yd.fea();this.j("HIDDEN",w,j)}})});ig.G=j;
ig.I("game.feature.gui.widget.chest-items").J("impact.base.image","impact.feature.gui.gui","game.feature.inventory.inventory").H(function(){var a=Vec2.pc(),b=Vec2.pc(),c=Vec2.pc(),d=[0,30,-30,45,-45,15,-15];sc.FWa=ig.X.extend({N:{HIDDEN:{state:{Ia:0,Ma:0,oc:-(Math.PI/2)},time:0.3,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},END:{state:{alpha:0},time:0.5,p:KEY_SPLINES.LINEAR}},qa:s,n:0,target:s,Ak:0.4,Q3:0.4,jaa:Vec2.create(0,0),f:function(a,b,c,d,m){this.parent();this.v(14,
16);this.rb(7,8);this.l(c.x,c.y);this.jaa.x=d.x-c.x;this.jaa.y=d.y-c.y;this.target=a;this.qa=new ig.rd(sc.Ka.font,"\\i["+b+"]",{speed:ig.rd.Nd.We});this.j("HIDDEN",j);this.start(d,m)},start:function(a,b){this.j("DEFAULT",w,w,s,b);this.n=1;this.Q3=0.4;this.Ak=0},update:function(){if(this.n>0){this.n=this.n-ig.g.Da;this.n<=0&&this.j("END",w,j)}var b=this.a,c=this.target.b;ig.g.Kv(a,Math.round(c.i.x+c.size.x/2),Math.round(c.i.y-c.i.z-c.size.z/2+c.size.y/2));b.i.x=a.x-b.size.x/2;b.i.y=a.y-b.size.y/2;
if(this.Ak<this.Q3){this.Ak=this.Ak+ig.g.Da;if(this.Ak>=this.Q3)this.Ak=this.Q3}c=Math.min(1,Math.max(0,this.Ak)/this.Q3);c=KEY_SPLINES.EASE_OUT.get(c);b.i.x=b.i.x+this.jaa.x*c;b.i.y=b.i.y+this.jaa.y*c},va:function(a){a.ax().fa(this.qa,0,0)}});sc.GWa=ig.X.extend({f:function(){this.parent();this.v(ig.g.width,ig.g.height);this.a.zIndex=5},bx:function(e,h,k){var l=s,l=-1E6,l=l=0,h=sc.Pb.getItem(h),h=(h.icon||"item-default")+sc.Pb.uo(h.rarity||0),m=0,n=e.b;ig.g.Kv(a,Math.round(n.i.x+n.size.x/2),Math.round(n.i.y-
n.i.z-n.size.z/2+n.size.y/2));Vec2.WX(a,7,8);for(n=0;n<k;n++){l=d[n%d.length];l=l+(-2+Math.random()*4);l=l*(Math.PI/180);b.x=Math.sin(l);b.y=Math.cos(l);l=Math.floor(20+Math.random()*20);c.x=Math.floor(a.x-b.x*l);c.y=Math.floor(a.y-b.y*l);l=new sc.FWa(e,h,a,c,m);this.m(l);m=m+0.08}}})});ig.G=j;
ig.I("game.feature.gui.widget.demo-stats").J("impact.base.event","game.feature.gui.base.boxes","game.feature.gui.base.numbers").H(function(){function a(){var a=sc.ta.pg("player","playtime");return b(a/60/60,3)+":"+b(Math.floor(a/60)%60,2)+":"+b(Math.floor(a)%60,2)}function b(a,b){var e="0000"+Math.floor(a);return e.length>=4+b?Math.floor(a):e.substr(e.length-b)}sc.IUa=ig.X.extend({ee:s,mf:s,htb:s,name:s,value:s,Iwa:s,f:function(a,b,e,h){this.parent();this.a.size.x=200;this.a.size.y=20;this.ee=new sc.ea(ig.lang.get("sc.gui.stats."+
a)+":");this.ee.F(ig.k.fb,ig.k.gb);this.ee.l(10,0);this.m(this.ee);this.mf=new sc.ea(b+"");this.mf.F(ig.k.ha,ig.k.gb);this.m(this.mf);e&&this.F5a(e);h&&this.E5a(h)},update:function(){this.Iwa&&this.Iwa(this)},Np:function(a){this.mf.fa(a+"")},F5a:function(a){this.Iwa=a||s},E5a:function(a){a=new sc.ea(" / "+a);a.F(ig.k.ha,ig.k.gb);this.m(a);this.mf.l(a.a.size.x+5,0)}});sc.gmb=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},
bgColor:s,ge:s,content:s,Ob:s,pe:s,f:function(a){this.parent();this.a.Vc=0.8;this.a.zIndex=90;this.a.cr=j;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.Ob=a;this.pe=new sc.At(this);this.content=new ig.X;this.content.v(210,160);this.mz();this.ge=new sc.uB(this.content);this.ge.F(ig.k.za,ig.k.gb);this.m(this.ge);this.j("HIDDEN",j);this.j("DEFAULT");ig.g.tl||ig.ua.de(this.pe)},update:function(){!this.a.qj&&ig.g.tl&&this.rk();this.parent()},va:function(a){a.Ec("#000",0,0,this.a.size.x,this.a.size.y)},
ql:function(){ig.ua.ie(this.pe);this.rk()},mz:function(){var b=2,d=new sc.ea(ig.lang.get("sc.gui.stats.stats"));d.F(ig.k.za,ig.k.W);d.l(0,b);this.content.m(d);b=b+(d.a.size.y+2);d=new sc.FH(200);d.F(ig.k.za,ig.k.W);d.l(0,b);this.content.m(d);b=this.FS(b+4,"time",a(),function(b){b.Np(a())}.bind(this));d=sc.ta.pg("chests","autumn-area");b=this.FS(b,"chests",d,s,Math.max(27,d));b=this.FS(b,"level",sc.q.R.aa||0);b=this.FS(b,"exp",sc.ta.pg("player","exp")||0);b=this.FS(b,"money",sc.ta.pg("player","money")||
0);b=this.FS(b,"kills",sc.ta.pg("combat","totalKilled")||0)},FS:function(a,b,e,h,k){b=new sc.IUa(b,e,h,k);b.l(0,a);this.content.m(b);return a+b.a.size.y+2},rk:function(){this.ge.j("HIDDEN");this.j("HIDDEN",w,j);this.Ob&&this.Ob()}})});ig.G=j;
ig.I("game.feature.gui.widget.demo-highscore").J("impact.base.event","impact.feature.gui.base.basic-gui","game.feature.gui.base.boxes","game.feature.gui.base.numbers").H(function(){function a(a){return b(a/60/60)+":"+b(a/60)+":"+b(Math.floor(a)%60)+"."+b(a*100%100)}function b(a){var b="0000"+Math.floor(a);return b.length>=6?Math.floor(a):b.substr(b.length-2)}sc.GUa=ig.X.extend({ee:s,mf:s,name:s,value:s,f:function(c,d,e){this.parent();this.a.size.x=200;this.a.size.y=18;this.ee=new sc.ea((e?"\\c[3]":
"")+b(c));this.ee.F(ig.k.fb,ig.k.gb);this.ee.l(10,0);this.m(this.ee);this.mf=new sc.ea((e?"\\c[3]":"")+a(d));this.mf.F(ig.k.ha,ig.k.gb);this.m(this.mf);d=new ig.Lf("#222222",200,1);d.F(ig.k.za,ig.k.xb);d.l(5,0);this.m(d);if(c%2==1&&!e){this.ee.a.Vc=0.6;this.mf.a.Vc=0.6}}});sc.FUa=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},ge:s,content:s,Ob:s,pe:s,Lp:w,f:function(a,b){this.parent();this.a.Vc=0.8;this.a.zIndex=90;
this.a.cr=j;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.Ob=a;this.Lp=b!=g?b:w;this.pe=new sc.At(this);this.content=new ig.X;this.content.v(210,218);this.mz();this.ge=new sc.uB(this.content);this.ge.F(ig.k.za,ig.k.gb);this.m(this.ge);this.j("HIDDEN",j);this.j("DEFAULT");ig.g.tl||ig.ua.de(this.pe)},update:function(){!this.a.qj&&ig.g.tl&&this.rk();this.parent()},va:function(a){a.Ec("#000",0,0,this.a.size.x,this.a.size.y)},ql:function(){ig.ua.ie(this.pe);this.rk()},mz:function(){var a=2,b=
new sc.ea(ig.lang.get("sc.gui.highscore.header"+(this.Lp?"2":"")));b.F(ig.k.za,ig.k.W);b.l(0,a);this.content.m(b);a=a+(b.a.size.y+2);b=new sc.FH(200);b.F(ig.k.za,ig.k.W);b.l(0,a);this.content.m(b);for(var a=a+4,b=this.Lp?sc.q.D2:sc.q.C2,e=0;e<10;e++)a=b[e]!=g?this.lCa(a,e+1,b[e],e==0):this.lCa(a,e+1,0,e==0)},lCa:function(a,b,e,h){b=new sc.GUa(b,e,h);b.l(0,a);this.content.m(b);return a+b.a.size.y+1},rk:function(){this.ge.j("HIDDEN");this.j("HIDDEN",w,j);this.Ob&&this.Ob()}});sc.HUa=ig.X.extend({N:{DEFAULT:{state:{alpha:1},
time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},ge:s,content:s,Ob:s,pe:s,W3:w,NK:s,Lp:w,f:function(a,b){this.parent();this.a.Vc=0.8;this.a.zIndex=90;this.a.cr=j;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.l(0,80);this.Ob=a;this.Lp=b!=g?b:w;this.pe=new sc.At(this);this.content=new ig.X;this.content.v(180,60);this.mz();this.ge=new sc.uB(this.content);this.ge.F(ig.k.za,ig.k.gb);this.ge.Hz.a.Vc=0.9;this.m(this.ge);this.j("HIDDEN",j);this.j("DEFAULT");
ig.g.tl||ig.ua.de(this.pe)},update:function(){!this.a.qj&&(this.W3&&ig.g.tl)&&this.rk();this.parent()},ql:function(){if(this.W3){ig.ua.ie(this.pe);this.rk()}else this.NK.finish()},mz:function(){var b=2,d=new sc.ea(ig.lang.get("sc.gui.highscore.last-time"+(this.Lp?"2":"")));d.F(ig.k.za,ig.k.W);d.l(0,b);this.content.m(d);b=b+(d.a.size.y+2);d=new sc.FH(170);d.F(ig.k.za,ig.k.W);d.l(0,b);this.content.m(d);var b=b+4,d=sc.q,e=new sc.ea("\\c[3]"+a(d.hV));e.F(ig.k.za,ig.k.W);e.l(0,b);this.content.m(e);b=b+
(e.a.size.y+2);this.W3=j;e=this.Lp?d.D2:d.C2;if(e[0]!=g&&d.hV==e[0]){this.NK=new sc.ea("\\c[3]"+ig.lang.get("sc.gui.highscore.new-record"),{speed:ig.rd.Nd.Ki});this.NK.a.N={DEFAULT:{state:{alpha:1},time:0.1,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.EASE_IN}};this.W3=w;this.NK.F(ig.k.za,ig.k.W);this.NK.l(0,b);this.NK.j("HIDDEN",j);this.NK.j("DEFAULT",w,w,function(){this.W3=j}.bind(this),0.3);this.content.m(this.NK)}},rk:function(){this.ge.j("HIDDEN");this.j("HIDDEN",w,j);
this.Ob&&this.Ob()}})});ig.G=j;
ig.I("game.feature.gui.widget.tutorial-marker").J("impact.base.image","game.feature.gui.base.boxes").H(function(){sc.WH={BOTTOM_RIGHT:{xr:ig.k.fb,Mt:ig.k.W,xF:w,Ia:1,Ma:1},BOTTOM_LEFT:{xr:ig.k.ha,Mt:ig.k.W,xF:j,Ia:-1,Ma:1},TOP_RIGHT:{xr:ig.k.fb,Mt:ig.k.xb,xF:j,Ia:1,Ma:-1},TOP_LEFT:{xr:ig.k.ha,Mt:ig.k.xb,xF:w,Ia:-1,Ma:-1}};sc.H1a=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.15,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:0,Ma:0},time:0.15,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/message.png"),
f:function(a,b){this.parent();var a=a||sc.WH.TOP_LEFT,c=new sc.b_a(a.xF),b=new sc.ea(b,{maxWidth:200});c.uh(b);c.F(a.xr,a.Mt);c.l(18,18);this.m(c);var d=new ig.Dc(this.r,56,64,32,32);d.a.tw(a.Ia,a.Ma);d.F(a.xr,a.Mt);this.m(d);this.v(c.a.size.x+18,c.a.size.y+18);this.rb(this.a.size.x*(1-(a.Ia+1)/2),this.a.size.y*(1-(a.Ma+1)/2));this.j("HIDDEN",j)}});sc.I1a=ig.X.extend({x:0,y:0,width:0,height:0,N:{DEFAULT:{state:{alpha:0.7},time:0.15,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:1,Ma:1},time:0.15,
p:KEY_SPLINES.EASE_IN}},f:function(a,b,c,d){this.parent();this.x=a;this.y=b;this.width=c;this.height=d;this.v(ig.g.width,ig.g.height);this.rb(this.x+this.width/2,this.y+this.height/2);this.j("HIDDEN",j)},va:function(a){var b=this.a.size.x,c=this.a.size.y;a.Ec("black",0,0,b,this.y);a.Ec("black",0,this.y,this.x,this.height);a.Ec("black",this.x+this.width,this.y,b-this.x-this.width,this.height);a.Ec("black",0,this.y+this.height,b,c-this.y-this.height)}});sc.wBa=ig.X.extend({N:{DEFAULT:{state:{alpha:1},
time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_IN}},vQa:s,vo:s,aOa:s,Ob:s,pe:s,Kb:{start:new ig.da("media/sound/hud/popup-2.ogg",1)},f:function(a,b,c,d,e,h,k,l,m){this.parent();this.a.Ee=j;this.v(ig.g.width,ig.g.height);this.a.zIndex=2E3;this.uL=l;l=new sc.I1a(a,b,c,d);this.m(l);this.vQa=l;var n=new sc.X1a(c+2,d+2);n.l(a-1,b-1);n.j("HIDDEN",j);this.m(n);this.vo=n;e=new sc.H1a(h,e);a=a+c*k;b=h.Ma==1?b+d:b-e.a.size.y;h.Ia==-1&&(a=a-e.a.size.x);e.l(a,b);this.m(e);
this.aOa=e;l.j("DEFAULT");n.j("DEFAULT");e.j("DEFAULT",w,w,s,0.1);if(this.uL){ig.it.add(0,0,"tutorialMsg");ig.Yd.Gea();this.Kb.start.play()}this.Ob=m;this.pe=new sc.At(this);this.pe.nFa=j;ig.ua.de(this.pe)},ql:function(){ig.ua.ie(this.pe);this.rk()},rk:function(){this.vQa.j("HIDDEN");this.vo.j("HIDDEN");this.aOa.j("HIDDEN");this.j("HIDDEN",w,j);if(this.uL){ig.Yd.fea();ig.it.F0("tutorialMsg",0)}this.Ob&&this.Ob()}})});ig.G=j;
ig.I("game.feature.gui.widget.tutorial-start-gui").J("impact.base.image","impact.feature.interact.gui.focus-gui","game.feature.interact.button-group","game.feature.gui.base.compact-choice-box").H(function(){sc.L1a=ig.X.extend({f:function(a,b){this.parent();var c=new sc.ea(ig.lang.get(a.title),{font:sc.Ka.Lb});c.F(ig.k.za,ig.k.W);this.m(c);var d=new sc.ea(b);d.F(ig.k.za,ig.k.W);d.l(0,c.a.size.y);this.m(d);this.v(Math.max(c.a.size.x,d.a.size.x),c.a.size.y+d.a.size.y)}});sc.J1a=ig.X.extend({f:function(a,
b){this.parent();var c=s,d=0;if(b){c=new ig.Dc(b);c.F(ig.k.za,ig.k.W);this.m(c);d=d+(c.a.size.y+2)}var e=new sc.ea(a,{maxWidth:c&&c.a.size.x||400,textAlign:ig.Gg.vj.cq});e.F(ig.k.za,ig.k.W);e.l(0,d);this.m(e);d=d+e.a.size.y;this.v(Math.max(c&&c.a.size.x,e.a.size.x),d)}});sc.K1a=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},bgColor:s,E6:s,qGa:s,L0:s,Hz:s,a1:s,pe:s,Tsa:w,Kb:{start:new ig.da("media/sound/hud/popup.ogg",
1)},f:function(a,b,c,d,e){this.parent();this.a.Vc=0.5;this.a.zIndex=90;this.a.cr=j;this.a.Ee=j;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.Ob=e;this.E6=new sc.uB(new sc.L1a(a,b));this.E6.F(ig.k.za,ig.k.W);this.E6.l(0,24);this.m(this.E6);this.qGa=c;if(d){this.L0=new ig.$(d);this.L0.wr(this)}else this.zFa();this.a1=new sc.pUa([{key:"show",label:ig.lang.get(a.hTa)},{key:"skip",label:ig.lang.get(a.JMa)}],200,this.Xdb.bind(this));this.a1.F(ig.k.za,ig.k.xb);this.a1.l(0,24);this.m(this.a1);this.j("HIDDEN",
j);this.j("DEFAULT");this.Xjb();sc.q.Mma()},Pq:function(){this.zFa()},zFa:function(){var a=new sc.J1a(this.qGa,this.L0);this.ge=new sc.uB(a);this.ge.F(ig.k.za,ig.k.gb);this.ge.l(0,-3);this.m(this.ge)},th:function(){this.WFa();this.L0&&this.L0.zc()},Xjb:function(){this.Tsa=j;ig.it.add(0,0,"tutorial");ig.it.sO();this.Kb.start.play()},WFa:function(){if(this.Tsa){this.Tsa=w;ig.it.F0("tutorial",0);ig.it.sO()}},rk:function(){this.E6.j("HIDDEN");this.ge.j("HIDDEN");this.a1.j("HIDDEN");this.j("HIDDEN",w,
j);this.WFa()},va:function(a){a.Ec("black",0,0,this.a.size.x,this.a.size.y)},Xdb:function(a){this.rk();this.Ob&&this.Ob(a=="show")}})});ig.G=j;
ig.I("game.feature.gui.widget.skip-scene").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui").H(function(){sc.g0a=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},Va:s,n:0,f:function(){this.parent();this.a.zIndex=60;this.F(ig.k.ha,ig.k.W);this.l(2,1);sc.K.Na(sc.q,this);this.Va=new sc.ea(ig.lang.get("sc.gui.dialogs.skipAsk"));this.m(this.Va);this.v(this.Va.a.size.x,this.Va.a.size.y);this.j("HIDDEN",
j)},lb:function(a,b,c){b==sc.Le.HY?c?this.j("DEFAULT"):this.j("HIDDEN"):b==sc.Le.jq&&sc.q.WC()&&this.j("HIDDEN")}})});ig.G=j;
ig.I("game.feature.gui.plug-in").J("game.feature.gui.base.boxes","game.feature.gui.base.slick-box","game.feature.gui.base.button","game.feature.gui.base.numbers","game.feature.gui.base.text","game.feature.gui.base.misc","game.feature.gui.base.compact-choice-box","game.feature.gui.hud.combat-hud","game.feature.gui.hud.right-hud","game.feature.gui.hud.item-hud","game.feature.gui.hud.element-hud","game.feature.gui.hud.money-hud","game.feature.gui.hud.task-hud","game.feature.gui.hud.status-hud","game.feature.gui.hud.hp-hud",
"game.feature.gui.hud.exp-hud","game.feature.gui.hud.param-hud","game.feature.gui.hud.buff-hud","game.feature.gui.hud.item-timer-hud","game.feature.gui.hud.quest-hud","game.feature.gui.hud.landmark-hud","game.feature.gui.hud.lore-hud","game.feature.gui.hud.member-hud","game.feature.gui.hud.sp-mini-hud","game.feature.gui.hud.top-msg-hud","game.feature.gui.screen.loading-screen","game.feature.gui.screen.title-screen","game.feature.gui.screen.pause-screen","game.feature.gui.screen.credits-screen","game.feature.gui.widget.click-box",
"game.feature.gui.widget.gamepad-box","game.feature.gui.widget.counter-hud","game.feature.gui.widget.information","game.feature.gui.widget.bar-widget","game.feature.gui.widget.indiegogo-gui","game.feature.gui.widget.level-up-hud","game.feature.gui.widget.social","game.feature.gui.widget.timer-gui","game.feature.gui.widget.sergey-mode","game.feature.gui.widget.chest-items","game.feature.gui.widget.demo-stats","game.feature.gui.widget.demo-highscore","game.feature.gui.widget.tutorial-marker","game.feature.gui.widget.tutorial-start-gui",
"game.feature.gui.widget.modal-dialog","game.feature.gui.widget.skip-scene").H(function(){ig.HV.push("sc.gui")});ig.G=j;
ig.I("game.feature.menu.gui.equip.equip-status").J("impact.feature.gui.gui","game.feature.gui.plug-in","game.feature.menu.gui.menu-misc").H(function(){var a={params:{elemFactor:[1,1,1,1]},properties:{}};sc.sVa=ig.X.extend({Mz:w,a7a:w,Nb:{Fh:s,rq:s,zq:s,Fq:s,EC:s,oC:s,BD:s,YD:s},io:{},Ys:{},r:new ig.$("media/gui/menu.png"),f:function(){this.parent();this.v(169,264);this.l(sc.options.Xg?25:2,28);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(169+(sc.options.Xg?
25:3))},time:0.2,p:KEY_SPLINES.LINEAR}};var a=new sc.gq(sc.yj.us);a.v(169,121);this.m(a);var a=5,c=sc.q.R.Bv;this.Nb.Fh=this.Ni(0,a,"maxhp",0,0,w,9999,c.hp);a=a+14;this.Nb.rq=this.Ni(0,a,"atk",0,1,w,999,c.attack);a=a+14;this.Nb.zq=this.Ni(0,a,"def",0,2,w,999,c.defense);a=a+14;this.Nb.Fq=this.Ni(0,a,"foc",0,3,w,999,c.focus);a=a+16;this.Nb.EC=this.Ni(0,a,"res",1,4,j,999,c.elemFactor[0]);a=a+14;this.Nb.oC=this.Ni(0,a,"res",2,5,j,999,c.elemFactor[1]);a=a+14;this.Nb.BD=this.Ni(0,a,"res",3,6,j,999,c.elemFactor[2]);
this.Nb.YD=this.Ni(0,a+14,"res",4,7,j,999,c.elemFactor[3]);a=new sc.jE(ig.lang.get("sc.gui.menu.equip.modifiers"),sc.yj.us);a.l(0,125);a.v(169,139);this.m(a);for(var d in sc.Me){a=sc.Me[d];a=this.Ni(0,0,"modifier."+d,5,a.qa,j,200,1,a.dG||w);a.j("HIDDEN",j);this.io[d]=a}this.eEa();this.j("HIDDEN",j)},xd:function(){this.fEa();this.j("DEFAULT")},Ni:function(a,c,d,e,h,k,l,m,n){d=new sc.w8(ig.lang.get("sc.gui.menu.equip."+d),e,h,k,l,s,s,n);d.l(a,c);d.Am(m);this.m(d);return d},uI:function(b){this.H_();
if(!(b!=-1E3&&b<0)){var c=s,b=b!=-1E3?sc.Pb.getItem(b):a;if(this.Mz)switch(b.equipType){case sc.Of.HEAD:c=sc.q.R.Wb.head;break;case sc.Of.ARM:c=this.a7a?sc.q.R.Wb.di:sc.q.R.Wb.ki;break;case sc.Of.TORSO:c=sc.q.R.Wb.Jh;break;case sc.Of.FEET:c=sc.q.R.Wb.mh}else switch(sc.e.mo){case sc.Zc.NONE:return;case sc.Zc.HEAD:c=sc.q.R.Wb.head;break;case sc.Zc.RIGHT_ARM:c=sc.q.R.Wb.ki;break;case sc.Zc.LEFT_ARM:c=sc.q.R.Wb.di;break;case sc.Zc.TORSO:c=sc.q.R.Wb.Jh;break;case sc.Zc.FEET:c=sc.q.R.Wb.mh}var d=b.params,
b=b.properties,e=s,e=this.kq(c,"hp",d.hp||0);this.Nb.Fh.bh(e);e=this.kq(c,"attack",d.attack||0);this.Nb.rq.bh(e);e=this.kq(c,"defense",d.defense||0);this.Nb.zq.bh(e);e=this.kq(c,"focus",d.focus||0);this.Nb.Fq.bh(e);e=this.kq(c,"elemFactor",d.elemFactor?d.elemFactor[0]:1,0);this.Nb.EC.bh(e);e=this.kq(c,"elemFactor",d.elemFactor?d.elemFactor[1]:1,1);this.Nb.oC.bh(e);e=this.kq(c,"elemFactor",d.elemFactor?d.elemFactor[2]:1,2);this.Nb.BD.bh(e);e=this.kq(c,"elemFactor",d.elemFactor?d.elemFactor[3]:1,3);
this.Nb.YD.bh(e);var d=137,e=sc.q.R.Fx,h;for(h in this.io)if(b[h]!=g){this.io[h].j("DEFAULT",j);this.io[h].bh(this.b_(c,h,b[h]));this.io[h].l(0,d);d=d+16}else if(e[h]!=g){this.io[h].j("DEFAULT",j);this.io[h].bh(this.b_(c,h,1));this.io[h].l(0,d);d=d+16}else this.io[h].j("HIDDEN",j)}},b_:function(a,c,d,e){if(a<0)return d=(Math.round(d*100)-100)/100;if(e){c=a[c]||1;return d=(Math.round(c*100)-Math.round(d*100))/100}a=sc.Pb.getItem(a).properties;c=a[c]!=g?a[c]:1;return d=(Math.round(d*100)-Math.round(c*
100))/100},kq:function(a,c,d,e){if(a<0){e!=g&&(d=(Math.floor(d*100)-100)/100);return d}if((a=sc.Pb.getItem(a))&&a.params&&a.params[c]){var h=0;if(e!=g){h=a.params[c][e]||0;d=(Math.floor(d*100)-Math.floor(h*100))/100}else{h=a.params[c]||0;d=d-h}}else e!=g&&(d=(Math.floor(d*100)-100)/100);return d},H_:function(){for(var a in this.Nb)this.Nb[a].bh(0);a=137;var c=sc.q.R.Fx,d;for(d in this.io){this.io[d].bh(0);if(c[d]==g){this.io[d].Am(1,j);this.io[d].j("HIDDEN",j)}else{this.io[d].l(0,a);this.io[d].j("DEFAULT",
j);a=a+16}}},fEa:function(){var a=sc.q.R.Bv;this.Nb.Fh.Am(a.hp);this.Nb.rq.Am(a.attack);this.Nb.zq.Am(a.defense);this.Nb.Fq.Am(a.focus);this.Nb.EC.Am(a.elemFactor[0]);this.Nb.oC.Am(a.elemFactor[1]);this.Nb.BD.Am(a.elemFactor[2]);this.Nb.YD.Am(a.elemFactor[3]);this.eEa()},eEa:function(){var a=sc.q.R.Fx,c=137,d;for(d in this.io)if(a[d]!=g){this.io[d].j("DEFAULT",j);this.io[d].Am(a[d]);this.io[d].l(0,c);c=c+16}},lb:function(a,c,d){a==sc.e&&(c==sc.ca.ZY?this.uI(d):c==sc.ca.bz?sc.e.Vx==""&&this.H_():c==
sc.ca.Bha?this.fEa():c==sc.ca.EZ?this.H_():c==sc.ca.N7&&this.H_())}})});ig.G=j;
ig.I("game.feature.menu.gui.equip.equip-misc").J("impact.feature.gui.gui","game.feature.gui.plug-in").H(function(){sc.Dxa=sc.ec.extend({ny:s,Ob:s,f:function(a,b,c,d,e){this.parent(a,b,j,c,s,e);this.ny=d||s},Pl:function(){this.parent();if(this.ny)this.ny.focus=j;this.Ob&&this.Ob(this.focus,this.Bc)},zg:function(){this.parent();if(this.ny)this.ny.focus=w;this.Ob&&this.Ob(this.focus,this.Bc)},Ce:function(a){this.parent(a);if(this.ny)this.ny.Bc=a;this.Ob&&this.Ob(this.focus,this.Bc)},Cu:function(a){this.Bc=
a;this.focus=w;if(this.ny){this.ny.focus=w;this.ny.Bc=a}this.Ob&&this.Ob(this.focus,this.Bc)},Bqa:function(a){return this==a||a==this.ny}});sc.BY=ig.X.extend({r:new ig.$("media/gui/menu.png"),button:s,eg:s,Ld:s,Bn:s,end:s,Hc:s,tR:1,uv:1,ur:w,OM:w,f:function(a,b,c,d,e,h){this.parent();this.tR=e||0;h=h||0;this.button=new sc.Dxa("",39,sc.Ic.rH,s,j);this.button.Ob=this.m3a.bind(this);this.button.FG(39);this.button.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ia:0,Ma:0},
time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_FADE:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}};this.button.j("HIDDEN",j);this.m(this.button);a=a||w;b=b||0;c=c||9;d=d||10;this.eg=new sc.x8(c,j,!a,sc.TH.bha);this.eg.l(b,a?2:36+h);this.eg.hide();this.m(this.eg);this.Ld=new ig.Lf("#94CEFF",d,1);this.Ld.l(b+c,a?-(c-2):35+c+h);this.Ld.rb(0,0);this.Ld.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ia:0},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN_FADE:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}};
this.m(this.Ld);this.Ld.j("HIDDEN",j);this.Bn=new ig.Lf("#94CEFF",1,0);this.Bn.l(b+c+d-1,a?-(c-2):35+c+h);this.Bn.rb(0,0);this.Bn.a.N={DEFAULT:{state:{Ma:-1},time:0,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ma:-1},time:0.1,p:KEY_SPLINES.LINEAR}};this.m(this.Bn);this.Bn.j("HIDDEN",j);this.Bn.j("DEFAULT",j);this.end=new ig.Dc(this.r,0,403,172,2);this.end.l(c+b+d,a?-(c-2):35+c+h);this.end.rb(0,0);this.end.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ia:0},time:0.1,p:KEY_SPLINES.LINEAR},
HIDDEN_FADE:{state:{alpha:0,Ia:0},time:0.1,p:KEY_SPLINES.LINEAR}};this.uv=this.end.a.i.y;this.m(this.end);this.end.j("HIDDEN",j)},m3a:function(a,b){if(b||a){if(this.eg.color!=sc.TH.nM){this.eg.color=sc.TH.nM;this.Ld.color="#FF8A34";this.Bn.color="#FF8A34";this.end.offsetY=405}}else if(this.eg.color!=sc.TH.bha){this.eg.color=sc.TH.bha;this.Ld.color="#94CEFF";this.Bn.color="#94CEFF";this.end.offsetY=403}},update:function(){this.parent();this.tla()},tla:function(){if(this.Hc){this.Hc.n=this.Hc.n+ig.g.Da;
var a=Math.min(1,Math.max(0,this.Hc.n)/this.Hc.time),a=this.Hc.p.get(a);this.Bn.a.size.y=Math.round(this.Hc.Dw*(1-a)+this.Hc.height*a);if(a==1)this.Hc=s}},Cu:function(a){this.button.Cu(a)},GMa:function(){if(this.ur){this.ur=w;this.Hc={Dw:this.Bn.a.size.y,height:0,time:0.1,p:KEY_SPLINES.EASE,n:0};this.end.bd(this.end.a.i.x,this.uv,0.1,KEY_SPLINES.EASE)}},yP:function(){if(!this.ur){this.ur=j;this.Bn.j("DEFAULT",j);var a=this.Ld.a.vb.n<this.Ld.a.vb.Fa?0.048+(this.Ld.a.vb.Fa-this.Ld.a.vb.n):0;this.Hc=
{Dw:this.Bn.a.size.y,height:this.tR,time:0.1,p:KEY_SPLINES.EASE,n:0-a};this.end.bd(this.end.a.i.x,this.end.a.i.y-this.tR,0.1,KEY_SPLINES.EASE,a)}},zQa:function(){this.button.j("HIDDEN",j);this.button.j("DEFAULT");this.eg.j("DEFAULT");this.eg.hide();this.eg.show(0.1,0.2);this.Ld.j("HIDDEN",j);this.Ld.j("DEFAULT",w,w,s,0.1+0.2);this.end.j("HIDDEN",j);this.Bn.j("DEFAULT",j);this.Hc={Dw:this.Bn.a.size.y,height:0,time:0,p:KEY_SPLINES.LINEAR,n:0};this.end.l(this.end.a.i.x,this.uv);this.end.j("DEFAULT",
w,w,s,0.4);this.OM=j},Opa:function(){this.button.j("HIDDEN_FADE");this.Ld.a.fj!="HIDDEN"&&this.Ld.j("HIDDEN_FADE");this.eg.j("HIDDEN");this.end.a.fj!="HIDDEN"&&this.end.j("HIDDEN_FADE");this.Bn.a.fj!="HIDDEN"&&this.Bn.j("HIDDEN");this.OM=this.ur=w},IG:function(a){if(!this.OM){this.eg.show(0.1);this.Ld.j("DEFAULT",w,w,s,0.1);this.Bn.j("DEFAULT",j);this.Hc={Dw:this.Bn.a.size.y,height:0,time:0,p:KEY_SPLINES.LINEAR,n:0};this.end.l(this.end.a.i.x,this.uv);this.end.j("DEFAULT",w,w,s,0.2);this.OM=j}a&&this.yP()},
Qpa:function(){if(this.OM){if(this.ur){this.ur=w;this.Hc={Dw:this.Bn.a.size.y,height:0,time:0.1,p:KEY_SPLINES.LINEAR,n:0};this.end.bd(this.end.a.i.x,this.uv,0.1,KEY_SPLINES.LINEAR)}this.Ld.j("HIDDEN",w,w,s,0.1);this.eg.hide(0.1,0.2);this.end.j("HIDDEN");this.OM=w}},dhb:function(){this.OM?this.ur&&this.GMa():this.IG()}})});ig.G=j;
ig.I("game.feature.menu.gui.equip.equip-bodypart").J("impact.feature.gui.gui","game.feature.gui.plug-in","game.feature.menu.gui.equip.equip-misc","game.feature.menu.gui.menu-misc").H(function(){sc.rVa=sc.gq.extend({CK:s,qc:s,t_:w,sDa:w,nv:s,zs:w,f:function(a){this.parent();this.v(170,264);this.F(ig.k.ha,ig.k.W);this.l(sc.options.Xg?25:2,28);this.nv=a;this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(170+(sc.options.Xg?25:3))},time:0.2,p:KEY_SPLINES.LINEAR}};
this.CK=new sc.Gha(a);this.m(this.CK);this.qc=new sc.bZ(1);this.qc.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:170+(sc.options.Xg?25:3)},time:0.2,p:KEY_SPLINES.LINEAR}};this.qc.v(170,210);this.qc.l(0,44);this.qc.j("HIDDEN",j);this.qc.list.ka.si(function(a){if(a.data){sc.e.tc(a.data.description?a.data.description:a.data);a.data.id&&sc.e.Bua(a.data.id)}}.bind(this));this.qc.list.ka.Bk(function(){sc.e.tc("",j)});this.qc.list.ka.tk(function(a,c){if(a.data&&a.data.id){this.d3a(a.data.id,
c);sc.e.s6a(a.data.id)}}.bind(this));this.m(this.qc);this.j("HIDDEN",j)},update:function(){this.parent();this.W4a()},d3a:function(a,b){sc.q.R.AQ(sc.e.mo,a);this.c9(j,b,a)},xPa:function(){switch(sc.e.mo){case sc.Zc.NONE:for(var a in this.nv)this.oa[a]&&this.oa[a].Cu(w);break;case sc.Zc.HEAD:this.nv.head.Cu(j);break;case sc.Zc.RIGHT_ARM:this.nv.ki.Cu(j);break;case sc.Zc.LEFT_ARM:this.nv.di.Cu(j);break;case sc.Zc.TORSO:this.nv.Jh.Cu(j);break;case sc.Zc.FEET:this.nv.mh.Cu(j)}},yPa:function(){switch(sc.e.mo){case sc.Zc.NONE:for(var a in this.nv)this.oa[a]&&
this.oa[a].Cu(w);break;case sc.Zc.HEAD:this.nv.head.Cu(w);break;case sc.Zc.RIGHT_ARM:this.nv.ki.Cu(w);break;case sc.Zc.LEFT_ARM:this.nv.di.Cu(w);break;case sc.Zc.TORSO:this.nv.Jh.Cu(w);break;case sc.Zc.FEET:this.nv.mh.Cu(w)}},W4a:function(){if(this.t_&&this.qc.list.ka.Tc())if(sc.V.n3()||sc.V.Ws()){this.zs=j;this.yPa();sc.e.v7a();this.xPa()}else if(sc.V.p5()||sc.V.Xs()){this.zs=j;this.yPa();sc.e.w7a();this.xPa()}},k2a:function(){if(this.t_){ig.ua.ed(0.2);this.c9(w)}else{this.t_=j;sc.e.kk(this.e3a.bind(this));
this.c9(w);sc.e.Q.Cg(this.qc.list.ka);this.qc.list.ka.qf=this.CK.ka.qf;ig.ua.ed(0.2);this.qc.j("DEFAULT")}},rCa:function(){if(this.t_){this.t_=w;sc.e.jk();this.qc.j("HIDDEN");sc.e.Q.Lj(this.qc.list.ka)}},e3a:function(){sc.e.cL(sc.Zc.NONE);ig.input.dd||this.CK.ogb()},c9:function(a,b,c,d,e){var a=a||this.zs||w,b=b||w,d=d||w,h=0,k=0;if(a&&!this.zs){h=this.qc.list.ka.Ea.y;k=-this.qc.list.vc.a.scroll.y}this.zs=w;this.qc.list.ka.clear();this.qc.list.clear(a);var l=w,m=s,n=sc.q.R;switch(sc.e.mo){case sc.Zc.HEAD:m=
n.vO(sc.Of.HEAD,s,e||sc.ih.ORDER);n.Wb.head>0&&(l=j);break;case sc.Zc.LEFT_ARM:m=n.vO(sc.Of.ARM,s,e||sc.ih.ORDER);n.Wb.di>0&&(l=j);break;case sc.Zc.RIGHT_ARM:m=n.vO(sc.Of.ARM,s,e||sc.ih.ORDER);n.Wb.ki>0&&(l=j);break;case sc.Zc.TORSO:m=n.vO(sc.Of.TORSO,s,e||sc.ih.ORDER);n.Wb.Jh>0&&(l=j);break;case sc.Zc.FEET:m=n.vO(sc.Of.FEET,s,e||sc.ih.ORDER);n.Wb.mh>0&&(l=j)}var o=s,o=s,t=0,r=0;if(l){o=new sc.AB(ig.lang.get("sc.gui.menu.equip.unequip-name"),140,26,-1,-1E3,ig.lang.get("sc.gui.menu.equip.unequip-des"),
j,j,sc.qd.Wb);this.qc.list.Rd(o)}for(var p=0;p<m.length;p++){r=n.rc[m[p]]||0;o=sc.Pb.getItem(m[p]);t++;var q=new ig.Oa(o.name),q="\\i["+(o.icon+sc.Pb.uo(o.rarity||0)||"item-default")+"]"+ig.Oa.wc(o.name),o=new sc.AB(q,141,26,r,m[p],ig.Oa.wc(o.description),g,g,sc.qd.Wb);this.qc.list.Rd(o)}if(a){this.qc.list.el=h;if(e)k=h=0;else if(!this.sDa&&l&&c!=g&&sc.q.R.rc[c]&&sc.q.R.rc[c]>0){h=Math.min(h,t-1);k=k+this.qc.list.Uda}b?this.qc.list.ka.Mj(0,h):this.qc.list.ka.yf(0,h,w,d);this.qc.list.zG(k,j)}this.sDa=
l},lb:function(a,b,c){a==sc.e&&(b==sc.ca.EZ?a.XP!=a.mo&&(a.mo==sc.Zc.NONE?this.rCa():this.k2a()):b==sc.ca.sr&&this.c9(j,ig.input.dd,s,!ig.input.dd,c.data.KG))},xd:function(){this.CK.xd();this.j("DEFAULT")},Ti:function(){this.rCa();this.CK.Ti();this.j("HIDDEN")}});sc.Gha=ig.X.extend({ka:s,oa:{head:s,ki:s,di:s,Jh:s,mh:s},f:function(a){this.parent();this.v(169,264);this.ka=new sc.Wf(w,ig.mr.AE);this.ka.si(function(a){sc.e.tc(a.data)});this.ka.Bk(function(){sc.e.tc("",j)});var b=36,c=sc.q.R.Wb;this.oa.head=
this.Mi("head",c.head,9,b,a.head.button,0,33,function(){sc.e.cL(sc.Zc.HEAD)}.bind(this));this.m(this.oa.head);b=b+38;this.oa.ki=this.Mi("rightarm",c.ki,9,b,a.ki.button,1,71,function(){sc.e.cL(sc.Zc.RIGHT_ARM)}.bind(this));this.m(this.oa.ki);b=b+38;this.oa.di=this.Mi("leftarm",c.di,9,b,a.di.button,2,109,function(){sc.e.cL(sc.Zc.LEFT_ARM)}.bind(this));this.m(this.oa.di);b=b+38;this.oa.Jh=this.Mi("torso",c.Jh,9,b,a.Jh.button,3,147,function(){sc.e.cL(sc.Zc.TORSO)}.bind(this));this.m(this.oa.Jh);this.oa.mh=
this.Mi("feet",c.mh,9,b+38,a.mh.button,4,185,function(){sc.e.cL(sc.Zc.FEET)}.bind(this));this.m(this.oa.mh)},xd:function(){for(var a in this.oa)this.oa[a]&&this.oa[a].reset();ig.ua.ed(0.2);sc.e.Q.Cg(this.ka)},Ti:function(){sc.e.Q.Lj(this.ka)},ogb:function(){switch(sc.e.XP){case sc.Zc.NONE:ig.debug("Whoops, Why is this happening?");break;case sc.Zc.HEAD:this.ka.yf(0,0,w,j);break;case sc.Zc.RIGHT_ARM:this.ka.yf(0,1,w,j);break;case sc.Zc.LEFT_ARM:this.ka.yf(0,2,w,j);break;case sc.Zc.TORSO:this.ka.yf(0,
3,w,j);break;case sc.Zc.FEET:this.ka.yf(0,4,w,j)}},Mi:function(a,b,c,d,e,h,k,l){a=ig.lang.get("sc.gui.menu.equip."+a);b=sc.Pb.getItem(b);c=new sc.Gha.aM(a,b,c,d,e,k);c.button.Qb=l;e.Qb=l;this.ka.Uc(c.button,0,h);return c},Y3a:function(a){switch(a){case sc.Zc.NONE:for(var b in this.oa)this.oa[b]&&this.oa[b].xdb();break;case sc.Zc.HEAD:this.pz(this.oa.head);this.oa.head.yP();break;case sc.Zc.RIGHT_ARM:this.pz(this.oa.ki);this.oa.ki.yP();break;case sc.Zc.LEFT_ARM:this.pz(this.oa.di);this.oa.di.yP();
break;case sc.Zc.TORSO:this.pz(this.oa.Jh);this.oa.Jh.yP();break;case sc.Zc.FEET:this.pz(this.oa.mh);this.oa.mh.yP()}},pz:function(a){var b=s,c;for(c in this.oa)(b=this.oa[c])&&b!=a&&b.Opa()},F4a:function(a){var b=ig.lang.get("sc.gui.menu.equip.nothing"),c="",d="item-default";if(a>0){a=sc.Pb.getItem(a);d=(a.icon||"item-default")+sc.Pb.uo(a.rarity||0);b="\\i["+d+"]"+ig.Oa.wc(a.name);c=new ig.Oa(a.description)}switch(sc.e.mo){case sc.Zc.HEAD:this.oa.head.setData(b,c);break;case sc.Zc.RIGHT_ARM:this.oa.ki.setData(b,
c);break;case sc.Zc.LEFT_ARM:this.oa.di.setData(b,c);break;case sc.Zc.TORSO:this.oa.Jh.setData(b,c);break;case sc.Zc.FEET:this.oa.mh.setData(b,c)}},lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.EZ){if(a.mo!=a.XP){ig.ua.ed(0.2);this.Y3a(a.mo)}}else b==sc.ca.Bha&&this.F4a(c)}});sc.Gha.aM=ig.X.extend({text:s,button:s,faa:Vec2.pc(0,0),ur:w,ng:w,tR:1,uv:1,f:function(a,b,c,d,e,h){this.parent();this.v(150,33);this.F(ig.k.ha,ig.k.W);this.faa.x=c;this.faa.y=d;this.tR=h||1;this.l(this.faa.x,this.faa.y);this.a.N=
{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(160+(sc.options.Xg?25:3))},time:0.2,p:KEY_SPLINES.LINEAR}};c=s;c=b?"\\i["+((b.icon||"item-default")+sc.Pb.uo(b.rarity||0))+"]"+ig.Oa.wc(b.name):ig.lang.get("sc.gui.menu.equip.nothing");this.text=new sc.ea(a,{speed:ig.rd.Nd.We,font:sc.Ka.Lb});this.text.l(2,0);this.m(this.text);this.button=new sc.Dxa(c,150,sc.Ic.Wxa,e,j);this.button.Ob=e.Ob;e.ny=this.button;this.button.l(0,10);this.m(this.button);this.uv=this.a.i.y;b&&
this.button.setData(new ig.Oa(b.description));this.j("DEFAULT",j)},setData:function(a,b){this.button.re.fa(a);this.button.setData(b)},xdb:function(){this.ur=w;if(this.ng){this.l(this.a.i.x,this.uv);this.j("DEFAULT");this.ng=w}else this.bd(this.a.i.x,this.uv,0.1,KEY_SPLINES.EASE);this.button.Ce(w)},GMa:function(){if(this.ur){this.ur=w;if(this.ng){this.l(this.a.i.x,this.uv);this.j("DEFAULT");this.ng=w}else this.bd(this.a.i.x,this.uv,0.1,KEY_SPLINES.EASE)}},yP:function(){if(!this.ur){this.ur=j;if(this.ng){this.l(this.a.i.x,
this.uv-this.tR);this.j("DEFAULT");this.ng=w}else this.bd(this.a.i.x,this.a.i.y-this.tR,0.1,KEY_SPLINES.EASE)}},reset:function(){this.j("DEFAULT",j);this.ur=this.ng=w;this.l(this.a.i.x,this.uv);this.button.Ce(w)},Opa:function(){this.j("HIDDEN");this.ng=j;this.ur=w;this.button.Ce(w)},zQa:function(){this.j("DEFAULT");this.ng=w}})});ig.G=j;
ig.I("game.feature.menu.gui.equip.equip-menu").J("impact.feature.gui.gui","game.feature.gui.plug-in","game.feature.menu.gui.base-menu","game.feature.menu.gui.main-menu","game.feature.menu.gui.equip.equip-status","game.feature.menu.gui.equip.equip-bodypart","game.feature.inventory.inventory").H(function(){sc.qVa=sc.bq.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}},me:{head:s,di:s,ki:s,Jh:s,mh:s},OX:s,
WK:s,OA:s,pm:{Tx:s,status:s,sort:s},Sc:s,Aa:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.Sc=new sc.Yya;this.Sc.Rd("hp",sc.ih.HP,4);this.Sc.Rd("attack",sc.ih.ATTACK,5);this.Sc.Rd("defense",sc.ih.DEFENSE,6);this.Sc.Rd("focus",sc.ih.FOCUS,7);this.OX=new sc.sVa;this.m(this.OX);this.OA=new sc.Wf;this.OA.si(function(a){sc.e.tc(a.data)});this.OA.Bk(function(){sc.e.tc("",j)});this.OA.tk(function(){this.Sc.Ga&&this.Sc.Sk()}.bind(this));this.me.head=new sc.BY(w,17,9,
sc.options.Xg?81:59,33);this.me.head.l(sc.options.Xg?264:221,27);this.me.ki=new sc.BY(j,17,12,sc.options.Xg?121:99,71);this.me.ki.l(sc.options.Xg?221:178,119);this.me.di=new sc.BY(w,36,5,sc.options.Xg?23:1,109,-12);this.me.di.l(sc.options.Xg?306:263,119);this.me.Jh=new sc.BY(w,16,26,sc.options.Xg?65:43,147);this.me.Jh.l(sc.options.Xg?264:221,124);this.me.mh=new sc.BY(j,16,35,sc.options.Xg?42:20,185);this.me.mh.l(sc.options.Xg?278:235,256);this.OA.Uc(this.me.head.button,1,0);this.OA.Uc(this.me.ki.button,
0,1);this.OA.Uc(this.me.Jh.button,1,1);this.OA.Uc(this.me.di.button,2,1);this.OA.Uc(this.me.mh.button,2,2);this.WK=new sc.rVa(this.me);this.m(this.WK);for(var a in this.me)this.me[a]&&this.m(this.me[a]);this.j("DEFAULT",j);this.pm.Tx=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.pm.Tx.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.pm.Tx.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.pm.Tx.Qb=this.$ka.bind(this);this.pm.sort=new sc.ec("\\i[help3]"+
ig.lang.get("sc.gui.menu.item.sort-title"),g,j,sc.Ic.Kc);this.pm.sort.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.pm.sort.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.pm.sort.Qb=this.CA.bind(this)},ac:function(){sc.K.Na(sc.q.e,this);sc.K.Na(sc.q.e,this.OX);sc.K.Na(sc.q.e,this.WK);sc.K.Na(sc.q.e,this.WK.CK)},Yb:function(){sc.K.lc(sc.q.e,this);sc.K.lc(sc.q.e,this.OX);sc.K.lc(sc.q.e,this.WK);sc.K.lc(sc.q.e,this.WK.CK)},Zka:function(){return sc.V.Ap()},$ka:function(){this.Dh();
ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.equip.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.equip.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ffb:function(){return sc.V.hK()},CA:function(){if(this.Sc.Ga)this.Sc.Sk();else{ig.T.Mc(this.Sc);this.Sc.CX(this.pm.sort)}},Xja:function(){sc.e.Qi(function(){return this.pm.sort}.bind(this));sc.e.Qi(function(){return this.pm.Tx}.bind(this));sc.e.Dr();this.pm.sort.j("HIDDEN",
j)},LM:function(){sc.e.K8a();sc.e.jk();sc.e.bs()},X3a:function(a){switch(a){case sc.Zc.NONE:for(var b in this.me)this.me[b]&&this.me[b].dhb();break;case sc.Zc.HEAD:this.pz(this.me.head);this.me.head.IG(j);break;case sc.Zc.RIGHT_ARM:this.pz(this.me.ki);this.me.ki.IG(j);break;case sc.Zc.LEFT_ARM:this.pz(this.me.di);this.me.di.IG(j);break;case sc.Zc.TORSO:this.pz(this.me.Jh);this.me.Jh.IG(j);break;case sc.Zc.FEET:this.pz(this.me.mh);this.me.mh.IG(j)}},pz:function(a){var b=s,c;for(c in this.me)(b=this.me[c])&&
b!=a&&b.Qpa()},HEa:function(a){var b="\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title")+": ";this.pm.sort.fa(b+("\\c[3]"+a+"\\c[0]"));sc.e.Ru()},lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.EZ){if(a.mo!=a.XP){if(a.mo==sc.Zc.NONE){this.pm.sort.j("HIDDEN");sc.e.Q.zd(this.pm.sort)}else{this.HEa(ig.lang.get("sc.gui.menu.sort.auto"));if(this.pm.sort.a.fj=="HIDDEN"){this.pm.sort.j("DEFAULT");sc.e.Q.md(this.pm.sort,this.ffb.bind(this))}}this.X3a(a.mo)}}else b==sc.ca.sr&&this.HEa(c.text)},xd:function(){this.ac();
sc.e.kk(this.LM.bind(this));this.OX.xd();this.WK.xd();for(var a in this.me)this.me[a]&&this.me[a].zQa();sc.e.Q.aN(this.OA);sc.e.Q.md(this.pm.Tx,this.Zka.bind(this));ig.ua.ed(0.2);this.Xja();sc.e.Th(sc.options.Xg?0:1,-101,sc.Rg.Kc)},Ti:function(){sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){this.Yb();this.OX.j("HIDDEN");this.WK.Ti();this.Aa=s;sc.e.Q.gQ(this.OA);sc.e.Q.zd(this.pm.Tx);sc.e.Q.zd(this.pm.sort);this.Sc.Ga&&this.Sc.Sk();for(var a in this.me)this.me[a]&&this.me[a].Opa()}})});ig.G=j;
ig.I("game.feature.skills.skills").J("impact.base.game","game.feature.combat.model.combat-params").H(function(){sc.d0a={T1:function(a,b){return a==sc.ja.NEUTRAL&&b==3?4:b}};sc.QH={Ki:0,Hza:1,xia:2};var a=[0.05,0.09,0.13],b=[0.07,0.13,0.19],c=[0.04,0.08,0.14],d={};d.hp=d.attack=d.defense=d.focus={element:[0.04,0.07,0.09],cn:[0.04,0.06,0.1]};d.RANGED_DMG={element:[0.06,0.11,0.15],cn:[0.06,0.12,0.22]};d.KNOCKBACK={element:[0.15,0.3,0.45],cn:[0.16,0.3,0.6]};d.MELEE_DMG={element:[0.06,0.11,0.15],cn:[0.06,
0.12,0.22]};d.CRITICAL_DMG={element:[0.15,0.3,0.45],cn:[0.15,0.3,0.6]};d.HP_REGEN={element:[0.02,0.04,0.06],cn:[0.02,0.04,0.08]};d.GUARD_STRENGTH={element:[0.08,0.16,0.24],cn:[0.08,0.16,0.32]};d.STUN_THRESHOLD={element:[0.02,0.04,0.06],cn:[0.02,0.04,0.08]};d.DASH_INVINC={element:[0.1,0.2,0.3],cn:[0.1,0.2,0.4]};d.HP_REGEN={element:[0.02,0.04,0.06],cn:[0.02,0.04,0.08]};d.AIM_SPEED={element:[0.1,0.2,0.3],cn:[0.1,0.2,0.4]};d.ITEM_BOOST={element:[0.12,0.25,0.5],cn:[0.12,0.25,0.5]};d.APPETITE={element:[0,
0,1],cn:[0,0,1]};d.SPIKE_DMG={element:[0.15,0.3,0.45],cn:[0.15,0.3,0.6]};d.CROSS_COUNTER={element:[0.2,0.4,0.6],cn:[0.2,0.4,0.8]};d.BERSERK={element:[0.2,0.4,0.6],cn:[0.2,0.4,0.8]};d.ONCE_MORE={element:[1,1,1],cn:[1,1,1]};d.OVERHEAT_REDUCTION={element:[0.1,0.2,0.3],cn:[0.1,0.2,0.4]};d.AIMING_MOVEMENT={element:[0.1,0.2,0.3],cn:[0.1,0.2,0.3]};sc.pn=ig.ra.extend({id:-1,aa:1,element:sc.ja.NEUTRAL,type:sc.QH.Ki,OQ:s,qa:2,f:function(a,b){this.id=b.id!=g?b.id:-1;this.aa=b.level!=g?b.level:1;this.element=
b.element!=g?b.element:sc.ja.NEUTRAL;this.type=b.type!=g?b.type:sc.QH.Ki;this.OQ=a},yn:F(),getName:function(){return ig.lang.get("sc.gui.skills.names."+this.OQ)},MU:function(){return ig.lang.get("sc.gui.skills.descriptions."+this.OQ)},T1:function(){return sc.d0a.T1(this.element,this.aa)},m_:function(a){return a.Pk[this.element]}});sc.Md={};sc.Md.EMPTY=sc.pn.extend({f:function(a,b){this.parent(a,b)},apply:F(),MU:R("This is an empty Skill for testing. Gives 0 on everything!")});sc.Nm=sc.pn.extend({ul:s,
yn:function(a){var b=this.ul;b||f(Error("Stat is not defined!"));var c=this.element==sc.ja.NEUTRAL?d[b].cn[this.aa-1]:d[b].element[this.aa-1];this.m_(a).sl[b]=this.m_(a).sl[b]+c;if(this.element==sc.ja.NEUTRAL){var a=a.Pk,e;for(e in a)e!=sc.ja.NEUTRAL&&(a[e].sl[b]=a[e].sl[b]+c/2)}},MU:function(){var a=ig.lang.get("sc.gui.skills.descriptions."+this.OQ);return a=a.replace("[0]",Math.floor((this.element==sc.ja.NEUTRAL?d[this.ul].cn[this.aa-1]:d[this.ul].element[this.aa-1])*100))}});sc.Md.MAXHP=sc.Nm.extend({qa:7,
ul:"hp"});sc.Md.ATK=sc.Nm.extend({qa:4,ul:"attack"});sc.Md.DEF=sc.Nm.extend({qa:5,ul:"defense"});sc.Md.FOC=sc.Nm.extend({qa:6,ul:"focus"});sc.tH=sc.pn.extend({tC:w,f:function(a,b){this.parent(a,b)},yn:function(a){var a=this.m_(a),b=this.JCa(),c=this.element-1;this.tC&&(c=c==0?1:c==1?0:c==2?3:2);a.sl.elemFactor[c]=a.sl.elemFactor[c]-b},JCa:function(){return this.tC?b[this.aa-1]:a[this.aa-1]},MU:function(){var a=ig.lang.get("sc.gui.skills.descriptions."+this.OQ);return a=a.replace("[0]",Math.floor(this.JCa()*
100))}});sc.Md.OWN_ELEMENT_RES_HEAT=sc.tH.extend({qa:8,tC:w});sc.Md.COUNTER_ELEMENT_RES_HEAT=sc.tH.extend({qa:9,tC:j});sc.Md.OWN_ELEMENT_RES_COLD=sc.tH.extend({qa:9,tC:w});sc.Md.COUNTER_ELEMENT_RES_COLD=sc.tH.extend({qa:8,tC:j});sc.Md.OWN_ELEMENT_RES_SHOCK=sc.tH.extend({qa:10,tC:w});sc.Md.COUNTER_ELEMENT_RES_SHOCK=sc.tH.extend({qa:11,tC:j});sc.Md.OWN_ELEMENT_RES_WAVE=sc.tH.extend({qa:11,tC:w});sc.Md.COUNTER_ELEMENT_RES_WAVE=sc.tH.extend({qa:10,tC:j});sc.Md.ALL_ELEMENT_RES=sc.pn.extend({qa:12,f:function(a,
b){this.parent(a,b)},yn:function(a){for(var b=this.m_(a),d=c[this.aa-1],e=0;e<b.sl.elemFactor.length;e++)b.sl.elemFactor[e]=b.sl.elemFactor[e]-d;if(this.element==sc.ja.NEUTRAL){a=a.Pk;for(e in a)if(e!=sc.ja.NEUTRAL)for(var b=a[e].sl.elemFactor,n=0;n<b.length;n++)b[n]=b[n]-d/2}},MU:function(){var a=ig.lang.get("sc.gui.skills.descriptions."+this.OQ);return a=a.replace("[0]",Math.floor(c[this.aa-1]*100))}});sc.Md.RANGED_DAMAGE=sc.Nm.extend({qa:13,ul:"RANGED_DMG"});sc.Md.CHARGED_KNOCKBACK=sc.Nm.extend({qa:14,
ul:"KNOCKBACK"});sc.Md.MELEE_DAMAGE=sc.Nm.extend({qa:15,ul:"MELEE_DMG"});sc.Md.ASSAULT=sc.pn.extend({qa:16,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.CRITICAL_DAMAGE=sc.Nm.extend({qa:17,ul:"CRITICAL_DMG"});sc.Md.AIMING_SPEED=sc.Nm.extend({qa:18,ul:"AIM_SPEED"});sc.Md.AIMING_STABILITY=sc.pn.extend({qa:19,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.AIMING_MOVEMENT_SPEED=sc.Nm.extend({qa:20,ul:"AIMING_MOVEMENT"});sc.Md.DASH_DISTANCE=sc.Nm.extend({qa:21,ul:"DASH_INVINC"});sc.Md.ADDITIONAL_DASH_STEP=
sc.pn.extend({qa:22,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.GUARD_STRENGTH=sc.Nm.extend({qa:23,ul:"GUARD_STRENGTH"});sc.Md.ADDITIONAL_GUARD_AREA=sc.pn.extend({qa:24,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.SP_PRESERVATION=sc.pn.extend({qa:25,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.STUN_THRESHOLD=sc.Nm.extend({qa:26,ul:"STUN_THRESHOLD"});sc.Md.STATUS_CONDITION_EFFECT_HEAT=sc.pn.extend({qa:2,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.STATUS_CONDITION_DURATION_HEAT=sc.pn.extend({qa:2,
f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.STATUS_CONDITION_EFFECT_COLD=sc.pn.extend({qa:2,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.STATUS_CONDITION_DURATION_COLD=sc.pn.extend({qa:2,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.STATUS_CONDITION_EFFECT_SHOCK=sc.pn.extend({qa:2,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.STATUS_CONDITION_DURATION_SHOCK=sc.pn.extend({qa:2,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.STATUS_CONDITION_EFFECT_WAVE=sc.pn.extend({qa:2,f:function(a,
b){this.parent(a,b)},yn:F()});sc.Md.STATUS_CONDITION_DURATION_WAVE=sc.pn.extend({qa:2,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.STATUS_CONDITION_HEALING=sc.pn.extend({qa:35,f:function(a,b){this.parent(a,b)},yn:F()});sc.Md.HP_REGENERATION=sc.Nm.extend({qa:36,ul:"HP_REGEN"});sc.Md.OVERHEAT_REDUCTION=sc.Nm.extend({qa:37,ul:"OVERHEAT_REDUCTION"});sc.Md.ITEM_BOOST=sc.Nm.extend({qa:38,ul:"ITEM_BOOST"});sc.Md.APPETITE=sc.Nm.extend({qa:2,ul:"APPETITE"});sc.Md.SPIKE_DAMAGE=sc.Nm.extend({qa:25,ul:"SPIKE_DMG"});
sc.Md.CROSS_COUNTER=sc.Nm.extend({qa:2,ul:"CROSS_COUNTER"});sc.Md.BERSERKER=sc.Nm.extend({qa:2,ul:"BERSERK"});sc.Md.ONCE_MORE=sc.Nm.extend({qa:2,ul:"ONCE_MORE"});var e={THROW:{}};e.THROW[sc.ja.NEUTRAL]=[{A:{qa:40},B:{qa:41}}];e.THROW[sc.ja.HEAT]=[{A:{qa:50},B:{qa:58}}];e.THROW[sc.ja.COLD]=[{A:{qa:60},B:{qa:68}}];e.ATTACK={};e.ATTACK[sc.ja.NEUTRAL]=[{A:{qa:42},B:{qa:43}}];e.ATTACK[sc.ja.HEAT]=[{A:{qa:52},B:{qa:53}}];e.ATTACK[sc.ja.COLD]=[{A:{qa:68},B:{qa:62}}];e.DASH={};e.DASH[sc.ja.NEUTRAL]=[{A:{qa:44},
B:{qa:45}}];e.DASH[sc.ja.HEAT]=[{A:{qa:54},B:{qa:55}}];e.DASH[sc.ja.COLD]=[{A:{qa:64},B:{qa:68}}];e.GUARD={};e.GUARD[sc.ja.NEUTRAL]=[{A:{qa:46},B:{qa:47}}];e.GUARD[sc.ja.HEAT]=[{A:{qa:58},B:{qa:57}}];e.GUARD[sc.ja.COLD]=[{A:{qa:68},B:{qa:65}}];sc.Md.ACTIVE_PLACEHOLDER=sc.pn.extend({qa:0,f:function(a,b){this.parent(a,b)},yn:F()});sc.zE=sc.pn.extend({PQ:s,h$:s,f:function(a,b,c,d){this.parent(a,b);this.PQ=c;this.h$=d;if(a=e[c])if(a=a[this.element]){a=a[this.aa-1];d=!a?s:a[d]||s}else d=s;else d=s;this.qa=
d?d.qa:48},getName:function(){return ig.lang.get("sc.gui.skills.specials."+this.HCa()+"_"+this.PQ+"_"+this.aa+"_"+this.h$+".name")},MU:function(){return ig.lang.get("sc.gui.skills.specials."+this.HCa()+"_"+this.PQ+"_"+this.aa+"_"+this.h$+".desc")},yn:function(a){var a=this.m_(a),b=this.PQ+"_SPECIAL"+this.aa,c=b+"_"+this.h$;a.ug[c]&&(a.B9[sc.cj[b]]=a.ug[c])},JU:function(a,b){return a&&a!=this.PQ||b!=g&&b!=this.element?0:this.aa},HCa:function(){switch(this.element){case sc.ja.NEUTRAL:return"NEUTRAL";
case sc.ja.HEAT:return"HEAT";case sc.ja.COLD:return"COLD";case sc.ja.SHOCK:return"SHOCK";case sc.ja.WAVE:return"WAVE"}}});sc.Md.THROW_SPECIAL_A=sc.zE.extend({f:function(a,b){this.parent(a,b,"THROW","A")}});sc.Md.THROW_SPECIAL_B=sc.zE.extend({f:function(a,b){this.parent(a,b,"THROW","B")}});sc.Md.ATTACK_SPECIAL_A=sc.zE.extend({f:function(a,b){this.parent(a,b,"ATTACK","A")}});sc.Md.ATTACK_SPECIAL_B=sc.zE.extend({f:function(a,b){this.parent(a,b,"ATTACK","B")}});sc.Md.DASH_SPECIAL_A=sc.zE.extend({f:function(a,
b){this.parent(a,b,"DASH","A")}});sc.Md.DASH_SPECIAL_B=sc.zE.extend({f:function(a,b){this.parent(a,b,"DASH","B")}});sc.Md.GUARD_SPECIAL_A=sc.zE.extend({f:function(a,b){this.parent(a,b,"GUARD","A")}});sc.Md.GUARD_SPECIAL_B=sc.zE.extend({f:function(a,b){this.parent(a,b,"GUARD","B")}})});ig.G=j;
ig.I("game.feature.skills.skilltree").J("impact.base.game","game.feature.skills.skills").H(function(){sc.Rmb=8;sc.Mm={};sc.Mm.STRAIGHT=0;sc.Mm.CW_45=1;sc.Mm.CW_90=2;sc.Mm.CW_135=3;sc.Mm.CCW_45=4;sc.Mm.CCW_90=5;sc.Mm.CCW_135=6;sc.e0a=ig.SH.extend({version:3,qv:s,Ue:[],LB:0,f:function(){ig.CAa?this.parent():ig.warn("Can't initialize skill tree because ig.SKILL_TREE was not provided")},Us:function(){$.ajax({dataType:"json",url:ig.root+ig.CAa+ig.kl(),context:this,success:this.onload.bind(this),error:this.onerror.bind(this)})},
onerror:function(a){this.qv=s;this.zk(j);ig.error("Could not load Skilltree json file! Event: %O",a)},onload:function(a){this.qv=[];this.qv[sc.ja.NEUTRAL]=a.NEUTRAL;this.qv[sc.ja.HEAT]=a.HEAT;this.qv[sc.ja.COLD]=a.COLD;this.qv[sc.ja.SHOCK]=a.SHOCK;this.qv[sc.ja.WAVE]=a.WAVE;this.zk(j);ig.hM&&ig.log("%cLOADABLE: %cLoaded Skilltree: \n%O","color:blue","",a);this.M2a()},M2a:function(){this.Ue=[];this.LB=-1;var a={id:0,level:0,element:0};this.ES(this.qv[sc.ja.NEUTRAL],sc.ja.NEUTRAL,a);this.ES(this.qv[sc.ja.HEAT],
sc.ja.HEAT,a);this.ES(this.qv[sc.ja.COLD],sc.ja.COLD,a);this.ES(this.qv[sc.ja.SHOCK],sc.ja.SHOCK,a);this.ES(this.qv[sc.ja.WAVE],sc.ja.WAVE,a)},ES:function(a,b,c){if(a.length!=0){c.element=b;for(var d=0;d<a.length;d++){var e=a[d];if(this.Lq(e))ig.warn("Empty Skill detected [element ID: %i]! Please add content for the skill, for now we skip it.",b);else{if(e.orBranch)for(var h=e.orBranch,k=0;k<h.levels.length;k++){c.level=h.levels[k];c.id=++this.LB;c.type=k==0?sc.QH.xia:sc.QH.Hza;this.Ue[this.LB]=this.mka(h.left[k].type,
c);h.left[k].uid=this.LB;c.id=++this.LB;c.type=sc.QH.Hza;this.Ue[this.LB]=this.mka(h.right[k].type,c);h.right[k].uid=this.LB}else{c.id=++this.LB;c.level=e.level;c.type=sc.QH.Ki;e.uid=this.LB;this.Ue[this.LB]=this.mka(e.skill.type,c)}e.children&&this.ES(e.children,b,c)}}}},mka:function(a,b){if(sc.Md[a])return new sc.Md[a](a,b);var c=new sc.Md.EMPTY("EMTPY",b);ig.warn("Unknown or no skill type detected: %c"+a,"color:orange");ig.warn("Creating Empty skill: %O",c);return c},Lq:function(a){for(var b in a)return w;
return j},iJa:function(a){return a!=g?this.qv[a]:s},DF:function(a){return this.Ue[a]}});sc.Qp=new sc.e0a});ig.G=j;
ig.I("game.feature.menu.gui.circuit.circuit-misc").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.numbers","game.feature.menu.gui.menu-misc","game.feature.skills.skilltree","game.feature.player.player-model").H(function(){sc.Dk={iE:1,AM:2,xE:3};sc.Zn={rr:0,fm:2,gv:4,im:6,qia:1,EAa:3,jja:5,ria:7};sc.bUa=ig.X.extend({r:new ig.$("media/gui/circuit.png"),focusOffset:{x:0,y:0},focus:w,Mf:0,mg:0,Ug:0,Lh:0,Qj:w,ZS:w,NS:w,f:function(){this.parent();this.v(49,49);this.ZS=
j},Ks:function(a,b){this.l(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2)-this.focusOffset.y);this.focus=j;this.Mf=0;this.mg=0.15;this.Ug=0},$p:function(){this.focus=w;this.POa()},POa:function(){this.mg=this.Mf=0.15;this.Ug=0},moveTo:function(a,b,c,d){c&&ig.input.bb==ig.Gb.Jc?this.bd(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2)-this.focusOffset.y,d,KEY_SPLINES.EASE):this.l(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2)-this.focusOffset.y);if(this.focus){this.Mf=
0;this.mg=0.15;this.Ug=3;this.focus=w}},update:function(){if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb}if(this.Mf<this.mg){this.Mf=this.Mf+ig.g.ga;if(this.Mf>=this.mg){this.Mf=this.mg;this.Ug=this.focus?3:0}else this.Ug=(this.mg?1:-1)*(this.Mf/this.mg)*3}},va:function(a){this.focus?a.ia(this.r,0,0,424,168,49,49):this.Qj&&a.ia(this.r,0,0,424,223,49,49)},lb:function(a,b){if(!this.NS&&a==sc.e)if(b==sc.ca.iS){this.$p();if(ig.input.bb==ig.Gb.Jc)this.Qj=j}else if(b==sc.ca.sM){this.mg=
this.Mf=0.15;this.Ug=0}else b==sc.ca.cja?this.Ks(sc.e.Vf.x,sc.e.Vf.y):b==sc.ca.dja?this.$p():b==sc.ca.bja&&(this.focus||this.Ks(sc.e.Vf.x,sc.e.Vf.y))}});sc.pha=ig.X.extend({r:new ig.$("media/gui/circuit.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-81},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_MIN:{state:{alpha:0,offsetX:-145},time:0.2,p:KEY_SPLINES.LINEAR}},Hc:s,sb:[],background:s,Xd:s,oe:s,Qz:-1,iK:w,GS:0,f:function(){this.parent();this.l(5,25);this.v(132,
100);this.F(ig.k.fb,ig.k.xb);this.background=new sc.gq(sc.yj.us);this.background.v(76,100);this.background.F(ig.k.fb,ig.k.xb);this.m(this.background);for(var a in sc.ja){var b=sc.ja[a];this.sb[b]=new sc.pha.aM(b);this.m(this.sb[b])}this.Xd=new sc.ec("\\i[arrow-left]",34,j,sc.Ic.Kc);this.Xd.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,offsetX:-5},time:0.2,p:KEY_SPLINES.EASE_IN}};this.Xd.F(ig.k.fb,ig.k.xb);this.Xd.l(5,0);this.Xd.Qb=this.e4a.bind(this);this.oe=new sc.ec("\\i[arrow-right]",
34,j,sc.Ic.Kc);this.oe.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,offsetX:-5},time:0.2,p:KEY_SPLINES.EASE_IN}};this.oe.F(ig.k.ha,ig.k.xb);this.oe.l(-20,0);this.oe.Qb=this.f4a.bind(this);this.Xd.j("HIDDEN",j);this.oe.j("HIDDEN",j);this.m(this.Xd);this.m(this.oe);this.j("HIDDEN",j)},update:function(){if(this.Hc){this.Hc.n=this.Hc.n+ig.g.Da;var a=Math.min(1,Math.max(0,this.Hc.n)/this.Hc.time),a=this.Hc.p.get(a);this.background.a.size.x=Math.round(this.Hc.cR*(1-a)+
this.Hc.width*a);this.background.a.size.y=Math.round(this.Hc.Dw*(1-a)+this.Hc.height*a);if(a==1)this.Hc=s}},Bq:function(a,b,c,d){this.Hc={cR:this.background.a.size.x,width:a||0,Dw:this.background.a.size.y,height:b||0,time:c,p:KEY_SPLINES.EASE,n:0-(d||0)}},o2a:function(){sc.e.Q.md(this.Xd,this.aCa.bind(this));sc.e.Q.md(this.oe,this.aCa.bind(this))},f4a:F(),e4a:F(),aCa:R(w),snb:F(),t4a:function(a){if(!(this.GS<=1)&&this.Qz!=a){if(this.iK){this.sb[this.Qz].j("HIDDEN",j);this.sb[a].l(42,-2+(this.GS-1)*
20);this.sb[a].j("DEFAULT",j);this.sb[a].pbb(0,j);this.sb[a].ojb(0.2,w,this.Qz)}else for(var b=this.sb.length;b--;)b!=a&&this.sb[b].j("HIDDEN");this.Qz=a;this.W3a(a)}},W3a:function(a){if(!this.iK){this.sb[a].bd(42,-2+(this.GS-1)*20,0.2,KEY_SPLINES.EASE,0.1);this.background.bd(13,0,0.2,s,0.2);this.Bq(132,21,0.2,0.1);this.Xd.j("DEFAULT",w,w,s,0.3);this.oe.j("DEFAULT",w,w,s,0.3);this.o2a();this.iK=j}},V3a:function(a){if(this.iK){this.Qz=-1;a=this.kEa(w,j,a);this.background.bd(0,0,0.2,s,0.1);this.Bq(76,
a,0.2,0.1);this.Xd.j("HIDDEN");this.oe.j("HIDDEN");this.iK=w;this.Lta()}},YDa:function(){this.iK=w;this.Qz=-1;var a=this.kEa();this.a.size.y=a;this.background.l(0,0);this.background.v(76,a<20?20:a);this.Xd.j("HIDDEN",j);this.oe.j("HIDDEN",j)},kEa:function(a,b,c){for(var d=-2,e=s,h=sc.q.R,k=this.GS=0;k<this.sb.length;k++){e=this.sb[k];if(h.Si(k+8)){if(b&&c!=k){e.j("HIDDEN",j);e.j("DEFAULT",w,w,s,0.3)}else e.j("DEFAULT",!a);this.GS++}else e.j("HIDDEN",!a);c==k&&b?e.bd(2,d,0.2,KEY_SPLINES.EASE,0.1):
e.l(2,d);d=d+20}return this.GS*20},ac:function(){sc.K.Na(sc.e,this);sc.K.Na(sc.q.R,this)},Yb:function(){sc.K.lc(sc.q.e,this);sc.K.lc(sc.q.R,this)},xd:function(){this.YDa();this.j("DEFAULT")},Ti:function(){this.Rc()},Rc:function(){this.iK?this.j("HIDDEN_MIN"):this.j("HIDDEN",w,w,function(){this.YDa()}.bind(this));this.iK=w;this.Lta()},Lta:function(){sc.e.Q.zd(this.Xd);sc.e.Q.zd(this.oe)},lb:function(a,b){if(a==sc.e)b==sc.ca.GZ&&(sc.e.ai<0?this.V3a(this.Qz):this.t4a(sc.e.ai));else if(a==sc.q.R&&(b==
sc.Wc.Qxa||b==sc.Wc.wE))for(var c=this.sb.length;c--;)this.sb[c].clb()}});sc.pha.aM=ig.X.extend({lHa:new ig.$("media/gui/status-gui.png"),r:new ig.$("media/gui/circuit.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},yc:s,wz:s,element:0,eOa:0,alpha:1,f:function(a){this.parent();this.v(75,24);this.yc=new sc.Ib(108,{transitionTime:0.2});this.yc.sa(sc.q.R.Pp[a],j);this.yc.F(ig.k.ha,ig.k.W);this.yc.l(7,10);this.m(this.yc);this.element=a},
update:function(){if(this.wz){this.wz.n=this.wz.n+ig.g.Da;var a=Math.min(1,Math.max(0,this.wz.n)/this.wz.time),a=this.wz.p.get(a);this.alpha=this.wz.aR*(1-a)+this.wz.alpha*a;if(a==1)this.wz=s}},va:function(a){this.wz&&a.ia(this.lHa,0,0,104,32+this.eOa*24,24,24).wd(1-this.alpha);a.ia(this.lHa,0,0,104,32+this.element*24,24,24).wd(this.alpha);a.ia(this.r,22,6,368,272,52,11)},clb:function(){this.yc.sa(sc.q.R.Pp[this.element])},pbb:function(a,b){this.XGa(0,a,b)},ojb:function(a,b,c){this.eOa=c;this.XGa(1,
a,b)},XGa:function(a,b,c){c?this.alpha=a:this.wz={aR:this.alpha,alpha:a,time:b,p:KEY_SPLINES.EASE,n:0}}});sc.cya=ig.X.extend({Q:s,button:s,qc:s,mua:w,f:function(){this.parent();this.v(ig.g.width,ig.g.height);this.a.zIndex=2E3;this.a.Ee=j;this.Q=new ig.nr;sc.K.Na(sc.q.R,this);this.button=new sc.ec("+ 2 CP",0,j,sc.Ic.Kc);this.button.F(ig.k.fb,ig.k.gb);this.button.l(0,-116);this.button.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-180},time:0.2,p:KEY_SPLINES.LINEAR}};
this.button.j("HIDDEN",j);this.button.Qb=function(){sc.q.R.ZEa(2,-1,j)}.bind(this);this.m(this.button);this.qc=new sc.bZ(1);this.qc.v(170,210);this.qc.F(ig.k.fb,ig.k.gb);this.qc.Ed.fa("learned");this.qc.list.ka.tk(function(a){this.X4a(a)}.bind(this));this.qc.l(0,11);this.qc.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-180},time:0.2,p:KEY_SPLINES.LINEAR}};this.Q.Cg(this.qc.list.ka);this.S3a();this.m(this.qc);this.qc.j("HIDDEN",j);this.Q.md(this.button,R(w).bind(this))},
update:function(){if(ig.input.Bc("skills"))if(this.qc.a.fj=="DEFAULT"){ig.ua.ie(this.Q);this.qc.j("HIDDEN");this.button.j("HIDDEN")}else{ig.ua.de(this.Q);this.qc.j("DEFAULT");this.button.j("DEFAULT")}},lb:function(a,b,c){if(a==sc.q.R&&(b==sc.Wc.wE||b==sc.Wc.o8))if(this.mua)this.mua=w;else for(var a=b==sc.Wc.o8,b=this.qc.list.qp(),d=b.length,e=s,h=w;d--;){e=b[d].T;if(h=a?j:e.data&&c==e.data.description){sc.q.R.ne(e.data.description)?e.has.fa("YES"):e.has.fa("NO");if(!a)break}}},S3a:function(){this.qc.list.ka.clear();
this.qc.list.clear(w);for(var a=sc.Qp.Ue,b=s,b=s,c=0;c<Math.floor(a.length/2);c++){b=a[c];b=new sc.cya.AB(b.getName(),136,31,b.id,c);this.qc.list.Rd(b)}},X4a:function(a){if(a.data){this.mua=j;if(sc.q.R.ne(a.data.description)){sc.q.R.Nkb(a.data.description);a.has.fa("NO")}else{sc.q.R.m3(a.data.description,j);a.has.fa("YES")}}}});sc.cya.AB=sc.iM.extend({has:s,f:function(a,b,c,d,e){this.parent(a,b,c,e,d);this.has=new sc.ea(sc.q.R.ne(d)?"YES":"NO",{speed:ig.rd.Nd.We});this.has.F(ig.k.ha,ig.k.W);this.has.l(3,
2);this.m(this.has)}})});ig.G=j;
ig.I("game.feature.menu.gui.circuit.circuit-detail-elements").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.interact.interact","game.feature.font.font-system","game.feature.menu.gui.circuit.circuit-misc","game.feature.menu.gui.menu-misc","game.feature.model.options-model","game.feature.skills.skills").H(function(){var a=[];a[sc.l7.SHORT]={QJa:0.05,yMa:0.05,dva:0.1,Ppa:0.1,MMa:j};a[sc.l7.aXa]={QJa:0.3,yMa:0.2,dva:0.2,Ppa:0.2,MMa:j};sc.dUa=ig.X.extend({r:new ig.$("media/gui/circuit.png"),
focus:w,Mf:0,mg:0,Ug:0,Lh:0,Qj:w,f:function(){this.parent();this.v(31,31)},Ks:function(a,b){this.l(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2));this.focus=j;this.Mf=0;this.mg=0.2;this.Ug=0},$p:function(){this.focus=w;this.mg=this.Mf=0.2;this.Ug=0},moveTo:function(a,b,c,d){c!=g&&ig.input.bb==ig.Gb.Jc?this.bd(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2),d,KEY_SPLINES.EASE):this.l(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2));if(this.focus){this.Mf=0;this.mg=
0.2;this.Ug=3;this.focus=w}},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},update:function(){if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb}if(this.Mf<this.mg){this.Mf=this.Mf+ig.g.ga;if(this.Mf>=this.mg){this.Mf=this.mg;this.Ug=this.focus?3:0}else this.Ug=(this.mg?1:-1)*(this.Mf/this.mg)*3}},va:function(a){if(this.Qj||this.focus){a.ia(this.r,3-this.Ug,3-this.Ug,36,116,12,12);a.ia(this.r,16+this.Ug,3-this.Ug,48,116,12,12);a.ia(this.r,3-this.Ug,16+
this.Ug,36,128,12,12);a.ia(this.r,16+this.Ug,16+this.Ug,48,128,12,12)}},lb:function(a,b){if(a==sc.e)if(b==sc.ca.GZ){this.$p();if(ig.input.bb==ig.Gb.Jc)this.Qj=j}else if(b==sc.ca.p8)this.Ks(sc.e.Fe.x,sc.e.Fe.y);else if(b==sc.ca.Zia)this.$p();else if(b==sc.ca.sM){this.mg=this.Mf=0.2;this.Ug=0}else b==sc.ca.zAa&&(this.focus||this.Ks(sc.e.Fe.x,sc.e.Fe.y))}});var b=Vec2.pc(0,0),c=Vec2.pc(0,0),d=Vec2.pc(0,0);sc.MTa={iTa:0,Xmb:1};sc.aUa=sc.gq.extend({eb:new ig.$b("media/gui/circuit.png",{width:5,height:5,
left:5,top:5,right:5,bottom:5,Fb:{"top-left":{x:32,y:176},"top-right":{x:48,y:176}}}),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ia:1,Ma:0},time:0.2,p:KEY_SPLINES.LINEAR}},Cla:new ig.da("media/sound/menu/circuit/circuit-upgrade-b-2.ogg",1),Cn:s,qx:s,kF:s,vf:s,cancel:s,ka:s,mode:sc.MTa.iTa,jh:Vec2.pc(-1,-1),SM:s,ap:s,Cnb:0,f:function(a){this.parent();this.v(100,63);this.SM=a;this.a.TC=j;this.a.gL(j);this.ka=new sc.Wf(w,ig.mr.AE);this.Cn=new sc.ea(ig.lang.get("sc.gui.menu.skill.cost"),
{speed:ig.rd.Nd.We});this.Cn.l(6,2);this.m(this.Cn);this.kF=new sc.ea("cp",{speed:ig.rd.Nd.We});this.kF.F(ig.k.ha,ig.k.W);this.kF.l(6,2);this.kF.a.N={DEFAULT:{state:{},time:0,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR}};this.m(this.kF);this.qx=new sc.Ib(4,{transitionTime:0,size:sc.uf.Bt});this.qx.F(ig.k.ha,ig.k.W);this.qx.l(this.kF.a.size.x+6,6);this.qx.a.N={DEFAULT:{state:{},time:0,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0,p:KEY_SPLINES.LINEAR}};this.m(this.qx);
this.vf=new sc.ec(ig.lang.get("sc.gui.menu.skill.activate"),96,j,sc.Ic.kE);this.vf.l(1,21);this.vf.dc=this.Cla;this.vf.Qb=this.$3a.bind(this);this.m(this.vf);this.cancel=new sc.ec(ig.lang.get("sc.gui.menu.skill.cancel"),96,j,sc.Ic.kE);this.cancel.l(1,41);this.cancel.Qb=this.c4a.bind(this);this.m(this.cancel);this.ka.Uc(this.vf,0,0);this.ka.Uc(this.cancel,0,1);this.N8(1,19,98,1);this.N8(1,61,98,1);this.N8(98,20,1,7);this.N8(98,36,1,25);this.j("HIDDEN",j)},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,
this)},update:function(){this.sk()},va:function(a){this.parent(a);a.ia(this.eb.r,99,26,32,148,12,13)},lb:function(a,b){a==sc.e&&(b==sc.ca.aja?this.b3a():b==sc.ca.BAa&&this.f3a())},$3a:function(){var a=this.ap.Fz?j:w,b=this.ap,c=this.ap.PP?this.ap.PP:s,d=this.ap.$e.uid;if(sc.Qp.Ue[d]){if(a){a=w;b.kG?sc.q.R.ne(d+1)&&(a=j):sc.q.R.ne(d-1)&&(a=j);if(a)sc.q.R.Uva(d-b.nD*2,b.kG);else{a=w;b.nD>0?c.kG?sc.q.R.ne(c.$e.uid+1)&&(a=j):sc.q.R.ne(c.$e.uid-1)&&(a=j):a=w;sc.q.R.Ipa(d)&&(a?sc.q.R.Uva(d-b.nD*2,b.kG,
d):sc.q.R.m3(d))}}else sc.q.R.Ipa(d)&&sc.q.R.m3(d);sc.e.y1()}else ig.warn("Could not find skill: "+d)},ela:function(){var a=this.ap.Fz?j:w,b=this.ap.$e,c=b.uid,d=this.ap.PP?this.ap.PP:s;this.vf.re.fa(ig.lang.get("sc.gui.menu.skill.activate"));this.vf.setActive(j);this.Cn.fa(ig.lang.get("sc.gui.menu.skill.cost"));this.kF.j("DEFAULT",j);this.qx.j("DEFAULT",j);this.qx.Te(0,sc.ef.$o);this.qx.sa(0,j);this.ka.Mj(0,0);if(sc.q.R.ne(b.uid)){this.Cn.fa(ig.lang.get("sc.gui.menu.skill.activated"));this.kF.j("HIDDEN",
w);this.qx.j("HIDDEN",w);this.vf.setActive(w);this.ka.Mj(0,1)}else{if(a){a=w;this.ap.kG?sc.q.R.ne(b.uid+1)&&(a=j):sc.q.R.ne(b.uid-1)&&(a=j);if(a){this.vf.re.fa(ig.lang.get("sc.gui.menu.skill.switch"));this.Cn.fa(ig.lang.get("sc.gui.menu.skill.activated"));this.kF.j("HIDDEN",w);this.qx.j("HIDDEN",w);return}this.ap.nD>0&&(d.kG?sc.q.R.ne(d.$e.uid+1)&&(a=j):sc.q.R.ne(d.$e.uid-1)&&(a=j));a&&this.vf.re.fa(ig.lang.get("sc.gui.menu.skill.switch"))}b=sc.Qp.DF(b.uid);if(!this.B3a(d)){this.vf.setActive(w);this.ka.Mj(0,
1)}this.qx.sa(b.T1(),j);if(!sc.q.R.Ipa(c)){this.qx.Te(sc.ef.hm);this.vf.setActive(w);this.ka.Mj(0,1)}}},c4a:function(){sc.e.y1()},b3a:function(){this.ap=sc.e.jl;this.j("DEFAULT");sc.e.kk(this.rI.bind(this));this.ela();sc.e.Q.Cg(this.ka)},f3a:function(){sc.e.Q.Lj(this.ka);this.ap=s;this.j("HIDDEN");sc.e.jk()},rI:function(){sc.e.y1()},N8:function(a,b,c,d){c=new ig.Lf("#7E7E7E",c,d);c.l(a,b);this.m(c)},sk:function(){if(sc.e.jl&&this.ap){var a=this.a;c.x=a.size.x+11;c.y=a.size.y;b.x=sc.e.Fe.x+6;b.y=sc.e.Fe.y+
54;b.x=this.ap.a.i.x+6+15+this.ap.WIa();b.y=this.ap.a.i.y+54+15+this.ap.XIa();var a=b.x+Math.floor(this.SM.scroll.x),h=b.y+Math.floor(this.SM.scroll.y);this.jh.x=-1;this.jh.y=-1;d.x=a+this.jh.x*(15.5+c.x/2)-c.x/2;d.y=h+this.jh.y*(15.5+c.y/2)-c.y/2;this.a.i.x=Math.ceil(d.x);this.a.i.y=Math.ceil(d.y)}},B3a:function(a){if(a)if(a.Fz)if(a.nD==2){if(!sc.q.R.ne(a.$e.uid)&&!sc.q.R.ne(a.$e.uid-1))return w}else if(a.kG){if(!sc.q.R.ne(a.$e.uid)&&!sc.q.R.ne(a.$e.uid+1))return w}else{if(!sc.q.R.ne(a.$e.uid)&&
!sc.q.R.ne(a.$e.uid-1))return w}else if(!sc.q.R.ne(a.$e.uid))return w;return j}});sc.YTa=sc.gq.extend({eb:new ig.$b("media/gui/circuit.png",{width:5,height:5,left:5,top:5,right:5,bottom:5,Fb:{"top-left":{x:32,y:176},"top-right":{x:48,y:176}}}),qg:s,Ld:s,text:s,Tp:s,Dp:Vec2.pc(-1,-1),jh:Vec2.pc(-1,-1),Yv:s,l3:Vec2.pc(0,0),XJ:0,SM:s,Hc:s,hE:s,f:function(b){this.parent(sc.yj.us);this.hE=[{font:sc.Ka.Lb,padding:0,offset:1},{font:sc.Ka.Ve,padding:-1,offset:0},{font:sc.Ka.font,padding:-1,offset:0}];this.SM=
b;this.qg=new sc.ea("UberSkill 9000gt",{speed:ig.rd.Nd.We,maxWidth:170});this.qg.l(8,2);this.m(this.qg);this.Tp=new sc.ea("Guard Art",{speed:ig.rd.Nd.We,font:sc.Ka.Lb,maxWidth:170});this.Tp.l(7,9);this.Tp.F(ig.k.ha,ig.k.W);this.m(this.Tp);this.Tp.a.Vc=0;this.Ld=new ig.Lf("#FFFFFF",10,1);this.Ld.l(4,19);this.m(this.Ld);b=sc.options.get("circuit-text-size");b=this.hE[b]?b:0;this.text=new sc.ea("Unlocks Magic Dagger + 5.\nIncreases text by a third line.",{speed:ig.rd.Nd.We,maxWidth:170,linePadding:this.hE[b].padding,
font:this.hE[b].font});this.text.l(8,20+this.hE[b].offset);this.m(this.text);b=a[sc.options.get("circuit-display-time")||0];this.a.N={DEFAULT:{state:{},time:b.dva,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ia:1,Ma:0,alpha:0},time:b.Ppa,p:KEY_SPLINES.LINEAR}};this.a.TC=j;this.Bq(j);this.l(100,100);this.j("HIDDEN",j)},ac:function(){sc.K.Na(sc.e,this);var b=sc.options.get("circuit-text-size"),b=this.hE[b]?b:0;this.text.BQ(this.hE[b].font,this.hE[b].padding);this.text.l(8,20+this.hE[b].offset);b=a[sc.options.get("circuit-display-time")||
0];this.a.N={DEFAULT:{state:{},time:b.dva,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ia:1,Ma:0,alpha:0},time:b.Ppa,p:KEY_SPLINES.LINEAR}};this.Bq(j)},Yb:function(){sc.K.lc(sc.e,this);this.Yv=s;this.Dp.x=0},Bq:function(a){var b;b=21+(this.text.a.size.y+4);if(!(186==this.a.size.x&&b==this.a.size.y)){this.Ld.v(178,1);this.Ld.l(4,19);a?this.v(186,b):this.Hc={cR:this.a.size.x,width:186,Dw:this.a.size.y,height:b||0,time:0.1,p:KEY_SPLINES.EASE,n:0}}},update:function(){if(sc.e.NQ&&!sc.e.jl){this.j("HIDDEN",w,w,
function(){this.Yv=s}.bind(this));this.Yv=s}this.sk(j);this.tla();if(!this.a.Os()&&this.a.fj=="HIDDEN"){this.Yv=s;this.XJ=0}},lb:function(a,b){if(a==sc.e)if(b==sc.ca.p8){this.ela();this.j("DEFAULT")}else if(b==sc.ca.Zia)this.E3a();else if(b==sc.ca.GZ||b==sc.ca.sM){this.Yv=sc.e.jl=s;this.Dp.x=0;this.j("HIDDEN",w,w,function(){this.Yv=s}.bind(this))}},sk:function(a){if(sc.e.jl){if(this.Yv&&this.Yv!=sc.e.jl){Vec2.assign(this.l3,this.a.i);this.XJ=0.1}this.Yv=sc.e.jl;var h=this.a;c.x=h.size.x;c.y=h.size.y;
if(ig.input.bb==ig.Gb.Jc){h=sc.e.jl;b.x=h.a.i.x+20+h.WIa();b.y=h.a.i.y+20+h.XIa()}else{b.x=sc.e.Fe.x;b.y=sc.e.Fe.y}var h=b.x+Math.ceil(this.SM.scroll.x),k=b.y+Math.ceil(this.SM.scroll.y),l=h-(ig.g.width-c.x-16),m=l<=0?1:-1;if(a&&this.Dp.x!=0){if(sc.e.Jo==sc.ok.kS)this.Dp.x=1;else if(m!=this.Dp.x&&Math.abs(l)>16)this.Dp.x=m;this.jh.x=this.jh.x*0.8+this.Dp.x*0.2;this.jh.y=this.jh.y*0.8+this.Dp.y*0.2}else{this.Dp.x=this.jh.x=m;this.Dp.y=this.jh.y=-1}d.x=h+this.jh.x*(15.5+c.x/2)-c.x/2;d.y=k+this.jh.y*
(15.5+c.y/2)-c.y/2;d.x=d.x.Vb(1,ig.g.width-c.x-1);d.y=d.y.Vb(22,ig.g.height-c.y-22-(d.x<181?Math.min(25,181-d.x):0));if(this.XJ>0){this.XJ=this.XJ-ig.g.Da;this.XJ<=0?this.XJ=0:Vec2.Zm(d,this.l3,this.XJ/0.1)}this.a.i.x=Math.ceil(d.x);this.a.i.y=Math.ceil(d.y)}else{if(this.a.fj=="HIDDEN"&&!this.a.Os())this.Yv=s;this.Dp.x=0}},tla:function(){if(this.Hc){this.Hc.n=this.Hc.n+ig.g.Da;var a=Math.min(1,Math.max(0,this.Hc.n)/this.Hc.time),a=this.Hc.p.get(a);this.a.size.x=Math.round(this.Hc.cR*(1-a)+this.Hc.width*
a);this.a.size.y=Math.round(this.Hc.Dw*(1-a)+this.Hc.height*a);if(a==1)this.Hc=s}},ela:function(){var a=sc.Qp.DF(sc.e.jl.$e.uid);if(a.getName().slice(0,4)=="BS [")this.qg.fa("UberSkill 9000gt");else if(a instanceof sc.zE){this.qg.fa("\\c[3]"+a.getName()+"\\c[0]");this.Tp.fa(ig.lang.get("sc.gui.skills.special-types."+a.PQ));this.Tp.a.Vc=1}else{this.qg.fa(a.getName());this.Tp.a.Vc=0}this.text.fa(a.MU());this.Bq(j)},E3a:function(){var b=a[sc.options.get("circuit-display-time")||0];this.a.Os()&&this.a.fj!=
"DEFAULT"?this.j("HIDDEN",w,w,function(){this.Yv=s}.bind(this)):b.MMa&&this.a.Os()&&this.a.fj=="DEFAULT"?this.a.dR=function(){this.j("HIDDEN",w,w,function(){this.Yv=s}.bind(this),b.yMa)}.bind(this):this.j("HIDDEN",w,w,function(){this.Yv=s}.bind(this),b.QJa)}});sc.XTa=ig.Wf.extend({Kb:{focus:new ig.da("media/sound/menu/menu-hover.ogg",0.9)},Kn:function(){return sc.V.Sna()||sc.V.Xs()||sc.V.Ws()},sF:function(){ig.input.bb==ig.Gb.Jc&&(sc.V.Xr()&&sc.e.jl)&&sc.e.jl.Qb();var a=-1;sc.V.Xs()&&(a=1);sc.V.Ws()&&
(a=0);if(a>=0){a=this.x7a(a);a!=sc.e.ai&&sc.e.A5(a)}(a=sc.V.Sna())&&(a==sc.e.ai?sc.e.A5(sc.ja.NEUTRAL):sc.q.R.MO(a)&&sc.e.A5(a))},x7a:function(a){var b=sc.e.ai;do if(a>0)b=(b+1)%5;else{b--;b<0&&(b=4)}while(!sc.q.R.MO(b));return b}})});ig.G=j;
ig.I("game.feature.menu.gui.circuit.circuit-overview").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.circuit.circuit-misc","game.feature.combat.model.combat-params").H(function(){var a=Vec2.pc(0,0),b=Vec2.pc(0,0),c=Vec2.pc(0,0),d=Vec2.pc(0,0),e=Math.PI/2,h=Math.PI/4,k=e+h,l={element:sc.ja.NEUTRAL,Cw:{x:0,y:-1},Zd:{x:44,y:44},Mb:{x:0,y:0},rotation:0,oG:[{x:24,y:1},{x:1,y:24},{x:47,y:24},{x:24,y:47}]},m={element:sc.ja.HEAT,rotation:e,Mb:{x:0,y:-149},Cw:{x:1,y:0},
Zd:{x:72,y:21},oG:[{x:29,y:1},{x:75,y:1},{x:6,y:24},{x:52,y:24},{x:98,y:24},{x:29,y:47},{x:75,y:47},{x:52,y:70}]},n={element:sc.ja.COLD,rotation:-e,Mb:{x:-127,y:0},Cw:{x:-1,y:0},Zd:{x:72,y:101},oG:[{x:52,y:12},{x:29,y:35},{x:75,y:35},{x:6,y:58},{x:52,y:58},{x:98,y:58},{x:29,y:81},{x:75,y:81}]},o={rotation:0,element:sc.ja.SHOCK,Mb:{x:0,y:0},Cw:{x:0,y:-1},Zd:{x:21,y:72},oG:[{x:1,y:29},{x:1,y:75},{x:24,y:6},{x:24,y:52},{x:24,y:98},{x:47,y:29},{x:47,y:75},{x:70,y:52}]},t={element:sc.ja.WAVE,rotation:Math.PI,
Mb:{x:-127,y:-149},Cw:{x:0,y:1},Zd:{x:101,y:72},oG:[{x:12,y:52},{x:35,y:29},{x:35,y:75},{x:58,y:6},{x:58,y:52},{x:58,y:98},{x:81,y:29},{x:81,y:75}]};sc.$Ta=ig.Wf.extend({Kb:{focus:new ig.da("media/sound/menu/menu-hover.ogg",0.9)},rj:s,f:function(){this.parent();this.rj=new ig.vZ},qua:function(a,b,c,d,e){this.Uc(a,1,1);this.Uc(b,1,2);this.Uc(c,1,0);this.Uc(d,2,1);this.Uc(e,0,1);this.Mj(1,1);a.Iv&&(ig.input.dd?this.Mj(1,1):this.yf(1,1,j,j,w,j))},Kn:function(){return sc.V.Xr()||sc.V.UA()||sc.V.sA()||
sc.V.Fr()||sc.V.ls()},sF:function(a){sc.V.Bo()&&this.eca();var b=this.Ox();if(!a){sc.V.Xr()&&this.rqa();var c=a=0,d=w;if(b=="left"){a=Math.max(0,this.Ea.x-1);c=this.Ea.y;if(a==this.Ea.x)return;if(c==0||c==2)c=1;d=j}else if(b=="right"){a=Math.min(2,this.Ea.x+1);c=this.Ea.y;if(a==this.Ea.x)return;if(c==0||c==2)c=1;d=j}if(b=="up"){a=this.Ea.x;c=Math.max(0,this.Ea.y-1);if(c==this.Ea.y)return;if(a==0||a==2)a=1;d=j}else if(b=="down"){a=this.Ea.x;c=Math.min(2,this.Ea.y+1);if(c==this.Ea.y)return;if(a==0||
a==2)a=1;d=j}d&&this.elements[a][c].Iv&&this.yf(a,c)}},Ox:function(){sc.V.UA()?this.rj.fs("right"):sc.V.sA()?this.rj.fs("left"):sc.V.Fr()?this.rj.fs("down"):sc.V.ls()&&this.rj.fs("up");return this.rj.j2()},vf:function(){this.parent();this.Ox()}});sc.av=ig.X.extend({r:new ig.$("media/gui/circuit.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},SCALE:{state:{alpha:0,Ia:1.5,Ma:1.5},time:0.2,p:KEY_SPLINES.LINEAR}},of:[],elements:[],oa:[],
ka:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.a.cb.x=Math.floor(ig.g.width/2);this.a.cb.y=Math.floor(ig.g.height/2);this.ka=new sc.$Ta;this.ka.si(function(a){sc.e.tc(a.data)});this.ka.Bk(function(){sc.e.tc("",j)});this.j("DEFAULT",j)},dn:function(){this.P2a();for(var a=this.oa.length;a--;)if(ig.pa.get("menu.circuit.start."+a))this.oa[a].Iv=j;this.ka.qua(this.oa[0],this.oa[1],this.oa[2],this.oa[3],this.oa[4])},neb:function(a){this.oa[a].Iv=j;a==0&&(ig.input.dd||
this.ka.Kb.focus.play())},th:function(){this.of[l.element].wD();this.of[m.element].wD();this.of[n.element].wD();this.of[o.element].wD();this.of[t.element].wD()},lb:function(a,b){if(a==sc.q.R&&(b==sc.Wc.wE||b==sc.Wc.o8))if(sc.e.ai==-1)for(var c=this.elements.length;c--;)this.Ega(c);else this.elements[sc.e.ai].Era=j},ac:function(){sc.K.Na(sc.q.R,this)},Yb:function(){sc.K.lc(sc.q.R,this)},xd:function(){for(var a=this.elements.length;a--;){this.elements[a].show();this.oa[a].j("DEFAULT",w,w,s,0.1)}ig.ua.ed(0.2);
sc.e.Q.Cg(this.ka)},Rc:function(a){sc.e.Q.Lj(this.ka);for(var b=this.elements.length;b--;){this.elements[b].j("HIDDEN",a);this.oa[b].j("HIDDEN",a)}},o8a:function(){this.j("SCALE")},Mcb:function(){for(var a=this.elements.length;a--;)if(this.elements[a].Era){this.Ega(a);this.elements[a].Era=w}this.j("DEFAULT");ig.input.bb==ig.Gb.Jc&&this.ka.qgb();ig.ua.ed(0.2)},tSa:function(){for(var a=this.elements.length;a--;)this.Ega(a)},Ega:function(a){this.elements[a].buffer=s;this.of[a].wD();switch(a){case sc.ja.NEUTRAL:this.of[a]=
ig.Rs.Mx(93,93,function(){this.SB(l)}.bind(this));break;case sc.ja.HEAT:this.of[a]=ig.Rs.Mx(149,127,function(){this.SB(m)}.bind(this));break;case sc.ja.COLD:this.of[a]=ig.Rs.Mx(149,127,function(){this.SB(n)}.bind(this));break;case sc.ja.SHOCK:this.of[a]=ig.Rs.Mx(127,149,function(){this.SB(o)}.bind(this));break;case sc.ja.WAVE:this.of[a]=ig.Rs.Mx(127,149,function(){this.SB(t)}.bind(this))}this.elements[a].buffer=this.of[a]},P2a:function(){var a=l.element,b=m.element,c=n.element,d=o.element,e=t.element;
this.of[a]=ig.Rs.Mx(93,93,function(){this.SB(l)}.bind(this));this.of[b]=ig.Rs.Mx(149,127,function(){this.SB(m)}.bind(this));this.of[c]=ig.Rs.Mx(149,127,function(){this.SB(n)}.bind(this));this.of[d]=ig.Rs.Mx(127,149,function(){this.SB(o)}.bind(this));this.of[e]=ig.Rs.Mx(127,149,function(){this.SB(t)}.bind(this));var h=this.U4a.bind(this),k=this.neb.bind(this);this.elements[a]=new sc.av.SZ(0,0,this.of[a],a,h,k);this.elements[b]=new sc.av.SZ(0,86,this.of[b],b,h,k);this.elements[c]=new sc.av.SZ(0,-86,
this.of[c],c,h,k);this.elements[d]=new sc.av.SZ(86,0,this.of[d],d,h,k);this.elements[e]=new sc.av.SZ(-86,0,this.of[e],e,h,k);this.m(this.elements[a]);this.m(this.elements[b]);this.m(this.elements[c]);this.m(this.elements[d]);this.m(this.elements[e]);this.oa[a]=new sc.av.UY(0,0,this.of[a],a);this.oa[b]=new sc.av.UY(0,86,this.of[b],b);this.oa[c]=new sc.av.UY(0,-86,this.of[c],c);this.oa[d]=new sc.av.UY(86,0,this.of[d],d);this.oa[e]=new sc.av.UY(-86,0,this.of[e],e);this.m(this.oa[a]);this.m(this.oa[b]);
this.m(this.oa[c]);this.m(this.oa[d]);this.m(this.oa[e])},U4a:function(a){this.Ega(a)},SB:function(a){var b=a.oG.length,c=80+48*a.element;if(a.rotation!=g)if(a.rotation!=0){ig.g.context.save();ig.g.context.rotate(a.rotation);this.r.Xa(a.Mb.x,a.Mb.y,65,160,127,149);ig.g.context.restore()}else a.element==0?this.r.Xa(a.Mb.x,a.Mb.y,392,368,93,93):this.r.Xa(a.Mb.x,a.Mb.y,65,160,127,149);if(sc.q.R.Si(a.element+8)&&ig.pa.get("menu.circuit.start."+a.element)&&sc.q.R.MO(a.element)){for(;b--;){this.r.Xa(a.oG[b].x,
a.oG[b].y,c,112,46,46);sc.e.Jo==sc.ok.vS&&this.r.Xa(a.oG[b].x,a.oG[b].y,224+a.element*48,320,45,45)}this.r.Xa(a.Zd.x,a.Zd.y,a.element*8,304,5,5);this.o4a(a.element,a.Zd.x+2,a.Zd.y+2,a.Cw.x,a.Cw.y)}},o4a:function(b,d,e,h,k){var l=sc.Qp.iJa(b);c.x=d;c.y=e;a.x=h;a.y=k;for(var m=s,n=0;n<l.length;n++){m=l[n];if(!this.Lq(m)){this.uCa(c.x,c.y,h,k,m,b);this.MDa(b,m,d,e,a.x,a.y)}this.I_("CW_90",h,k);h=a.x;k=a.y}},MDa:function(c,e,h,k,l,m){var n=w;if(e.orBranch){var r=e.orBranch;this.I_(e.direction,l,m);n=
Math.abs(a.x)==1&&Math.abs(a.y)==1;h=h+((n?4:5)+e.distance)*a.x;k=k+((n?2:5)+e.distance)*a.y;b.x=a.x;b.y=a.y;this.I_(r.direction,a.x,a.y);if(n)if(b.x<0&&a.x==0){h=h+2;k=k+(a.y>0?2:-2)}else if(b.x>0&&a.x==0){h=h-2;k=k+(a.y>0?2:-2)}(n=Math.abs(a.x)==1&&Math.abs(a.y)==1)&&ig.error("orBranch can't be rendered with a slope direction.");this.wCa(h,k,a,c,w,r);h=h+(n?3:4)*a.x;k=k+(n?3:4)*a.y;for(l=0;l<3;l++){d.x=0+c*8;d.y=256+(sc.q.R.ne(r.left[l].uid)?8:0);a.x!=0?this.r.Xa(h-2,k-2+(a.x>0?-3:3),d.x,d.y,5,
5):this.r.Xa(h-2+(a.y<0?-3:3),k-2,d.x,d.y,5,5);d.y=256+(sc.q.R.ne(r.right[l].uid)?8:0);a.x!=0?this.r.Xa(h-2,k-2+(a.x>0?3:-3),d.x,d.y,5,5):this.r.Xa(h-2+(a.y<0?3:-3),k-2,d.x,d.y,5,5);h=h+(n?3:5)*a.x;k=k+(n?3:5)*a.y}this.wCa(h,k,a,c,j,r,e);h=h-a.x;k=k-a.y}else{this.I_(e.direction,l,m);n=Math.abs(a.x)==1&&Math.abs(a.y)==1;h=h+((n?3:5)+e.distance)*a.x;k=k+((n?3:5)+e.distance)*a.y;d.x=0+c*8;d.y=256+(sc.q.R.ne(e.uid)?8:0);this.r.Xa(h-Math.floor(2.5),k-Math.floor(2.5),d.x,d.y,5,5)}e=e.children;if(e.length!=
0){n=s;l=a.x;m=a.y;for(r=0;r<e.length;r++){n=e[r];if(!this.Lq(n)){this.uCa(h,k,l,m,n,c);this.MDa(c,n,h,k,l,m)}}}},uCa:function(b,c,h,k,l,m){if(!(l.distance<=0)){var n=w,n=l.orBranch?sc.q.R.ne(l.orBranch.left[0].uid)||sc.q.R.ne(l.orBranch.right[0].uid)?j:w:sc.q.R.ne(l.uid)?j:w;this.I_(l.direction,h,k);h=this.q3a(a);k=ig.g.context;l=l.distance;if(h==sc.Dk.iE){d.x=m*8;d.y=n?276:272;this.vCa(a.x>0?b+3:b-2-(8-(8-l)),c,l)}else{if(h==sc.Dk.AM){d.x=m*8;d.y=n?276:272;k.save();k.translate((b+(a.y>0?1:0))*ig.g.scale,
(c+(a.y>0?3:-2))*ig.g.scale);k.rotate(a.y>0?e:-e);this.vCa(0,0,l)}else{d.x=m*8;d.y=n?288:280;k.save();k.translate(b*ig.g.scale,c*ig.g.scale);k.scale(a.x<0?-1:1,a.y<0?-1:1);this.r.Xa(a.x<0?1:2,a.y<0?1:2,d.x,d.y,l,l)}k.restore()}}},vCa:function(a,b,c){if(c<=8)this.r.Xa(a,b,d.x,d.y,c,1);else for(var e=Math.ceil(c/8),h=8;e--;){c<8&&(h=c);this.r.Xa(a,b,d.x,d.y,h,1);a=a+8;c=Math.max(0,c-8)}},wCa:function(a,b,c,d,e,h,k){var l=sc.q.R,m=l.ne(h.left[0].uid),h=l.ne(h.right[0].uid),n=m||h;if(c.x<0||c.y<0)if(h){m=
j;h=w}else if(m){h=j;m=w}var r=w;h&&!m&&(r=j);var o=e;if(c.x<0||c.y<0)o=!o;if(e)if(k.children[0].orBranch){m=l.ne(k.children[0].orBranch.left[0].uid);h=l.ne(k.children[0].orBranch.right[0].uid);n=m||h}else n=l.ne(k.children[0].uid);c.x!=0?this.r.Xa(a-(c.x<0?1:2),b-3,d*8+(n?4:0),296,4,7,o,r):c.y!=0&&this.r.Xa(a-3,b-(c.y<0?1:2),48,256+(d*8+(n?4:0)),7,4,r,o)},I_:function(b,c,d){a.x=c;a.y=d;switch(sc.Mm[b]){case sc.Mm.CW_45:Vec2.rotate(a,-h);a.x=Math.round(a.x);a.y=Math.round(a.y);break;case sc.Mm.CCW_45:Vec2.rotate(a,
h);a.x=Math.round(a.x);a.y=Math.round(a.y);break;case sc.Mm.CW_90:Vec2.kX(a);break;case sc.Mm.CCW_90:Vec2.lX(a);break;case sc.Mm.CW_135:Vec2.rotate(a,-k);a.x=Math.round(a.x);a.y=Math.round(a.y);break;case sc.Mm.CCW_135:Vec2.rotate(a,k);a.x=Math.round(a.x);a.y=Math.round(a.y)}return a},q3a:function(a){if(a.x==0&&a.y==0){ig.error("Can't get cardinal direction when x and y are zero! Direction: [x: %i, y: %i]",a.x,a.y);return-1}if(a.x>=0){if(a.y<0&&a.x==0||a.y>0&&a.x==0)return sc.Dk.AM;if(a.y==0&&a.x>
0)return sc.Dk.iE;if(a.y<0&&a.x>0||a.y>0&&a.x>0)return sc.Dk.xE}else{if(a.y==0&&a.x<0)return sc.Dk.iE;if(a.y<0&&a.x<0||a.y>0&&a.x<0)return sc.Dk.xE}return"If this return, you broke something horribly Bro."},Lq:function(a){for(var b in a)return w;return j}});var r={"0":{s6:176,t6:368,uc:92,Gc:92,x:1,y:1},1:{s6:272,t6:368,uc:120,Gc:149,x:11,y:-11,q5:Math.PI/2},2:{s6:272,t6:368,uc:120,Gc:149,x:11,y:-11,q5:-(Math.PI/2)},3:{s6:272,t6:368,uc:120,Gc:149,x:0,y:0},4:{s6:272,t6:368,uc:120,Gc:149,x:0,y:0,q5:Math.PI}};
sc.av.SZ=ig.X.extend({r:new ig.$("media/gui/circuit.png"),buffer:s,element:0,Era:w,vd:s,SSa:s,yb:s,Od:0,lz:0,HS:w,f:function(a,b,c,d,e,h){this.parent();this.v(c.width,c.height);this.rb(c.width/2,c.height/2);this.F(ig.k.za,ig.k.gb);this.buffer=c;this.element=d||0;this.SSa=e||s;this.yb=h||s;this.a.N={DEFAULT:{state:{offsetX:a,offsetY:b},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,offsetX:a+(a?a>0?15:-15:0),offsetY:b+(b?b>0?15:-15:0)},time:0.2,p:KEY_SPLINES.LINEAR}};this.j("HIDDEN",j)},va:function(a){this.buffer&&
a.ia(this.buffer,0,0,0,0);if(this.Od>0){this.Od=this.Od-ig.g.ga;if(this.Od<=0){this.Od=0;this.yb&&this.yb(this.element)}else if(this.Od<=1&&!ig.pa.get("menu.circuit.start."+this.element)&&!this.HS){ig.pa.set("menu.circuit.start."+this.element,j);this.SSa(this.element);this.HS=j}var b=(this.Od/2).Vb(0,1);this.lz=this.Od>1?2-KEY_SPLINES.LINEAR.get(b*2):KEY_SPLINES.LINEAR.get(b*2);b=r[this.element];b.q5&&a.ho().rb(this.buffer.width/2,this.buffer.height/2).vX(b.q5);a.ia(this.r,b.x,b.y,b.s6,b.t6,b.uc,
b.Gc).wd(this.lz);b.q5&&a.Po()}},show:function(){this.j("DEFAULT",w,w,function(){if(sc.q.R.Si(this.element+8)&&!ig.pa.get("menu.circuit.start."+this.element)){ig.ua.ed(2);this.Od=2}}.bind(this),0.1)}});var p=[{x:47,y:47}],q=[{x:52,y:47},{x:75,y:70},{x:98,y:47}],x=[{x:52,y:81},{x:75,y:58},{x:98,y:81}],y=[{x:47,y:52},{x:70,y:75},{x:47,y:98}],z=[{x:81,y:52},{x:58,y:75},{x:81,y:98}];sc.av.UY=ig.Vn.extend({r:new ig.$("media/gui/circuit.png"),rotation:0,cn:w,LW:Vec2.pc(0,0),sb:[],element:0,dc:s,Iv:w,f:function(a,
b,c,d){this.parent();this.v(c.width,c.height);this.F(ig.k.za,ig.k.gb);this.element=d;this.dc=sc.qd.submit;this.a.N={DEFAULT:{state:{offsetX:a,offsetY:b},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,offsetX:a+(a?a>0?15:-15:0),offsetY:b+(b?b>0?15:-15:0)},time:0.2,p:KEY_SPLINES.LINEAR}};switch(this.element){case sc.ja.NEUTRAL:this.sb=p;break;case sc.ja.HEAT:this.sb=q;this.rotation=e;this.LW.y=-c.width||0;break;case sc.ja.COLD:this.sb=x;this.rotation=-e;this.LW.x=-c.height||0;break;case sc.ja.SHOCK:this.sb=
y;break;case sc.ja.WAVE:this.sb=z;this.rotation=-Math.PI;this.LW.y=-c.height||0;this.LW.x=-c.width||0}this.j("HIDDEN",j)},Qb:function(){if(this.Iv){this.dc&&this.dc.play();sc.e.A5(this.element)}},va:function(a){if(sc.e.Jo!=sc.ok.vS&&(!ig.ua.Ph()&&this.Iv)&&this.focus)if(this.element!=sc.ja.NEUTRAL){a.ho().vX(this.rotation);a.ia(this.r,-3+this.LW.x,2+this.LW.y,192,160,122,145);a.Po()}else a.ia(this.r,-3,-3,320,168,99,99)},tma:function(){return!ig.ua.Ph()||this.Iv},PF:function(){if(!this.Iv)return w;
for(var a=Math.floor(this.a.kf.x),b=Math.floor(this.a.kf.y),c=Math.floor(sc.V.to()),d=Math.floor(sc.V.Vm()),e=this.sb.length;e--;)if(Math.abs(c-(this.sb[e].x+a))+Math.abs(d-(this.sb[e].y+b))<=45)return j;return w}})});ig.G=j;
ig.I("game.feature.menu.gui.circuit.circuit-detail").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.menu.gui.circuit.circuit-misc","game.feature.menu.gui.circuit.circuit-detail-elements","game.feature.menu.gui.circuit.circuit-overview").H(function(){function a(a,b,c){if(b<=1)return w;for(var c=p[c].xX,d=c.K2,e=d.length;e--;)if(a==d[e]&&!sc.q.R.Ov(c.$a[b-2]))return j;return w}function b(a,b,h,k,l,m,n,r,o,p,t,C){var y=h&&sc.q.R.ne(h.uid),
B=s,V=w;if(!p){u.x=32;u.y=0;v.x=l;v.y=m;A.x=8;A.y=8;z.x=0;z.y=0;q.x=-n;q.y=-r;d(q,p,y,j,o);u.x=t>=0?u.x+Math.max(0,C[t]-1)*8:u.x+Math.max(0,h.level-1)*8;a.ia(b,v.x,v.y,u.x,u.y,A.x,A.y)}if(k&&k.length!=0){q.x=n;q.y=r;for(h=0;h<k.length;h++){B=k[h];V=B.orBranch?sc.q.R.ne(B.orBranch.left[0].uid)||sc.q.R.ne(B.orBranch.right[0].uid)?j:w:sc.q.R.ne(B.uid)?j:w;u.x=32;u.y=0;v.x=l;v.y=m;A.x=8;A.y=8;z.x=0;z.y=0;if(!p){q.x=n;q.y=r;e(B.direction,q.x,q.y)}d(q,p,y,V,o);u.x=t>=0?t+1>=3?B.orBranch?u.x+Math.max(0,
B.orBranch.levels[0]-1)*8:u.x+Math.max(0,B.level-1)*8:u.x+Math.max(0,C[t+1]-1)*8:B.orBranch?u.x+Math.max(0,B.orBranch.levels[0]-1)*8:u.x+Math.max(0,B.level-1)*8;a.ia(b,v.x,v.y,u.x,u.y,A.x,A.y);if(p){Vec2.assign(x,q);c(a,b,B,o,v.x+z.x,v.y+z.y,q.x,q.y,1,j);Vec2.assign(q,x);e("CW_90",q.x,q.y)}}}}function c(a,b,c,d,h,l,m,n,r,o,p){var t=0,t=p?r:(r!=g?r:c.distance)*8;if(!(t<=0)){q.x=m;q.y=n;var v=c.orBranch?j:w,p=w,p=v?sc.q.R.ne(c.orBranch.left[0].uid)||sc.q.R.ne(c.orBranch.right[0].uid)?j:w:sc.q.R.ne(c.uid)?
j:w,r=0,r=v?c.orBranch.levels[0]:c.level||0,r=Math.max(0,r-1)*16;o&&e(c.direction,m,n);switch(k(q)){case sc.Dk.iE:if(t<=16)a.ia(b,h,l,(p?80+d*48:32)+r,80,t,8);else{c=Math.ceil(t/16);for(m=16;c--;){t<16&&(m=t);a.ia(b,h,l,(p?80+d*48:32)+r,80,m,8);h=h+16;t=Math.max(0,t-16)}}break;case sc.Dk.AM:if(t<=16)a.ia(b,h,l,p?177+d*8:169,312+r,8,t);else{c=Math.ceil(t/16);for(m=16;c--;){t<16&&(m=t);a.ia(b,h,l,p?177+d*8:169,312+r,8,m);l=l+16;t=Math.max(0,t-16)}}break;case sc.Dk.xE:c=p;m=q.x;n=q.y;o=w;if(m>0&&n<0||
m<0&&n>0){o=j;l=l+(t-16+1)}else l=l+1;q.x=m;q.y=n;m=Math.ceil(t/16);for(n=16;m--;){t<16&&(n=t);a.ia(b,h,l-3,(c?80+d*48:32)+r,88,n,24,o);h=h+16;t=Math.max(0,t-16);l=l+(o?-(t<16?t:16):16)}}}}function d(a,b,c,d,e){if(b||c){u.x=d?80:104;u.x=u.x+e*48}else u.x=32;switch(h(a)){case sc.Zn.rr:u.y=0;A.y=8;v.x=v.x-3;v.y=v.y-(b?11:19);z.y=-8;break;case sc.Zn.fm:u.y=8;A.y=8;v.x=v.x+(b?5:13);v.y=v.y-3;z.x=8;break;case sc.Zn.gv:u.y=16;A.y=8;v.x=v.x-3;v.y=v.y+(b?5:13);z.y=z.y+8;break;case sc.Zn.im:u.y=24;A.y=8;v.x=
v.x-(b?11:19);v.y=v.y-3;z.x=-8;break;case sc.Zn.qia:u.y=32;A.y=12;v.x=25;v.y=4;break;case sc.Zn.EAa:u.y=44;A.y=12;v.x=25;v.y=25;break;case sc.Zn.jja:u.y=56;A.y=12;v.x=9;v.y=25;break;case sc.Zn.ria:u.y=68;A.y=12;v.x=9;v.y=5}}function e(a,b,c){q.x=b;q.y=c;switch(sc.Mm[a]){case sc.Mm.CW_45:Vec2.rotate(q,-n);q.x=Math.round(q.x);q.y=Math.round(q.y);break;case sc.Mm.CCW_45:Vec2.rotate(q,n);q.x=Math.round(q.x);q.y=Math.round(q.y);break;case sc.Mm.CW_90:Vec2.kX(q);break;case sc.Mm.CCW_90:Vec2.lX(q);break;
case sc.Mm.CW_135:Vec2.rotate(q,-o);q.x=Math.round(q.x);q.y=Math.round(q.y);break;case sc.Mm.CCW_135:Vec2.rotate(q,o);q.x=Math.round(q.x);q.y=Math.round(q.y)}}function h(a){if(a.x>=0){if(a.y<0&&a.x==0)return sc.Zn.rr;if(a.y>0&&a.x==0)return sc.Zn.gv;if(a.y==0&&a.x>0)return sc.Zn.fm;if(a.y<0&&a.x>0)return sc.Zn.qia;if(a.y>0&&a.x>0)return sc.Zn.EAa}else{if(a.y==0&&a.x<0)return sc.Zn.im;if(a.y<0&&a.x<0)return sc.Zn.ria;if(a.y>0&&a.x<0)return sc.Zn.jja}return s}function k(a){if(a.x>=0){if(a.y<0&&a.x==
0||a.y>0&&a.x==0)return sc.Dk.AM;if(a.y==0&&a.x>0)return sc.Dk.iE;if(a.y<0&&a.x>0||a.y>0&&a.x>0)return sc.Dk.xE}else{if(a.y==0&&a.x<0)return sc.Dk.iE;if(a.y<0&&a.x<0||a.y>0&&a.x<0)return sc.Dk.xE}return"If this return, you broke something horribly Bro."}function l(a){for(var b in a)return w;return j}var m=Math.PI/2,n=Math.PI/4,o=m+n,t=Math.floor(20),r=!window.aj||w,p=[{element:sc.ja.NEUTRAL,Cw:{x:0,y:-1},Zd:{x:375,y:375},offset:{x:1095,y:1095},size:{x:751,y:751},xX:{K2:[7,8,20,21,33,34,46,47],$a:[225,
225]}},{element:sc.ja.HEAT,rotation:m,Cw:{x:1,y:0},Zd:{x:519,y:199},offset:{x:951,y:1990},size:{x:1039,y:951},xX:{K2:[64,63,89,97,98,118,119,128,127,105,73,72],$a:[230,231]}},{element:sc.ja.COLD,rotation:-m,Cw:{x:-1,y:0},Zd:{x:519,y:751},offset:{x:951,y:0},size:{x:1039,y:951},xX:{K2:[176,205,206,214,215,151,150,160,159,184,185,192],$a:[230,231]}},{rotation:0,element:sc.ja.SHOCK,Cw:{x:0,y:-1},Zd:{x:199,y:519},offset:{x:1990,y:951},size:{x:951,y:1039},xX:{K2:[7,8,20,21,33,34,46,47],$a:[230,231]}},{element:sc.ja.WAVE,
rotation:Math.PI,Cw:{x:0,y:1},Zd:{x:751,y:519},offset:{x:0,y:951},size:{x:951,y:1039},xX:{K2:[7,8,20,21,33,34,46,47],$a:[230,231]}}],q=Vec2.pc(0,0),x=Vec2.pc(0,0),y=Vec2.pc(0,0),z=Vec2.pc(0,0),u=Vec2.pc(0,0),v=Vec2.pc(0,0),A=Vec2.pc(0,0),C={225:0,230:40,231:80},B=Vec2.pc(0,0);sc.cUa=ig.X.extend({r:new ig.$("media/gui/circuit.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ia:0.5,Ma:0.5},time:0.2,p:KEY_SPLINES.LINEAR}},on:[],cursor:s,ov:Vec2.pc(0,0),EE:0,DS:[],Lh:0,
Qj:w,Bh:[],JM:w,f:function(){this.parent();this.v(ig.g.width,ig.g.height);this.rb(ig.g.width/2,ig.g.height/2);if(!this.constructor.Km)this.constructor.Km=this.r.createPattern(0,192,64,64,ig.ue.Pf.gz);this.a.gL(j);this.cursor=new sc.dUa;this.m(this.cursor);this.j("HIDDEN",j)},mPa:function(a,b,c,d){var e=s;if(ig.input.bb==ig.Gb.Jc){e=this.Bh[a];this.$Ca(e,a);sc.e.Fe.x=e.x;sc.e.Fe.y=e.y;this.by(a);this.cursor.moveTo(sc.e.Fe.x,sc.e.Fe.y,b!=-1,c);sc.e.$d.x=Math.floor(-e.x+ig.g.width/2);sc.e.$d.y=Math.floor(-e.y+
ig.g.height/2)}else{e=this.DS[a];sc.e.$d.x=e.x;sc.e.$d.y=e.y}this.qm(a);this.gj(sc.e.$d.x,sc.e.$d.y,c,KEY_SPLINES.EASE,d)},qm:function(a){var a=p[a],b=-sc.e.$d.x,c=Math.floor(162);sc.e.$d.x=-b.Vb(a.offset.x-c,a.offset.x+(a.size.x-ig.g.width)+c);b=-sc.e.$d.y;c=Math.floor(42);sc.e.$d.y=-b.Vb(a.offset.y-c,a.offset.y+(a.size.y-ig.g.height)+c)},by:function(a){var a=p[a],b=sc.e.Fe.x;sc.e.Fe.x=b.Vb(a.offset.x-32+16-120,a.offset.x+(a.size.x-16)+32+120);var b=sc.e.Fe.y,c=sc.e.Fe.x+sc.e.$d.x;sc.e.Fe.y=b.Vb(a.offset.y,
a.offset.y+a.size.y-(c<181?Math.min(25,181-c):0))},rkb:function(a,b){if(a>=0){this.r2a(a);if(b!=-1){var c=this.DS[b];c.x=sc.e.$d.x;c.y=sc.e.$d.y;if(ig.input.bb==ig.Gb.Jc){c=this.Bh[b];c.x=sc.e.Fe.x;c.y=sc.e.Fe.y}this.on[b].xi(j);this.on[a].vf(w);this.mPa(a,b,0.5,function(){this.on[sc.e.Z4].j("HIDDEN",j)}.bind(this));ig.ua.ed(0.5)}else{this.on[a].vf(j);this.mPa(a,b);this.j("DEFAULT")}this.z2a()}else{if(b!=-1){c=this.DS[b];c.x=sc.e.$d.x;c.y=sc.e.$d.y;if(ig.input.bb==ig.Gb.Jc){c=this.Bh[b];c.x=sc.e.xca.x;
c.y=sc.e.xca.y}}this.j("HIDDEN")}},Rc:function(){for(var a=this.on.length;a--;)this.on[a]&&this.on[a].Ev();this.j("HIDDEN")},ac:function(){sc.K.Na(sc.e,this);this.cursor.ac();for(var a=this.on.length;a--;)this.on[a]&&this.on[a].ac()},Yb:function(){this.cursor.Yb();sc.K.lc(sc.e,this);for(var a=this.on.length;a--;)this.on[a]&&this.on[a].Yb()},update:function(){sc.e.kva=w;if(!ig.ua.Ph()&&!(sc.e.Jo==sc.ok.kS||sc.e.Jo==sc.ok.HH||sc.e.ai>=0&&!this.on[sc.e.ai].ka.Tc())){var a=sc.e.ai;if(this.Lh!=ig.input.bb){this.Qj=
ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb;var b=s;if(ig.input.bb==ig.Gb.Jc){b=this.Bh[a];this.$Ca(b,a);sc.e.Fe.x=b.x;sc.e.Fe.y=b.y;this.by(a);sc.e.$d.x=Math.floor(-b.x+ig.g.width/2);sc.e.$d.y=Math.floor(-b.y+ig.g.height/2);this.qm(a);this.gj(sc.e.$d.x,sc.e.$d.y,0.3,KEY_SPLINES.EASE);this.cursor.moveTo(sc.e.Fe.x,sc.e.Fe.y)}else if(ig.input.bb==ig.Gb.gm){b=this.Bh[a];if(sc.e.jl){b.x=sc.e.Cfa.x;b.y=sc.e.Cfa.y}else{b.x=sc.e.Fe.x;b.y=sc.e.Fe.y}sc.e.nY(sc.e.jl)}sc.e.qga()}a=w;if(!this.a.Yk){if(sc.V.tMa(0.5)){sc.e.$d.x=
Math.floor(sc.e.$d.x+250*ig.g.Da);this.qm(sc.e.ai);this.a.scroll.x=sc.e.$d.x;a=j}else if(sc.V.uMa(0.5)){sc.e.$d.x=Math.floor(sc.e.$d.x-250*ig.g.Da);this.qm(sc.e.ai);this.a.scroll.x=sc.e.$d.x;a=j}if(sc.V.vMa(0.5)){sc.e.$d.y=Math.floor(sc.e.$d.y+250*ig.g.Da);this.qm(sc.e.ai);this.a.scroll.y=sc.e.$d.y;a=j}else if(sc.V.sMa(0.5)){sc.e.$d.y=Math.floor(sc.e.$d.y-250*ig.g.Da);this.qm(sc.e.ai);this.a.scroll.y=sc.e.$d.y;a=j}}if(!a&&ig.input.bb==ig.Gb.Jc){var c=b=0,d=0,a=w;if((d=sc.V.ke(ig.Pc.El))<-0.5){b=(-150+
d*100)*ig.g.Da;a=j}else if((d=sc.V.ke(ig.Pc.El))>0.5){b=(150+d*100)*ig.g.Da;a=j}if((d=sc.V.ke(ig.Pc.Fl))<-0.5){c=(-150+d*100)*ig.g.Da;a=j}else if((d=sc.V.ke(ig.Pc.Fl))>0.5){c=(150+d*100)*ig.g.Da;a=j}if(a){sc.e.kva=j;sc.e.Fe.x=b>=0?Math.floor(sc.e.Fe.x+b):Math.ceil(sc.e.Fe.x+b);sc.e.Fe.y=c>=0?Math.floor(sc.e.Fe.y+c):Math.ceil(sc.e.Fe.y+c);this.by(sc.e.ai);this.cursor.moveTo(sc.e.Fe.x,sc.e.Fe.y);B.x=sc.e.$d.x;B.y=sc.e.$d.y;sc.e.$d.x=Math.floor(-sc.e.Fe.x+ig.g.width/2);sc.e.$d.y=Math.floor(-sc.e.Fe.y+
ig.g.height/2);this.qm(sc.e.ai)}a=w;if(Math.abs(sc.e.$d.x-B.x)>=18||Math.abs(sc.e.$d.y-B.y)>=18)a=j;if(this.a.Yk){this.a.Yk.x=sc.e.$d.x;this.a.Yk.y=sc.e.$d.y}else if(a)this.gj(sc.e.$d.x,sc.e.$d.y,0.3,KEY_SPLINES.LINEAR);else{this.a.scroll.x=sc.e.$d.x;this.a.scroll.y=sc.e.$d.y}}}},va:function(a){var b=this.a;b.Os()?a.Rj(this.constructor.Km,-256,-256,-b.scroll.x,-b.scroll.y,1216,704):a.Rj(this.constructor.Km,0,0,-b.scroll.x,-b.scroll.y,b.size.x,b.size.y)},wu:function(a,b){if(!(ig.ua.Ph()||this.on[sc.e.jl]&&
!this.on[sc.e.ai].ka.Tc()))if(sc.e.ai==-1||sc.e.Jo==sc.ok.kS)if(a&&sc.V.e2()){sc.e.y1();sc.e.nY(sc.e.jl);this.JM=j}else sc.e.NQ=w;else if(!b){var c=Math.floor(sc.V.to()),d=Math.floor(sc.V.Vm());if(sc.V.e2()||this.JM){this.JM=w;Vec2.Sa(this.ov,c,d);sc.e.NQ=j;this.EE=0}else if(sc.V.$oa()){if(sc.e.NQ){this.EE=this.EE+ig.g.Da;if(!sc.e.QQ)sc.e.QQ=(Math.abs(c-this.ov.x)>=1||Math.abs(d-this.ov.y)>=1)&&this.EE>=0.1;sc.e.$d.x=sc.e.$d.x+(c-this.ov.x);sc.e.$d.y=sc.e.$d.y+(d-this.ov.y);this.qm(sc.e.ai);this.a.scroll.x=
sc.e.$d.x;this.a.scroll.y=sc.e.$d.y;Vec2.Sa(this.ov,c,d)}}else sc.e.NQ=w}},lb:function(a,b){if(a==sc.e)if(b==sc.ca.aja){this.qm(sc.e.ai);this.gj(sc.e.$d.x,sc.e.$d.y,0.2)}else if(b==sc.ca.p8&&ig.input.bb==ig.Gb.Jc){sc.e.$d.x=Math.floor(-sc.e.Fe.x+ig.g.width/2);sc.e.$d.y=Math.floor(-sc.e.Fe.y+ig.g.height/2);this.qm(sc.e.ai);this.gj(sc.e.$d.x,sc.e.$d.y,0.2,KEY_SPLINES.LINEAR)}},$Ca:function(a,b){if(a.x<=-1E4||a.y<=-1E4){a.x=-this.DS[b].x+ig.g.width/2;a.y=-this.DS[b].y+ig.g.height/2}},z2a:function(){if(this.Lh!=
ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb}},r2a:function(a){if(!this.on[a]){this.on[a]=new sc.st(a);this.on[a].l(p[a].offset.x,p[a].offset.y);var b=Vec2.pc(0,0);b.x=ig.g.width/2-p[a].Zd.x-p[a].offset.x;b.y=ig.g.height/2-p[a].Zd.y-p[a].offset.y;this.DS[a]=b;this.Bh[a]=Vec2.pc(-1E4,-1E4);this.SC(this.on[a],0)}}});sc.st=ig.X.extend({r:new ig.$("media/gui/circuit.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},EL:s,
ka:s,Ue:[],Ay:0,f:function(a){this.parent();this.v(p[a].size.x,p[a].size.y);a==g&&f(Error("Element muss be defined"));this.EL=p[a];this.ka=new sc.XTa;sc.K.Na(sc.q.R,this);this.O2a();this.j("DEFAULT",j)},va:function(a){window.aj&&r&&a.Ec("white",0,0,this.a.size.x,this.a.size.y).wd(0.05)},ac:function(){sc.K.Na(sc.q.R,this)},Yb:function(){sc.K.lc(sc.q.R,this)},vf:function(a,b){sc.e.Q.Cg(this.ka);sc.e.kk(this.rI.bind(this));ig.ua.ed(0.2);this.j("DEFAULT",a,w,b||s)},xi:function(a){sc.e.jk();sc.e.Q.Lj(this.ka);
a||this.j("HIDDEN")},Ev:function(){sc.e.Q.Lj(this.ka)},lb:function(a,b,c){if(a==sc.q.R&&b==sc.Wc.wE&&c>=this.Ay&&c<=this.Ay+this.Ue.length-1)for(a=this.Ue.length;a--;)this.Ue[a].FSa()},rI:function(){this.xi();sc.e.A5(-1)},O2a:function(){var a=sc.Qp.iJa(this.EL.element);y.x=this.EL.Zd.x;y.y=this.EL.Zd.y;var b=this.EL.Cw.x,c=this.EL.Cw.y;q.x=b;q.y=c;var d=s;this.Ay=a[0].uid;d=new sc.st.dBa(y.x,y.y,b,c,this.EL.element,a);this.m(d);for(var h=0;h<a.length;h++){d=a[h];l(d)||this.mCa(d,this.EL.element,y.x,
y.y,b,c,s);e("CW_90",b,c);b=q.x;c=q.y}},mCa:function(a,b,c,d,h,k,m){var n=w,r=s,o=s;if(a.orBranch){var p=a.orBranch;e(a.direction,h,k);n=Math.abs(q.x)==1&&Math.abs(q.y)==1;c=c+(a.distance+(n?2:3))*8*q.x;d=d+(a.distance+(n?2:3))*8*q.y;x.x=q.x;x.y=q.y;e(p.direction,q.x,q.y);(n=Math.abs(q.x)==1&&Math.abs(q.y)==1)&&ig.error("orBranch can't be rendered with a slope direction.");r=new sc.st.Lza(c,d,q.x,q.y,p,a,b,w);this.m(r);for(var c=c+(n?3:6)*8*q.x,d=d+(n?3:6)*8*q.y,h=r=s,k=m,t=0;t<3;t++){if(t+1>=3)r=
h=a.children[0];else{r=p.left[t+1];h=p.right[t+1]}if(q.x!=0){k=r=new sc.st.mZ(c,d+(q.x>0?-24:24),q.x,q.y,p.left[t],b,r,this.ka,this.Ay,k,t,p.levels,j);this.m(r);this.Ue[p.left[t].uid-this.Ay]=r;r=new sc.st.mZ(c,d+(q.x>0?24:-24),q.x,q.y,p.right[t],b,h,this.ka,this.Ay,m,t,p.levels,w)}else{k=r=new sc.st.mZ(c+(q.y>0?24:-24),d,q.x,q.y,p.left[t],b,r,this.ka,this.Ay,k,t,p.levels,j);this.m(r);this.Ue[p.left[t].uid-this.Ay]=r;r=new sc.st.mZ(c+(q.y>0?-24:24),d,q.x,q.y,p.right[t],b,h,this.ka,this.Ay,m,t,p.levels,
w)}m=r;this.m(r);this.Ue[p.right[t].uid-this.Ay]=r;c=c+(n?3:5)*8*q.x;d=d+(n?3:5)*8*q.y;o=r}c=c-(n?1:2)*8*q.x;d=d-(n?1:2)*8*q.y;r=new sc.st.Lza(c,d,q.x,q.y,p,a,b,j);this.m(r);c=c+8*q.x;d=d+8*q.y}else{e(a.direction,h,k);n=Math.abs(q.x)==1&&Math.abs(q.y)==1;c=c+(a.distance+(n?3:5))*8*q.x;d=d+(a.distance+(n?3:5))*8*q.y;r=new sc.st.mZ(c,d,q.x,q.y,a,b,s,this.ka,this.Ay,m);this.m(r);o=this.Ue[a.uid-this.Ay]=r}a=a.children;if(a.length!=0){n=s;h=q.x;k=q.y;for(p=0;p<a.length;p++){n=a[p];if(!l(n)){d=this.ika(n,
b,c,d,h,k);this.mCa(n,b,c,d,h,k,o)}}}},ika:function(a,b,c,d,h,k){if(a.distance<=0)return d;e(a.direction,h,k);q.x==1&&(q.y==-1&&a.orBranch)&&(d=d-1);a=new sc.st.oXa(c,d,q.x,q.y,a,b);this.m(a);return d}});sc.st.dBa=ig.X.extend({r:new ig.$("media/gui/circuit.png"),element:0,children:s,xv:0,yv:0,dF:0,f:function(a,b,c,d,e,h){this.parent();this.v(40,40);this.l(a-t,b-t);this.element=e;this.children=h;this.xv=c;this.yv=d;this.dF=t-6},va:function(a){window.aj&&r&&a.Ec("red",1,1,39,39).wd(0.2);a.ia(this.r,
this.dF,this.dF,56,0+this.element*16,13,13);b(a,this.r,s,this.children,t,t,this.xv,this.yv,this.element,j)}});sc.st.mZ=ig.Vn.extend({r:new ig.$("media/gui/circuit.png"),Sv:new ig.$("media/gui/circuit-icons.png"),PP:s,element:0,$e:s,Fz:s,coords:{x:5,y:5,uc:31,Gc:31},xv:0,yv:0,dF:0,nD:-1,Rda:s,kG:j,wk:w,dc:s,gl:s,MS:1,JE:s,f:function(b,c,d,e,h,k,l,m,n,r,o,p,q){this.parent();this.v(41,41);this.l(b-t,c-t);this.PP=r||s;this.element=k;this.$e=h;this.xv=d;this.yv=e;this.dF=t-15;this.dc=sc.qd.submit;this.gl=
sc.qd.xx;this.JE=sc.q.R;this.FSa();if(l){this.Fz=[];this.Fz.push(l);this.nD=o;this.Rda=p;this.kG=q==g?j:q;if(a(this.$e.uid,this.Rda[this.nD],this.element))this.wk=j}else if(a(this.$e.uid,this.$e.level,this.element))this.wk=j;m&&m.Uc(this,h.uid-n||0,0)},FSa:function(){this.MS=1;if(!this.JE.ne(this.$e.uid))this.MS=this.YBa(this.PP,this.MS)},WIa:function(){return p[this.element].offset.x},XIa:function(){return p[this.element].offset.y},tO:function(){return Math.floor(Vec2.k1(sc.e.Fe.x-p[this.element].offset.x,
sc.e.Fe.y-p[this.element].offset.y,this.a.i.x+t,this.a.i.y+t))},va:function(a){if(window.aj){r&&a.Ec(this.Fz?"yellow":"green",1,1,39,39).wd(0.2);r&&a.Ec(this.Fz?"yellow":"green",5,5,31,31).wd(0.2)}a.ia(this.r,this.dF,this.dF,0,sc.q.R.ne(this.$e.uid)?32+this.element*32:0,31,31);if(this.MS>0){var c=sc.Qp.DF(this.$e.uid).qa;a.ia(this.Sv,8,8,c%10*24,Math.floor(c/10)*24,24,24).wd(this.MS)}b(a,this.r,this.$e,this.Fz?this.Fz:this.$e.children,t,t,this.xv,this.yv,this.element,w,this.nD,this.Rda);if(this.wk){c=
p[this.element].xX.$a[(this.Fz?this.Rda[this.nD]:this.$e.level)-2];c=C[c];a.ia(this.r,this.dF,this.dF,480,168+c,32,40)}},Qb:function(){if(sc.e.QQ)sc.e.QQ=w;else if(this.MS<=0.8)this.gl&&this.gl.play();else if(this.wk)this.gl&&this.gl.play();else{if(ig.input.bb==ig.Gb.gm){var a=Math.floor(sc.V.Vm());if(a<=21||a>=299)return}this.dc&&this.dc.play();sc.e.p6a(this)}},wu:function(a,b){ig.input.state("shift")||this.parent(a,b)},PF:function(){if(sc.e.ai==-1||sc.e.Jo==sc.ok.kS)return w;if(sc.e.NQ)return sc.e.jl==
this;if(!ig.ua.Ph()){if(ig.input.bb==ig.Gb.Jc){var a=this.tO();if(sc.e.kva){sc.e.nY(this);return w}a<=14?sc.e.MHa(this.a.i.x+20+p[this.element].offset.x,this.a.i.y+20+p[this.element].offset.y,this):sc.e.nY(this);return w}var a=Math.floor(sc.V.to()),b=Math.floor(sc.V.Vm());if(b<=21||b>=299){sc.e.nY(this);return w}this.coords.x=5+this.a.kf.x;this.coords.y=5+this.a.kf.y;(a=this.coords.x<=a&&this.coords.x+this.coords.uc>a&&this.coords.y<=b&&this.coords.y+this.coords.Gc>b)&&!ig.input.state("shift")?sc.e.MHa(this.a.i.x+
20+p[this.element].offset.x,this.a.i.y+20+p[this.element].offset.y,this):sc.e.nY(this);return a}},YBa:function(a,b){if(b<=0.2)return 0.2;if(a){if(a.Fz)if(a.nD==2){if(this.JE.ne(a.$e.uid)||this.JE.ne(a.$e.uid-1))return b}else if(a.kG){if(this.JE.ne(a.$e.uid)||this.JE.ne(a.$e.uid+1))return b}else{if(this.JE.ne(a.$e.uid)||this.JE.ne(a.$e.uid-1))return b}else if(this.JE.ne(a.$e.uid))return b;return this.YBa(a.PP,(b*100-20)/100)}return b}});sc.st.Lza=ig.X.extend({r:new ig.$("media/gui/circuit.png"),s4:s,
$e:s,element:0,xv:0,yv:0,Jna:0,hd:w,Cca:0,oSa:0,qSa:0,pSa:-1,Awa:-1,Bwa:-1,Fpa:w,f:function(a,b,c,d,e,h,l,m){this.parent();this.l(a,b);this.element=l;this.s4=e;this.$e=h;this.xv=c;this.yv=d;this.hd=m!=g?m:w;q.x=c;q.y=d;this.Cca=this.hd?Math.max(0,h.children[0].level-1)*56:Math.max(0,e.levels[0]-1)*56;this.oSa=this.s4.left[0].uid;this.qSa=this.s4.right[0].uid;this.Awa=this.$e?this.s4.left[2].uid:-1;this.Bwa=this.$e?this.s4.right[2].uid:-1;this.Fpa=this.$e.children[0].orBranch?j:w;this.pSa=this.$e?
this.$e.children[0].uid:-1;if(this.Fpa){this.Awa=this.$e?this.$e.children[0].orBranch.left[0].uid:-1;this.Bwa=this.$e?this.$e.children[0].orBranch.right[0].uid:-1;if(this.hd)this.Cca=Math.max(0,this.$e.children[0].orBranch.levels[0]-1)*56}this.Jna=k(q);switch(this.Jna){case sc.Dk.iE:this.v(32,56);this.l(a+(c>0?-3:-27),b-27);break;case sc.Dk.AM:this.v(56,32);this.l(a-27,b+(d>0?-3:-27));break;case sc.Dk.xE:ig.warn("This will lead to an error bro, we can't draw orBranches in slopes: "+Vec2.print(c,d))}},
va:function(a){window.aj&&r&&a.Ec("yellow",0,0,this.a.size.x,this.a.size.y).wd(0.2);var b=sc.q.R,c=b.ne(this.oSa),d=b.ne(this.qSa),e=c||d;if(this.xv<0||this.yv<0)if(c&&d)c=d=j;else if(d){c=j;d=w}else if(c){d=j;c=w}var h=w;d&&!c&&(h=j);var k=this.hd;if(this.xv<0||this.yv<0)k=!k;if(this.hd)if(this.Fpa){c=b.ne(this.Awa);d=b.ne(this.Bwa);e=c||d}else e=b.ne(this.pSa);switch(this.Jna){case sc.Dk.iE:a.ia(this.r,0,h?-1:0,e?352+this.element*32:320,this.Cca,32,56,k,h);break;case sc.Dk.AM:a.ia(this.r,h?-1:0,
0,this.Cca,e?344+this.element*32:312,56,32,h,k)}c&&d&&a.ia(this.r,this.a.size.x/2-16,this.a.size.y/2-16,480,320,32,32)}});sc.st.oXa=ig.X.extend({r:new ig.$("media/gui/circuit.png"),Faa:s,element:0,xv:0,yv:0,RNa:w,f:function(a,b,c,d,e,l){this.parent();this.element=l;this.Faa=e;this.xv=c;this.yv=d;q.x=c;q.y=d;c=e.distance*8;d=k(q);l=d==sc.Dk.xE;a=a+(l?q.x>0?13:c+11:q.x>0?21:c+19)*q.x;b=b+(l?q.y>0?q.x>0?12:11:c+(q.x>0?13:12):q.y>0?21:c+19)*q.y;q.x==0&&(a=a-3);q.y==0&&(b=b-3);var m=l=0;if(e.orBranch){if(k(q)==
sc.Dk.xE){l=3;m=6;this.RNa=j}switch(h(q)){case sc.Zn.jja:a=a-3;break;case sc.Zn.qia:b=b-2;break;case sc.Zn.ria:a=a-3;b=b-3}}this.l(a,b);switch(d){case sc.Dk.iE:this.v(c,8);break;case sc.Dk.AM:this.v(8,c);break;case sc.Dk.xE:this.v(c+l,c+m)}},va:function(a){window.aj&&r&&a.Ec("blue",0,0,this.a.size.x,this.a.size.y).wd(0.2);this.RNa?c(a,this.r,this.Faa,this.element,0,0,this.xv,this.yv,this.Faa.distance*8+3,w,j):c(a,this.r,this.Faa,this.element,0,0,this.xv,this.yv)}})});ig.G=j;
ig.I("game.feature.menu.gui.circuit.circuit-swap-branches").J("impact.feature.gui.base.basic-gui","game.feature.menu.gui.circuit.circuit-misc","game.feature.menu.gui.circuit.circuit-detail-elements").H(function(){sc.mha=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},SCALE:{state:{alpha:0,Ia:1.5,Ma:1.5},time:0.2,p:KEY_SPLINES.LINEAR}},ka:s,cursor:s,Qj:w,Lh:0,Bh:Vec2.pc(-1E4,-1E4),wka:w,f:function(){this.parent();this.v(274,274);
this.l(sc.options.Xg?147:103,23);this.a.cb.x=Math.floor(137);this.a.cb.y=Math.floor(137);var a=b.length,d=s,d=s;this.ka=new sc.W7;this.ka.UO=j;for(this.ka.Uk=function(){ig.input.bb==ig.Gb.Jc&&(sc.V.Xr()&&sc.e.ED)&&sc.e.ED.Qb()}.bind(this);a--;){d=b[a];if(sc.q.R.MO(d.element))if(sc.Qp.DF(d.bf).type!=sc.QH.xia)ig.warn("Swap Skill UID is not first branch UID: "+d.bf+" [Panel will be skipped]");else{d=new sc.mha.HTa(d.i.x-1,d.i.y,d.bf,d.element);this.m(d);this.ka.Uc(d)}}this.cursor=new sc.bUa;this.m(this.cursor);
this.j("HIDDEN",j)},update:function(){sc.e.DX=w;if(!ig.ua.Ph()&&this.ka.Tc()){if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb;var a=s;if(ig.input.bb==ig.Gb.Jc){a=this.Bh;this.r_(a);sc.e.Vf.x=a.x;sc.e.Vf.y=a.y;this.FE();sc.e.SOa();this.cursor.moveTo(sc.e.Vf.x,sc.e.Vf.y)}else if(ig.input.bb==ig.Gb.gm){this.Bh.x=sc.e.Vf.x;this.Bh.y=sc.e.Vf.y;this.cursor.$p()}sc.e.qga()}if(ig.input.bb==ig.Gb.Jc){var b=a=0,e=0,h=w;if((e=sc.V.ke(ig.Pc.El))<-0.5){a=(-100+e*100)*ig.g.Da;h=j}else if((e=
sc.V.ke(ig.Pc.El))>0.5){a=(100+e*100)*ig.g.Da;h=j}if((e=sc.V.ke(ig.Pc.Fl))<-0.5){b=(-100+e*100)*ig.g.Da;h=j}else if((e=sc.V.ke(ig.Pc.Fl))>0.5){b=(100+e*100)*ig.g.Da;h=j}if(h){sc.e.DX=j;sc.e.Vf.x=a>=0?Math.floor(sc.e.Vf.x+a):Math.ceil(sc.e.Vf.x+a);sc.e.Vf.y=b>=0?Math.floor(sc.e.Vf.y+b):Math.ceil(sc.e.Vf.y+b);this.FE();this.cursor.moveTo(sc.e.Vf.x,sc.e.Vf.y)}}}},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){sc.e.Q.Cg(this.ka);sc.e.kk(this.rI.bind(this));sc.e.SOa();
if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb}this.l3a();if(sc.e.PQa==sc.ok.LY){this.j("SCALE",j);this.j("DEFAULT")}else this.j("DEFAULT",j)},Rc:function(){this.cursor.$p();sc.e.Q.Lj(this.ka);this.ka.Aga();sc.e.jk();this.j("HIDDEN",j)},r_:function(a){if(a.x<=-1E4||a.y<=-1E4){a.x=Math.floor(this.a.size.x/2);a.y=Math.floor(this.a.size.y/2)}},FE:function(){var a=sc.e.Vf.x;sc.e.Vf.x=a.Vb(0,Math.floor(this.a.size.x));a=sc.e.Vf.y;sc.e.Vf.y=a.Vb(0,this.a.size.y)},l3a:function(){if(this.wka){var a=
this.Bh;a.x=sc.e.Vf.x;a.y=sc.e.Vf.y;this.FE();this.cursor.moveTo(sc.e.Vf.x,sc.e.Vf.y)}else if(ig.input.bb==ig.Gb.Jc){this.wka=j;a=this.Bh;this.r_(a);sc.e.Vf.x=a.x;sc.e.Vf.y=a.y;this.FE();this.cursor.moveTo(sc.e.Vf.x,sc.e.Vf.y)}},rI:function(){sc.e.PLa()},lb:function(a,b){a==sc.e&&(b==sc.ca.AAa?this.xd():b==sc.ca.$ia?this.Rc():b==sc.ca.sM?this.ka.Tc()&&this.cursor.POa():b==sc.ca.cja?this.ka.Tc()&&this.cursor.Ks(sc.e.Vf.x,sc.e.Vf.y):b==sc.ca.dja?this.ka.Tc()&&this.cursor.$p():b==sc.ca.bja&&this.ka.Tc()&&
(this.cursor.focus||this.cursor.Ks(sc.e.Vf.x,sc.e.Vf.y)))}});var a=Math.floor(22.5);sc.mha.HTa=ig.Vn.extend({r:new ig.$("media/gui/circuit.png"),dc:s,gl:s,bf:-1,element:-1,f:function(a,b,e,h){this.parent();this.v(45,45);this.l(a,b);this.bf=e||-1;this.element=h||0;this.dc=sc.qd.submit;this.gl=sc.qd.xx},va:function(){if(sc.e.Jo!=sc.ok.vS)return w},Qb:function(){if(ig.ua.Ph())return w;if(this.bf<0)ig.warn("skill UID is not valid: "+this.bf);else{for(var a=sc.Qp.DF(this.bf).type==sc.QH.xia,b=w,e=0;e<
6;e++)if(sc.q.R.ne(this.bf+e)){b=j;break}var h=-1;if(sc.q.R.ne(this.bf)){h=this.bf+1;a=w}else sc.q.R.ne(this.bf+1)?h=this.bf:b=w;if(b&&h>=0){this.dc&&this.dc.play();sc.q.R.Uva(h,a);if(window.aj){console.s2("%cSwitched Branch: ","color:#00CC00");console.s2("%cNew BranchIndices: %c[%i, %i, %i]","color:#00CC00","",h,h+2,h+4);for(e=0;e<3;e++)ig.log("%c [%i]: %c"+sc.Qp.DF(h+e*2).getName(),"color:#00CC00",h+e*2,"");console.groupEnd();h=h+(a?1:-1);console.s2("%cOld BranchIndices: %c[%i, %i, %i]","color:#00CC00",
"",h,h+2,h+4);for(e=0;e<3;e++)ig.log("%c [%i]: %c"+sc.Qp.DF(h+e*2).getName(),"color:#00CC00",h+e*2,"");console.groupEnd();console.groupEnd()}}else this.gl&&this.gl.play()}},PF:function(){if(ig.ua.Ph()||sc.e.Jo!=sc.ok.vS)return w;if(ig.input.bb==ig.Gb.Jc){var b=this.tO();if(sc.e.DX){sc.e.Ewa(this);return w}b<=16?sc.e.PHa(this.a.i.x+22,this.a.i.y+22,this):sc.e.Ewa(this)}else if(ig.input.bb==ig.Gb.gm){var b=Math.floor(this.a.kf.x),d=Math.floor(this.a.kf.y),e=Math.floor(sc.V.to()),h=Math.floor(sc.V.Vm());
(b=Math.abs(e-(a+b))+Math.abs(h-(a+d))<=a)?sc.e.PHa(this.a.i.x+22,this.a.i.y+22,this):sc.e.Ewa(this);return b}return w},tO:function(){return Math.floor(Vec2.k1(sc.e.Vf.x,sc.e.Vf.y,this.a.i.x+Math.floor(this.a.size.x/2),this.a.i.y+Math.floor(this.a.size.y/2)))}});var b=[{element:sc.ja.COLD,i:{x:115,y:0},bf:184},{element:sc.ja.COLD,i:{x:92,y:23},bf:159},{element:sc.ja.COLD,i:{x:138,y:23},bf:214},{element:sc.ja.COLD,i:{x:69,y:46},bf:150},{element:sc.ja.COLD,i:{x:115,y:46},bf:178},{element:sc.ja.COLD,
i:{x:161,y:46},bf:205},{element:sc.ja.COLD,i:{x:92,y:69},bf:143},{element:sc.ja.COLD,i:{x:138,y:69},bf:198},{element:sc.ja.WAVE,i:{x:0,y:115},bf:358},{element:sc.ja.WAVE,i:{x:23,y:92},bf:388},{element:sc.ja.WAVE,i:{x:23,y:138},bf:333},{element:sc.ja.WAVE,i:{x:46,y:69},bf:379},{element:sc.ja.WAVE,i:{x:46,y:115},bf:352},{element:sc.ja.WAVE,i:{x:46,y:161},bf:324},{element:sc.ja.WAVE,i:{x:69,y:92},bf:372},{element:sc.ja.WAVE,i:{x:69,y:138},bf:317},{element:sc.ja.NEUTRAL,i:{x:115,y:92},bf:3},{element:sc.ja.NEUTRAL,
i:{x:115,y:138},bf:29},{element:sc.ja.NEUTRAL,i:{x:92,y:115},bf:42},{element:sc.ja.NEUTRAL,i:{x:138,y:115},bf:16},{element:sc.ja.HEAT,i:{x:115,y:230},bf:97},{element:sc.ja.HEAT,i:{x:92,y:207},bf:127},{element:sc.ja.HEAT,i:{x:138,y:207},bf:72},{element:sc.ja.HEAT,i:{x:69,y:184},bf:118},{element:sc.ja.HEAT,i:{x:115,y:184},bf:91},{element:sc.ja.HEAT,i:{x:161,y:184},bf:63},{element:sc.ja.HEAT,i:{x:92,y:161},bf:111},{element:sc.ja.HEAT,i:{x:138,y:161},bf:56},{element:sc.ja.SHOCK,i:{x:230,y:115},bf:271},
{element:sc.ja.SHOCK,i:{x:207,y:92},bf:246},{element:sc.ja.SHOCK,i:{x:207,y:138},bf:301},{element:sc.ja.SHOCK,i:{x:184,y:69},bf:237},{element:sc.ja.SHOCK,i:{x:184,y:115},bf:265},{element:sc.ja.SHOCK,i:{x:184,y:161},bf:292},{element:sc.ja.SHOCK,i:{x:161,y:92},bf:230},{element:sc.ja.SHOCK,i:{x:161,y:138},bf:285}]});ig.G=j;
ig.I("game.feature.menu.gui.circuit.circuit-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.menu.gui.circuit.circuit-misc","game.feature.menu.gui.circuit.circuit-detail-elements","game.feature.menu.gui.circuit.circuit-detail","game.feature.menu.gui.circuit.circuit-swap-branches","game.feature.menu.gui.circuit.circuit-overview").H(function(){sc.ZTa=sc.bq.extend({GA:s,sb:s,detail:s,info:s,Zd:s,$fa:s,Oe:s,MC:s,mb:s,Aa:s,f:function(){this.parent();
this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.Oe=new ig.Lf("black",ig.g.width,ig.g.height);this.Oe.a.N={DEFAULT:{state:{alpha:0.2},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.Oe.j("HIDDEN",j);this.m(this.Oe);this.GA=new sc.av;this.m(this.GA);this.detail=new sc.cUa;this.m(new sc.eya(this.detail));this.info=new sc.YTa(this.detail.a);this.m(this.info);this.sb=new sc.pha;this.m(this.sb);this.Zd=new sc.aUa(this.detail.a);this.Zd.l(100,100);this.m(this.Zd);
this.$fa=new sc.mha;this.m(this.$fa);this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.$ka.bind(this);this.MC=new sc.ec("\\i[help2]"+ig.lang.get("sc.gui.menu.hotkeys.swap-branches"),g,j,sc.Ic.Kc);this.MC.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.MC.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};
this.MC.Qb=this.i4a.bind(this);this.j("DEFAULT",j)},rI:function(){sc.e.jk();sc.e.bs()},Zka:function(){return sc.V.Ap()},$ka:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.circuit.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.circuit.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},h4a:function(){return sc.V.ZF()},i4a:function(){var a=sc.e.Jo;if(a==sc.ok.vS){this.MC.fa("\\i[help2]"+ig.lang.get("sc.gui.menu.hotkeys.swap-branches"));
sc.e.Ru();sc.e.PLa()}else{if(a!=sc.ok.HH){if(a==sc.ok.kS){sc.e.y1();a=sc.ok.LY}ig.ua.ed(0.2);this.detail.on[sc.e.ai].rI()}sc.e.C8a(a);this.GA.tSa();this.MC.fa("\\i[help2]"+ig.lang.get("sc.gui.menu.hotkeys.swap-exit"));sc.e.Ru();this.Oe.j("DEFAULT")}},Xja:function(){sc.e.Q.md(this.mb,this.Zka.bind(this));sc.e.Q.md(this.MC,this.h4a.bind(this));sc.e.Qi(M("MC").bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},ac:function(){sc.K.Na(sc.q.e,this);this.GA.ac();this.sb.ac();this.info.ac();this.Zd.ac();this.detail.ac();
this.$fa.ac()},Yb:function(){sc.K.lc(sc.q.e,this);this.GA.Yb();this.sb.Yb();this.info.Yb();this.Zd.Yb();this.detail.Yb();this.$fa.Yb()},xd:function(){this.ac();sc.e.kk(this.rI.bind(this));sc.e.Th(0,0,sc.Rg.dq);ig.ua.ed(0.2);this.Xja();this.GA.xd();this.sb.xd()},Ti:function(){sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){this.Yb();sc.e.Q.zd(this.mb);sc.e.Q.zd(this.MC);this.Aa=s;if(sc.e.ai==-1){this.GA.Rc();this.sb.Rc()}else{this.GA.Rc(j);this.detail.Rc();this.sb.Lta()}},lb:function(a,b){if(a==sc.e)if(b==
sc.ca.GZ){if(sc.e.Z4!=sc.e.ai){sc.e.ai==-1?this.GA.Mcb():this.GA.o8a();this.detail.rkb(sc.e.ai,sc.e.Z4)}}else if(b==sc.ca.$ia){this.MC.fa("\\i[help2]"+ig.lang.get("sc.gui.menu.hotkeys.swap-branches"));sc.e.Ru();this.GA.tSa();this.Oe.j("HIDDEN")}}})});ig.G=j;
ig.I("game.feature.menu.gui.item.item-status-equip").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc").H(function(){sc.LWa=sc.gq.extend({Nb:{Fh:s,rq:s,zq:s,Fq:s,EC:s,oC:s,BD:s,YD:s},r:new ig.$("media/gui/menu.png"),f:function(){this.parent(sc.yj.us);this.v(126,121);this.l(sc.options.Xg?25:2,28);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(126+(sc.options.Xg?25:3))},time:0.2,p:KEY_SPLINES.LINEAR}};var a=
5;this.Nb.Fh=this.Ni(0,a,"maxhp",0,0,w,9999);a=a+14;this.Nb.rq=this.Ni(0,a,"atk",0,1,w,999);a=a+14;this.Nb.zq=this.Ni(0,a,"def",0,2,w,999);a=a+14;this.Nb.Fq=this.Ni(0,a,"foc",0,3,w,999);a=a+16;this.Nb.EC=this.Ni(0,a,"res",1,4,j,999);a=a+14;this.Nb.oC=this.Ni(0,a,"res",2,5,j,999);a=a+14;this.Nb.BD=this.Ni(0,a,"res",3,6,j,999);this.Nb.YD=this.Ni(0,a+14,"res",4,7,j,999);this.j("HIDDEN",j)},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){this.rz();sc.e.TJ()&&this.j("DEFAULT")},
Rc:function(){this.j("HIDDEN")},lb:function(a,b,c){a==sc.e&&(b==sc.ca.ZY?this.uI(c):b==sc.ca.bz?sc.e.Vx==""&&this.rz():b==sc.ca.yH?sc.e.TJ()?this.j("DEFAULT"):this.j("HIDDEN"):b==sc.ca.N7&&this.rz())},uI:function(a){this.rz();if(!(a<0)&&sc.e.TJ())if(a=sc.Pb.getItem(a).params){this.Nb.Fh.bh(a.hp||0);this.Nb.rq.bh(a.attack||0);this.Nb.zq.bh(a.defense||0);this.Nb.Fq.bh(a.focus||0);if(a.elemFactor){this.Nb.EC.bh(Math.floor((a.elemFactor[0]||1)*100-100)/100);this.Nb.oC.bh(Math.floor((a.elemFactor[1]||
1)*100-100)/100);this.Nb.BD.bh(Math.floor((a.elemFactor[2]||1)*100-100)/100);this.Nb.YD.bh(Math.floor((a.elemFactor[3]||1)*100-100)/100)}}},rz:function(){for(var a in this.Nb)this.Nb[a].bh(0)},Ni:function(a,b,c,d,e,h,k){c=new sc.w8(ig.lang.get("sc.gui.menu.equip."+c),d,e,h,k,j,126);c.l(a,b);this.m(c);return c}});sc.EWa=sc.jE.extend({zrb:s,pl:{},f:function(){this.parent(ig.lang.get("sc.gui.menu.equip.modifiers"),sc.yj.us);this.v(126,139);this.l(sc.options.Xg?25:2,153);this.a.N={DEFAULT:{state:{},time:0.2,
p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(126+(sc.options.Xg?25:3))},time:0.2,p:KEY_SPLINES.LINEAR}};for(var a in sc.Me){var b=sc.Me[a],b=this.Ni(0,0,"modifier."+a,5,b.qa,j,200,b.dG||w);b.j("HIDDEN",j);this.pl[a]=b}this.j("HIDDEN",j)},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){this.rz();sc.e.TJ()&&this.j("DEFAULT")},Rc:function(){this.j("HIDDEN")},lb:function(a,b,c){a==sc.e&&(b==sc.ca.ZY?this.uI(c):b==sc.ca.bz?sc.e.Vx==""&&this.rz():b==sc.ca.yH&&
(sc.e.TJ()?this.j("DEFAULT"):this.j("HIDDEN")))},uI:function(a){this.rz();if(!(a<0)&&sc.e.TJ())if(a=sc.Pb.getItem(a).properties){var b=12,c;for(c in this.pl)if(a[c]!=g){this.pl[c].j("DEFAULT",j);this.pl[c].bh(Math.floor((a[c]||0)*100-100)/100);this.pl[c].l(0,b);b=b+16}}},rz:function(){for(var a in this.pl){this.pl[a].bh(0);this.pl[a].j("HIDDEN",j)}},Ni:function(a,b,c,d,e,h,k,l){c=new sc.w8(ig.lang.get("sc.gui.menu.equip."+c),d,e,h,k,j,126,l);c.l(a,b);this.m(c);return c}})});ig.G=j;
ig.I("game.feature.menu.gui.item.item-status-default").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc").H(function(){function a(a,b,c,r,p,t,q,u){var z=d,x=e;t||(x=x+m);q||(x=x+n);var y=h*2+k*4,N=y-l;if(r!=g){z=z+(h+r*k);y=y-(h+r*k);N=y-l}if(p!=g)N=y=y-(h+(4-p)*k);if(q&&!t&&u==0){z=z+h;N=y=y-(h+1)}a.ia(b,c.cs,9,z,x,y,o);c.cs=c.cs+N}function b(a,b,c,d,e,h,k,l){var m=t,n=r;h||(n=n+y);k||(n=n+z);var o=p*2+q*4,N=o-x;if(d!=g){m=m+(p+d*q);o=o-(p+d*q);N=o-
x}if(e!=g)N=o=o-(p+(4-e)*q);if(k&&!h&&l==0){m=m+p;N=o=o-(p+1)}a.ia(b,c.cs,9,m,n,o,u);c.cs=c.cs+N}sc.nk={wH:0,RY:1,IZ:2,iH:3};var c={lf:0,cs:0,dj:0,Gf:0};sc.gM=ig.X.extend({r:new ig.$("media/gui/status-gui.png"),EI:new ig.$b("media/gui/menu.png",{width:2,height:0,left:4,top:6,right:4,bottom:0,Fb:{"default":{x:128,y:408},sp:{x:112,y:408},spm:{x:112,y:416}}}),tFa:new ig.$b("media/gui/status-gui.png",{width:46,height:0,left:1,top:1,right:1,bottom:0,Fb:{hp:{x:0,y:48},bg:{x:0,y:49},red:{x:0,y:50},fg:{x:0,
y:51},exp:{x:0,y:52},buff:{x:0,y:54}}}),type:0,name:"",Mg:0,yg:-1,Yi:0,n:0,En:s,bw:s,mN:s,eC:0,q:s,f:function(a,b,c,d,e,h){this.parent();this.v(d||126,14);this.eC=e||0;this.mN=c||s;this.type=b||sc.nk.wH;this.q=sc.q.R;a=new sc.ea(a,{font:sc.Ka.Lb,speed:ig.rd.Nd.We});a.l(3,h);this.m(a);if(this.type!=sc.nk.iH){h=0;switch(this.type){case sc.nk.wH:h=9999;break;case sc.nk.RY:h=sc.$L;break;case sc.nk.IZ:h=99}this.bw=new sc.Ib(h);this.bw.F(ig.k.ha,ig.k.W);this.bw.l(6,0);this.m(this.bw);this.En=new sc.Ib(h,
{transitionTime:0.2});this.En.F(ig.k.ha,ig.k.W);this.En.l(48,0)}else{h=new sc.ea(ig.lang.get("sc.gui.menu.seconds"),{font:sc.Ka.Lb,speed:ig.rd.Nd.We});h.F(ig.k.ha,ig.k.W);h.l(3,-1);this.m(h);this.En=new sc.Ib(60);this.En.F(ig.k.ha,ig.k.W);this.En.l(19,0)}this.m(this.En)},Tu:function(a,b){this.q=b?b:sc.q.R;switch(this.type){case sc.nk.wH:b=b?b.ba:sc.q.R.ba;if(this.yg!=b.Jb){if((this.Yi-this.yg)*(b.Jb-this.Yi)<0)this.yg=this.Yi;this.Yi=b.Jb;a?this.yg=this.Yi:this.n=0.2;this.Mg=b.le("hp");this.En.sa(b.Jb,
a);this.bw.sa(this.Mg,a)}break;case sc.nk.RY:b=b?b:sc.q.R;if(this.yg!=b.exp){this.yg=this.Yi=Math.floor(b.exp);this.Mg=sc.$L;this.En.sa(b.exp,a);this.bw.sa(this.Mg,a)}break;case sc.nk.IZ:b=b?b.ba:sc.q.R.ba;this.yg!=b.Wj&&this.En.sa(Math.floor(b.Wj),a);this.bw.sa(b.Ao,a);break;case sc.nk.iH:var c=Math.ceil(this.mN.n);if(this.yg!=c){this.yg=this.Yi=c;this.Mg=this.mN.time;this.En.sa(c,a)}}},osb:function(){this.En.sa(0);this.Yi=this.yg=-1;this.n=0},update:function(){if(this.n>0)this.n=this.n-ig.g.Da;
else if(this.Yi!=this.yg){var a=ig.g.Da*this.Mg/2;if(this.yg>this.Yi)this.yg=Math.max(this.Yi,this.yg-a);else if(this.yg<this.Yi)this.yg=Math.min(this.Yi,this.yg+a)}},va:function(a){if(this.type==sc.nk.IZ)this.Y2a(a);else{var b,c,d,e;this.type!=sc.nk.iH?this.EI.Xa(a,this.a.size.x-(this.eC?this.eC:4),this.eC?this.eC:4,"default",2,9):this.EI.Xa(a,this.a.size.x-3,3,"default",2,9);this.type!=sc.nk.iH&&a.ia(this.EI.r,this.a.size.x-46,0,80,408,8,8);switch(this.type){case sc.nk.wH:d="hp";break;case sc.nk.RY:d=
"exp";break;case sc.nk.iH:d="buff"}if(this.Yi>0){if(this.Yi<this.yg){c=this.yg/this.Mg;b=this.Yi/this.Mg;e="bg"}else{c=this.Yi/this.Mg;b=this.yg/this.Mg;e="fg"}this.type==sc.nk.wH&&(d=b>0.25?"hp":"red")}for(var h=this.eC||(this.type!=sc.nk.iH?4:3),k=0;k<h;k++){c&&(this.Yi!=this.yg&&this.type==sc.nk.wH)&&this.tFa.Xa(a,Math.round(c.Vb(0,1)*(this.a.size.x-7)),1,e,2+k,9+k);b>0&&this.tFa.Xa(a,this.type==sc.nk.iH?Math.round(b.Vb(0,1)*(this.a.size.x-6)):Math.round(b.Vb(0,1)*(this.a.size.x-(this.eC==3?6:
7))),1,d,2+k,9+k)}}},xnb:function(a){var b=this.EI.r,c=this.q.ba.Ao,c=16;this.EI.Xa(a,this.a.size.x-4,4,"spm",2,9);a.ia(b,this.a.size.x-46,0,80,408,8,8);for(var b=6,d=0;d<c;d++){a.Ec(d+1>c/2?SP_REG_COLOR:SP_NORMAL_COLOR,b,10,3,2);b=(d+1)%4==0?b+6:b+4}},Y2a:function(d){var e=this.EI.r,h=this.q.ba.Wj,k=Math.floor(h);this.eC==3?this.EI.Xa(d,this.a.size.x-4,4,"spm",2,9):this.EI.Xa(d,this.a.size.x-4,6,"sp",2,9);d.ia(e,this.a.size.x-46,0,80,408,8,8);this.eC==3?d.ia(e,2,9,560,160+(h<1?16:0),6,4):d.ia(e,
2,9,144,480+(h<1?16:0),6,6);c.cs=8;c.lf=0;c.dj=Math.min(4,k);c.Gf=Math.min(4,8);for(h=this.eC==3?b:a;c.lf+1<=k;){var l=c.lf?g:0;if(c.dj==4&&(c.Gf==4||c.Gf==0))h(d,e,c,l,g,j,c.Gf==4);else if(c.Gf>0&&c.Gf<c.dj){var m=c.dj==4?g:c.dj;h(d,e,c,l,c.Gf,j,j);h(d,e,c,c.Gf,m,j,w)}else h(d,e,c,l,c.dj,j,c.Gf>0);c.lf=c.lf+c.dj;if(c.dj==4){c.dj=Math.min(4,k-c.lf);c.Gf=(8-c.lf).Vb(0,4)}}if(c.lf%4!=0){if(c.Gf>c.dj&&c.Gf<4){h(d,e,c,c.dj,c.Gf,w,j);c.dj=c.Gf}h(d,e,c,c.dj,g,w,c.Gf==4);c.lf=Math.ceil(c.lf/4)*4}for(;c.lf<
16;){c.Gf=(8-c.lf).Vb(0,4);if(c.Gf==4||c.Gf==0)h(d,e,c,g,g,w,c.Gf==4,k);else{h(d,e,c,g,c.Gf,w,j);h(d,e,c,c.Gf,g,w,w)}c.lf=c.lf+4}}});var d=144,e=480,h=6,k=5,l=2,m=16,n=8,o=6,t=560,r=160,p=6,q=3,x=2,y=10,z=5,u=4;sc.KWa=sc.gq.extend({jdb:new ig.$("media/gui/menu.png"),fkb:new ig.$("media/gui/status-gui.png"),aa:s,Qr:s,Ey:s,z1:s,f:function(){this.parent(sc.yj.us);this.v(126,95);this.l(sc.options.Xg?25:2,28);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(126+
(sc.options.Xg?25:3))},time:0.2,p:KEY_SPLINES.LINEAR}};this.aa=new sc.Ib(99,{size:sc.uf.hh});this.aa.F(ig.k.ha,ig.k.W);this.aa.l(3,2);this.m(this.aa);this.Qr=new sc.gM("HP",sc.nk.wH);this.Qr.l(0,39);this.m(this.Qr);this.Qr.Tu();this.Ey=new sc.gM("SP",sc.nk.IZ);this.Ey.l(0,57);this.m(this.Ey);this.Ey.Tu();this.z1=new sc.gM("EXP",sc.nk.RY);this.z1.l(0,77);this.m(this.z1);this.z1.Tu();this.j("HIDDEN",j)},va:function(a){this.parent(a);a.ia(this.jdb,0,0,280,472,126,35);a.ia(this.fkb,64,5,104,32+sc.q.R.Uj*
24,24,24)},ac:function(){sc.K.Na(sc.e,this);sc.K.Na(sc.q.R,this);sc.K.Na(sc.q.R.ba,this)},Yb:function(){sc.K.lc(sc.e,this);sc.K.lc(sc.q.R,this);sc.K.lc(sc.q.R.ba,this)},xd:function(){this.sla(j);sc.e.TJ()||this.j("DEFAULT")},Rc:function(){this.j("HIDDEN")},lb:function(a,b){a==sc.e?b==sc.ca.yH&&(sc.e.TJ()?this.j("HIDDEN"):this.j("DEFAULT")):a==sc.q.R?(b==sc.Wc.nE||b==sc.Wc.ZL||b==sc.Wc.qH)&&this.sla():a==sc.q.R.ba&&(b==sc.oi.eha||b==sc.oi.eM||b==sc.oi.r8||b==sc.oi.Ww)&&this.sla()},sla:function(a){this.aa.sa(sc.q.R.aa);
this.Qr.Tu(a);this.z1.Tu(a);this.Ey.Tu(a)}})});ig.G=j;
ig.I("game.feature.menu.gui.item.item-status-buffs").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.menu.gui.item.item-status-default").H(function(){sc.JWa=sc.jE.extend({r:new ig.$("media/gui/basic.png"),zo:s,rx:s,TDa:3,f:function(){this.parent(ig.lang.get("sc.gui.menu.item.buff"),sc.yj.us);this.v(126,83);this.l(sc.options.Xg?25:2,127);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(126+(sc.options.Xg?
25:3))},time:0.2,p:KEY_SPLINES.LINEAR}};var a=sc.q.R.ba,b={size:sc.uf.KB,color:sc.ef.qr};this.zo=new sc.Ib(4,b);this.zo.F(ig.k.ha,ig.k.W);this.zo.l(6,2);this.zo.sa(a.zo);this.m(this.zo);this.rx=new sc.Ib(4,b);this.rx.F(ig.k.ha,ig.k.W);this.rx.l(20,2);this.rx.sa(a.zr.length);this.m(this.rx);a=new ig.Dc(this.r,208,18,5,5);a.F(ig.k.ha,ig.k.W);a.l(14,2);this.m(a);this.j("HIDDEN",j)},ac:function(){sc.K.Na(sc.e,this);sc.K.Na(sc.q.R.ba,this)},Yb:function(){sc.K.lc(sc.e,this);sc.K.lc(sc.q.R.ba,this)},xd:function(){this.hCa();
sc.e.iba()==sc.Hm.CONS&&this.j("DEFAULT")},Rc:function(){this.j("HIDDEN")},lb:function(a,b){if(a==sc.e)b==sc.ca.yH&&(sc.e.iba()==sc.Hm.CONS?this.j("DEFAULT"):this.j("HIDDEN"));else if(a==sc.q.R.ba&&b==sc.oi.Ww){this.zo.sa(a.zo);this.rx.sa(a.zr.length);this.hCa()}},hCa:function(){for(var a=this.a.children.slice(this.TDa,this.a.children.length-this.TDa),b=a.length;b--;){a[b].th();a[b].qj=w}for(var a=sc.q.R.ba.zr,c=s,c=s,d=12,b=0;b<a.length;b++){c=sc.Pb.getItem(a[b].rLa);c=new sc.gM(ig.Oa.wc(c.name),
sc.nk.iH,a[b]);c.l(0,d);c.Tu(j);d=d+18;this.m(c)}}})});ig.G=j;
ig.I("game.feature.menu.gui.item.item-status-favs").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.player.player-model").H(function(){sc.JVa=ig.X.extend({r:new ig.$("media/gui/menu.png"),text:s,id:-1,f:function(){this.parent();this.v(19,19);this.text=new sc.ea("");this.text.l(2,1);this.m(this.text)},setItem:function(a){this.id=a||-1;if(this.id>=0){a=sc.Pb.getItem(this.id);this.text.fa("\\i["+a.icon+sc.Pb.uo(a.rarity)+"]")}else this.text.fa("")},
va:function(a){this.id>=0?a.ia(this.r,0,0,213,480,19,19):a.ia(this.r,0,0,192,480,19,19)}});sc.MWa=sc.jE.extend({r:new ig.$("media/gui/menu.png"),Ld:new ig.$("media/gui/basic.png"),H3:s,UT:s,uka:[],f:function(){this.parent(ig.lang.get("sc.gui.menu.item.favs"),sc.yj.us);this.v(126,63);this.l(sc.options.Xg?25:2,214);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(126+(sc.options.Xg?25:3))},time:0.2,p:KEY_SPLINES.LINEAR}};var a=sc.q.R,b={size:sc.uf.KB,color:sc.ef.qr};
this.H3=new sc.Ib(12,b);this.H3.F(ig.k.ha,ig.k.W);this.H3.l(6,2);this.H3.sa(sc.Sya);this.m(this.H3);this.UT=new sc.Ib(12,b);this.UT.F(ig.k.ha,ig.k.W);this.UT.l(24,2);this.UT.sa(a.ru.length);this.m(this.UT);a=new ig.Dc(this.Ld,208,18,5,5);a.F(ig.k.ha,ig.k.W);a.l(18,2);this.m(a);for(var b=4,c=15,d=0;d<sc.Sya;d++){a=new sc.JVa;a.l(b,c);b=b+20;if((d+1)%6==0){b=5;c=c+23}this.uka.push(a);this.m(a)}this.j("HIDDEN",j)},ac:function(){sc.K.Na(sc.e,this);sc.K.Na(sc.q.R,this)},Yb:function(){sc.K.lc(sc.e,this);
sc.K.lc(sc.q.R,this)},xd:function(){if(sc.e.iba()==sc.Hm.CONS){this.ESa();this.j("DEFAULT")}},Rc:function(){this.j("HIDDEN")},ESa:function(){var a=sc.q.R.ru;this.UT.sa(a.length,j);for(var b=0;b<this.uka.length;b++)this.uka[b].setItem(a[b])},lb:function(a,b){a==sc.e?b==sc.ca.yH&&(sc.e.iba()==sc.Hm.CONS?this.j("DEFAULT"):this.j("HIDDEN")):a==sc.q.R&&b==sc.Wc.Tha&&this.ESa()}})});ig.G=j;
ig.I("game.feature.menu.gui.item.item-sort-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box").H(function(){sc.xM=ig.te.extend({eb:new ig.$b("media/gui/menu.png",{width:8,height:8,left:8,top:8,right:8,bottom:8,Fb:{"default":{x:480,y:304}}}),N:{HIDDEN:{state:{alpha:0,Ia:0.2,Ma:0},time:0.2,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE}},Ba:s,oa:[],Ga:w,$wa:3,Ob:s,Zla:s,zGa:s,f:function(a,b,c){c=c||102;this.parent(c,85);this.rb(c,
0);this.F(ig.k.ha,ig.k.W);this.Ob=a;this.Zla=b;this.a.zIndex=1500;this.a.Ee=j;this.a.y5=j;this.Ba=new sc.Wf(w,ig.mr.AE);this.Ba.tk(function(a){this.zGa=a.name;this.Ob&&this.Ob(a)}.bind(this));this.Ba.si(function(a){a.data&&a.data.description&&sc.e.tc(a.data.description?a.data.description:a.data)}.bind(this));this.Ba.Bk(function(){sc.e.tc("",j)}.bind(this));this.j("HIDDEN",j)},Rd:function(a,b,c){this.$wa=this.Mi(a,b,this.$wa,c);this.a.size.y=this.$wa+2},ffa:function(a,b){this.oa[a].fa(ig.lang.get("sc.gui.menu.sort."+
b),j);this.oa[a].data.description=ig.lang.get("sc.gui.menu.sort.des."+b)},CX:function(a){this.LQa(a.a.i.x,a.a.size.y)},LQa:function(a,b){if(!this.Ga){sc.e.kk(this.Og.bind(this));sc.e.Q.Cg(this.Ba);this.l(a,b);this.Ga=j;this.j("DEFAULT")}},Sk:function(){if(this.Ga){sc.e.jk();sc.e.Q.Lj(this.Ba);this.Ga=w;this.j("HIDDEN",w,j)}},Og:function(){this.Sk();this.Zla&&this.Zla()},Mi:function(a,b,c,d){var e=new sc.ec(ig.lang.get("sc.gui.menu.sort."+a),this.a.size.x-6,j,sc.Ic.kE);e.re.l(0,0);e.re.F(ig.k.za,ig.k.gb);
e.setData({KG:b,description:ig.lang.get("sc.gui.menu.sort.des."+a),name:e.text});e.l(3,c);this.Ba.Uc(e,0,d);if(this.oa.length==0)this.zGa=e.text;this.oa[d]=e;this.m(e);return c=c+e.a.size.y}});sc.Yya=sc.xM.extend({f:function(){this.parent(this.Qb.bind(this));this.Rd("auto",sc.ih.ORDER,0);this.Rd("name",sc.ih.NAME,1);this.Rd("amount",sc.ih.AMOUNT,2);this.Rd("rarity",sc.ih.RARITY,3)},Qb:function(a){if(a.data){this.Sk();sc.e.Dy(a)}}})});ig.G=j;
ig.I("game.feature.menu.gui.item.item-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes","game.feature.menu.gui.item.item-sort-menu").H(function(){sc.BB=ig.X.extend({r:new ig.$("media/gui/menu.png"),list:s,Wh:{zdb:s,rc:s,R5a:s,head:s,Jh:s,mh:s,Db:s,keys:s},fd:[],ka:s,vh:s,dc:s,Gv:s,$z:s,Fk:s,zs:-1,RB:[],Et:s,Ft:-1,f:function(){this.parent();this.v(340,
260);this.F(ig.k.ha,ig.k.W);this.l(sc.options.Xg?25:2,27);this.Gv=this.dc=sc.qd.submit;this.$z=sc.qd.xx;this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(340/3+(sc.options.Xg?25:3))},time:0.2,p:KEY_SPLINES.LINEAR}};this.vh=new sc.Wf;this.vh.tk(function(a){if(this.Fk!=a){this.dc.play();this.Fk=a;a.Ce(j);this.tI(a);this.qz();sc.e.dP=a.data;for(var c=this.fd.length;c--;)if(a==this.fd[c]){sc.e.RPa(c);break}}}.bind(this));this.vh.si(function(){sc.e.tc("")});this.vh.Bk(function(){sc.e.tc("",
j)});var a=new sc.gq;a.v(340,244);a.l(0,21);this.m(a);this.list=new sc.eYa(1,168,sc.dZ.b1a,1);this.list.l(0,29);this.list.v(340,230);this.list.Kib("HIDDEN",j);this.m(this.list);this.Et=this.list.ka();this.Et.Kn=this.Kn.bind(this);this.Et.si(function(a){if(a.data){this.Ft=a;sc.e.tc(a.data.description?a.data.description:a.data);if(a.data.id){sc.e.Bua(a.data.id);sc.Pb.rV(a.data.id)?sc.e.cm(sc.Pb.S1(a.data.id)):sc.e.cm("",w)}}}.bind(this));this.Et.tk(this.Ceb.bind(this));this.Et.Bk(function(){sc.e.tc("",
j);sc.e.cm("",j);this.Ft=s}.bind(this));this.Et.Uk=this.Uk.bind(this);a=new ig.Dc(this.r,32,408,5,5);a.l(0,21);this.m(a);a=new ig.Lf("#FF6D00",335,1);a.l(5,21);this.m(a);this.Wh.zdb=this.lq("news","item-news",0,"NEW");this.Wh.rc=this.lq("items","item-items",1,sc.Hm.CONS);this.Wh.R5a=this.lq("arms","item-sword",2,sc.Hm.EQUIP,sc.Of.ARM);this.Wh.head=this.lq("head","item-helm",3,sc.Hm.EQUIP,sc.Of.HEAD);this.Wh.Jh=this.lq("torso","item-belt",4,sc.Hm.EQUIP,sc.Of.TORSO);this.Wh.mh=this.lq("feet","item-shoe",
5,sc.Hm.EQUIP,sc.Of.FEET);this.Wh.Db=this.lq("trade","item-trade",6,sc.Hm.TRADE);this.Wh.keys=this.lq("keys","item-key",7,sc.Hm.KEY);sc.e.dP=this.Wh.rc.data;for(a=0;a<this.fd.length;a++)this.RB[a]={x:0,y:0,scroll:0};this.vh.Mj(1,0);this.Wh.rc.Ce(j);this.Fk=this.Wh.rc;this.qz();this.j("HIDDEN",j)},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){sc.e.Q.aN(this.vh);this.zs=-1;ig.ua.ed(0.2);var a=sc.e.dP;if(a){this.zs=sc.e.wp;this.jka(a.type,a.Rva,j,ig.input.dd,j)}this.list.vf();
this.j("DEFAULT")},Rc:function(){sc.e.Q.gQ(this.vh);var a=sc.e.wp;this.RB[a].x=this.Et.Ea.x;this.RB[a].y=this.Et.Ea.y;this.RB[a].scroll=this.list.list.vc.a.scroll.y;this.list.xi();sc.e.cm("",w);this.j("HIDDEN")},xua:function(){if(this.Ft&&sc.e.wp==1)if(sc.q.R.g6a()||sc.q.R.vV(this.Ft.data.id)){this.Gv&&this.Gv.play();sc.q.R.DSa(this.Ft.data.id)?this.PBa(this.Ft):this.s4a(this.Ft)}else this.$z.play();else{this.dc.play();var a=ig.lang.get("sc.gui.menu.help-texts.inventory.title-2")+"\n\n"+ig.lang.get("sc.gui.menu.help-texts.inventory.text-2"),
a=new sc.RL(a,{maxWidth:300,speed:ig.rd.Nd.We},"black",0.9);a.a.zIndex=15E4;a.a.Ee=j;ig.T.Mc(a)}},Kn:function(){return sc.V.Xr()||sc.V.UA()||sc.V.sA()||sc.V.Fr()||sc.V.ls()||sc.V.Ws()||sc.V.Xs()},Uk:function(){if(sc.e.wp==-1)sc.e.wp=1;var a=sc.e.wp,b=this.fd[a],c=-1;sc.V.Xs()?c=1:sc.V.Ws()&&(c=0);if(c>=0){this.dc.play();b.Ce(w);this.RB[a].x=this.Et.Ea.x;this.RB[a].y=this.Et.Ea.y;this.RB[a].scroll=this.list.list.vc.a.scroll.y;if(c==1){a++;a>=this.fd.length&&(a=0)}else{a--;a<0&&(a=this.fd.length-1)}this.zs=
a;this.Fk=b=this.fd[a];b.Ce(j);this.tI(b,j);this.qz();sc.e.dP=b.data;sc.e.RPa(a)}},Ceb:F(),lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.yH){a=sc.e.dP;this.jka(a.type,a.Rva,j,ig.input.dd,!ig.input.dd)}else if(b==sc.ca.sr){a=sc.e.dP;this.jka(a.type,a.Rva,j,ig.input.dd,!ig.input.dd,c.data.KG)}},jka:function(a,b,c,d,e,h){var c=c||w,d=d||w,e=e||w,k=0,l=0,m=sc.q.R;this.Et.clear();this.list.clear(c);var n=s,o=-1,t=-1;if(a=="NEW")n=m.xp;else if(b)if(a==sc.Hm.EQUIP){n=m.vO(b,j,h||sc.ih.ORDER);switch(b){case sc.Of.HEAD:o=
m.Wb.head;break;case sc.Of.ARM:o=m.Wb.di;t=m.Wb.ki;break;case sc.Of.TORSO:o=m.Wb.Jh;break;case sc.Of.FEET:o=m.Wb.mh}}else f(Error("Only equip can have a subType! [type: "+a+", subType: "+b+"]"));else n=m.apa(a,h||sc.ih.ORDER);for(var r=s,b=s,p=0,q=0;q<n.length;q++){var p=m.rc[n[q]]||0,b=sc.Pb.getItem(n[q]),r=new ig.Oa(b.name),r="\\i["+(b.icon+sc.Pb.uo(b.rarity||0)||"item-default")+"]"+ig.Oa.wc(b.name),x=ig.Oa.wc(b.description);o==n[q]&&(p=p+1);t==n[q]&&(p=p+1);r=new sc.AB(r,142,26,p,n[q],x,g,g);if(p==
0&&a=="NEW"&&b.equipType&&m.GKa(n[q])){p=m.OU(n[q]);r.zb.sa(p,j);this.Wja(r,1)}p==0&&r.setActive(w);r.button.dc=s;if(n[q]==o||n[q]==t){this.Wja(r,o);this.Wja(r,t)}m.vV(n[q])&&this.PBa(r);this.list.Rd(r)}if(c){a=0;if(h==g){if(this.zs>=0){h=this.RB[this.zs];this.zs=-1;if(this.Et.YKa(h.x,h.y)){a=h.x;k=h.y;l=-h.scroll}else l=k=a=0}}else l=k=0;this.list.list.el=k;d?this.Et.Mj(a,k):this.Et.yf(a,k,w,e);this.list.zG(l,j)}},lq:function(a,b,c,d,e){a=new sc.BB.XH(ig.lang.get("sc.gui.menu.item."+a),b);a.l(0,
2);a.setData({type:d,Rva:e||s,description:s});this.m(a);this.vh.Uc(a,c,0);return this.fd[c]=a},tI:function(a,b){for(var c=0;c<this.fd.length;c++){a!=this.fd[c]&&this.fd[c].Ce(w);if(b)this.fd[c].focus=w}},qz:function(){for(var a=9,b=s,c=0;c<this.fd.length;c++){b=this.fd[c];b.a.i.x=a;a=a+b.a.size.x}},Wja:function(a,b){if(b>=0){var c=new ig.Dc(this.r,112,480,19,18);a.m(c)}},PBa:function(a){var b=new ig.Dc(this.r,256,480,19,17);b.l(0,0);a.m(b)},s4a:function(a){a.Hta(a.a.children.length-1)}});sc.BB.XH=
ig.Vn.extend({eb:new ig.$b("media/gui/buttons.png",{width:15,height:0,left:9,top:20,right:4,bottom:0,Fb:{"default":{x:0,y:92},focus:{x:32,y:92},pressed:{x:64,y:92}}}),text:"",qa:"item-default",data:s,Hra:w,re:s,uqb:s,kla:28,pDa:106,f:function(a,b,c,d,e){this.parent(j,j);this.kla=d||28;this.pDa=c||106;this.v(this.kla,20);this.text=a||"";this.qa=b||"item-default";this.Hra=e||w;this.re=new sc.ea(this.IU(),{speed:ig.rd.Nd.We});this.re.F(ig.k.fb,ig.k.gb);this.re.l(8,0);this.m(this.re)},setData:function(a){if(a!=
g)this.data=a},IU:function(){return this.Bc?this.Hra?this.text:"\\i["+this.qa+"]"+this.text:this.Hra?this.qa:"\\i["+this.qa+"]"},va:function(a){var b="default";this.Ij&&this.Bc?b="pressed":this.focus&&(b="focus");this.eb.Xa(a,this.a.size.x,this.a.size.y,b)},Ce:function(a){var b=this.Bc;this.parent(a);if(b!=this.Bc){this.re.fa(this.IU());this.a.size.x=this.Bc?this.pDa:this.kla;this.wNa(this.Bc)}},wNa:F()})});ig.G=j;
ig.I("game.feature.menu.gui.item.item-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.item.item-status-equip","game.feature.menu.gui.item.item-status-default","game.feature.menu.gui.item.item-status-buffs","game.feature.menu.gui.item.item-status-favs","game.feature.menu.gui.item.item-list").H(function(){sc.IWa=sc.bq.extend({mb:s,LF:s,Kd:s,QX:s,SX:s,PX:s,NX:s,RX:s,tu:s,Sc:s,Aa:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;
this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.Kd=new sc.ec("\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title"),g,j,sc.Ic.Kc);this.Kd.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.Kd.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.Kd.Qb=this.CA.bind(this);this.Sc=
new sc.Yya;this.QX=new sc.LWa;this.m(this.QX);this.SX=new sc.EWa;this.m(this.SX);this.PX=new sc.KWa;this.m(this.PX);this.NX=new sc.JWa;this.m(this.NX);this.RX=new sc.MWa;this.m(this.RX);this.tu=new sc.BB;this.m(this.tu);this.LF=new sc.ec("\\i[help2]"+ig.lang.get("sc.gui.menu.item.set-fav"),g,j,sc.Ic.Kc);this.LF.dc=s;this.LF.Ul=j;this.LF.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.LF.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.LF.Qb=this.leb.bind(this);this.j("DEFAULT")},
ac:function(){sc.K.Na(sc.e,this);this.QX.ac();this.SX.ac();this.PX.ac();this.NX.ac();this.RX.ac();this.tu.ac()},Yb:function(){sc.K.lc(sc.e,this);this.QX.Yb();this.SX.Yb();this.PX.Yb();this.NX.Yb();this.RX.Yb();this.tu.Yb()},xd:function(){this.ac();sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);this.ek();if(sc.e.wp==-1)sc.e.wp=1;this.TM(ig.lang.get("sc.gui.menu.sort.auto"));this.QX.xd();this.SX.xd();this.PX.xd();this.NX.xd();this.RX.xd();this.tu.xd()},Ti:function(){sc.e.Th(0,0,sc.Rg.hh);this.Rc()},
Rc:function(){this.Yb();sc.e.Q.zd(this.mb);sc.e.Q.zd(this.LF);sc.e.Q.zd(this.Kd);this.Aa=s;this.Sc.Ga&&this.Sc.Sk();this.QX.Rc();this.SX.Rc();this.PX.Rc();this.NX.Rc();this.RX.Rc();this.tu.Rc()},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.inventory.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.inventory.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ueb:function(){return sc.V.ZF()},
leb:function(){this.tu.xua()},lD:function(){return sc.V.hK()},CA:function(){if(this.Sc.Ga)this.Sc.Sk();else{ig.T.Mc(this.Sc);this.Sc.CX(this.Kd)}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Q.md(this.LF,this.ueb.bind(this));sc.e.Q.md(this.Kd,this.lD.bind(this));sc.e.Qi(M("LF").bind(this));sc.e.Qi(M("Kd").bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},TM:function(a){var b="\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title")+": ";this.Kd.fa(b+
("\\c[3]"+a+"\\c[0]"));sc.e.Ru()},lb:function(a,b,c){a==sc.e&&(b==sc.ca.sr?this.TM(c.text):b==sc.ca.yH&&c!=sc.e.wp&&this.TM(ig.lang.get("sc.gui.menu.sort.auto")))}})});ig.G=j;
ig.I("game.feature.menu.gui.map.map-misc").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.numbers","game.feature.menu.gui.menu-misc").H(function(){var a=[],b=0,c=0;sc.dXa=ig.Vn.extend({r:new ig.$("media/gui/menu.png"),key:s,floor:0,yo:s,map:s,description:s,name:s,f:function(a,b,c,d){this.parent();this.v(16,16);this.l(b.x-8,b.y-8);this.key=a;this.yo=b;this.floor=c;this.map=d;this.name=(a=sc.map.kIa(this.key).name)?ig.Oa.wc(a):s;this.description=(a=sc.map.kIa(this.key).description)?
ig.Oa.wc(a):s},va:function(a){if(this.focus&&this.floor==sc.map.ej){a.ia(this.r,-5,-6,450,170,28,28).dh("lighter");a.ia(this.r,0,0,464,144,16,16)}else a.ia(this.r,0,0,448,144,16,16)},PF:function(){if(!(this.floor!=sc.map.ej||sc.e.cD||ig.ua.Ph())){if(sc.e.bD)return sc.e.lj==this;if(ig.input.bb==ig.Gb.Jc){var a=this.tO();if(sc.e.Pca){sc.e.J6(this);return w}if(a<=10){a=this.a;sc.e.OHa(a.i.x+Math.floor(a.size.x/2)+sc.e.fy.x,a.i.y+Math.floor(a.size.y/2)+1+sc.e.fy.y,this,j)}else sc.e.J6(this)}else if(ig.input.bb==
ig.Gb.gm){var d=Math.floor(sc.V.to()),k=Math.floor(sc.V.Vm());if(k<=21||k>=299){sc.e.J6(this);return w}a=this.a;b=a.kf.x;c=a.kf.y;(d=d>=b&&d<=b+15&&k>=c&&k<=c+16)?sc.e.OHa(a.i.x+Math.floor(a.size.x/2)+sc.e.fy.x,a.i.y+Math.floor(a.size.y/2)+1+sc.e.fy.y,this):sc.e.J6(this);return d}return w}},tO:function(){return Math.floor(Vec2.k1(sc.e.Fd.x-sc.e.fy.x,sc.e.Fd.y-sc.e.fy.y,this.a.i.x+Math.floor(this.a.size.x/2),this.a.i.y+Math.floor(this.a.size.y/2)))}});sc.qza=ig.te.extend({N:{DEFAULT:{state:{},time:0.1,
p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ma:0},time:0.1,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",{width:2,height:2,left:3,top:3,right:3,bottom:3,Fb:{"default":{x:296,y:448}}}),text:s,f:function(){this.parent(8,8);this.a.Vc=0.8;this.text=new sc.ea("T",{font:sc.Ka.Lb});this.text.F(ig.k.za,ig.k.gb);this.m(this.text);this.a.size.y=this.text.a.size.y+2},fa:function(a,b,c){if(a){this.j("DEFAULT",b?w:j,w,s,b||0);this.text.fa(a);this.v(this.text.a.size.x+4,this.text.a.size.y+2)}else this.j("HIDDEN",
c)}});sc.$1a=ig.X.extend({r:new ig.$("media/gui/menu.png"),name:s,NJa:w,f:function(){this.parent();this.name=new sc.qza;this.name.F(ig.k.ha,ig.k.W);this.m(this.name)},va:function(a){this.parent(a);this.NJa&&a.ia(this.r,0,this.a.size.y-3,320,461,3,3)},fa:function(a,b,c){this.name.fa(a,b,c);this.NJa=a!="";this.a.size.x=this.name.a.size.x+3;this.a.size.y=this.name.a.size.y+3}});sc.pza=ig.X.extend({r:new ig.$("media/gui/menu.png"),focusOffset:{x:0,y:8},focus:w,Mf:0,mg:0,Ug:0,Lh:0,Qj:w,ZS:w,NS:w,f:function(a){this.parent();
this.v(11,24);this.ZS=a||w},Ks:function(a,b){this.l(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2)-this.focusOffset.y);this.focus=j;this.Mf=0;this.mg=0.15;this.Ug=0},$p:function(){this.focus=w;this.mg=this.Mf=0.15;this.Ug=0},moveTo:function(a,b,c,d){c&&ig.input.bb==ig.Gb.Jc?this.bd(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2)-this.focusOffset.y,d,KEY_SPLINES.EASE):this.l(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2)-this.focusOffset.y);if(this.focus){this.Mf=
0;this.mg=0.15;this.Ug=3;this.focus=w}},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},update:function(){if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb}if(this.Mf<this.mg){this.Mf=this.Mf+ig.g.ga;if(this.Mf>=this.mg){this.Mf=this.mg;this.Ug=this.focus?3:0}else this.Ug=(this.mg?1:-1)*(this.Mf/this.mg)*3}},va:function(a){if(this.focus)a.ia(this.r,0,-1+this.Ug,434,146,11,17);else if(this.Qj){a.ia(this.r,1,0,419,147,9,14);a.ia(this.r,1,this.a.size.y-9,
483,147,9,9).dh("lighter")}},lb:function(a,b,c){if(!this.NS&&a==sc.e)if(b==sc.ca.iS){this.$p();if(ig.input.bb==ig.Gb.Jc)this.Qj=j}else if(b==sc.ca.sM){this.mg=this.Mf=0.15;this.Ug=0}else b==sc.ca.gia?this.ZS&&this.Ks(sc.e.Ag.x,sc.e.Ag.y):b==sc.ca.hia?this.ZS||this.Ks(sc.e.Fd.x,sc.e.Fd.y):b==sc.ca.hZ?this.ZS==c&&this.$p():b==sc.ca.fia&&(this.focus||(c?this.Ks(sc.e.Ag.x,sc.e.Ag.y):this.Ks(sc.e.Fd.x,sc.e.Fd.y)))}});sc.HXa=ig.X.extend({r:new ig.$("media/gui/menu.png"),Ea:s,max:s,GDa:-1,Yka:-1,N:{DEFAULT:{state:{},
time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-70},time:0.2,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();this.v(58,11);this.F(ig.k.fb,ig.k.xb);this.l(12,24);this.Ea=new sc.Ib(99,{leadingZeros:2});this.Ea.l(26,2);this.Ea.F(ig.k.ha,ig.k.W);this.m(this.Ea);this.max=new sc.Ib(99,{leadingZeros:2});this.max.F(ig.k.ha,ig.k.W);this.max.l(0,2);this.m(this.max);this.j("HIDDEN",j)},update:function(){var a=sc.map.Q9a();if(a!=this.Yka){this.Yka=a;this.max.sa(a)}a=sc.ta.pg("chests",sc.map.Zh.path)||
0;if(a!=this.GDa){this.GDa=a;this.Ea.sa(Math.min(this.Yka,a))}},va:function(a){a.ia(this.r,0,0,280,448,11,11);a.ia(this.r,33,2,80,408,8,8)}});sc.JXa=ig.Vn.extend({r:new ig.$("media/gui/menu.png"),Va:s,name:"???",aa:0,alpha:1,pq:0,f:function(a,b){this.parent(j,j);this.v(62,34);this.name=a||"???";this.aa=b||0;this.Ul=j;this.Va=new sc.ea(this.name,{speed:ig.rd.Nd.We});this.Va.F(ig.k.za,ig.k.gb);this.Va.l(0,-2);this.m(this.Va)},Pl:function(a){this.parent(a);if(this.focus){this.pq=0;this.alpha=1}},wu:function(a,
b){if(!sc.e.bD){this.parent(a,b);if(!sc.e.VV&&a&&!sc.e.bD)sc.e.VV=j}},update:function(){this.pq=(this.pq+ig.g.Da)%1;var a=this.pq/1,a=KEY_SPLINES.EASE_IN_OUT.get(1-(a>0.5?1-(a-0.5)*2:a*2));this.alpha=0.8*a+0.2},va:function(a){a.ia(this.r,0,0,314,384+(this.focus?34:0),62,34);this.focus?a.ia(this.r,0,0,376,384,62,34).wd(this.alpha):this.Bc&&a.ia(this.r,0,0,376,384,62,34)}});sc.KXa=ig.X.extend({r:new ig.$("media/gui/menu.png"),Ba:s,kP:s,sqb:[],PB:s,k9:w,q9:s,y_:0,x_:0,f:function(){this.parent();this.a.N=
{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-87},time:0.2,p:KEY_SPLINES.LINEAR}};this.l(25,33);this.F(ig.k.ha,ig.k.W);this.j("HIDDEN",j);this.q9=sc.qd.submit;this.Ba=new sc.Wf;this.Ba.UO=j;this.Ba.tk(this.oeb.bind(this));this.kP=new ig.Dc(this.r,280,388,34,20);this.kP.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.kP.j("HIDDEN",j);if(sc.map.zJ()){this.PB=sc.map.zJ().floors;this.v(62,34*this.PB.length+
-8*Math.max(0,this.PB.length-1));this.iCa(j)}},xd:function(){sc.e.Q.aN(this.Ba);this.j("DEFAULT")},Rc:function(){sc.e.Q.gQ(this.Ba);this.j("HIDDEN")},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},o6a:function(){this.k9=j;this.q9.play();sc.e.kua(sc.map.ej)},update:function(){if(this.PB&&!sc.e.cD){var a=-1E4;if(this.Bc("circle-right",ig.nc.UL,ig.nc.BH)){a=sc.map.ej+1;if(a>this.x_)a=this.y_}else if(this.Bc("circle-left",ig.nc.TL,ig.nc.uE)){a=sc.map.ej-1;if(a<this.y_)a=this.x_}if(a>
-1E4&&a!=sc.map.ej){this.q9.play();sc.e.kua(a)}}},Bc:function(a,b,c){return ig.input.Bc(a)||ig.fc.ci(b)||ig.fc.ci(c)},oeb:function(a){if(a.aa!=g){this.k9=j;this.q9.play();sc.e.kua(a.aa||0)}},lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.iS)if(this.k9)this.k9=w;else{a=this.Ba.elements[0];for(b=a.length;b--;)a[b]&&(a[b].aa!=g&&a[b].aa==sc.map.ej)&&this.Ba.rfa(a[b])}else if(b==sc.ca.jM)c?this.Rc():this.xd();else if(b==sc.ca.fZ){this.PB=sc.map.zJ().floors;this.v(62,34*this.PB.length+-8*Math.max(0,this.PB.length-
1));this.iCa(j);this.xd()}},iCa:function(b){this.a.rg();this.Ba.clear();this.kP.j("HIDDEN",j);var c=this.PB.length,d=0,l=s,m=0,l=w,n=0,o=s;this.y_=1E5;for(this.x_=-1E5;c--;){o=this.PB[c].maps;m=this.PB[c].level;n=o.length;for(l=w;n--;)if(ig.pa.Cc.maps[o[n].path.Qy().dr("","")]){l=j;break}if(l){if(m<this.y_)this.y_=m;if(m>this.x_)this.x_=m;l=new sc.JXa(this.r3a(m),m);l.l(0,d);this.Ba.Uc(l,0,c);if(sc.map.ej==m){this.Ba.rfa(l);if(sc.map.$h==sc.map.Zh){this.kP.l(45,d-3);this.kP.j("DEFAULT",b||w)}}d=d+
26;a.push(l)}}for(c=a.length;c--;)this.m(a[c]);this.m(this.kP);a.length=0},r3a:function(a){return a==0?ig.lang.get("sc.gui.menu.map-menu.gf"):a<0?ig.lang.get("sc.gui.menu.map-menu.base-short")+Math.abs(a):Math.abs(a)+ig.lang.get("sc.gui.menu.map-menu.floor-short")}});sc.wUa=sc.gq.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:0},time:0.2,p:KEY_SPLINES.LINEAR}},text:s,f:function(){this.parent(sc.yj.IAa);this.l(2,24);this.F(ig.k.ha,ig.k.xb);this.text=new sc.ea("",
{font:sc.Ka.Lb});this.text.l(0,1);this.text.F(ig.k.za,ig.k.W);this.m(this.text)},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){this.text.fa(ig.lang.get("sc.gui.menu.map-menu.area")+sc.map.O9a());var a=this.text.a;this.v(a.size.x+6,a.size.y+2);this.jL("HIDDEN","offsetX",-(a.size.x+2));this.j("DEFAULT")},Rc:function(){this.j("HIDDEN")},lb:function(a,b,c){a==sc.e&&(b==sc.ca.jM?c?this.Rc():this.xd():b==sc.ca.fZ&&this.xd())}});var d=["black","red","green","blue","yellow",
"pink","cyan","orange","purple","wheat"];sc.emb=sc.gq.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},floor:s,f:function(){this.parent();if(sc.map.zJ()){this.floor=sc.map.zJ().floors;this.j("HIDDEN",j)}},va:function(a){this.parent(a);if(this.floor)for(var b=this.floor.length,c=s,l=0;b--;){for(var c=this.floor[b].tiles,m=0;m<c.length;m++)for(var n=0;n<c[0].length;n++)c[m][n]&&a.Ec(d[c[m][n]%d.length],n*4,m*4+l,4,4);l=l+(c.length*4+
4)}}})});ig.G=j;
ig.I("game.feature.menu.gui.map.map-floor").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.area-loadable").H(function(){function a(a,b,c,k,l){e=sc.mTa[k.dir];h=l?e.Lp:e.first;d.x=a;d.y=b;a=Math.max(0,k.size-1);c.Xa(d.x+h.BW,d.y+h.DW,h.x,h.y,h.X6,h.u2);d.x=d.x+e.step.x;for(d.y=d.y+e.step.y;a--;){c.Xa(d.x+h.BW,d.y+h.DW,281,411,h.uc,h.Gc);d.x=d.x+e.step.DR;d.y=d.y+e.step.ER}c.Xa(d.x+h.BW,d.y+h.DW,h.x+e.step.x,h.y+e.step.y,h.X6,h.u2)}function b(a,b,c,e){e.fill&&c.Xa(a,
b,284,412,8,8);if(e.offset){d.x=e.offset.x;d.y=e.offset.y}else{d.x=0;d.y=0}c.Xa(a+d.x,b+d.y,e.src.x,e.src.y,e.size[0],e.size[1]);e.rL&&c.Xa(a+e.GP.x,b+e.GP.y,e.rL.x,e.rL.y,e.size[2],e.size[3])}function c(a,b,c,d){return a<0||b<0||a>=c[0].length||b>=c.length?0:c[b][a]==d?1:0}sc.PXa=ig.X.extend({r:new ig.$("media/gui/menu.png"),afa:s,buffer:s,floor:s,name:"default_empty",id:0,bua:1,iga:0,gga:0,Ga:w,xR:w,MA:w,f:function(a,b,c){this.parent();this.afa=a;this.name=a.name.Qy().dr("","");this.xR=ig.pa.Cc.maps[this.name]?
j:w;this.floor=b;this.id=c;b=a.name==sc.map.JN;a.Yu&&(b=b&ig.t.wb.b.aa>=a.Yu);a.Xu&&(b=b&ig.t.wb.b.aa<=a.Xu);this.Ga=b;this.iga=Math.max(0,a.max.x-a.min.x);this.gga=Math.max(0,a.max.y-a.min.y);this.l(a.min.x*8,a.min.y*8);this.v(this.iga*8,this.gga*8)},Pda:function(a){a?this.qea():this.wN()},th:function(){this.wN()},va:function(a){this.MA&&a.ia(this.buffer,0,0,0,0).wd(this.bua)},qea:function(){if(!this.MA&&this.xR){this.buffer=ig.Rs.Mx(this.iga*8,this.gga*8,function(){for(var d=this.afa,e=this.floor.tiles,
h=this.floor.connections,p=this.r,q=this.Ga,x=this.iga*8,y=this.gga*8,z=d.id,u=0,v=0,A=s,C=0,B=0,E=j,I=s,K=k,H=ig.g.context,G=[],J=d.min.y;J<d.max.y;J++){for(var u=0,D=d.min.x;D<d.max.x;D++){if(e[J][D]==z){for(C=0;C<K.length;++C)G[C]=c(D+K[C].x,J+K[C].y,e,z);for(C=m.length;C--;){I=m[C];A=I.Cb;E=j;for(B=l.length;B--;)if(A[B]!=G[l[B]]){E=w;break}if(E){b(u,v,p,I);break}}for(C=n.length;C--;){I=n[C];A=I.Cb;E=j;for(B=G.length;B--;)if(A[B]!=-1&&A[B]!=G[B]){E=w;break}E&&b(u,v,p,I)}}u=u+8}v=v+8}C=h.length;
for(u=new ig.ce("");C--;){A=h[C];if(A.map1+1==z||A.map2+1==z)if(A.condition!=g){u.fL(A.condition);u.evaluate()&&a((A.tx-d.min.x)*8,(A.ty-d.min.y)*8,p,A,A.map2+1==z)}else a((A.tx-d.min.x)*8,(A.ty-d.min.y)*8,p,A,A.map2+1==z)}if(q){v=0;for(J=d.min.y;J<d.max.y;J++){u=0;for(D=d.min.x;D<d.max.x;D++){if(e[J][D]==z){h=u;q=v;A=p;C=H;B=c(D+1,J,e,z)!=1;E=c(D,J+1,e,z)!=1;I=C.globalAlpha;C.globalAlpha=C.globalAlpha*0.3;A.Xa(h,q,292,436,8-(B?1:0),8-(E?1:0));C.globalAlpha=I}u=u+8}v=v+8}x<=16||y<=16?p.Xa(Math.floor(x/
2)-5+d.offset.x,Math.floor(y/2)-4+d.offset.y,280,436,10,9):p.Xa(Math.floor(x/2)-8+d.offset.x,Math.floor(y/2)-6+d.offset.y,280,424,16,11)}}.bind(this));this.MA=j}},wN:function(){if(this.MA){this.buffer.wD();this.buffer=s;this.MA=w}}});sc.LXa=ig.X.extend({r:new ig.$("media/gui/area-icons.png"),offsetX:0,offsetY:0,map:0,qa:"",f:function(a,b,c,d,e){this.parent();var h=Math.floor(this.r.width/12);this.qa=sc.kxa[c]||sc.kxa.arrow_up;var k=this.qa.index;this.map=d||s;this.offsetX=k%h*12;this.offsetY=Math.floor(k/
h)*12;this.l(a-6,b-6);this.v(12,12);e&&this.map&&this.map.xR&&this.qa.type==sc.vY.uY&&e.area&&this.i7a(e,c)},va:function(a){this.map&&this.map.xR&&a.ia(this.r,0,0,this.offsetX,this.offsetY,12,12)},i7a:function(a,b){var c="???";a.map&&ig.pa.Cc.maps[a.map.Qy().dr("","")]&&(c=sc.map.AF(a.area));var d=new ig.Lf("black");d.a.Vc=0.5;c=new sc.ea(c,{font:sc.Ka.Lb});c.F(ig.k.za,ig.k.gb);d.v(c.a.size.x+4,c.a.size.y+2);switch(b){case "area_up":d.l(0,-(d.a.size.y+1));d.F(ig.k.za,ig.k.W);break;case "area_down":d.l(0,
13);d.F(ig.k.za,ig.k.W);break;case "area_left":d.l(-(d.a.size.x+1),0);d.F(ig.k.fb,ig.k.gb);break;case "area_right":d.l(13,0);d.F(ig.k.fb,ig.k.gb)}if(a.offset){d.a.i.x=d.a.i.x+a.offset.x;d.a.i.y=d.a.i.y+a.offset.y}d.m(c);this.m(d)}});sc.IXa=ig.X.extend({N:{DEFAULT:{state:{},time:0.4,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_FAST:{state:{alpha:0},time:0.4,p:KEY_SPLINES.LINEAR}},floor:s,name:"",ee:s,cua:s,Fla:s,Ob:s,vq:{x:1E5,y:1E5,width:-1,height:-1},f:function(a,
b){this.parent();this.Ob=b||s;this.floor=a;this.name=a.name?ig.Oa.wc(a.name):"";this.cua=this.floor.rooms;this.l(0,0);this.v(a.tiles[0].length*8,a.tiles.length*8);this.j("HIDDEN",j)},dn:function(){var a=this.lka();this.G2a(a);this.Ob&&this.Ob(j,this,a)},update:F(),va:F(),DQa:function(){this.ac();this.j("DEFAULT");this.CFa(j,j)},mbb:function(){this.Yb();this.j("HIDDEN")},CFa:function(a,b){sc.map.ej!=this.floor.level?this.j("HIDDEN_FAST",a):b||this.j("DEFAULT",a)},d6a:function(){this.bd(this.a.i.x,
(sc.map.ej-this.floor.level)*8,0.3,KEY_SPLINES.EASE)},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},lb:function(a,b){if(a==sc.e&&b==sc.ca.iS){this.d6a();this.CFa(w)}},Lnb:function(){for(var a=this.a.children,b=a.length;b--;)if(a[b].T.bua!=g)a[b].T.bua=this.lz},G2a:function(a){for(var b=s,b=s,c=this.floor.icons,d=c.length;d--;){b=c[d];b=new sc.LXa(b.x,b.y,b.icon,a[b.map],b.data);this.m(b)}},lka:function(){for(var a=s,b=s,c=[],d=0;d<this.cua.length;d++)if(a=this.cua[d]){b=new sc.PXa(a,
this.floor,this.floor.level);if(b.Ga)this.Fla=b.a;if(b.xR){if(b.a.i.y<this.vq.y)this.vq.y=b.a.i.y;if(b.a.i.y<this.vq.x)this.vq.x=b.a.i.x;if(b.a.i.x+b.a.size.x>this.vq.width)this.vq.width=b.a.i.x+b.a.size.x;if(b.a.i.y+b.a.size.y>this.vq.height)this.vq.height=b.a.i.y+b.a.size.y}c[a.id-1]=b}for(d=0;d<c.length;d++)c[d].xR&&this.m(c[d]);this.vq.width=this.vq.width-this.vq.x;this.vq.height=this.vq.height-this.vq.y;return c}});var d=Vec2.pc(0,0),e=s,h=w,k=[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:1,
y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}],l=[1,3,4,6],m=[{Cb:[0,0,0,0],src:{x:304,y:408},size:[8,8],fill:w},{Cb:[1,1,1,1],src:{x:284,y:412},size:[8,8],fill:w},{Cb:[0,0,1,1],src:{x:280,y:408},size:[8,8],fill:w},{Cb:[0,1,0,1],src:{x:288,y:408},size:[8,8],fill:w},{Cb:[1,0,1,0],src:{x:280,y:416},size:[8,8],fill:w},{Cb:[1,1,0,0],src:{x:288,y:416},size:[8,8],fill:w},{Cb:[1,0,1,1],src:{x:280,y:412},size:[8,8],fill:w},{Cb:[1,1,0,1],src:{x:288,y:412},size:[8,8],fill:w},{Cb:[1,1,1,0],src:{x:284,y:416},size:[8,8],
fill:w},{Cb:[0,1,1,1],src:{x:284,y:408},size:[8,8],fill:w},{Cb:[0,1,1,0],src:{x:284,y:408},size:[8,4,8,4],rL:{x:284,y:420},GP:{x:0,y:4},fill:w},{Cb:[1,0,0,1],src:{x:280,y:412},size:[4,8,4,8],rL:{x:292,y:412},GP:{x:4,y:0},fill:w},{Cb:[0,1,0,0],src:{x:288,y:408},size:[8,4,8,4],rL:{x:288,y:420},GP:{x:0,y:4},fill:w},{Cb:[0,0,1,0],src:{x:280,y:408},size:[8,4,8,4],rL:{x:280,y:420},GP:{x:0,y:4},fill:w},{Cb:[0,0,0,1],src:{x:280,y:408},size:[4,8,4,8],rL:{x:292,y:408},GP:{x:4,y:0},fill:w},{Cb:[1,0,0,0],src:{x:280,
y:416},size:[4,8,4,8],rL:{x:292,y:416},GP:{x:4,y:0},fill:w}],n=[{Cb:[-1,-1,-1,1,-1,0,1,-1],src:{x:296,y:412},size:[4,4],offset:{x:0,y:4}},{Cb:[-1,-1,-1,-1,1,-1,1,0],src:{x:300,y:412},size:[4,4],offset:{x:4,y:4}},{Cb:[0,1,-1,1,-1,-1,-1,-1],src:{x:296,y:408},size:[4,4],offset:{x:0,y:0}},{Cb:[-1,1,0,-1,1,-1,-1,-1],src:{x:300,y:408},size:[4,4],offset:{x:4,y:0}}]});ig.G=j;
ig.I("game.feature.menu.gui.map.map-area").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.map.map-floor","game.feature.menu.gui.map.map-misc").H(function(){var a=0,b=0,c=Vec2.pc(0,0),d=sc.qd.submit;sc.FXa=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();a=Math.floor(ig.g.width/2);b=Math.floor(ig.g.height/2)},va:F()});sc.GXa=ig.X.extend({r:new ig.$("media/gui/menu.png"),
background:new ig.$("media/gui/env-white.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_WORLD:{state:{alpha:1,Ia:0.5,Ma:0.5,oc:0.5},time:0.2,p:KEY_SPLINES.LINEAR}},Ub:s,Ba:s,ov:Vec2.pc(0,0),Bh:Vec2.pc(-1E4,-1E4),EE:0,JM:w,aI:0.1,ZZ:0.5,lz:0,wka:w,G_:-100,UM:0,Ala:0,zla:0,Nnb:0,VM:0,z9:0.3,aka:{},Qj:w,Lh:0,Wr:s,PC:s,cursor:s,FLa:[],f:function(){this.parent();this.v(ig.g.width,ig.g.height);this.rb(ig.g.width/2,ig.g.height/2);if(!this.constructor.Km){this.constructor.Km=
this.r.createPattern(440,400,32,32,ig.ue.Pf.gz);this.constructor.UYa=this.r.createPattern(472,400,32,32,ig.ue.Pf.gz)}this.a.gL(j);this.Ub=new sc.FXa;this.m(this.Ub);this.cursor=new sc.pza;this.m(this.cursor);this.Wr=new sc.qza;this.m(this.Wr);this.Ba=new sc.W7;this.Ba.UO=j;this.Ba.si(function(a){a.data?sc.e.tc(a.data):a.description?sc.e.tc(a.description):sc.e.tc("",j)});this.Ba.Bk(function(){sc.e.tc("",j)});this.Ba.tk(function(a){this.pNa(a)}.bind(this));this.Ba.Uk=function(){ig.input.bb==ig.Gb.Jc&&
(sc.V.Xr()&&sc.e.lj)&&this.pNa(sc.e.lj)}.bind(this);this.sPa();this.qma(j);this.qm();this.j("HIDDEN",j)},update:function(){sc.e.Pca=w;if(this.aI<this.ZZ){this.aI=this.aI+ig.g.ga;if(this.aI>=this.ZZ){this.aI=this.ZZ;this.lz=1}else this.lz=this.aI/this.ZZ}if(!sc.e.D3){if(this.VM<this.z9){this.VM=this.VM+ig.g.ga;var a=Math.min(1,Math.max(0,this.VM)/this.z9),a=KEY_SPLINES.EASE.get(a);this.UM=this.zla*(1-a)+this.Ala*a;if(a==1)this.VM=this.z9}if(!ig.ua.Ph()&&this.Ba.Tc()){if(this.Lh!=ig.input.bb){this.Qj=
ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb;a=s;if(ig.input.bb==ig.Gb.Jc){a=this.Bh;this.oV(a);sc.e.Fd.x=a.x;sc.e.Fd.y=a.y;this.by();sc.e.yd.x=Math.floor(-a.x+ig.g.width/2);sc.e.yd.y=Math.floor(-a.y+ig.g.height/2);this.qm();this.gj(sc.e.yd.x,sc.e.yd.y,0.3,KEY_SPLINES.EASE);this.cursor.moveTo(sc.e.Fd.x,sc.e.Fd.y);if(sc.e.lj)this.PC=sc.e.lj=s;this.Hx(sc.e.Fd.x,sc.e.Fd.y,j)}else if(ig.input.bb==ig.Gb.gm){this.Bh.x=sc.e.Fd.x;this.Bh.y=sc.e.Fd.y;this.cursor.$p();this.Hx(sc.V.to(),sc.V.Vm())}sc.e.qga()}a=
w;if(!this.a.Yk){if(sc.V.tMa(0.5)){sc.e.yd.x=Math.floor(sc.e.yd.x+250*ig.g.Da);this.qm();this.a.scroll.x=sc.e.yd.x;a=j}else if(sc.V.uMa(0.5)){sc.e.yd.x=Math.floor(sc.e.yd.x-250*ig.g.Da);this.qm();this.a.scroll.x=sc.e.yd.x;a=j}if(sc.V.vMa(0.5)){sc.e.yd.y=Math.floor(sc.e.yd.y+250*ig.g.Da);this.qm();this.a.scroll.y=sc.e.yd.y;a=j}else if(sc.V.sMa(0.5)){sc.e.yd.y=Math.floor(sc.e.yd.y-250*ig.g.Da);this.qm();this.a.scroll.y=sc.e.yd.y;a=j}}if(!a&&ig.input.bb==ig.Gb.Jc){var b=0,d=0,l=0;if((l=sc.V.ke(ig.Pc.El))<
-0.5){b=(-150+l*100)*ig.g.Da;a=j}else if((l=sc.V.ke(ig.Pc.El))>0.5){b=(150+l*100)*ig.g.Da;a=j}if((l=sc.V.ke(ig.Pc.Fl))<-0.5){d=(-150+l*100)*ig.g.Da;a=j}else if((l=sc.V.ke(ig.Pc.Fl))>0.5){d=(150+l*100)*ig.g.Da;a=j}if(a){sc.e.Pca=j;sc.e.Fd.x=b>=0?Math.floor(sc.e.Fd.x+b):Math.ceil(sc.e.Fd.x+b);sc.e.Fd.y=d>=0?Math.floor(sc.e.Fd.y+d):Math.ceil(sc.e.Fd.y+d);this.by();this.Hx(sc.e.Fd.x,sc.e.Fd.y,j);this.cursor.moveTo(sc.e.Fd.x,sc.e.Fd.y);c.x=sc.e.yd.x;c.y=sc.e.yd.y;sc.e.yd.x=Math.floor(-sc.e.Fd.x+ig.g.width/
2);sc.e.yd.y=Math.floor(-sc.e.Fd.y+ig.g.height/2);this.qm()}a=w;if(Math.abs(sc.e.yd.x-c.x)>=18||Math.abs(sc.e.yd.y-c.y)>=18)a=j;if(this.a.Yk){this.a.Yk.x=sc.e.yd.x;this.a.Yk.y=sc.e.yd.y}else if(a)this.gj(sc.e.yd.x,sc.e.yd.y,0.3,KEY_SPLINES.LINEAR);else{this.a.scroll.x=sc.e.yd.x;this.a.scroll.y=sc.e.yd.y}}}}},va:function(a){var b=this.a;if(b.Os())a.Rj(this.constructor.UYa,-512,-512,-b.scroll.x,-b.scroll.y+this.UM,2064,2064);else{a.Ec("#154453",0,0,b.size.x,b.size.y);a.ia(this.background,0,0).wd(0.3*
this.lz);a.ia(this.background,b.size.x-this.background.width,0,0,0,g,g,j).wd(0.3*this.lz);a.Rj(this.constructor.Km,0,0,-b.scroll.x,-b.scroll.y+this.UM,b.size.x,b.size.y)}},wu:function(a,b){if(!ig.ua.Ph()&&!b&&sc.map.zJ()&&this.Ba.Tc()&&!sc.e.D3)if(sc.e.VV)if(a&&sc.V.e2()){sc.e.VV=w;sc.e.J6(sc.e.lj);this.JM=j}else{if(a)sc.e.VV=w;else{this.PC=s;this.Wr.fa("")}sc.e.bD=w}else{var c=Math.floor(sc.V.to()),d=Math.floor(sc.V.Vm());ig.input.bb!=ig.Gb.Jc&&this.Hx(sc.V.to(),sc.V.Vm());if(sc.V.e2()||this.JM){this.JM=
w;Vec2.Sa(this.ov,c,d);sc.e.bD=j;this.EE=0;ig.input.bb!=ig.Gb.Jc&&this.Hx(sc.V.to(),sc.V.Vm())}else if(sc.V.$oa()){if(sc.e.bD){this.EE=this.EE+ig.g.Da;if(!sc.e.gK)sc.e.gK=(Math.abs(c-this.ov.x)>=1||Math.abs(d-this.ov.y)>=1)&&this.EE>=0.1;sc.e.yd.x=sc.e.yd.x+(c-this.ov.x);sc.e.yd.y=sc.e.yd.y+(d-this.ov.y);this.qm();this.a.scroll.x=sc.e.yd.x;this.a.scroll.y=sc.e.yd.y;Vec2.Sa(this.ov,c,d);ig.input.bb!=ig.Gb.Jc&&this.Hx(sc.V.to(),sc.V.Vm())}}else sc.e.bD=w}},pNa:function(a){if(sc.e.gK)sc.e.gK=w;else{d.play();
var b=ig.lang.get("sc.gui.menu.map-menu.teleport"),b=b+(sc.map.RIa(a.map.path)+"?");sc.rn.ww(b,s,function(b){sc.e.bD=w;b.data==0&&sc.map.ckb(a.map)}.bind(this))}},Hx:function(a,b,c,d){if(!sc.e.lj){var m=0,n=0;if(c){m=a-this.Ub.a.i.x;n=b-this.Ub.a.i.y}else{m=a-sc.e.yd.x-this.Ub.a.i.x+1;n=b-sc.e.yd.y-this.Ub.a.i.y+1}if(this.Ub.a.children.length!=0){for(var o=this.Ub.a.children[sc.map.Soa()].children,t=s,r=o.length;r--;)if(o[r].T.afa&&o[r].T.xR){t=o[r];if(m>=t.i.x&&m<=t.i.x+t.size.x&&n>=t.i.y&&n<=t.i.y+
t.size.y){c?this.Wr.l(sc.e.Fd.x+5,sc.e.Fd.y-this.Wr.a.size.y-4):this.Wr.l(a-sc.e.yd.x,b-sc.e.yd.y-this.Wr.a.size.y-1);if(this.PC!=t){this.PC=t;this.Wr.fa(t.T.afa.text,d)}return j}}this.PC=s;this.Wr.fa("");return w}}},qjb:function(a){this.Wr.fa(a?a:"???");var a=sc.e.lj.a.i.x,b=sc.e.lj.a.i.y,b=b-(this.Wr.a.size.y-2);this.PC=sc.lj;this.Wr.l(a+15+sc.e.fy.x,b+sc.e.fy.y)},Vcb:function(a){this.j("DEFAULT");sc.e.tc("",j);this.PC=s;this.Wr.fa("");this.FLa.length=0;var b=this.aka[sc.map.Zh.path]||{x:-1E4,y:-1E4,
BGa:-1E4,CGa:-1E4,floor:0};b.x=sc.e.Fd.x;b.y=sc.e.Fd.y;b.BGa=sc.e.yd.x;b.CGa=sc.e.yd.y;b.floor=sc.map.ej;this.aka[sc.map.Zh.path]=b;for(var b=this.Ub.a.children,c=b.length;c--;)b[c].T.Yb();this.Ba.clear();this.Ub.rg();this.Ub.j("HIDDEN",j);sc.map.Okb();sc.map.Wqa(a,this)},Pq:function(a,b){sc.map.uu=w;if(a){sc.e.gK=w;this.sPa();this.G_=sc.map.ej;if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb}var c=this.aka[b.path];c?sc.map.ej=c.floor:sc.map.tlb();this.qma(j);this.xma(j,
w);if(c){this.Bh.x=c.x;this.Bh.y=c.y;sc.e.Fd.x=c.x;sc.e.Fd.y=c.y;sc.e.yd.x=c.BGa;sc.e.yd.y=c.CGa;this.by();this.cursor.moveTo(sc.e.Fd.x,sc.e.Fd.y,w);this.Hx(sc.e.Fd.x,sc.e.Fd.y,j)}this.G_=sc.map.ej;this.qm();this.gj(sc.e.yd.x,sc.e.yd.y,0,KEY_SPLINES.LINEAR);this.Ub.j("DEFAULT");ig.ua.ed(0.2);sc.e.Uhb(b.path)}},sPa:function(){var a=sc.map.zJ();if(a){var b=this.Ub.a,c=this.a,d=a.floors;this.Ub.v(a.width*8,a.height*8);this.Ub.l(c.size.x/2-b.size.x/2,c.size.y/2-b.size.y/2);this.Ub.rg();sc.e.fy.x=b.i.x;
sc.e.fy.y=b.i.y;sc.map.WSa();for(a=0;a<d.length;a++){b=new sc.IXa(d[a],this.o7a.bind(this));this.Ub.m(b)}}},o7a:function(a,b){if(a){var c=b.floor,d=c.landmarks;if(d)for(var m=d.length,n=sc.map.Zh.path;m--;){var o=d[m].id;if(sc.map.QKa(o,n)){o=new sc.dXa(o,d[m],c.level,c.maps[d[m].map]);b.m(o);this.Ba.Uc(o);this.FLa.push(o)}}}},xma:function(a,b){for(var c=this.Ub.a,d=s,m=s,n=c.children,o=n.length;o--;){a&&n[o].T.DQa();if(n[o].T.floor.level==sc.map.ej){d=n[o];m=n[o].T.Fla}}if(ig.input.bb==ig.Gb.Jc){n=
this.Bh;this.oV(n);if(m){n.x=c.i.x+m.i.x+m.size.x/2;n.y=c.i.y+m.i.y+m.size.y/2}else if(d){m=d.T.vq;n.x=c.i.x+c.size.x/2;n.y=c.i.y+d.i.y+d.size.y/2;n.x=c.i.x+m.x+m.width/2;n.y=c.i.y+m.y+m.height/2}else{n.x=c.i.x+c.size.x/2;n.y=c.i.y+c.size.y/2}sc.e.Fd.x=n.x;sc.e.Fd.y=n.y;this.cursor.moveTo(sc.e.Fd.x,sc.e.Fd.y,b,0.3);this.Hx(sc.e.Fd.x,sc.e.Fd.y,j,b?0.2:0);ig.ua.ed(0.3);sc.e.yd.x=Math.floor(-n.x+ig.g.width/2);sc.e.yd.y=Math.floor(-n.y+ig.g.height/2)}else if(m){sc.e.yd.x=-(c.i.x+m.i.x+m.size.x/2)+ig.g.width/
2;sc.e.yd.y=-(c.i.y+m.i.y+m.size.y/2)+ig.g.height/2}else if(d){m=d.T.vq;sc.e.yd.x=-(c.i.x+m.x+m.width/2)+ig.g.width/2;sc.e.yd.y=-(c.i.y+m.y+m.height/2)+ig.g.height/2}else{sc.e.yd.x=-(ig.g.width/2-c.i.x-c.size.x/2);sc.e.yd.y=-(ig.g.height/2-c.i.y-c.size.y/2)}this.qm()},qm:function(){var c=this.Ub.a,d=-sc.e.yd.x,k=c.i.x;sc.e.yd.x=-d.Vb(k-a,k+(c.size.x-a));d=-sc.e.yd.y;k=c.i.y;sc.e.yd.y=-d.Vb(k-b,k+(c.size.y-b))},by:function(){var a=sc.e.Fd.x;sc.e.Fd.x=a.Vb(this.Ub.a.i.x,this.Ub.a.i.x+this.Ub.a.size.x);
var a=sc.e.Fd.y,b=sc.e.Fd.x+sc.e.yd.x;sc.e.Fd.y=a.Vb(this.Ub.a.i.y,this.Ub.a.i.y+this.Ub.a.size.y-(b<181?Math.min(25,181-b):0))},oV:function(a){if(a.x<=-1E4||a.y<=-1E4){for(var b=this.Ub.a,c=s,d=s,m=b.children,n=m.length;n--;)if(m[n].T.floor.level==sc.map.ej){c=m[n];d=m[n].T.Fla}if(d){a.x=b.i.x+d.i.x+d.size.x/2;a.y=b.i.y+d.i.y+d.size.y/2}else if(c){a.x=b.i.x+b.size.x/2;a.y=b.i.y+c.i.y+c.size.y/2}else{a.x=b.i.x+b.size.x/2;a.y=b.i.y+b.size.y/2}}},qma:function(a){if(a){this.zla=this.Ala=this.UM=-sc.map.ej*
8;this.VM=0.3}else{this.Ala=-sc.map.ej*8;this.zla=this.UM;this.VM=0;this.z9=0.3}},xd:function(){sc.e.gK=w;sc.e.Q.Cg(this.Ba);if(sc.e.hra)for(var a=this.Ub.a.children,b=a.length;b--;)a[b].T.DQa();else{this.xma(j);sc.e.hra=j}this.PC=s;this.Wr.fa("");this.G_=sc.map.ej;this.aI=this.ZZ;this.lz=0;if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb}ig.input.bb==ig.Gb.Jc&&this.Hx(sc.e.Fd.x,sc.e.Fd.y,j);this.gj(sc.e.yd.x,sc.e.yd.y,0,KEY_SPLINES.LINEAR);this.j("DEFAULT",w,w,function(){this.lz=
this.aI=0}.bind(this))},Rc:function(){this.PC=s;this.Wr.fa("");sc.e.Q.Lj(this.Ba);sc.e.lj=w;this.Bh.x=sc.e.Fd.x;this.Bh.y=sc.e.Fd.y;this.lz=0;for(var a=this.Ub.a.children,b=a.length;b--;)a[b].T.mbb();this.j("HIDDEN")},ac:function(){sc.K.Na(sc.e,this);this.cursor.ac()},Yb:function(){sc.K.lc(sc.e,this);this.cursor.Yb()},lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.iS)if(this.G_==sc.map.ej){this.xma(w,j);this.gj(sc.e.yd.x,sc.e.yd.y,0.3,KEY_SPLINES.EASE)}else{this.qma(w);ig.input.bb==ig.Gb.Jc&&this.Hx(sc.e.Fd.x,
sc.e.Fd.y,j);this.G_=sc.map.ej}else if(b==sc.ca.jM)if(c){this.PC=s;this.Wr.fa("");this.j("HIDDEN_WORLD");this.cursor.NS=j}else{this.cursor.focus=w;this.cursor.NS=w;ig.input.bb==ig.Gb.Jc&&this.oV(this.Bh);this.j("DEFAULT");ig.input.bb==ig.Gb.Jc?this.Hx(sc.e.Fd.x,sc.e.Fd.y,j):this.Hx(sc.V.to(),sc.V.Vm())}else if(b==sc.ca.eia)this.Vcb(c);else if(b==sc.ca.fZ){this.cursor.focus=w;this.cursor.NS=w}else if(b==sc.ca.hia){if(ig.input.bb==ig.Gb.Jc){sc.e.yd.x=Math.floor(-sc.e.Fd.x+ig.g.width/2);sc.e.yd.y=Math.floor(-sc.e.Fd.y+
ig.g.height/2);this.qm();this.gj(sc.e.yd.x,sc.e.yd.y,0.2,KEY_SPLINES.LINEAR)}sc.e.tc(sc.e.lj.description);this.qjb(sc.e.lj.name)}else b==sc.ca.hZ&&sc.e.tc("",j)}})});ig.G=j;
ig.I("game.feature.menu.gui.map.map-worldmap").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.map.map-misc").H(function(){var a=sc.qd.submit;sc.sTa=ig.Vn.extend({r:new ig.$("media/gui/menu.png"),key:s,Ub:s,qa:1,Dla:w,f9a:0,description:"",f:function(a,c){this.parent(j,w);this.v(16,16);this.rb(8,8);this.key=a;this.Ub=c;this.description=new ig.Oa(this.Ub.description||"");if(this.Ub){this.Dla=a==sc.map.$h.path;this.qa=sc.ML[this.Ub.areaType]*8}},Qb:function(){if(ig.input.bb==
ig.Gb.gm){var b=Math.floor(sc.V.Vm());if(b<=21||b>=299)return}a.play();sc.e.Wqa(this.key)},va:function(a){this.focus&&a.ia(this.r,-3,-2,421,173,21,21).dh("lighter");a.ia(this.r,4,4,328+this.qa,456+(this.Dla?8:0),8,8);if(this.Dla){a.ia(this.r,1,2,304,440,3,3);a.ia(this.r,-11,-8,280,424,16,11)}},PF:function(){if(sc.e.cD&&!ig.ua.Ph()){if(ig.input.bb==ig.Gb.Jc){var a=this.tO();if(sc.e.F3){sc.e.Dwa(this);return w}if(a<=10){a=this.a;sc.e.JHa(a.i.x+Math.floor(a.size.x/2)-1,a.i.y+Math.floor(a.size.y/2)+1,
this,j)}else sc.e.Dwa(this)}else if(ig.input.bb==ig.Gb.gm){var c=Math.floor(sc.V.to()),d=Math.floor(sc.V.Vm()),a=this.a;(c=c>=a.i.x&&c<=a.i.x+a.size.x&&d>=a.i.y&&d<=a.i.y+a.size.y)?sc.e.JHa(a.i.x+Math.floor(a.size.x/2)-1,a.i.y+Math.floor(a.size.y/2)+1,this):sc.e.Dwa(this);return c}return w}},tO:function(){return Math.floor(Vec2.k1(sc.e.Ag.x,sc.e.Ag.y,this.a.i.x+Math.floor(this.a.size.x/2),this.a.i.y+Math.floor(this.a.size.y/2)))}});sc.RXa=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},
HIDDEN:{state:{alpha:0,Ia:1.5,Ma:1.5},time:0.2,p:KEY_SPLINES.LINEAR}},r:new ig.$("media/gui/world-map.png"),ka:s,areas:[],cursor:s,$B:s,Qj:w,Lh:0,Bh:Vec2.pc(-1E4,-1E4),f:function(){this.parent();this.v(ig.g.width,ig.g.height);this.rb(ig.g.width/2,ig.g.height/2);this.ka=new sc.W7;this.ka.UO=j;this.ka.si(function(a){a&&a.data&&sc.e.tc(a.data)}.bind(this));this.ka.Bk(function(){sc.e.tc("",j);this.$B.fa("")}.bind(this));this.ka.Uk=function(){ig.input.bb==ig.Gb.Jc&&(sc.V.Xr()&&sc.e.Ln)&&sc.e.Ln.Qb()}.bind(this);
this.m2a();this.cursor=new sc.pza(j);this.m(this.cursor);this.$B=new sc.$1a;this.m(this.$B);this.j("HIDDEN",j)},update:function(){sc.e.F3=w;if(!ig.ua.Ph()&&this.ka.Tc()){if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb;var a=s;if(ig.input.bb==ig.Gb.Jc){a=this.Bh;this.r_(a);sc.e.Ag.x=a.x;sc.e.Ag.y=a.y;this.FE();sc.e.UOa();sc.e.tc("",j);this.cursor.moveTo(sc.e.Ag.x,sc.e.Ag.y)}else if(ig.input.bb==ig.Gb.gm){this.Bh.x=sc.e.Ag.x;this.Bh.y=sc.e.Ag.y;this.cursor.$p()}sc.e.qga()}if(ig.input.bb==
ig.Gb.Jc){var c=a=0,d=0,e=w;if((d=sc.V.ke(ig.Pc.El))<-0.5){a=(-100+d*100)*ig.g.Da;e=j}else if((d=sc.V.ke(ig.Pc.El))>0.5){a=(100+d*100)*ig.g.Da;e=j}if((d=sc.V.ke(ig.Pc.Fl))<-0.5){c=(-100+d*100)*ig.g.Da;e=j}else if((d=sc.V.ke(ig.Pc.Fl))>0.5){c=(100+d*100)*ig.g.Da;e=j}if(e){sc.e.F3=j;sc.e.Ag.x=a>=0?Math.floor(sc.e.Ag.x+a):Math.ceil(sc.e.Ag.x+a);sc.e.Ag.y=c>=0?Math.floor(sc.e.Ag.y+c):Math.ceil(sc.e.Ag.y+c);this.FE();this.cursor.moveTo(sc.e.Ag.x,sc.e.Ag.y)}}}},va:function(a){a.ia(this.r,0,0,0,0,this.a.size.x,
this.a.size.y)},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},show:function(){this.$B.fa("");var a=this.areas.length;sc.e.kk(this.Og.bind(this));for(sc.e.Q.Cg(this.ka);a--;)this.areas[a].zg();sc.e.UOa();this.cursor.ac();if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb}this.n3a();ig.ua.ed(0.2);this.j("DEFAULT")},hide:function(){this.$B.fa("");this.cursor.$p();sc.e.Q.Lj(this.ka);this.cursor.Yb();this.j("HIDDEN")},n3a:function(){if(sc.e.Uca){var a=this.Bh;
a.x=sc.e.Ag.x;a.y=sc.e.Ag.y;this.FE();this.cursor.moveTo(sc.e.Ag.x,sc.e.Ag.y)}else if(ig.input.bb==ig.Gb.Jc){sc.e.Uca=j;a=this.Bh;this.r_(a);for(var c=sc.map.Zh,d=this.areas.length;d--;){a=this.areas[d];if(a.key==c.path){c=a.a.i.y+Math.floor(8)+1;sc.e.Ag.x=a.a.i.x+Math.floor(8)-1;sc.e.Ag.y=c;this.FE();this.cursor.moveTo(sc.e.Ag.x,sc.e.Ag.y);break}}}},r_:function(a){if(a.x<=-1E4||a.y<=-1E4){a.x=ig.g.width/2;a.y=ig.g.height/2}},FE:function(){var a=sc.e.Ag.x;sc.e.Ag.x=a.Vb(5,ig.g.width-Math.floor(this.cursor.a.size.x/
2));a=sc.e.Ag.y;sc.e.Ag.y=a.Vb(41,ig.g.height-this.cursor.a.size.y-4)},u4a:function(a){var c=a.a.i;this.$B.fa(ig.Oa.wc(a.Ub.name));this.$B.l(c.x+11,c.y-this.$B.a.size.y+5)},m2a:function(){var a=sc.map.areas,c;for(c in a){var d=a[c];if((!d.condition||(new ig.ce(d.condition)).evaluate())&&sc.map.spa(c)){d=this.l2a(c,d);this.m(d)}}},l2a:function(a,c){var d=new sc.sTa(a,c);d.l(c.position.x-8+1,c.position.y-8);this.ka.Uc(d);this.areas.push(d);return d},Og:function(){sc.e.ooa()},lb:function(a,c,d){if(a==
sc.e)if(c==sc.ca.jM)if(d)this.show();else{ig.ua.ed(0.2);sc.e.jk();this.hide()}else if(c==sc.ca.gia){this.u4a(sc.e.Ln);sc.e.tc(sc.e.Ln.description)}else if(c==sc.ca.hZ){this.$B.fa("");sc.e.tc("",j)}else if(c==sc.ca.sM)this.$B.fa("",w,j);else if(c==sc.ca.eia){sc.e.jk();this.hide()}}})});ig.G=j;
ig.I("game.feature.menu.gui.map.map-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.map.map-misc","game.feature.menu.gui.map.map-area","game.feature.menu.gui.map.map-worldmap").H(function(){sc.NXa=sc.bq.extend({mb:s,NJ:s,mA:s,Ub:s,oO:s,eO:s,WI:s,qY:s,QT:s,Aa:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,
p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.mA=new sc.ec("\\i[help3]"+ig.lang.get("sc.gui.menu.hotkeys.center-map"),g,j,sc.Ic.Kc);this.mA.Ul=j;this.mA.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mA.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mA.Qb=this.Udb.bind(this);this.NJ=new sc.ec("\\i[help2]"+ig.lang.get("sc.gui.menu.hotkeys.worldmap"),g,j,sc.Ic.Kc);this.NJ.Ul=j;this.NJ.a.N=
{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.NJ.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.NJ.Qb=this.ofb.bind(this);this.Ub=new sc.GXa;this.m(new sc.eya(this.Ub));this.qY=new sc.RXa;this.m(this.qY);this.oO=new sc.KXa;this.m(this.oO);this.WI=new sc.HXa;this.m(this.WI);this.QT=new sc.wUa;this.m(this.QT);this.eO=new sc.ea("???");this.eO.F(ig.k.za,ig.k.gb);this.eO.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};
this.eO.j("HIDDEN",j);this.m(this.eO);this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this);this.Ub.ac();this.oO.ac();this.qY.ac();this.QT.ac()},Yb:function(){sc.K.lc(sc.e,this);this.Ub.Yb();this.oO.Yb();this.qY.Yb();this.QT.Yb()},xd:function(){this.ac();sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);ig.ua.ed(0.2);this.ek();sc.map.zJ()||this.eO.j("DEFAULT");this.qY.j("HIDDEN",j);this.Ub.xd();this.oO.xd();this.QT.xd();this.WI.j("DEFAULT")},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},
Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.zd(this.mA);sc.e.Q.zd(this.NJ);sc.e.Uca=w;this.Aa=s;this.eO.j("HIDDEN");this.Ub.Rc();this.oO.Rc();this.QT.Rc();this.qY.hide();this.WI.j("HIDDEN")},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},reb:function(){return sc.V.hK()},xeb:function(){return sc.V.ZF()},Udb:function(){this.oO.o6a()},ofb:function(){if(sc.e.cD){sc.e.tc("",j);sc.e.ooa()}else sc.e.F8a()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.map.title"));
this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.map.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Q.md(this.mA,this.reb.bind(this));sc.e.Q.md(this.NJ,this.xeb.bind(this));sc.e.Qi(M("NJ").bind(this));sc.e.Qi(M("mA").bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.jM)if(c){this.mA.setActive(w);this.WI.j("HIDDEN")}else{this.mA.setActive(j);this.WI.j("DEFAULT")}else if(b==
sc.ca.fZ){this.mA.setActive(j);this.WI.update();this.WI.j("DEFAULT")}}})});ig.G=j;
ig.I("game.feature.menu.gui.options.options-misc").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","game.feature.menu.gui.menu-misc").H(function(){sc.YWa=ig.Lf.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},vc:s,button:s,back:s,ka:s,Q:s,xU:s,fma:s,Y2:s,f:function(){this.parent("black");this.a.Ee=j;this.a.zIndex=9001;this.a.Vc=0.9;this.vc=new sc.Cxa(200,60);this.vc.F(ig.k.za,ig.k.gb);
this.vc.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ma:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.m(this.vc);this.button=new sc.ec(ig.lang.get("sc.gui.options.controls.unbind"));this.button.F(ig.k.fb,ig.k.xb);this.button.l(4,6);this.button.Qb=this.lfb.bind(this);this.vc.m(this.button);this.back=new sc.ec(ig.lang.get("sc.gui.options.controls.back"));this.back.F(ig.k.ha,ig.k.xb);this.back.l(4,6);this.back.Qb=this.$eb.bind(this);this.vc.m(this.back);var a=new sc.ea(ig.lang.get("sc.gui.options.controls.anykey"));
a.F(ig.k.za,ig.k.W);a.l(0,6);this.vc.m(a);this.Q=new ig.nr;this.ka=new sc.Wf;this.Q.Cg(this.ka);this.Q.md(this.button,this.hNa.bind(this));this.Q.md(this.back,this.hNa.bind(this));this.j("HIDDEN",j);this.vc.j("HIDDEN",j)},show:function(a,b,c){this.j("DEFAULT");this.vc.j("DEFAULT");if(c){this.button.l(4,6);this.back.F(ig.k.ha,ig.k.xb);this.back.l(4,6)}else{this.button.l(-1E3,-1E3);this.back.F(ig.k.za,ig.k.xb);this.back.l(0,6)}b=Math.max(150,this.button.a.size.x+this.back.a.size.x+12);this.vc.v(b,60);
this.xU=a||s;this.Y2=c;ig.input.Uba=j;ig.ua.de(this.Q);ig.ua.ed(0.2);this.fma=this.Feb.bind(this);window.addEventListener("keydown",this.fma,w)},hide:function(){this.j("HIDDEN");this.vc.j("HIDDEN");ig.ua.ie(this.Q);ig.ua.ed(0.2);window.removeEventListener("keydown",this.fma);this.xU=s;this.Y2=w;ig.input.Uba=w},lfb:function(){if(this.Y2){this.xU&&this.xU(s,this.Y2,j);this.hide()}},$eb:function(){this.hide()},Feb:function(a){a.preventDefault();if(!ig.ua.Ph()&&!this.M3a(a.keyCode)){this.xU&&this.xU(a.keyCode,
this.Y2,w);this.hide()}},hNa:R(w),M3a:function(a){return sc.xt[a]}});sc.KYa=sc.OZ.extend({rFa:new ig.$b("media/gui/buttons.png",{width:8,height:0,left:4,top:9,right:4,bottom:0,Fb:{"default":{x:128,y:84},"default-focus":{x:144,y:84},fill:{x:128,y:72},"fill-focus":{x:144,y:72}}}),fill:w,focus:w,f:function(a,b,c,d){this.parent(a,b,c);this.fill=d!=g?d:w},va:function(a){this.rFa.Xa(a,this.a.size.x,this.a.size.y,this.focus?"default-focus":"default");this.fill&&this.rFa.Xa(a,this.Sn.a.i.x+this.S4/2,this.a.size.y,
this.focus?"fill-focus":"fill")},v:function(a,b){this.a.size.x=a;this.a.size.y=b;this.tfa(j)}});sc.LYa=ig.X.extend({xkb:new ig.$b("media/gui/buttons.png",{width:6,height:0,left:4,top:21,right:4,bottom:0,Fb:{"default":{x:96,y:72},focus:{x:112,y:72}}}),X$:"default",ve:s,kU:w,ztb:w,gRa:0,o9:Vec2.pc(0,0),f:function(a){this.parent();this.ve=a},wu:function(a,b,c){if(!c)if(sc.V.e2()){this.kU=j;this.gRa=this.ve.ve.value;this.o9.x=a;this.o9.y=b}else sc.V.$oa()?this.kU&&this.ve.dNa&&this.ve.dNa(a-this.o9.x,
b-this.o9.y,this.gRa):this.kU=w},va:function(a){this.xkb.Xa(a,this.a.size.x,this.a.size.y,this.X$)}});sc.Kza=ig.Vn.extend({ve:s,Sn:s,Z5:j,w0:s,YFa:sc.qd.submit,A3a:w,f:function(a,b,c){this.parent();this.F(ig.k.za,ig.k.gb);this.Z5=b==g?j:b;this.w0=a||s;this.Sn=new sc.LYa(this);this.ve=new sc.KYa(w,this.Sn,w,c);this.ve.F(ig.k.za,ig.k.gb);this.ve.offset.y=-6;this.ve.Hj.left=2;this.ve.Hj.right=2;this.m(this.ve)},qfa:function(a,b){this.ve.qfa(a,b)},v:function(a,b,c){this.parent(a,b);this.ve.v(a,c||b);
this.ve.tfa(j)},Np:function(a){this.ve.Np(a,j)},M5:function(a,b){this.ve.M5(a,b,j)},r2:function(){return this.ve.value},update:function(){this.parent();if(!ig.input.dd)this.Sn.X$=this.focus?"focus":"default"},Pl:function(){this.focus=j;this.ve.focus=j},zg:function(){this.focus=w;this.ve.focus=w},tma:function(){return!this.Sn.kU},sma:function(){return!this.Sn.kU},wu:function(a,b){this.parent(a,b);if(!ig.ua.Ph()){this.A3a=w;var c=this.a.kf,d=this.Sn.a;if(!d.kf)this.Sn.a.kf={x:0,y:0,uc:d.size.x,Gc:d.size.y};
d.kf.x=c.x+d.i.x-this.ve.offset.x;d.kf.y=c.y+d.i.y-this.ve.offset.y;var c=d.kf,d=sc.V.to(),e=sc.V.Vm();if(c.x<=d&&c.x+c.uc>d&&c.y<=e&&c.y+c.Gc>e||this.Sn.kU){this.Sn.X$="focus";this.Sn.wu(d|0,e|0,b)}else{this.Sn.X$="default";if(b){this.YFa&&this.YFa.play();c=Math.max(0,d-this.a.kf.x);c=Math.round(c/this.ve.a.size.x*this.ve.hab());this.ve.Np(c,j);this.w0&&this.w0(c)}}}},dNa:function(a,b,c){a=this.nB?b:a;b=this.ve;a=(b.Mg-b.eD)*a/b.c6a();b.Np(this.Z5?Math.round(c+a):c+a,j);this.w0&&this.w0(b.value)}})});
ig.G=j;
ig.I("game.feature.menu.gui.options.options-types").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.options.options-misc","game.feature.model.options-model").H(function(){var a=[],b=0,c=0;sc.mS={};sc.mS[sc.nS.BUTTON_GROUP]=ig.X.extend({Mb:s,oa:[],Fk:s,$Da:s,f:function(b,c,h){this.parent();this.Mb=b;var k=b.hw.data;a.length=0;for(var l in k)a.push(k[l]);this.$Da=h;k=Math.floor(c/
a.length);l=s;for(var m,n=0,o=0;o<a.length;o++){m=ig.lang.get("sc.gui.options."+b.Wk+".group")[a[o]];l=o==0?new sc.ec(m,k,j,sc.Ic.Gya,s,j):o==a.length-1?new sc.ec(m,k,j,sc.Ic.Hya,s,j):new sc.ec(m,k,j,sc.Ic.bM,s,j);o==a.length-1&&k*a.length<c?l.FG(k+1):l.FG(k);l.LMa=j;var t=k;if(sc.Ka.font.m2(m,0).x<t-16)m=sc.Ka.font;else if(sc.Ka.Ve.m2(m,0).x<t-16)m=sc.Ka.Ve;else{sc.Ka.Lb.m2(m,0);m=sc.Ka.Lb}m!=l.re.font&&l.re.BQ(m,s);l.Ce=function(a){(this.Bc=a)?this.re.fa("\\c[0]"+this.text):this.re.fa("\\c["+sc.Vo.qr+
"]"+this.text)};l.data={description:b.jG,id:a[o],Yq:b.Yq};l.l(n,3);n=n+l.a.size.x;h.Uc(l,o,b.Yq);this.oa[a[o]]=l;this.m(l)}b=sc.options.get(b.Wk,b.$v);this.Fk=this.oa[b];this.iQ(this.Fk);h.rfa(this.Fk)},iQ:function(a){for(var b=this.oa.length;b--;)this.oa[b]!=a&&this.oa[b].Ce(w)},dn:function(){sc.K.Na(sc.options,this)},th:function(){sc.K.lc(sc.options,this)},lb:function(a,b){if(b==sc.iq.Tw){var c=sc.options.get(this.Mb.Wk,this.Mb.$v);if(this.Fk!=this.oa[c]){this.Fk=this.oa[c];this.iQ(this.Fk);this.$Da.rfa(this.Fk)}}},
pW:function(a){if(this.Fk!=a){this.iQ(a);sc.options.set(this.Mb.Wk,a.data.id,this.Mb.$v);this.Fk=a}}});sc.mS[sc.nS.OBJECT_SLIDER]=ig.X.extend({ve:s,Mb:s,qb:[],En:s,dl:0,f:function(a,b,c){this.parent();this.Mb=a;var k=a.hw.Z5==g?j:a.hw.Z5,l=a.hw.data,m=0,n=0,o;for(o in l){this.qb[m]=l[o];l[o]==sc.options.get(a.Wk,a.$v)&&(n=m);m++}this.dl=n;b=b-4;this.ve=new sc.Kza(this.fsa.bind(this),k,a.hw.fill);this.ve.qfa(Math.floor(b/this.qb.length),21);this.ve.l(0,0);this.ve.M5(0,this.qb.length-1);this.ve.Np(n);
this.ve.v(b-4,21,9);this.ve.data=a.jG;this.m(this.ve);this.En=new sc.Ib(this.qb.length);this.En.F(ig.k.za,ig.k.gb);this.En.sa(n+1,j);this.ve.Sn.m(this.En);c.Uc(this.ve,0,a.Yq)},dn:function(){sc.K.Na(sc.options,this)},th:function(){sc.K.lc(sc.options,this)},lb:function(a,b){if(b==sc.iq.Tw){var c=sc.options.get(this.Mb.Wk,this.Mb.$v);if(c!=this.qb[this.dl]){this.ve.Np(c);this.dl=c;this.En.sa(c+1,j)}}},fsa:function(a){if(a!=this.dl){this.En.sa(a+1,j);this.dl=a;sc.options.set(this.Mb.Wk,this.qb[a],this.Mb.$v)}},
g4:function(a){this.dl=a?this.dl+1:this.dl-1;this.ve.Np(this.dl);this.dl=this.ve.r2();this.En.sa(this.dl+1);sc.options.set(this.Mb.Wk,this.qb[this.dl],this.Mb.$v)}});sc.mS[sc.nS.ARRAY_SLIDER]=ig.X.extend({ve:s,Mb:s,dl:0,scale:0,hkb:0,f:function(a,b,c){this.parent();this.Mb=a;var k=a.hw;this.scale=10;this.hkb=1;var l=k.data,b=b-4;this.ve=new sc.Kza(this.fsa.bind(this),k.Z5,k.fill);this.ve.qfa(10,21);this.ve.M5(l[0]*this.scale,l[1]*this.scale);this.ve.Np(sc.options.get(a.Wk,a.$v)*this.scale);this.ve.v(b-
4,21,9);this.ve.data=a.jG;this.m(this.ve);this.dl=this.ve.r2();c.Uc(this.ve,0,a.Yq)},dn:function(){sc.K.Na(sc.options,this)},th:function(){sc.K.lc(sc.options,this)},lb:function(a,b){if(b==sc.iq.Tw){var c=sc.options.get(this.Mb.Wk,this.Mb.$v)*this.scale;if(this.dl!=c){this.ve.Np(c);this.dl=c}}},fsa:function(a){if(a!=this.dl){this.dl=a;sc.options.set(this.Mb.Wk,a/this.scale,this.Mb.$v)}},g4:function(a){this.dl=a?this.dl+1:this.dl-1;this.ve.Np(this.dl);this.dl=this.ve.r2();sc.options.set(this.Mb.Wk,
this.dl/this.scale,this.Mb.$v)}});sc.mS[sc.nS.CHECKBOX]=ig.X.extend({Mb:s,button:s,f:function(a,b,c){this.parent();this.Mb=a;b=sc.options.get(a.Wk,a.$v);this.button=new sc.VTa(b,30);this.button.F(ig.k.fb,ig.k.gb);this.button.data={description:a.jG,Yq:a.Yq};this.m(this.button);c.Uc(this.button,0,a.Yq)},dn:function(){sc.K.Na(sc.options,this)},th:function(){sc.K.lc(sc.options,this)},pW:function(a){a==this.button&&sc.options.set(this.Mb.Wk,a.Bc)},lb:function(a,b){if(b==sc.iq.Tw){var c=sc.options.get(this.Mb.Wk);
this.button.Bc!=c&&this.button.Ce(c)}}});sc.mS[sc.nS.CONTROLS]=ig.X.extend({EV:s,fT:s,Mb:s,M0:"",f:function(a,b,c){this.parent();this.Mb=a;this.M0=this.Mb.Wk.substr(5);var k=Math.floor(b/2);a.hw.aP?this.Mb.ee.fa("Debug "+this.M0):this.Mb.ee.fa(ig.lang.get("sc.gui.options.controls.keys."+this.M0));this.Mb.jG=ig.lang.get("sc.gui.options.controls.description");var l=sc.options.get(a.Wk),m=l.key1,m=new sc.ec("\\i[keyCode-"+m+"]",k,j,sc.Ic.Gya);m.FG(k);m.data={description:a.jG,Yq:a.Yq};m.l(0,3);this.EV=
m;m=l.key2;m=new sc.ec(m?"\\i[keyCode-"+m+"]":ig.lang.get("sc.gui.options.controls.none"),k,j,sc.Ic.Hya);m.FG(b>k*2?k+1:k);m.data={description:a.jG,Yq:a.Yq};m.l(k,3);this.fT=m;this.m(this.EV);this.m(this.fT);c.Uc(this.EV,0,a.Yq);c.Uc(this.fT,1,a.Yq)},dn:function(){sc.K.Na(sc.options,this)},th:function(){sc.K.lc(sc.options,this)},pW:function(a){a==this.EV?sc.sca.show(this.WMa.bind(this),this.M0,w):a==this.fT&&sc.sca.show(this.WMa.bind(this),this.M0,j)},WMa:function(a,b,c){var k=this.Mb.Wk;sc.options.RF.q6a(k,
a,b,c);a=sc.options.get(k);this.EV.re.fa("\\i[keyCode-"+a.key1+"]");this.fT.re.fa(a.key2?"\\i[keyCode-"+a.key2+"]":ig.lang.get("sc.gui.options.controls.none"))},lb:function(a,b){if(b==sc.iq.wia){var c=sc.options.get(this.Mb.Wk);this.EV.re.fa("\\i[keyCode-"+c.key1+"]");this.fT.re.fa(c.key2?"\\i[keyCode-"+c.key2+"]":ig.lang.get("sc.gui.options.controls.none"))}}});sc.JYa=ig.X.extend({r:new ig.$("media/gui/menu.png"),Yq:-1,Wk:s,hw:s,jG:s,$v:w,TGa:w,ee:s,aH:s,V8:w,f:function(a,b,c,k,l,m){a||f(Error("option entry is null!"));
this.parent();this.v(l||400,m||26);this.$v=k||w;this.Wk=a;this.hw=sc.Kh[this.Wk];this.jG=ig.lang.get("sc.gui.options."+this.Wk+".description");this.Yq=b;this.ee=new sc.ea(ig.lang.get("sc.gui.options."+this.Wk+".name"));this.ee.l(5,4);this.m(this.ee);a=new ig.Lf("#545454",166,1);a.F(ig.k.fb,ig.k.xb);a.l(0,4);this.m(a);b=new ig.Dc(this.r,32,416,8,8);b.F(ig.k.fb,ig.k.xb);b.l(a.a.size.x,3);this.m(b);a=this.a.size.x-175;if(b=sc.mS[sc.nS[this.hw.type]]){this.aH=new b(this,a,c);this.aH.v(a,26);this.aH.F(ig.k.fb,
ig.k.xb);this.aH.l(175,0);this.m(this.aH)}else{c=new sc.ea("Missing Option Type: "+this.hw.type);c.l(175,4);this.m(c)}if(this.hw.GF){this.TGa=j;this.a.size.y=this.a.size.y+17;c=new sc.ea(ig.lang.get("sc.gui.options.headers."+this.hw.qg),{font:sc.Ka.Lb});c.l(2,6);this.m(c);this.ee.l(5,21)}if(this.hw.data==ig.rd.Nd){c=new sc.ea(ig.lang.get("sc.gui.options.text-speed.example"),{speed:sc.options.get(this.Wk)});c.F(ig.k.ha,ig.k.W);c.l(265,4);var n=c.df;n.ufb=this.Wk;n.Qda=0.7;n.jgb=n.update;n.update=function(){n.jgb();
this.Oib(sc.options.get(this.ufb));if(this.ol())if(this.Qda<=0){this.reset();this.Qda=0.7}else this.Qda=this.Qda-ig.g.Da};this.m(c)}this.a.gL(j)},va:function(a){this.TGa&&a.Ec("#545454",0,this.a.size.y-26-1-2,this.a.size.x+2,1)},pW:function(a){this.aH.pW&&this.aH.pW(a)},g4:function(a){return this.aH.g4&&this.aH.g4(a)||j},wu:function(){if(sc.e.Q.Tc()){var a=this.a.kf;b=sc.V.to();c=sc.V.Vm();if(a.x<=b&&a.x+a.uc>b&&a.y<=c&&a.y+a.Gc>c){if(!this.V8){sc.e.tc(this.jG);this.V8=j}}else if(this.V8){sc.e.tc("",
j);this.V8=w}}}})});ig.G=j;
ig.I("game.feature.menu.gui.options.options-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes","game.feature.menu.gui.item.item-list","game.feature.menu.gui.options.options-types").H(function(){sc.sca=s;sc.NYa=ig.X.extend({r:new ig.$("media/gui/menu.png"),list:s,Wh:{eba:s,Sbb:s,Al:s,cob:s,controls:s},Oe:s,RF:s,fd:[],vh:s,Au:s,Fw:[],rows:[],jOa:-1,yea:s,
SKa:w,f:function(a){this.parent();this.v(436,258);this.F(ig.k.za,ig.k.gb);this.SKa=a;this.dc=sc.qd.submit;this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:218},time:0.2,p:KEY_SPLINES.LINEAR}};this.vh=new sc.Wf;this.vh.tk(function(a){if(this.yea!=a){this.dc.play();this.yea=a;a.Ce(j);this.tI(a);this.qz();sc.e.vW=a.data;for(var c=this.fd.length;c--;)if(a==this.fd[c]){this.zs=c;sc.e.ZPa(c);break}ig.input.dd&&sc.e.tc("")}}.bind(this));a=new sc.gq;a.v(436,242);a.l(0,
21);this.m(a);this.Oe=new sc.kM;this.Oe.l(0,29);this.Oe.v(436,228);this.m(this.Oe);a=new ig.Dc(this.r,32,408,5,5);a.l(0,21);this.m(a);a=new ig.Lf("#FF6D00",431,1);a.l(5,21);this.m(a);this.Wh.eba=this.lq("general",0,sc.jd.wt);this.Wh.Sbb=this.lq("interface",1,sc.jd.sn);this.Wh.Al=this.lq("video",2,sc.jd.UZ);this.Wh.controls=this.lq("controls",3,sc.jd.Yh);sc.e.vW=this.Wh.eba.data;this.vh.Mj(0,0);this.Wh.eba.Ce(j);this.yea=this.Wh.eba;this.qz();this.j("HIDDEN",j)},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,
this)},xd:function(){sc.e.Q.aN(this.vh);ig.ua.ed(0.2);this.RF=new sc.YWa;ig.T.Mc(this.RF);sc.sca=this.RF;var a=sc.e.vW;a&&this.h_(a.type,j,ig.input.dd,j);this.j("DEFAULT")},Rc:function(){sc.e.Q.gQ(this.vh);sc.options.WNa();this.list.xi();this.RF.remove();sc.sca=s;this.j("HIDDEN")},h_:function(a,b,c,d){b=b||w;c=c||w;d=d||w;if(this.Fw[this.jOa]){this.list.xi();this.list.j("HIDDEN",j)}var e=sc.e.r4,h=this.Fw[e];if(h){this.list=h.list;this.rows=h.rows;this.Au=h.ka;this.list.vf();this.list.j("DEFAULT",
j);b&&!c&&this.Au.dX(w,d)}else{h={ka:s,list:s,rows:s};this.Au=new sc.e_a;this.Au.Daa=j;this.Au.TQ=j;this.list=new sc.jH(1,1,28);this.list.l(0,29);this.list.v(436,228);this.list.E5(this.Au);this.list.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.m(this.list);this.Au.Kn=this.Kn.bind(this);this.Au.si(function(a){a.data&&sc.e.tc(a.data.description?a.data.description:a.data)}.bind(this));this.Au.tib(function(a,b){return this.rows[b]?
this.rows[b].g4(a):j}.bind(this));this.Au.tk(function(a){a.data&&a.data.Yq!=g&&this.rows[a.data.Yq].pW(a)}.bind(this));this.Au.Uk=this.Uk.bind(this);if(a==sc.jd.Yh)this.Au.Swa=j;this.J2a(a);h.ka=this.Au;h.list=this.list;h.rows=this.rows;this.list.vf();this.Fw[e]=h;this.jOa=e}},J2a:function(a){var b=[],c=s,c=s,d=w,e=0,c=sc.Kh,h;for(h in c){c=sc.Kh[h];d=w;if(c.Sd==a){c.browser?ig.platform==ig.pk.BROWSER&&(d=j):c.Ddb?ig.platform!=ig.pk.BROWSER&&(d=j):d=j;if(d){c=new sc.JYa(h,e,this.Au,this.SKa,431);
this.list.Rd(c,j);b[e]=c;e++}}}this.rows=b},tI:function(a,b){for(var c=0;c<this.fd.length;c++){a!=this.fd[c]&&this.fd[c].Ce(w);if(b)this.fd[c].focus=w}},qz:function(){for(var a=9,b=s,c=0;c<this.fd.length;c++){b=this.fd[c];b.a.i.x=a;a=a+b.a.size.x}},lq:function(a,b,c){a=new sc.BB.XH(ig.lang.get("sc.gui.menu.option."+a),a,90);a.l(0,2);a.setData({type:c});this.m(a);this.vh.Uc(a,b,0);return this.fd[b]=a},Kn:function(){return sc.V.Xr()||sc.V.UA()||sc.V.sA()||sc.V.Fr()||sc.V.ls()||sc.V.Ws()||sc.V.Xs()},
Uk:function(){var a=sc.e.r4,b=this.fd[a],c=-1;sc.V.Xs()?c=1:sc.V.Ws()&&(c=0);if(c>=0){this.dc.play();b.Ce(w);if(c==1){a++;a>=this.fd.length&&(a=0)}else{a--;a<0&&(a=this.fd.length-1)}this.yea=b=this.fd[a];b.Ce(j);this.tI(b,j);this.qz();sc.e.vW=b.data;sc.e.ZPa(a)}},lb:function(a,b){a==sc.e&&b==sc.ca.Gza&&this.h_(sc.e.vW.type,j,ig.input.dd,!ig.input.dd)}})});ig.G=j;
ig.I("game.feature.menu.gui.options.options-menu").J("impact.feature.gui.gui","game.feature.menu.gui.options.options-list").H(function(){sc.MYa=sc.bq.extend({mb:s,QO:s,tu:s,Aa:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);
this.QO=new sc.ec("\\i[help2]"+ig.lang.get("sc.gui.menu.hotkeys.reset-default"),g,j,sc.Ic.Kc);this.QO.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.QO.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.QO.Qb=this.feb.bind(this);this.tu=new sc.NYa(sc.e.Gsa);this.m(this.tu);this.j("DEFAULT",j)},ac:function(){sc.K.Na(sc.e,this);this.tu.ac()},Yb:function(){sc.K.lc(sc.e,this);this.tu.Yb()},xd:function(){this.ac();sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);this.ek();
this.tu.xd()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.zd(this.QO);this.Aa=s;this.tu.Rc()},seb:function(){return sc.V.ZF()},feb:function(){sc.rn.ww(ig.lang.get("sc.gui.dialogs.resetAsk"),sc.qs.U1a,function(a){a.data==0&&sc.options.$gb()}.bind(this))},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.options.title"));
this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.options.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Q.md(this.QO,this.seb.bind(this));sc.e.Qi(M("QO").bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:F()})});ig.G=j;
ig.I("game.feature.menu.gui.shop.shop-start").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.gui.base.button").H(function(){sc.W_a=ig.te.extend({eb:new ig.$b("media/gui/menu.png",{width:16,height:9,left:4,top:4,right:4,bottom:4,Fb:{"default":{x:512,y:457}}}),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetY:10},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_SCALE:{state:{alpha:0,Ia:0},time:0.2,p:KEY_SPLINES.LINEAR}},
wT:s,uQ:s,Ba:s,f:function(){this.parent(162,71);this.F(ig.k.za,ig.k.gb);this.v(162,71);this.l(0,-1);this.Ba=new sc.Wf;this.Ba.tk(this.Qb.bind(this));this.wT=new sc.ec(ig.lang.get("sc.gui.shop.buy"),150);this.wT.F(ig.k.za,ig.k.W);this.wT.l(0,8);this.wT.setData(0);this.m(this.wT);this.uQ=new sc.ec(ig.lang.get("sc.gui.shop.sell"),150);this.uQ.F(ig.k.za,ig.k.xb);this.uQ.l(0,8);this.uQ.setData(1);this.m(this.uQ);if(sc.e.lL)var a=ig.Dj.get("shops")[sc.e.lL];sc.jZ[a.shopType]==sc.jZ.BUY&&this.uQ.setActive(w);
this.Ba.Uc(this.wT,0,0);this.Ba.Uc(this.uQ,0,1);this.j("HIDDEN",j)},show:function(){sc.e.Q.Cg(this.Ba);sc.e.tc("",j);this.j("DEFAULT")},hide:function(a){sc.e.Q.Lj(this.Ba);this.j(a?"HIDDEN_SCALE":"HIDDEN")},Qb:function(a){a.data==0?sc.e.Tua(sc.dv.vxa):a.data==1&&sc.e.Tua(sc.dv.pAa)}});sc.X_a=ig.te.extend({eb:new ig.$b("media/gui/menu.png",{width:16,height:9,left:4,top:4,right:4,bottom:4,Fb:{"default":{x:512,y:457}}}),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetY:-10},
time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_SCALE:{state:{alpha:0,Ia:0},time:0.2,p:KEY_SPLINES.LINEAR}},text:s,f:function(){this.parent(20,20);this.F(ig.k.za,ig.k.W);this.l(0,50);this.text=new sc.ea;this.text.F(ig.k.za,ig.k.gb);this.m(this.text);this.j("HIDDEN",j)},show:function(){var a=ig.Dj.get("shops")[sc.e.lL],a=a?ig.Oa.wc(a.name):"Unknown Shop Name";this.text.fa(" - "+a+" - ");this.v(this.text.a.size.x+12,20);this.j("DEFAULT")},hide:function(a){this.j(a?"HIDDEN_SCALE":"HIDDEN")}})});ig.G=j;
ig.I("game.feature.menu.gui.shop.shop-misc").J("game.feature.inventory.inventory").H(function(){sc.wM={F$a:function(a,b,c){if(sc.e.kn)return sc.q.R.Nr(a);b=b*c;a=Math.min(99,99-sc.q.R.Nr(a));return a=Math.min(a,Math.floor(Math.max(0,sc.q.R.Ud-sc.e.DJ()+b)/c))},Dy:function(a,b){switch(b){case sc.ih.ORDER:a.sort(function(a,b){var e=sc.Pb,h=e.getItem(a.item||a.id),e=e.getItem(b.item||b.id),h=h.order+sc.wM.nba(h.type,h.equipType),e=e.order+sc.wM.nba(e.type,e.equipType);return h-e}.bind(this));break;case sc.ih.NAME:a.sort(function(a,
b){var e=sc.Pb,h=ig.Oa.wc(e.getItem(a.item).name),e=ig.Oa.wc(e.getItem(b.item).name);return h.localeCompare(e)}.bind(this));break;case sc.ih.RARITY:a.sort(function(a,b){var e=sc.Pb,h=e.getItem(a.item),e=e.getItem(b.item);if(h.rarity==e.rarity){h=h.order+sc.wM.nba(h.type,h.equipType);e=e.order+sc.wM.nba(e.type,e.equipType);return h-e}return(h.rarity||0)-(e.rarity||0)}.bind(this))}},nba:function(a,b){switch(a){case "CONS":return-1E4;case "EQUIP":switch(b){case "ARM":return 2E4;case "TORSO":return 3E4;
case "FEET":return 4E4}return 1E4;case "TRADE":return 5E4;case "KEY":return 6E4}}}});ig.G=j;
ig.I("game.feature.menu.gui.shop.shop-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","impact.feature.interact.press-repeater","game.feature.gui.base.boxes","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes","game.feature.menu.gui.shop.shop-misc").H(function(){sc.R_a=sc.gq.extend({Ba:s,Trb:[],list:s,rj:s,NDa:sc.ih.ORDER,Dt:0,kv:0,$Z:s,f:function(){this.parent();this.F(ig.k.ha,ig.k.gb);this.v(252,241);
this.l(5,14);this.rb(126,0);this.a.N={DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-257},time:0.2,p:KEY_SPLINES.LINEAR}};this.list=new sc.bZ(1);this.list.Ed.fa(ig.lang.get("sc.gui.shop.cost"));this.list.Ed.l(60,0);this.list.v(252,230);this.list.l(0,3);this.Ba=this.list.list.ka;this.Ba.si(function(a){if(a.data&&a.data!=1){sc.e.tc(a.data.description?a.data.description:a.data);if(a.data.id){var c=sc.Pb.getItem(a.data.id);c.equipType!=g?sc.e.Bua(a.data.id):sc.e.Yea();
c.isBuff?sc.e.cm(sc.Pb.S1(a.data.id)):sc.e.cm("",w)}else sc.e.Yea()}}.bind(this));this.Ba.Bk(function(){sc.e.tc("",j);sc.e.cm("",j);sc.e.Yea()}.bind(this));this.Ba.tk(this.Veb.bind(this));this.Ba.Kn=function(){return sc.V.Xr()||sc.V.Fr()||sc.V.ls()}.bind(this);this.m(this.list);var a=new sc.ea(ig.lang.get("sc.gui.shop.owned"),{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(5,0);this.list.m(a);this.rj=new ig.vZ;this.j("HIDDEN",j)},update:function(){if(this.Ba.Tc()&&!ig.ua.Ph()){if(this.kv>0){this.kv=this.kv-
ig.g.Da;if(this.kv<=0)this.Dt=this.kv=0}switch(this.Ox()){case "right":this.Ufa();break;case "left":this.Tfa()}}},show:function(){sc.e.kk(this.Og.bind(this));sc.e.Q.Cg(this.Ba);sc.e.kn?this.list.Ed.fa(ig.lang.get("sc.gui.shop.price")):this.list.Ed.fa(ig.lang.get("sc.gui.shop.cost"));sc.e.vw=0;this.Zma(j,ig.input.dd,!ig.input.dd,sc.ih.ORDER);ig.ua.ed(0.2);this.j("DEFAULT")},hide:function(){sc.e.Q.Lj(this.Ba);this.j("HIDDEN")},Ox:function(){sc.V.UA()?this.rj.fs("right"):sc.V.sA()&&this.rj.fs("left");
return this.rj.j2()},u9a:function(){return ig.input.dd?sc.e.Q.qf:this.Ba.KU()},Ufa:function(){this.JFa(1)},Tfa:function(){this.JFa(-1)},JFa:function(a){var b=this.u9a();if(b&&b.Ga&&b.data&&b.data.id){var c=b.data.id,d=b.en,e=sc.e.AO(c,d),h=sc.wM.F$a(c,e,d);if(!(e==0&&a==-1)&&!(e==h&&a==1)){this.KA(a,j);sc.e.wSa(c,e+a,d);b.wQ(e+a,e==0);this.Mwa()}}},KA:function(a,b){this.kv=0.3;if(this.$Z!=a)this.Dt=0;this.$Z=a;this.Dt=Math.min(0.2,this.Dt+0.04);a==1?sc.qd.yQa.play(s,{speed:1+(b?this.Dt:0)}):sc.qd.xQa.play(s,
{speed:1-(b?this.Dt:0)})},Mwa:function(a){for(var b=sc.q.R.Ud-sc.e.DJ(),c=this.list.qp(),d=c.length;d--;){var e=c[d].T;sc.e.kn||(!sc.e.AO(e.data.id,e.en)&&e.en>b?e.setActive(w):e.setActive(j));if(a){e.wQ(0,j);e.zW.sa(sc.q.R.Nr(e.data.id))}}},LSa:function(a){this.Zma(j,ig.input.dd,!ig.input.dd,a||sc.ih.ORDER)},Zma:function(a,b,c,d){a=a||w;b=b||w;c=c||w;this.NDa=d=d||sc.ih.ORDER;this.Ba.clear();this.list.clear(a);var e=s,e=s;if(sc.e.kn){e=sc.Wia[sc.e.vw];e=e.type=="EQUIP"?sc.q.R.vO(e.Laa,w,d):sc.q.R.apa(e.type,
d)}else{e=ig.Dj.get("shops")[sc.e.lL].pages;e=ig.copy(e[sc.e.vw].content);sc.wM.Dy(e,d)}sc.e.kn?this.Hhb(e):this.Ghb(e);if(a){b?this.Ba.Mj(0,0):this.Ba.yf(0,0,w,c);this.list.list.zG(0,j)}this.Ox()},Hhb:function(a){for(var b=s,b=s,c=0,d=0,e=0,h=d=0;h<a.length;h++){var e=a[h],b=sc.Pb.getItem(e),c=sc.q.R.Nr(e),d=Math.floor(b.cost/2),k=new ig.Oa(b.name),k="\\i["+(b.icon+sc.Pb.uo(b.rarity||0)||"item-default")+"]"+ig.Oa.wc(b.name),b=new sc.SAa(k,e,ig.Oa.wc(b.description),c,d);d==0&&b.setActive(w);d=sc.e.AO(e,
d);d>0&&b.wQ(d,j);this.list.Rd(b)}this.Ox()},Ghb:function(a){for(var b=s,b=s,c=0,d=0,e=0,h=0,k=sc.q.R.Ud-sc.e.DJ(),l=0;l<a.length;l++)if(!a[l].condition||(new ig.ce(a[l].condition)).evaluate()){var e=a[l].item,b=sc.Pb.getItem(e),c=sc.q.R.Nr(e),d=a[l].price||b.cost,h=sc.e.AO(e,d),m=new ig.Oa(b.name),m="\\i["+(b.icon+sc.Pb.uo(b.rarity||0)||"item-default")+"]"+ig.Oa.wc(b.name),b=new sc.SAa(m,e,ig.Oa.wc(b.description),c,d);h>0&&b.wQ(h,j);(k<d&&!sc.e.AO(e,d)||c>=99)&&b.setActive(w);this.list.Rd(b)}},Veb:function(a){sc.e.sfb(a)},
Og:function(){sc.e.Zq.length>=1?sc.rn.ww(ig.lang.get("sc.gui.shop.leaveWithCartItems"),sc.qs.WARNING,function(a){a.data==0&&this.OLa()}.bind(this)):this.OLa()},OLa:function(){sc.e.jk();sc.e.Zq.length=0;sc.e.Tua(sc.dv.Gl)}});sc.T_a=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-257},time:0.2,p:KEY_SPLINES.LINEAR}},NP:s,lp:s,Fn:s,f:function(){this.parent();this.F(ig.k.ha,ig.k.W);this.v(158,21);this.l(52,29);this.a.Vc=0.5;this.NP=new sc.ea("");this.NP.F(ig.k.za,
ig.k.gb);this.m(this.NP);this.lp=new sc.ec("\\i[arrow-left]",34,j,sc.Ic.Kc);this.lp.Ul=j;this.lp.l(-27,0);this.lp.Qb=function(){sc.e.kn?this.EGa(-1):this.DGa(-1)}.bind(this);this.m(this.lp);this.Fn=new sc.ec("\\i[arrow-right]",34,j,sc.Ic.Kc);this.Fn.Ul=j;this.Fn.F(ig.k.ha,ig.k.W);this.Fn.l(-27,0);this.Fn.Qb=function(){sc.e.kn?this.EGa(1):this.DGa(1)}.bind(this);this.m(this.Fn);this.j("HIDDEN",j)},va:function(a){a.Ec("#000",0,0,this.a.size.x,this.a.size.y)},show:function(){sc.e.Q.md(this.lp,this.nsa.bind(this),
j);sc.e.Q.md(this.Fn,this.vsa.bind(this),j);this.j("DEFAULT");var a=s;if(sc.e.kn){a=sc.Wia;this.NP.fa(ig.lang.get("sc.gui.shop.sellPages."+a[sc.e.vw].lang))}else{a=ig.Dj.get("shops")[sc.e.lL].pages;this.NP.fa(ig.Oa.wc(a[sc.e.vw].title))}if(a.length==1){this.lp.setActive(w);this.Fn.setActive(w);this.lp.fa("\\i[arrow-left-off]");this.Fn.fa("\\i[arrow-right-off]")}else{this.lp.setActive(j);this.Fn.setActive(j);this.lp.fa("\\i[arrow-left]");this.Fn.fa("\\i[arrow-right]")}},hide:function(){sc.e.Q.zd(this.lp);
sc.e.Q.zd(this.Fn);this.j("HIDDEN")},EGa:function(a){var b=sc.Wia,c=sc.e.vw+a;a<0?c<0&&(c=b.length-1):a>0&&c>=b.length&&(c=0);sc.e.jQa(c);this.NP.fa(ig.lang.get("sc.gui.shop.sellPages."+b[sc.e.vw].lang))},DGa:function(a){var b=ig.Dj.get("shops")[sc.e.lL].pages;if(b.length!=1){var c=sc.e.vw+a;a<0?c<0&&(c=b.length-1):a>0&&c>=b.length&&(c=0);sc.e.jQa(c);this.NP.fa(ig.Oa.wc(b[sc.e.vw].title))}},nsa:function(){return sc.V.Ws()},vsa:function(){return sc.V.Xs()}});sc.SAa=sc.iM.extend({skb:new ig.$("media/gui/menu.png"),
Cn:s,zW:s,count:s,wL:s,f:function(a,b,c,d,e){this.parent(a,142,106,b,c);this.en=e||0;this.zW=new sc.Ib(99,{transitionTime:0.1});this.zW.sa(d,j);this.zW.F(ig.k.ha,ig.k.W);this.zW.l(4,7);this.m(this.zW);this.Cn=new sc.Ib(99999);this.Cn.sa(e,j);this.Cn.F(ig.k.ha,ig.k.W);this.Cn.l(54,7);this.m(this.Cn);this.count=new sc.Ib(99,{noZero:j,transitionTime:0.1});this.count.Te(sc.ef.uH);this.count.sa(0,j);this.count.F(ig.k.ha,ig.k.W);this.count.l(28,7);this.m(this.count);this.wL=new ig.Dc(this.skb,136,448,6,
6);this.wL.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.wL.F(ig.k.ha,ig.k.W);this.wL.l(46,8);this.m(this.wL);this.wL.j("HIDDEN",j)},wQ:function(a,b){this.count.sa(a,b);a>=1?this.wL.j("DEFAULT",j,w):this.wL.j("HIDDEN",j)},Iqa:function(){this.Ij=j;this.Ce(j);this.button.Ij=j;this.button.Ce(j)},zga:function(){this.Ij=w;this.Ce(w);this.button.Ij=w;this.button.Ce(w)}})});ig.G=j;
ig.I("game.feature.trade.trade-model").J("impact.base.game","impact.base.loader","impact.feature.interact.button-interact","impact.feature.database.database","game.feature.model.base-model").H(function(){sc.jv={};sc.jv.rH=0;sc.jv.EYa=1;sc.jv.Zga=2;sc.D8={ORDER:0,FOUND:1};sc.C1a=ig.sf.extend({um:[],Q:s,options:s,Vx:s,aF:s,pJ:-1,visible:w,CL:0,Mva:w,Ssb:w,ZU:w,Cv:{id:-1,KI:s},DC:{id:-1,KI:s},Mz:sc.jv.rH,er:{},fr:{},f:function(){this.parent("Traders");this.Q=new ig.nr;ig.Cc.dg(this);window.Yc&&ig.Dj.dg("traders",
"TradeEnumEditor","Traders");this.er=ig.Dj.get("traders")||{};ig.pa.Gp("traders",this,"VarTradeEditor")},Rq:function(a){var b={},c;for(c in this.fr)b[c]={characterName:this.fr[c].characterName,map:this.fr[c].map.LC(),area:this.fr[c].area.LC(),time:this.fr[c].time||0};a.tradersFound=b},Qq:function(a){a=a.tradersFound||{};this.fr={};for(var b in a)this.fr[b]={characterName:a[b].characterName,map:new ig.Oa(a[b].map||"???"),area:new ig.Oa(a[b].area||"???"),time:a[b].time||0}},wab:function(a){var b=0,
c=0,d;for(d in this.er)if(!this.er[d].noTrack){b=b+(sc.ta.pg("tradersFound",d)||0);c=c+1}return a?b/c:b},vab:function(){var a=0,b;for(b in this.er)this.er[b].noTrack||a++;return a},nj:function(){this.fr={}},On:function(a,b){if(b[0]=="traders"){var c=b[1];if(this.er[c])switch(b[2]){case "name":return ig.Oa.wc(this.er[c].name);case "unlocked":return this.fr[c]}}f(Error("Unsupported var access path: "+a))},Wab:function(a){for(var b in this.er)if(this.er[b].area==a)return j;return w},gbb:function(a){for(var b in this.fr)if(this.er[b].area==
a)return j;return w},AJa:function(){if(sc.map.Uab())for(var a in this.fr)return j;return w},Pkb:function(a,b){if(!this.er[a].noTrack&&!this.fr[a]){this.fr[a]={characterName:b||"",map:sc.map.mIa(),area:sc.map.oIa(),time:(new Date).getTime()};sc.ta.Hua("tradersFound",a,1);sc.ta.cc("trade","tradersTotal",1);sc.e.zI({type:"TRADER",trader:a})}},q2:function(a){return this.er[a]},xab:function(a){return ig.Oa.wc(this.er[a].name)},Woa:function(a){return this.fr[a]},k$a:function(a,b){var c=[],d;for(d in this.fr)this.er[d].noTrack||
(a?this.er[d].area==a&&c.push(d):c.push(d));b!=g&&this.Dy(c,b);return c},Dy:function(a,b){switch(b){case sc.D8.FOUND:a.sort(function(a,b){return(this.fr[b].time||0)-(this.fr[a].time||0)}.bind(this));break;case sc.D8.ORDER:a.sort(function(a,b){return(this.er[a].order||0)-(this.er[b].order||0)}.bind(this))}},aoa:function(a){ig.ua.de(this.Q);this.options=a||s;this.visible=j},M8a:function(){ig.ua.ie(this.Q);this.options=s;this.Mva=this.ZU=this.visible=w;this.Cv.id=-1;this.DC.id=-1;this.Mz=sc.jv.rH;this.CL=
0},waa:function(a){sc.ta.cc("trade","total",1);for(var b=this.options[this.CL],c=sc.q.R,d=b.require,e=d.length;e--;)c.removeItem(d[e].id,d[e].amount);sc.ta.cc("trade","lost",d.length);d=b.get;for(e=d.length;e--;)c.bx(d[e].id,d[e].amount,j);c.Ita(a,j);sc.ta.cc("trade","moneyLost",a);sc.ta.cc("trade","got",d.length);sc.K.wa(this,sc.Yo.nBa)},DPa:function(a,b){var c=sc.q.R.Wb;switch(b){case sc.Of.HEAD:this.d_(this.Cv,a,c.head,sc.Zc.HEAD);break;case sc.Of.ARM:this.d_(this.Cv,a,c.di,sc.Zc.LEFT_ARM);this.d_(this.DC,
a,c.ki,sc.Zc.RIGHT_ARM);break;case sc.Of.TORSO:this.d_(this.Cv,a,c.Jh,sc.Zc.TORSO);break;case sc.Of.FEET:this.d_(this.Cv,a,c.mh,sc.Zc.FEET)}},TFa:function(){this.Cv.id=-1;this.DC.id=-1;this.ZU=w},Mkb:function(){var a=sc.q.R;if(this.Cv.id>=0)if(this.Cv.id==this.DC.id&&this.Cv.KI==this.DC.KI){a.AQ(this.Cv.KI,-1);a.AQ(this.DC.KI,-1);this.Cv.id=-1;this.DC.id=-2}else{a.AQ(this.Cv.KI,-1);this.Cv.id=-1}if(this.DC.id>=0){a.AQ(this.DC.KI,-1);this.DC.id=-1}this.ZU=w},Shb:function(a){(a<0||a>=this.options.length)&&
f(Error("No such active offer at index: "+a));this.CL=a;sc.K.wa(this,sc.Yo.Dza)},S9a:function(){return this.options[this.CL]},u0:function(){for(var a=this.options[this.CL],b=sc.q.R,c=a.require,d=c.length;d--;)if(b.OU(c[d].id)<c[d].amount)return w;for(var c=a.get,d=c.length,e=w,h=0;d--;){b.OU(c[d].id)<99&&(e=j);a.cost==g&&(h=h+sc.Pb.getItem(c[d].id).cost*(c[d].amount||1))}h=a.cost!=g?a.cost:Math.floor((h||1)*(a.scale||1));b.Ud-h<0&&(e=w);return e},tc:function(a,b){this.Vx=a;sc.K.wa(this,sc.Yo.bz,b)},
cm:function(a,b){this.aF=a;sc.K.wa(this,sc.Yo.AY,b)},zQ:function(a,b){this.pJ=a;this.Mz=sc.jv.rH;sc.K.wa(this,sc.Yo.mya,b)},eSa:function(){if(!(this.pJ<=-1)){this.Mva=!this.Mva;this.Mz=sc.Pb.getItem(this.pJ).equipType==sc.Of.ARM?(this.Mz+1)%3:this.Mz==sc.jv.rH?sc.jv.Zga:sc.jv.rH;sc.K.wa(this,sc.Yo.Oxa)}},d_:function(a,b,c,d){if(b==c){a.id=b;a.KI=d}}});sc.A1a=ig.ra.extend({key:"",Fi:s,rp:s,event:s,P:s,f:function(a,b){this.key=a.trader;this.Fi=sc.Db.q2(this.key)||{};this.P=b;if(!window.Yc)this.rp=new sc.z1a(this.key);
var c=a.event;c||(c={name:"NPC EVENT",steps:[{type:"START_NPC_TRADE_MENU"}]});this.event=new ig.Ra(c)},Gva:function(){sc.q.w8a();sc.Db.Pkb(this.key,this.P.UI);var a=new sc.B1a(this.Fi);ig.T.Mc(a);a.aoa()},Qa:function(){this.event.Qa();this.rp=s}});sc.Yo={};sc.Yo.Dza=0;sc.Yo.bz=1;sc.Yo.AY=2;sc.Yo.mya=3;sc.Yo.Oxa=4;sc.Yo.nBa=5;ig.wf(function(){return sc.Db=new sc.C1a})});ig.G=j;
ig.I("game.feature.trade.gui.equip-toggle-stats").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.trade.trade-model").H(function(){sc.vBa=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:-10},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",{width:8,height:8,left:8,top:8,right:8,bottom:8,Fb:{"default":{x:456,y:280},changes:{x:480,y:280}}}),Nb:{Fh:s,rq:s,
zq:s,Fq:s,EC:s,oC:s,BD:s,YD:s},pl:{},JT:s,$I:s,F6:8,r3:4,f:function(a,b){this.parent(176,266);this.l(2,27);this.a.Vc=0.9;this.F6=a==g?8:a;this.r3=b==g?4:b;this.mz();this.j("HIDDEN",j)},va:function(a){this.parent(a);a.Ec("#7E7E7E",2,12,this.a.size.x-4,1);a.Ec("#7E7E7E",2,38,this.a.size.x-4,1);a.Ec("#7E7E7E",2,162,this.a.size.x-4,1)},xd:function(){sc.K.lc(sc.Db,this);sc.K.Na(sc.Db,this)},Ti:function(){sc.K.lc(sc.Db,this);this.j("HIDDEN")},gEa:function(a){if(sc.Db.pJ<0){this.Os()&&this.a.fj=="DEFAULT"&&
(a=0);this.j("HIDDEN",w,w,s,a||0)}else{this.uI(sc.Db.pJ);this.j("DEFAULT")}},o3a:function(a){switch(a){case "HEAD":return"item-helm";case "ARM":return"item-sword";case "TORSO":return"item-belt";case "FEET":return"item-shoe"}},uI:function(a){this.rz();var b=s,c=sc.Pb.getItem(a),a=s,d=ig.lang.get("sc.gui.trade.compare")+" ";if(sc.Db.Mz==sc.jv.Zga){b=-1;d=d+ig.lang.get("sc.gui.trade.compareBASE");this.$I.fa("\\i[help4]-----------------")}else{switch(c.equipType){case sc.Of.HEAD:b=sc.q.R.Wb.head;d=d+
ig.lang.get("sc.gui.trade.compareHEAD");break;case sc.Of.ARM:if(sc.Db.Mz==sc.jv.EYa){b=sc.q.R.Wb.di;d=d+ig.lang.get("sc.gui.trade.compareARMLeft")}else{b=sc.q.R.Wb.ki;d=d+ig.lang.get("sc.gui.trade.compareARMRight")}break;case sc.Of.TORSO:b=sc.q.R.Wb.Jh;d=d+ig.lang.get("sc.gui.trade.compareTORSO");break;case sc.Of.FEET:b=sc.q.R.Wb.mh;d=d+ig.lang.get("sc.gui.trade.compareFEET")}if(b>=0){var a=sc.Pb.getItem(b),e;e="\\i[help4]"+("\\i["+(a.icon+sc.Pb.uo(a.rarity||0)||"item-default")+"]");e=e+ig.Oa.wc(a.name);
this.$I.fa(e)}else this.$I.fa("\\i[help4]\\i["+this.o3a(c.equipType)+"]-----------------")}this.JT.fa(d);d=c.params;e=this.kq(b,"hp",d.hp||0);this.Nb.Fh.bh(e);e=this.kq(b,"attack",d.attack||0);this.Nb.rq.bh(e);e=this.kq(b,"defense",d.defense||0);this.Nb.zq.bh(e);e=this.kq(b,"focus",d.focus||0);this.Nb.Fq.bh(e);e=this.kq(b,"elemFactor",d.elemFactor?d.elemFactor[0]:1,0);this.Nb.EC.bh(e);e=this.kq(b,"elemFactor",d.elemFactor?d.elemFactor[1]:1,1);this.Nb.oC.bh(e);e=this.kq(b,"elemFactor",d.elemFactor?
d.elemFactor[2]:1,2);this.Nb.BD.bh(e);e=this.kq(b,"elemFactor",d.elemFactor?d.elemFactor[3]:1,3);this.Nb.YD.bh(e);if(c=c.properties){var a=a?a.properties||{}:{},d=166,h;for(h in this.pl)if(c[h]!=g){this.pl[h].j("DEFAULT",j);if(a[h]){this.pl[h].bh(this.b_(b,h,c[h]));this.pl[h].Am(a[h],j)}else this.pl[h].bh(Math.round((c[h]||0)*100-100)/100);this.pl[h].l(this.r3,d);d=d+16}else if(a[h]!=g){this.pl[h].j("DEFAULT",j);this.pl[h].bh(this.b_(b,h,1));this.pl[h].Am(a[h],j);this.pl[h].l(this.r3,d);d=d+16}else this.pl[h].j("HIDDEN",
j)}},w4a:function(){var a=s,a=sc.Db.Mz==sc.jv.Zga?sc.q.R.Nb:sc.q.R.Bv;this.Nb.Fh.Am(a.hp);this.Nb.rq.Am(a.attack);this.Nb.zq.Am(a.defense);this.Nb.Fq.Am(a.focus);this.Nb.EC.Am(a.elemFactor[0]);this.Nb.oC.Am(a.elemFactor[1]);this.Nb.BD.Am(a.elemFactor[2]);this.Nb.YD.Am(a.elemFactor[3])},rz:function(){for(var a in this.Nb)this.Nb[a].bh(0);this.w4a();for(var b in this.pl){this.pl[b].bh(0);this.pl[b].j("HIDDEN",j)}},Jnb:function(a){this.H_();a<0||sc.Pb.getItem(a)},kq:function(a,b,c,d){if(a<0){d!=g&&(c=
(Math.floor(c*100)-100)/100);return c}if((a=sc.Pb.getItem(a))&&a.params&&a.params[b]){var e=0;if(d!=g){e=a.params[b][d]||0;c=(Math.floor(c*100)-Math.floor(e*100))/100}else{e=a.params[b]||0;c=c-e}}else d!=g&&(c=(Math.floor(c*100)-100)/100);return c},b_:function(a,b,c,d){if(a<0)return c=(Math.round(c*100)-100)/100;if(d){b=a[b]||1;return c=(Math.round(b*100)-Math.round(c*100))/100}a=sc.Pb.getItem(a).properties;b=a[b]!=g?a[b]:1;return c=(Math.round(c*100)-Math.round(b*100))/100},mz:function(){var a=this.r3,
b=5;this.JT=new sc.ea(ig.lang.get("sc.gui.trade.compare"),{font:sc.Ka.Lb});this.JT.l(this.F6,b);this.m(this.JT);this.$I=new sc.ea("");this.$I.l(this.F6-2,b+8);this.m(this.$I);var b=b+26,c=new sc.ea(ig.lang.get("sc.gui.trade.stats"),{font:sc.Ka.Lb});c.l(this.F6,b);this.m(c);b=41;c=sc.q.R.Bv;this.Nb.Fh=this.Ni(a,b,"maxhp",0,0,w,9999,c.hp);b=b+14;this.Nb.rq=this.Ni(a,b,"atk",0,1,w,999,c.attack);b=b+14;this.Nb.zq=this.Ni(a,b,"def",0,2,w,999,c.defense);b=b+14;this.Nb.Fq=this.Ni(a,b,"foc",0,3,w,999,c.focus);
b=b+16;this.Nb.EC=this.Ni(a,b,"res",1,4,j,999,c.elemFactor[0],0);b=b+14;this.Nb.oC=this.Ni(a,b,"res",2,5,j,999,c.elemFactor[1],1);b=b+14;this.Nb.BD=this.Ni(a,b,"res",3,6,j,999,c.elemFactor[2],2);b=b+14;this.Nb.YD=this.Ni(a,b,"res",4,7,j,999,c.elemFactor[3],3);b=b+14;c=new sc.ea(ig.lang.get("sc.gui.trade.modifier"),{font:sc.Ka.Lb});c.l(this.F6,b);this.m(c);for(var d in sc.Me){a=sc.Me[d];a=this.Ni(this.r3,0,"modifier."+d,5,a.qa,j,200,1,g,a.dG||w);a.j("HIDDEN",j);this.pl[d]=a}},Ni:function(a,b,c,d,e,
h,k,l,m,n){c=new sc.w8(ig.lang.get("sc.gui.menu.equip."+c),d,e,h,k,s,n);c.l(a,b);c.Am(l,j);this.m(c);return c},lb:function(a,b,c){a==sc.Db&&(b==sc.Yo.mya?this.gEa(c?0.5:0):b==sc.Yo.Oxa&&this.gEa(0))}})});ig.G=j;
ig.I("game.feature.menu.gui.shop.shop-stats").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.trade.gui.equip-toggle-stats").H(function(){sc.Q_a=sc.vBa.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-181},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",{width:5,height:5,left:5,top:5,right:5,bottom:5,Fb:{"default":{x:116,y:425}}}),f:function(){this.parent(4,0);this.l(5,29);this.a.size.x=169;
this.a.size.y=this.a.size.y-1;this.a.Vc=1;this.JT.fa(ig.lang.get("sc.gui.trade.nothing"));this.$I.fa(ig.lang.get("sc.gui.shop.noEquip"));this.j("HIDDEN",j)},va:function(a){this.parent(a);a.Ec("#7E7E7E",0,12,this.a.size.x,1);a.Ec("#7E7E7E",0,38,this.a.size.x,1);a.Ec("#7E7E7E",0,162,this.a.size.x,1)},NSa:function(){this.uI(sc.Db.pJ)},reset:function(){this.JT.fa(ig.lang.get("sc.gui.trade.nothing"));this.$I.fa(ig.lang.get("sc.gui.shop.noEquip"));this.rz()},show:function(){this.j("DEFAULT")},hide:function(){this.j("HIDDEN")}})});
ig.G=j;
ig.I("game.feature.menu.gui.shop.shop-cart").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box").H(function(){sc.N_a=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ia:0},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",{width:16,height:9,left:4,top:4,right:4,bottom:4,Fb:{"default":{x:512,y:457}}}),GN:s,value:s,TA:s,Kz:s,f:function(){this.parent(125,88);this.F(ig.k.fb,ig.k.xb);this.l(180,
26);var a=5,b=new sc.ea(ig.lang.get("sc.gui.shop.cart"),{font:sc.Ka.Lb});b.l(4,a);this.m(b);a=a+13;this.GN=new sc.sja(ig.lang.get("sc.gui.shop.credits")+":");this.GN.l(0,a);this.m(this.GN);a=a+13;this.value=new sc.sja(ig.lang.get("sc.gui.shop.cost")+":");this.value.l(0,a);this.value.yc.Mra=j;this.value.SJa=j;this.value.yc.Bfa=j;this.value.yc.Te(sc.ef.hm);this.m(this.value);a=a+16;this.TA=new sc.sja(ig.lang.get("sc.gui.shop.rest")+":");this.TA.l(0,a);this.m(this.TA);this.Kz=new sc.ec("\\i[help2]"+
ig.lang.get("sc.gui.shop.checkout"));this.Kz.Qb=this.Wdb.bind(this);this.Kz.F(ig.k.ha,ig.k.xb);this.Kz.l(3,3);this.m(this.Kz);this.j("HIDDEN",j)},QOa:function(a){var b=sc.q.R.Ud;this.GN.sa(b,a);this.value.sa(0,a);this.TA.sa(b,a);b<0?this.TA.yc.Te(sc.ef.hm):this.TA.yc.Te(sc.ef.$o);this.Kz.setActive(w)},Iga:function(a){var b=a||0;if(a==g){for(var a=sc.e.Zq,c=a.length;c--;)b=b+a[c].en*a[c].zb;this.value.sa(-b)}a=0;if(sc.e.kn){this.value.yc.Te(sc.ef.uH);a=sc.q.R.Ud+b;this.value.sa(b)}else{a=sc.q.R.Ud-
b;this.value.yc.Te(sc.ef.hm);this.value.sa(-b)}this.TA.sa(a);this.value.yc.KQ=sc.e.kn&&b;if(a<0){this.TA.yc.Te(sc.ef.hm);this.Kz.setActive(w)}else{sc.e.Zq.length==0?this.Kz.setActive(w):this.Kz.setActive(j);this.TA.yc.Te(sc.ef.$o)}},va:function(a){this.parent(a);a.Ec("#7E7E7E",0,12,this.a.size.x,1);a.Ec("#FFF",3,42,this.a.size.x-6,1)},show:function(){this.QOa(j);if(sc.e.kn){this.value.text.fa(ig.lang.get("sc.gui.shop.profit")+":");this.TA.text.fa(ig.lang.get("sc.gui.shop.total")+":")}else{this.value.text.fa(ig.lang.get("sc.gui.shop.cost")+
":");this.TA.text.fa(ig.lang.get("sc.gui.shop.rest")+":")}sc.e.Q.md(this.Kz,this.Vdb.bind(this),j);this.j("DEFAULT")},hide:function(){sc.e.Q.zd(this.Kz);this.j("HIDDEN")},Wdb:function(){sc.e.qfb()},Vdb:function(){return sc.V.ZF()}});sc.sja=ig.X.extend({r:new ig.$("media/gui/menu.png"),text:s,yc:s,SJa:w,f:function(a){this.parent();this.F(ig.k.ha,ig.k.W);this.v(120,8);this.text=new sc.ea(a,{font:sc.Ka.Lb});this.text.l(0,0);this.m(this.text);this.yc=new sc.Ib(9999999,{transitionTime:0.1});this.yc.l(41,
0);this.m(this.yc)},va:function(a){this.SJa||a.ia(this.r,this.a.size.x-13,0,490,224,10,8)},sa:function(a,b){this.yc.sa(a,b)}})});ig.G=j;
ig.I("game.feature.menu.gui.shop.shop-quantity").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","impact.feature.interact.gui.focus-gui").H(function(){var a={x:584,y:352,yc:1,sKa:2,zda:-2},b={x:584,y:352,yc:-1,sKa:-2,zda:-2,Jdb:1,yi:j},c={x:621,y:352,yc:10,rKa:-2,zda:3},d={x:621,y:352,yc:-10,rKa:2,zda:-3,Dd:j};sc.V_a=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,Ia:0.2,Ma:0},time:0.2,p:KEY_SPLINES.LINEAR}},
eb:new ig.$b("media/gui/menu.png",{width:6,height:6,left:9,top:9,right:9,bottom:9,Fb:{"default":{x:480,y:304}}}),Ba:s,nta:s,N0:s,RI:s,NI:s,OI:s,QI:s,Ed:s,Cn:s,submit:s,Hea:s,oca:s,Ga:w,Sva:s,rN:s,vn:0,RS:99,xs:s,Dt:0,kv:0,$Z:s,rj:s,f:function(e,k){this.parent();this.v(247,83);this.rb(0,0);this.a.zIndex=1500;this.a.Ee=j;this.a.y5=j;this.Sva=e||s;this.rN=k||s;this.Ba=new sc.Wf;this.Ba.Kn=function(){return sc.V.Xr()}.bind(this);this.nta=new sc.ea(ig.lang.get("sc.gui.shop.quantity"),{font:sc.Ka.Lb});
this.nta.l(10,11);this.m(this.nta);this.N0=new sc.ea(ig.lang.get("sc.gui.shop.cost"),{font:sc.Ka.Lb});this.N0.l(147,11);this.m(this.N0);this.Cn=new sc.Ib(9999999,{transitionTime:0.1,signed:j});this.Cn.l(174,10);this.m(this.Cn);this.Hea=new sc.TAa(91,w);this.Hea.l(9,18);this.Hea.show(j);this.m(this.Hea);this.oca=new sc.TAa(91,j);this.oca.l(142,18);this.oca.show(j);this.m(this.oca);this.Ed=new sc.Ib(99,{transitionTime:0.1,leadingZeros:2});this.Ed.l(116,38);this.m(this.Ed);this.RI=this.E9(a,106,4);this.NI=
this.E9(b,106,44);this.QI=this.E9(c,126,24);this.OI=this.E9(d,86,24);this.submit=new sc.ec(ig.lang.get("sc.gui.shop.submit"),84);this.submit.F(ig.k.ha,ig.k.xb);this.submit.l(4,4);this.m(this.submit);this.Ba.Uc(this.submit,0,0);this.Ba.tk(function(){this.hide();this.xs.wQ(this.vn);this.Sva&&this.Sva(this.xs,this.vn)}.bind(this));this.rj=new ig.vZ(0.3,0.1);this.j("HIDDEN",j)},update:function(){if(this.Ba.Tc()&&!ig.ua.Ph()){if(this.kv>0){this.kv=this.kv-ig.g.Da;if(this.kv<=0)this.Dt=this.kv=0}switch(this.Ox()){case "up":this.RI.Qb(j);
break;case "down":this.NI.Qb(j);break;case "right":this.QI.Qb(j);break;case "left":this.OI.Qb(j)}}},Ox:function(){sc.V.ls()?this.rj.fs("up"):sc.V.Fr()?this.rj.fs("down"):sc.V.UA()?this.rj.fs("right"):sc.V.sA()&&this.rj.fs("left");return this.rj.j2()},E9:function(a,b,c){var d=new sc.U_a(a);d.Ul=j;d.l(b,c);d.Qb=function(){var b=this.vn;this.vn=(this.vn+a.yc).Vb(0,this.RS);if(b!=this.vn){this.Ed.sa(this.vn);this.zSa();this.KA(a,j);d.focus||d.Jd()}else sc.qd.xx.play();sc.e.Pwa(this.xs.data.id,this.vn,
this.xs.en);this.ASa(this.vn)}.bind(this);this.m(d);return d},zSa:function(){var a=this.vn*this.xs.en;this.Cn.sa(sc.e.kn?a:-a);this.Cn.KQ=sc.e.kn&&a;a?this.Cn.Te(sc.e.kn?sc.ef.uH:sc.ef.hm):this.Cn.Te(sc.ef.$o)},ASa:function(a){this.RI.Te(sc.ef.$o);this.NI.Te(sc.ef.$o);this.QI.Te(sc.ef.$o);this.OI.Te(sc.ef.$o);if(a==this.RS){this.RI.Te(sc.ef.qr);this.QI.Te(sc.ef.qr)}if(a<=0){this.NI.Te(sc.ef.qr);this.OI.Te(sc.ef.qr)}},KA:function(b,d){this.kv=0.3;if(this.$Z!=b)this.Dt=0;this.$Z=b;this.Dt=Math.min(0.2,
this.Dt+0.04);b==a||b==c?sc.qd.yQa.play(s,{speed:1+(d?this.Dt:0)}):sc.qd.xQa.play(s,{speed:1-(d?this.Dt:0)})},show:function(a,b,c){if(!this.Ga){this.l(b,c);sc.e.kk(this.Og.bind(this));sc.e.Q.Cg(this.Ba);sc.e.Q.md(this.RI,this.mfb.bind(this),j);sc.e.Q.md(this.NI,this.keb.bind(this),j);sc.e.Q.md(this.QI,this.afb.bind(this),j);sc.e.Q.md(this.OI,this.Heb.bind(this),j);sc.e.kn?this.N0.fa(ig.lang.get("sc.gui.shop.profit")):this.N0.fa(ig.lang.get("sc.gui.shop.cost"));this.RI.show();this.NI.show();this.QI.show();
this.OI.show();this.Dt=0;this.xs=a;var b=this.xs.en,c=sc.e.AO(this.xs.data.id,b),d=c*b;if(sc.e.kn)this.RS=sc.q.R.Nr(a.data.id);else{this.RS=Math.min(99,99-sc.q.R.Nr(a.data.id));this.RS=Math.min(this.RS,Math.floor(Math.max(0,sc.q.R.Ud-sc.e.DJ()+d)/b))}this.vn=c||1;this.xs.wQ(c,j);this.ASa(this.vn);this.Ed.sa(this.vn,j);this.zSa();sc.e.Pwa(this.xs.data.id,this.vn,this.xs.en);ig.ua.ed(0.1);this.Ox();this.Ga=j;this.j("DEFAULT")}},hide:function(){if(this.Ga){sc.e.jk();sc.e.Q.Lj(this.Ba);sc.e.Q.zd(this.RI);
sc.e.Q.zd(this.NI);sc.e.Q.zd(this.QI);sc.e.Q.zd(this.OI);this.RI.hide();this.NI.hide();this.QI.hide();this.OI.hide();this.Ga=w;if(ig.input.dd){sc.e.tc("",j);sc.e.cm("",w);sc.e.Yea()}this.j("HIDDEN")}},Og:function(){this.hide();this.xs.wQ(sc.e.AO(this.xs.data.id,this.xs.en),j);sc.e.Pwa();this.rN&&this.rN(this.xs)},mfb:R(w),keb:R(w),afb:R(w),Heb:R(w)});var e=Math.floor(17.5);sc.U_a=ig.Vn.extend({r:new ig.$("media/gui/menu.png"),direction:a,JF:0,yc:s,f:function(b){this.parent();this.v(35,35);this.direction=
b||a;this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{offsetX:this.direction.rKa||0,offsetY:this.direction.sKa||0},time:0.2,p:KEY_SPLINES.LINEAR}};this.yc=new sc.Ib(99,{size:sc.uf.Kc,signed:j,showPlus:j});this.yc.F(ig.k.za,ig.k.gb);this.yc.sa(b.yc);this.yc.l(b.zda||0,b.Jdb||0);this.m(this.yc)},Te:function(a){this.yc.Te(a)},Jd:function(){this.JF=0.4},show:function(){this.JF=0;this.j("HIDDEN",j);this.j("DEFAULT",w,w,s,0.1)},hide:function(){this.j("HIDDEN")},update:function(){if(this.JF>
0){this.JF=this.JF-ig.g.Da;if(this.JF<=0)this.JF=0}},va:function(a){a.ia(this.r,0,0,this.direction.x,this.direction.y+(this.focus?36:0),35,35,this.direction.Dd,this.direction.yi);if(this.JF>0){var b=(this.JF/0.4).Vb(0,1);a.ia(this.r,0,0,this.direction.x,this.direction.y+36,35,35,this.direction.Dd,this.direction.yi).wd(b)}},PF:function(){if(ig.ua.Ph())return w;var a=Math.floor(this.a.kf.x),b=Math.floor(this.a.kf.y),c=Math.floor(sc.V.to()),d=Math.floor(sc.V.Vm());return Math.abs(c-(e+a))+Math.abs(d-
(e+b))<=e}});sc.TAa=ig.X.extend({xjb:s,Ld:s,HF:w,f:function(a,b){this.parent();this.v(a+5,5);this.eg=new sc.x8(5,b,w,sc.TH.yUa);this.m(this.eg);this.Ld=new ig.Lf("#7E7E7E",a,1);this.Ld.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{Ia:0},time:0.1,p:KEY_SPLINES.LINEAR}};this.m(this.Ld);if(b){this.eg.l(0,5);this.Ld.l(5,0);this.Ld.rb(0,0)}else{this.eg.l(a+5,5);this.Ld.l(0,0);this.Ld.rb(a,0)}this.eg.hide();this.Ld.j("HIDDEN",j)},show:function(a){if(!this.HF)if(a){this.eg.show(0);
this.Ld.j("DEFAULT",j)}else{this.eg.hide();this.eg.show(0.1);this.Ld.j("HIDDEN",j);this.Ld.j("DEFAULT",w,w,s,0.1);this.HF=j}},hide:function(a){if(this.HF){this.eg.hide(a?0:0.1,a?0:0.1);this.Ld.j("HIDDEN",a);this.HF=w}}})});ig.G=j;
ig.I("game.feature.menu.gui.shop.shop-confirm").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.gui.widget.modal-dialog","game.feature.menu.gui.shop.shop-misc").H(function(){sc.O_a=sc.sza.extend({Uma:s,rN:s,list:s,s3:s,f:function(a,b){this.parent(ig.lang.get("sc.gui.shop.confirmBuy"),s,[ig.lang.get("sc.gui.shop.buy"),ig.lang.get("sc.gui.shop.cancel")],
this.jeb.bind(this));this.ge.Hz.a.Vc=1;this.Va.F(ig.k.za,ig.k.W);this.Uma=a||s;this.rN=b||s;var c=this.content.a.size.y,d=this.Va.a.size.y+1;this.s3=new ig.X;this.list=new sc.RH(sc.Hl.kz);this.list.uh(this.s3);this.list.v(250,138);this.list.l(0,d);this.content.m(this.list);this.content.v(250,138+c);this.ge.l(0,-11);this.ge.resize();this.oa[0].dc=sc.qd.djb},update:function(){this.parent();this.Q.Tc()&&this.Ba.Tc()&&(sc.V.aW()?this.list.scrollY(-17):sc.V.$V()&&this.list.scrollY(17))},show:function(){if(sc.e.kn){this.Va.fa(ig.lang.get("sc.gui.shop.confirmSell"));
this.oa[0].fa(ig.lang.get("sc.gui.shop.sell"),j)}else{this.Va.fa(ig.lang.get("sc.gui.shop.confirmBuy"));this.oa[0].fa(ig.lang.get("sc.gui.shop.buy"),j)}this.ana();this.parent()},ana:function(){this.s3.rg();this.list.vc.gj(0,0,0);this.list.ct();var a=sc.e.Zq;sc.wM.Dy(a,sc.ih.ORDER);for(var b=sc.Pb,c=s,c=c=s,d=0,e=0;e<a.length;e++){c=b.getItem(a[e].id);c="\\i["+(c.icon+sc.Pb.uo(c.rarity||0)||"item-default")+"]"+ig.Oa.wc(c.name);c=new sc.P_a(c,a[e].zb,a[e].en);c.l(0,d);d=d+c.a.size.y;this.s3.m(c)}this.s3.a.size.y=
d;this.list.ct(j)},jeb:function(a){a.data==0?this.Uma&&this.Uma():this.rN&&this.rN()}});sc.P_a=ig.X.extend({r:new ig.$("media/gui/menu.png"),item:s,zb:s,en:s,f:function(a,b,c){this.parent();this.v(246,17);this.item=new sc.ea(a);this.item.l(0,0);this.m(this.item);this.zb=new sc.Ib(99,{size:sc.uf.Bt});this.zb.l(145,4);this.zb.sa(b,j);this.m(this.zb);this.en=new sc.Ib(9999999,{size:sc.uf.Bt});this.en.l(174,4);this.en.sa(c*b,j);this.m(this.en)},va:function(a){this.parent(a);a.ia(this.r,132,6,560,416,
8,8);a.ia(this.r,164,7,568,416,8,8);a.ia(this.r,232,4,488,32,12,10)}})});ig.G=j;
ig.I("game.feature.menu.gui.shop.shop-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.menu-misc","game.feature.menu.gui.shop.shop-start","game.feature.menu.gui.shop.shop-list","game.feature.menu.gui.shop.shop-stats","game.feature.menu.gui.shop.shop-cart","game.feature.menu.gui.shop.shop-quantity","game.feature.menu.gui.shop.shop-confirm","game.feature.control.control").H(function(){sc.S_a=sc.bq.extend({mb:s,Kd:s,MJ:s,IQ:s,
start:s,zy:s,B4:s,ta:s,TI:s,Ed:s,Vma:s,Sc:s,Aa:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.Ul=j;this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.Kd=new sc.ec("\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title"),g,j,sc.Ic.Kc);this.Kd.Ul=j;this.Kd.a.N=
{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.Kd.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.Kd.Qb=this.CA.bind(this);this.MJ=new sc.ec("",s,j,sc.Ic.Kc);this.MJ.Ul=j;this.MJ.dc=s;this.MJ.Qb=function(){if(sc.Db.pJ>=0){sc.qd.submit.play();sc.Db.eSa();this.ta.NSa()}}.bind(this);this.IQ=new sc.X_a;this.m(this.IQ);this.start=new sc.W_a;this.m(this.start);this.zy=new sc.R_a;this.m(this.zy);this.B4=new sc.T_a;this.m(this.B4);this.ta=new sc.Q_a;this.m(this.ta);this.TI=new sc.N_a;
this.m(this.TI);this.Ed=new sc.V_a(this.Zeb.bind(this),this.yNa.bind(this));this.Vma=new sc.O_a(this.eeb.bind(this));this.Sc=new sc.xM(this.KP.bind(this));this.Sc.Rd("auto",sc.ih.ORDER,0);this.Sc.Rd("name",sc.ih.NAME,1);this.Sc.Rd("rarity",sc.ih.RARITY,2);this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){this.ac();sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);this.start.show();this.IQ.show();this.jr(ig.lang.get("sc.gui.menu.sort.auto"));ig.ua.ed(0.2);
this.ek()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.zd(this.Kd);sc.e.Q.zd(this.MJ);this.Aa=s;this.start.hide();this.IQ.hide();this.zy.hide();this.ta.hide();this.TI.hide();sc.Db.Mz=sc.jv.rH;sc.Ca.R6();this.Sc.Ga&&this.Sc.Sk();this.Ed.Ga&&this.Ed.hide()},rfb:function(a){this.Kd.setActive(w);ig.T.Mc(this.Ed);var b=a.a.kf,c=b.x,d=b.y+b.Gc-2,e=this.Ed.a;if(d+e.size.y>ig.g.height-28){d=b.y-e.size.y+1;this.Ed.rb(e.size.x/2,e.size.y)}else this.Ed.rb(e.size.x/
2,0);a.Iqa();this.Ed.show(a,c,d)},jr:function(a){var b="\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title")+": ";this.Kd.fa(b+("\\c[3]"+a+"\\c[0]"));sc.e.Ru()},phb:function(){sc.e.Q.zd(this.Kd);sc.e.Q.zd(this.MJ);this.Kd.j("HIDDEN");sc.e.kn=w;switch(sc.e.T5){case sc.dv.Gl:this.B4.hide();this.zy.hide();this.TI.hide();this.ta.hide();this.start.show();this.IQ.show();break;case sc.dv.vxa:sc.e.Q.md(this.Kd,this.lD.bind(this),j);sc.e.Q.md(this.MJ,this.mNa.bind(this),j);this.Kd.j("DEFAULT");this.start.hide(j);
this.IQ.hide(j);this.zy.show();this.B4.show();this.ta.show();this.TI.show();break;case sc.dv.pAa:sc.e.kn=j;sc.e.Q.md(this.Kd,this.lD.bind(this),j);sc.e.Q.md(this.MJ,this.mNa.bind(this),j);this.Kd.j("DEFAULT");this.start.hide(j);this.IQ.hide(j);this.zy.show();this.B4.show();this.ta.show();this.TI.show()}},eeb:function(){var a=sc.e.kn?this.Phb():this.b6a();sc.e.Zq.length=0;a?this.zy.Zma(j,ig.input.dd,!ig.input.dd,this.zy.NDa):this.zy.Mwa(j);this.TI.QOa()},b6a:function(){var a=sc.q.R;a.Ita(sc.e.DJ(),
j);for(var b=sc.e.Zq,c=b.length;c--;)a.bx(b[c].id,b[c].zb,j);return w},Phb:function(){var a=sc.q.R;a.D9(sc.e.DJ(),j);for(var b=sc.e.Zq,c=b.length,d=w;c--;){a.removeItem(b[c].id,b[c].zb);a.Nr(b[c].id)<=0&&!d&&(d=j)}return d},Zeb:function(a,b){sc.e.wSa(a.data.id,b,a.en);this.yNa(a);this.zy.Mwa()},yNa:function(a){this.Kd.setActive(j);a.zga()},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},lD:function(){return sc.V.hK()},mNa:function(){return sc.V.rMa()},CA:function(){if(this.Sc.Ga)this.Sc.Sk();
else{ig.T.Mc(this.Sc);this.Sc.CX(this.Kd)}},KP:function(a){if(a.data){this.Sc.Sk();sc.e.Dy(a)}},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.shop.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.shop.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Qi(M("Kd").bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr();this.Kd.j("HIDDEN",j)},Og:function(){sc.e.jk();sc.e.bs()},lb:function(a,b,c){if(a==
sc.e)if(b==sc.ca.vAa)this.phb(c);else if(b==sc.ca.sr){this.jr(c.text);this.zy.LSa(c.data.KG)}else if(b==sc.ca.uAa){this.jr(ig.lang.get("sc.gui.menu.sort.auto"));this.zy.LSa()}else if(b==sc.ca.ZY){sc.Db.zQ(c);this.ta.NSa()}else if(b==sc.ca.N7){sc.Db.zQ(-1);this.ta.reset()}else if(b==sc.ca.tAa)this.rfb(c);else if(b==sc.ca.Xia)this.TI.Iga(c);else if(b==sc.ca.sAa){ig.T.Mc(this.Vma);this.Vma.show()}}})});ig.G=j;
ig.I("game.feature.menu.gui.help-boxes").J("impact.feature.gui.base.basic-gui","game.feature.gui.base.boxes","game.feature.menu.gui.menu-misc").H(function(){sc.eWa=ig.X.extend({lk:s,content:s,f:function(){this.parent();this.content=new ig.X;this.lk=new sc.RH(sc.Hl.kz);this.lk.uh(this.content);this.lk.U5=w;this.lk.yX=w;this.m(this.lk)},vua:function(a){this.content.rg();this.content.a.size.y=0;this.lk.vc.gj(0,0,0);this.lk.ct(j);this.content.m(a);this.qla()},scroll:function(a,c){this.lk.scrollY(a,c,
0.05)},CJ:function(){return this.lk.CJ()},clear:function(){this.content.rg();this.content.a.size.y=0;this.lk.vc.gj(0,0,0);this.lk.ct(j)},v:function(a,c){this.parent(a,c);this.lk.v(a,c)},qla:function(){var a=this.content.a.children,a=a[a.length-1];this.content.a.size.y=a.i.y+a.size.y;this.lk.ct()}});var a=-1;sc.hYa=ig.X.extend({r:new ig.$("media/gui/basic.png"),N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},count:s,max:s,f:function(a){this.parent();
this.v(a,8);this.count=new sc.Ib(9);this.count.F(ig.k.fb,ig.k.gb);this.count.l(a/2-13,0);this.max=new sc.Ib(9);this.max.F(ig.k.fb,ig.k.gb);this.max.l(a/2+5,0);var c=new ig.Dc(this.r,96,0,8,8);c.F(ig.k.fb,ig.k.gb);c.l(a/2-4,0);this.m(this.count);this.m(this.max);this.m(c)},iib:function(a){this.count.sa(a,j)},UPa:function(a){this.max.sa(a,j)}});sc.Xo=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},ge:s,content:s,qg:s,
Q:s,ka:s,eaa:"Default",VF:2,Eca:2,Pu:s,Qu:s,nG:s,Ff:[],Is:0,X5a:s,Bs:300,f:function(a,c){this.parent();this.v(ig.g.width,ig.g.height);this.a.Vc=0.8;a=a||300;c=c||240;this.Bs=a;this.Q=new ig.nr;this.ka=new sc.Wf(w,ig.mr.I7);this.Q.Cg(this.ka);this.content=new ig.X;this.content.v(a,c);this.H2a(a);this.ge=new sc.uB(this.content);this.ge.F(ig.k.za,ig.k.gb);this.ge.l(0,0);this.m(this.ge);this.Pu=new sc.ec("\\i[arrow-left]");this.Pu.F(ig.k.za,ig.k.gb);this.Pu.l(-(a/2+this.Pu.a.size.x+4),0);this.Pu.a.N=
{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.Pu.Qb=function(){var a=this.Is;this.Is--;if(this.Is<=0)this.Is=0;a!=this.Is&&this.ila(this.Is)}.bind(this);this.Pu.j("HIDDEN",j);this.m(this.Pu);this.Qu=new sc.ec("\\i[arrow-right]");this.Qu.F(ig.k.za,ig.k.gb);this.Qu.l(a/2+this.Qu.a.size.x+4,0);this.Qu.a.N={DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.Qu.Qb=function(){var a=
this.Is;this.Is++;if(this.Is>=this.Ff.length-1)this.Is=this.Ff.length-1;a!=this.Is&&this.ila(this.Is)}.bind(this);this.Qu.j("HIDDEN",j);this.m(this.Qu);this.X5a=sc.qd.back;this.j("HIDDEN",j)},as:function(){ig.ua.de(this.Q);ig.ua.ed(0.2);this.Q.E0();this.ge.j("DEFAULT");this.Pu.j("HIDDEN",j);this.Qu.j("HIDDEN",j);this.Is=0;this.Ff.length>0&&this.ila(0);this.Ff.length>1?this.nG.j("DEFAULT",j):this.nG.j("HIDDEN",j);this.j("DEFAULT")},Y6a:function(){ig.ua.ie(this.Q);ig.ua.ed(0.2);this.ge.j("HIDDEN");
this.j("HIDDEN",w,j)},x5a:function(a,c,d){this.Ff.push({qg:a||s,content:c||s,mcb:d||w});this.nG.UPa(this.Ff.length)},eo:function(a){if(a&&a!="UNKNOWN LABEL")for(var c=0;c<a.length;c++)this.x5a(a[c].title,a[c].content,a[c].content instanceof Array)},Io:function(a){this.eaa=a||"DEFAULT";this.qg.fa(this.eaa)},ila:function(b){var c=new ig.X;c.a.size.x=296;var d=this.Ff[b];this.qg.fa(d.qg||this.eaa);var e=2;a=-1;if(d.content)if(d.mcb)for(var d=d.content,h=0;h<d.length;h++)e=this.TEa(d[h],c,e);else e=this.TEa(d.content,
c,e);c.a.size.y=e;this.hn.vua(c);this.nG.iib(b+1);if(this.Is>=this.Ff.length-1){this.Qu.M6();this.Q.zd(this.Qu);this.Qu.j("HIDDEN",j)}else if(this.Ff.length>1){this.Q.md(this.Qu,this.kfb.bind(this),j);this.Qu.j("DEFAULT",j)}if(this.Is==0){this.Q.zd(this.Pu);this.Pu.M6();this.Pu.j("HIDDEN",j)}else if(this.Ff.length>1){this.Q.md(this.Pu,this.jfb.bind(this),j);this.Pu.j("DEFAULT",j)}},TEa:function(b,c,d){var e=s;if(b.indexOf("!!min=")==0)a=b.substring(6)*1;else if(b.indexOf("--")==0){var e=b.substring(2),
h=e.indexOf("--");if(h==-1){e=new sc.ea("\\i[li]"+e,{maxWidth:this.Bs-8});e.l(0,d);d=d+(e.a.size.y+this.Eca);c.m(e)}else{e=new sc.ea("\\i[li]"+(h!=-1?e.substring(0,h):""));e.l(0,d);h!=-1&&c.m(e);h=h==-1?2:h+4;b=new sc.ea(b.substring(h),{maxWidth:this.Bs-(a==-1?e.a.size.x-8:a+8)});b.l(h==2?9:a==-1?e.a.size.x+4:a,d);d=d+(b.a.size.y+this.Eca);c.m(b)}}else if(b.indexOf("====")==0){e=new ig.Lf("#7E7E7E",296,1);e.l(0,d);c.m(e);d=d+3}else if(b.indexOf("......")==0)d=d+4;else if(b.indexOf("....")==0)d=d+
2;else if(b.indexOf("..")==0)d=d+1;else{if(b.indexOf("__")==0){e=new sc.ea(b.substring(2),{maxWidth:this.Bs});e.l(0,d);e.F(ig.k.za,ig.k.W)}else{e=new sc.ea(b,{maxWidth:this.Bs-4});e.l(0,d)}c.m(e);d=d+(e.a.size.y+this.VF)}return d},H2a:function(a){var c=2;this.qg=new sc.ea(this.eaa);this.qg.F(ig.k.za,ig.k.W);this.qg.l(0,c);this.content.m(this.qg);var c=c+(this.qg.a.size.y+2),d=new sc.FH(300);d.F(ig.k.za,ig.k.W);d.l(0,c);this.content.m(d);c=c+1;this.hn=new sc.eWa;this.hn.l(0,c);this.hn.v(301,208);c=
c+this.hn.a.size.y;d=new sc.FH(300);d.F(ig.k.za,ig.k.W);d.l(0,c);this.content.m(d);this.content.m(this.hn);c=c+4;this.nG=new sc.hYa(a);this.nG.F(ig.k.za,ig.k.W);this.nG.l(0,c);this.nG.j("HIDDEN",j);this.content.m(this.nG)},jfb:function(){return sc.V.Ws()||sc.V.n3()},kfb:function(){return sc.V.Xs()||sc.V.p5()},update:function(){if(!ig.ua.Ph()){sc.V.aW()?this.hn.scroll(-20):sc.V.$V()&&this.hn.scroll(20);sc.V.Fr()?this.hn.scroll(200*ig.g.ga):sc.V.ls()&&this.hn.scroll(-200*ig.g.ga);sc.V.Bo()&&this.Y6a()}},
va:function(a){a.Ec("#000",0,0,this.a.size.x,this.a.size.y)}})});ig.G=j;
ig.I("game.feature.menu.gui.synop.synop-misc").J("impact.feature.gui.base.box","impact.feature.gui.gui","game.feature.menu.gui.menu-misc","game.feature.menu.gui.quests.quest-entries").H(function(){sc.gS={};sc.R7=ig.X.extend({rp:s,Va:s,type:s,f:function(a){this.parent();this.v(376,18);this.type=a.type||sc.eza.STORY;this.rp=new sc.ea("\\i[logs-"+this.type+"]");this.rp.F(ig.k.fb,ig.k.gb);this.m(this.rp);this.Va=new sc.ea("");this.Va.F(ig.k.fb,ig.k.gb);this.Va.l(14,0);this.m(this.Va)}});sc.gS.LANDMARK=
sc.R7.extend({f:function(a){this.parent(a);var b=ig.lang.get("sc.gui.menu.synopsis-menu.types.landmark"),b=b+("\\c[3]"+sc.map.bpa(a.landmark,a.area)+"\\c[0]");this.Va.fa(b);this.Va.F(ig.k.fb,ig.k.W);this.rp.F(ig.k.fb,ig.k.W);b="\\i[insetArrow]"+ig.lang.get("sc.gui.menu.synopsis-menu.types.lm")+sc.map.AF(a.area);this.i0=new sc.ea(b,{font:sc.Ka.Ve});this.i0.l(6,16);this.m(this.i0);this.v(376,28)}});sc.gS.TRADER=sc.R7.extend({f:function(a){this.parent(a);var b=ig.lang.get("sc.gui.menu.synopsis-menu.types.trader"),
b=b+("\\c[3]"+sc.Db.xab(a.trader)+"\\c[0]");this.Va.fa(b);this.Va.F(ig.k.fb,ig.k.W);this.rp.F(ig.k.fb,ig.k.W);a=sc.Db.Woa(a.trader);b="\\i[insetArrow]"+ig.lang.get("sc.gui.menu.synopsis-menu.types.lm")+a.area.toString()+" - "+a.map.toString();this.i0=new sc.ea(b,{font:sc.Ka.Ve});this.i0.l(6,16);this.m(this.i0);this.v(376,28)}});sc.gS.LORE=sc.R7.extend({f:function(a){this.parent(a);var b="",b=a.update?ig.lang.get("sc.gui.menu.synopsis-menu.types.loreUpdated"):ig.lang.get("sc.gui.menu.synopsis-menu.types.lore"),
b=(a=sc.ud.h2(a.lore))?b+("\\c[3]"+ig.Oa.wc(a.title)+"\\c[0]"):b+"\\c[3]???\\c[0]";this.Va.fa(b)}});sc.gS.QUEST=sc.R7.extend({f:function(a){this.parent(a);var b="";if(a.task!=g){b=ig.lang.get("sc.gui.menu.synopsis-menu.types.questTask");this.Va.F(ig.k.fb,ig.k.W);this.rp.F(ig.k.fb,ig.k.W);var c=sc.Xb.fab(a.quest,a.task),b=b+("\\c[3]"+sc.Xb.dab(a.quest)+"\\c[0]");this.Va.fa(b);b="\\i[insetArrow]"+ig.lang.get("sc.gui.menu.synopsis-menu.types.qtm");b=new sc.ea(b,{font:sc.Ka.Ve});b.l(6,16);this.m(b);b=
new sc.ea(c.Gi,{font:sc.Ka.Ve,maxWidth:300});b.l(72,16);this.m(b);this.v(376,14+b.a.size.y)}else if(a.finish){b=ig.lang.get("sc.gui.menu.synopsis-menu.types.questFinish");c=sc.Xb.xba(a.quest);b=b+("\\c[3]"+(c?c.name:"????")+"\\c[0]");this.Va.fa(b)}else if(a.accept){b=ig.lang.get("sc.gui.menu.synopsis-menu.types.questStart");c=sc.Xb.xba(a.quest);b=b+("\\c[3]"+(c?c.name:"????")+"\\c[0]");this.Va.fa(b)}}});sc.S0a=sc.jE.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,
offsetX:-204.5},time:0.2,p:KEY_SPLINES.LINEAR}},content:s,pta:s,f:function(a){this.parent(ig.lang.get("sc.gui.menu.synopsis-menu.log"),sc.yj.us);this.pta=a;this.v(384,96);this.l(25,80+this.pta.a.size.y+5);this.content=new ig.X;this.content.l(4,9);this.content.v(376,85);this.m(this.content);this.j("HIDDEN",j)},show:function(){this.j("DEFAULT");this.content.rg();var a=this.pta.a.size.y;this.l(25,80+a+5);this.v(384,96+Math.max(0,109-a));for(var a=sc.e.bK,b=a.length,c=s,d=1,e=this.a.size.y-10;b--;){c=
a[b];if(sc.q.R.Ov(135)||c.type!="LORE"){c=new sc.gS[c.type](c);c.l(0,d);d=d+c.a.size.y;e=e-c.a.size.y;if(e>0)this.content.m(c);else break}}},hide:function(){this.j("HIDDEN")}});sc.V0a=sc.jE.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:-204.5},time:0.2,p:KEY_SPLINES.LINEAR}},Gi:s,f:function(){this.parent(ig.lang.get("sc.gui.menu.synopsis-menu.task"),sc.yj.us);this.v(384,46);this.l(25,29);this.Gi=new sc.ea(ig.lang.get("sc.gui.menu.synopsis-menu.notask"),{maxWidth:374});
this.Gi.l(5,11);this.m(this.Gi);this.j("HIDDEN",j)},show:function(){var a=sc.q.Wd||sc.q.K4;if(a){this.Gi.F(ig.k.fb,ig.k.W);this.Gi.a.i.y=11}else{this.Gi.F(ig.k.za,ig.k.gb);this.Gi.a.i.y=5}this.Gi.fa(a||ig.lang.get("sc.gui.menu.synopsis-menu.notask"));this.j("DEFAULT")},hide:function(){this.j("HIDDEN")}});sc.U0a=sc.jE.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:-204.5},time:0.2,p:KEY_SPLINES.LINEAR}},LK:s,yL:s,ob:s,f:function(){this.parent(ig.lang.get("sc.gui.menu.synopsis-menu.favquest"),
sc.yj.us);this.v(384,109);this.l(25,80);this.LK=new sc.ea("");this.m(this.LK);this.yL=new sc.RZ;this.yL.l(30,34);this.m(this.yL);this.j("HIDDEN",j)},FQ:function(a){if(a){this.ob=a;this.yL.j("DEFAULT",j);this.LK.F(ig.k.fb,ig.k.W);this.LK.l(4,11);this.LK.fa("\\i[quest-fav]"+a.name);this.yL.kL(sc.Xb.nIa(),this.ob,j,j);this.yL.show(j,0.1);this.v(384,34+this.yL.a.size.y)}else{this.LK.F(ig.k.za,ig.k.W);this.LK.l(4,11);this.LK.fa(ig.lang.get("sc.gui.menu.synopsis-menu.noquest"));this.yL.j("HIDDEN",j);this.v(384,
30)}},va:function(a){this.parent(a);this.ob&&a.ia(this.r,10,30,416,53,17,16)},show:function(){this.FQ(sc.Xb.qba());this.j("DEFAULT")},hide:function(a){this.j("HIDDEN",a)}})});ig.G=j;
ig.I("game.feature.menu.gui.synop.synop-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.help-boxes","game.feature.menu.gui.synop.synop-misc").H(function(){var a=[43,73,103,133,163,193,223,253,283];sc.T0a=sc.bq.extend({mb:s,zl:s,Aa:s,ka:s,oa:{Xb:s,ud:s,xga:s,Qea:s,Db:s,Tf:s,mda:s,Tx:s},Zba:s,Q2:s,Yba:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);
this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.ka=new sc.Wf;this.ka.si(function(a){a.data&&(a.Ga?sc.e.tc(a.data):sc.e.tc("???"))});this.ka.Bk(function(){sc.e.tc("",j)});this.oa.Xb=this.Mi("quests",0,function(){sc.e.sy(sc.Cd.wZ)}.bind(this));this.oa.xga=this.Mi("trophies",1,F().bind(this),j);var a=sc.q.R;this.oa.ud=this.Mi("lore",2,function(){sc.e.sy(sc.Cd.oE)}.bind(this),!a.Ov(135),
j);this.oa.Qea=this.Mi("records",3,function(){sc.e.sy(sc.Cd.LAa)}.bind(this),!a.Ov(135));this.oa.Db=this.Mi("trade",4,function(){sc.e.sy(sc.Cd.VH)}.bind(this),!a.Ov(135)||!sc.Db.AJa());this.oa.Tf=this.Mi("enemies",5,function(){sc.e.sy(sc.Cd.xha)}.bind(this),!a.Ov(135));this.oa.mda=this.Mi("museum",6,F().bind(this),j);this.oa.Tx=this.Mi("help",7,F().bind(this),j);this.oa.xga.setActive(w);this.oa.ud.setActive(a.Ov(135));this.oa.Qea.setActive(a.Ov(135));this.oa.Db.setActive(a.Ov(135)&&sc.Db.AJa());this.oa.Tf.setActive(a.Ov(135));
this.oa.mda.setActive(w);this.oa.Tx.setActive(w);for(var c in this.oa)this.m(this.oa[c]);this.ka.Uc(this.oa.Xb,0,0);this.ka.Uc(this.oa.xga,0,1);this.ka.Uc(this.oa.ud,0,2);this.ka.Uc(this.oa.Qea,0,3);this.ka.Uc(this.oa.Db,0,4);this.ka.Uc(this.oa.Tf,0,5);this.ka.Uc(this.oa.mda,0,6);this.ka.Uc(this.oa.Tx,0,7);this.Zba=new sc.V0a;this.m(this.Zba);this.Q2=new sc.U0a;this.m(this.Q2);this.Yba=new sc.S0a(this.Q2);this.m(this.Yba);this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,
this)},xd:function(){this.ac();sc.e.Q.Cg(this.ka);sc.e.Y4==sc.Cd.Gl&&sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);this.oa.ud.Ga?sc.e.IJa(sc.Cd.oE)?this.oa.ud.KEa(j):this.oa.ud.caa():this.oa.ud.caa();this.oa.Xb.j("DEFAULT",w,w,s,0.032);this.oa.xga.j("DEFAULT",w,w,s,0.016);this.oa.ud.j("DEFAULT",w,w,s,0);this.oa.Qea.j("DEFAULT",w,w,s,0);this.oa.Db.j("DEFAULT",w,w,s,0);this.oa.Tf.j("DEFAULT",w,w,s,0);this.oa.mda.j("DEFAULT",w,w,s,0.016);this.oa.Tx.j("DEFAULT",w,w,s,0.032);this.Zba.show();this.Q2.show();
this.Yba.show();ig.ua.ed(0.2);this.ek()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){for(var a in this.oa){var c=this.oa[a];c&&c.j("HIDDEN")}this.Zba.hide();this.Q2.hide();this.Yba.hide();sc.e.Q.zd(this.mb);sc.e.Q.Lj(this.ka)},Mi:function(b,c,d,e,h){var k=s,k=h?new sc.Bza(e?"???":ig.lang.get("sc.gui.menu.synopsis-menu."+b),sc.NR):new sc.ec(e?"???":ig.lang.get("sc.gui.menu.synopsis-menu."+b),sc.NR);k.F(ig.k.ha,ig.k.W);k.l(10,a[c]+0);k.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},
HIDDEN:{state:{offsetX:-(sc.NR+10)},time:0.2,p:KEY_SPLINES.LINEAR}};k.setData(ig.lang.get("sc.gui.menu.synopsis-menu.descriptions."+b));k.Qb=d;k.j("HIDDEN",j);return k},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.synopsis.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.synopsis.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,
this.gk.bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:F()})});ig.G=j;
ig.I("game.feature.menu.gui.quests.quest-misc").J("impact.feature.gui.base.box","impact.feature.gui.gui","impact.feature.interact.button-interact","game.feature.interact.button-group","game.feature.menu.gui.quests.quest-entries").H(function(){sc.wja=ig.NZ.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0.5,Ma:0},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",{width:2,height:2,left:6,top:13,right:6,bottom:0,Fb:{"default":{x:473,y:17}}}),Va:s,f:function(){this.parent();
this.Va=new sc.ea(ig.lang.get("sc.gui.menu.quests.solved"),{font:sc.Ka.Ve});this.Va.F(ig.k.za,ig.k.W);this.Va.l(0,0);this.m(this.Va);this.v(105,13)},v:function(a,c){this.parent(a,c);this.rb(a/2,c/2)},va:function(a){a.Ec("#008277",0,6,this.a.size.x,1);this.eb.Xa(a,95,13,"default",this.a.size.x/2-47.5,0)}});sc.Lia=ig.te.extend({eb:new ig.$b("media/gui/menu.png",{width:2,height:8,left:27,top:21,right:27,bottom:3,Fb:{"default":{x:416,y:0},dialog:{x:416,y:80},solved:{x:456,y:48},overlay:{x:416,y:112},
"dialog-solved":{x:416,y:112}}}),ZJ:s,f:function(a,c,d){this.parent(56,32);this.v(a||56,c||32);this.ZJ=new sc.Ib(99,{leadingZeros:2});this.ZJ.F(ig.k.ha,ig.k.W);this.ZJ.sa(d!=g?d:0);this.ZJ.l(5,11);this.m(this.ZJ)},DQ:function(a){this.ZJ.sa(a||0,j)}});var a=0;sc.FZa=ig.NZ.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},$C:s,xL:s,f:function(){this.parent();this.v(281,164);this.$C=new ig.Lf("#545454",
257,1);this.$C.F(ig.k.za,ig.k.W);this.$C.l(0,0);this.m(this.$C);this.xL=new ig.X;this.xL.v(257,165);this.xL.l(12,2);this.m(this.xL);this.hide(j)},Sib:function(b,c){this.xL.rg();for(var d=c+1,e=0;d--;){e=this.q2a(d,b,e);if(e>=155){d=new ig.Dc(this.r,434,56,14,4);d.F(ig.k.za,ig.k.W);d.l(0,4);this.xL.m(d);a=a+5;break}else a=e}this.xL.v(257,a)},q2a:function(b,c,d){b=new sc.RZ(b,c,w,j);b.j("DEFAULT",j);b.F(ig.k.fb,ig.k.xb);b.l(1,d);d=d+(b.a.size.y+3);if(d<=165){this.xL.m(b);return d}a=d-b.a.size.y;return d}});
sc.GZa=ig.NZ.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},eB:s,Hr:s,f:function(){this.parent();this.v(281,186);this.eB=new sc.wja;this.eB.F(ig.k.za,ig.k.W);this.eB.v(257,13);this.eB.l(0,0);this.m(this.eB);this.Hr=new sc.ea("",{font:sc.Ka.Ve,linePadding:0,maxWidth:254});this.Hr.F(ig.k.fb,ig.k.W);this.Hr.l(13,17);this.m(this.Hr);this.hide(j)}});sc.EZa=sc.Lia.extend({r:new ig.$("media/gui/menu.png"),Ii:s,Aq:s,XF:s,x3:s,$C:s,jm:s,
Cy:s,f:function(){this.parent(281,265);this.rb(0,265);this.Ii=new sc.ea("");this.Ii.F(ig.k.za,ig.k.W);this.Ii.l(0,4);this.m(this.Ii);this.Aq=new sc.ea("",{font:sc.Ka.Ve,linePadding:0,maxWidth:254});this.Aq.F(ig.k.fb,ig.k.W);this.Aq.l(13,24);this.m(this.Aq);this.XF=new ig.Lf("#545454",277,19);this.XF.F(ig.k.za,ig.k.xb);this.XF.l(0,2);this.m(this.XF);this.x3=new sc.ea("");this.x3.l(22,2);this.XF.m(this.x3);var a=new ig.Dc(this.r,418,33,12,18);a.l(5,1);this.XF.m(a);this.jm=new sc.FZa;this.jm.l(0,80);
this.m(this.jm);this.Cy=new sc.GZa;this.Cy.l(0,80);this.m(this.Cy);this.FQ(s)},FQ:function(a){if(a){this.jm.hide(j);this.Cy.hide(j);this.Ii.fa(a.name);this.Aq.fa(a.description);this.DQ(a.aa);this.x3.fa(a.location.Ub+" - "+a.location.map);if(sc.Xb.Ss(a.id)){this.Nk="solved";this.XF.color="#008277";this.Cy.show(j);this.Cy.Hr.fa(a.Hr)}else{this.Nk="default";this.XF.color="#545454";this.jm.show(j);this.jm.Sib(a,sc.Xb.Toa(a,j))}}else{this.Nk="default";this.XF.color="#545454";this.jm.hide(j);this.Cy.hide(j);
this.x3.fa("");this.Ii.fa(ig.lang.get("sc.gui.menu.quests.noquest"));this.Aq.fa("");this.DQ(0)}},show:function(){this.j("DEFAULT")},hide:function(a){this.j("HIDDEN",a)}});sc.DZa=sc.Lia.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE_IN},HIDDEN:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},SMALLER:{state:{Ia:0.9,Ma:0.9},time:0.1,p:KEY_SPLINES.EASE_OUT}},Ii:s,Aq:s,Vna:s,F1:s,Xt:s,PT:s,su:s,eB:s,ob:s,f:function(a,c){this.parent(281,c?239:218);this.Nk=c?"dialog-solved":
"dialog";this.ob=a;this.DQ(this.ob.aa);this.Ii=new sc.ea(this.ob.name);this.Ii.F(ig.k.za,ig.k.W);this.Ii.l(0,4);this.m(this.Ii);this.Aq=new sc.ea(this.ob.description,{font:sc.Ka.Ve,linePadding:0,maxWidth:254});this.Aq.l(13,24);this.m(this.Aq);var d=s;if(c){this.eB=new sc.wja;this.eB.F(ig.k.za,ig.k.W);this.eB.v(257,13);this.eB.l(0,79);this.m(this.eB);this.Vna=new sc.ea(this.ob.Hr,{font:sc.Ka.Ve,linePadding:0,maxWidth:254});this.Vna.l(13,95);this.m(this.Vna)}else{d=new ig.Lf("#545454",257,1);d.F(ig.k.za,
ig.k.W);d.l(0,78);this.m(d);this.F1=new sc.RZ(0,a,w,j);this.F1.l(13,83);this.m(this.F1);this.F1.j("DEFAULT",j)}d=new ig.Dc(this.r,457,37,14,9);d.l(12,c?175:152);this.m(d);d=new ig.Lf(c?"#008277":"#545454",242,1);d.l(27,c?180:157);this.m(d);d=a.Nba&&!c;this.Xt=new sc.ea("");this.PT=new sc.ea("");this.m(this.Xt);this.m(this.PT);this.su=new ig.X;this.su.F(ig.k.ha,ig.k.W);this.su.l(11,c?186:163);this.su.v(146,48);this.m(this.su);this.dQa(a,d,c)},FQ:function(a){this.ob=a||s;this.Ii.fa(this.ob.name);this.Aq.fa(this.ob.description);
this.F1.kL(0,this.ob,w,j);var c=this.ob.Nba;this.Xt.fa("");this.PT.fa("");this.dQa(a,c,w)},dQa:function(a,c,d){var d=d?186:163,e=s;if(a.zm.exp){e="\\i[exp]";if(c)e=e+"????";else{e=e+(sc.q.R.gpa(a.zm.exp.exp,a.aa)+"* ");e=e+(a.zm.exp.bonus?"+"+a.zm.exp.bonus:"")}this.Xt.fa(e);this.Xt.l(31,d);d=d+17;if(!c){e=new sc.ea(ig.lang.get("sc.gui.menu.quests.atCurLvl"),{font:sc.Ka.Lb});e.F(ig.k.fb,ig.k.xb);e.l(32,6);this.m(e)}}if(a.zm.money){c?this.PT.fa("\\i[credit]????????"):this.PT.fa("\\i[credit]"+(a.zm.money||
0));this.PT.l(31,d)}this.su.rg();if(a.zm.items)for(var d=this.su,a=a.zm.items,h=e=0;h<a.length;h++){var k=a[h].amount,l=sc.Pb.getItem(a[h].id),m="\\i["+(l.icon+sc.Pb.uo(l.rarity||0)||"item-default")+"]",m=c?m+"?????????????":m+ig.Oa.wc(l.name);k>1&&(m=m+(" x "+k));k=new sc.ea(m);k.l(0,e);d.m(k);e=e+17}}});sc.hAa=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:0.5,Ma:0.5,oc:0.3},time:0.2,p:KEY_SPLINES.EASE_IN}},pe:s,Q:s,ka:s,Ob:s,ob:s,Fp:s,oa:s,UB:s,vd:s,
Eq:w,voa:s,nt:s,next:0,c_:s,f:function(a,c,d,e){this.parent();this.a.zIndex=90;this.a.cr=j;this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.rb(this.a.size.x/2,this.a.size.y/2);this.c_=e||s;this.voa=a;this.Eq=d||w;this.Ob=c;this.pe=new sc.At(this);this.Fp=new sc.DZa(a,d);this.Fp.F(ig.k.za,ig.k.gb);this.Fp.l(0,d?-11:-22);this.m(this.Fp);this.Q=new ig.nr;this.ka=new sc.Wf;this.ka.tk(this.Qb.bind(this));this.Q.Cg(this.ka);this.oa=new sc.KZa(this.ka,d);this.oa.F(ig.k.za,ig.k.xb);this.oa.l(0,d?24:
25);this.m(this.oa);if(!this.Eq){this.vd=new ig.X;this.vd.v(281,218);this.vd.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.vd.va=function(a){this.Fp.eb.cHa(a,281,218,"default","darker")}.bind(this);this.vd.j("HIDDEN",j);this.Fp.m(this.vd);this.Fp.fQ(this.Fp.ZJ);this.Fp.m(this.Fp.ZJ);this.UB=new sc.ea("\\c[3]ACCEPTED!\\c[0]");this.UB.a.N={DEFAULT:{state:{Ia:2,Ma:2,oc:0.3},time:0.2,p:KEY_SPLINES.LINEAR},WAIT:{state:{Ia:2,Ma:2,oc:0.3},
time:0.1,p:KEY_SPLINES.EASE_IN},HIDDEN:{state:{alpha:0,Ia:4,Ma:4,oc:0.5},time:0.2,p:KEY_SPLINES.LINEAR},SMALLER:{state:{Ia:1.8,Ma:1.8,oc:0.3},time:0.1,p:KEY_SPLINES.EASE_OUT}};this.UB.F(ig.k.za,ig.k.gb);this.UB.l(0,-22);this.UB.j("HIDDEN",j);this.m(this.UB)}ig.ua.de(this.Q);this.j("HIDDEN",j);this.j("DEFAULT")},th:function(){ig.ua.ie(this.Q)},Qb:function(a){if(this.Eq){ig.ua.ed(0.22);this.rk(w)}else{ig.ua.ed(1.4);a.data==1?this.UB.j("DEFAULT",w,w,function(){this.UB.j("SMALLER");this.vd.j("DEFAULT");
this.Fp.j("SMALLER",w,w,function(){this.Fp.j("DEFAULT");this.UB.j("WAIT",w,w,function(){this.rk(j)}.bind(this))}.bind(this))}.bind(this)):a.data==2&&this.rk(w)}},rk:function(a){a?this.j("HIDDEN",w,w,function(){var a=sc.Xb.LEa(this.Fp.ob.id,this.c_);if(a){if(!this.nt)this.nt=sc.Xb.qab(a.ob);if(this.nt&&this.next<this.nt.length){a=sc.Xb.xba(this.nt[this.next]);this.UB.j("HIDDEN",j);this.vd.j("HIDDEN",j);this.Fp.FQ(a);this.Fp.a.i.y=-11;this.oa.a.i.y=24;this.oa.Rhb(this.ka);ig.ua.ed(0.2);if(this.Q.qf)this.Q.qf=
s;this.j("DEFAULT");this.next++}else{if(this.nt){for(var a=0,b=this.nt.length;b--;){sc.Xb.QSa(sc.Xb.xba(this.nt[b]),a);a=a+0.1}sc.Xb.QSa(this.voa,a)}ig.ua.ie(this.Q);this.Ob&&this.Ob(j,this.voa)}}else{ig.ua.ie(this.Q);this.Ob&&this.Ob(w,this.Fp.ob);ig.warn("Something went wrong!")}}.bind(this),a?0.3:0):this.j("HIDDEN",w,j,function(){ig.ua.ie(this.Q);this.Ob&&this.Ob(w,this.Fp.ob)}.bind(this),a?0.3:0)}});ig.Ji.QuestSolvedDialog=sc.hAa.extend({f:function(a){this.parent(a.quest,this.Zdb.bind(this),j);
ig.pa.set("tmp._questRewardsFinished",w)},Zdb:function(){sc.Xb.a9a(this.Fp.ob);ig.pa.set("tmp._questRewardsFinished",j)}});sc.KZa=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",{width:8,height:8,left:8,top:8,right:8,bottom:8,Fb:{"default":{x:480,y:304}}}),WM:s,gJ:s,JEa:w,f:function(a,c,d){this.parent();this.v(142,c||d?25:45);var e=c?ig.lang.get("sc.gui.menu.quests.collect"):ig.lang.get("sc.gui.menu.quests.accept");
this.WM=new sc.ec(e,136,j,sc.Ic.kE);this.WM.re.F(ig.k.za,ig.k.gb);this.WM.re.l(0,0);this.WM.l(3,3);this.WM.setData(1);this.m(this.WM);this.gJ=new sc.ec(ig.lang.get("sc.gui.menu.quests.decline"),136,j,sc.Ic.kE);this.gJ.re.F(ig.k.za,ig.k.gb);this.gJ.re.l(0,0);this.gJ.l(3,23);this.gJ.setData(2);!c&&!d&&this.m(this.gJ);a.Uc(this.WM,0,0);!c&&!d&&a.Uc(this.gJ,0,1)},Rhb:function(a){a.Aga();if(!this.JEa){this.fQ(this.gJ);a.Jta(0,1);ig.input.dd?a.Mj(0,0):a.yf(0,0,j,j,j);this.a.size.y=25;this.JEa=j}}})});
ig.G=j;
ig.I("game.feature.menu.gui.quests.quest-tab-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.quests.quest-misc","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes","game.feature.menu.gui.item.item-sort-menu").H(function(){var a=[];sc.HZa=ig.X.extend({r:new ig.$("media/gui/menu.png"),list:s,Oe:s,Wh:{Ga:s,zjb:s,all:s},fd:[],Fw:[],Ba:s,vh:[],dc:s,Gv:s,$z:s,el:s,Fk:s,zs:-1,RB:[],Ft:-1,f:function(){this.parent();this.v(264,
262);this.F(ig.k.ha,ig.k.W);this.rb(264,262);this.Gv=this.dc=sc.qd.submit;this.$z=sc.qd.xx;this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-132},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_EASE:{state:{alpha:0,offsetX:-132},time:0.2,p:KEY_SPLINES.EASE}};this.vh=new sc.Wf;this.vh.tk(function(a){if(this.Fk!=a){this.dc.play();this.Fk=a;a.Ce(j);this.tI(a);this.qz();sc.e.ZP=a.data;for(var b=this.fd.length;b--;)if(a==this.fd[b]){sc.e.eQa(b);break}sc.e.Q5(s,j)}}.bind(this));
this.vh.si(F());this.vh.Bk(F());var a=new sc.gq;a.v(264,243);a.l(0,21);this.m(a);this.Oe=new sc.kM;this.Oe.l(0,35);this.Oe.v(262,223);this.m(this.Oe);a=new ig.Dc(this.r,32,408,5,5);a.l(0,21);this.m(a);a=new ig.Lf("#FF6D00",259,1);a.l(5,21);this.m(a);a=new sc.ea(ig.lang.get("sc.gui.status-hud.lvl"),{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(7,-8);this.Oe.m(a);this.Wh.Ga=this.lq("active",0,sc.OH.hxa,"quest");this.Wh.zjb=this.lq("solved",1,sc.OH.hja,"quest-solve");this.Wh.all=this.lq("all",2,sc.OH.gH,
"quest-all");sc.e.ZP=this.Wh.Ga.data;this.vh.Mj(0,0);this.Wh.Ga.Ce(j);this.Fk=this.Wh.Ga;this.qz();this.j("HIDDEN",j)},xua:function(){if(this.Ft&&sc.e.vG==0)if(this.Ft.data&&this.Ft.data.id!=g){if(sc.Xb.tX(sc.Xb.v9a(this.Ft.data.ob))){this.Gv&&this.Gv.play();for(var a=this.list.qp(),c=a.length;c--;)a[c].T.fa(this.Wka(a[c].T.data.ob))}}else this.$z.play();else{this.dc.play();a=ig.lang.get("sc.gui.menu.help-texts.quests.title-2")+"\n\n"+ig.lang.get("sc.gui.menu.help-texts.quests.text-2");a=new sc.RL(a,
{maxWidth:300,speed:ig.rd.Nd.We},"black",0.9);a.a.zIndex=15E4;a.a.Ee=j;ig.T.Mc(a)}},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},show:function(){sc.e.Q.aN(this.vh);ig.ua.ed(0.2);var a=sc.e.ZP;a&&this.h_(a.type,j,ig.input.dd,j);this.j("DEFAULT")},hide:function(){sc.e.Q.gQ(this.vh);this.list.xi();this.j("HIDDEN")},Kn:function(){return sc.V.Xr()||sc.V.UA()||sc.V.sA()||sc.V.Fr()||sc.V.ls()||sc.V.Ws()||sc.V.Xs()},Uk:function(){var a=sc.e.vG,c=this.fd[a],d=-1;if(sc.V.Xs()||sc.V.p5())d=
1;else if(sc.V.Ws()||sc.V.n3())d=0;if(d>=0){this.dc.play();c.Ce(w);if(d==1){a++;a>=this.fd.length&&(a=0)}else{a--;a<0&&(a=this.fd.length-1)}this.Fk=c=this.fd[a];c.Ce(j);sc.e.Q5(s,j);this.tI(c,j);this.qz();sc.e.ZP=c.data;sc.e.eQa(a)}},lb:function(a,c,d){if(a==sc.e)if(c==sc.ca.Hia)this.h_(sc.e.ZP.type,j,ig.input.dd,!ig.input.dd);else if(c==sc.ca.e8){sc.e.Q.gQ(this.vh);this.j("HIDDEN_EASE")}else if(c==sc.ca.Iia){sc.e.Q.aN(this.vh);this.j("DEFAULT")}else c==sc.ca.sr&&this.J4a(d.data.KG)},J4a:function(a){this.Fw[sc.e.vG].sort=
a;this.kka(sc.e.ZP.type,a);ig.input.dd?this.Ba.R5():this.Ba.dX(w,j)},h_:function(a,c,d,e){c=c||w;d=d||w;e=e||w;if(this.Fw[this.el]){this.list.xi();this.list.j("HIDDEN",j)}var h=sc.e.vG,k=this.Fw[h];if(k){this.list=k.list;this.Ba=k.Ba;k.sort!=sc.yt.ACCEPTED&&this.kka(a,sc.yt.ACCEPTED);this.list.vf();this.list.j("DEFAULT",j);c&&(d?this.Ba.R5():this.Ba.dX(w,e))}else{k={Ba:s,list:s,sort:sc.yt.ACCEPTED};this.Ba=new sc.Wf;this.list=new sc.jH(1,0,28);this.list.l(0,35);this.list.v(264,223);this.list.E5(this.Ba);
this.list.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.m(this.list);this.Ba.Kn=this.Kn.bind(this);this.Ba.si(function(a){if(a.data){this.Ft=a;if(a.data.ob)sc.e.Q5(a.data.ob);else{a.data instanceof Object||sc.e.tc(a.data);sc.e.Q5(s,j)}}}.bind(this));this.Ba.Bk(function(){this.Ft=s;sc.e.tc("",j);sc.e.Q5(s,j)}.bind(this));this.Ba.tk(function(a){sc.e.y8a(a.data.ob)}.bind(this));this.Ba.Uk=this.Uk.bind(this);this.kka(a);k.Ba=this.Ba;
k.list=this.list;this.list.vf();this.Fw[h]=k;this.el=h}},kka:function(b,c){var d=s,e=d=s,h=s,k=0;this.Ba.clear();this.list.clear();for(var c=c||sc.yt.ACCEPTED,l=sc.Xb.cab(b,c),m=a.length=0;m<l.length;m++)if(h=l[m]){d=this.Wka(h);if(h.E4){e=(!sc.Xb.Ss(h.E4)||w)&&b==sc.OH.hja;d=new sc.AB(d,236-(e?0:22),25,h.aa);k=e?0:22;if(!e){e=new ig.Dc(this.r,541,208,14,15);e.l(-16,1);d.m(e)}d.setData({ob:h,id:m});c==sc.yt.ORDER||c==sc.yt.ACCEPTED?this.list.Rd(d,s,k):a.push(h)}else{d=new sc.AB(d,236,25,h.aa);k=0;
d.setData({ob:h,id:m});this.list.Rd(d,s,k)}}if(a.length>=1){m=a.length;for(l=this.list.qp().length;m--;){h=a[m];e=sc.Xb.Ss(h.E4);k=this.j3a(h.E4);if(k>=0){d=this.Wka(h);d=new sc.AB(d,236-e?22:0,25,h.aa);e=new ig.Dc(this.r,541,208,14,15);e.l(-16,1);d.m(e);d.setData({ob:h,id:this.list.qp().length});k==l-1?this.list.Rd(d,s,22):this.list.nqa(d,k+1,s,s,s,j);d.a.i.x=22}}}},j3a:function(a){for(var c=this.list.qp(),d=c.length;d--;)if(c[d].T.data.ob.id==a)return d;return-1},lq:function(a,c,d,e){a=new sc.BB.XH(ig.lang.get("sc.gui.menu.quests.tabs."+
a),e,90);a.re.l(6,0);a.l(0,2);a.setData({type:d});this.m(a);this.vh.Uc(a,c,0);return this.fd[c]=a},qz:function(){for(var a=9,c=s,d=0;d<this.fd.length;d++){c=this.fd[d];c.a.i.x=a;a=a+c.a.size.x}},tI:function(a,c){for(var d=0;d<this.fd.length;d++){a!=this.fd[d]&&this.fd[d].Ce(w);if(c)this.fd[d].focus=w}},Wka:function(a){var c="",c=sc.Xb.qba()&&a.id==sc.Xb.qba().id?"\\i[quest-fav]":sc.Xb.Ss(a.id)?"\\i[quest-solve]":"\\i[quest]";return c=c+a.name}})});ig.G=j;
ig.I("game.feature.npc.gui.npc-display-gui").J("impact.feature.gui.gui").H(function(){sc.yza=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.EASE_IN}},mj:s,Um:s,nb:s,size:{x:0,y:0},P:s,Ob:s,Y5:w,vb:"idle",f:function(a,b,c,d){this.parent();this.Ob=d;this.vb=c||"idle";this.mj=new sc.mH(a);this.j("HIDDEN",j);if(this.mj.loaded&&b)this.Y5=j;this.mj.wr(this);this.mj.loaded&&this.Ob&&this.Ob(this)},th:function(){this.mj&&this.mj.zc();this.mj=
s;this.nb&&this.nb.zc();this.nb=s;this.Um&&this.Um.clear();this.Um=s},Pq:function(a,b){if(this.mj)if(b==this.mj){var c=this.mj.data;Vec3.assign(this.size,c.size||{x:12,y:12,z:28});this.v(this.size.x,this.size.y+this.size.z);this.rb(this.a.size.x/2,this.a.size.y/2);this.nb=new ig.wj(c.animSheet);this.nb.wr(this)}else if(b==this.nb){this.hqa();this.j("DEFAULT",this.Y5)}},hqa:function(){this.Um=new ig.G7;this.Um.iKa(this.a.size.x,this.a.size.y);ig.t.pushState(this.Um);this.P=ig.t.af(ig.Zb,0,this.size.z,
0,{});this.P.v(this.size.x,this.size.y,this.size.z);this.P.nb=this.nb;this.P.ld();this.P.Ja(this.vb);this.Ob&&this.Ob(this);ig.t.N4()},update:function(){this.Um&&this.Um.sO()},va:function(a){this.Um&&a.OEa(this.Um,0,0)}})});ig.G=j;
ig.I("game.feature.menu.gui.quests.quest-details").J("impact.feature.gui.base.box","impact.feature.gui.gui","impact.feature.interact.button-interact","game.feature.interact.button-group","game.feature.menu.gui.quests.quest-entries","game.feature.menu.gui.quests.quest-misc","game.feature.npc.gui.npc-display-gui").H(function(){sc.AZa=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,Ia:0.2,Ma:0.2},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",
{width:4,height:8,left:6,top:8,right:6,bottom:8,Fb:{"default":{x:472,y:80},solved:{x:488,y:80}}}),Td:s,content:s,f:function(){this.parent(270,186);this.F(ig.k.ha,ig.k.xb);this.rb(270,186);this.l(1,1);this.content=new ig.X;this.Td=new sc.RH(sc.Hl.kz);this.Td.U5=w;this.Td.yX=w;this.Td.v(268,186);this.Td.l(1,0);this.m(this.Td);this.Td.uh(this.content)},scroll:function(a,b){this.Td.scrollY(a,b,0.05)},show:function(a,b,c){var d=sc.Xb.Toa(a,j)+1,e=s,h=this.content,k=5;if(!(h.a.children.length>=1&&c)){h.rg();
for(c=0;c<d;c++){e=new sc.RZ(c,a,w,j);e.j("DEFAULT",j);e.l(4,k);k=k+(e.a.size.y+5);h.m(e)}h.v(266,k);this.Td.ct(j)}this.j("DEFAULT",!b)},hide:function(){this.j("HIDDEN",j)}});sc.BZa=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},Hr:s,f:function(){this.parent();this.v(254,186);this.F(ig.k.ha,ig.k.xb);this.l(11,1);var a=new sc.wja;a.F(ig.k.za,ig.k.W);a.l(1,2);a.v(249,13);this.m(a);this.Hr=new sc.ea("",{font:sc.Ka.Ve,linePadding:0,
maxWidth:254});this.Hr.F(ig.k.fb,ig.k.W);this.Hr.l(0,19);this.m(this.Hr);this.hide()},show:function(a){this.Hr.fa(a.Hr);this.j("DEFAULT",j)},hide:function(){this.j("HIDDEN",j)}});sc.zZa=ig.te.extend({eb:new ig.$b("media/gui/menu.png",{width:2,height:2,left:5,top:5,right:5,bottom:5,Fb:{"default":{x:488,y:16},solved:{x:500,y:16}}}),display:s,Td:s,N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.EASE}},f:function(){this.parent(31,42);this.Td=new ig.X;this.Td.a.clip=
j;this.Td.v(31,42);this.Td.l(1,1);this.m(this.Td)},$A:function(a,b){if(a){if(this.display){this.display.remove(j);this.display=s}if(a){this.display=new sc.yza(a,j,s,this.yma.bind(this));this.Td.m(this.display);this.j("DEFAULT",j)}}else{if(this.display){b?this.display.remove(j):this.display.j("HIDDEN",w,j);this.display=s}this.j("HIDDEN",j)}},yma:function(a){a.mj&&a.l(this.Td.a.size.x/2-a.a.size.x/2-1,this.Td.a.size.y/2-a.a.size.y/2)}});sc.CZa=sc.Lia.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},
time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,Ia:0.3},time:0.2,p:KEY_SPLINES.EASE}},Ii:s,Aq:s,Ica:s,Jca:s,cea:s,FK:s,Xt:s,Zs:s,su:s,PE:s,jm:s,Cy:s,Ba:s,cY:s,aga:s,zf:[],fna:s,dc:s,f:function(a){this.parent(453,265);this.F(ig.k.za,ig.k.gb);this.cY=a||s;this.dc=sc.qd.submit;this.Ba=new sc.Wf;this.Ba.sF=this.sF.bind(this);this.Ii=new sc.ea("");this.Ii.F(ig.k.za,ig.k.W);this.Ii.l(0,4);this.m(this.Ii);this.Aq=new sc.ea("",{font:sc.Ka.Ve,linePadding:0,maxWidth:254});this.Aq.F(ig.k.fb,ig.k.W);this.Aq.l(188,
24);this.m(this.Aq);this.Ica=new sc.ea("Rookie Harbor");this.Ica.l(20,43);this.m(this.Ica);this.Jca=new sc.ea("Marketplace");this.Jca.l(32,60);this.m(this.Jca);this.cea=new sc.ea("Ice Cream Dealer",{font:sc.Ka.Ve});this.cea.l(20,102);this.m(this.cea);this.FK=new sc.zZa;this.FK.l(143,105);this.m(this.FK);this.PE=new sc.ea(ig.lang.get("sc.gui.menu.quests.atCurLvl"),{font:sc.Ka.Lb});this.PE.F(ig.k.ha,ig.k.xb);this.PE.l(275,3);this.PE.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},
time:0.2,p:KEY_SPLINES.LINEAR}};this.m(this.PE);this.PE.j("HIDDEN",j);a=160;this.Xt=new sc.ea("");this.Xt.l(20,a);this.m(this.Xt);a=a+16;this.Zs=new sc.ea("");this.Zs.l(20,a);this.m(this.Zs);a=a+16;this.su=new ig.X;this.su.l(20,a);this.m(this.su);a=new ig.Dc(this.r,418,33,12,18);a.l(7,25);this.m(a);a=new ig.Lf("#545454",155,1);a.l(20,39);this.m(a);this.zf.push(a);a=new ig.Dc(this.r,440,64,8,8);a.l(21,62);this.m(a);a=new ig.Dc(this.r,433,34,22,16);a.l(8,85);this.m(a);a=new ig.Lf("#545454",156,1);a.l(19,
97);this.m(a);this.zf.push(a);a=new ig.Dc(this.r,457,37,14,10);a.l(8,148);this.m(a);a=new ig.Lf("#545454",152,1);a.l(23,154);this.m(a);this.zf.push(a);this.Cy=new sc.BZa;this.m(this.Cy);this.jm=new sc.AZa;this.m(this.jm);this.j("HIDDEN",j)},update:function(){if(!ig.ua.Ph()&&this.Ba.Tc()&&this.jm.a.Il){sc.V.aW()?this.jm.scroll(-20):sc.V.$V()&&this.jm.scroll(20);sc.V.Fr()?this.jm.scroll(200*ig.g.ga):sc.V.ls()&&this.jm.scroll(-200*ig.g.ga)}},G6a:function(){this.dc&&this.dc.play();(this.aga=!this.aga)?
this.jm.show(this.fna,w,j):this.jm.hide()},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},show:function(a){this.FK.$A(s,j);this.cY.fa("\\i[help2]"+ig.lang.get("sc.gui.menu.quests.tasks"));this.C4a(a);sc.e.kk(this.Og.bind(this));sc.e.Q.Cg(this.Ba);sc.e.Ru();ig.ua.ed(0.2);this.j("DEFAULT")},hide:function(){this.fna=s;this.aga=w;this.cY.fa("\\i[help2]"+ig.lang.get("sc.gui.menu.quests.fav"));this.cY.setActive(j);sc.e.Q.Lj(this.Ba);sc.e.Ru();ig.ua.ed(0.2);this.j("HIDDEN",w,w,function(){this.FK.$A(s,
j)}.bind(this))},C4a:function(a){this.fna=a;this.Ii.fa(a.name);this.Aq.fa(a.description);this.Ica.fa(a.location.Ub);this.Jca.fa(a.location.map);this.FK.$A(a.Nc);this.DQ(a.aa);var b=sc.Xb.Ss(a.id),c=160,d=s,e=a.Nba&!b;this.cea.fa(b?a.XNa||a.oj||"???":a.oj||"???");this.jm.content.rg();if(b){this.Nk=this.FK.Nk="solved";this.jm.Nk="solved";for(d=this.zf.length;d--;)this.zf[d].color="#008277";this.cY.setActive(j)}else{this.Nk=this.FK.Nk="default";this.jm.Nk="default";for(d=this.zf.length;d--;)this.zf[d].color=
"#545454";this.cY.setActive(w)}if(e){if(a.zm.exp){this.Xt.fa("\\i[exp]????");c=c+16}else this.Xt.fa("");this.PE.j("HIDDEN");if(a.zm.money){this.Zs.fa("\\i[credit]????????");c=c+16}else this.Zs.fa("")}else{if(a.zm.exp){d="\\i[exp]"+(sc.q.R.gpa(a.zm.exp.exp,a.aa)+"* ");d=d+(a.zm.exp.bonus?"+"+a.zm.exp.bonus:"");this.Xt.fa(d);this.Xt.a.i.y=c;c=c+16;this.PE.j("DEFAULT",j)}else{this.Xt.fa("");this.PE.j("HIDDEN",j)}if(a.zm.money){this.Zs.fa("\\i[credit]"+(a.zm.money||0));this.Zs.a.i.y=c;c=c+16}else this.Zs.fa("")}this.su.rg();
if(a.zm.items){this.su.a.i.y=c;for(var c=this.su,d=a.zm.items,h=0,k=0;k<d.length;k++){var l=d[k].amount,m=sc.Pb.getItem(d[k].id),n="\\i["+(m.icon+sc.Pb.uo(m.rarity||0)||"item-default")+"]",n=e?n+"?????????????":n+ig.Oa.wc(m.name);l>1&&(n=n+(" x "+l));l=new sc.ea(n);l.l(0,h);c.m(l);h=h+17}}if(b){this.jm.hide();this.Cy.show(a)}else{this.Cy.hide();this.jm.show(a)}},sF:function(){sc.V.Bo()&&this.Ba.eca()},Og:function(){this.hide();sc.e.jk();sc.e.Ocb()},lb:function(a,b,c){a==sc.e&&b==sc.ca.e8&&this.show(c)}})});
ig.G=j;
ig.I("game.feature.menu.gui.quests.quest-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.quests.quest-misc","game.feature.menu.gui.quests.quest-tab-list","game.feature.menu.gui.quests.quest-details").H(function(){sc.IZa=sc.bq.extend({mb:s,Kd:s,NC:s,Aa:s,pw:s,wG:s,$W:s,Sc:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.pw=new sc.EZa;this.pw.l(8,29);this.pw.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:-(this.pw.a.size.x/
2)},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_EASE:{state:{alpha:0,offsetX:-(this.pw.a.size.x/2)},time:0.2,p:KEY_SPLINES.EASE}};this.m(this.pw);this.pw.hide(j);this.wG=new sc.HZa;this.wG.l(8,29);this.m(this.wG);this.wG.j("HIDDEN",j);this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.Kd=new sc.ec("\\i[help3]"+
ig.lang.get("sc.gui.menu.item.sort-title"),g,j,sc.Ic.Kc);this.Kd.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.Kd.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.Kd.Qb=this.CA.bind(this);this.NC=new sc.ec("\\i[help2]"+ig.lang.get("sc.gui.menu.quests.fav"),g,j,sc.Ic.Kc);this.NC.Ul=j;this.NC.dc=s;this.NC.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.NC.a.size.y},time:0.2,p:KEY_SPLINES.EASE}};this.NC.Qb=function(){sc.e.Iea?this.$W.G6a():
this.wG.xua()}.bind(this);this.Sc=new sc.xM(this.KP.bind(this));this.Sc.Rd("questAccepted",sc.yt.ACCEPTED,0);this.Sc.Rd("auto",sc.yt.ORDER,1);this.Sc.Rd("name",sc.yt.NAME,2);this.Sc.Rd("questLevel",sc.yt.LEVEL,3);this.$W=new sc.CZa(this.NC);this.m(this.$W);this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this);this.wG.ac();this.$W.ac()},Yb:function(){sc.K.lc(sc.e,this);this.wG.Yb();this.$W.Yb()},xd:function(){this.ac();sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);ig.ua.ed(0.2);this.TM(ig.lang.get("sc.gui.menu.sort.questAccepted"));
this.pw.show();this.wG.show();this.ek()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.zd(this.Kd);sc.e.Q.zd(this.NC);this.pw.hide();this.wG.hide();this.$W.hide();this.Aa=s;this.Sc.Ga&&this.Sc.Sk();ig.C0()},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},lD:function(){return sc.V.hK()},web:function(){return sc.V.ZF()},CA:function(){if(this.Sc.Ga)this.Sc.Sk();else{ig.T.Mc(this.Sc);this.Sc.CX(this.Kd)}},KP:function(a){if(a.data){this.Sc.Sk();
sc.e.Dy(a)}},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.quests.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.quests.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Q.md(this.Kd,this.lD.bind(this));sc.e.Q.md(this.NC,this.web.bind(this));sc.e.Qi(M("NC").bind(this));sc.e.Qi(M("Kd").bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},TM:function(a){var b=
"\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title")+": ";this.Kd.fa(b+("\\c[3]"+a+"\\c[0]"));sc.e.Ru()},lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.fAa)this.pw.FQ(sc.e.ota);else if(b==sc.ca.e8){this.Kd.setActive(w);this.pw.j("HIDDEN_EASE")}else if(b==sc.ca.Iia){this.Kd.setActive(j);ig.input.dd&&this.pw.FQ(s);this.pw.j("DEFAULT")}else b==sc.ca.Hia?c!=sc.e.vG&&this.TM(ig.lang.get("sc.gui.menu.sort.questAccepted")):b==sc.ca.sr&&this.TM(c.text)}})});ig.G=j;
ig.I("game.feature.menu.gui.tab-box").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes").H(function(){sc.oBa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},vh:s,keys:[],Wh:{},fd:[],Fw:[],om:-1,dna:s,btb:s,atb:s,$sb:s,BFa:j,J3:s,Zca:s,el:-1,Fk:s,zs:-1,RB:[],f:function(a){this.parent();
this.BFa=a==g?j:a;this.J3=new sc.gq;this.J3.v(100,200);this.J3.l(0,21);this.m(this.J3);a=new ig.Dc(this.r,32,408,5,5);a.l(0,21);this.m(a);this.Zca=new ig.Lf("#FF6D00",95,1);this.Zca.l(5,21);this.m(this.Zca);this.v(100,200);this.vh=new sc.Wf;this.vh.tk(function(a){if(this.Fk!=a){a.Ce(j);this.Fk=a;this.iQ(a);this.Oea();this.LP(a,w)&&this.Du(this.HU(a))}else this.LP(a,j)}.bind(this));this.vh.si(function(a){this.p4(a)}.bind(this));this.vh.Bk(function(){this.o4()}.bind(this))},v:function(a,b){this.parent(a,
b);this.Zca.v(a-5,1)},P5:function(a,b){this.J3.v(a,b)},wn:function(a,b,c){(c=this.tW(a,b,c))||f(Error("Tab Button Creation failed for index: "+b));this.vh.Uc(c,b,0);this.fd[b]=c;this.Wh[a]=c;this.keys[b]=a;this.Oea();if(this.fd.length==1){this.om=0;this.vh.Mj(0,0);this.Wh[a].Ce(j);this.Fk=this.Wh[a]}},Du:function(a,b,c){if(b)this.el=-1;if(this.el!=a){this.fd[a]||f(Error("No such tab at index: "+a));if(this.om>=0&&this.el>=0)(b=this.Fw[this.el])&&this.gsa(b,c);this.om=a;this.dna=s;b=this.el;this.el=
this.om;var d=this.Fw[a];if(d)this.xsa(d,a,c);else{this.dna=this.isa(a,c);if(this.BFa)this.Fw[this.om]=this.dna}this.uW(this.om,b)}},show:function(a){sc.e.Q.aN(this.vh);a!=g&&this.Du(a)},hide:function(){sc.e.Q.gQ(this.vh)},Oea:function(){for(var a=9,b=s,c=0;c<this.fd.length;c++){b=this.fd[c];b.a.i.x=a;a=a+b.a.size.x}},iQ:function(a,b){for(var c=0;c<this.fd.length;c++){a!=this.fd[c]&&this.fd[c].Ce(w);if(b)this.fd[c].focus=w}},X1:function(){return this.om<=-1?s:this.fd[this.om]},LU:function(){return this.keys[this.om]},
HU:function(a){return this.fd.indexOf(a)},p4:F(),LP:F(),tW:F(),o4:F(),uW:F(),gsa:F(),isa:F(),xsa:F()});sc.Q7=sc.oBa.extend({Rm:s,Nh:s,Eca:0,Scb:20,ona:0,Oe:s,f:function(a,b){this.parent(a);this.ona=b||0;this.Oe=new sc.kM;this.Oe.l(0,35);this.Oe.v(this.a.size.x,223);this.m(this.Oe)},update:function(){this.Nh&&(this.Nh.Tc()&&ig.input.dd)&&this.Uk()},v:function(a,b){this.parent(a,b);this.Oe&&this.Oe.v(this.a.size.x,223)},show:function(){this.parent()},hide:function(){this.parent();this.Rm.xi()},gsa:function(){if(this.Rm){this.Rm.xi();
this.Rm.j("HIDDEN",j)}},xsa:function(a,b,c){this.Rm=a.list;this.Nh=a.Ba;a.sort!=this.ona&&this.JP(this.Rm,this.Nh,this.X1().data.type,this.ona);this.Rm.vf();this.Rm.j("DEFAULT",j);ig.input.dd?this.Nh.R5():this.Nh.dX(w,c&&c.skipSounds)},isa:function(){var a={Ba:s,list:s,sort:sc.pE.ORDER};this.Nh=new sc.Wf;this.Rm=new sc.jH(1,this.Eca,this.Scb);this.Rm.l(0,35);this.Rm.v(this.a.size.x,223);this.Rm.E5(this.Nh);this.Rm.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,
p:KEY_SPLINES.LINEAR}};this.m(this.Rm);this.Nh.Kn=this.Kn.bind(this);this.Nh.Uk=this.Uk.bind(this);this.Nh.si(function(a){this.i4(a)}.bind(this));this.Nh.Bk(function(){this.j4()}.bind(this));this.Nh.tk(function(a){this.osa(a)}.bind(this));this.JP(this.Rm,this.Nh,this.X1().data.type,a.sort);a.Ba=this.Nh;a.list=this.Rm;this.Rm.vf();return a},sort:function(a){var b=this.fd[this.om].data.type;this.Fw[this.om].sort=a;this.JP(this.Rm,this.Nh,b,a);ig.input.dd?this.Nh.R5():this.Nh.dX(w,j)},Kn:function(){return sc.V.Xr()||
sc.V.Fr()||sc.V.ls()},Uk:function(){var a=-1;sc.V.Xs()?a=1:sc.V.Ws()&&(a=0);this.Vva(a)},Vva:function(a){var b=this.om,c=this.X1();if(a>=0){c.Ce(w);if(a==1){b++;b>=this.fd.length&&(b=0)}else{b--;b<0&&(b=this.fd.length-1)}this.Fk=c=this.fd[b];c.Ce(j);a=this.h4(c,b,a);this.Du(b,w,a);this.iQ(c,j);this.Oea()}},osa:F(),i4:F(),j4:F(),h4:F(),JP:F()})});ig.G=j;
ig.I("game.feature.menu.gui.enemies.enemy-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes","game.feature.menu.gui.tab-box").H(function(){sc.iVa=sc.Q7.extend({dc:s,Gv:s,$z:s,Tf:s,f:function(){this.parent(j);this.v(264,262);this.F(ig.k.ha,ig.k.W);this.rb(264,262);this.P5(264,243);this.Gv=this.dc=sc.qd.submit;this.$z=sc.qd.xx;this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},
HIDDEN:{state:{alpha:0,offsetX:-132},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_EASE:{state:{alpha:0,offsetX:-132},time:0.2,p:KEY_SPLINES.EASE}};this.Tf=ig.Dj.get("enemies");var a=new sc.ea(ig.lang.get("sc.gui.status-hud.lvl"),{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(7,-8);this.Oe.m(a);this.wn("animals",0,{type:sc.Uo.ANIMALS});this.wn("mecha",1,{type:sc.Uo.MECHA});this.wn("avatars",2,{type:sc.Uo.PLAYERS});this.wn("abstract",3,{type:sc.Uo.ABSTRACT});this.wn("boss",4,{type:sc.Uo.BOSS})},ac:function(){sc.K.Na(sc.e,
this)},Yb:function(){sc.K.lc(sc.e,this)},show:function(){this.parent();this.Du(this.om||0,j,{skipSounds:j});ig.ua.ed(0.2);this.j("DEFAULT")},hide:function(){this.parent();this.j("HIDDEN")},h4:function(a,b,c){this.dc.play();sc.e.KRa(c==1?1:-1);return{skipSounds:j}},uW:function(a){sc.e.DG(a);(ig.input.dd||this.Nh.Lq())&&sc.e.Eg(s,j)},tW:function(a,b,c){a=new sc.BB.XH(ig.lang.get("sc.gui.menu.enemy.tabs."+a),"enemy-"+a,105);a.re.l(7,1);a.l(0,2);a.setData({type:c.type});this.m(a);return a},LP:function(a,
b){if(!b){this.dc.play();this.Du(this.HU(a));for(var c=this.fd.length;c--;)if(a==this.fd[c]){sc.e.DG(c);break}sc.e.Eg(s,j);return w}},p4:function(){ig.input.dd&&sc.e.Eg(s,j)},o4:function(){sc.e.Eg(s,j)},JP:function(a,b,c,d){var e=s,h=e=s,k=s,l=s,d=this.b$a(c,d);a.clear();b.clear();for(b=0;b<d.length;b++){h=d[b];k=this.Tf[h];if(sc.ta.pg("combat","kill"+h)&&k.track){l=c==sc.Uo.BOSS?"\\i[enemy-"+this.a$a(k.category)+"-boss]":"\\i[enemy-"+this.LU()+(k.boss?"-boss":"")+"]";e="";e=e+(l+ig.Oa.wc(k.name));
e=new sc.eVa(e,h,k.level||1);a.Rd(e)}}},i4:function(a){if(a.key){sc.e.Eg(a.key);sc.e.tc(s,j)}else{sc.e.Eg(a.key);a.data&&(a.data instanceof Object||sc.e.tc(a.data))}},j4:function(){sc.e.Eg(s,j);sc.e.tc(s,j)},b$a:function(a,b){var c=[],d=this.Tf,e;for(e in d){var h=d[e];a==sc.Uo.BOSS?h.boss&&c.push(e):sc.Uo[h.category||"ABSTRACT"]==a&&c.push(e)}b!=g&&this.pva(c,b);return c},pva:function(a,b){switch(b){case sc.lH.ORDER:a.sort(function(a,b){a=this.Tf[a].order;b=this.Tf[b].order;return a-b}.bind(this));
break;case sc.lH.NAME:a.sort(function(a,b){return ig.Oa.wc(this.Tf[a].name).localeCompare(ig.Oa.wc(this.Tf[b].name))}.bind(this));break;case sc.lH.LEVEL:a.sort(function(a,b){var e=this.Tf[a],h=this.Tf[b];return(e.level||1)==(h.level||1)?e.order-h.order:(e.level||1)-(h.level||1)}.bind(this));break;case sc.lH.AREA:a.sort(function(a,b){var e=this.Tf[a],h=this.Tf[b];return e.area==h.area?e.order-h.order:sc.map.AF(e.area).toString().localeCompare(sc.map.AF(h.area).toString())}.bind(this))}},a$a:function(a){switch(sc.Uo[a]){case sc.Uo.ANIMALS:return"animals";
case sc.Uo.MECHA:return"mecha";case sc.Uo.PLAYERS:return"avatars";case sc.Uo.ABSTRACT:return"abstract"}},lb:function(a,b,c){if(a==sc.e&&b==sc.ca.sr){sc.e.Eg(s,j);sc.e.tc(s,j);this.sort(c.data.KG)}}})});ig.G=j;
ig.I("game.feature.combat.gui.enemy-display-gui").J("impact.feature.gui.gui").H(function(){sc.bVa=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.EASE_IN}},hf:s,Um:s,P:s,Ob:s,Y5:w,vb:"idle",Lea:s,$P:0,uta:0,f:function(a,b,c,d,e){this.parent();this.Ob=d;this.vb=c||"idle";if(this.Lea=e||s)this.$P=5+Math.random()*10;this.hf=new sc.bv(a);this.j("HIDDEN",j);if(this.hf.loaded&&b)this.Y5=j;this.hf.wr(this);this.hf.loaded&&this.Ob&&this.Ob(this)},
th:function(){this.hf&&this.hf.zc();this.hf=s;this.Um&&this.Um.clear();this.Um=s},Pq:function(a,b){if(this.hf)if(b==this.hf){this.v(this.hf.size.x,this.hf.size.y+this.hf.size.z);this.rb(this.a.size.x/2,this.a.size.y/2);this.hf.nb.wr(this)}else if(b==this.hf.nb){this.hqa();this.j("DEFAULT",this.Y5)}},hqa:function(){this.Um=new ig.G7;this.Um.iKa(this.a.size.x,this.a.size.y);ig.t.pushState(this.Um);this.P=ig.t.af(ig.Zb,0,this.hf.size.z,0,{});this.P.v(this.hf.size.x,this.hf.size.y,this.hf.size.z);this.P.nb=
this.hf.nb;this.P.ld();this.P.Ja(this.vb);this.Ob&&this.Ob(this);ig.t.N4()},update:function(){if(this.Um){this.Um.sO();if(this.Lea&&this.$P>0){this.$P=this.$P-ig.g.Da;if(this.$P<=0)if(this.uta){this.uta=w;this.$P=5+Math.random()*10;this.P.Ja(this.vb)}else{this.$P=2;this.uta=j;this.P.Ja(this.Lea)}}}},va:function(a){this.Um&&a.OEa(this.Um,0,0)}})});ig.G=j;
ig.I("game.feature.menu.gui.enemies.enemy-pages").J("impact.feature.gui.base.box","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.combat.gui.enemy-display-gui","game.feature.menu.gui.menu-misc","game.feature.gui.base.misc").H(function(){var a=[1,1,1,1];sc.lVa=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},location:s,tca:s,display:s,WE:s,TE:s,UE:s,VE:s,RA:s,A1:s,zaa:s,f:function(){this.parent();this.v(269,
216);this.location=new sc.jVa;this.location.l(2,0);this.m(this.location);this.tca=new sc.hVa;this.m(this.tca);this.display=new sc.aVa;this.display.l(0,14);this.m(this.display);var a=15;this.WE=this.Qt("maxhp",0,0,a);a=a+14;this.TE=this.Qt("atk",1,0,a);a=a+14;this.UE=this.Qt("def",2,0,a);a=a+14;this.VE=this.Qt("foc",3,0,a);a=a+23;this.RA=new sc.qya;this.RA.l(0,a);this.m(this.RA);this.A1=new sc.fVa;this.A1.l(0,this.display.a.size.y+3+14);this.m(this.A1);this.zaa=new sc.cVa;this.m(this.zaa);this.setData();
this.j("HIDDEN",j)},setData:function(b,c,h){if(c){this.display.sX(b,j,c.anim,c.extra);var k=c.params;this.WE.sa(k.hp,h);this.TE.sa(k.attack,h);this.UE.sa(k.defense,h);this.VE.sa(k.focus,h);this.RA.gQa(k.elemFactor||a,h);this.A1.Xib(sc.q.R.gpa(c.exp||0,c.level),c.credit||0,h);this.zaa.lib(c.itemDrops,h);this.location.Fua(c.area,h);this.tca.sib(sc.ta.pg("combat","kill"+b),h)}else{this.display.sX();this.WE.hide();this.TE.hide();this.UE.hide();this.VE.hide();this.RA.hide();this.A1.hide();this.zaa.hide();
this.location.hide();this.tca.hide()}},Qt:function(a,b,c,k){a=new sc.Dha(ig.lang.get("sc.gui.menu.equip."+a),b);a.l(c,k);this.m(a);return a}});sc.mVa=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},VJ:s,YQ:s,FL:s,TN:s,content:s,f:function(){this.parent();this.v(269,216);this.VJ=new sc.ea("",{maxWidth:259});this.VJ.F(ig.k.za,ig.k.gb);this.VJ.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,
p:KEY_SPLINES.LINEAR}};this.VJ.j("HIDDEN",j);this.m(this.VJ);this.content=new ig.X;this.m(this.content);this.YQ=new sc.ea(ig.lang.get("sc.gui.menu.enemy.species"),{font:sc.Ka.Ve});this.YQ.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.YQ.l(2,0);this.m(this.YQ);this.FL=new sc.ea(ig.lang.get("sc.gui.menu.enemy.trivia"),{font:sc.Ka.Ve});this.FL.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};
this.FL.l(2,15);this.m(this.FL);this.TN=new ig.X;this.TN.v(265,186);this.TN.l(2,30);this.m(this.TN);this.setData();this.j("HIDDEN",j)},setData:function(a,b){this.VJ.j("HIDDEN",j);this.YQ.j("HIDDEN",j);this.FL.j("HIDDEN",j);this.TN.rg();if(b){var c=b.boss?1:b.kills||sc.lza,k=sc.ta.pg("combat","kill"+a)||0;if(k>=c){c=s;c=b.species?ig.Oa.wc(b.species,j):ig.lang.get("sc.gui.menu.enemy.unknown");this.YQ.fa(ig.lang.get("sc.gui.menu.enemy.species")+c);this.YQ.j("DEFAULT",j);if((c=b.descriptions)&&c.length>=
1){var k=new ig.ce(""),l=s,m=0,n=0,o={font:sc.Ka.Ve,maxWidth:265},l=new ig.Lf("#C7C7C7",269,1);l.l(-2,m);this.TN.m(l);for(var m=m+1,t=0;t<c.length;t++){l=c[t];k.fL(l.condition||"");if(k.evaluate()){l=new sc.ea(ig.Oa.wc(l.text),o);l.l(0,m);this.TN.m(l);m=m+l.a.size.y;n++}}this.FL.fa(ig.lang.get("sc.gui.menu.enemy.trivia")+n+" / "+c.length+" ("+this.X$a(n,c.length)+"%)")}else this.FL.fa(ig.lang.get("sc.gui.menu.enemy.trivia")+"No Reports found");this.FL.j("DEFAULT",j)}else{m=ig.lang.get("sc.gui.menu.enemy.killMore");
c=c-k;m=m.replace("[x]",c);m=m.replace("[y]",ig.Oa.wc(b.name)+(c>1?"s":""));this.VJ.fa(m);this.VJ.j("DEFAULT",j)}}},X$a:function(a,b){return Math.floor(a/b*100)}});sc.jVa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:4},time:0.1,p:KEY_SPLINES.LINEAR}},location:s,xc:s,f:function(){this.parent();this.v(269,20);this.location=new sc.ea("Location: Bergen Trail",{font:sc.Ka.Ve});this.location.a.N={DEFAULT:{state:{},time:0.1,
p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:4},time:0.2,p:KEY_SPLINES.LINEAR}};this.location.l(10,0);this.m(this.location);this.xc=new ig.Dc(this.r,481,224,8,11);this.xc.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,Ia:0,Ma:0,oc:0.2},time:0.2,p:KEY_SPLINES.LINEAR}};this.xc.rb(4,6);this.m(this.xc);this.hide(j)},Fua:function(a,b){var c=a?sc.map.AF(a):s;this.location.fa(ig.lang.get("sc.gui.menu.enemy.location")+(c?c:"???"));this.location.j("DEFAULT",b);this.xc.j("DEFAULT",
b)},hide:function(a){this.location.j("HIDDEN",a);this.xc.j("HIDDEN",a)}});sc.Dha=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.EASE}},yc:s,name:"Flowey",qa:0,f:function(a,b){this.parent();this.v(118,12);this.name=a||"Flowey";this.qa=b||0;var c=new sc.ea(a,{font:sc.Ka.Lb});c.l(13,3);this.m(c);this.yc=new sc.Ib(9999999,{transitionTime:0.15});this.yc.F(ig.k.ha,ig.k.W);this.yc.l(0,4);this.m(this.yc);this.j("HIDDEN",
j)},sa:function(a,b){this.a.fj=="HIDDEN"&&this.yc.sa(0,j);this.j("DEFAULT",j);this.yc.sa(a||0,b)},hide:function(){this.j("HIDDEN",j)},va:function(a){a.ia(this.r,0,0,520,48,118,11);a.ia(this.r,0,0,33+this.qa*12,280,11,11)}});var b={D:0,C:1,B:2,A:3,S:4};sc.cVa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},Td:s,V4:[],f:function(){this.parent();this.F(ig.k.fb,ig.k.W);this.v(269,70);this.l(0,144);
var a=new sc.ea(ig.lang.get("sc.gui.menu.enemy.drops"),{font:sc.Ka.Lb});a.l(2,0);this.m(a);a=new sc.ea(ig.lang.get("sc.gui.menu.enemy.rank"),{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(1,0);this.m(a);a=new sc.ea(ig.lang.get("sc.gui.menu.enemy.chance"),{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(62,0);this.m(a);a=new ig.Lf("#CCCCCC",269,1);a.l(0,7);this.m(a);this.Td=new ig.X;this.Td.v(269,60);this.Td.l(0,10);this.m(this.Td)},lib:function(a,c){this.j("DEFAULT",j);this.Td.rg();if(a)for(var h=s,k=s,h=h=h=s,
l=0,m=0;m<4;m++)if(a[m]){h=sc.Pb.getItem(a[m].item);k="\\i["+h.icon+sc.Pb.uo(h.rarity||0)+"]";k=sc.ta.pg("items",a[m].item)?k+ig.Oa.wc(h.name):k+"???????????????";h=new sc.ea(k);h.l(0,l-3);this.Td.m(h);h=new sc.$za(100,{transitionTime:0.15});this.V4[m]&&h.sa(this.V4[m],j);h.sa(Math.round(a[m].prob*100),c);h.F(ig.k.ha,ig.k.W);h.l(63,l+2);this.Td.m(h);this.V4[m]=Math.round(a[m].prob*100);h=new ig.Dc(this.r,537+b[a[m].rank||"D"]*15,34,14,12);h.F(ig.k.ha,ig.k.W);h.l(1,l);this.Td.m(h);l=l+15}else this.V4[m]=
0},hide:function(){for(var a=4;a--;)this.V4[a]=0;this.j("HIDDEN",j)}});sc.hVa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},count:s,xc:s,f:function(){this.parent();this.F(ig.k.ha,ig.k.W);this.v(269,20);this.count=new sc.Ib(99999999,{size:sc.uf.Kc,transitionTime:0.15});this.count.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:4},time:0.2,p:KEY_SPLINES.LINEAR}};
this.count.F(ig.k.ha,ig.k.W);this.count.l(14,3);this.m(this.count);this.xc=new ig.Dc(this.r,579,19,11,10);this.xc.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,Ia:0,Ma:0,oc:-0.3},time:0.2,p:KEY_SPLINES.LINEAR}};this.xc.F(ig.k.ha,ig.k.W);this.xc.l(1,2);this.m(this.xc);this.hide()},sib:function(a,b){this.count.a.Il||this.count.sa(0,j);this.count.sa(a||0,b);this.count.j("DEFAULT",b);this.xc.j("DEFAULT",b)},hide:function(){this.count.j("HIDDEN");this.xc.j("HIDDEN")}});sc.fVa=
ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},exp:s,Ye:s,f:function(){this.parent();this.F(ig.k.ha,ig.k.W);this.v(147,10);this.exp=new sc.Ib(9999999,{transitionTime:0.15});this.exp.l(15,1);this.m(this.exp);this.Ye=new sc.Ib(9999999,{transitionTime:0.15});this.Ye.l(89,1);this.m(this.Ye);this.hide()},Xib:function(a,b,c){this.j("DEFAULT",j);this.exp.sa(a,c);this.Ye.sa(b,c)},hide:function(){this.exp.sa(0,
j);this.Ye.sa(0,j);this.j("HIDDEN",j)},va:function(a){a.ia(this.r,0,0,472,32,14,10);a.ia(this.r,75,0,488,32,12,10)}});var c={"0":{x:-2,y:42,DR:0,ER:46,Rga:49,Sga:29,width:49,Uz:j},1:{x:77,y:-1,DR:66,ER:7,Rga:48,Sga:7,width:47,right:j},2:{x:77,y:10,DR:77,ER:18,Rga:60,Sga:18,width:36,right:j},3:{x:-2,y:31,DR:0,ER:35,Rga:38,Sga:18,width:38,Uz:j}};sc.qya=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},
QA:[],zf:[],images:[],f:function(){this.parent();this.v(118,51);var a=new sc.ea(ig.lang.get("sc.gui.menu.enemy.resistance"),{font:sc.Ka.Lb});a.l(0,0);this.m(a);for(a=0;a<4;a++){this.r7a(a);this.p7a(a);this.n7a(a)}},gQa:function(a,b){this.j("DEFAULT",j);if(a)for(var c=this.QA.length;c--;){var k=this.r2(a[c]);if(k){this.zf[c].show(b);this.QA[c].sa(k,b);k<0?this.QA[c].Te(sc.ef.hm):this.QA[c].Te(sc.ef.$o);this.images[c].j("DEFAULT",b)}else{this.zf[c].hide(b);this.QA[c].sa(0,b);this.QA[c].j("HIDDEN",b);
this.images[c].j("HIDDEN",b)}}else for(c=this.QA.length;c--;){this.QA[c].hide();this.zf[c].hide(j)}},hide:function(){for(var a=this.QA.length;a--;){this.QA[a].hide();this.zf[a].hide(j);this.images[a].j("HIDDEN",j)}this.j("HIDDEN",j)},r7a:function(a){var b=new sc.$za(999,{signed:j,transitionTime:0.15});b.l(c[a].x,c[a].y);this.m(b);this.QA[a]=b},p7a:function(a){var b=new sc.dVa(a,c[a].width);b.l(c[a].DR,c[a].ER);this.m(b);this.zf[a]=b},n7a:function(a){var b=new ig.Dc(this.r,520+a*21,120,21,21);b.a.N=
{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};b.l(c[a].Rga,c[a].Sga);this.m(b);this.images[a]=b},r2:function(a){return Math.floor(((a||1)-1)*-100)},va:function(a){a.ia(this.r,0,0,520,63,118,51)}});sc.dVa=ig.X.extend({xjb:s,Ld:s,HF:w,f:function(a,b){this.parent();this.v(b+5,5);this.eg=new sc.x8(5,c[a].right||w,c[a].Uz||w,sc.TH.qr);this.m(this.eg);this.Ld=new ig.Lf("#C7C7C7",b,1);this.Ld.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},
HIDDEN:{state:{Ia:0},time:0.1,p:KEY_SPLINES.LINEAR}};this.m(this.Ld);if(c[a].right){this.eg.l(0,5);this.Ld.l(5,0);this.Ld.rb(0,0)}else{this.eg.l(b+5,0);this.Ld.l(0,4);this.Ld.rb(b,0)}this.eg.hide();this.Ld.j("HIDDEN",j)},show:function(a){if(!this.HF)if(a){this.eg.show(0);this.Ld.j("DEFAULT",j)}else{this.eg.hide();this.eg.show(0.1);this.Ld.j("HIDDEN",j);this.Ld.j("DEFAULT",w,w,s,0.1);this.HF=j}},hide:function(a){if(this.HF){this.eg.hide(a?0:0.1,a?0:0.1);this.Ld.j("HIDDEN",a);this.HF=w}}});sc.$za=ig.X.extend({r:new ig.$("media/gui/menu.png"),
N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},yc:s,f:function(a,b){this.parent();this.yc=new sc.Ib(a,b);this.m(this.yc);this.v(this.yc.a.size.x+9,this.yc.a.size.y)},sa:function(a,b){a!=0&&this.j("DEFAULT",j);this.yc.sa(a,b);this.v(this.yc.a.size.x+9,this.yc.a.size.y)},Te:function(a){this.yc.Te(a)},hide:function(){this.sa(0,j);this.j("HIDDEN",j)},va:function(a){a.ia(this.r,this.a.size.x-8,0,this.yc.color*9,407,8,8)}});sc.aVa=ig.te.extend({display:s,
Td:s,N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.EASE}},eb:new ig.$b("media/gui/menu.png",{width:8,height:6,left:4,top:4,right:4,bottom:4,Fb:{"default":{x:520,y:33}}}),f:function(){this.parent(147,111);this.F(ig.k.ha,ig.k.W);this.Td=new ig.X;this.Td.a.clip=j;this.Td.v(145,109);this.Td.l(1,1);this.m(this.Td)},sX:function(a,b,c,k){if(a){if(this.display){this.display.remove(j);this.display=s}if(a){this.display=new sc.bVa(a,j,c,this.n6a.bind(this),
k);this.Td.m(this.display);this.j("DEFAULT",j)}}else{this.display&&(b?this.display.remove(j):this.display.j("HIDDEN",w,j));this.j("HIDDEN",j)}},n6a:function(a){a.hf&&a.l(this.Td.a.size.x/2-a.a.size.x/2,this.Td.a.size.y/2-a.a.size.y/2)}})});ig.G=j;
ig.I("game.feature.menu.gui.enemies.enemy-misc").J("impact.feature.gui.base.box","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.menu.gui.enemies.enemy-pages").H(function(){sc.gVa=ig.te.extend({r:new ig.$("media/gui/basic.png"),eb:new ig.$b("media/gui/menu.png",{width:2,height:8,left:27,top:21,right:27,bottom:3,Fb:{"default":{x:520,y:0}}}),title:s,aa:s,Gz:s,display:s,oe:s,Xd:s,rl:s,Rz:s,uA:s,Ff:[],hf:s,page:-1,key:"-1s",f:function(){this.parent(281,
265);this.F(ig.k.fb,ig.k.W);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:-(this.a.size.x/2)},time:0.2,p:KEY_SPLINES.LINEAR}};this.title=new sc.ea("");this.title.F(ig.k.za,ig.k.W);this.title.l(0,4);this.m(this.title);this.Gz=new sc.ea("");this.Gz.l(7,3);this.m(this.Gz);this.aa=new sc.Ib(99,{leadingZeros:2});this.aa.F(ig.k.ha,ig.k.W);this.aa.l(5,11);this.m(this.aa);var a=new sc.lVa;a.l(6,24);this.m(a);this.Ff.push(a);a=new sc.mVa;a.l(6,24);this.m(a);this.Ff.push(a);
a=new ig.Lf("#545454",277,22);a.F(ig.k.za,ig.k.xb);a.l(0,2);this.m(a);a=new sc.ea("lvl",{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(6,3);this.m(a);this.oe=new sc.ec("\\i[page-right]",32,j,sc.Ic.Kc);this.oe.Qb=this.usa.bind(this);this.oe.re.l(1,0);this.oe.Ul=j;this.oe.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:5},time:0.2,p:KEY_SPLINES.LINEAR}};this.oe.F(ig.k.ha,ig.k.xb);this.oe.l(2,2);this.m(this.oe);this.Xd=new sc.ec("\\i[page-left]",32,j,sc.Ic.Kc);this.Xd.Qb=
this.msa.bind(this);this.Xd.re.l(1,0);this.Xd.Ul=j;this.Xd.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:5},time:0.2,p:KEY_SPLINES.LINEAR}};this.Xd.F(ig.k.fb,ig.k.xb);this.Xd.l(2,2);this.m(this.Xd);this.oe.j("HIDDEN",j);this.Xd.j("HIDDEN",j);this.rl=new ig.X;this.rl.F(ig.k.za,ig.k.xb);this.rl.l(0,7);this.rl.v(60,8);this.rl.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};a=new ig.Dc(this.r,96,0,8,8);
a.F(ig.k.za,ig.k.W);this.rl.m(a);this.Rz=new sc.Ib(99);this.Rz.F(ig.k.ha,ig.k.W);this.Rz.l(36,0);this.rl.m(this.Rz);this.uA=new sc.Ib(s);this.uA.sa(this.Ff.length,j);this.uA.F(ig.k.fb,ig.k.W);this.uA.l(36,0);this.rl.m(this.uA);this.m(this.rl);this.sX()},show:function(){for(var a=this.Ff.length;a--;)this.page==a&&this.hf?this.Ff[a].j("DEFAULT",j):this.Ff[a].j("HIDDEN",j);this.j("DEFAULT")},hide:function(){this.Ff[0].display.sX(s,j);this.page=-1;this.key="-1s";this.j("HIDDEN");sc.e.Q.zd(this.oe);sc.e.Q.zd(this.Xd)},
tsa:function(){return sc.V.p5()},f4:function(){return sc.V.n3()},usa:function(){this.ZX(1)},msa:function(){this.ZX(-1)},O5:function(a){if(a!=this.page){this.page>=0&&this.Ff[this.page].j("HIDDEN",j);this.page=a||0;this.Ff[this.page].j("HIDDEN",j);this.Ff[this.page].j("DEFAULT",j);if(this.Ff.length==0){this.oe.j("HIDDEN");this.Xd.j("HIDDEN");sc.e.Q.zd(this.oe);sc.e.Q.zd(this.Xd)}this.Rz.sa(this.page+1);if(this.Ff.length==1){this.oe.j("HIDDEN",j);this.Xd.j("HIDDEN",j);sc.e.Q.zd(this.oe);sc.e.Q.zd(this.Xd)}else if(this.page==
this.Ff.length-1){this.oe.j("HIDDEN",j);sc.e.Q.zd(this.oe);this.Xd.j("DEFAULT",j);sc.e.Q.md(this.Xd,this.f4.bind(this),j)}else{if(this.page==0){this.Xd.j("HIDDEN",j);sc.e.Q.zd(this.Xd)}else{this.Xd.j("DEFAULT",j);sc.e.Q.md(this.Xd,this.f4.bind(this),j)}this.oe.j("DEFAULT",j);sc.e.Q.md(this.oe,this.tsa.bind(this),j)}}},ZX:function(a){if(this.key&&this.Ff.length!=1){var b=this.page,b=b+a;b>=this.Ff.length&&(b=this.Ff.length-1);b<0&&(b=0);b!=this.page&&this.O5(b)}},F5:function(a){this.Gz.fa("\\i[enemy-"+
a+"]")},sX:function(a){if(this.key!=a){if(this.hf=(this.key=a)?ig.Dj.get("enemies")[a]:s){this.title.fa(ig.Oa.wc(this.hf.name));this.aa.sa(this.hf.level||1)}else{this.aa.sa(0);this.title.fa(ig.lang.get("sc.gui.menu.enemy.noEnemy"))}for(var b=this.Ff.length;b--;)this.Ff[b].setData(a,this.hf,this.page==-1?w:this.page!=b);if(this.key){this.O5(this.page==-1?0:this.page);this.rl.j("DEFAULT",j)}else{this.page>=0&&this.Ff[this.page].j("HIDDEN",j);this.page=-1;this.rl.j("HIDDEN",j);this.oe.j("HIDDEN",j);
this.Xd.j("HIDDEN",j);sc.e.Q.zd(this.oe);sc.e.Q.zd(this.Xd)}}}});sc.eVa=sc.iM.extend({key:s,aa:s,f:function(a,b,c){this.parent(a,236,25);this.key=b||s;this.gl=this.button.dc=s;if(c>=0){this.aa=new sc.Ib(99);this.aa.sa(c,j);this.aa.F(ig.k.ha,ig.k.W);this.aa.l(5,7);this.m(this.aa)}}})});ig.G=j;
ig.I("game.feature.menu.gui.enemies.enemy-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.enemies.enemy-list","game.feature.menu.gui.enemies.enemy-misc").H(function(){sc.kVa=sc.xja.extend({f:function(){this.parent(new sc.iVa,new sc.gVa);this.Sc.Rd("auto",sc.lH.ORDER,0);this.Sc.Rd("name",sc.lH.NAME,1);this.Sc.Rd("enemyLevel",sc.lH.LEVEL,2);this.Sc.Rd("area",sc.lH.AREA,3);this.j("DEFAULT")},xd:function(){sc.e.Eg(s,w);this.parent();this.jr(ig.lang.get("sc.gui.menu.sort.auto"));
this.info.F5(this.list.LU())},Rc:function(){this.parent();ig.C0()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.enemy.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.enemy.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.sr)this.jr(c.text);else if(b==sc.ca.wS){this.info.F5(this.list.LU());this.jr(ig.lang.get("sc.gui.menu.sort.auto"))}else b!=sc.ca.pja&&b==sc.ca.MZ&&this.info.sX(sc.e.OD)}})});ig.G=j;
ig.I("game.feature.menu.gui.lore.lore-misc").J("impact.feature.gui.base.box","impact.feature.gui.gui","game.feature.menu.gui.menu-misc").H(function(){sc.tXa=ig.te.extend({r:new ig.$("media/gui/basic.png"),eb:new ig.$b("media/gui/menu.png",{width:2,height:8,left:27,top:21,right:27,bottom:3,Fb:{"default":{x:456,y:244}}}),title:s,Gz:s,oe:s,Xd:s,rl:s,Rz:s,uA:s,BI:s,AI:s,jw:s,ud:s,Ff:[],page:0,f:function(){this.parent(281,265);this.F(ig.k.fb,ig.k.W);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},
HIDDEN:{state:{alpha:0,offsetX:-(this.a.size.x/2)},time:0.2,p:KEY_SPLINES.LINEAR}};this.title=new sc.ea("");this.title.F(ig.k.za,ig.k.W);this.title.l(0,4);this.m(this.title);this.BI=new ig.Dc(this.eb.r,465,338,13,10);this.BI.l(10,23);this.BI.rb(13,7);this.BI.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,Ia:0.2,Ma:0.5,offsetY:5},time:0.2,p:KEY_SPLINES.LINEAR}};this.BI.j("HIDDEN",j);this.m(this.BI);this.AI=new sc.ea("",{font:sc.Ka.Ve});this.AI.a.N={DEFAULT:{state:{},time:0.2,
p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:10},time:0.2,p:KEY_SPLINES.LINEAR}};this.AI.j("HIDDEN",j);this.AI.l(25,25);this.m(this.AI);this.Gz=new sc.ea("");this.Gz.l(7,3);this.m(this.Gz);var a=new ig.Lf("#545454",277,22);a.F(ig.k.za,ig.k.xb);a.l(0,2);this.m(a);this.oe=new sc.ec("\\i[page-right]",32,j,sc.Ic.Kc);this.oe.Qb=this.usa.bind(this);this.oe.re.l(1,0);this.oe.Ul=j;this.oe.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:5},time:0.2,p:KEY_SPLINES.LINEAR}};
this.oe.F(ig.k.ha,ig.k.xb);this.oe.l(2,2);this.m(this.oe);this.Xd=new sc.ec("\\i[page-left]",32,j,sc.Ic.Kc);this.Xd.Qb=this.msa.bind(this);this.Xd.re.l(1,0);this.Xd.Ul=j;this.Xd.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:5},time:0.2,p:KEY_SPLINES.LINEAR}};this.Xd.F(ig.k.fb,ig.k.xb);this.Xd.l(2,2);this.m(this.Xd);this.oe.j("HIDDEN",j);this.Xd.j("HIDDEN",j);this.rl=new ig.X;this.rl.F(ig.k.za,ig.k.xb);this.rl.l(0,7);this.rl.v(60,8);this.rl.a.N={DEFAULT:{state:{},
time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};a=new ig.Dc(this.r,96,0,8,8);a.F(ig.k.za,ig.k.W);this.rl.m(a);this.Rz=new sc.Ib(99);this.Rz.F(ig.k.ha,ig.k.W);this.Rz.l(36,0);this.rl.m(this.Rz);this.uA=new sc.Ib(s);this.uA.F(ig.k.fb,ig.k.W);this.uA.l(36,0);this.rl.m(this.uA);this.m(this.rl);this.rl.j("HIDDEN",j);this.jw=new ig.X;this.jw.v(261,200);this.jw.l(10,40);this.m(this.jw);this.TPa()},show:function(){this.j("DEFAULT")},hide:function(){this.j("HIDDEN");
sc.e.Q.zd(this.oe);sc.e.Q.zd(this.Xd)},tsa:function(){return sc.V.p5()},f4:function(){return sc.V.n3()},usa:function(){this.ZX(1)},msa:function(){this.ZX(-1)},O5:function(a){if(a!=this.page){this.page=a||0;this.jw.rg();if(this.Ff[this.page]){this.jw.m(this.Ff[this.page]);if(this.Ff.length==0){this.oe.j("HIDDEN");this.Xd.j("HIDDEN");sc.e.Q.zd(this.oe);sc.e.Q.zd(this.Xd)}this.Rz.sa(this.page+1);if(this.Ff.length==1){this.oe.j("HIDDEN",j);this.Xd.j("HIDDEN",j);sc.e.Q.zd(this.oe);sc.e.Q.zd(this.Xd)}else if(this.page==
this.Ff.length-1){this.oe.j("HIDDEN",j);sc.e.Q.zd(this.oe);this.Xd.j("DEFAULT",j);sc.e.Q.md(this.Xd,this.f4.bind(this),j)}else{if(this.page==0){this.Xd.j("HIDDEN",j);sc.e.Q.zd(this.Xd)}else{this.Xd.j("DEFAULT",j);sc.e.Q.md(this.Xd,this.f4.bind(this),j)}this.oe.j("DEFAULT",j);sc.e.Q.md(this.oe,this.tsa.bind(this),j)}}}},ZX:function(a){if(this.ud&&this.Ff.length!=1){var b=this.page,b=b+a;b>=this.Ff.length&&(b=this.Ff.length-1);b<0&&(b=0);b!=this.page&&this.O5(b)}},F5:function(a){this.Gz.fa("\\i[lore-"+
a+"]");a=="story"?this.Gz.l(6,3):this.Gz.l(7,3)},TPa:function(a){this.ud=a?sc.ud.h2(a):s;this.oe.j("HIDDEN",j);this.Xd.j("HIDDEN",j);this.rl.j("HIDDEN",j);this.BI.j("HIDDEN",j);this.AI.j("HIDDEN",j);this.jw.rg();this.jw.l(10,25);this.jw.v(261,215);this.page=0;this.Ff.length=0;sc.e.Q.zd(this.oe);sc.e.Q.zd(this.Xd);if(this.ud)if(sc.ud.ica(a)){this.title.fa(ig.Oa.wc(this.ud.title));if(this.ud.alternative){this.BI.j("DEFAULT");this.AI.fa(ig.lang.get("sc.gui.menu.lore.aka")+ig.Oa.wc(this.ud.alternative));
this.AI.j("DEFAULT");this.jw.l(10,40);this.jw.v(261,200)}this.K2a(a);this.page=-1;this.O5(0);if(this.Ff.length>=2){this.uA.sa(this.Ff.length);this.rl.j("DEFAULT",j)}}else this.title.fa(ig.lang.get("sc.gui.menu.lore.lockedEntry"));else this.title.fa(ig.lang.get("sc.gui.menu.lore.noLore"))},K2a:function(a){var b=this.ud.content,c=s,d=0,e=0,h=0,k;for(k in b){if(!sc.ud.jca(a,k))break;if(c=b[k]){if(c.switchPage){e=0;d++}e=this.n2a(c.content,c.image,c.hr,c.options,d,e,h,c.imageCond,c.altContent)}h++}},
n2a:function(a,b,c,d,e,h,k,l,m){var n=this.Ff[e];if(!n){n=new ig.X;n.v(this.jw.a.size.x,this.jw.a.size.y);this.Ff[e]=n}var o=e=s,o=d?sc.bia[d.align]:0,d=d?d.wrap:w;if(c){e=new ig.Lf("#545454",263,1);e.F(ig.k.za,ig.k.W);e.l(0,h);n.m(e);h=h+2}e=new ig.ce;if(m){e.fL(m.condition);e.evaluate()&&(a=m.content)}e.fL(l||"true");if(b&&e.evaluate()){e=new ig.Dc(new ig.$(b.src),b.offX,b.offY,b.width,b.height);e.F(o+4,ig.k.W);e.l(0,h);n.m(e);l=261-e.a.size.x-2;b=0;if(d)switch(o){case sc.bia.LEFT:b=e.a.size.x+
4;l=l-2;break;case sc.bia.CENTER:l=261;d=w}else l=261;d||(h=h+(e.a.size.y+2));o=new sc.ea(ig.Oa.wc(a),{font:sc.Ka.Ve,maxWidth:l});o.l(b,h);n.m(o);h=d?h+Math.max(e.a.size.y,o.a.size.y)+2:h+(o.a.size.y+2)}else{e=new sc.ea(ig.Oa.wc(a),{font:sc.Ka.Ve,maxWidth:261});e.l(0,h);n.m(e);h=h+(e.a.size.y+2)}ig.Re&&ig.Re.Wsb("Lore: "+ig.Oa.wc(this.ud.title)+", Paragraph: "+(k+1),new ig.Oa(a),"data/database.json");return h}});sc.S7=sc.iM.extend({key:s,Hs:s,vd:s,f:function(a,b,c,d,e){this.parent(a,229-(e?22:0),
31,g,g,this.pcb(c));this.key=b||s;this.gl=this.button.dc=s;a=b?Math.round(sc.ud.M9a(b)*100):0;if(a>=0){this.Hs=new sc.Ib(100,{size:sc.uf.Ki});this.Hs.sa(a,j);this.Hs.F(ig.k.ha,ig.k.W);this.Hs.l(5,7);this.m(this.Hs)}if(d&&sc.e.abb(sc.Cd.oE,b)){this.vd=new sc.sia;this.vd.l(33,3);this.vd.vf();this.m(this.vd)}},S6a:function(){this.vd&&this.vd.xi(j,j)},pcb:function(a){return a==sc.dz.STORY||a==sc.dz.MEMORIES}})});ig.G=j;
ig.I("game.feature.menu.gui.lore.lore-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes","game.feature.menu.gui.tab-box","game.feature.menu.gui.lore.lore-misc").H(function(){var a=[];sc.uXa=sc.Q7.extend({r:new ig.$("media/gui/menu.png"),dc:s,Gv:s,$z:s,Hs:s,V3:[],f:function(){this.parent(j);this.v(264,262);this.F(ig.k.ha,ig.k.W);this.rb(264,262);this.P5(264,243);this.Gv=this.dc=sc.qd.submit;
this.$z=sc.qd.xx;this.Hs=new sc.ea(ig.lang.get("sc.gui.menu.lore.completion"),{font:sc.Ka.Lb});this.Hs.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:4},time:0.1,p:KEY_SPLINES.EASE}};this.Hs.F(ig.k.ha,ig.k.W);this.Hs.l(4,-8);this.Oe.m(this.Hs);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-132},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_EASE:{state:{alpha:0,offsetX:-132},time:0.2,p:KEY_SPLINES.EASE}};this.wn("story",0,{type:sc.dz.STORY});
this.wn("memories",1,{type:sc.dz.MEMORIES});this.wn("people",2,{type:sc.dz.CHARACTERS});this.wn("cross-lore",3,{type:sc.dz.CROSS_LORE});this.wn("earth-lore",4,{type:sc.dz.EARTH_LORE})},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},show:function(){this.parent();this.Du(this.om||0,j,{skipSounds:j});this.FFa(this.om)?this.Hs.j("DEFAULT",j):this.Hs.j("HIDDEN",j);for(var a in this.Wh)this.Wh[a].pda.xi(w);a=sc.e.dw[sc.Cd.oE];for(var c=a.length;c--;){var d=this.Wh[this.keys[sc.dz[sc.ud.h2(a[c]).category]]];
d&&d.pda.vf()}ig.ua.ed(0.2);this.j("DEFAULT")},hide:function(){this.parent();for(var a=this.V3.length;a--;){this.V3[a].S6a();sc.e.R6a(sc.Cd.oE,this.V3[a].key)}this.V3.length=0;this.j("HIDDEN")},h4:function(a,c,d){this.dc.play();sc.e.KRa(d==1?1:-1);return{skipSounds:j}},uW:function(a){sc.e.DG(a);(ig.input.dd||this.Nh.Lq())&&sc.e.Eg(s,j)},tW:function(a,c,d){a=new sc.BB.XH(ig.lang.get("sc.gui.menu.lore.tabs."+a),"lore-"+a,115);a.wNa=function(a){a?this.pda.l(4,4):this.pda.l(2,2)};c=new sc.sia;c.xi(w);
c.l(2,2);a.m(c);a.pda=c;a.re.l(7,1);a.l(0,2);a.setData({type:d.type});this.m(a);return a},LP:function(a,c){if(!c){this.dc.play();this.Du(this.HU(a));for(var d=this.fd.length;d--;)if(a==this.fd[d]){sc.e.DG(d);break}sc.e.Eg(s,j);return w}},p4:function(){ig.input.dd&&sc.e.Eg(s,j)},o4:function(){sc.e.Eg(s,j)},JP:function(b,c,d,e){var h=s,k=h=s,l=s,k=s,m=sc.ud.fIa(d,e);b.clear();c.clear();for(var c="\\i[lore-"+this.LU()+"]",n=a.length=0;n<m.length;n++){l=m[n];k=sc.ud.h2(l);if(sc.ud.ica(l)){h=c+ig.Oa.wc(k.title);
if(k.parent){h=new sc.S7(h,l,d,j,j);k=new ig.Dc(this.r,541,208,14,15);k.l(-16,1);h.m(k);e==sc.pE.ORDER?b.Rd(h,s,22):a.push(l)}else{h=new sc.S7(h,l,d,j);b.Rd(h)}}else if(this.rjb(d)){h=c+"????????????????????";h=new sc.S7(h,l,d);h.setActive(w);b.Rd(h)}}if(a.length>=1){n=a.length;for(e=b.qp().length;n--;){k=sc.ud.h2(a[n]);l=this.Z8a(k.parent,b.qp());if(l>=0){h=c+ig.Oa.wc(k.title);h=new sc.S7(h,a[n],d,j,j);k=new ig.Dc(this.r,541,208,14,15);k.l(-16,1);h.m(k);l==e-1?b.Rd(h,s,22):b.nqa(h,l+1,s,s,s,j);h.a.i.x=
22}}}},Z8a:function(a,c){for(var d=c.length;d--;)if(c[d].T.key==a)return d;return-1},i4:function(a){if(a.key){sc.e.Eg(a.key);a.vd&&this.V3.push(a)}else{sc.e.Eg(a.key);a.data&&(a.data instanceof Object||sc.e.tc(a.data))}},j4:function(){sc.e.Eg(s,j);sc.e.tc(s,j)},rjb:function(a){return a!=sc.dz.STORY},lb:function(a,c,d){if(a==sc.e)if(c==sc.ca.sr){this.sort(d.data.KG);sc.e.Eg(s,j);sc.e.tc(s,j)}else c==sc.ca.wS&&(this.FFa(this.om)?this.Hs.j("DEFAULT"):this.Hs.j("HIDDEN"))},FFa:function(a){switch(a){case 0:return w;
case 1:return w;case 2:return j;case 3:return j;case 4:return j;case 5:return j}}})});ig.G=j;
ig.I("game.feature.menu.gui.lore.lore-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.menu-misc","game.feature.control.control","game.feature.menu.gui.lore.lore-list").H(function(){sc.vXa=sc.bq.extend({mb:s,Kd:s,Aa:s,list:s,info:s,Sc:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.list=new sc.uXa;this.list.l(8,29);this.m(this.list);this.list.j("HIDDEN",j);this.info=new sc.tXa;this.info.l(8,
29);this.m(this.info);this.info.j("HIDDEN",j);this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.Kd=new sc.ec("\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title"),g,j,sc.Ic.Kc);this.Kd.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.Kd.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};
this.Kd.Qb=this.CA.bind(this);this.Sc=new sc.xM(this.KP.bind(this));this.Sc.Rd("auto",sc.pE.ORDER,0);this.Sc.Rd("name",sc.pE.NAME,1);this.Sc.Rd("unlocked",sc.pE.UNLOCKED,2);this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this);this.list.ac()},Yb:function(){sc.K.lc(sc.e,this);this.list.Yb()},xd:function(){this.ac();sc.e.Eg(s,w);sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);ig.ua.ed(0.2);this.jr(ig.lang.get("sc.gui.menu.sort.auto"));this.list.show();this.info.show();this.info.F5(this.list.LU());this.ek()},
Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.zd(this.Kd);this.list.hide();this.info.hide();this.Aa=s;this.Sc.Ga&&this.Sc.Sk();ig.C0()},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},lD:function(){return sc.V.hK()},CA:function(){if(this.Sc.Ga)this.Sc.Sk();else{ig.T.Mc(this.Sc);this.Sc.CX(this.Kd)}},KP:function(a){if(a.data){this.Sc.Sk();sc.e.Dy(a)}},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.lore.title"));
this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.lore.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Q.md(this.Kd,this.lD.bind(this));sc.e.Qi(M("Kd").bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},jr:function(a){var b="\\i[help3]"+ig.lang.get("sc.gui.menu.item.sort-title")+": ";this.Kd.fa(b+("\\c[3]"+a+"\\c[0]"));sc.e.Ru()},lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.sr)this.jr(c.text);else if(b==sc.ca.wS){this.info.F5(this.list.LU());
this.jr(ig.lang.get("sc.gui.menu.sort.auto"))}else b==sc.ca.pja?this.info.ZX(c):b==sc.ca.MZ&&this.info.TPa(sc.e.OD)}})});ig.G=j;
ig.I("game.feature.menu.gui.status.status-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.menu-misc").H(function(){sc.N0a=sc.bq.extend({mb:s,zl:s,Aa:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,
p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.zl=new sc.Wf;this.zl.si(function(a){a.data&&sc.e.tc(a.data.description)});this.zl.Bk(function(){sc.e.tc("",j)});this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){this.ac();sc.e.Q.Cg(this.zl);sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);ig.ua.ed(0.2);this.ek()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.Lj(this.zl);this.Aa=s},gk:function(){return sc.V.Ap()},
fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.save.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.save.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:F()})});ig.G=j;
ig.I("game.feature.menu.gui.help.help-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.menu-misc").H(function(){sc.dWa=sc.bq.extend({mb:s,zl:s,Aa:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,p:KEY_SPLINES.LINEAR}};
this.mb.Qb=this.fk.bind(this);this.zl=new sc.Wf;this.zl.si(function(a){a.data&&sc.e.tc(a.data.description)});this.zl.Bk(function(){sc.e.tc("",j)});this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){this.ac();sc.e.Q.Cg(this.zl);sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);ig.ua.ed(0.2);this.ek()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.Lj(this.zl);this.Aa=s},gk:function(){return sc.V.Ap()},
fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.save.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.save.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:F()})});ig.G=j;
ig.I("game.feature.menu.gui.museum.museum-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.menu-misc").H(function(){sc.iYa=sc.bq.extend({mb:s,zl:s,Aa:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,
p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.zl=new sc.Wf;this.zl.si(function(a){a.data&&sc.e.tc(a.data.description)});this.zl.Bk(function(){sc.e.tc("",j)});this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){this.ac();sc.e.Q.Cg(this.zl);sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);ig.ua.ed(0.2);this.ek()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.Lj(this.zl);this.Aa=s},gk:function(){return sc.V.Ap()},
fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.save.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.save.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:F()})});ig.G=j;
ig.I("game.feature.menu.gui.stats.stats-gui-builds").H(function(){sc.zt={wt:0,jha:1,cz:2,wZ:3,oya:4,mza:5,P7:6};sc.yE=[];sc.yE[sc.zt.wt]={progressComplete:{Jd:{min:1},type:"Percent",Kg:function(){var a;a=ig.pa.get("plot.line")||0;a=(a>=2E4?1:a/2E4)+sc.pb.HO(j);a=a+sc.Pb.hA(j);a=a+sc.Xb.Aba(j);a=a+sc.ud.EF(j);a=a+sc.map.opa(j);a=a+sc.map.zba(j);a=a+sc.map.mpa(j);a=a+sc.pb.npa(j);return(a+0)/10}},progressEnemies:{Jd:{min:1},Hj:"progress",type:"Percent",Kg:function(){var a=sc.pb.HO(j),a=a+sc.pb.npa(j);
return a/2}},progressCollection:{Jd:{min:1},type:"Percent",Kg:function(){return sc.Pb.hA(j)}},progressExploration:{Jd:{min:1},type:"Percent",Kg:function(){var a=sc.ud.EF(j),a=a+sc.map.opa(j),a=a+sc.map.mpa(j),a=a+sc.map.zba(j);return a/4}},progressQuests:{Jd:{min:1},type:"Percent",Kg:function(){return sc.Xb.Aba(j)}},progressTrophies:{Jd:{min:1},type:"Percent",Kg:R(0)},sepProg:{type:"Separator",group:"overview",mp:"progress"},playtime:{type:"Time",map:"player",update:j},level:{type:"KeyValue",map:"player",
add:1},exp:{type:"KeyValue",map:"player"},expEnemies:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"exp",Hj:"exp"},expQuest:{type:"KeyValuePercent",map:"quests",cd:"exp",Jj:"player",Kj:"exp"},expOther:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"exp"},money:{type:"KeyValue",map:"player",mp:"exp"},saves:{type:"KeyValue",map:"player"},jumps:{type:"KeyValue",map:"player"},steps:{type:"KeyValue",map:"player"},meters:{type:"KeyValue",value:function(){var a=(sc.ta.pg("player","steps")||0)*
1.632;return a<1E3?Math.round(a):Math.floor(a/1E3)},cOa:function(){var a=(sc.ta.pg("player","steps")||0)*1.632;if(a<1E3)a="m";else var a=Math.floor(a)%1E3/10,b="0000"+Math.floor(a),a="."+(b.length>=6?Math.floor(a):b.substr(b.length-2))+"km";return a}},respawns:{type:"KeyValue",map:"player"},respWater:{type:"KeyValuePercent",map:"player",cd:"waterDeath",Jj:"player",Kj:"respawns",Hj:"deaths"},respHole:{type:"KeyValuePercent",map:"player",cd:"holeDeath",Jj:"player",Kj:"respawns"},teleports:{type:"KeyValue",
map:"player",mp:"deaths"}};sc.yE[sc.zt.jha]={enemies:{type:"Percent",Jd:{min:1},Kg:function(){return sc.pb.HO(j)}},foundAnimals:{type:"Percent",Jd:{min:1},Kg:function(){return sc.pb.HO(j,"ANIMALS")},Hj:"enemies"},foundMechas:{type:"Percent",Jd:{min:1},Kg:function(){return sc.pb.HO(j,"MECHA")}},foundPlayers:{type:"Percent",Jd:{min:1},Kg:function(){return sc.pb.HO(j,"PLAYERS")}},foundAbstract:{type:"Percent",Jd:{min:1},Kg:function(){return sc.pb.HO(j,"ABSTRACT")}},enemyReports:{type:"Percent",Jd:{min:1},
mp:"enemies",Kg:function(){return sc.pb.npa(j)}},sepFoundEnd:{type:"Separator",group:"overview"},timeCombat:{type:"Time",map:"combat",cd:"time",max:99,$x:2},kills:{type:"KeyValue",map:"combat",cd:"totalKilled"},damageGiven:{type:"KeyValue",map:"combat"},maxDamage:{type:"KeyValue",map:"combat"},hitsTaken:{type:"KeyValue",map:"combat",cd:"damageHits"},damageTaken:{type:"KeyValue",map:"combat"},healed:{type:"KeyValue",map:"combat"},streakTime:{type:"Time",map:"combat",max:99,$x:2},streakKilled:{type:"KeyValue",
map:"combat"},expEn:{type:"KeyValue",map:"player",cd:"expEnemies"},sepThrow:{type:"Separator",group:"throwing"},close:{type:"KeyValue",map:"player"},closeHits:{type:"KeyValue",map:"player",Jj:"player",Kj:"close"},aimingTime:{type:"Time",map:"combat",cd:"aiming",max:99,$x:2},"throws":{type:"KeyValue",map:"player"},normalThrows:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"throws",Hj:"throws"},chargedThrows:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"throws"},throwHits:{type:"KeyValue",
map:"player",mp:"throws"},hitPercent:{type:"Percent",Kg:function(){return(sc.ta.pg("player","throwHits")||0)/(sc.ta.pg("player","throws")||0)||0}},sepGuard:{type:"Separator",group:"guarding"},dashTime:{type:"Time",map:"player",cd:"dashTime",max:99,$x:2},dash:{type:"KeyValue",map:"player"},perfectDash:{type:"KeyValue",map:"player"},guardTime:{type:"Time",map:"combat",cd:"guardTime",max:99,$x:2},shieldedHits:{type:"KeyValue",map:"combat"},perfectShield:{type:"KeyValuePercent",map:"combat",Jj:"combat",
Kj:"shieldedHits",Hj:"shields"},shieldBreaks:{type:"KeyValue",map:"combat",mp:"shields"},sepSpe:{type:"Separator",group:"combatArts"},chargeTime:{type:"Time",map:"combat",cd:"charging",max:99,$x:2},specials:{type:"KeyValue",map:"combat"},specialsClose:{type:"KeyValuePercent",map:"combat",Jj:"combat",Kj:"specials",Hj:"specials"},specialsThrow:{type:"KeyValuePercent",map:"combat",Jj:"combat",Kj:"specials"},specialsDash:{type:"KeyValuePercent",map:"combat",Jj:"combat",Kj:"specials"},specialsGuard:{type:"KeyValuePercent",
map:"combat",Jj:"combat",Kj:"specials"},sepCircuits:{type:"Separator",group:"circuits",mp:"specials"},skills:{type:"KeyValue",map:"player"},skillsPassive:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"skills",Hj:"skills"},skillsActive:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"skills"},branches:{type:"KeyValue",map:"player",mp:"skills"},skillPoints:{type:"KeyValue",map:"player"},skillPoints0:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"skillPoints",Hj:"points"},skillPoints1:{type:"KeyValuePercent",
map:"player",Jj:"player",Kj:"skillPoints"},skillPoints2:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"skillPoints"},skillPoints3:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"skillPoints"},skillPoints4:{type:"KeyValuePercent",map:"player",Jj:"player",Kj:"skillPoints"},sepElements:{type:"Separator",group:"elements",mp:"points"},elOverload:{type:"KeyValue",map:"element",cd:"overload"},elSwitches:{type:"KeyValue",max:99,$x:2,value:function(){var a=0,b;for(b in sc.ja)a=a+(sc.ta.pg("element",
"used"+sc.ja[b])||0);return a}},elSwitchesNeutral:{type:"KeyValue",map:"element",cd:"used0",Hj:"switches"},elSwitchesHeat:{type:"KeyValue",map:"element",cd:"used1",jb:"player.core.9"},elSwitchesCold:{type:"KeyValue",map:"element",cd:"used2",jb:"player.core.10"},elSwitchesShock:{type:"KeyValue",map:"element",cd:"used3",jb:"player.core.11"},elSwitchesWave:{type:"KeyValue",map:"element",cd:"used4",jb:"player.core.12"},elTime:{type:"Time",max:99,$x:2,mp:"switches",value:function(){var a=0,b;for(b in sc.ja)b!=
"NEUTRAL"&&(a=a+(sc.ta.pg("element","time"+sc.ja[b])||0));return a}},elTimeHeat:{type:"Time",map:"element",cd:"time1",max:99,$x:2,jb:"player.core.9",Hj:"elements"},elTimeCold:{type:"Time",map:"element",cd:"time2",max:99,$x:2,jb:"player.core.10"},elTimeShock:{type:"Time",map:"element",cd:"time3",max:99,$x:2,jb:"player.core.11"},elTimeWave:{type:"Time",map:"element",cd:"time4",max:99,$x:2,jb:"player.core.12"}};sc.yE[sc.zt.cz]={items:{Jd:{min:1},type:"Percent",Kg:function(){return sc.Pb.hA(j)}},itemCons:{type:"Percent",
Jd:{min:1},Kg:function(){return sc.Pb.hA(j,"CONS")},Hj:"items"},itemEquip:{type:"Percent",Jd:{min:1},Kg:function(){return sc.Pb.hA(j,"EQUIP")}},itemEquipHead:{type:"Percent",Jd:{min:1},Kg:function(){return sc.Pb.hA(j,"EQUIP","HEAD")},Hj:"equip"},itemEquipArm:{type:"Percent",Jd:{min:1},Kg:function(){return sc.Pb.hA(j,"EQUIP","ARM")}},itemEquipTorso:{type:"Percent",Jd:{min:1},Kg:function(){return sc.Pb.hA(j,"EQUIP","TORSO")}},itemEquipFeet:{type:"Percent",Jd:{min:1},Kg:function(){return sc.Pb.hA(j,
"EQUIP","FEET")}},itemTrade:{type:"Percent",Jd:{min:1},Kg:function(){return sc.Pb.hA(j,"TRADE")},mp:"equip"},itemKey:{type:"Percent",Jd:{min:1},Kg:function(){return sc.Pb.hA(j,"KEY")}},sepFoundEnd:{type:"Separator",group:"overview",mp:"items"},total:{type:"KeyValue",map:"items"},used:{type:"KeyValue",map:"items"},dropsTotal:{type:"KeyValue",map:"items"},dropsProps:{type:"KeyValuePercent",map:"items",Jj:"items",Kj:"dropsTotal",Hj:"drops"},dropsEnemies:{type:"KeyValuePercent",map:"items",Jj:"items",
Kj:"dropsTotal"},buy:{type:"KeyValue",map:"items",mp:"drops"},sell:{type:"KeyValue",map:"items"},sepTra:{type:"Separator",group:"trades"},trades:{type:"KeyValue",pb:"trade",cd:"total"},tradeGot:{type:"KeyValue",pb:"trade",cd:"got"},tradeLost:{type:"KeyValue",pb:"trade",cd:"lost"}};sc.yE[sc.zt.oya]={areas:{Jd:{min:1},type:"Percent",Kg:function(){return sc.map.mpa(j)}},landmarks:{Jd:{min:1},type:"Percent",Kg:function(){return sc.map.opa(j)}},chests:{Jd:{min:1},type:"Percent",Kg:function(){return sc.map.zba(j)}},
lories:{type:"Percent",Kg:function(){return sc.ud.EF(j)},Jd:{min:1}},loriesStory:{type:"Percent",Kg:function(){return sc.ud.EF(j,"STORY")},Jd:{min:1},qQ:j,WHa:2,Hj:"lories"},loriesMemories:{type:"Percent",Kg:function(){return sc.ud.EF(j,"MEMORIES")},Jd:{min:1},qQ:j,WHa:2},loriesPeople:{type:"Percent",Kg:function(){return sc.ud.EF(j,"CHARACTERS")},Jd:{min:1}},loriesCross:{type:"Percent",Kg:function(){return sc.ud.EF(j,"CROSS_LORE")},Jd:{min:1}},loriesEarth:{type:"Percent",Kg:function(){return sc.ud.EF(j,
"EARTH_LORE")},Jd:{min:1}},loriesOther:{type:"Percent",Kg:function(){return sc.ud.EF(j,"ETC")},Jd:{min:1}},sepOverview:{type:"Separator",group:"overview",mp:"lories"},areasFound:{type:"KeyValue",map:"exploration",cd:"areas"},landmarksFound:{type:"KeyValue",map:"exploration",cd:"landmarks"},loreFound:{type:"KeyValue",map:"exploration",cd:"lore"},loreEntries:{type:"KeyValue",map:"exploration",cd:"loreEntry"},tradersFound:{type:"KeyCurMax",Jd:j,value:function(){return sc.Db.wab()},max:function(){return sc.Db.vab()},
hide:function(){return!sc.map.zJa()}},sepChests:{type:"Separator",group:"chests"},chestFound:{type:"KeyCurMax",Jd:j,value:function(){return sc.map.zba()},max:function(){return sc.map.uab()},hide:function(){return!sc.map.zJa()}},chestAres:{type:"List",HRa:"KeyCurMax",list:function(){return sc.map.areas},ipa:function(a){return!sc.map.spa(a)||!sc.map.areas[a].track||!sc.map.areas[a].chests?s:{Jd:j,kh:sc.map.AF(a),map:"chests",cd:a,max:function(){return sc.map.areas[a].chests}}},Hj:"chests"}};sc.yE[sc.zt.wZ]=
{quests:{type:"Percent",Jd:{min:1},Kg:function(){return sc.Xb.Aba(j)}},sepOverview:{type:"Separator",group:"overview"},questTotal:{type:"KeyValue",map:"quests",cd:"solved"},questGenTotal:{type:"KeyValue",map:"quests",cd:"solvedGen"},tasksTotal:{type:"KeyValue",map:"quests",cd:"tasks"},subTaskTotal:{type:"KeyValue",map:"quests",cd:"subtasks"},subTaskKill:{type:"KeyValuePercent",map:"quests",cd:"subtasksKILL",Jj:"quests",Kj:"subtasks",Hj:"subtasks"},subTaskCol:{type:"KeyValuePercent",map:"quests",cd:"subtasksCOLLECT",
Jj:"quests",Kj:"subtasks"},subTaskAct:{type:"KeyValuePercent",map:"quests",cd:"subtasksCONDITION",Jj:"quests",Kj:"subtasks"},subTaskQuest:{type:"KeyValuePercent",map:"quests",cd:"subtasksQUEST",Jj:"quests",Kj:"subtasks"},subTaskLandmark:{type:"KeyValuePercent",map:"quests",cd:"subtasksLANDMARK",Jj:"quests",Kj:"subtasks"},questActive:{type:"KeyValue",map:"quests",cd:"active",mp:"subtasks"},rewardExp:{type:"KeyValue",map:"quests",cd:"exp"},rewardMoney:{type:"KeyValue",map:"quests",cd:"money"},rewardItems:{type:"KeyValue",
map:"quests",cd:"rewards"},sepAreas:{type:"Separator",group:"questAreas"},questAreas:{type:"List",HRa:"Percent",list:function(){return sc.map.areas},ipa:function(a){return!sc.map.spa(a)||!sc.map.areas[a].track||!sc.Xb.Vab(a)?s:{Jd:{min:1},kh:sc.map.AF(a),Kg:function(){return sc.Xb.Aba(j,a)}}}}};sc.yE[sc.zt.mza]={gameBoots:{type:"KeyValue"},propsDestroyed:{type:"KeyValue",map:"player"},logs:{type:"KeyValue",map:"player"},words:{type:"KeyValue",map:"misc"},hiCount:{type:"KeyValue",map:"misc"},randomNumber:{type:"KeyValue",
value:function(){return Math.floor(Math.random()*Math.random()*123952637)}},finalStat:{type:"KeyValue",Jd:j,value:function(){for(var a=0,b=sc.yE,c=b.length,d=s;c--;)for(var e in b[c]){d=b[c][e];if(d.type=="LIST"){var h=d.list(),k;for(k in h)d.ipa()&&a++}else a++}return a}}};sc.yE[sc.zt.P7]={activity:{type:"Logs"}}});ig.G=j;
ig.I("game.feature.menu.gui.stats.stats-misc").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.menu.gui.save.save-misc","game.feature.menu.gui.stats.stats-gui-builds").H(function(){sc.H0a=sc.RH.extend({Bj:s,f:function(){this.parent(sc.Hl.kz);this.Bj=new ig.X;this.uh(this.Bj)},update:function(){this.parent();if(this.a.Il){sc.V.aW()?this.scrollY(-20):sc.V.$V()&&this.scrollY(20);sc.V.Fr()?this.scroll(200*ig.g.ga):sc.V.ls()&&this.scroll(-200*
ig.g.ga)}},v:function(a,b){this.parent(a,b);this.Bj.v(a,b)},scroll:function(a,b){this.scrollY(a,b,0.05)},de:function(a,b){a.l(b,this.W1(this.Bj.a.children.length%1!=0)+0);this.Bj.m(a);this.eib(this.W1())},clear:function(){this.Bj.rg();this.Bj.a.size.y=0;this.vc.gj(0,0,0);this.ct()},wX:function(a,b,c){this.KE=w;c||this.vc.gj(0,0,0);this.parent(a,b)},W1:function(a){var b=this.Bj.a.children,c=b.length;a&&(c=c-1);for(a=0;c--;){a=a+(b[c].size.y+0);c=c-0;if(c<0)break}return a+1},eib:function(a){this.Bj.a.size.y=
a;this.ct()}});sc.eBa=ig.X.extend({r:new ig.$("media/gui/menu.png"),yc:s,Kr:s,color:0,x:528,f:function(a,b){this.parent();this.Kr=new sc.Ib(99,{size:b.size,leadingZeros:2,scramble:b.scramble});this.Kr.F(ig.k.ha,ig.k.W);this.Kr.l(9,0);this.m(this.Kr);this.yc=new sc.Ib(s,b);this.yc.F(ig.k.ha,ig.k.W);this.yc.l(this.Kr.a.size.x+12,0);this.m(this.yc);if(this.Jva((ig.ux+"").toLowerCase(),"en"))this.x=548;this.v(this.yc.a.size.x+this.Kr.a.size.x+12,this.yc.a.size.y)},sa:function(a,b){var c=Math.floor(a*
100);this.yc.sa(c,b);c=Math.floor(a*1E4)%100;this.Kr.sa(c,b);this.v(this.yc.a.size.x+this.Kr.a.size.x+12,this.yc.a.size.y)},Te:function(a){this.color=a||0;this.yc.Te(this.color);this.Kr.Te(this.color)},Jva:function(a,b){return a.slice(0,b.length)==b},va:function(a){a.ia(this.r,this.a.size.x-8,0,512+9*this.color,192,8,10);a.ia(this.r,this.a.size.x-28,this.a.size.y-3,this.x+4*this.color,184,3,5)}})});ig.G=j;
ig.I("game.feature.menu.gui.stats.stats-types").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.menu.gui.save.save-misc","game.feature.menu.gui.stats.stats-gui-builds","game.feature.menu.gui.stats.stats-misc","game.feature.menu.gui.synop.synop-misc").H(function(){function a(a){for(var c=ig.ux+"",c=c.toLowerCase().slice(0,2)=="en"?",":".",d=/(\d+)(\d{3})/,a=a+"";d.test(a);)a=a.replace(d,"$1"+c+"$2");return a}sc.IB={};sc.PZ=ig.X.extend({r:new ig.$("media/gui/menu.png"),
key:s,rA:s,mf:s,f:function(a,c,d){this.parent();this.v(d,20);this.key=a;this.rA=new sc.ea("");this.rA.F(ig.k.fb,ig.k.gb);this.rA.l(5,0);this.m(this.rA);d=s;if(c.kh)d=c.kh;else(d=ig.lang.get("sc.gui.menu.stats.keys")[a])||(d="\\c[1]~ "+a+"\\c[0]");this.rA.fa(d);if(!this.constructor.Km)this.constructor.Km=this.r.createPattern(512,184,16,4,ig.ue.Pf.Xn)},va:function(a){if(this.rA&&this.mf){var c=this.rA.a.size.x+this.rA.a.i.x+1,d=this.a.size.x-this.rA.a.size.x-this.mf.a.size.x-10,d=Math.floor(d/4)*4;
a.Rj(this.constructor.Km,c,12,0,0,d,4)}}});sc.IB.Time=sc.PZ.extend({cd:s,map:s,value:s,V6:w,f:function(a,c,d){this.parent(a,c,d);this.cd=c.cd||a;this.map=c.map||s;this.V6=c.update||w;this.mf=new sc.RAa(sc.uf.Bt,c.max,c.$x);this.mf.F(ig.k.ha,ig.k.gb);this.mf.l(5,2);this.m(this.mf);a=0;if(c.value){this.value=c.value;a=this.value()}else a=sc.ta.pg(this.map,this.cd);this.mf.Lp.sa(Math.floor(a)%60,j);this.mf.vP.sa(Math.floor(a/60)%60,j);this.mf.OC.sa(Math.floor(a/60/60)%60,j)},update:function(){if(this.V6&&
this.map&&this.cd){var a=0,a=this.value?this.value():sc.ta.pg(this.map,this.cd);this.mf.Lp.sa(Math.floor(a)%60,j);this.mf.vP.sa(Math.floor(a/60)%60,j);this.mf.OC.sa(Math.floor(a/60/60)%60,j)}}});sc.IB.Percent=sc.PZ.extend({f:function(a,c,d){this.parent(a,c,d);var d=0,d=c.Kg?c.Kg():c.map?sc.ta.pg(c.map,c.cd||a)||0:sc.ta.get(c.cd||a)||0,e=s;if(c.kh)e=c.kh;else(e=ig.lang.get("sc.gui.menu.stats.keys")[a])||(e="\\c[1]~ "+e+"\\c[0]");this.mf=new sc.eBa(s,{size:sc.uf.Bt,leadingZeros:c.WHa||1,scramble:d>=
1?w:c.qQ});if(c.Jd)if(c.Jd.min!=g){if(d>=c.Jd.min){this.mf.Te(sc.ef.nM);this.rA.fa("\\c[3]"+e+"\\c[0]")}}else{this.mf.Te(sc.ef.nM);this.rA.fa("\\c[3]"+e+"\\c[0]")}this.mf.F(ig.k.ha,ig.k.gb);this.mf.l(5,0);this.mf.sa(d);this.m(this.mf)}});sc.IB.KeyValue=sc.PZ.extend({f:function(b,c,d){this.parent(b,c,d);var d=c.cd||s,e=c.map||s,h=0,h=c.value?typeof c.value=="function"?c.value()||0:c.value||0:e?sc.ta.pg(e,d||b)||0:sc.ta.get(d||b)||0,h=h+(c.add||0);if(c.bob){this.mf=new sc.Ib(c.Mg||s,{leadingZeros:c.lP||
0,size:sc.uf.Bt,signed:h==0});this.mf.sa(h)}else this.mf=new sc.ea(a(h)+(c.cOa?c.cOa():""));this.mf.F(ig.k.ha,ig.k.gb);this.mf.l(5,0);this.m(this.mf)}});sc.IB.KeyCurMax=sc.PZ.extend({f:function(b,c,d){this.parent(b,c,d);var e=c.cd||s,h=c.map||s,d=0,d=c.value?typeof c.value=="function"?c.value()||0:c.value||0:h?sc.ta.pg(h,e||b)||0:sc.ta.get(e||b)||0,b=c.max?c.max():0,e=a(Math.min(b,d+(c.add||0))),h=a(b);c.hide&&c.hide(d,b)&&(h="???");var k=s,k=c.Jd?d>=b?"\\c[3]"+e+"\\i[slash-highlight]"+h+"\\c[0]":
e+"\\i[slash]"+h:e+"\\i[slash]"+h;this.mf=new sc.ea(k);this.mf.F(ig.k.ha,ig.k.gb);this.mf.l(5,0);this.m(this.mf)}});sc.IB.KeyValuePercent=sc.PZ.extend({Je:s,I4:s,f:function(b,c,d){this.parent(b,c,d);var e=c.cd||s,h=c.map||s,d=0,d=c.value?typeof c.value=="function"?c.value()||0:c.value||0:h?sc.ta.pg(h,e||b)||0:sc.ta.get(e||b)||0;this.Je=new sc.ea(a(d)+"\\i[arrow-percent]");this.Je.F(ig.k.fb,ig.k.gb);e=0;if(c.Kg)e=c.Kg();else e=(e=c.Jj?sc.ta.pg(c.Jj,c.Kj||b)||0:sc.ta.get(c.Kj||b)||0)?Math.min(1,d/e):
0;this.I4=new sc.eBa(s,{size:sc.uf.Bt,leadingZeros:2});this.I4.F(ig.k.ha,ig.k.gb);this.I4.sa(e);this.mf=new ig.X;this.mf.F(ig.k.ha,ig.k.gb);this.mf.l(5,0);this.m(this.mf);this.mf.m(this.Je);this.mf.m(this.I4);this.mf.v(this.Je.a.size.x+this.I4.a.size.x+2,20)}});sc.IB.Separator=ig.X.extend({nua:s,f:function(a,c,d){this.parent();this.v(d,14);if(c.Grb){a=new ig.Lf("#545454",d+5,1);a.l(0,0);this.m(a);this.a.size.y=1}else{this.nua=new sc.ea(ig.lang.get("sc.gui.menu.stats.groups."+(c.group||a)),{font:sc.Ka.Lb});
this.nua.l(2,3);this.m(this.nua);a=new ig.Lf("#545454",d+5,1);a.l(0,11);this.m(a)}}});sc.IB.Logs=ig.X.extend({f:function(a,c,d){this.parent();this.v(d,20);for(var a=sc.e.bK,c=a.length,d=0,e=s,e=s,h=0;c--;){d++;e=a[c];e=new sc.gS[e.type](e);e.l(3,h);this.m(e);h=h+e.a.size.y;if(d>=50)break}this.a.size.y=h}})});ig.G=j;
ig.I("game.feature.menu.gui.stats.stats-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.item.item-list","game.feature.menu.gui.list-boxes","game.feature.menu.gui.tab-box","game.feature.menu.gui.stats.stats-misc","game.feature.menu.gui.stats.stats-gui-builds","game.feature.menu.gui.stats.stats-types").H(function(){var a=[];sc.E0a=sc.oBa.extend({r:new ig.$("media/gui/menu.png"),
dc:s,Oe:s,sx:s,ctb:[],f:function(){this.parent(j);this.v(436,258);this.P5(436,242);this.F(ig.k.za,ig.k.gb);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:218},time:0.2,p:KEY_SPLINES.LINEAR}};this.dc=sc.qd.submit;this.Oe=new sc.kM;this.Oe.l(0,29);this.Oe.v(this.a.size.x,228);this.m(this.Oe);this.wn("general",0,{type:sc.zt.wt});this.wn("combat",1,{type:sc.zt.jha});this.wn("items",2,{type:sc.zt.cz});this.wn("exploration",3,{type:sc.zt.oya});this.wn("quests",
4,{type:sc.zt.wZ});this.wn("misc",5,{type:sc.zt.mza});this.wn("log",6,{type:sc.zt.P7});this.j("HIDDEN",j)},show:function(){this.parent();this.Du(this.om||0,j,{skipSounds:j});ig.ua.ed(0.2);this.j("DEFAULT")},hide:function(){this.parent();this.j("HIDDEN")},Vva:function(a){var c=this.om,d=this.X1();if(a>=0){d.Ce(w);if(a==1){c++;c>=this.fd.length&&(c=0)}else{c--;c<0&&(c=this.fd.length-1)}this.Fk=d=this.fd[c];d.Ce(j);this.dc.play();this.Du(c,w,{skipSounds:j});this.iQ(d,j);this.Oea()}},LP:function(a,c){if(!c){this.dc.play();
this.Du(this.HU(a));for(var d=this.fd.length;d--;)if(a==this.fd[d]){sc.e.DG(d);break}sc.e.Eg(s,j);return w}},tW:function(a,c,d){a=new sc.BB.XH(ig.lang.get("sc.gui.menu.stats.tabs."+a),"stats-"+a,105);a.re.l(7,1);a.l(0,2);a.setData({type:d.type});this.m(a);return a},uW:function(a){sc.e.DG(a)},isa:function(){var b={T:s};this.sx=new sc.H0a;this.sx.l(0,29);this.sx.v(this.a.size.x,228);this.sx.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};
this.m(this.sx);var c=sc.yE[this.X1().data.type],d=s,e=s,h=431,k=new ig.ce;a.length=0;for(var l in c)if((d=c[l])&&sc.IB[d.type]||d.type=="List"){if(d.jb){k.fL(d.jb);if(!k.evaluate())continue}if(d.Hj){a.indexOf(d.Hj)!=-1&&f(Error(d.Hj+" inset already exists. (Missing deset?)"));a.push(d.Hj);h=h-24}else if(d.mp){e=a.indexOf(d.mp);if(e!=-1){e!=a.length-1&&f(Error(d.mp+" ist not top deset. (missing inset/deset?)"));a.pop();h=h+24}else f(Error(d.mp+" dest does not exist. (missing inset?)"))}if(d.type==
"List"){var e=d.list(),m;for(m in e)if(e=d.ipa(m)){e=new sc.IB[d.HRa](m,e,h);e.F(ig.k.ha,ig.k.W);if(h<431){var n=new ig.Dc(this.r,512,207,17,16);n.l(-17,-1);e.m(n)}this.sx.de(e,5)}}else{e=new sc.IB[d.type](l,d,h);e.F(ig.k.ha,ig.k.W);if(h<431){n=new ig.Dc(this.r,512,207,17,16);n.l(-17,-1);e.m(n)}this.sx.de(e,5)}}b.T=this.sx;return b},gsa:function(){this.sx&&this.sx.j("HIDDEN",j)},xsa:function(a){this.sx=a.T;this.sx.j("DEFAULT",j)},lb:F()})});ig.G=j;
ig.I("game.feature.menu.gui.stats.stats-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.menu-misc","game.feature.menu.gui.stats.stats-list").H(function(){sc.F0a=sc.bq.extend({mb:s,Ba:s,Aa:s,list:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},
time:0.2,p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.Ba=new sc.Wf;this.Ba.si(function(a){a.data&&sc.e.tc(a.data.description)});this.Ba.Bk(function(){sc.e.tc("",j)});this.Ba.Uk=this.Uk.bind(this);this.list=new sc.E0a;this.m(this.list);this.j("DEFAULT")},update:function(){this.Ba&&(this.Ba.Tc()&&ig.input.dd)&&this.Uk()},ac:function(){sc.K.Na(sc.e,this);sc.K.Na(sc.e,this.list)},Yb:function(){sc.K.lc(sc.e,this);sc.K.lc(sc.e,this.list)},xd:function(){this.ac();sc.e.Q.Cg(this.Ba);sc.e.kk(this.Og.bind(this));
sc.e.Th(0,0,sc.Rg.dq);this.list.show();ig.ua.ed(0.2);this.ek()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.Lj(this.Ba);this.list.hide();this.Aa=s},Uk:function(){var a=-1;sc.V.Xs()?a=1:sc.V.Ws()&&(a=0);this.list.Vva(a)},gk:function(){return sc.V.Ap()},fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.stats.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.stats.pages"));
this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:F()})});ig.G=j;
ig.I("game.feature.menu.gui.trophy.trophy-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.menu-misc").H(function(){sc.G1a=sc.bq.extend({mb:s,zl:s,Aa:s,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.mb=new sc.ec("\\i[help]"+ig.lang.get("sc.gui.menu.hotkeys.help"),g,j,sc.Ic.Kc);this.mb.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-this.mb.a.size.y},time:0.2,
p:KEY_SPLINES.LINEAR}};this.mb.Qb=this.fk.bind(this);this.zl=new sc.Wf;this.zl.si(function(a){a.data&&sc.e.tc(a.data.description)});this.zl.Bk(function(){sc.e.tc("",j)});this.j("DEFAULT")},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},xd:function(){this.ac();sc.e.Q.Cg(this.zl);sc.e.kk(this.Og.bind(this));sc.e.Th(0,0,sc.Rg.dq);ig.ua.ed(0.2);this.ek()},Ti:function(){this.Yb();sc.e.Th(0,0,sc.Rg.hh);this.Rc()},Rc:function(){sc.e.Q.zd(this.mb);sc.e.Q.Lj(this.zl);this.Aa=s},gk:function(){return sc.V.Ap()},
fk:function(){this.Dh();ig.T.Mc(this.Aa);this.Aa.as()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.save.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.save.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},ek:function(){sc.e.Q.md(this.mb,this.gk.bind(this));sc.e.Qi(M("mb").bind(this));sc.e.Dr()},Og:function(){sc.e.jk();sc.e.bs()},lb:F()})});ig.G=j;
ig.I("game.feature.msg.gui.msg-skip-hud").J("impact.feature.gui.gui","game.feature.gui.base.boxes","game.feature.gui.base.text").H(function(){sc.uza=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ma:0,Ia:0},time:0.2,p:KEY_SPLINES.LINEAR}},text:s,vc:s,bea:s,n:0,f:function(){this.parent();this.text=new sc.ea("\\i[skip-cutscene]",{});this.vc=new sc.m0a(this.text.a.size.x+4);this.text.F(ig.k.za,ig.k.gb);this.text.l(1,0);this.a.size.x=this.vc.a.size.x;this.a.size.y=
this.vc.a.size.y;this.a.cb.x=this.vc.a.cb.x;this.a.cb.y=this.vc.a.cb.y;this.m(this.vc);this.m(this.text)},update:function(){this.n=this.n+ig.g.Da;var a=0.75+0.25*Math.sin(this.n/0.5*2*Math.PI);this.vc.a.Vc=a;this.text.a.Vc=a},hide:function(){this.j("HIDDEN")},show:function(){this.j("DEFAULT")}})});ig.G=j;
ig.I("game.feature.msg.gui.side-message-hud").J("impact.feature.gui.gui","game.feature.gui.base.boxes","game.feature.gui.base.text","game.feature.gui.base.slick-box","game.feature.msg.gui.msg-skip-hud").H(function(){sc.$_a=ig.X.extend({W5:s,TNa:0,Ssa:[],gh:[],n:0,G4:w,wrb:0,$rb:s,Lk:s,ln:s,b5:w,FX:s,N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.EASE_IN}},f:function(){this.parent();this.v(290,200);this.a.align.y=ig.k.xb;this.a.zIndex=101;this.a.Ee=
j;this.Lk=new sc.Y_a;this.m(this.Lk);this.l(0,3);this.ln=new sc.uza;this.m(this.ln);this.ln.j("HIDDEN",j);this.ln.F(ig.k.fb,ig.k.xb);this.FX=new sc.XAa(this,10);this.W5=new sc.a0a;this.m(this.W5);this.W5.j("HIDDEN",j);sc.K.Na(sc.q.message,this);sc.K.Na(sc.q,this)},update:function(){if(!this.G4&&this.a.fj=="DEFAULT")if(this.n>0){this.n=this.n-ig.g.Da;this.n<=0&&this.YGa()}else if(this.n<0){this.n=this.n+ig.g.Da;if(this.n>=0)this.gh.length>0?this.SW():this.n=0}this.G4&&ig.Fs&&(sc.V.Jhb()?this.lPa(-48):
sc.V.Ihb()&&this.lPa(48))},YGa:function(a){if(sc.q.message.KJa())this.IQa();else{if(a)this.b5=j;this.SW()}},lb:function(a,b){if(a==sc.q.message)if(b==sc.be.xza)this.n<=0&&this.IQa();else if(b==sc.be.Jxa)for(;this.gh.length>0;)this.SW();else{if(b==sc.be.xAa){this.shb();this.XOa(j);if(a.DD.length>0||this.gh.length>0)this.n=2}}else if(a==sc.q&&(b==sc.Le.Vw||b==sc.Le.jq)){var c=sc.q.Xm()||sc.q.Mq();this.j(c?"DEFAULT":"HIDDEN");this.gh[this.gh.length-1]&&!sc.q.Qe()&&sc.mL.de(this.FX);if(c&&!sc.q.WC())(this.G4=
sc.q.Mq())?this.X8a():this.XOa()}},DT:function(){for(;this.gh.length>0;)this.gh.shift().remove();this.oY();sc.mL.ie(this.FX);this.n=0;this.b5=w},X8a:function(){var a=this.gh[this.gh.length-1];a&&a.text.stop();for(var a=sc.q.message.xw,b=0,c=this.gh.length;c--;)b=b+(this.gh[c].a.size.y+3);for(c=Math.max(0,a.length-this.gh.length);c--;){var d=a[c],e=new sc.VAa;e.uh(d.kx,d.Wg,d.message,j);e.l(0,b);e.show();b=b+(e.a.size.y+3);this.Lk.m(e);this.Ssa.push(e)}this.TNa=b-3;this.gh.length<a.length&&this.W5.j("DEFAULT");
for(c=0;c<this.gh.length;++c)this.gh[c].j("DEFAULT");this.oY()},shb:function(){this.DT();for(var a=sc.q.message.xw,b=a.length-sc.q.message.gU;b<a.length;++b)this.nOa(a[b],100,b<a.length-1);this.Lk.gj(0,0,0.2,KEY_SPLINES.EASE_OUT)},XOa:function(){this.W5.j("HIDDEN");this.Lk.gj(0,0,0.2,KEY_SPLINES.EASE_OUT);for(var a=this.Ssa.length;a--;)this.Ssa[a].remove(w);for(a=0;a<this.gh.length-1;++a)this.gh[a].j("UPWARD");(a=this.gh[this.gh.length-1])&&a.text.VK();this.oY()},lPa:function(a){var b=this.Lk.W9a().y,
b=(b-a).Vb(0,this.TNa-this.Lk.a.size.y);this.Lk.gj(0,b,0.2,KEY_SPLINES.EASE_OUT)},IQa:function(){var a=sc.q.message.P$a();this.n=Math.max(2,a.message.toString().length/20*1+1);this.nOa(a,100);this.b5=w;sc.q.message.gU=this.gh.length},nOa:function(a,b,c){var d=new sc.VAa;d.uh(a.kx,a.Wg,a.message,c||w);c||d.Mua(this.Peb.bind(this));sc.q.Qe()||sc.mL.de(this.FX);a=d.a.size.y;this.Lk.m(d);d.show();d.l(0,0);this.gh.push(d);for(var c=this.gh.length,e=a=0;c--;){d=this.gh[c];if(!e&&c<this.gh.length-1&&a+d.a.size.y>
b){e=c+1;a=Math.max(d.a.i.y,a-d.a.size.y-3)}d.bd(0,a,0.2,KEY_SPLINES.EASE_OUT);c<this.gh.length-1&&d.j("UPWARD");e||(a=a+(d.a.size.y+3))}if(e){for(c=e;c--;)this.gh[c].remove(j);this.gh.splice(0,e)}this.oY();return j},Jqb:function(){var a=this.gh.length;return a==0?w:this.gh[a-1].ol()},SW:function(){this.n=this.b5?-0.2:-1;var a=this.gh.shift();a.text.finish();a.remove();if(this.gh.length==0){sc.mL.ie(this.FX);this.b5=w}sc.q.message.gU=this.gh.length},oY:function(){var a=this.gh[this.gh.length-1];if(!this.G4&&
a&&a.ol()&&this.FX.Tc()){this.ln.l(a.a.size.x+1,0);this.ln.show()}else this.ln.hide()},Peb:function(){this.oY()},qW:function(a){if(a==sc.tM.eja)(a=this.gh[this.gh.length-1])&&(a.ol()?this.YGa(j):a.Ko());this.oY()}});sc.Y_a=ig.X.extend({f:function(){this.parent();this.v(258,180);this.a.align.y=ig.k.xb;this.a.clip=j}});sc.VAa=sc.uja.extend({text:s,face:s,Az:new ig.da("media/sound/hud/dialog-beep-2.ogg",1,0.02),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},UPWARD:{state:{alpha:0.5},time:0.2,
p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0.5,Ia:1,Ma:0,offsetX:0},time:0.2,p:KEY_SPLINES.EASE_OUT}},f:function(){this.parent(0,0,w);this.a.align.y=ig.k.xb;this.text=new sc.ea("",{maxWidth:196,speed:ig.rd.Nd.Ki});this.text.F(ig.k.fb,ig.k.gb);this.text.l(60,0);this.m(this.text);this.face=new sc.Z_a;this.m(this.face)},uh:function(a,b,c,d){this.text.fa(c);d?this.text.finish():this.text.vPa(this.Az);c=this.text.a.size.x;c=(c<98?98:196)+62;d=Math.max(42,this.text.a.size.y+4);this.v(c,d);this.face.FPa(a,
b,d)},Mua:function(a){this.text.df.AA=a},ol:function(){return this.text.df.ol()},Ko:function(){this.text.finish()},show:function(a){this.a.cb.y=a?0:this.a.size.y;this.j("HIDDEN",j);this.j("DEFAULT")},remove:function(a){this.a.cb.y=a?0:this.a.size.y;this.j("HIDDEN",w,j)}});sc.Z_a=ig.X.extend({Nc:s,Wg:s,n:0,N:{DEFAULT:{state:{Ia:-1},time:0,p:KEY_SPLINES.EASE_OUT}},f:function(){this.parent();this.a.size.x=56;this.a.cb.x=28;this.j("DEFAULT",j)},FPa:function(a,b,c){this.Nc=a;this.Wg=b;this.a.size.y=c;
this.n=0},update:function(){this.n=this.n+ig.g.Da},va:function(a){this.Nc&&sc.X7.Kna(a,this.Nc,this.Wg,this.n,0,0,this.a.size.x,this.a.size.y)}});sc.a0a=ig.X.extend({r:new ig.$("media/gui/message.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0.5,Ia:0},time:0.2,p:KEY_SPLINES.EASE_OUT}},Tba:s,U$:s,f:function(){this.parent();this.v(24,180);this.a.align.x=ig.k.ha;this.a.align.y=ig.k.xb;var a=new sc.j0a(this.a.size.y);this.m(a);a=new sc.h0a(70);a.F(ig.k.ha,ig.k.gb);this.m(a);
a=new ig.Dc(this.r,16,80,8,8);a.F(ig.k.za,ig.k.gb);a.l(0,-19);this.m(a);a=new ig.Dc(this.r,16,88,8,8);a.F(ig.k.za,ig.k.gb);a.l(0,19);this.m(a);this.Tba=new sc.ea("\\i[mousewheel]");this.U$=ig.Gb.gm;this.Tba.F(ig.k.za,ig.k.gb);this.m(this.Tba)},update:function(){if(this.U$!=ig.input.bb){this.U$=ig.input.bb;this.Tba.fa(this.U$==ig.Gb.Jc?"\\i[gamepad-l1]\n\\i[gamepad-r1]":"\\i[mousewheel]")}}})});ig.G=j;
ig.I("game.feature.menu.gui.social.social-misc").J("impact.feature.gui.base.box","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.menu-misc","game.feature.menu.gui.item.item-status-default","game.feature.msg.gui.side-message-hud","game.feature.menu.gui.enemies.enemy-pages").H(function(){var a=[],b=[];sc.r0a=ig.te.extend({eb:new ig.$b("media/gui/menu.png",{width:12,height:4,left:6,top:6,right:6,bottom:6,Fb:{"default":{x:512,y:440}}}),qK:s,Mb:s,nC:s,name:s,WE:s,TE:s,
UE:s,VE:s,Wb:s,content:s,f:function(){this.parent(281,129);this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(this.a.size.x/2)},time:0.2,p:KEY_SPLINES.LINEAR}};this.Mb=new sc.ZAa;this.Mb.l(3,3);this.m(this.Mb);this.qK=new sc.ea(ig.lang.get("sc.gui.menu.social.noMember"));this.qK.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.qK.F(ig.k.za,ig.k.gb);this.qK.l(0,3);this.m(this.qK);this.qK.j("HIDDEN",
j);this.content=new ig.X;this.content.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.content.l(3,39);this.content.v(275,98);this.m(this.content);var a=new ig.Lf("#545454",275,1);a.l(0,0);this.content.m(a);a=new sc.ea(ig.lang.get("sc.gui.menu.social.class"),{font:sc.Ka.Lb});a.l(3,3);this.content.m(a);var b=a.a.size.x,a=new sc.ea(ig.lang.get("sc.gui.menu.social.name"),{font:sc.Ka.Lb});a.l(3,18);this.content.m(a);b=Math.max(a.a.size.x,
b)+6;this.nC=new sc.ea("Ultra Lord");this.nC.l(b,0);this.content.m(this.nC);this.name=new sc.ea("Ultra Lord");this.name.l(b,15);this.content.m(this.name);b=3;a=32;this.WE=this.Qt("maxhp",0,b,a);a=a+14;this.TE=this.Qt("atk",1,b,a);a=a+14;this.UE=this.Qt("def",2,b,a);this.VE=this.Qt("foc",3,b,a+14);a=new sc.ea(ig.lang.get("sc.gui.menu.social.equipment"),{font:sc.Ka.Lb});a.l(139,3);this.content.m(a);a=new ig.Lf("#545454",137,1);a.F(ig.k.ha,ig.k.W);a.l(0,11);this.content.m(a);this.Wb=new ig.X;this.Wb.F(ig.k.ha,
ig.k.W);this.Wb.v(136,72);this.Wb.l(1,13);this.content.m(this.Wb)},show:function(){this.j("DEFAULT")},hide:function(){this.j("HIDDEN")},$A:function(a){if(a){var b=sc.Ca.fi[a];this.Mb.show(a,b);this.nC.fa(ig.lang.get("sc.gui.menu.social.classes."+b.nC));this.name.fa(a);this.WE.sa(b.ba.le("hp"),j);this.TE.sa(b.ba.le("attack"),j);this.UE.sa(b.ba.le("defense"),j);this.VE.sa(b.ba.le("focus"),j);this.Wb.rg();var a=b.Wb,b=-3,e;for(e in a)b=this.m7a(a[e],b,e);this.content.j("DEFAULT",j);this.qK.j("HIDDEN",
j)}else{this.Mb.hide(j);this.content.j("HIDDEN",j);this.qK.j("DEFAULT",j)}},m7a:function(a,b,e){var h=s,k=s,h=s;if(h=a<0?s:sc.Pb.getItem(a)){k="\\i["+h.icon+sc.Pb.uo(h.rarity||0)+"]";k=k+ig.Oa.wc(h.name)}else k="\\i["+this.B9a(e)+"]-----------------";h=new sc.ea(k);h.l(0,b);this.Wb.m(h);return b+15},B9a:function(a){switch(a){case "head":return"item-helm";case "leftArm":return"item-sword";case "rightArm":return"item-sword";case "torso":return"item-belt";case "feet":return"item-shoe"}},Qt:function(a,
b,e,h){a=new sc.Dha(ig.lang.get("sc.gui.menu.equip."+a),b);a.l(e,h);this.content.m(a);return a}});sc.u0a=ig.X.extend({YJ:s,Rh:[],f:function(){this.parent("blue");this.v(281,120);this.l(8,29)},Owa:function(){var c=3+this.Rh[0].a.size.y;a.length=0;b.length=0;for(var d=1;d<this.Rh.length;d++){var e=this.Rh[d];if(sc.Ca.QF(e.name)){b.push(e.name);e.bd(0,c,0.2);c=c+(e.a.size.y+3)}else{a.push(d);e.j("SCALE",w,j)}}for(d=a.length;d--;)this.Rh.splice(a[d],1);c=35*this.Rh.length+3*this.Rh.length+9;e=sc.Ca.Xe;
for(d=0;d<e.length;d++)if(b.indexOf(e[d])==-1){var h=new sc.vja(w,sc.Ca.fi[e[d]],e[d]);h.l(0,c);h.show();c=c+(h.a.size.y+3);this.m(h);this.Rh.push(h)}if(this.Rh[0]&&this.Rh[0].a3)this.Rh[0].yg=sc.Ca.Xe.length+1},show:function(a){for(var b=this.Rh.length;b--;)a&&b>=1?this.Rh[b].hide(j):this.Rh[b].remove();var e=this.Rh.length=0,h=new sc.vja(j,sc.q.R);this.m(h);this.Rh.push(h);e=e+(h.a.size.y+3);h.show(a);a=sc.Ca.Xe;for(b=0;b<a.length;b++){h=new sc.vja(w,sc.Ca.fi[a[b]],a[b]);h.l(0,e);h.show();e=e+(h.a.size.y+
3);this.m(h);this.Rh.push(h)}},hide:function(a){for(var b=this.Rh.length;b--;)this.Rh[b].hide(a)}});sc.vja=sc.gq.extend({r:new ig.$("media/gui/basic.png"),Kpa:new ig.$b("media/gui/menu.png",{width:2,height:0,left:1,top:9,right:5,bottom:0,Fb:{"default":{x:96,y:408}}}),info:s,name:s,a3:w,f:function(a,b,e){this.parent(sc.yj.us);this.v(281,a?44:35);this.rb(0,0);this.a3=a||w;this.name=e||s;this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-(this.a.size.x/2)},time:0.2,
p:KEY_SPLINES.LINEAR},SCALE:{state:{alpha:0,Ma:0},time:0.2,p:KEY_SPLINES.LINEAR}};if(a){e=new sc.ea(ig.lang.get("sc.gui.menu.social.party"),{font:sc.Ka.Lb,speed:ig.rd.Nd.We});e.l(2,1);this.m(e);e={size:sc.uf.KB,color:sc.ef.qr};this.Mg=new sc.Ib(4,e);this.Mg.F(ig.k.ha,ig.k.W);this.Mg.l(6,2);this.Mg.sa(sc.Mza+1);this.m(this.Mg);this.yg=new sc.Ib(4,e);this.yg.F(ig.k.ha,ig.k.W);this.yg.l(20,2);this.yg.sa(sc.Ca.Xe.length+1);this.m(this.yg);e=new ig.Dc(this.r,208,18,5,5);e.F(ig.k.ha,ig.k.W);e.l(14,2);this.m(e)}this.info=
new sc.ZAa;this.info.l(3,a?9:0);this.info.show("PARTY_MEMBER",b);this.m(this.info);this.j("HIDDEN",j)},show:function(a){this.j("DEFAULT",a)},hide:function(a){this.j("HIDDEN",w,a)},va:function(a){this.parent(a);this.a3&&this.Kpa.Xa(a,this.a.size.x,9,"default");a.Ec("#FFF",1,this.a3?9:0,1,this.a.size.y-(this.a3?9:0))}});sc.ZAa=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},face:s,aa:s,name:s,exp:s,Fh:s,lf:s,f:function(){this.parent();
this.v(275,35);var a=new sc.ea("LVL",{font:sc.Ka.Lb});a.l(53,18);this.m(a);this.face=new sc.p0a;this.m(this.face);this.name=new sc.ea;this.name.l(53,0);this.m(this.name);this.aa=new sc.Ib(99,{size:sc.uf.hh});this.aa.l(68,19);this.m(this.aa);this.exp=new sc.gM("EXP",sc.nk.RY,s,93,0,-1);this.exp.l(92,19);this.m(this.exp);this.Fh=new sc.gM("HP",sc.nk.wH,s,95,0,-1);this.Fh.F(ig.k.ha,ig.k.W);this.Fh.l(-2,3);this.m(this.Fh);this.lf=new sc.gM("SP",sc.nk.IZ,s,95,3,-1);this.lf.F(ig.k.ha,ig.k.W);this.lf.l(-2,
19);this.m(this.lf)},show:function(a,b){this.face.$A(b.Nc);this.name.fa(b.eA());this.aa.sa(b.aa||1);this.exp.Tu(j,b);this.Fh.Tu(j,b);this.lf.Tu(j,b);this.j("DEFAULT",j)},hide:function(a){this.j("HIDDEN",a)}});sc.p0a=ig.X.extend({Nc:s,N:{DEFAULT:{state:{Ia:-1},time:0.2,p:KEY_SPLINES.LINEAR}},f:function(){this.parent();this.v(52,35);this.l(2,0);this.rb(26,0);this.j("DEFAULT",j)},$A:L("Nc"),va:function(a){this.Nc&&sc.X7.Kna(a,this.Nc,"DEFAULT",0,4,0,this.a.size.x-2,this.a.size.y)}});sc.o0a=sc.iM.extend({Dab:new ig.$("media/gui/menu.png"),
head:s,status:s,aa:s,key:s,f:function(a,b){this.parent(b.eA()||a,187,73);this.gl=this.button.dc=s;this.button.re.l(34,0);this.key=a;var e=sc.Ca.QF(a)?0:sc.Ca.Kk[a].xu?1:2;this.head=new sc.q0a(b.zO());this.head.l(7,1);this.head.Ga=e==0;this.m(this.head);this.aa=new sc.Ib(99);this.aa.F(ig.k.ha,ig.k.W);this.aa.l(5,7);this.aa.sa(b.aa||1);this.m(this.aa);this.status=new ig.Dc(this.Dab,512,416+e*8,38,7);this.status.F(ig.k.ha,ig.k.W);this.status.l(30,7);this.m(this.status)},Pl:function(){this.parent();this.head.focus=
j},zg:function(){this.parent();this.head.focus=w},alb:function(){var a=sc.Ca.QF(this.key)?0:sc.Ca.Kk[this.key].xu?1:2;this.status.offsetY=416+a*8;this.head.Ga=a==0},Iqa:function(){this.Ij=j;this.Ce(j);this.button.Ij=j;this.button.Ce(j);this.head.Ij=j},zga:function(){this.Ij=w;this.Ce(w);this.button.Ij=w;this.button.Ce(w);this.head.Ij=w}});sc.q0a=ig.X.extend({r:new ig.$("media/gui/menu.png"),Lpa:new ig.$("media/gui/severed-heads.png"),index:0,Ga:w,focus:w,Ij:w,f:function(a){this.parent();this.v(24,
17);this.index=a},va:function(a){a.ia(this.r,0,0,512,457,24,17);a.ia(this.Lpa,0,0,this.index*24,7,24,17);this.Ga&&a.ia(this.r,0,0,512,this.focus||this.Ij?493:475,24,17)}})});ig.G=j;
ig.I("game.feature.menu.gui.social.social-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.list-boxes","game.feature.menu.gui.tab-box","game.feature.menu.gui.social.social-misc").H(function(){sc.s0a=sc.Q7.extend({dc:s,Gv:s,$z:s,f:function(){this.parent(j);this.v(264,262);this.F(ig.k.ha,ig.k.W);this.rb(264,262);this.P5(264,243);this.Gv=this.dc=sc.qd.submit;this.$z=sc.qd.xx;this.a.N={DEFAULT:{state:{},
time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:-132},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_EASE:{state:{alpha:0,offsetX:-132},time:0.2,p:KEY_SPLINES.EASE}};var a=new sc.ea(ig.lang.get("sc.gui.status-hud.lvl"),{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(9,-8);this.Oe.m(a);a=new sc.ea(ig.lang.get("sc.gui.menu.social.status"),{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(37,-8);this.Oe.m(a);this.wn("close",0,{type:sc.sE.FRIEND});this.wn("contacts",1,{type:sc.sE.CONTACT})},ac:function(){sc.K.Na(sc.e,
this)},Yb:function(){sc.K.lc(sc.e,this)},show:function(){this.parent();this.Du(this.om||0,j,{skipSounds:j});ig.ua.ed(0.2);this.j("DEFAULT")},hide:function(){this.parent();this.j("HIDDEN")},Owa:function(){for(var a=this.Rm.qp(),b=a.length;b--;)a[b].T.alb()},h4:function(){this.dc.play();return{skipSounds:j}},uW:function(a){sc.e.DG(a);(ig.input.dd||this.Nh.Lq())&&sc.e.Eg(s,j)},tW:function(a,b,c){a=new sc.BB.XH(ig.lang.get("sc.gui.menu.social.tabs."+a),"social-"+a,85);a.re.l(7,1);a.l(0,2);a.setData({type:c.type});
this.m(a);return a},LP:function(a,b){if(!b){this.dc.play();this.Du(this.HU(a));for(var c=this.fd.length;c--;)if(a==this.fd[c]){sc.e.DG(c);break}sc.e.Eg(s,j);return w}},p4:function(){ig.input.dd&&sc.e.Eg(s,j)},o4:function(){sc.e.OD&&sc.e.Eg(s,j)},K$a:function(a,b){var c=[],d=sc.Ca.Kk,e;for(e in d){var h=d[e];h&&h.status==a&&c.push(e)}b!=g&&this.Dy(c,b);return c},Dy:function(a,b){switch(b){case sc.pS.STATUS:a.sort(function(a,b){var e=sc.Ca,h=e.QF(a),k=e.QF(b);if(h==k)return sc.Ca.fi[a].eA().localeCompare(sc.Ca.fi[b].eA());
if(h)return-1;h=e.Kk[a];k=e.Kk[b];return h.xu&&k.xu?0:h.xu?-1:k.xu?1:h.status==k.status?e.fi[a].eA().localeCompare(e.fi[b].eA()):k.status-h.status}.bind(this));break;case sc.pS.NAME:a.sort(function(a,b){return sc.Ca.fi[a].eA().localeCompare(sc.Ca.fi[b].eA())}.bind(this));break;case sc.pS.LEVEL:a.sort(function(a,b){var e=sc.Ca.fi[a],h=sc.Ca.fi[b];return e.aa==h.aa?sc.Ca.fi[a].eA().localeCompare(sc.Ca.fi[b].eA()):h.aa-e.aa}.bind(this))}},JP:function(a,b,c,d){var e=s,e=s,c=this.K$a(c,d);a.clear();b.clear();
for(b=0;b<c.length;b++){e=c[b];e=new sc.o0a(e,sc.Ca.QU(e));a.Rd(e)}},i4:function(a){if(a.key){sc.Ca.IKa(a.key)?sc.e.Eg(a.key):sc.e.Eg(s);sc.e.tc(s,j)}else{sc.e.Eg(a.key);a.data&&(a.data instanceof Object||sc.e.tc(a.data))}},osa:function(a){this.dc.play();sc.e.Rib(a)},j4:function(){sc.e.Eg(s,j);sc.e.tc(s,j)},lb:function(a,b,c){if(a==sc.e&&b==sc.ca.sr){this.sort(c.data.KG);sc.e.Eg(s,j);sc.e.tc(s,j)}}})});ig.G=j;
ig.I("game.feature.menu.gui.social.social-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.social.social-list","game.feature.menu.gui.social.social-misc").H(function(){sc.t0a=sc.xja.extend({Ca:s,options:s,FA:s,oI:s,f:function(){this.parent(new sc.s0a,new sc.r0a);this.info.a.i.y=164;this.Ca=new sc.u0a;this.m(this.Ca);this.Sc.Rd("status",sc.pS.STATUS,0);this.Sc.Rd("name",sc.pS.NAME,1);this.Sc.Rd("socialLevel",sc.pS.LEVEL,
2);this.options=new sc.xM(this.rNa.bind(this),this.Kda.bind(this),126);this.options.F(ig.k.fb,ig.k.W);this.options.rb(this.options.a.size.x/2,0);this.options.Rd("invite",0,0);this.options.Rd("contact",1,1);this.FA=new sc.xM(this.rNa.bind(this),this.Kda.bind(this),126);this.FA.F(ig.k.fb,ig.k.W);this.FA.rb(this.FA.a.size.x/2,0);this.FA.Rd("contact",1,0);this.j("DEFAULT")},xd:function(){sc.e.Eg(s,w);this.parent();sc.e.Th(0,0,sc.Rg.dq);this.Ca.show();this.jr(ig.lang.get("sc.gui.menu.sort.status"))},Rc:function(){this.parent();
this.options.Ga&&this.options.Sk();this.FA.Ga&&this.FA.Sk();this.Ca.hide();sc.e.Th(0,0,sc.Rg.hh)},LNa:function(a,b){this.Kd.setActive(w);var c=b?this.FA:this.options;ig.T.Mc(c);var d=a.a.kf,e=d.x,h=d.y+d.Gc-2,k=c.a;if(h+k.size.y>ig.g.height-26){h=d.y-k.size.y+1;c.rb(k.size.x/2,k.size.y)}else c.rb(k.size.x/2,0);var d=a.key,l=k=j;sc.q.R.Si(sc.hg.MENU_SOCIAL_INVITE)||(k=l=w);if(!sc.Ca.scb(d))l=k=w;if(b)c.oa[0].setActive(l);else{if(sc.Ca.rcb(d)){c.ffa(0,"locked");k=w}else if(sc.Ca.QF(d))c.ffa(0,"remove");
else if(sc.Ca.Xe.length>=sc.Mza){c.ffa(0,"inviteFull");k=w}else c.ffa(0,"invite");c.oa[0].setActive(k);c.oa[1]&&c.oa[1].setActive(l)}a.Iqa();this.oI=a;c.LQa(e,h)},e7a:function(a){sc.yq.gr("SOCIAL_ACTION",{member:a,actionType:sc.HZ.CONTACT})},Vbb:function(a){sc.yq.gr("SOCIAL_ACTION",{member:a,actionType:sc.HZ.PARTY_JOIN}).a0(this)},Ogb:function(a){sc.yq.gr("SOCIAL_ACTION",{member:a,actionType:sc.HZ.PARTY_LEAVE}).a0(this)},eNa:function(){this.Ca.Owa();this.list.Owa()},rNa:function(a){var b=this.oI;
if(this.oI){this.oI.zga();this.oI=s}this.options.Sk();this.FA.Sk();switch(a.data.KG){case 0:sc.Ca.QF(b.key)?this.Ogb(b.key):this.Vbb(b.key);break;case 1:this.e7a(b.key)}ig.ua.ed(0.2);this.Kda()},Kda:function(){if(this.oI){this.oI.zga();this.oI=s}this.Kd.setActive(j);if(ig.input.dd){sc.e.Q.qf=s;sc.e.OD=s;this.info.$A(s)}},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.social.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.social.pages"));this.Aa.a.zIndex=
15E4;this.Aa.a.Ee=j}},lb:function(a,b,c){if(a==sc.e)if(b==sc.ca.sr)this.jr(c.text);else if(b==sc.ca.wS){this.options.Sk();this.FA.Sk();this.Kda();this.list.om==0?this.info.show():this.info.hide();this.jr(ig.lang.get("sc.gui.menu.sort.status"))}else b==sc.ca.MZ?(!this.options.Ga||!this.FA.Ga)&&this.info.$A(sc.e.OD):b==sc.ca.PAa&&(sc.Ca.IKa(c.key)?this.LNa(c):this.LNa(c,j))}})});ig.G=j;
ig.I("game.feature.trade.gui.trade-dialog").J("game.feature.trade.trade-model","impact.base.image","impact.feature.gui.base.basic-gui","impact.feature.gui.gui","game.feature.menu.gui.menu-misc").H(function(){sc.tBa=sc.iM.extend({Npa:new ig.$("media/gui/menu.png"),UK:s,zb:s,HN:s,nLa:w,required:0,f:function(a,b,c,d,e,h){this.parent(a,142,56,b,c);this.gl=s;this.button.dc=s;this.nLa=h||w;this.required=e||0;this.HN=new ig.Dc(this.Npa,136,432,5,5);this.HN.F(ig.k.ha,ig.k.W);this.HN.l(48,9);this.m(this.HN);
this.UK=new sc.Ib(99);this.UK.sa(this.required);this.UK.F(ig.k.ha,ig.k.W);this.UK.l(30,7);this.m(this.UK);a=new ig.Dc(this.Npa,136,416,3,9);a.F(ig.k.ha,ig.k.W);a.l(22,6);this.m(a);a=new ig.Dc(this.Npa,139,416,3,9);a.F(ig.k.ha,ig.k.W);a.l(1,6);this.m(a);this.zb=new sc.Ib(99);this.zb.F(ig.k.ha,ig.k.W);this.zb.l(5,7);this.m(this.zb);this.RSa(d,e)},RSa:function(a){this.zb.sa(a||0);if(this.nLa){if(a>=99){this.HN.offsetY=440;this.UK.Te(sc.ef.hm)}}else if(a>=this.required){this.HN.offsetY=432;this.UK.Te(sc.ef.$o)}else{this.HN.offsetY=
440;this.UK.Te(sc.ef.hm);this.setActive(w)}}});sc.F8=ig.X.extend({r:new ig.$("media/gui/menu.png"),jJ:s,f:function(a,b,c,d,e){this.parent();this.a.size.x=d;this.uh(a,b,c,e)},va:function(a){var b=this.a.size;a.Ec("#000",0,0,b.x,b.y);a.Ec(this.jJ||"#7E7E7E",0,0,b.x,1);a.Ec(this.jJ||"#7E7E7E",0,b.y-1,b.x,1)},uh:function(a,b,c,d){this.rg();var e=2,h=0,k=0,l=0,m=h=s,n=s,o=s,t=sc.Pb,r=sc.q.R;if(a)for(var p=0;p<a.length;p++){l=a[p].id;if(l!=g){m=t.getItem(l);h=a[p].amount||0;k=r.OU(l);new ig.Oa(m.name);
n="\\i["+(m.icon+sc.Pb.uo(m.rarity||0)||"item-default")+"]"+ig.Oa.wc(m.name);o=ig.Oa.wc(m.description);h=new sc.tBa(n,l,o,k,h,d);h.l(1,e);if(this.lDa(l,m.equipType,r)){k=new ig.Dc(this.r,112,480,19,18);h.m(k);h.koa=k;if(!d&&r.Nr(l)<=0){sc.Db.ZU=j;sc.Db.DPa(l,m.equipType)}}b&&b.Uc(h,0,c);c=c+1;e=e+(h.a.size.y+0);this.m(h)}}else e=20;this.a.size.y=e+1;return e+1},Hga:function(a){for(var b=this.a.children,c=b.length,d=s,e=sc.q.R,h=sc.Pb,k=-1;c--;){d=b[c].T;if(d.data&&d.data.id!=g){k=d.data.id;d.RSa(e.OU(k));
if(this.lDa(k,h.getItem(k).equipType,e)){if(!a&&e.Nr(k)<=0){sc.Db.ZU=j;sc.Db.DPa(k,h.getItem(k).equipType)}}else if(d.koa){d.fQ(d.koa);d.koa=s}}}},lDa:function(a,b,c){if(!b)return w;switch(b){case sc.Of.HEAD:return a==c.Wb.head;case sc.Of.ARM:return a==c.Wb.di||a==c.Wb.ki;case sc.Of.TORSO:return a==c.Wb.Jh;case sc.Of.FEET:return a==c.Wb.mh}}});sc.uBa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},
content:s,Ye:0,Ud:s,lO:s,Ea:s,jJ:s,f:function(a,b,c,d){this.parent();this.v(223,26+(d?11:0));this.Ye=0;if(c!=g){if(c==0){this.j("HIDDEN",j);return}this.Ye=c||1}else if(a){for(c=a.length;c--;)this.Ye=this.Ye+sc.Pb.getItem(a[c].id).cost*(a[c].amount||1);this.Ye=Math.floor((this.Ye||1)*(b||1))}a=0;d&&(a=11);this.content=new ig.X;this.content.F(ig.k.za,ig.k.W);this.content.v(142,26+a);this.m(this.content);b=new sc.ea(ig.lang.get("sc.gui.trade.fee"),{font:sc.Ka.Lb});b.l(0,4+a);this.content.m(b);b=new sc.ea(ig.lang.get("sc.gui.trade.rest"),
{font:sc.Ka.Lb});b.l(0,15+a);this.content.m(b);if(d){b=new sc.ea(ig.lang.get("sc.gui.trade.credits"),{font:sc.Ka.Lb});b.l(0,4);this.content.m(b)}this.Ud=new sc.Ib(99999999,{signed:j,transitionTime:0.2});this.Ud.F(ig.k.ha,ig.k.W);this.Ud.sa(sc.q.R.Ud-this.Ye,j);sc.q.R.Ud-this.Ye<0&&this.Ud.Te(sc.ef.hm);this.Ud.l(14,15+a);this.content.m(this.Ud);this.lO=new sc.Ib(99999999,{signed:j,transitionTime:0.2});this.lO.F(ig.k.ha,ig.k.W);this.lO.sa(-this.Ye,j);this.lO.Te(sc.ef.hm);this.lO.l(14,4+a);this.content.m(this.lO);
if(d){this.Ea=new sc.Ib(99999999,{signed:j,transitionTime:0.2});this.Ea.F(ig.k.ha,ig.k.W);this.Ea.sa(sc.q.R.Ud,j);this.Ea.l(14,4);this.content.m(this.Ea)}b=new ig.Dc(this.r,488,32,12,10);b.F(ig.k.ha,ig.k.W);b.l(0,3+a);b=new ig.Dc(this.r,488,32,12,10);b.F(ig.k.ha,ig.k.W);b.l(0,14+a);this.content.m(b);if(d){b=new ig.Dc(this.r,488,32,12,10);b.F(ig.k.ha,ig.k.W);b.l(0,3);this.content.m(b)}},uh:function(a,b,c,d){this.Ye=0;if(c!=g){if(c==0){this.j("HIDDEN",j);return}this.Ye=c||1}else{for(c=a.length;c--;)this.Ye=
this.Ye+sc.Pb.getItem(a[c].id).cost*(a[c].amount||1);this.Ye=(this.Ye||1)*(b||1)}this.Tu();this.a.i.y=d;this.Ea&&this.Ea.sa(sc.q.R.Ud||0,j);this.j("DEFAULT",j)},Tu:function(){this.Ud.sa(sc.q.R.Ud-this.Ye);sc.q.R.Ud-this.Ye<0?this.Ud.Te(sc.ef.hm):this.Ud.Te(sc.ef.$o);this.lO.sa(-this.Ye)},va:function(a){var b=this.a.size;a.Ec("#000",0,0,b.x,b.y);a.Ec(this.jJ||"#7E7E7E",0,0,b.x,1);a.Ec(this.jJ||"#7E7E7E",0,b.y-1,b.x,1)}});sc.x1a=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,
offsetX:-10},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",{width:8,height:8,left:8,top:8,right:8,bottom:8,Fb:{"default":{x:432,y:280}}}),Ba:s,ks:s,BO:s,TK:s,Ye:s,Ig:s,uJ:s,oD:s,f:function(){this.parent(227,100);this.F(ig.k.ha,ig.k.W);this.l(8,53);this.a.Vc=0.9;this.Ba=new sc.Wf(w,ig.mr.AE);this.Ba.si(this.m4.bind(this));this.Ba.Bk(function(){sc.Db.tc("",j);sc.Db.cm("",j);sc.Db.zQ(-1,j)}.bind(this));this.j("HIDDEN",j)},va:function(a){this.parent(a)},m4:function(a){if(a.data){if(a.data.id)if(sc.Pb.rV(a.data.id)){sc.Db.zQ(-1);
sc.Db.cm(sc.Pb.S1(a.data.id))}else if(sc.Pb.gcb(a.data.id))sc.Db.zQ(a.data.id);else{sc.Db.zQ(-1);sc.Db.cm("",w)}else{sc.Db.zQ(-1);sc.Db.cm("",w)}a.data.description&&sc.Db.tc(a.data.description)}},xd:function(){sc.K.lc(sc.Db,this);sc.K.Na(sc.Db,this);this.mz();sc.Db.Q.Cg(this.Ba);sc.Db.Q.md(this.ks,this.k4a.bind(this));this.Ig.j("DEFAULT",w,w,s,0.1);this.j("DEFAULT")},Ti:function(){sc.K.lc(sc.Db,this);sc.Db.Q.Lj(this.Ba);this.j("HIDDEN")},waa:function(){if(sc.Db.u0())if(sc.Db.ZU)sc.rn.ww(ig.lang.get("sc.gui.trade.equipInfo"),
sc.qs.U1a,function(a){if(a.data==0){sc.Db.Mkb();sc.Db.waa(this.Ye.Ye);this.TK.Hga();this.BO.Hga(j);this.Ye.Tu();sc.Db.u0()||this.ks.setActive(w)}}.bind(this));else{sc.Db.waa(this.Ye.Ye);sc.Db.TFa();this.TK.Hga();this.BO.Hga(j);this.Ye.Tu();sc.Db.u0()||this.ks.setActive(w)}else ig.error("Wat.")},lb:function(a,b){a==sc.Db&&b==sc.Yo.Dza&&this.B4a()},k4a:function(){return sc.V.ZF()},B4a:function(){sc.Db.TFa();this.Ba.clear();var a=sc.Db.S9a();this.Ba.Uc(this.ks,0,0);var b=1,c,d=a.get;c=17+(this.BO.uh(d,
this.Ba,b,j)+10);this.Ig.l(6,44+(d.length-1)*20);this.uJ.l(32,c-7);this.oD.l(4,c-7);b=b+d.length;d=a.require;this.TK.l(25,c);c=c+(this.TK.uh(d,this.Ba,b)+5);this.Ye.uh(a.get,a.scale,a.cost,c);sc.Db.u0()?this.ks.setActive(j):this.ks.setActive(w);ig.input.dd?this.Ba.Mj(0,0):this.Ba.yf(0,0,w,j);this.v(227,216);this.Ig.j("HIDDEN",j);this.Ig.j("DEFAULT")},mz:function(){var a=10,b=new sc.ea(ig.lang.get("sc.gui.trade.trade"),{font:sc.Ka.Lb});b.l(8,a);this.m(b);b=new sc.ea(ig.lang.get("sc.gui.trade.owned"),
{font:sc.Ka.Lb});b.F(ig.k.ha,ig.k.W);b.l(26,a);this.m(b);var a=a+7,b=sc.Db.options[0],c=b.get,d=1;this.BO=new sc.F8(c,this.Ba,d,200,j);this.BO.l(2,a);this.m(this.BO);d=d+c.length;a=a+(this.BO.a.size.y+3);this.uJ=new sc.ea(ig.lang.get("sc.gui.trade.for"),{font:sc.Ka.Lb});this.uJ.l(32,a);this.m(this.uJ);this.oD=new sc.ea(ig.lang.get("sc.gui.trade.owned"),{font:sc.Ka.Lb});this.oD.F(ig.k.ha,ig.k.W);this.oD.l(4,a);this.m(this.oD);a=a+7;c=b.require;this.TK=new sc.F8(c,this.Ba,d,200);this.TK.l(25,a);this.m(this.TK);
this.Ig=new ig.Dc(this.eb.r,432,256,16,17);this.Ig.l(6,44+(b.get.length-1)*20);this.Ig.rb(16,17);this.Ig.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{Ia:0.2,Ma:0.5,offsetY:5},time:0.2,p:KEY_SPLINES.LINEAR}};this.Ig.j("HIDDEN",j);this.m(this.Ig);a=a+(this.TK.a.size.y+5);this.Ye=new sc.uBa(b.get,b.scale||1,b.cost);this.Ye.l(2,a);this.m(this.Ye);this.ks=new sc.ec("\\i[help2]"+ig.lang.get("sc.gui.trade.trade"));this.ks.setData({key:"trade",description:ig.lang.get("sc.gui.trade.description")});
this.ks.Ul=j;this.ks.F(ig.k.za,ig.k.xb);this.ks.l(0,5);this.ks.Qb=function(){this.waa()}.bind(this);this.m(this.ks);this.Ba.Uc(this.ks,0,0);sc.Db.u0()||this.ks.setActive(w);a=a+(this.ks.a.size.y+5);this.v(227,216)}});sc.D1a=ig.X.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{offsetY:-48},time:0.2,p:KEY_SPLINES.LINEAR}},a4:s,lp:s,Fn:s,Tra:s,f:function(){this.parent();this.v(151,21);this.F(ig.k.ha,ig.k.W);this.l(44,27);this.a.Vc=0.8;this.Tra=ig.lang.get("sc.gui.trade.offer");
this.a4=new sc.ea("");this.a4.F(ig.k.za,ig.k.gb);this.m(this.a4);this.lp=new sc.ec("\\i[arrow-left]",34,j,sc.Ic.Kc);this.lp.Ul=j;this.lp.l(-27,0);this.lp.Qb=function(){this.oCa(-1)}.bind(this);this.m(this.lp);this.Fn=new sc.ec("\\i[arrow-right]",34,j,sc.Ic.Kc);this.Fn.Ul=j;this.Fn.F(ig.k.ha,ig.k.W);this.Fn.l(-27,0);this.Fn.Qb=function(){this.oCa(1)}.bind(this);this.m(this.Fn);this.j("HIDDEN",j)},va:function(a){a.Ec("#000",0,0,this.a.size.x,this.a.size.y)},xd:function(){if(!(sc.Db.options.length<2)){sc.Db.Q.md(this.lp,
this.nsa.bind(this));sc.Db.Q.md(this.Fn,this.vsa.bind(this));this.a4.fa(this.Tra+" "+(sc.Db.CL+1)+" / "+sc.Db.options.length);this.j("DEFAULT")}},Ti:function(){sc.Db.options.length<2||this.j("HIDDEN")},oCa:function(a){var b=sc.Db.CL+a;a<0?b<0&&(b=sc.Db.options.length-1):a>0&&b>=sc.Db.options.length&&(b=0);sc.Db.Shb(b);this.a4.fa(this.Tra+" "+(sc.Db.CL+1)+" / "+sc.Db.options.length)},nsa:function(){return sc.V.Ws()},vsa:function(){return sc.V.Xs()}})});ig.G=j;
ig.I("game.feature.menu.gui.trade.trade-misc").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.trade.gui.trade-dialog","game.feature.npc.gui.npc-display-gui").H(function(){sc.v1a=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},SD:s,Ba:s,a6a:0,oa:[],Nc:s,xwa:s,location:s,f:function(a,b,c){this.parent();this.v(431,46);this.SD=a;this.Ba=b;this.a6a=c||0;b=sc.Db.q2(a);
a=sc.Db.Woa(a);this.Nc=new sc.sBa;this.Nc.l(2,1);this.Nc.$A(a.characterName);this.m(this.Nc);this.xwa=new sc.ea(ig.Oa.wc(b.name));this.xwa.l(36,1);this.m(this.xwa);b=new ig.Dc(this.r,481,224,8,11);b.l(37,20);this.m(b);this.location=new sc.ea((a.area||"???")+" - "+(a.map||"???"),{font:sc.Ka.Ve});this.location.l(50,19);this.m(this.location)}});sc.y1a=sc.tBa.extend({tK:0,SD:s,f:function(a,b,c,d,e,h,k){this.parent(a,d,e,h,k,j);this.tK=c||0;this.SD=b||s}});sc.sBa=ig.te.extend({eb:new ig.$b("media/gui/menu.png",
{width:2,height:2,left:5,top:5,right:5,bottom:5,Fb:{"default":{x:488,y:16},square:{x:500,y:0},none:{x:400,y:0}}}),display:s,Td:s,N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.EASE}},f:function(){this.parent(31,42);this.Td=new ig.X;this.Td.a.clip=j;this.Td.v(31,42);this.Td.l(1,1);this.m(this.Td)},$A:function(a,b){if(a){if(this.display){this.display.remove(j);this.display=s}if(a){this.display=new sc.yza(a,j,s,this.yma.bind(this));this.Td.m(this.display);
this.j("DEFAULT",j)}}else{if(this.display){b?this.display.remove(j):this.display.j("HIDDEN",w,j);this.display=s}this.j("HIDDEN",j)}},yma:function(a){a.mj&&a.l(this.Td.a.size.x/2-a.a.size.x/2-1,this.Td.a.size.y/2-a.a.size.y/2)}});sc.w1a=ig.te.extend({N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_SCALE:{state:{alpha:0,Ma:0.5},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN_MOVE:{state:{alpha:0,offsetX:218},time:0.2,p:KEY_SPLINES.LINEAR}},eb:new ig.$b("media/gui/menu.png",
{width:10,height:11,left:34,top:44,right:5,bottom:3,Fb:{"default":{x:592,y:160}}}),Hc:s,Td:s,vc:s,Nc:s,name:s,location:s,Wla:s,Ig:s,d2:s,gX:s,Zs:s,v9:s,f:function(){this.parent();this.v(228,220);this.l(66,67);this.rb(0,110);this.Nc=new sc.sBa;this.Nc.Nk="square";this.Nc.l(3,2);this.m(this.Nc);this.Wla=new ig.Dc(this.eb.r,576,184,9,15);this.Wla.l(229,0);this.name=new sc.ea("");this.name.l(37,2);this.m(this.name);var a=new ig.Dc(this.eb.r,481,224,8,11);a.l(38,21);this.m(a);this.location=new sc.ea("",
{font:sc.Ka.Ve});this.location.l(51,20);this.m(this.location);this.Td=new ig.X;this.Td.l(2,44);this.Td.v(225,174);this.m(this.Td);a=new ig.Lf("#7e7e7e",224,1);this.Td.m(a);a=new sc.ea(ig.lang.get("sc.gui.trade.trade"),{font:sc.Ka.Lb});a.l(8,2);this.Td.m(a);a=new sc.ea(ig.lang.get("sc.gui.trade.owned"),{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(25,2);this.Td.m(a);this.d2=new sc.F8(s,s,s,200);this.d2.jJ="#7e7e7e";this.d2.l(1,9);this.Td.m(this.d2);this.uJ=new sc.ea(ig.lang.get("sc.gui.trade.for"),{font:sc.Ka.Lb});
this.uJ.l(32,9);this.Td.m(this.uJ);this.oD=new sc.ea(ig.lang.get("sc.gui.trade.owned"),{font:sc.Ka.Lb});this.oD.F(ig.k.ha,ig.k.W);this.oD.l(4,9);this.Td.m(this.oD);this.gX=new sc.F8(s,s,s,200);this.gX.jJ="#7e7e7e";this.gX.l(24,9);this.Td.m(this.gX);this.Ig=new ig.Dc(this.eb.r,432,256,16,17);this.Ig.l(5,36);this.Ig.rb(16,17);this.Ig.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{Ia:0.2,Ma:0.5,offsetY:5},time:0.2,p:KEY_SPLINES.LINEAR}};this.Td.m(this.Ig);this.Zs=new sc.uBa(s,s,s,
j);this.Zs.F(ig.k.fb,ig.k.xb);this.Zs.jJ="#7e7e7e";this.Zs.l(1,0);this.Td.m(this.Zs);this.j("HIDDEN",j)},rQa:function(a,b,c){var d=sc.Db.q2(a),e=sc.Db.Woa(a);if(this.v9!=a){this.Nc.$A(e.characterName,j);this.name.fa(ig.Oa.wc(d.name));this.location.fa((e.area||"???")+" - "+(e.map||"???"));this.v9=a}this.Wla.a.i.y=c+3;a=d.options[b];b=a.get;c=9+(this.d2.uh(b,s,s,j)+10);this.uJ.l(32,c-7);this.oD.l(4,c-7);this.Ig.l(5,36+(b.length-1)*20);b=a.require;this.gX.l(24,c);this.gX.uh(b);this.Zs.uh(a.get,a.scale,
a.cost,0)},reset:function(){this.j("HIDDEN",j);this.v9=s},show:function(a,b,c){this.j("HIDDEN_SCALE",j);this.j("DEFAULT");this.rQa(a,b,c)},hide:function(a){this.v9=s;sc.e.DL?this.j("HIDDEN_MOVE"):this.j(a?"HIDDEN_SCALE":"HIDDEN")}})});ig.G=j;
ig.I("game.feature.menu.gui.trade.trader-list").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.gui.base.box","game.feature.gui.base.text","game.feature.menu.gui.menu-misc","game.feature.menu.gui.item.item-list","game.feature.menu.gui.list-boxes","game.feature.menu.gui.tab-box","game.feature.menu.gui.trade.trade-misc").H(function(){var a={SD:s,tK:g,index:0};sc.F1a=sc.Q7.extend({dc:s,f:function(){this.parent(j);this.v(436,258);this.rb(436,258);this.P5(436,242);this.l(0,
0);this.F(ig.k.za,ig.k.gb);this.dc=sc.qd.submit;this.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,offsetX:218},time:0.2,p:KEY_SPLINES.LINEAR}};this.Oe.v(this.a.size.x,222);var a=new sc.ea(ig.lang.get("sc.gui.trade.owned"),{font:sc.Ka.Lb});a.F(ig.k.ha,ig.k.W);a.l(2,-8);this.Oe.m(a);for(var a=sc.map.yab(),c=0,d=0;d<a.length;d++)sc.Db.Wab(a[d])&&sc.Db.gbb(a[d])&&this.wn(a[d],c++,{type:a[d]})},ac:function(){sc.K.Na(sc.e,this)},Yb:function(){sc.K.lc(sc.e,this)},show:function(){this.parent();
this.Du(this.om||0,j,{skipSounds:j});ig.ua.ed(0.2);this.j("DEFAULT")},hide:function(){this.parent();this.j("HIDDEN")},h4:function(a,c){c!=this.om&&this.dc.play();return{skipSounds:j}},uW:function(){(ig.input.dd||this.Nh.Lq())&&sc.e.Eg(s,j)},tW:function(a,c,d){c=sc.map.AF(a);a="area-"+a;sc.Ka.Zab(a)||(a="enemy-abstract");a=new sc.BB.XH(c,a,116);a.re.l(7,1);a.l(0,2);a.setData({type:d.type});this.m(a);return a},LP:function(a,c){if(!c){this.dc.play();this.Du(this.HU(a));for(var d=this.fd.length;d--;)if(a==
this.fd[d]){sc.e.DG(d);break}sc.e.Eg(s,j);return w}},p4:function(){ig.input.dd&&sc.e.Eg(s,j)},o4:function(){sc.e.Eg(s,j)},JP:function(a,c,d,e){var h=s,k=s,l=-1,m=s,n=k=s,d=sc.Db.k$a(d,e);a.v(436,222);a.z4=0;a.paddingTop=2;a.clear();c.clear();if(a.mY)a.mY.rg();else{a.mY=new ig.X;a.vc.SC(a.mY,0);a.RHa=j}for(var e=1,o=0;o<d.length;o++){m=d[o];k=sc.Db.q2(m);n=k.options;k=new sc.v1a(m,c,a.qp().length);k.l(1,e);a.mY.m(k);for(var t=0,r=0;r<n.length;r++){var p=n[r].get;if(p[0]){l=p[0].id;h=new sc.y1a(sc.Pb.w$a(l),
m,r,l,sc.Pb.t$a(l),sc.q.R.Nr(l),p[0].amount);a.Rd(h);h.a.i.x=234;if(r==0)h.a.i.y=e+1}t=t+h.a.size.y}k.a.size.y=Math.max(t+1,44);e=e+(k.a.size.y+2);if(o!=d.length-1){m=new ig.Lf("#545454",433,1);m.l(0,e-1);a.mY.m(m)}else e=e-2;e=e+1}a.mY.a.size.y=e;a.Vkb()},i4:function(b){if(b.tK!=g){if(b.SD){a.SD=b.SD;a.tK=b.tK;a.index=b.a.i.y;sc.e.Eg(a)}b.data&&b.data.description?sc.e.tc(b.data.description):sc.e.tc(s,j);sc.Pb.rV(b.data.id)?sc.e.cm(sc.Pb.S1(b.data.id)):sc.e.cm("",w)}else{sc.e.cm("",w);sc.e.Eg(g);
b.data&&(b.data instanceof Object||sc.e.tc(b.data))}},osa:function(a){if(a.SD&&a.tK!=g&&!sc.e.DL){this.dc.play();sc.e.E8a()}},j4:function(){sc.e.Eg(s,j);sc.e.tc(s,j);sc.e.cm("",w)},lb:function(a,c,d){if(a==sc.e&&c==sc.ca.sr){sc.e.Eg(s,j);sc.e.tc(s,j);sc.e.cm("",w);this.sort(d.data.KG)}}})});ig.G=j;
ig.I("game.feature.menu.gui.trade.trader-menu").J("impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.menu.gui.base-menu","game.feature.menu.gui.menu-misc","game.feature.trade.trade-model","game.feature.menu.gui.trade.trader-list","game.feature.menu.gui.trade.trade-misc").H(function(){sc.E1a=sc.xja.extend({detail:s,f:function(){this.parent(new sc.F1a);this.detail=new sc.w1a;this.m(this.detail);this.Sc.Rd("auto",sc.D8.ORDER,0);this.Sc.Rd("trader",sc.D8.FOUND,1);this.list.l(0,
0);this.j("DEFAULT")},xd:function(){sc.e.Eg(s,w);this.detail.reset();this.parent();this.jr(ig.lang.get("sc.gui.menu.sort.auto"))},Rc:function(){this.parent();this.detail.hide();sc.e.DL=w;ig.C0()},p8a:function(){var a=sc.e.OD;this.detail.show(a.SD,a.tK,a.index-this.list.Rm.CJ());sc.e.kk(this.ieb.bind(this))},Wib:function(){var a=sc.e.OD;this.detail.rQa(a.SD,a.tK,a.index-this.list.Rm.CJ())},J8a:function(){this.detail.hide(j)},ieb:function(){sc.e.jk();sc.e.N8a()},Dh:function(){if(!this.Aa){this.Aa=new sc.Xo;
this.Aa.Io(ig.lang.get("sc.gui.menu.help-texts.traders.title"));this.Aa.eo(ig.lang.get("sc.gui.menu.help-texts.traders.pages"));this.Aa.a.zIndex=15E4;this.Aa.a.Ee=j}},lb:function(a,b,c){a==sc.e&&(b==sc.ca.sr?this.jr(c.text):b==sc.ca.wS?this.jr(ig.lang.get("sc.gui.menu.sort.auto")):b==sc.ca.Fja?sc.e.DL?this.p8a():this.J8a():b==sc.ca.MZ&&sc.e.DL&&sc.e.OD&&this.Wib())}})});ig.G=j;
ig.I("game.feature.menu.menu-model").J("impact.base.game","impact.feature.interact.button-interact","impact.feature.storage.storage","game.feature.model.base-model","game.feature.menu.area-loadable","game.feature.menu.gui.start-menu","game.feature.menu.gui.equip.equip-menu","game.feature.menu.gui.circuit.circuit-menu","game.feature.menu.gui.item.item-menu","game.feature.menu.gui.map.map-menu","game.feature.menu.gui.save.save-menu","game.feature.menu.gui.options.options-menu","game.feature.menu.gui.shop.shop-menu",
"game.feature.menu.gui.synop.synop-menu","game.feature.menu.gui.quests.quest-menu","game.feature.menu.gui.enemies.enemy-menu","game.feature.menu.gui.lore.lore-menu","game.feature.menu.gui.status.status-menu","game.feature.menu.gui.help.help-menu","game.feature.menu.gui.museum.museum-menu","game.feature.menu.gui.stats.stats-menu","game.feature.menu.gui.trophy.trophy-menu","game.feature.menu.gui.social.social-menu","game.feature.menu.gui.trade.trader-menu","game.feature.menu.map-model").H(function(){sc.Cd=
{Gl:0,cz:1,Md:2,A7:3,MAa:4,oja:5,pi:6,DZ:7,Z7:8,rM:9,wZ:10,a1a:11,oE:12,xha:13,DAa:14,LAa:15,EXa:16,aWa:17,VH:18};sc.Pj={};sc.Pj[sc.Cd.Gl]={Un:sc.A8,name:"start"};sc.Pj[sc.Cd.cz]={Un:sc.IWa,name:"items"};sc.Pj[sc.Cd.Md]={Un:sc.ZTa,name:"skills"};sc.Pj[sc.Cd.A7]={Un:sc.qVa,name:"equipment"};sc.Pj[sc.Cd.MAa]={Un:sc.N0a,name:"status"};sc.Pj[sc.Cd.oja]={Un:sc.T0a,name:"synopsis"};sc.Pj[sc.Cd.pi]={Un:sc.NXa,name:"map"};sc.Pj[sc.Cd.DZ]={Un:sc.D_a,name:"save",alt:"load"};sc.Pj[sc.Cd.Z7]={Un:sc.MYa,name:"options"};
sc.Pj[sc.Cd.rM]={Un:sc.S_a,name:"shop"};sc.Pj[sc.Cd.wZ]={Un:sc.IZa,name:"quests"};sc.Pj[sc.Cd.oE]={Un:sc.vXa,name:"lore"};sc.Pj[sc.Cd.xha]={Un:sc.kVa,name:"enemy"};sc.Pj[sc.Cd.DAa]={Un:sc.t0a,name:"social"};sc.Pj[sc.Cd.a1a]={Un:sc.G1a,name:"trophy"};sc.Pj[sc.Cd.LAa]={Un:sc.F0a,name:"stats"};sc.Pj[sc.Cd.EXa]={Un:sc.iYa,name:"stats"};sc.Pj[sc.Cd.aWa]={Un:sc.dWa,name:"help"};sc.Pj[sc.Cd.VH]={Un:sc.E1a,name:"trade"};sc.Rg={hh:0,Kc:1,dq:2};sc.Zc={NONE:0,HEAD:1,RIGHT_ARM:2,LEFT_ARM:3,TORSO:4,FEET:5};sc.ok=
{HH:0,LY:1,lYa:2,kS:3,vS:4};sc.jZ={};sc.jZ.BUY_AND_SELL=0;sc.jZ.BUY=1;sc.jZ.SELL=2;sc.dv={};sc.dv.Gl=0;sc.dv.vxa=1;sc.dv.Qmb=2;sc.dv.pAa=3;sc.eza={QUEST:0,LANDMARK:1,LORE:2,TROPHY:3,TRADER:4,STORY:5};sc.Wia=[{lang:"cons",type:"CONS"},{lang:"equip-arm",type:"EQUIP",Laa:"ARM"},{lang:"equip-head",type:"EQUIP",Laa:"HEAD"},{lang:"equip-torso",type:"EQUIP",Laa:"TORSO"},{lang:"equip-feet",type:"EQUIP",Laa:"FEET"},{lang:"trade",type:"TRADE"}];sc.WXa=ig.sf.extend({um:[],Vx:s,aF:s,Sm:sc.Cd.Gl,Y4:s,sP:[],Q:s,
mT:[],eV:[],Q0:s,Tqa:sc.Rg,qra:w,mo:sc.Zc.NONE,XP:s,ai:-1,Z4:-1,Fe:Vec2.pc(0,0),xca:Vec2.pc(0,0),Cfa:Vec2.pc(0,0),$d:Vec2.pc(0,0),NQ:w,QQ:w,Jo:sc.ok.HH,PQa:sc.ok.HH,kva:w,jl:s,Vf:Vec2.pc(0,0),DX:w,ED:s,bD:w,gK:w,yd:Vec2.pc(0,0),hra:w,prb:w,VV:w,Fd:Vec2.pc(0,0),iMa:Vec2.pc(0,0),Pca:w,cD:w,Ag:Vec2.pc(0,0),mMa:Vec2.pc(0,0),F3:w,Ln:s,lj:s,Uca:w,D3:w,fy:Vec2.create(0,0),lL:s,T5:sc.dv.Gl,vw:0,Zq:[],kn:w,wp:-1,dP:s,r4:0,vW:s,Gsa:j,vG:0,ZP:s,ota:s,Iea:w,DL:w,i1:w,hJ:0,WF:w,Fca:-2,$cb:0,OD:s,dw:{},bK:[],CU:w,
f:function(){this.parent("MenuModel");this.Q=new ig.nr;window.Yc&&ig.Dj.dg("shops","ShopList","Shops");ig.Cc.dg(this)},zI:function(a){if(sc.eza[a.type]!=g){this.bK.push(a);sc.ta.cc("player","logs",1);this.bK.length>50&&this.bK.shift()}},nj:function(){this.dw={};this.bK.length=0},Mga:1E3,MP:function(){var a=ig.input.bb==ig.Gb.Jc;if(this.CU!=a){this.CU=a;this.Ru(j)}},gw:function(){if(window.aj&&this.Cva&&!this.rRa)this.Hva>0?this.Hva=this.Hva-ig.g.ga:this.B8a()},at:function(){this.Cva=w},my:function(){if(window.MENU_ON_GAME_START&&
window.aj){this.Cva=j;this.Hva=0.2}},B8a:function(){if(this.Cva&&!this.rRa){this.yQ(j,sc.Cd[window.MENU_ON_GAME_START]);window.MENU_ON_GAME_START=s;this.rRa=j;sc.q.Ex()}},UEa:function(a,b){this.dw[a]||(this.dw[a]=[]);this.dw[a].push(b)},IJa:function(a){return this.dw[a]&&this.dw[a].length>0},abb:function(a,b){return this.dw[a]&&this.dw[a].indexOf(b)!=-1},R6a:function(a,b){this.dw[a]&&this.dw[a].xf(b)},Rq:function(a){a.menuNewEntries=ig.copy(this.dw);a.logs=ig.copy(this.bK)},Qq:function(a){this.dw=
a.menuNewEntries||{};this.bK=a.logs||[]},p9a:function(){sc.K.wa(this,sc.ca.Dya)},Qi:function(a,b){this.eV.push(a);b&&sc.K.wa(this,sc.ca.Bja)},Dr:function(){sc.K.wa(this,sc.ca.Bja)},Ru:function(a){sc.K.wa(this,sc.ca.kBa,a)},kk:function(a){if(a){this.mT.push(a);this.Q0=a}},jk:function(){this.mT.pop();this.Q0=this.mT.length>0?this.mT[this.mT.length-1]:s},Xbb:function(){this.Q0&&this.Q0()},sy:function(a){if(a){this.sP.push(a);this.Y4=this.Sm;this.Sm=a;this.eV=[];this.tc("",j);sc.K.wa(this,sc.ca.QY)}},
bs:function(){if(!(this.sP.length<=0)){this.Y4=this.sP.pop();this.Sm=this.sP.length>0?this.sP[this.sP.length-1]:sc.Cd.Gl;this.tc("",j);this.eV=[];sc.K.wa(this,sc.ca.cZ)}},Ex:function(){ig.ua.de(this.Q);this.qra=j},yQ:function(a,b){this.i1=a||w;this.hJ=b||sc.Cd.Gl},Rc:function(){if(this.qra){this.qra=w;sc.yq.gr("MENU_LEAVE",{})}this.sP=[];this.mT=[];this.aF=this.Vx=this.Q0=s;this.Sm=sc.Cd.Gl;this.XP=s;this.mo=sc.Zc.NONE;this.Z4=this.ai=-1;this.Jo=sc.ok.HH;this.NQ=w;this.jl=s;this.Vf.x=0;this.Vf.y=
0;this.DX=w;this.ED=s;this.wp=-1;this.dP=s;this.r4=0;this.vW=s;this.vG=0;this.ota=this.ZP=s;this.Iea=w;this.lL=s;this.T5=sc.dv.Gl;this.vw=0;this.Zq.length=0;this.DL=this.kn=w;sc.map.restore();this.VV=this.hra=this.gK=this.bD=w;this.Fd.x=this.Fd.y=this.iMa.x=this.iMa.y=0;this.Ag.x=this.Ag.y=this.mMa.x=this.mMa.y=0;this.cD=this.F3=this.Pca=w;this.lj=this.Ln=s;this.D3=this.Uca=w;this.fy.x=this.fy.y=0;this.WF=w;this.$cb=0;this.OD=s;this.eV=[];ig.ua.ie(this.Q);sc.K.wa(this,sc.ca.YL)},Wbb:function(){sc.K.wa(this,
sc.ca.Tza)},tc:function(a,b){this.Vx=a;sc.K.wa(this,sc.ca.bz,b)},cm:function(a,b){this.aF=a;sc.K.wa(this,sc.ca.qAa,b)},Th:function(a,b,c){this.Tqa=c||sc.Rg.hh;sc.K.wa(this,sc.ca.aza,{x:a||0,y:b||0})},E8a:function(){this.DL=j;sc.K.wa(this,sc.ca.Fja)},N8a:function(){this.DL=w;sc.K.wa(this,sc.ca.Fja)},Tua:function(a){if(this.T5!=a){var b=this.T5;this.T5=a||sc.dv.Gl;sc.K.wa(this,sc.ca.vAa,b)}},jQa:function(a){if(this.vw!=a){var b=this.vw;this.vw=a||0;sc.K.wa(this,sc.ca.uAa,b)}},wSa:function(a,b,c){for(var d=
this.Zq.length;d--;){var e=this.Zq[d];if(e.id==a&&e.en==c){e.zb=b;e.zb<=0&&this.Zq.splice(d,1);d=-10;break}}d!=-10&&this.Zq.push({id:a,zb:b,en:c});sc.K.wa(this,sc.ca.Xia)},mob:function(a,b){var c=this.DJ();return c+b*a<=sc.q.R.Ud},DJ:function(a,b){for(var c=0,d=this.Zq.length;d--;){var e=this.Zq[d];a==e.id&&b==e.en||(c=c+e.en*e.zb)}return c},AO:function(a,b){for(var c=this.Zq.length;c--;){var d=this.Zq[c];if(d.id==a&&d.en==b)return d.zb}return 0},sfb:function(a){sc.K.wa(this,sc.ca.tAa,a)},qfb:function(){sc.K.wa(this,
sc.ca.sAa)},Pwa:function(a,b,c){var d=this.DJ(a,c);a&&(b!=g&&c)&&(d=d+(b||0)*c);sc.K.wa(this,sc.ca.Xia,d)},IMa:function(){ig.Cc.save(ig.Cc.Ke.length);sc.K.wa(this,sc.ca.oAa)},u5:function(a){ig.Cc.save(a);sc.K.wa(this,sc.ca.g_a,a)},cU:function(a){ig.Cc.cU(a);sc.K.wa(this,sc.ca.f_a,a)},Xcb:L("Fca"),Bua:function(a){sc.K.wa(this,sc.ca.ZY,a)},Yea:function(){sc.K.wa(this,sc.ca.N7)},RPa:function(a){a=a||0;if(a!=this.wp){var b=this.wp;this.wp=a;sc.K.wa(this,sc.ca.yH,b)}},iba:function(){switch(this.wp){case 0:return"NEW";
case 1:return sc.Hm.CONS;case 2:case 3:case 4:case 5:return sc.Hm.EQUIP;case 6:return sc.Hm.TRADE;case 7:return sc.Hm.KEY}return s},wpb:function(){switch(this.wp){case 2:return sc.Of.ARM;case 3:return sc.Of.HEAD;case 4:return sc.Of.TORSO;case 5:return sc.Of.FEET}return s},TJ:function(){return!!(this.wp>=2&&this.wp<=5)},Dy:function(a){sc.K.wa(this,sc.ca.sr,a)},ZPa:function(a){a=a||0;if(a!=this.r4){this.r4=a;sc.K.wa(this,sc.ca.Gza)}},vpb:function(){switch(this.wp){case 0:return sc.jd.wt;case 1:return sc.jd.sn;
case 2:return sc.jd.UZ;case 3:return sc.jd.oTa;case 4:return sc.jd.Yh}return s},DG:function(){sc.K.wa(this,sc.ca.wS)},Eg:function(a,b){this.OD=a;sc.K.wa(this,sc.ca.MZ,b)},KRa:function(a){sc.K.wa(this,sc.ca.pja,a)},Rib:function(a){sc.K.wa(this,sc.ca.PAa,a)},eQa:function(a){a=a||0;if(a!=this.vG){var b=this.vG;this.vG=a;sc.K.wa(this,sc.ca.Hia,b)}},Q5:function(a,b){this.ota=a;sc.K.wa(this,sc.ca.fAa,b)},y8a:function(a){this.Iea=j;sc.K.wa(this,sc.ca.e8,a)},Ocb:function(){this.Iea=w;sc.K.wa(this,sc.ca.Iia)},
cL:function(a){this.XP=this.mo;this.mo=a||sc.Zc.NONE;sc.K.wa(this,sc.ca.EZ)},w7a:function(){var a=this.mo+1;a>5&&(a=sc.Zc.HEAD);this.cL(a)},v7a:function(){var a=this.mo-1;a<1&&(a=sc.Zc.FEET);this.cL(a)},s6a:function(a){sc.K.wa(this,sc.ca.Bha,a)},K8a:function(){this.XP=s;this.mo=sc.Zc.NONE},A5:function(a){if(a!=this.ai){this.Z4=this.ai;this.ai=a!=g?a:-1;if(this.ai!=-1){this.Jo=sc.ok.LY;this.jl=s;this.QQ=w}else{this.Jo=sc.ok.HH;this.QQ=w;this.xca.x=this.Fe.x;this.xca.y=this.Fe.y;this.Fe.x=0;this.Fe.y=
0;this.jl=s}sc.K.wa(this,sc.ca.GZ)}},MHa:function(a,b,c){if(this.jl==c){if(ig.input.bb==ig.Gb.Jc){this.Fe.x=a;this.Fe.y=b;sc.K.wa(this,sc.ca.zAa)}}else{this.QQ=w;this.Cfa.x=this.Fe.x;this.Cfa.y=this.Fe.y;this.Fe.x=a;this.Fe.y=b;this.jl=c;this.Jo=sc.ok.lYa;sc.K.wa(this,sc.ca.p8,this.jl.$e)}},nY:function(a){if(this.jl==a){this.jl=s;this.Jo=sc.ok.LY;sc.K.wa(this,sc.ca.Zia)}},Ewa:function(a){if(this.ED==a){this.ED=s;sc.K.wa(this,sc.ca.dja)}},PHa:function(a,b,c){if(this.ED==c){if(ig.input.bb==ig.Gb.Jc){this.Vf.x=
a;this.Vf.y=b;sc.K.wa(this,sc.ca.bja)}}else{this.DX=w;this.Vf.x=a;this.Vf.y=b;this.ED=c;sc.K.wa(this,sc.ca.cja)}},SOa:function(){this.DX=w;if(this.ED)this.ED.focus=w;this.ED=s},p6a:function(a){if(a){a=-this.Fe.y+ig.g.height/2;this.$d.x=-this.Fe.x+ig.g.width/2;this.$d.y=a;this.Jo=sc.ok.kS;sc.K.wa(this,sc.ca.aja)}},y1:function(a){this.Jo=a||sc.ok.LY;sc.K.wa(this,sc.ca.BAa)},C8a:function(a){this.PQa=a||sc.ok.HH;this.Jo=sc.ok.vS;sc.K.wa(this,sc.ca.AAa)},PLa:function(){this.Jo=sc.ok.HH;sc.K.wa(this,sc.ca.$ia)},
qga:function(){sc.K.wa(this,sc.ca.sM)},kua:function(a){sc.map.ej=a||0;sc.K.wa(this,sc.ca.iS)},F8a:function(){if(this.lj&&this.lj.focus)this.lj.focus=w;this.lj=s;this.bD=w;this.cD=j;sc.K.wa(this,sc.ca.jM,this.cD)},ooa:function(){this.cD=w;sc.K.wa(this,sc.ca.jM,this.cD)},JHa:function(a,b,c,d){if(this.Ln==c){if(ig.input.bb==ig.Gb.Jc){this.Ag.x=a;this.Ag.y=b;sc.K.wa(this,sc.ca.fia,j)}}else{this.Ag.x=a;this.Ag.y=b;if(this.Ln&&this.Ln.focus)this.Ln.focus=w;if((this.Ln=c)&&!this.Ln.focus)this.Ln.focus=j;
sc.K.wa(this,sc.ca.gia,d)}},OHa:function(a,b,c,d){if(this.lj==c){if(ig.input.bb==ig.Gb.Jc){this.Fd.x=a;this.Fd.y=b;sc.K.wa(this,sc.ca.fia)}}else{this.gK=w;this.Fd.x=a;this.Fd.y=b;if(this.lj&&this.lj.focus)this.lj.focus=w;if(this.lj=c)this.lj.focus=j;sc.K.wa(this,sc.ca.hia,d)}},Dwa:function(a){if(this.Ln==a){if(this.Ln)this.Ln.focus=w;this.Ln=s;sc.K.wa(this,sc.ca.hZ,j)}},J6:function(a){if(this.lj==a){if(this.lj)this.lj.focus=w;this.lj=s;sc.K.wa(this,sc.ca.hZ,w)}},UOa:function(){this.F3=w;if(this.Ln)this.Ln.focus=
w;this.Ln=s},Wqa:function(a){if(a==sc.map.Zh.path)this.ooa();else{this.D3=j;this.cD=w;sc.K.wa(this,sc.ca.eia,a)}},Uhb:function(a){this.D3=w;sc.K.wa(this,sc.ca.fZ,a)},R9a:function(){return this.TIa(this.Sm)},TIa:function(a){return ig.lang.get("sc.gui.menu.menu-titles."+(this.WF&&sc.Pj[a].alt?sc.Pj[a].alt:sc.Pj[a].name))},Uqb:function(){return this.Sm==sc.Cd.Gl},Tqb:function(){return this.Sm==sc.Cd.Md},Hqb:function(){return this.Sm==sc.Cd.A7},Vqb:function(){return this.Sm==sc.Cd.MAa},Xqb:function(){return this.Sm==
sc.Cd.oja},isMap:function(){return this.Sm==sc.Cd.pi},Rqb:function(){return this.Sm==sc.Cd.DZ},Oqb:function(){return this.Sm==sc.Cd.Z7},Sqb:function(){return this.Sm==sc.Cd.rM},bcb:function(){return this.Q.Tc()}});sc.ca={};sc.ca.bz=0;sc.ca.Bja=1;sc.ca.kBa=2;sc.ca.QY=3;sc.ca.cZ=4;sc.ca.YL=5;sc.ca.aza=6;sc.ca.ZY=7;sc.ca.EZ=8;sc.ca.Bha=9;sc.ca.GZ=10;sc.ca.p8=11;sc.ca.Zia=12;sc.ca.aja=13;sc.ca.BAa=14;sc.ca.AAa=15;sc.ca.$ia=16;sc.ca.sM=17;sc.ca.zAa=18;sc.ca.yH=19;sc.ca.iS=20;sc.ca.Gza=21;sc.ca.sr=22;sc.ca.N7=
23;sc.ca.qAa=24;sc.ca.Hia=25;sc.ca.fAa=26;sc.ca.e8=27;sc.ca.Iia=28;sc.ca.jM=29;sc.ca.gia=30;sc.ca.hia=31;sc.ca.hZ=32;sc.ca.fia=33;sc.ca.eia=34;sc.ca.fZ=35;sc.ca.oAa=36;sc.ca.g_a=37;sc.ca.f_a=38;sc.ca.wS=39;sc.ca.MZ=40;sc.ca.pja=41;sc.ca.PAa=42;sc.ca.cja=43;sc.ca.dja=44;sc.ca.bja=45;sc.ca.vAa=46;sc.ca.uAa=47;sc.ca.Xia=48;sc.ca.tAa=49;sc.ca.sAa=50;sc.ca.Fja=51;sc.ca.Tza=99;sc.ca.Dya=100;ig.wf(function(){return sc.e=new sc.WXa})});ig.G=j;
ig.I("game.feature.model.game-model").J("impact.base.game","impact.feature.bgm.bgm","game.feature.model.base-model","game.feature.player.player-model","game.feature.msg.message-model","game.feature.menu.menu-model","game.feature.model.options-model").H(function(){sc.QR=[{label:"D",q1:1},{label:"C",q1:1.1},{label:"B",q1:1.25},{label:"A",q1:1.5},{label:"S",q1:2}];sc.WY=ig.sf.extend({um:[],Id:0,Ml:0,KK:0,Wd:s,K4:s,f3:w,yca:s,R:s,message:s,e:s,options:s,Rsb:sc.CUa.Ki,FD:0,hGa:w,qC:0,iF:0,M2:0,oX:w,vJ:w,
EX:w,t5:w,hV:0,C2:[],D2:[],rrb:10,t4:0,Tjb:function(){this.hV=0;this.t5=j},ikb:function(a){if(this.t5){this.t5=w;a=a?this.D2:this.C2;a.push(this.hV);a.sort(function(a,c){return a-c});a.length>10&&a.pop()}},f:function(){this.parent("GameModel");this.message=sc.message;this.e=sc.e;this.options=sc.options;this.yca=new sc.d8("Lea");this.yca.wr(this);this.R=new sc.pZa;ig.Cc.dg(this)},Pq:function(){this.R.rX(this.yca)},eL:function(a,b){var c=this.Sr(),d=this.pA();b?this.vJ=!!a:this.hGa=!!a;if(this.pu())this.qC=
this.R.iIa();d!=this.pA()&&sc.K.wa(this,sc.Le.EY);c!=this.Sr()?this.Sr()?this.Ava():this.fO():this.Jwa()},v0:function(){if(this.qC>0){this.qC=0;this.fO()}},sqa:function(){return!this.R.Si(sc.hg.COMBAT_RANK)||sc.Dg.Tc()||sc.map.uV()||this.vJ?w:j},aKa:function(a){if(!this.sqa())return w;var b=this.yJ();this.iF=this.iF+(a||1)/(4*Math.pow(1.5,Math.floor(this.iF)));if(this.iF>sc.QR.length-1)this.iF=sc.QR.length-1;if(b!=this.yJ()){sc.K.wa(this,sc.Le.Mxa);a=ig.lang.get("sc.gui.combat-msg.rank-up")+" "+this.Roa();
a=new sc.y8(ig.t.wb,a,1);ig.T.Mc(a);return j}return w},yJ:function(){return Math.floor(this.iF)},Roa:function(){return sc.QR[this.yJ()].label},hba:function(a){for(var b=sc.QR.length;b--;)if(sc.QR[b].label==a)return b;f(Error("Combat Rannk of Label '"+a+"' does not exist"))},K9a:function(){return sc.QR[this.yJ()].q1},L9a:function(){return this.iF-Math.floor(this.iF)},Hib:L("oX"),Ava:function(){sc.ta.cc("combat","started",1);this.M2=0;this.Jwa();sc.K.wa(this,sc.Le.EY,j)},fO:function(){sc.ta.lfa("combat",
"streakTime",this.M2);this.iF=0;this.Jwa();sc.K.wa(this,sc.Le.EY,w)},Jwa:function(){this.Sr()?ig.Zf.wx.length==1&&ig.Zf.Zfb("battle","FAST_OUT"):ig.Zf.wx.length>1&&ig.Zf.bOa("SLOW")},mDa:function(){return!this.Sr()&&this.Xm()&&this.SJ()&&!sc.Wa.Tc()},UKa:function(){return this.mDa()&&this.t4<=0},nj:function(){this.R.rX(this.yca);this.R.reset();this.eL(w);this.eL(w,j);this.v0();this.EX=this.t5=this.oX=w;this.M2=0;this.kL(s,w);this.Qua(s)},BA:function(){if(this.pA())if(this.Qe())this.v0();else if(this.Xm()){this.qC=
this.qC-ig.g.ga;if(this.qC<=0){this.qC=0;this.fO()}}if(this.Sr()){this.M2=this.M2+ig.g.uy;sc.ta.cc("combat","time",ig.g.uy)}if(this.mDa()){if(this.t4>0)this.t4=this.t4-1}else this.t4=2;if(!this.Mq()&&(this.Xm()||this.xo())&&this.t5)this.hV=this.hV+ig.g.Da;if(this.Qe()&&this.Xm()||this.message.cw){if(this.FD>0){this.FD=this.FD-ig.g.Da;if(this.FD<=0){this.FD=0;sc.K.wa(this,sc.Le.HY,w)}}}else if(this.FD>0){this.FD=0;sc.K.wa(this,sc.Le.HY,w)}},MP:function(){this.R&&this.R.xSa()},Mma:function(){sc.K.wa(this,
sc.Le.Lxa,j)},Efa:function(){if(!this.EX)if(this.FD>0){this.FD=0;sc.K.wa(this,sc.Le.HY,w);if(sc.options.get("skip-confirm")){ig.Fs=w;this.message.cw||ig.t.EQ(j);sc.rn.ww(ig.lang.get("sc.gui.dialogs.skipConfirm"),s,function(a){ig.Fs=j;this.message.cw||ig.t.EQ(w);a.data==0&&this.Eva()}.bind(this))}else this.Eva()}else{this.FD=3;sc.K.wa(this,sc.Le.HY,j)}},vHa:function(){ig.g.tl=w;this.jla(sc.vt.Aja);this.message.wsa(j)},Zna:function(){this.message.G0();this.jla(sc.vt.UR)},oU:function(){ig.g.tl=w;this.message.wsa();
this.jla(sc.vt.VY)},Ir:function(a){ig.t.EQ(w);this.pv(sc.Yf.fv,a)},D8a:function(){this.pv(sc.Yf.jBa)},u8a:function(){this.pv(sc.Yf.LOADING)},v8a:function(){this.pv(sc.Yf.oia)},A8a:function(){this.pv(sc.Yf.Oia)},t8a:function(){this.pv(sc.Yf.aia)},s8a:function(){this.pv(sc.Yf.cza)},z8a:function(){this.pv(sc.Yf.Gia)},Jaa:function(){if(this.Id==sc.vt.VY&&this.Ml==sc.Yf.fv&&!this.WKa()){ig.t.EQ(j);this.pv(sc.Yf.Jia);return j}return w},w8a:function(){if((this.Id==sc.vt.VY||this.Id==sc.vt.UR)&&this.Ml==
sc.Yf.fv&&!this.WKa()){this.pv(sc.Yf.Fza);return j}return w},uHa:function(){if(this.Ml!=this.KK)switch(this.KK){case sc.Yf.iZ:this.Ex();break;case sc.Yf.fv:this.Ir();break;case sc.Yf.qS:this.tHa(j);break;default:this.pv(this.KK)}},Ex:function(a){if(a||this.Id==sc.vt.VY&&this.Ml==sc.Yf.fv){ig.t.EQ(j);this.pv(sc.Yf.iZ);return j}return w},tHa:function(a){if(a||this.Id!==sc.vt.Aja&&this.Ml==sc.Yf.fv){ig.t.EQ(j);this.p6();this.pv(sc.Yf.qS);return j}return w},c3:function(){return this.Id==sc.vt.Aja},SJ:function(){return this.Id==
sc.vt.VY},Qe:function(){return this.Id==sc.vt.UR},Xm:function(){return this.Ml==sc.Yf.fv},iLa:function(){return this.Ml==sc.Yf.jBa},RKa:function(){return this.Ml==sc.Yf.LOADING},Mqb:function(){return this.Ml==sc.Yf.oia},WC:function(){return this.Ml==sc.Yf.Oia},ncb:function(){return this.Ml==sc.Yf.aia},xo:function(){return this.Ml==sc.Yf.iZ},Mq:function(){return this.Ml==sc.Yf.qS},qA:function(){return this.Ml==sc.Yf.qS||this.Ml==sc.Yf.Jia},cP:function(){return this.Ml==sc.Yf.cza},Ss:function(){return this.Ml==
sc.Yf.Gia},yV:function(){return this.Ml==sc.Yf.Jia},yqa:function(){return this.Ml==sc.Yf.Fza},Iqb:M("vJ"),Sr:function(){return this.pu()||this.qC>0},pu:function(){return this.hGa||this.vJ},pA:function(){return!this.pu()&&this.qC>0},J9a:function(){return this.qC/this.R.iIa()},mca:function(){return!this.oX&&!this.Sr()&&ig.t.bP()},WKa:function(){var a=ig.t.wb;return!a?w:a.VC()},Sab:function(){return this.message.DJa()},Eva:function(){if(!this.EX&&(this.message.cw||this.Id==sc.vt.UR)&&!this.message.DJa())ig.g.tl=
j},p6:function(){ig.g.tl=w},kL:function(a,b){this.Wd=a;this.f3=b;sc.K.wa(this,sc.Le.iBa)},Qua:function(a){this.K4=a;sc.K.wa(this,sc.Le.Pza)},fhb:function(){sc.K.wa(this,sc.Le.kAa)},jla:function(a){this.Id=a;sc.K.wa(this,sc.Le.Vw)},pv:function(a,b){this.KK=this.Ml;this.Ml=a;b||sc.K.wa(this,sc.Le.jq)},Rq:function(a){a.player=this.R.LC();a.saveBlock=this.oX;a.forceCombatMode=this.vJ;a.highscore=ig.copy(this.C2);a["highscore-obs"]=ig.copy(this.D2);a.currentTask=this.Wd&&this.Wd.data;a.permaTask=this.K4&&
this.K4.data;a.keepTaskDisplayed=this.f3},Qq:function(a){this.R.Ofb(a.player);this.oX=a.saveBlock||w;this.C2=a.highscore||[];this.D2=a["highscore-obs"]||[];this.Wd=a.currentTask&&new ig.Oa(a.currentTask);this.f3=a.keepTaskDisplayed;this.Qua(a.permaTask&&new ig.Oa(a.permaTask))},Asa:function(a){this.eL(w);this.eL(a.forceCombatMode,j);this.v0();this.R.Lfb(a.player)}});ig.wf(function(){return sc.q=new sc.WY});sc.Le={Vw:0,iBa:1,jq:2,EY:3,Mxa:4,HY:5,kAa:6,Pza:7,Lxa:8};sc.vt={Aja:0,VY:1,UR:2};sc.Yf={fv:0,
jBa:1,LOADING:2,oia:3,Oia:4,aia:5,iZ:6,qS:7,cza:8,Jia:9,Fza:10,Gia:11}});ig.G=j;
ig.I("game.feature.combat.combat").J("impact.base.game","impact.feature.effect.effect-sheet","impact.feature.database.database","game.feature.model.game-model").H(function(){sc.Qd={PLAYER:1,ENEMY:2,OTHER:3};sc.kH={METAL:1,ORGANIC:2};sc.lH={ORDER:0,NAME:1,LEVEL:2,AREA:3};sc.f7={SPAMM:{wJ:0.25},OFTEN:{wJ:0.5},NORMAL:{wJ:1},SOMETIMES:{wJ:2.5},RARE:{wJ:5},VERY_RARE:{wJ:10}};var a=[1,0.75,0.5],b=[],c;for(c in sc.f7)b.push(c);sc.m7={DEFEATED:1};var d={};c=d[sc.ja.NEUTRAL]={};c[sc.hc.LIGHT]=[new ig.da("media/sound/battle/airon/ball-hit-light1.ogg",
1,0.1,"hitLight"),new ig.da("media/sound/battle/airon/ball-hit-light2.ogg",1,0.1,"hitLight"),new ig.da("media/sound/battle/airon/ball-hit-light3.ogg",1,0.1,"hitLight"),new ig.da("media/sound/battle/airon/ball-hit-light4.ogg",1,0.1,"hitLight")];c[sc.hc.MEDIUM]=[new ig.da("media/sound/battle/airon/ball-hit-medium1.ogg",1,0.1,"hitMedium"),new ig.da("media/sound/battle/airon/ball-hit-medium2.ogg",1,0.1,"hitMedium"),new ig.da("media/sound/battle/airon/ball-hit-medium3.ogg",1,0.1,"hitMedium"),new ig.da("media/sound/battle/airon/ball-hit-medium4.ogg",
1,0.1,"hitMedium")];c[sc.hc.HEAVY]=[new ig.da("media/sound/battle/airon/ball-hit-hard1.ogg",1,0.1,"hitHeavy"),new ig.da("media/sound/battle/airon/ball-hit-hard2.ogg",1,0.1,"hitHeavy"),new ig.da("media/sound/battle/airon/ball-hit-hard3.ogg",1,0.1,"hitHeavy"),new ig.da("media/sound/battle/airon/ball-hit-hard4.ogg",1,0.1,"hitHeavy")];c[sc.hc.MASSIVE]=[new ig.da("media/sound/battle/airon/ball-hit-hard3.ogg",1,0.1,"hitMassive"),new ig.da("media/sound/battle/airon/ball-hit-hard4.ogg",1,0.1,"hitMassive")];
c=d[sc.ja.HEAT]={};c[sc.hc.LIGHT]=[new ig.da("media/sound/battle/airon/fire-hit-light1.ogg",1,0.1,"hitLight"),new ig.da("media/sound/battle/airon/fire-hit-light2.ogg",1,0.1,"hitLight"),new ig.da("media/sound/battle/airon/fire-hit-light3.ogg",1,0.1,"hitLight"),new ig.da("media/sound/battle/airon/fire-hit-light4.ogg",1,0.1,"hitLight")];c[sc.hc.MEDIUM]=[new ig.da("media/sound/battle/airon/fire-hit-medium1.ogg",1,0.1,"hitMedium"),new ig.da("media/sound/battle/airon/fire-hit-medium2.ogg",1,0.1,"hitMedium"),
new ig.da("media/sound/battle/airon/fire-hit-medium3.ogg",1,0.1,"hitMedium"),new ig.da("media/sound/battle/airon/fire-hit-medium4.ogg",1,0.1,"hitMedium")];c[sc.hc.HEAVY]=[new ig.da("media/sound/battle/airon/fire-hit-hard1.ogg",1,0.1,"hitHeavy"),new ig.da("media/sound/battle/airon/fire-hit-hard2.ogg",1,0.1,"hitHeavy"),new ig.da("media/sound/battle/airon/fire-hit-hard3.ogg",1,0.1,"hitHeavy"),new ig.da("media/sound/battle/airon/fire-hit-hard4.ogg",1,0.1,"hitHeavy")];c[sc.hc.MASSIVE]=[new ig.da("media/sound/battle/airon/fire-hit-hard3.ogg",
1,0.1,"hitMassive"),new ig.da("media/sound/battle/airon/fire-hit-hard4.ogg",1,0.1,"hitMassive")];c=d[sc.ja.COLD]={};c[sc.hc.LIGHT]=[new ig.da("media/sound/battle/airon/cold/ball-hit-cold-light1.ogg",1,0.1,"hitLight"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-light2.ogg",1,0.1,"hitLight"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-light3.ogg",1,0.1,"hitLight"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-light4.ogg",1,0.1,"hitLight")];c[sc.hc.MEDIUM]=[new ig.da("media/sound/battle/airon/cold/ball-hit-cold-medium1.ogg",
1,0.1,"hitMedium"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-medium2.ogg",1,0.1,"hitMedium"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-medium3.ogg",1,0.1,"hitMedium"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-medium4.oggg",1,0.1,"hitMedium")];c[sc.hc.HEAVY]=[new ig.da("media/sound/battle/airon/cold/ball-hit-cold-hard1.ogg",1,0.1,"hitHeavy"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-hard2.ogg",1,0.1,"hitHeavy"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-hard3.ogg",
1,0.1,"hitHeavy"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-hard4.ogg",1,0.1,"hitHeavy")];c[sc.hc.MASSIVE]=[new ig.da("media/sound/battle/airon/cold/ball-hit-cold-hard3.ogg",1,0.1,"hitMassive"),new ig.da("media/sound/battle/airon/cold/ball-hit-cold-hard4.ogg",1,0.1,"hitMassive")];var e={ignore:new ig.da("media/sound/battle/ball-kill.ogg",0.8,0.1),shielded:new ig.da("media/sound/battle/hit-block.ogg",0.8,0.05)},h={};c=h[sc.kH.METAL]={};c[sc.hc.LIGHT]=[new ig.da("media/sound/battle/airon/hit-metal-light-2.ogg",
0.6,0.1,"hitMatLight"),new ig.da("media/sound/battle/airon/hit-metal-light-3.ogg",0.6,0.1,"hitMatLight")];c[sc.hc.MEDIUM]=[new ig.da("media/sound/battle/airon/hit-metal-medium-1.ogg",1,0.1,"hitMatMedium"),new ig.da("media/sound/battle/airon/hit-metal-medium-2.ogg",1,0.1,"hitMatMedium"),new ig.da("media/sound/battle/airon/hit-metal-medium-3.ogg",1,0.1,"hitMatMedium"),new ig.da("media/sound/battle/airon/hit-metal-medium-4.ogg",1,0.1,"hitMatMedium")];c=h[sc.kH.ORGANIC]={};c[sc.hc.LIGHT]=[new ig.da("media/sound/battle/airon/hit-organic-1.ogg",
0.6,0.1,"hitMatLight"),new ig.da("media/sound/battle/airon/hit-organic-2.ogg",0.6,0.1,"hitMatLight"),new ig.da("media/sound/battle/airon/hit-organic-3.ogg",0.6,0.1,"hitMatLight")];c[sc.hc.MEDIUM]=[new ig.da("media/sound/battle/airon/hit-organic-deep-1.ogg",0.8,0.1,"hitMatMedium"),new ig.da("media/sound/battle/airon/hit-organic-deep-2.ogg",0.8,0.1,"hitMatMedium"),new ig.da("media/sound/battle/airon/hit-organic-deep-3.ogg",0.8,0.1,"hitMatMedium")];sc.dE={HP_BREAK_ZOOM:{Tn:0.1,kc:0.5,gx:0.2,Lz:0.2,zoom:1.5,
Vd:1},LAST_ENEMY_ZOOM:{Tn:0.001,kc:0.5,gx:0.2,Lz:0.2,zoom:1.5,Vd:1},BOSS_ZOOM:{Tn:0.001,kc:1,gx:0.7,Lz:1,zoom:1.5,Vd:1},BREAK:{Tn:0.001,kc:0.2,Lz:0.1,zoom:1.25,label:"sc.gui.combat-msg.break",Vd:2,gx:0.1,r0:"LIGHT"},BREAK_BIG:{Tn:0.001,kc:0.4,Lz:0.1,zoom:1.5,label:"sc.gui.combat-msg.break",Vd:1,gx:0.1,r0:"LIGHT",K5a:j},OVERLOAD:{Tn:0.001,kc:1,Lz:0.3,zoom:1,Vd:1,gx:0.7},GUARD_COUNTER:{Tn:0.001,kc:0.2,Lz:0.1,zoom:1.25,label:"sc.gui.combat-msg.guard-counter",Vd:2,gx:0.1,r0:"LIGHT"},GUARD_BREAK:{Tn:0.1,
kc:0.4,label:"sc.gui.combat-msg.guard-break",Lz:0.1,zoom:1,Vd:1,gx:0.3,r0:"LIGHT"},RANK_UP:{Tn:1,kc:0.3,gx:0.2,Lz:0.2,r0:"LIGHT"},PVP_KO:{Tn:0.001,kc:0.5,gx:0.2,Lz:0.2,zoom:1.5,Vd:2},PVP_FINAL_KO:{Tn:0.001,kc:1,gx:0.7,Lz:1,zoom:1.5,Vd:2}};sc.lza=10;var k=Vec2.create(),l=Vec2.create(),m=Vec2.create(),n=Vec2.create(),o=Vec2.create(),t=Vec2.create(),r=Vec3.create(),p=Vec2.create();sc.gUa=ig.sf.extend({$m:[],Zw:{},BU:[],It:{},K1:[],Ga:j,time:0,eQ:[],Zsa:w,O:{kA:new ig.ae("default-hit"),He:new ig.ae("guard"),
pb:new ig.ae("combat"),aV:new ig.ae("drops")},ta:{GV:0,iP:[],zea:0},vU:s,l5:[],zC:s,f:function(){this.parent("Combat");sc.K.Na(sc.q,this);this.It[sc.Qd.PLAYER]=[];this.It[sc.Qd.ENEMY]=[];this.It[sc.Qd.OTHER]=[];window.Yc&&ig.Dj.dg("enemies","EnemyEnumEditor","Enemies");this.zC=ig.Dj.get("enemies");ig.pa.Gp("combat",this,"VarCombatEditor")},HO:function(a,b){var c=0,d=0,e;for(e in this.zC)if(this.zC[e].track)if(b){if(this.zC[e].category==b){sc.ta.pg("combat","kill"+e)>=1&&c++;d++}}else{sc.ta.pg("combat",
"kill"+e)>=1&&c++;d++}return a?c/d:c},npa:function(a,b){var c=0,d=0,e=this.zC,h;for(h in e)if(e[h].track&&!(b&&!e[h].category==b)){var k=e[h].boss?1:e[h].kills||sc.lza,l=new ig.ce,m=e[h].descriptions||[];if(sc.ta.pg("combat","kill"+h)>=k)for(k=m.length;k--;){if(m[k].condition){l.fL(m[k].condition);l.evaluate()&&c++}else c++;d++}else d=d+m.length;m.length==0&&d++}return a?c/d:c},MEa:function(a){this.It[a.Ca].indexOf(a)!=-1&&f(Error("Tried to add same combatant as active twice!"));this.It[a.Ca].push(a);
a.Ca==sc.Qd.ENEMY&&a.dx==sc.Ow.THREAT&&this.eQ.push(a)},BOa:function(a){this.It[a.Ca].xf(a)},DU:function(a,b){if(a==sc.Qd.PLAYER&&sc.Ca.hB.JNa)return 1;var c=this.It[a];if(b){for(var d=0,e=c.length;e--;)c[e].np==b&&d++;return d}return c.length},aIa:function(a){for(var a=ig.copy(this.It[a]),b=a.length;b--;)a[b].Yg()?a.splice(b,1):!a[b].Xv&&!ig.Oj.Tr(a[b],32)&&a.splice(b,1);return a},c$a:function(){if(sc.Ca.hB.JNa)return ig.t.wb;var a=this.aIa(sc.Qd.PLAYER);return a[Math.floor(Math.random()*a.length)]},
bJa:function(a){var b=ig.t.wb.iGa.MLa;if(sc.Ca.hB.VSa&&b&&!b.Yg()&&!b.Ne)return b;for(var c=this.aIa(sc.Qd.ENEMY),d=c.length;d--;)if(sc.tt.kJ(c[d],a)){if(sc.tt.Ccb(c[d])||sc.tt.qLa(c[d]))return c[d];sc.tt.MKa(c[d])&&c.length>1&&c.splice(d,1)}!sc.Ca.hB.VSa&&(b&&c.length>1)&&c.xf(b);return c[Math.floor(Math.random()*c.length)]},hpb:function(){for(var a=[],b=this.It[sc.Qd.ENEMY],c=b.length;c--;)a.indexOf(b[c].np)==-1&&a.push(b[c].np);return a},Voa:function(a){return this.zC[a]?ig.Oa.wc(this.zC[a].name):
"\\c[1]ERROR\\c[0]"},BIa:function(a){return this.zC[a]?this.zC[a].level:1},Jib:function(a){for(var b=ig.t.Bm,c=b.length;c--;){var d=b[c];d instanceof ig.ya.Enemy&&ig.Oj.Tr(d,0)&&d.jn(a,j)}},Jgb:function(a,b){for(var c=ig.t.Bm,d=c.length;d--;){var e=c[d];e instanceof ig.ya.Enemy&&!e.Yg()&&(e!=b&&!(a&&e.np!=a))&&e.uKa()}},mib:L("vU"),beb:function(a,b){var c=sc.Dg.Xeb(b);c&&this.WN(a,b,c,j);if(b.Ca==sc.Qd.ENEMY){c=w;if(this.vU){for(var d=this.It[b.Ca],e=0,h=d.length;h--;)(!d[h].ba||!d[h].ba.Yg())&&e++;
if(e==0){if(!c){this.WN(a,b,this.vU);c=j}this.vU=s}}sc.q.aKa(1*b.bc.Xna)&&!c&&this.WN(a,a,sc.dE.RANK_UP)}},BQa:function(a,b,c){var d=sc.gja.TOP,e=0;if(a.qN){d=sc.gja.BOTTOM;e=a.qN+48}a=new sc.y8(a,b,c||1,d,e);ig.T.Mc(a)},WN:function(a,b,c,d){if(c.label){var e=ig.lang.get(c.label);this.BQa(b,e)}e=[];if(d=d||a.Xv||c.K5a){e.push({type:"ADD_SLOW_MOTION",name:"levelUp",factor:c.Tn,time:0});c.Vd==1&&e.push({type:"SET_CAMERA_TARGET",entity:b,speed:0.1,transition:"EASE_OUT",zoom:c.zoom||1});c.Vd==2&&e.push({type:"SET_CAMERA_BETWEEN",
entity1:a,entity2:b,speed:0.1,transition:"EASE_OUT",zoom:c.zoom||1})}c.gx&&e.push({type:"SET_ZOOM_BLUR",zoomType:c.r0||"MEDIUM",fadeIn:0.1,duration:c.gx,fadeOut:0.2});e.push({type:"WAIT",time:c.kc,ignoreSlowDown:j});if(d){e.push({type:"CLEAR_SLOW_MOTION",name:"levelUp",time:c.Lz});c.Vd&&e.push({type:"UNDO_CAMERA",speed:1,transition:"EASE_IN_OUT",wait:j})}a=new ig.Ra({steps:e});ig.t.Vg.wq(a,ig.bl.INTERRUPTABLE)},rG:500,gw:function(){if(!ig.uu&&!ig.t.paused){if(this.Ga)this.time=this.time+ig.g.ga;if(this.eQ.length>
0){for(var a=0,b=[],c=this.eQ.length;c--;){var d=this.eQ[c],a=Math.max(a,d.bc.aa);b.indexOf(d.np)==-1&&b.push(d.np)}sc.yq.gr("ENEMY_ATTACKS",{enemies:b,levelGap:a-sc.q.R.aa,playerStarted:this.Zsa,battleStarted:this.It[sc.Qd.ENEMY].length<=this.eQ.length});this.eQ.length=0;this.Zsa=w}for(c=this.K1.length;c--;){a=this.K1[c];a.$c?a.update()&&this.K1.splice(c,1):this.K1.splice(c,1)}for(var e in this.Zw){this.Zw[e]=this.Zw[e]-ig.g.ga;this.Zw[e]<=0&&delete this.Zw[e]}for(c=this.BU.length;c--;){e=this.BU[c];
e.time=e.time-ig.g.ga;(e.time<=0||e.P.Pv())&&this.BU.splice(c,1)}}},nj:function(){this.ta.GV=0;this.ta.iP.length=0;this.l5.length=0;this.eQ.length=0;this.vU=s},at:function(){this.l5.length=0;this.vU=s},On:function(a,b){if(b[0]=="combat"){var c=b.slice(2).join("."),c=c?c.replace(/\//g,"."):s;switch(b[1]){case "name":return this.Voa(c);case "activeCnt":return this.DU(sc.Qd.ENEMY,c);case "active":return sc.q.pu()}}f(Error("Unsupported var access path: "+a))},lb:function(a,b,c){if(a instanceof sc.WY)if(b==
sc.Le.Vw)this.setActive(!a.Qe());else if(b==sc.Le.EY)if(c!=g)if(c){this.ta.GV=0;this.ta.iP.length=0;this.ta.zea=sc.q.yJ()}else{sc.yq.gr("BATTLE_OVER",{enemies:this.ta.iP,killCount:this.ta.GV,rank:this.ta.zea});sc.ta.lfa("combat","streakKilled",this.ta.GV)}else if(sc.q.pA()){sc.yq.gr("COOLDOWN_START",{enemies:this.ta.iP,killCount:this.ta.GV,rank:sc.q.yJ(),prevRank:this.ta.zea});this.ta.iP.length=0;this.ta.zea=sc.q.yJ()}},WB:function(a){this.K1.push(a)},setActive:L("Ga"),QHa:function(){for(var a=this.It[sc.Qd.ENEMY],
b=a.length;b--;)a[b].jn(s);sc.q.v0()},Jla:function(a){this.$m.push(a)},DOa:function(a){this.$m.xf(a)},r9a:function(a,b,c,d,e,h){for(var k=this.It[sc.Qd.ENEMY],l=k.length,e=e||d,m=0;l--;){var n=k[l];if(h||!n.Pv())if((!n.ba||!n.ba.Yg())&&!n.Jk&&n.Z6a(b)&&a.VEa(n,b,c)){m++;if(m==e)return j}}return m>=d},UIa:function(a,b,c){for(var d=a.b.i,e=a.b.size,b=ig.t.Lx(d.x-b,d.y-b,d.z,e.x+2*b,e.y+2*b,e.z+b,a),d=b.length;d--;){e=b[d];if(e.Bi&&e.Bi().Ca!=a.Ca&&e.nca&&e.nca()){var h=ig.Xf.Lr(a.b,e.b,n);if(!(Vec2.oc(h,
a.face)>Math.PI*c)){Vec2.hd(h);if(!Vec2.Tl(e.b.Z)&&Vec2.oc(h,e.b.Z)<Math.PI/2)return e}}}return s},V$a:function(a){return a==sc.Qd.PLAYER?ig.t.wb.ba.f2():0},Ora:function(a){if(!a.gaa){a.gaa=j;a.Hda();this.ta.GV++;if(a.np){sc.ta.cc("combat","totalKilled",1);sc.ta.cc("combat","kill"+a.np,1);a.bc.b0&&sc.ta.cc("combat","aiGroupKill"+a.bc.b0,1);this.ta.iP.indexOf(a.np)==-1&&this.ta.iP.push(a.np);sc.yq.gr("ENEMY_DEFEATED",{enemy:a.np})}for(var b=0;b<this.$m.length;++b){var c=this.$m[b].hsa(a,sc.m7.DEFEATED);
if(c){var d=a,e=d.kb(k);ig.t.af("CombatantMarble",e.x,e.y,d.b.i.z,{target:c})}}}},N$a:function(a,b){for(var c=a.length;c--;)if(this.Zw[a[c]])return w;for(c=a.length;c--;)this.Zw[a[c]]=b[c]||0;return j},t9a:function(a,b){if(this.Zw[a])return w;this.Zw[a]=b;return j},Gbb:function(a){for(var c=this.RCa(a,this.DU(a.Ca),this.DU(sc.Qd.PLAYER)),d=b.length;d--;){var e=b[d];a.eR["_freq"+e]=sc.f7[e].wJ*c*(0.1+Math.random()*0.8)}},C6a:function(a,c){for(var d=b.indexOf(c)+1;d--;){var e="_freq"+b[d];if(this.Zw[e]||
a.eR[e]>0)return w}return j},pkb:function(a,c){var d=this.DU(a.Ca),e=this.DU(sc.Qd.PLAYER);if(d)for(var h=this.RCa(a,d,e),d=this.x3a(a,d,e),e=b.indexOf(c)+1,k=1;e--;){var l=b[e],m=sc.f7[l],l="_freq"+l;a.iW[l]=Math.max(a.iW[l]||0,m.wJ*h*(0.8+Math.random()*0.4)*k);this.Zw[l]=Math.max(this.Zw[l]||0,m.wJ*d*(0.8+Math.random()*0.4)*k);k=0.5}},RCa:function(b,c,d){return Math.pow(c,0.7)*2*a[d-1]},x3a:function(b,c,d){return Math.pow(1/c,0.3)*2*a[d-1]},o5a:function(a,b){this.BU.push({P:a,time:b})},CKa:function(a){for(var b=
a.kb(k),c=0;c<this.BU.length;++c){var d=this.BU[c];if(d.P.target){var e=d.P.b.size.x+a.b.size.x,h=d.P.kb(l),d=d.P.target.kb(m),d=Vec2.sub(d,h,n),r=Vec2.length(d);Vec2.normalize(d);var h=Vec2.sub(b,h,o),p=Vec2.hj(h,d);if(p<0||p>r)continue;d=Vec2.kX(d,t);h=Vec2.hj(h,d);if(Math.abs(h)>e*1.5)continue;return h>0?d:Vec2.hd(d)}return w}},sj:function(a,b,c,l,m,n,r){var o="";switch(c){case sc.hc.NONE:o="none";break;case sc.hc.LIGHT:o="light";break;case sc.hc.MEDIUM:o="medium";break;case sc.hc.HEAVY:o="heavy";
break;case sc.hc.MASSIVE:o="massive";break;case sc.hc.BREAK:o="massive"}var t="";switch(l){case sc.ja.HEAT:t="Heat";break;case sc.ja.COLD:t="Cold";break;case sc.ja.SHOCK:t="Shock";break;case sc.ja.WAVE:t="Wave"}n&&this.O.kA.eh("critical",b.x,b.y,b.z,a,{angle:Math.PI*2*Math.random()});if(m==sc.qM.oM){n=ig.hpa(a.face.x,a.face.y,8,p);this.O.He.Ya("perfectGuard",a,{align:"CENTER",angle:Vec2.Gs(n)})}this.O.kA.eh(o+t,b.x,b.y,b.z,a,{angle:Math.PI*2*Math.random()});if(!r){Vec2.Sa(k,b.x,b.y-b.z);if(m&&c!=
sc.hc.BREAK)b=e.shielded;else if(c==sc.hc.NONE)b=e.ignore;else{b=d[l]||d[sc.ja.NEUTRAL];b=b[c]||b[sc.hc.MASSIVE];l=Math.floor(Math.random()*b.length);b=b[l]}b.play(k);if(!m&&a&&c!=sc.hc.NONE){a=h[a.XV]||h[sc.kH.METAL];c=a[c]||a[sc.hc.MEDIUM];a=Math.floor(Math.random()*c.length);b=c[a];b.play(k)}}},mjb:function(a){this.O.aV.Ya("healing",a)},hjb:function(a,b){return this.O.pb.Ya("chargeLevel"+b,a,{duration:-1,align:ig.Rb.CENTER})},z5a:function(a){this.l5.push(a.b)},fLa:function(a){for(var b=this.l5.length;b--;)if(ig.Xf.ZO(a,
this.l5[b],j))return j;return w},Idb:function(a,b){for(var c=a.je(ig.Rb.Nlb,r),c=ig.t.a2(c,b,1,16,g,g,g,a),d=c.length;d--;){var e=c[d];e instanceof ig.ya.Enemy&&(e.target||e.bc.hX(e,j))}},xqa:function(a){return a.target||a.Ca==sc.Qd.PLAYER&&sc.q.Sr()||sc.Dg.QJ(a)?j:w},tcb:function(){for(var a=this.It[sc.Qd.ENEMY],b=a.length;b--;)if(a[b].dx==sc.Ow.THREAT)return j;return w},$9a:function(a){var b=a.bc.Xna,c=sc.ta.pg("combat","kill"+a.np)||0,d=0,c=c*b;if(a.bc.b0){d=sc.ta.pg("combat","aiGroupKill"+a.bc.b0)||
0;d=d*b*x;d>q/2&&(d=q/2)}else c=c*(1+x);a=Math.min(c+d,q);return Math.pow(a,y)/Math.pow(q,y)},Ipb:F()});var q=20,x=0.5,y=0.75;ig.wf(function(){return sc.pb=new sc.gUa});k=Vec2.create()});ig.G=j;
ig.I("game.feature.combat.pvp").J("impact.base.game").H(function(){sc.xZa=ig.sf.extend({um:[],state:0,round:0,pB:0,sb:{},Tf:[],Rqa:s,Nt:w,$K:s,f:function(){this.parent("PvP");ig.pa.Gp("pvp",this,"VarPvpEditor")},start:function(a,b){this.state=1;this.round=0;this.pB=a;this.sb[sc.Qd.PLAYER]=0;this.sb[sc.Qd.ENEMY]=0;this.Tf=b;sc.K.wa(this,sc.Vza.u_a,s);sc.q.eL(j,j)},Tc:function(){return this.state!=0},jcb:function(){return this.state==3},acb:function(){return this.state==4},qcb:function(){return this.sb[sc.Qd.PLAYER]==
this.pB||this.sb[sc.Qd.ENEMY]==this.pB},QJ:function(a){return!this.Tc()?w:a.Ca==sc.Qd.PLAYER?j:this.Tf.indexOf(a)!=-1},Xeb:function(a){if(!this.Tc())return w;if(a.Ca==sc.Qd.PLAYER){if(sc.Ca.Yg())return this.HQa(sc.Qd.ENEMY)}else{if(this.Tf.indexOf(a)==-1)return w;for(var a=j,b=this.Tf.length;b--;)this.Tf[b].Yg()||(a=w);if(a)return this.HQa(sc.Qd.PLAYER)}},Agb:function(){this.Nt=w},HQa:function(a){var b=++this.sb[a];this.Rqa=a;this.state=3;ig.t.Zi();a=new sc.wZa;ig.T.Mc(a);return sc.dE[b==this.pB?
"PVP_FINAL_KO":"PVP_KO"]},Seb:function(a){var b=a==sc.Qd.ENEMY?1:0.5,a=a==sc.Qd.ENEMY?0.5:1;ig.t.wb.Bta(b);for(var c=sc.Ca.Xe.length;c--;)sc.Ca.EO(c).Bta(b);for(c=this.Tf.length;c--;)this.Tf[c].Bta(a);this.state=this.qcb()?5:4;ig.t.Zi()},Wjb:function(a){this.round=this.round+1;this.$K=new sc.yZa(this.round,a);ig.T.Mc(this.$K);this.Nt=j},GHa:function(){this.state=2;if(this.$K){this.$K.remove();this.$K=s}for(var a=0;a<this.Tf.length;++a)this.Tf[a].jn(ig.t.wb,j);ig.t.Zi();this.Agb()},stop:function(){if(this.Rqa==
sc.Qd.PLAYER)for(var a=this.Tf.length;a--;)this.Tf[a].Yeb();this.state=0;this.Tf.length=0;sc.K.wa(this,sc.Vza.x_a,s);sc.q.eL(w,j)},On:function(a,b){if(b[0]=="pvp")switch(b[1]){case "active":return this.state!=0;case "brake":return this.state==4;case "finished":return this.state==5;case "round":return this.round;case "lastWinPlayer":return this.Rqa==sc.Qd.PLAYER;case "playerPoints":return this.sb[sc.Qd.PLAYER];case "enemyPoints":return this.sb[sc.Qd.ENEMY]}f(Error("Unsupported var access path: "+a))},
gw:function(){if(this.state==3){var a=j;ig.t.wb.cO||(a=w);for(var b=sc.Ca.Xe.length;b--;)sc.Ca.EO(b).cO||(a=w);for(var c=j,b=this.Tf.length;b--;)this.Tf[b].cO||(c=w);if(a||c)this.Seb(a?sc.Qd.ENEMY:sc.Qd.PLAYER)}},nj:function(){this.pB=this.round=this.state=0;this.Tf.length=0;this.Nt=w;if(this.$K){this.$K.remove();this.$K=s}}});sc.Vza={u_a:1,x_a:2,Omb:3};ig.wf(function(){return sc.Dg=new sc.xZa})});ig.G=j;
ig.I("game.feature.combat.combat-shield").J("game.feature.combat.model.combat-params").H(function(){sc.Txa=ig.ra.extend({name:s,oT:1,Rna:[1,1,1,1],zva:sc.hc.HEAVY,duration:0,Pe:g,f:function(a,b){this.name=b;this.oT=a.baseFactor!==g?a.baseFactor:0;this.Rna=a.elementFactors!==g?a.elementFactors:this.Rna;this.zva=sc.hc[a.stableOverride]||this.zva;this.duration=a.duration!=g?a.duration:-1;this.Dob=a.defenseRatio||w;if(a.effect)this.Pe=new ig.al(a.effect)},Qa:function(){this.Pe&&this.Pe.Qa()},jD:s,jsa:s,
Tc:R(j),sIa:function(a){return this.oT*(a.element?this.Rna[a.element-1]:1)},Sea:R(j)});sc.mUa=ig.ra.extend({$c:s,Op:s,n:0,IA:0,Ona:s,f:function(a,b,e){this.$c=a;this.Op=b;this.IA=e||0;this.Op.jD&&this.Op.jD(a);if(this.Op.Pe)this.Ona=b.Pe.Ya(a,{duration:-1,align:"CENTER"})},update:function(){if(this.Op.duration!=-1){this.n=this.n+ig.g.ga;if(this.n>=this.Op.duration)return j}if(this.IA>0){this.IA=this.IA-ig.g.ga;if(this.IA<0)this.IA=0}return w},VKa:function(){return this.IA>0},th:function(a){this.Ona&&
this.Ona.stop();this.Op.jsa&&this.Op.jsa(a)},Zr:function(){this.$c.HOa(this)},eG:function(){this.$c.HOa(this)}});sc.FY={};var a=Vec2.create(),b=Vec2.create();sc.FY.DIRECTIONAL=sc.Txa.extend({Xk:0.5,back:w,f:function(a,b){this.parent(a,b);this.Xk=a.range||0.5;this.back=a.back||w},Tc:function(c,d){var e=Vec2.assign(b,c.face);this.back&&Vec2.hd(e);var h=d.mba(c,a),h=Math.PI-Math.abs(Vec2.oc(h,e)),k=this.Xk*Math.PI;if(h<=k)return j;h=d.du(c,a);h=Math.PI-Math.abs(Vec2.oc(h,e));return h<=k/2?j:w},Sea:function(){return this.Xk>=
1}});sc.FY.PARTS=sc.Txa.extend({QP:s,inverse:w,f:function(a,b){this.parent(a,b);this.QP=a.parts||s;this.inverse=a.inverse||w},Tc:function(a,b,e,h){a=this.QP.indexOf(h)!=-1;this.inverse&&(a=!a);return a},Sea:R(j)});sc.FY.PLAYER=sc.FY.DIRECTIONAL.extend({Tc:function(a,b,e,h){if(!this.parent(a,b,e,h))return w;b=this.tIa(e,a);return!a.y7a(e.Xj*Math.pow(b,1.5))},jD:function(a){a.mRa()},jsa:function(a){a.h8a()},sIa:function(a,b){var e=this.parent(a,b),h=1,h=this.tIa(a,b),h=h<=1?0.2-(1-Math.pow(h,0.3))*
1:0.2+(Math.pow(h,1.1)-1)*0.35,h=h-b.ba.Rl("GUARD_STRENGTH"),h=h.Vb(0,1);return e*h},tIa:function(a,b){var e=b.ba.le("defense");return!a.yz?0:a.yz.le("attack")/e},Sea:R(w)})});ig.G=j;
ig.I("game.feature.combat.combat-force").J("impact.base.entity").H(function(){sc.JY=ig.ra.extend({$c:s,f:L("$c"),update:R(j),eLa:R(w),Zr:function(){this.$c=s},Bi:M("$c")});var a=Vec3.create(),b=Vec2.create(),c=Vec2.create(),d=Vec2.create(),e=Vec2.create(),h=Vec3.create();sc.nH=sc.JY.extend({P:s,ic:s,align:ig.Rb.BOTTOM,offset:s,jg:0,dir:s,Wy:1,sg:0,Tj:0,Nj:0,duration:0,qoa:0,g0:w,Pt:w,Jr:0,Ca:0,yta:w,i:s,U4:0,n:0,E2:s,dV:s,f:function(a,b){var c=a.Bi();this.parent(c);this.P=a;this.Ca=sc.Qd[b.party]||
this.$c.Ca;this.ic=new sc.NL(c.ba,b.attack);this.align=ig.Rb[b.align]||this.align;this.i=b.pos||s;this.dir=b.dir||s;this.offset=b.offset||s;this.jg=b.radius;this.Wy=b.yScale||1;this.sg=b.zHeight||24;this.Tj=Math.PI*2*(b.centralAngle||1);this.Nj=b.startAngle!==g?Math.PI*2*b.startAngle:-this.Tj/2;this.duration=b.duration||0;this.qoa=b.expandRadius||0;this.g0=b.alwaysFull||w;this.Pt=b.clockwise||w;this.Jr=b.flipLeftFace||w;this.yta=b.rectangular||w;this.repeat=b.repeat||w;this.n=this.duration;this.U4=
0;this.E2=[];this.dV=[]},update:function(){this.n=this.n-ig.g.ga;var a=this.duration?1-(this.n/this.duration).Vb(0,1):1,b=this.Nj+Math.max(0,this.U4-Math.PI*0.5),c=this.Tj*a;if(this.g0){this.U4=0;b=this.Nj;c=this.Tj}var d=this.Nj+c,e=this.jg+a*this.qoa;if(this.n<=0||c-this.U4>Math.PI*0.1){if(!this.g0)for(;this.dV.length&&c-this.dV[0]>Math.PI;){this.E2.shift();this.dV.shift()}this.U4=c;a=!this.Pt;this.Jr&&ig.HKa(this.P,this.Jr)&&(a=!a);if(a){a=b;b=-d;d=-a}for(var a=this.Ca,h=this.g0&&this.Tj>=Math.PI*
2?s:this.dir||this.P.face,k=this.$c.Ca==this.Ca?this.$c:s,b=ig.t.a2(this.o_(),e,this.Wy,this.sg,h,b,d,k,this.E2,this.yta),d=b.length;d--;){e=w;h=b[d];if(e=h.tV&&a!=h.Ca?h.Ge(this,this.ic):j){h.Om&&h.Om(this);this.E2.push(h);this.dV.push(c)}}}if(this.repeat&&this.n<=0){this.n=this.duration;this.E2.length=0;this.dV.length=0}return this.n<=0},nh:function(){return this.ic&&this.ic.element||sc.ja.NEUTRAL},ij:function(a,b){var c=b||Vec2.create();a.kb(c);c.z=a.b.i.z+a.b.size.z/2;return c},du:function(a,
b){var d=b||Vec2.create();a.kb(d);Vec2.sub(d,this.o_());if(!this.i&&Vec2.hj(d,this.P.face)>0){Vec2.assign(c,this.P.face);Vec2.length(c,2);Vec2.length(d,1);Vec2.add(d,c)}return d},mba:function(a,b){b=b||Vec2.create();a.kb(b);Vec2.sub(b,this.o_());return b},V1:function(a){a=this.mba(a,b);return Math.abs(a.x)>Math.abs(a.y)?ig.Zb.zh[a.x<0?"EAST":"WEST"]:ig.Zb.zh[a.y<0?"SOUTH":"NORTH"]},o_:function(){if(this.i)return this.i;var b=this.P.je(this.align,a);this.offset&&Vec3.add(b,this.offset);return b}});
sc.rha={TOWARD:1,AWAY:2};sc.JUa=sc.JY.extend({ic:s,Wpa:s,align:ig.Rb.CENTER,Ie:0,Vpa:0,Pe:s,Vwa:s,n:0,f:function(a,b,c,d){this.parent(a);this.ic=new sc.NL(a.ba,c.attack);this.Wpa=sc.rha[c.hitDir||"AWAY"];this.align=ig.Rb[c.align]||this.align;this.Ie=c.hitCount||1;this.Vpa=c.hitDelay||0.1;this.n=0;this.Pe=d;this.Vwa=b},update:function(){for(this.n=this.n-ig.g.ga;this.Ie&&this.n<=0;){this.n=this.n+this.Vpa;this.Ie--;this.Pe&&this.Pe.Ya(this.Vwa,{align:this.align});this.Vwa.Ge(this,this.ic)}return this.Ie==
0},nh:function(){return this.ic&&this.ic.element||sc.ja.NEUTRAL},ij:function(a,b){var c=b||Vec2.create();a.kb(c);c.z=a.b.i.z+a.b.size.z/2;return c},du:function(a,b){var c=b||Vec2.create();a.kb(c);this.$c.kb(d);Vec2.sub(c,d);this.Wpa==sc.rha.TOWARD&&Vec2.hd(c);return c},mba:function(a,b){return this.du(a,b)},V1:function(a){a=this.du(a,b);return Math.abs(a.x)>Math.abs(a.y)?ig.Zb.zh[a.x<0?"EAST":"WEST"]:ig.Zb.zh[a.y<0?"SOUTH":"NORTH"]}});var k=[{jg:1,oc:0,x:0.5,y:1},{jg:1,oc:0.25,x:0.5,y:0},{jg:1,oc:0.5,
x:1,y:0.5},{jg:1,oc:0.75,x:0,y:0.5}],l={};sc.cBa=ig.ra.extend({align:ig.Rb.FACE,offset:s,Tj:0,Nj:0,N9:0,count:1,duration:0,Pt:w,random:w,Jr:0,dir:s,uK:s,u$:w,Ob:s,Wca:s,K6:0,delay:0,repeat:w,f:function(a,b){this.align=ig.Rb[a.align]||this.align;this.offset=a.offset||s;this.Tj=Math.PI*2*(a.centralAngle||0);this.Nj=a.startAngle!==g?Math.PI*2*a.startAngle:-this.Tj/2;this.lt=a.startDist||0;this.jRa=a.startDistCollide||w;this.N9=(a.angleVary||0)*Math.PI*2;this.count=a.count||1;this.duration=a.duration||
0;this.Pt=a.clockwise||w;this.Jr=a.flipLeftFace||w;this.random=a.random||w;this.n=this.duration;this.dir=a.dir||s;this.uK=a.offsetArea||s;this.u$=a.circularArea||w;this.K6=a.uniformDir||0;this.delay=a.delay||0;this.Ob=b;this.repeat=a.repeat;if(a.maxGroundDistance!=s&&a.maxGroundDistance!=g)this.Wca=a.maxGroundDistance;if(a.terrainFilter){var c=a.terrainFilter;this.bga=[];for(var d=c.length;d--;)this.bga.push(ig.Gd[c[d]])}},hKa:function(a){a.count=ig.Ra.so(this.count);a.Nfa=0;return this.duration},
Hu:function(a,b,o,t,r,p){b=b-ig.g.ga;t=t||16;r=r||16;p=p||16;if(this.duration-b<this.delay)return b;var q=this.duration?1-(b/(this.duration-this.delay)).Vb(0,1):1,q=this.repeat?Math.ceil(o.count*q):1+Math.floor((o.count-1)*q);if(q>o.Nfa){var x=this.dir&&ig.rf.iA(this.dir,a,c)||Vec2.assign(c,a.face),y=this.o_(a);this.lt&&Vec2.length(x,this.lt);for(var z=o.Nfa;z<q;++z){var u=this.random?Math.random():z/(o.count==1||this.Tj==Math.PI*2?o.count:o.count-1),v=this.Nj+u*this.Tj;this.Pt&&(v=-v);v=v+(Math.random()-
0.5)*this.N9;this.Jr&&ig.HKa(a,this.Jr)&&(v=-v);var A=Vec2.rotate(x,v,d),C=Vec3.Sa(h,0,0,0);if(this.lt){u=1;if(this.jRa){u=ig.t.Nf.mu(l);ig.t.trace(u,y.x+C.x-t/2,y.y+C.y-r/2,y.z+C.z,A.x,A.y,t,r,p,ig.la.IGNORE,a);u=u.gf}C.x=C.x+A.x*u;C.y=C.y+A.y*u}if(this.uK){var B,E,u=10;do{B=Math.random();E=Math.random();if(this.u$){if(k[u-1]){B=k[u-1].jg;E=k[u-1].oc}var I=Vec2.Sa(e,0,B);Vec2.rotate(I,E*Math.PI*2);B=this.uK.x/2*I.x;E=this.uK.y/2*I.y}else{if(k[u-1]){B=k[u-1].x;E=k[u-1].y}B=(B-0.5)*this.uK.x;E=(E-
0.5)*this.uK.y}var I=y.x+C.x+B,K=y.y+C.y+E,H=y.z+C.z}while((ig.t.Zbb(I-t/2,K-r/2,H,t,r,0)||this.bga&&this.bga.indexOf(ig.mc.Z$a(I,K,H+4,t,r))==-1)&&--u);u==0&&(B=E=0);C.x=C.x+B;C.y=C.y+E}this.K6&&(A=Vec2.rotate(x,v*(1-this.K6),d));if(this.Wca!=s){v=ig.t.Nf.A9a(y.x+C.x-1,y.y+C.y-1,y.z+C.z,2,2);if(y.z+C.z-v>this.Wca)continue}this.Ob(y.x+C.x,y.y+C.y,y.z+C.z,A,o)}}o.Nfa=q;if(b<=0&&this.repeat){b=b+this.duration;o.Nfa=0}return b},o_:function(b){b=b.je(this.align,a);this.offset&&Vec3.add(b,this.offset);
return b}});sc.uZa=sc.JY.extend({P:s,proxy:s,pL:s,n:0,Aw:{},f:function(a,b){var c=a.Bi();this.parent(c);this.P=a;this.proxy=sc.FB.tba(b.proxy,c);this.pL=new sc.cBa(b,this.Gjb.bind(this));this.n=this.pL.hKa(this.Aw)},update:function(){this.n=this.pL.Hu(this.P,this.n,this.Aw);return this.n<=0},Gjb:function(a,b,c,d){this.proxy&&this.proxy.Hu(a,b,c,this.$c,d)},eLa:function(){return this.pL.repeat}});sc.nVa=sc.JY.extend({P:s,Dq:s,bc:s,pL:s,n:0,Aw:{},f:function(a,b){this.parent(a.Bi());this.P=a;this.bc=
b.enemyType;this.Dq=b.enemyInfo;this.pL=new sc.cBa(b,this.rva.bind(this));this.n=this.pL.hKa(this.Aw)},update:function(){this.n=this.pL.Hu(this.P,this.n,this.Aw);return this.n<=0},rva:function(a,b,c,d){a=ig.t.af(ig.ya.Enemy,a-this.bc.size.x/2,b-this.bc.size.y/2,c,{enemyInfo:this.Dq,ownerEnemy:this.$c},j);Vec2.assign(a.face,d);a.jn(this.$c.target,j)}})});ig.G=j;
ig.I("game.feature.combat.combat-stun").H(function(){sc.tB={};sc.oH=ig.ra.extend({oea:s,start:s,xa:R(j)});sc.tB={};var a=Vec2.create();sc.tB.START_LOCK=sc.oH.extend({oea:function(a,c){a.ba.Ujb(c)}});sc.tB.END_LOCK=sc.oH.extend({oea:function(a,c){a.ba.i8a(c)}});sc.tB.BLOCK_XY=sc.oH.extend({Fa:0,f:F(),xa:function(a){a.b.Z.x=0;a.b.Z.y=0}});sc.tB.BLOCK_FALL=sc.oH.extend({Fa:0,f:function(a){this.Fa=a.maxTime},xa:function(a){if(a.b.Z.z<0)a.b.Z.z=0;return this.Fa&&a.Hb>=this.Fa}});sc.tB.PULL=sc.oH.extend({speed:0,
ab:0,Fa:0,f:function(a){this.ab=a.distance;this.speed=a.speed||300;this.Fa=a.maxTime},start:F(),xa:function(b,c){var d=ig.Xf.Lr(b.b,c.b,a);if(Vec2.length(d)>this.ab){Vec2.length(d,this.speed);Vec2.assign(b.b.Z,d);return this.Fa&&b.Hb>=this.Fa}return j}});sc.tB.Z_PULL=sc.oH.extend({rh:0,ep:1,Bda:1,f:function(a){this.rh=a.maxSpeed||300;this.ep=a.accel||1;this.Bda=a.offZ||0},start:F(),xa:function(a,c){if(!a.b.Px){var d=((c.b.i.z-a.b.i.z+this.Bda)*10*this.ep).Vb(0,this.rh);a.b.Z.z=d}return this.Fa&&a.Hb>=
this.Fa}});sc.tB.Z_VEL=sc.oH.extend({value:0,f:function(a){this.value=a.value||300},start:function(a){a.b.Z.z=this.value}});sc.tB.Z_BOUNCINESS=sc.oH.extend({value:0,f:function(a){this.value=a.value||0},start:function(a){a.b.Xh=this.value}})});ig.G=j;
ig.I("game.feature.combat.combat-poi").J("game.feature.combat.model.combat-params").H(function(){sc.lha={};sc.lha.NAMED_ENTITY={s:{attributes:{name:{c:"String",d:"Name of entity to be searched"}}},e$a:function(a,b){var e=ig.t.cG[b.name];e&&a.push(e)}};var a=[],b=Vec3.create();sc.oha={Qoa:function(c,d,e){var h=sc.lha[c.type];if(!h)return s;a.length=0;var k;if(h.e$a){h.soa(a,c);k=a}else if(h.soa){k=d.je(ig.Rb.BOTTOM,b);k.z=k.z-128;k=ig.t.a2(k,e,1,256);h.soa(a,k,c);k=a}for(var c=k.length,h=s,l=0;c--;){var m=
k[c];if(m){var n=ig.Xf.xO(d.b,m.b);if(n<=e&&(!h||n<l)){h=m;l=n}}}return h}}});ig.G=j;
ig.I("game.feature.combat.entities.combatant-marble").J("impact.feature.effect.effect-sheet","impact.base.entity").H(function(){ig.ya.CombatantMarble=ig.fe.extend({XG:new ig.tg("media/entity/enemy/combatant-marble.png",8,8),O:new ig.ae("marble"),mn:Vec2.create(),l6:0,target:s,n:0,Xca:0,Fa:0,Vqa:s,f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.b.v(8,8,8);this.b.time.Gj=j;this.b.Ad.size=8;this.target=d.target;Vec2.assign(this.mn,this.b.i);this.l6=this.b.i.z;a=Vec2.length(Vec2.sub(this.target.kb(),
this.b.i));a=Math.max(a,120);this.Fa=0.3+Math.sqrt(a)/16;this.maxHeight=32+Math.sqrt(a)*8;this.Vqa=this.O.Ya("line",this,{duration:-1});this.Vqa.b.time.Gj=j;a=new ig.Qw(this,ig.cl.XS,0,0,-1,1);ig.ph.cx(a);this.ld({sheet:this.XG,name:"default",time:0.03,frames:[0,1,2,3,4,5],repeat:j})},update:function(){this.parent();this.n=this.n+ig.g.ga;var a=Math.min(1,this.n/this.Fa),a=KEY_SPLINES.EASE_IN.get(a),b=1-(2*a-1)*(2*a-1),c=this.target.kb(),d=this.target.b.i.z+this.target.b.size.z+1;this.b.i.x=this.mn.x*
(1-a)+(c.x-this.b.size.x/2)*a;this.b.i.y=this.mn.y*(1-a)+(c.y-this.b.size.y/2)*a;this.b.i.z=this.l6*(1-a)+d*a+b*this.maxHeight;this.b.jc=0;if(this.n>=this.Fa){this.Vqa.stop();this.O.Ya("explode",this).b.time.Gj=j;this.target.aeb(this);this.Tb()}}})});ig.G=j;
ig.I("game.feature.combat.entities.hit-number").J("impact.base.entity","impact.base.entity-pool").H(function(){sc.dM={d2a:0,c2a:1,k8:2,T7:3,Yha:4,b2a:5};sc.cS={Ki:0,$Va:1,STa:2,ZYa:3,$Ya:4,YYa:5};sc.XY={NONE:0,l_a:1,u8:2,Pja:3,oM:4,V1a:5};var a={};ig.ya.HitNumber=ig.gd.extend({offset:{x:0,y:0,z:0},yc:0,VN:0,Ada:0,RMa:0,EP:[],n:0,LQ:0,jN:s,f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.b.pp=0;this.b.time.Gj=j;this.b.v(0,0,0);this.dDa(d)},reset:function(a,b,c,d){this.parent(a,
b,c,d);this.dDa(d)},dDa:function(a){this.yc=a.number;this.Ada=a.numberSize;this.RMa=a.numberColor;this.EP.length=0;a.numberAppendix&&this.EP.push.apply(this.EP,a.numberAppendix);this.VN=0;a=this.yc;if(a!==g){do{this.VN++;a=Math.floor(a/10)}while(a)}if(this.EP)this.VN=this.VN+this.EP.length;this.offset.x=this.VN*e[this.Ada].offsetX/2;this.offset.y=e[this.Ada].offsetY;this.n=h;this.LQ=l;this.jN=sc.fWa.Efb(this.b,this.offset.x,this.offset.y)},Jn:function(){this.dm(this.VN,j)},update:function(){if(this.n<=
k){if(this.jN){c.xf(this.jN);this.jN=s}this.b.Z.z=this.b.Z.z+ig.g.ga*400}this.n=this.n-ig.g.ga;this.n<=0&&this.Tb()},Tb:function(a){if(this.jN){c.xf(this.jN);this.jN=s}this.parent(a)},tj:function(){var a=1;this.n<=k&&(a=this.n/0.3);var b=this.yc;if(b>=8&&this.LQ){this.LQ=this.LQ-ig.g.Da;if(this.LQ<0)this.LQ=0;b=Math.floor(b*(1-this.LQ/l))}for(var c=0,d,e=this.EP.length;e--;){d=9+this.EP[e];this.mEa(c,d,a);c++}if(b!==g){do{d=b%10;b=Math.floor(b/10);this.mEa(c,d,a);c++}while(b)}},mEa:function(b,c,h){var c=
c+d*this.RMa,k=e[this.Ada],c=k.sheet.Lv(a,c),l=this.Ta[b];l.l(this.b.i.x-this.offset.x+(this.VN-b)*k.offsetX,this.b.i.y-this.offset.y-this.b.i.z+1E5,1E5);l.v(k.sheet.width,k.sheet.height,0);l.Vh(k.sheet.xc,c.x,c.y);l.wd(h)}});ig.ut.Xz(ig.ya.HitNumber);var b=[];ig.ya.HitNumber.tva=function(a,c,d,e,h,k,l,x){var e=e<0.5?sc.dM.d2a:e<0.75?sc.dM.c2a:e<1?sc.dM.k8:e<1.5?sc.dM.T7:e<2?sc.dM.Yha:sc.dM.b2a,y=0,d=Math.abs(d),y=c.Ca==sc.Qd.PLAYER?l?sc.cS.YYa:sc.cS.ZYa:l?sc.cS.STa:sc.cS.Ki;b.length=0;if(k){if(k==
sc.qM.oM){b.push(sc.XY.oM);d=g}b.push(sc.XY.l_a)}else h>=1.25?b.push(sc.XY.u8):h<=0.75&&b.push(sc.XY.Pja);x&&b.push(sc.XY.V1a);ig.t.af(ig.ya.HitNumber,a.x,a.y-8,a.z,{number:d,numberSize:e,numberColor:y,numberAppendix:b})};ig.ya.HitNumber.Ejb=function(a,b,c){ig.t.af(ig.ya.HitNumber,a.x,a.y-8,a.z,{number:Math.abs(c),numberSize:sc.dM.T7,numberColor:b.Xv?sc.cS.$Ya:sc.cS.$Va,numberAppendix:s})};var c=[];sc.fWa={Efb:function(a,b,d){var e=a.i.x,h=a.i.y,k=a.i.z,b={HL:e-b-2,sY:h-k-d-1,GL:e+b+2,$D:h-k},e=a.i.x,
h=a.i.y,l=j,x=Math.random()<0.5;do for(var y=0,z=w,u=0;u<c.length;++u){var v=c[u];if(!(v.HL>=b.GL||v.GL<=b.HL||v.sY>=b.$D||v.$D<=b.sY)){z=j;y=x?Math.min(y,v.HL-b.GL):Math.max(y,v.GL-b.HL);u=v.sY-b.$D;if(l&&Math.abs(h-a.i.y-u)>Math.abs(e-a.i.x-y)){l=w;a.i.y=h;b.sY=h-k-d-1;b.$D=h-k;b.HL=b.HL+y;b.GL=b.GL+y;a.i.x=a.i.x+y}else{b.sY=b.sY+u;b.$D=b.$D+u;a.i.y=a.i.y+u}break}}while(z);c.push(b);return b}};var d=16,e={"0":{offsetX:7,offsetY:8,sheet:new ig.tg("media/entity/map-gui/hit-numbers.png",8,8,0,0,d)},
1:{offsetX:7,offsetY:8,sheet:new ig.tg("media/entity/map-gui/hit-numbers.png",8,8,128,0,d)},2:{offsetX:7,offsetY:9,sheet:new ig.tg("media/entity/map-gui/hit-numbers.png",8,12,0,48,d)},3:{offsetX:8,offsetY:9,sheet:new ig.tg("media/entity/map-gui/hit-numbers.png",12,12,128,48,d)},4:{offsetX:9,offsetY:11,sheet:new ig.tg("media/entity/map-gui/hit-numbers.png",12,12,0,120,d)},5:{offsetX:10,offsetY:12,sheet:new ig.tg("media/entity/map-gui/hit-numbers.png",12,12,0,192,d)}},h=1,k=0.3,l=0.2});ig.G=j;
ig.I("game.feature.combat.entities.combatant").J("game.feature.npc.entities.sc-actor","game.feature.combat.combat","game.feature.combat.entities.hit-number","game.feature.combat.model.combat-params","impact.feature.effect.effect-sheet","game.feature.model.options-model","impact.feature.terrain.terrain").H(function(){function a(){switch(sc.options.get("rumble-strength")){case sc.CZ.u8:return new ig.Lm.vE("RANDOM","STRONG","FASTER",0.3,w,j);case sc.CZ.Ki:return new ig.Lm.vE("RANDOM","STRONG","FAST",
0.3,w,j);case sc.CZ.Pja:return new ig.Lm.vE("RANDOM","MEDIUM","FAST",0.3,w,j)}return s}ig.mc.Cta(ig.Gd.COAL,j);ig.mc.Cta(ig.Gd.WATER,j);sc.qM={NONE:0,$Za:1,oM:2};sc.kha={LIGHT:{Z:100,jR:0.2,Qh:0},MEDIUM:{Z:200,jR:0.25,Qh:0},HEAVY:{Z:250,jR:0.3,Qh:100,mm:0.2,uk:0.5},MASSIVE:{Z:300,jR:0.55,Qh:150,mm:0.5,uk:0.3,rJ:j},"MASSIVE+":{Z:400,jR:0.7,Qh:180,mm:0.5,uk:0.2,rJ:j},"MASSIVE++":{Z:500,jR:0.9,Qh:200,mm:0.5,uk:0.15,rJ:j},"MASSIVE+++":{Z:600,jR:1.2,Qh:220,mm:0.5,uk:0.13,rJ:j}};var b=Vec2.create(),c=Vec3.create(),
d={},e={bC:g,Jx:g,Qs:g,Xj:g,Wu:w,eN:w};sc.xxa=sc.Zb.extend({Mu:{ic:s,wk:[],Ie:0},pQa:function(a){this.Mu.ic=a;this.Mu.wk.length=0;this.Mu.Ie=0;for(var a=this.b,a=ig.t.Lx(a.i.x,a.i.y,a.i.z,a.size.x,a.size.y,a.size.z,this),b=a.length,b=0;b<a.length;++b)this.Dma(a[b],s)},nca:function(){for(var a=this.co,b=a.length;b--;)if(a[b]instanceof sc.nH)return j;return!!this.Mu.ic},lo:function(a){this.Dma(a,s)},Dma:function(a,b){if(this.Mu.ic&&(a.tV&&a.Ca!=this.Ca)&&!(a.b.i.z>=this.b.i.z+this.b.size.z||this.b.i.z>=
a.b.i.z+a.b.size.z)&&!(a.b.xl.length>0)){var c=a.b.hk?a.b.hk.P:a;if(this.Mu.wk.indexOf(c.id)==-1&&a.Ge(b||this,this.Mu.ic)){this.Mu.wk.push(c.id);this.Mu.Ie++}}},ij:function(a,b){return this.PU(a,b)},du:function(a,b){var c=b||{};Vec2.assign(c,this.b.Z);if(Vec2.Tl(c)){Vec2.assign(c,a.b.Z);Vec2.hd(c)}return c}});ig.ya.Combatant=sc.xxa.extend({ba:s,tV:j,Ca:0,XV:sc.kH.METAL,Nl:0,gaa:w,cO:w,FI:j,B3:s,Yx:0,ERa:0,q6:s,Ju:[],br:{time:0,Ypa:0,Ge:0,Wq:0},rC:{W0:0,G3:0},target:s,Yp:s,bwa:[],ega:s,PK:0,dt:0,
Oc:{idle:s,preMove:s,move:s,moveRev:s,run:s,runRev:s,brake:s,preIdle:s,jump:s,fall:s,hover:s,preHoverMove:s,hoverMove:s,hoverMoveRev:s,land:s,damage:s,postDamage:s,damageFly:s,damageFall:s,pvpDown:s},Qs:0,Xpa:w,wl:s,hs:[],SA:Vec3.create(),MG:{oT:0,oga:0,wta:[]},Dg:{Ga:w,Tf:[],round:0,sb:{}},O:{PN:new ig.ae("combatant")},dtb:0,f:function(a,b,c,d){this.parent(a,b,c,d)},show:function(a){this.parent(a);this.wl=new ig.Ji.StatusBar(this);ig.T.Mc(this.wl)},hide:function(){this.wl&&this.wl.remove();this.wl=
s;this.parent()},Pv:function(){return this.Nl>0},Yg:function(){return this.ba&&this.ba.Yg()},wma:function(){if(this.Nl>0){this.Hb=this.Nl=0;this.Ju.length=0;this.wC.apply(this);this.Oc.postDamage&&this.Ja(this.Oc.postDamage,j,this.Oc.idle);this.Oc.preIdle&&this.Ja(this.Oc.preIdle,j,this.Oc.idle)}},jn:function(a,b){if(!this.Ne&&this.target!=a){!this.target&&a?sc.pb.MEa(this):this.target&&!a&&sc.pb.BOa(this);if(a&&b)this.$va=j;this.target&&this.target.UDa(this);(this.target=a)&&this.target.SBa(this)}},
SBa:function(a){this.bwa.push(a)},UDa:function(a){this.bwa.xf(a)},ebb:function(a){for(var b=this.hs.length;b--;)if(this.hs[b].Op.name==a)return j;return w},flb:function(){for(var a=this.hs.length;a--;)if(this.hs[a].update()){this.hs[a].th();this.hs.splice(a,1)}},A5a:function(a,b,c){a=new sc.mUa(this,a,c*(1+this.ba.Rl("PERFECT_GUARD_WINDOW")));this.hs.push(a);b||this.fp(a)},HOa:function(a){a.th(this);this.hs.xf(a)},Pgb:function(a){for(var b=this.hs.length;b--;)if(this.hs[b].Op.name==a){this.hs[b].th();
this.hs.splice(b,1)}},Ge:function(a,b,c){if(sc.Dg.Tc()&&!sc.Dg.QJ(this)||sc.Dg.QJ(this)&&(sc.Dg.acb()||sc.Dg.jcb())||!c&&this.b.xl.length>0)return w;if(this.Yx){this.tNa();return w}return this.Ca==sc.Qd.ENEMY&&!this.target&&(!a.Bi().Xv||!ig.Oj.Tr(this,32))?w:this.$Ma(a,b,c)},wcb:function(a,b,c,d){if(b.Apa==sc.F7.NEVER)return w;for(var c=c&&c.ii,e=this.hs.length,h=sc.qM.NONE;e--;){var r=this.hs[e],p=r.Op;if((b.Apa==sc.F7.ALWAYS||p.zva>=b.type)&&p.Tc(this,a,b,c)){if(d){d.Qs=sc.hc.MASSIVE;d.Xj=r.VKa()?
0:d.Xj*p.sIa(b,this)}h=Math.max(h,r.VKa()?sc.qM.oM:sc.qM.$Za)}}return h},oab:function(){for(var a=1,b=this.hs.length;b--;){var c=this.hs[b].Op;c.Sea()&&(a=a*c.oT)}return a},qsa:R(w),tNa:F(),$Ma:function(a,h,m){var n=this.Qs,o,t=h.type,r=h.YSa,p=h.zi,q=m||this,x=this.Xpa;d.Qs=n;d.Xj=1;var y=this.wcb(a,h,m,d),n=d.Qs;o=d.Xj;var z=a.ij(q,c),u=a.Bi();if(this.ba&&this.ba.Yg())return w;var v;if(!h.Xj)return j;this.ba&&h.yz&&(v=this.ba.rIa(h,o));e.Wu=w;e.eN=w;var A=y,C=w;if(this.qsa(e,a,h,m,v,y)){n=e.Qs==
g?n:e.Qs;e.Qs==sc.hc.NONE&&(A=w);if(e.bC!=g)r=t=e.bC;e.Xj!=g&&v&&(v=this.ba.rIa(h,o*e.Xj));p=e.Jx||p;e.Xj=g;e.bC=g;e.Jx=g;e.Qs=g;C=e.eN}sc.q.Qe()&&(v=s);if(x){sc.pb.sj(q,z,sc.hc.NONE,h.element);return j}if(v){m=Math.max(1,this.ba.le("hp")*this.ERa);n>sc.hc.NONE&&v.Ge<=m&&(n=sc.hc.MASSIVE);this.ba.c5(v.Ge);m=this.MG.oT+this.MG.oga;u&&m&&u.B5a(v,m,this,y);this.Gda&&this.Gda(v.Ge);u&&u.q4(this,h,v,y,a);e.Wu&&this.wl.nQa("BREAK",e.Wu);sc.options.get("damage-numbers")&&ig.ya.HitNumber.tva(z,this,v.Ge,
v.FP,v.pna,y,v.xGa,e.Wu)}this.Za.alpha=1;n=n>=t&&(!this.ba||!this.ba.b3());if(!n){this.q6=u;for(u=h.Ju.length;u--;){t=h.Ju[u];t.oea&&t.oea(this,this.q6)}}if(this.ba&&this.ba.Yg()){this.HDa(a.Bi());r=sc.hc.BREAK;n=w}sc.pb.sj(q,z,r,h.element,A,v&&v.xGa);q=a.du(this,b);if(C){Vec2.assign(this.face,q);Vec2.hd(this.face)}n||this.xk();if(!p)switch(r){case sc.hc.LIGHT:p="LIGHT";break;case sc.hc.MEDIUM:p="MEDIUM";break;case sc.hc.HEAVY:p="HEAVY";break;case sc.hc.MASSIVE:case sc.hc.BREAK:p="MASSIVE"}r=r==sc.hc.BREAK;
C=0;a.Wv&&h.yk("CHARGED")&&(C=h.yz.Rl("KNOCKBACK"));a=this.m1(q,p,r,n,C);this.Nl=Math.max(this.Nl,a);if(!n){this.br.Ypa++;this.br.Ge=this.br.Ge+(v&&v.Ge||0);this.br.Wq=0.5;if(this.Ju.length>0)this.Ju.length=0;for(u=h.Ju.length;u--;){t=h.Ju[u];t.start&&t.start(this,this.q6);t.xa(this,this.q6)||this.Ju.push(t)}}return j},Bta:function(a){this.cO=w;this.ba.kQ(a);this.ba.Fib(0.5)},Yeb:function(){sc.pb.Ora(this);this.gaa=w},HDa:function(b){sc.pb.beb(b,this);ig.sH.vN(this);(b=a())&&ig.XA.cT(b);if(!sc.Dg.QJ(this)){this.O.PN.Ya("pre_die",
this,{duration:-1});this.b.type=ig.la.IGNORE}},B5a:function(a,b,c,d){if(c.Ca!=sc.Qd.PLAYER||d){var d=this.oab()*this.ba.Xj,e=(this.ba.le("defense")-c.ba.le("defense")/2)/2;if(b=Math.max(0,Math.round((a.I7a-a.FP*e)*b*d))){for(var d=0,e=this.MG.wta,h=e.length;h--;)d=d+e[h].n;this.O.PN.Ya("spikeDmg",this,{target2:c,target2Align:ig.Rb.CENTER,align:ig.Rb.CENTER});this.MG.wta.push({Ge:b,n:0.6-d,FP:a.FP})}}},hlb:function(){var a=this.MG.wta;if(this.Yg())a.length=0;if(a.length)for(a.last().n-=ig.g.tp;a.length&&
a.last().n<=0;){var b=a.pop(),c=b.Ge;this.O.PN.Ya("spikeHit",this,{align:ig.Rb.CENTER});this.tKa(c,b.FP)}},tKa:function(a,d){if(!this.ba.Yg()){this.Gda&&this.Gda(a);this.ba.c5(a);var e=this.je(ig.Rb.CENTER,c);sc.options.get("damage-numbers")&&ig.ya.HitNumber.tva(e,this,a,d,1,w,w,w);if(this.ba.Yg()){this.xk();this.HDa(this);e=Vec2.assign(b,this.face);Vec2.hd(e);e=this.m1(e,"MASSIVE",w,w,0);this.Nl=Math.max(this.Nl,e)}}},m1:function(a,b,c,d,e){if(b=b&&sc.kha[b]){e=e||0;if(!d){this.cF();this.Oc.damage&&
this.Ja(this.Oc.damage,j,s,j);this.lm=j;this.b.Eb.x=this.b.Eb.y=0}var h=this.b.ni==-1?0:Math.min(1,200/this.b.ni);d&&(h=h/2);c&&!this.b.Px&&(h=1);c=0;if(!a.x&&!a.y)a.y=1;e=b.Z*(1+e)*h;Vec2.length(a,e);d?(Vec2.hj(this.b.Z,a)<=0||Vec2.length(this.b.Z)<e)&&Vec2.add(this.b.Z,a):Vec2.assign(this.b.Z,a);if(!d){this.b.pp=1;c=b.jR;if(b.Qh){if(b.rJ){this.b.type==ig.la.VIRTUAL&&this.b.Mp(ig.la.IGNORE);this.b.nd.height=this.au=0}if(h){this.b.Xh=b.mm;this.b.uk=b.uk;if(!this.Pv()||this.b.i.z-this.b.jc<16)this.b.Z.z=
b.Qh}}}return c}},q4:function(a,b,c){b.Jfa&&this.ba.Nla(c.FP*c.pna*b.Jfa*0.1)},aV:function(a){if(this.ba&&!this.ba.Yg()){var b=this.ba.r$a(a),d=this.je(ig.Rb.CENTER,c);this.ba.mV(b);sc.options.get("damage-numbers")&&ig.ya.HitNumber.Ejb(d,this,b);this.kNa&&this.kNa(a,b)}},uKa:function(){if(this.ba){this.ba.c5(this.ba.Jb);this.Nl=0.01}},T7a:function(){sc.pb.Ora(this);this.Tb()},Tb:function(a){this.jn(s);a?this.wl&&this.wl.Yaa():this.wl&&this.wl.remove();this.wl=s;this.parent()},update:function(){this.hlb();
if(this.Yx>0){this.Yx=this.Yx-ig.g.ga;if(this.Yx<0)this.Yx=0}var a=sc.pb.xqa(this);if(a&&this.PK&&this.ba&&this.ba.f2()<1){var b=0.5;this.PK>=0.4?b=b/8:this.PK>=0.2?b=b/4:this.PK>=0.1&&(b=b/2);this.dt=this.dt+ig.g.ga;if(this.dt>10*b){this.dt=this.dt-10*b;sc.pb.mjb(this);this.aV(new sc.K7(this.ba,{value:this.PK*b}))}}else this.dt=0;this.flb();this.ba&&this.ba.update(a);if(this.cO){if(!this.B3&&!sc.Dg.QJ(this)){this.Nl=this.Nl+ig.g.ga;a=this.Nl/0.5;this.b.i.z=this.b.i.z+ig.g.ga*16;this.Nl>=0.5&&this.Tb()}}else if(this.Nl>
0){this.br.time=this.br.time+ig.g.ga;this.Hb=this.Hb+ig.g.ga;for(a=this.Ju.length;a--;)this.Ju[a].xa(this,this.q6)&&this.Ju.splice(a,1);if(!this.ba||!this.ba.b3())if(this.Nl<=ig.g.ga)if(this.ba&&this.ba.Yg()){if(sc.Dg.QJ(this)){this.wC.apply(this);this.Ja("pvpDown")}else if(this.B3)ig.pa.set(this.B3,j);else{sc.pb.Ora(this);this.O.PN.eh("boom_medium",this.b.i.x+this.b.size.x/2,this.b.i.y+this.b.size.y+1,this.b.i.z+this.b.size.z/2+this.b.size.y/2+1,this).b.time.Gj=j;this.b.Z.x=this.b.Z.y=0;this.b.se=
0}this.cO=j;this.Nl=0;this.Ju.length=0}else this.wma();else this.Nl=this.Nl-ig.g.ga}else if(this.br.Wq>0){this.br.Wq=this.br.Wq-ig.g.ga;if(this.br.Wq<=0){this.br.Wq=0;this.br.Ypa=0;this.br.Ge=0;this.br.time=0}}this.parent()},FNa:function(){this.F6a()},F6a:function(){var a=this.b;if(a.i.z<ig.t.$F&&!this.rga)this.Jea(ig.Gd.HOLE);else{if(this.b.nd.height&&!this.Zg){this.kb(b);!sc.pb.fLa(this.b)&&(a.jc>=ig.t.$F&&!ig.mc.EKa(ig.mc.FO(this.b,w,j)))&&Vec3.assign(this.SA,this.b.i)}if(!(a.i.z>a.jc||this.Zg)){var c=
this.n6.mc;if(ig.mc.uqa(c))this.Jea(c);else{c=c==ig.Gd.ICE?0.12:1;a.EJ=c<=a.EJ?c:(1-ig.g.ga*3)*a.EJ+ig.g.ga*3*c;!ig.Xf.dcb(this.b)&&(!sc.pb.fLa(this.b)&&!ig.mc.EKa(this.n6.mc))&&Vec3.assign(this.SA,this.b.i)}}}},Jea:function(a){if((!this.ba||!this.ba.Yg())&&(!this.gNa||!this.gNa(a))){var b=this.je(ig.Rb.BOTTOM,c);a==ig.Gd.HOLE?this.O.PN.eh("hole_fall",b.x,b.y,b.z):a==ig.Gd.WATER?this.O.PN.eh("waterSplash",b.x,b.y,b.z):a==ig.Gd.COAL&&this.O.PN.eh("coalBurn",b.x,b.y,b.z);if(this.ba){if(!sc.q.Qe()){var d=
Math.floor(this.ba.le("hp")*0.1);this.ba.c5(d);b=this.je(ig.Rb.CENTER,c);sc.options.get("damage-numbers")&&ig.ya.HitNumber.tva(b,this,d,2,1,w,w)}this.xk();this.Nl=0.3}this.uaa(a)}},uaa:function(){this.l(this.SA.x,this.SA.y,this.SA.z);Vec3.Sa(this.b.Z,0,0,0);this.Za.alpha=0;this.Af.path.fK=-1;this.If(h)},Hda:F(),Bi:function(){return this},cIa:function(){return sc.lUa}});sc.lUa=ig.nxa.extend({tV:j,f:function(a,b,c,d){this.parent(a,b,c,d);this.Ca=this.pD.Ca},Ge:function(a,b){return this.pD.Ge(a,b,this)},
lo:function(a){this.pD.Dma(a,this)},Bi:M("pD"),ij:function(a,b){return this.PU(a,b)},du:function(a,b){var c=b||{};Vec2.assign(c,this.b.Lc.bi);if(Vec2.Tl(c)){Vec2.assign(c,a.b.Z);Vec2.hd(c)}return c}});var h=new ig.rf("quickRespawnAction",[{type:"SHOW_EFFECT",effect:{sheet:"teleport",name:"showDefault"},duration:0,wait:w,actionDetached:j},{type:"WAIT",time:0.4}]);h.hint="battle";ig.Ro.jha={B0:ig.ya.Combatant,eS:{damageFactor:1,ballFactor:1,hitStable:"NONE",hitIgnore:w,tackleAttackInfo:s,invincibleTimer:0,
spikeDmg:0,tmpTarget:s,maxDamageFactor:0},N1:function(){typeof this.hitStable=="string"&&(this.hitStable=sc.hc[this.hitStable])},apply:function(a){if(a.ba){a.ba.Xj=this.damageFactor*1;a.ba.$la=this.ballFactor*1}a.Qs=this.hitStable;a.Xpa=this.hitIgnore;a.Mu.ic=this.tackleAttackInfo;a.Yx=this.invincibleTimer;a.MG.oga=this.spikeDmg;a.Yp=this.tmpTarget;a.rC.G3=this.maxDamageFactor;a.rC.W0=0},load:function(a){if(a.ba){this.damageFactor=a.ba.Xj;this.ballFactor=a.ba.$la}this.hitStable=a.Qs;this.hitIgnore=
a.Xpa;this.tackleAttackInfo=a.Mu.ic;this.invincibleTimer=a.Yx;this.spikeDmg=a.MG.oga;this.tmpTarget=a.Yp;this.maxDamageFactor=a.rC.G3}}});ig.G=j;
ig.I("game.feature.combat.entities.drop").J("impact.feature.effect.effect-sheet","impact.base.entity").H(function(){var a=Vec3.create();sc.uha={HP:1,SP:2,ITEM:3};Vec2.create();sc.x7=ig.fe.extend({O:new ig.ae("drops"),nb:new ig.wj({namedSheets:{small:{src:"media/entity/enemy/drops.png",width:8,height:8},medium:{src:"media/entity/enemy/drops.png",width:8,height:8,offX:48},big:{src:"media/entity/enemy/drops.png",width:16,height:16,offY:8}},time:0.03,repeat:j,SUB:[{name:"healSmall",sheet:"small",frames:[0,
1,2,3,4,5]},{name:"healMedium",sheet:"medium",frames:[0,1,2,3,4,5]},{name:"healBig",sheet:"big",frames:[0,1,2,3,4,5]}]}),n:0,target:s,Gr:0,Baa:0,f:function(a,b,e,h){this.parent(a,b,e,h);this.b.Mp(ig.la.IGNORE);this.b.v(8,8,8);this.b.Ad.size=8;this.b.Xh=1;this.b.mm=0;this.b.Ui=250;this.b.pp=0.1;this.b.uk=0.1;this.b.uz=2;this.b.se=0.6;Vec2.Sa(this.b.Z,0,40);Vec2.rotate(this.b.Z,Math.random()*Math.PI*2);this.b.Z.z=150+Math.random()*70;this.Gr=sc.uha[h.dropType]||sc.uha.HP;this.Baa=h.value;this.n=11;
this.Baa>=0.5?this.Ja("healBig"):this.Baa>=0.2?this.Ja("healMedium"):this.Ja("healSmall");a=new ig.Qw(this,ig.cl.XS,0,0,-1,1);ig.ph.cx(a);h.target&&this.Waa(h.target)},update:function(){if(this.target||!sc.q.Qe()){this.n=this.n-ig.g.ga;if(this.target){this.b.nd.height=this.target.b.i.z+12-this.b.jc;ig.Xf.Lr(this.b,this.target.b,this.b.Eb)}else this.n<=10.4&&!this.target&&this.$8a();if(this.n<=0.4)this.Za.alpha=this.n/0.4;this.n<=0&&this.Tb()}this.parent()},lo:function(b){if(b.tV&&b.Ca==sc.Qd.PLAYER){this.O.Ya("circle",
this);this.O.Ya("healing",b);b.aV(new sc.K7(s,{value:this.Baa}));b=this.je(ig.Rb.CENTER,a);this.O.eh("circle",b.x,b.y,b.z);this.Tb()}},Waa:function(a){if(this.n<2)this.n=2;this.target=a;this.b.Mp(ig.la.TRIGGER);this.b.nd.uj=3;this.b.nd.rh=800;this.b.nd.ep=4;this.b.uk=0.4;this.O.Ya("line",this,{duration:-1});this.O.Ya("circle",this)},$8a:function(){ig.t.wb&&ig.t.wb.hU(this)<120&&this.Waa(ig.t.wb)},DA:function(){if(this.b.Z.z<80)this.b.Z.z=80}});var b=Vec3.create();sc.x7.WQ=function(a,d,e,h,k){e={dropType:e,
value:0,target:k};for(a=a.je(d,b);h>ig.xe.yh;){d=h>=0.6?0.5:h>=0.2?0.2:Math.min(0.1,h);h=h-d;e.value=d;ig.t.af(sc.x7,a.x,a.y,a.z,e)}}});ig.G=j;
ig.I("game.feature.combat.entities.item-drop").J("impact.feature.effect.effect-sheet","impact.base.entity").H(function(){var a={"item-default":0,"item-helm":1,"item-sword":2,"item-belt":3,"item-shoe":4,"item-items":5,"item-key":6,"item-trade":7};sc.mE={ENEMY:{},PROP:{},CHEST:{zi:j,Mfb:j}};var b={DUNGEON_KEY:0,DUNGEON_MASTER_KEY:1};sc.fM=ig.fe.extend({r:new ig.$("media/entity/enemy/item-drops.png"),O:new ig.ae("marble"),Kb:{start:new ig.da("media/sound/drops/drop-start.ogg",0.9),l6a:new ig.da("media/sound/drops/drop-catch.ogg",
0.6)},zoa:w,target:s,n:0,mn:Vec2.create(),l6:0,Fa:0,maxHeight:0,item:0,zb:0,eGa:w,Gr:s,cpb:w,f:function(c,e,h,k){this.parent(c,e,h,k);this.Gr=k.dropType||sc.mE.ENEMY;this.b.Mp(ig.la.IGNORE);this.b.v(16,4,12);this.b.Ad.size=8;this.b.Xh=1;this.b.mm=0;this.b.Ui=250;this.b.pp=0.1;this.b.uk=0.1;this.b.uz=2;this.b.se=0.6;if(this.Gr.zi){this.b.nd.height=24;this.b.nd.uj=4}k.vel&&Vec2.assign(this.b.Z,k.vel);this.b.Z.z=80+Math.random()*50;this.target=k.target;this.item=k.item;this.zb=k.amount;e=sc.Pb.getItem(this.item);
c=e.rarity;e=a[e.icon]||0;h=g;(k=sc.map.w9a(this.item))&&(h=b[k]);h===g?this.ld({namedSheets:{icons:{src:"media/entity/enemy/item-drops.png",width:16,height:16,xCount:8},rotation:{src:"media/entity/enemy/item-drops.png",width:16,height:16,offY:80}},time:0.03,repeat:j,SUB:[{name:"default",sheet:"icons",frames:[e],tileOffset:8*c},{name:"rotStart",sheet:"rotation",frames:[0,1,2,3,4,5,6,7,8,8,9,9],repeat:w,tileOffset:10*c},{name:"rotating",sheet:"rotation",frames:[0,1,2,3,4,5,6,7,8,9],tileOffset:10*c}]}):
this.ld({namedSheets:{icons:{src:"media/entity/enemy/item-drops.png",width:16,height:24,offY:160},glow:{src:"media/entity/enemy/item-drops.png",width:16,height:16,offY:160,offX:96}},time:0.03,repeat:j,shapeType:"Y_FLAT",SUB:[{name:"default",sheet:"icons",frames:[h]},{name:"rotStart",sheet:"icons",frames:[h]},{name:"preRotating",sheet:"glow",frames:[0],time:0.1},{name:"rotating",sheet:"glow",frames:[1,2,3,2]}]});if(this.Gr.zi){this.Ja("default");this.O.Ya("itemAppear",this)}else this.Ja("rotStart",
j,"default",j);c=new ig.Qw(this,ig.cl.XS,0,0,-1,1);ig.ph.cx(c);this.n=0;this.Gr.zi||ig.Tg.ah(this.Kb.start,this)},dGa:function(){if(!this.eGa){this.eGa=j;sc.q.R.bx(this.item,this.zb);this.Gr!=sc.mE.CHEST&&sc.ta.cc("items","dropsTotal",this.zb);this.Gr==sc.mE.PROP?sc.ta.cc("items","dropsProps",this.zb):this.Gr==sc.mE.ENEMY&&sc.ta.cc("items","dropsEnemies",this.zb)}},Tb:function(a){ig.Tg.ah(this.Kb.l6a,this);this.dGa();this.parent(a)},update:function(){this.n=this.n+ig.g.ga;this.Gr.Mfb&&this.n>=0.2&&
this.dGa();if(this.zoa){var a=Math.min(1,this.n/this.Fa),b=1-(2*a-1)*(2*a-1),c=this.target.kb(),k=this.target.b.i.z+this.target.b.size.z+1;this.b.i.x=this.mn.x*(1-a)+(c.x-this.b.size.x/2)*a;this.b.i.y=this.mn.y*(1-a)+(c.y-this.b.size.y/2)*a;this.b.i.z=this.l6*(1-a)+k*a+b*this.maxHeight;this.b.jc=0;this.n>=this.Fa&&this.Tb()}else{a=Vec2.length(Vec2.sub(this.target.kb(),this.b.i));b=this.Gr.zi?1:0.7;(this.Gr.zi||a<48)&&this.n>b&&this.kRa(0.4,12)}this.parent()},DA:function(){if(!this.zoa){if(this.b.Z.z<
100)this.b.Z.z=100;var a;if(this.n>1.3){a=0.5+(Vec2.length(Vec2.sub(this.target.kb(),this.b.i))/200).Vb(0,1)*0.5;this.kRa(a,a*120)}}},kRa:function(a,b){this.Fa=a;this.maxHeight=b;this.Ja("preRotating",j,"rotating");this.zoa=j;Vec2.assign(this.mn,this.b.i);this.l6=this.b.i.z;this.n=0;this.O.Ya("line",this,{duration:-1})}});var c=Vec3.create();sc.fM.WQ=function(a,b,h,k,l,m){m=m||sc.mE.ENEMY;a=a.je(b,c);b=Vec2.create();h={target:h,item:k,amount:1,dropType:m,vel:b};if(l==1){if(!m.zi){Vec2.Sa(b,0,40);
Vec2.rotate(b,Math.random()*Math.PI*2)}ig.t.af(sc.fM,a.x-8,a.y-2,a.z,h)}else{k=l;for(Vec2.Sa(b,m.zi?20:40,0);k--;){ig.t.af(sc.fM,a.x-8,a.y-2,a.z,h);Vec2.rotate(b,Math.PI*2*(1/l)*(0.8+Math.random()*0.4))}}}});ig.G=j;
ig.I("game.feature.combat.model.combat-condition").J("game.feature.combat.model.combat-params").H(function(){sc.Kf={};sc.Kf.RANDOM=ig.ra.extend({max:0,s:new ig.u({attributes:{max:{c:"Number",d:"Maximum random value. Range 0-1. 1 = 100% likely to happen."}}}),f:function(a){assertContent(a,"max");this.max=a.max},Cb:function(a,b){return b<=this.max}});sc.Kf.HP_BELOW=ig.ra.extend({value:0,s:new ig.u({attributes:{value:{c:"Number",d:"Relative HP are below the given value. Range: 0-1. 0.5 => below 50%"}}}),
f:function(a){assertContent(a,"value");this.value=a.value},Cb:function(a){a=a.ba;return a.Jb/a.le("hp")<=this.value}});sc.Kf.HAS_SP=ig.ra.extend({min:0,s:new ig.u({attributes:{min:{c:"Integer",d:"Number of SP that is required"}}}),f:function(a){this.min=a.min},Cb:function(a){return a.ba.Wj>=this.min}});sc.Kf.SPAWN_POINT_DISTANCE=ig.ra.extend({min:0,max:0,s:new ig.u({attributes:{min:{c:"Number",d:"Minimum distance to spawn point in pixels"},max:{c:"Number",d:"Maximum distance to spawn point in pixels"}}}),
f:function(a){this.min=a.min||0;this.max=a.max||100},Cb:function(b){var d=b.kb(a),b=Vec2.ab(d,b.uva);return this.min<=b&&b<=this.max}});sc.Kf.TARGET_REACHABLE=ig.ra.extend({ab:0,pt:w,s:new ig.u({attributes:{ab:{c:"Number",d:"Maximum distance to target in pixels."},pt:{c:"Boolean",d:"Plan to throw stuff at target => cliffs in between are ok."}}}),f:function(a){this.ab=a.distance||48;this.pt=a.throwing||w},Cb:function(a){return!a.target?w:ig.navigation.zcb(a,a.target,this.ab,this.pt)}});sc.Kf.TARGET_DISTANCE=
ig.ra.extend({min:0,max:0,s:new ig.u({attributes:{min:{c:"Number",d:"Min distance to target in pixels."},max:{c:"Number",d:"max distance to target in pixels."}}}),f:function(a){this.min=a.min||0;this.max=a.max||100},Cb:function(a){if(!a.target)return w;a=a.hU(a.target);return this.min<=a&&a<=this.max}});sc.Kf.TARGET_FACE=ig.ra.extend({pP:0,s:new ig.u({attributes:{pP:{c:"Number",d:"How much the face direction of the target diverges from distance vector. 0.5 = 45 degree"}}}),f:function(a){this.pP=a.maxAngle||
0},Cb:function(b){if(!b.target)return w;ig.Xf.Lr(b.target.b,b.b,a);return Vec2.oc(a,b.target.face)<this.pP*Math.PI}});sc.Kf.FACING_TARGET=ig.ra.extend({pP:0,s:new ig.u({attributes:{pP:{c:"Number",d:"How much the OWN face direction diverges from distance to target vector. 0.5 = 45 degree"}}}),f:function(a){this.pP=a.maxAngle||0},Cb:function(b){if(!b.target)return w;ig.Xf.Lr(b.b,b.target.b,a);return Vec2.oc(a,b.face)<this.pP*Math.PI}});sc.Kf.ENTITY_DISTANCE_OVER=ig.ra.extend({P:s,ab:0,s:new ig.u({attributes:{P:{c:"Entity",
d:"Entity distance is messured from."},ab:{c:"Number",d:"Distance value"}}}),f:function(a){this.P=a.entity;this.ab=a.distance||100},Cb:function(a){var b=ig.Ra.pd(this.P);return!b?w:a.hU(b)>this.ab}});var a=Vec2.create(),b=Vec2.create();sc.Kf.TARGET_X_DISTANCE=ig.ra.extend({min:0,max:0,s:new ig.u({attributes:{min:{c:"Number",d:"Min X distance to target in pixels."},max:{c:"Number",d:"max X distance to target in pixels."}}}),f:function(a){this.min=a.min||0;this.max=a.max||100},Cb:function(c){if(!c.target)return w;
var d=c.kb(a);Vec2.sub(d,c.target.kb(b));c=Math.abs(d.x);return this.min<=c&&c<=this.max}});sc.Kf.TARGET_Y_DISTANCE_BELOW=ig.ra.extend({value:0,s:new ig.u({attributes:{value:{c:"value",d:"Value the y distance needs to be below of"}}}),f:function(a){assertContent(a,"value");this.value=a.value},Cb:function(a){return!a.target?w:a.target.b.i.y-a.b.i.y<=this.value}});sc.Kf.TARGET_Z_DISTANCE=ig.ra.extend({Yu:0,Xu:0,s:new ig.u({attributes:{Yu:{c:"Number",d:"Min Z distance to target in pixels."},Xu:{c:"Number",
d:"max Z distance to target in pixels."}}}),f:function(a){this.Yu=a.zMin;this.Xu=a.zMax},Cb:function(a){if(!a.target)return w;var b=a.target.b.i.z-a.b.i.z;return this.Yu<=a.target.b.i.z+a.target.b.size.z-a.b.i.z&&b<=this.Xu}});sc.Kf.HAS_TARGET=ig.ra.extend({s:new ig.u({attributes:{}}),f:F(),Cb:function(a){return!!a.target}});sc.Kf.HP_BREAK=ig.ra.extend({min:g,max:g,s:new ig.u({attributes:{min:{c:"Number",d:"If defined: HP Break has to be at least this value.",U:j},max:{c:"Number",d:"If defined: HP Break has to be at most this value.",
U:j}}}),f:function(a){this.min=a.min;this.max=a.max},Cb:function(a){return this.min!=g&&this.min!=s&&a.nA<this.min||this.max!=g&&this.max!=s&&a.nA>this.max?w:j}});sc.Kf.HAS_SHIELD=ig.ra.extend({name:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of shield that has to be active"}}}),f:function(a){assertContent(a,"name");this.name=a.name},Cb:function(a){return a.ebb(this.name)}});sc.Kf.HAS_STICKY_PROXY=ig.ra.extend({s:new ig.u({attributes:{}}),f:F(),Cb:function(a){for(var a=a.oJ,b=a.length;b--;)if(a[b]instanceof
sc.WR&&a[b].o6)return j;return w}});sc.Kf.ENTERED_STATE=ig.ra.extend({s:new ig.u({attributes:{}}),f:F(),Cb:function(a){return a.tLa}});sc.Kf.CURRENT_STATE=ig.ra.extend({s:new ig.u({attributes:{state:{c:"EnemyStateRef",d:"State enemy is currently in"}}}),f:function(a){this.state=a.state},Cb:function(a){return a.Id==this.state}});sc.Kf.ENEMY_COUNT=ig.ra.extend({count:0,eua:0,s:new ig.u({attributes:{count:{c:"Number",d:"Minimum amount of enemies"},eua:{c:"Boolean",d:"Only count same enemy type"}}}),
f:function(a){this.count=a.count;this.eua=a.sameType},Cb:function(a){return sc.pb.DU(a.Ca,this.eua?a.np:s)>=this.count}});sc.Kf.TRACKER_READY=ig.ra.extend({name:0,Jra:w,s:new ig.u({attributes:{name:{c:"TrackerRef",d:"Name of Tracker"},Jra:{c:"Boolean",d:"Do not reset tracker after action/reaction has been performed",U:j}}}),f:function(a){this.name=a.name;this.Jra=a.noResetOnPerformed||w},Cb:function(a,b,e){var h=a.$G[this.name];return h&&h.Fda(a,b,e)},hG:function(a){var b=a.$G[this.name];b&&b.hG&&
b.hG(a)},fw:function(a){var b=a.$G[this.name];b&&b.fw&&b.fw(a,this.Jra)}});sc.Kf.TIMER_READY=ig.ra.extend({name:0,s:new ig.u({attributes:{name:{c:"String",d:"Name of timer"}}}),f:function(a){assertContent(a,"name");this.name=a.name},Cb:function(a){return a.eR[this.name]<=0}});sc.Kf.ACTION_TOKEN=ig.ra.extend({name:0,time:0,s:new ig.u({attributes:{name:{c:"String",d:"Name of action token that has to be available."},time:{c:"Number",d:"Time to block action token if available."}}}),f:function(a){assertContent(a,
"name","time");this.name=a.name;this.time=a.time},Cb:function(){return sc.pb.t9a(this.name,this.time)}});sc.Kf.MULTI_TOKEN=ig.ra.extend({Co:[],kwa:[],s:new ig.u({attributes:{Co:{c:"JSON",d:"An array of names, one for each token."},kwa:{c:"JSON",d:"An array of waiting times, one for each token."}}}),f:function(a){assertContent(a,"tokens");for(var b in a.tokens){this.Co.push(b);this.kwa.push(a.tokens[b])}},Cb:function(){return sc.pb.N$a(this.Co,this.kwa)}});sc.Kf.VAR_CONDITION=ig.ra.extend({jb:0,s:new ig.u({attributes:{jb:{c:"ActorVarCondition",
d:"VarCondition that has to be true."}}}),f:function(a){assertContent(a,"condition");this.jb=a.condition;if(typeof this.jb=="string")this.jb=new ig.ce(this.jb)},Cb:function(a){ig.pa.Fea(a);var b;if(this.jb.actorAttrib)b=(b=a.x9a(this.jb.actorAttrib))?b.evaluate():w;else b=this.jb?this.jb.evaluate():w;ig.pa.eea(a);return b}});sc.Kf.ATTRIB_IS_TRUE=ig.ra.extend({name:0,s:new ig.u({attributes:{name:{c:"String",d:"Name of actor attrib"}}}),f:function(a){assertContent(a,"name");this.name=a.name},Cb:function(a){return a.getAttribute(this.name)}});
sc.Kf.BLOCKING_FREE_LINE=ig.ra.extend({s:new ig.u({attributes:{}}),f:F(),Cb:function(a){return sc.pb.CKa(a)}});sc.Kf.BALL_CHARGE=ig.ra.extend({s:new ig.u({attributes:{}}),f:F(),Cb:function(a,b,e){return e&&e.fJ.ic&&e.fJ.ic.yk("CHARGED")}});sc.Kf.BALL_SMALL=ig.ra.extend({s:new ig.u({attributes:{}}),f:F(),Cb:function(a,b,e){return e&&e.fJ.Wv&&e.fJ.ic&&!e.fJ.ic.yk("CHARGED")}});sc.Kf.DAMAGE_FACTOR=ig.ra.extend({min:g,s:new ig.u({attributes:{min:{c:"Number",d:"Minimum value of attack damage factor",ub:1}}}),
f:function(a){this.min=a.min||0},Cb:function(a,b,e){return e&&e.ic.Xj>=this.min}});sc.Kf.PART_HIT=ig.ra.extend({ii:s,s:new ig.u({attributes:{ii:{c:"String",d:"Name of part that is hit"}}}),f:function(a){this.ii=a.partName},Cb:function(a,b,e){return!e||!e.Nsa?w:e.Nsa.ii==this.ii}});sc.Kf.HAS_HINT=ig.ra.extend({s:new ig.u({attributes:{hint:{c:"String",d:"Hint Value"}}}),f:function(a){this.hint=a.hint},Cb:function(a,b,e){return e&&e.fJ.ic&&e.fJ.ic.yk(this.hint)}});sc.Kf.IS_BALL=ig.ra.extend({s:new ig.u({attributes:{}}),
f:F(),Cb:function(a,b,e){return e&&e.ic.V9}});sc.Kf.IS_SHIELDED=ig.ra.extend({s:new ig.u({attributes:{}}),f:F(),Cb:function(a,b,e){return e&&e.wQa}});sc.Kf.ELEMENT_HIT=ig.ra.extend({element:s,s:new ig.u({attributes:{element:{c:"String",d:"Element required",Y:sc.ja}}}),f:function(a){this.element=sc.ja[a.element]||sc.ja.NEUTRAL},Cb:function(a,b,e){return e&&e.ic.element==this.element}});sc.Kf.HP_BREAK_HIT=ig.ra.extend({min:g,max:g,s:new ig.u({attributes:{min:{c:"Number",d:"If defined: HP Break just reached at least this value.",
U:j},max:{c:"Number",d:"If defined: HP Break just reached at most this value",U:j}}}),f:function(a){this.min=a.min;this.max=a.max},Cb:function(a,b,e){a=e&&e.UJa;return!a||this.min!==g&&this.min!==s&&a<this.min||this.max!==g&&this.max!==s&&a>this.max?w:j}});sc.Kf.KILL_HIT=ig.ra.extend({s:new ig.u({attributes:{}}),f:F(),Cb:function(a,b,e){return e&&e.BLa}});sc.Kf.COMBO_HITS=ig.ra.extend({min:0,s:new ig.u({attributes:{min:{c:"Number",d:"Minimum amount of hits of combo attack that enemy is stuck in"}}}),
f:function(a){this.min=a.min},Cb:function(a){return a.br.Ypa>=this.min}});sc.Kf.COMBO_TIME=ig.ra.extend({min:0,s:new ig.u({attributes:{min:{c:"Number",d:"Minimum amount of time (in SECONDS) of combo attack that enemy is stuck in"}}}),f:function(a){this.min=a.min},Cb:function(a){return a.br.time>=this.min}});sc.Kf.COMBO_DAMAGE=ig.ra.extend({min:0,s:new ig.u({attributes:{min:{c:"Number",d:"Amount of damage (relative to HP) of combo attack that enemy is stuck in"}}}),f:function(a){this.min=a.min},Cb:function(a){return a.br.Ge/
a.ba.le("hp")>=this.min}});sc.Kf.POI_IS_CLOSE=ig.ra.extend({qG:0,ab:0,s:new ig.u({attributes:{qG:{c:"PoiFilter",d:"Kind of POI searched"},ab:{c:"Number",d:"Maximum distance to POI"}}}),f:function(a){this.qG=a.poiFilter;this.ab=a.distance},Cb:function(a){var b=sc.oha.Qoa(this.qG,a,this.ab);a.Qqa=b;return!!b}});sc.Kf.CLOSEST_ENTITY=ig.ra.extend({s:new ig.u({attributes:{entities:{c:"Array",d:"List of entities.",LE:{c:"Entity"}},value:{c:"Integer",d:"Index value to compare"},zob:{c:"String",d:"How to compare value to actual index",
Y:{EQUAL:function(a,b){return a==b},Mlb:function(a,b){return b<=a},Flb:function(a,b){return b>=a}}}}}),f:function(a){this.qG=a.poiFilter;this.ab=a.distance},Cb:function(a){var b=sc.oha.Qoa(this.qG,a,this.ab);a.Qqa=b;return!!b}})});ig.G=j;
ig.I("game.feature.combat.model.enemy-type").J("impact.base.loader","game.feature.combat.model.combat-params","game.feature.combat.model.combat-condition","impact.base.animation").H(function(){function a(a,c){if(!c.he.m5){if(c.d1.length>0){for(var d=c.d1.length;d--;)c.d1[d].fw(c);c.d1.length=0}if(c.iW){if(b(c,c.iW)){c.Af.D1=0;c.target&&a.hX(c)}c.iW=s}}c.he.Hp=s}function b(a,b){var c=w,d;for(d in b){var c=j,e=b[d];a.eR[d]=typeof e=="number"?e:e[0]+Math.random()*((e[1]||e[0])-e[0])}return c}function c(a,
b,c){sc.x7.WQ(a,ig.Rb.CENTER,"HP",b,c)}function d(a,b){for(var c=0;c<b.length;++c){var e={xg:s},h=b[c].req;if(h)e.xg=new sc.IY(h);if(b[c].sub){e.sub=[];d(e.sub,b[c].sub)}else{e.action=b[c].action;e.Ms=b[c].frequency||s;e.cGa=b[c].collab||s;e.Ms&&!sc.f7[e.Ms]&&f(Error("Unknown attack frequency '"+e.Ms+"'"));e.Hh=b[c].preSwitchState;e.ry=b[c].postSwitchState;e.t6a=b[c].changeTimers;e.VO=b[c].ignoreStun}a.push(e)}}function e(a,b,c){for(var d=0;d<a.length;++d){var h=a[d];if(h.sub||h.VO||!b.Pv())if(!h.Ms||
sc.pb.C6a(b,h.Ms))if(!h.xg||h.xg.Cb(b,c))if(h.sub){var t=e(h.sub,b,c);if(t){h.xg&&h.xg.fw(b,j);return t}}else{if(h.cGa){t=new sc.$Ua(b,h.cGa);if(!t.IRa)continue;t.start()}h.xg&&h.xg.fw(b,j);return h}}}var h=0;sc.Uo={};sc.Uo.ABSTRACT=0;sc.Uo.PLAYERS=1;sc.Uo.ANIMALS=2;sc.Uo.MECHA=3;sc.Uo.BOSS=4;sc.bv=ig.CB.extend({ui:"Enemy",b0:s,Xna:s,name:"",ba:s,Ud:s,exp:0,aa:1,Ao:4,hma:w,fV:[],nb:s,S9:{},fn:{},ug:{},Dm:{},he:{},wwa:s,OO:0,A2:0,zV:[],Xp:{Nrb:0,cNa:w,YMa:w,PGa:120,cMa:240,dMa:3},JC:function(){return ig.root+
this.path.dr("data/enemies/",".json")+ig.kl()},onload:function(a){this.name=a.name;this.hma=a.boss;this.g1=sc.bv.Xxa[a.detectType]||sc.bv.Xxa.DISTANCE;this.Ud=a.credit||0;this.b0=a.aiGroup||s;this.Xna=a.enduranceScale||1;this.exp=a.exp||0;this.aa=a.level||1;this.Ao=a.maxSp||4;this.OO=a.headIdx;if(this.OO==g)this.OO=3;this.A2=a.healDropRate||0;this.zV=a.itemDrops||[];this.wwa=a.trackers;if(a.params)this.ba=a.params;if(a._wm&&a._wm.attributes)this.S9=a._wm.attributes;if(a.hpBreaks)for(var b=0;b<a.hpBreaks.length;++b){var c=
a.hpBreaks[b];this.fV.push({Fh:c.hp,ibb:c.healDrop})}this.nb=new ig.wj(a.anims);this.size=a.size;this.qN=a.cameraZFocus||0;this.padding=a.padding||Vec2.pc(0,0);this.aTa=a.walkConfigs;this.XV=sc.kH[a.material]||sc.kH.METAL;for(var d in a.proxies){b=a.proxies[d];this.fn[d]=new sc.rS[b.type](b)}if(a.targetDetect){b=a.targetDetect;if(b.detectDistance!=g)this.Xp.PGa=b.detectDistance;if(b.detectZDelta!=g)this.Xp.QGa=b.detectZDelta||0;if(b.loseDistance!=g)this.Xp.cMa=b.loseDistance;if(b.loseTime!=g)this.Xp.dMa=
b.loseTime;if(b.onDistance!=g)this.Xp.cNa=b.onDistance;if(b.onVisible!=g)this.Xp.nfb=b.onVisible;if(b.notifyNeighbourRadius!=g)this.Xp.QMa=b.notifyNeighbourRadius;if(b.onCloseBattle!=g)this.Xp.YMa=b.onCloseBattle;this.Xp.nfb=b.onVisible||w}this.qU=new ig.lr;this.qU.aK(a);for(d in a.actions){this.ug[d]=new ig.rf(d,a.actions[d]);this.ug[d].hint="battle"}this.HGa=a.defaultState;for(d in a.states)this.Dm[d]=new sc.oVa(d,a.states[d],this.qU);for(d in a.reactions){b=a.reactions[d];this.he[d]=new sc.fE[b.type](d,
b)}},Nn:function(){this.nb.zc();for(var a in this.ug)this.ug[a].Qa();for(a in this.fn)this.fn[a].Qa()},$ba:function(a){if(this.loaded&&!a.Haa){a.Haa=j;a.v(this.size.x,this.size.y,this.size.z);a.qN=this.qN;a.b.nfa(this.padding.x,this.padding.y);a.XV=this.XV;a.nb=this.nb;a.fn=this.fn;if(this.size.z>96)a.rga=j;for(var b in this.aTa)a.iR(b,this.aTa[b]);for(var c in this.wwa){var d=this.wwa[c],e=d.type;sc.PY[e]&&(a.$G[c]=new sc.PY[e](a,d))}for(b in this.S9){c=a.attributes[b];this.S9[b]._type=="VarCondition"?
a.setAttribute(b,new ig.ce(c)):this.S9[b]._type=="Vec3"&&a.setAttribute(b,ig.Ra.Mv(c,Vec3.create()))}this.Ew(a,a.Id||this.HGa);if(this.ba){a.ba=new sc.t7(this.ba);a.ba.tua(a);a.ba.Iua(this.Ao);a.wl&&a.wl.cca()}}},update:function(b){if(this.loaded&&!b.ng&&(!b.ba||!b.ba.Yg()&&!b.ba.b3())){b.target&&b.target.Yg()&&this.hX(b);b.Haa||this.$ba(b);b.Id||this.Ew(b,this.HGa);this.klb(b);this.NFa(b);if(!b.od){a(this,b);b.xA&&!b.Pv()&&this.Ew(b,b.xA);b.xA||this.sSa(b)}}},NFa:function(a){for(var b=0;b<a.he.enabled.length;++b){var c=
a.he.enabled[b],d=this.he[c];if(a.he.Hp!=d&&d.Cb&&d.Cb(a)){a.he.Ea=c;d.ata(a)}}a.he.Ea&&this.iFa(a)},iFa:function(a){var b=this.he[a.he.Ea];if(b.VO||!a.Pv()){a.wma();b.apply(a,this.ug);a.Jk&&a.fp(a.Jk);a.he.Hp=b;a.he.Ea=s}},sSa:function(a){if(a.he.m5){a.If(a.he.m5);a.he.m5=s}else{var b=this.Dm[a.Id].Mhb(a);if(b){a.wma();b.Hh&&this.Ew(a,b.Hh);b.action?a.If(this.ug[b.action]):a.If(s);a.xA=b.ry}}},klb:function(a){if(a.target){if(!sc.q.vJ){c=a.hU(a.target);a.v6=c>this.Xp.cMa?a.v6+ig.g.ga:0;a.v6>=this.Xp.dMa&&
a.jn(s)}}else if(ig.t.wb){var b=ig.t.wb,c=a.hU(b),d=Math.abs(a.b.i.z-b.b.i.z);if(c<this.Xp.PGa&&(!this.Xp.QGa||d<this.Xp.QGa))this.Xp.cNa?this.P9(a,b,j):this.Xp.YMa&&b.bwa.length>0&&this.P9(a,b,j)}},hX:function(a,b,c){var d=sc.pb.c$a(a);d&&this.P9(a,d,b,c)},P9:function(a,b,c,d){a.v6=0;if(a.target!=b){a.jn(b);if(a.target){h++;if(h>100)debugger;else{d||a.xk();c&&this.Xp.QMa&&sc.pb.Idb(a,this.Xp.QMa)}h--}}},z7a:function(a,b){if(a.target){if(b.Bi()==a.target)a.v6=0}else{sc.pb.Zsa=j;this.P9(a,b.Bi(),j)}},
l4:function(a,b){b>5&&a.jn(s)},IK:function(b){if((!b.ba||!b.ba.Yg()&&!b.ba.b3())&&!b.he.Ea&&!b.od){a(this,b);b.xA||this.NFa(b);if(!b.od){b.xA&&!b.Pv()&&this.Ew(b,b.xA);b.xA||this.sSa(b)}}},Ew:function(c,d){c.od&&c.xk();var e=c.Id;c.Id=d;c.xA=s;c.od=s;c.uC=s;c.tLa=j;a(this,c);var h=this.Dm[c.Id],e=h.iua&&h.iua.indexOf(e)!=-1;c.Ei(h.qU);if(!e){for(var o in c.$G){e=c.$G[o];e.n4&&e.n4(c)}b(c,h.jqa);sc.pb.Gbb(c)}c.Oc&&c.Oc.preIdle&&c.Ja(c.Oc.preIdle,j,c.Oc.idle)},dLa:function(a){return sc.pb.Ga&&(!a.od||
a.od.hint=="battle")},nhb:function(a,b,d,e){if(e&&!(b.nA>=this.fV.length)){for(var h=w,e=(b.ba.Jb-e.Ge)/b.ba.le("hp");b.nA<this.fV.length&&e<this.fV[b.nA].Fh;){c(b,this.fV[b.nA].ibb,d);a.bC=sc.hc.MASSIVE;b.nA++;h=j}return h}},khb:function(a){this.Ud&&sc.q.R.D9(this.Ud,w,j);if(this.exp){var b=sc.q.R.$M(this.exp,this.aa,0,w,w,"enemies");sc.ta.cc("player","expEnemies",b)}this.ohb(a);var b=Math.random(),d=sc.pb.V$a(sc.Qd.PLAYER);a.Mna?c(a,a.Mna):this.A2&&(d>0.8||(d<0.1&&b<0.7?c(a,this.A2):d<0.3&&b<0.5?
c(a,this.A2):b<0.2&&c(a,this.A2)))},ohb:function(a){for(var b=this.zV,c=b.length,d=ig.t.wb,e=sc.q.R.ba.Rl("DROP_CHANCE")+1,h=sc.q.yJ(),r=sc.q.K9a();c--;){var p=b[c],q=Math.random();if(!(p.rank&&h<sc.q.hba(p.rank))&&q<=p.prob*e*r){q=p.min||1;p.max&&(q=q+Math.floor((p.max+1-q)*Math.random()));sc.fM.WQ(a,ig.Rb.CENTER,d,p.item,q,sc.mE.ENEMY)}}}});Vec2.create();sc.bv.Xxa={DISTANCE:1,VIEW:2,NONE:3};sc.IY=ig.ra.extend({xg:[],f:function(a){for(var b=0;b<a.length;++b){var c=this.m4a(a[b]);this.xg.push(c)}},
m4a:function(a){var b=a.type,c=w;if(b.charAt(0)=="!"){b=b.substr(1);c=j}sc.Kf[b]||f(Error("Unknown Condition type '"+b+"'"));a=new sc.Kf[b](a);a.not=c;return a},Cb:function(a,b,c){for(var d=0;d<this.xg.length;++d){var e=this.xg[d].Cb(a,b,c);if(!this.xg[d].not&&!e||this.xg[d].not&&e)return w}return j},hG:function(a){for(var b=this.xg.length;b--;)this.xg[b].hG&&this.xg[b].hG(a)},fw:function(a,b){for(var c=this.xg.length;c--;){var d=this.xg[c];d.fw&&(b?a.d1.push(d):d.fw(a))}}});sc.oVa=ig.ra.extend({name:"",
qU:{},z0:[],jqa:{},iua:s,f:function(a,b,c){this.name=a;this.jqa=b.initTimers||this.jqa;this.iua=b.seamlessStates||s;this.qU=new ig.lr;this.qU.aK(b,c);d(this.z0,b.choices)},Mhb:function(a){var b=Math.random();if(b=e(this.z0,a,b)){a.tLa=w;a.iW=ig.merge({},b.t6a);b.Ms&&sc.pb.pkb(a,b.Ms);return b}return s}})});ig.G=j;
ig.I("game.feature.combat.model.enemy-annotation").H(function(){sc.Ow={THREAT:0,TEMP_THREAT:1,PEACEFUL:2};sc.yha={NONE:0,PRE_ATTACK:1,ATTACK:2,POST_ATTACK:3};sc.aS={NONE:0,VULNERABLE:1,WEAK:2,IMMUNE:3};sc.OY={ANY:0,MELEE:1,RANGED:2};sc.WL={ATTACK_BACK:1,ATTACK_FRONT:2,LOOK_AWAY:4,BE_PASSIVE:8,BE_PASSIVE_IF_TARGETED:16};sc.hya={ANY:0,NEUTRAL:1,HEAT:2,COLD:3,SHOCK:4,WAVE:5};sc.tt={plb:function(a){return a.xn.dH==sc.OY.MELEE},rlb:function(a){return a.xn.dH==sc.OY.RANGED},Ccb:function(a,b){return b&&
!this.kJ(a,b)?w:a.xn.sD==sc.aS.VULNERABLE},qLa:function(a,b){return b&&!this.kJ(a,b)?w:a.xn.sD==sc.aS.WEAK},MKa:function(a,b){return b&&!this.kJ(a,b)?w:a.xn.sD==sc.aS.IMMUNE},kJ:function(a,b){return Math.random()<=this.jJa(a,b)},jJa:function(a){return 0.1+sc.pb.$9a(a)*0.85},y2:function(a,b){return a.xn.aA&b},$ab:function(a,b){return!this.kJ(a,b)||a.target!=b?w:this.y2(a,sc.WL.LOOK_AWAY)},BJa:function(a,b){return b&&!this.kJ(a,b)?w:this.y2(a,sc.WL.ATTACK_BACK)},CJa:function(a,b){return b&&!this.kJ(a,
b)?w:this.y2(a,sc.WL.ATTACK_FRONT)},fjb:function(a,b){if(!this.kJ(a,b))return w;if(this.MKa(a)||a.target==b&&this.y2(a,sc.WL.BE_PASSIVE_IF_TARGETED)||this.y2(a,sc.WL.BE_PASSIVE))return j}}});ig.G=j;
ig.I("game.feature.combat.entities.enemy").J("game.feature.combat.entities.combatant","game.feature.combat.model.enemy-type","game.feature.combat.model.enemy-annotation").H(function(){Vec2.create();var a={fJ:s,ic:s,Nsa:s,jna:s,wQa:w,UJa:s,BLa:w,Wu:w};ig.ya.Enemy=ig.ya.Combatant.extend({Ca:sc.Qd.ENEMY,dx:sc.Ow.THREAT,np:s,bc:s,Av:s,haa:s,Haa:w,Mna:0,uva:Vec3.create(),Id:s,xA:s,iW:s,eR:{},$G:{},d1:[],v6:0,he:{enabled:[],Ea:s,Hp:s,m5:s},Cq:{count:0,n:0,wk:0},xn:{Ga:0,sD:0,dH:0,element:0,aA:s},nA:0,Qqa:s,
$va:w,Jk:s,An:s,BRa:[],Jsa:s,qN:0,i6:s,s:new ig.u({Bd:j,attributes:{Dq:{c:"EnemyType",d:"Enemy information",sd:j},Rp:{c:"VarCondition",d:"Condition for Enemy to spawn",sd:j},B3:{c:"VarName",d:"Instead of killing the enemy, set specified variable to true.",U:j}},label:R(""),Fj:j,hl:"rgba(255,0,0, 0.5)"}),f:function(a,b,c,k){this.parent(a,b,c,k);this.v(24,24,0);Vec3.assign(this.uva,this.b.i);if(k.enemyInfo){this.np=k.enemyInfo.type;this.bc=new sc.bv(k.enemyInfo.type);this.Av=k.enemyInfo.group;this.Id=
k.enemyInfo.state||s;this.Mna=k.enemyInfo.dropHealOrb||0;if(k.enemyInfo.startEffect)this.i6=new ig.al(k.enemyInfo.startEffect);if(k.enemyInfo.varIncrease){this.haa=k.enemyInfo.varIncrease;ig.pa.rw(this.haa,0)}if(k.enemyInfo.party)this.Ca=sc.Qd[k.enemyInfo.party];var a=k.enemyInfo.attribs,l;for(l in a)this.setAttribute(l,a[l]);ig.Zb.Mr(ig.Zb.Cl[k.enemyInfo.face]||ig.Zb.Cl.SOUTH,this.face);if(window.Yc){this.s=this.s.copy();this.s.Fj=w;this.bc.$ba(this);this.ld()}}this.B3=k.manualKill||s;this.Jsa=k.ownerEnemy||
s},uba:function(){return{type:"Enemy"}},mkb:function(a){this.BRa.push(a)},Bsa:function(){this.show(j);for(var a=0;a<this.he.enabled.length;++a){var b=this.he.enabled[a],c=this.bc.he[b];if(c.type=="STORE_RELEASE"){this.he.Ea=b;c.Bsa(this);return j}}},$bb:function(){return this.bc.hma},zO:function(){return this.bc.OO},show:function(a){this.parent(a);var c=this.od;this.bc.$ba(this);this.ld();if(!a){this.Za.alpha=0;this.i6?this.i6.Ya(this):ig.t.O.Zk.Ya("showDefault",this);this.If(c||b)}},gG:function(){this.wl&&
this.wl.remove();this.wl=s;if(!this.cO){ig.sH.vN(this);this.If(c)}},hide:function(){ig.sH.vN(this);this.parent()},Tb:function(a){this.parent(a);this.i6&&this.i6.Qa();this.bc.zc()},update:function(){if(this.Cq.n>0){this.Cq.n=this.Cq.n-ig.g.ga;if(this.Cq.n<=0){this.Cq.n=0;this.Cq.count=0;this.Cq.wk=w}}this.Jsa&&(this.Jsa.Yg()&&!this.Yg())&&this.uKa();this.bc&&!this.Haa&&this.bc.$ba(this);if(this.bc&&this.bc.dLa(this)){this.$va=w;for(var a in this.eR)this.eR[a]=this.eR[a]-ig.g.ga;for(a in this.$G){var b=
this.$G[a];b.update&&b.update()}this.bc.update(this)}else this.$va||this.jn(s);this.parent()},q4:function(a,b,c,k,l){if(k==sc.qM.oM&&!l.Wv)for(l=0;l<this.he.enabled.length;++l){var m=this.he.enabled[l],n=this.bc.he[m];if(n.type=="GUARD_COUNTER"){this.he.Ea=m;n.qeb(this,a);return j}}this.parent(a,b,c,k)},gNa:function(a){for(var b=0;b<this.he.enabled.length;++b){var c=this.he.enabled[b],k=this.bc.he[c];if(k.type=="FALL"&&k.A6a(a)){if(this.he.Hp==k)return j;k.Jda(this);this.he.Ea=c;return j}}return w},
IK:function(){this.bc&&this.bc.dLa(this)&&this.bc.IK(this)},jx:function(a,b){if(this.bc)if(b){this.xk();this.bc.Ew(this,a)}else this.xA=a},qsa:function(b,c,h,k,l,m){var n=0,o=this.bc.nhb(b,this,c.Bi(),l);if(o)n=this.nA;var t=l&&l.Ge||0;a.fJ=c;a.ic=h;a.Nsa=k;a.jna=l;a.wQa=m;a.UJa=n;a.BLa=this.ba&&this.ba.Jb-t<=0;a.Wu=0;h=Math.random();if(!this.he.Ea)for(k=0;k<this.he.enabled.length;++k){a.Wu=w;l=this.he.enabled[k];m=this.bc.he[l];if(m.type=="HIT_REACTION"){if(m.D6a(this,h,a)){this.he.Ea=l;m.sbb(this,
c,b,this.bc.ug);if(a.Wu>=1&&m.lU){this.wl.XFa("BREAK");b.Wu=0}return j}if(a.Wu&&m.lU)b.Wu=a.Wu}}return o},Z6a:function(a){for(var b=0;b<this.he.enabled.length;++b){var c=this.bc.he[this.he.enabled[b]];if(c.type=="COLLAB"&&c.cLa(this,a))return j}},VGa:function(a){this.Jk||f(Error("Tried to do collab reaction without collaboration set. Should never happen!"));for(var b=0;b<this.he.enabled.length;++b){var c=this.he.enabled[b],k=this.bc.he[c];if(k.type=="COLLAB"&&k.GT==a){this.he.Ea=c;this.bc.iFa(this);
break}}},Cna:function(a){var b=this.bc.ug[a];b||f(Error("Enemy does not has action of Name: "+a));this.If(b)},$Ma:function(a,b,c){this.bc&&this.bc.z7a(this,a);return this.parent(a,b,c)},l4:function(a){this.bc&&this.bc.l4(this,a)},Hda:function(){this.haa&&ig.pa.add(this.haa,1);this.bc.khb(this)},g8a:function(a){if(a)for(var b=a.length;b--;){var c=a[b];this.he.enabled.indexOf(c)==-1&&this.bc.he[c].jD(this)}this.he.enabled.length=0;a&&this.he.enabled.push.apply(this.he.enabled,a)},f8a:function(a){if(this.he.enabled.indexOf(a)==
-1){this.he.enabled.push(a);this.bc.he[a].jD(this)}},M7a:function(a){a=this.he.enabled.indexOf(a);a!=-1&&this.he.enabled.splice(a,1)},On:function(a,b){return b[1]=="dodgeBlocked"?this.Cq.wk:b[1]=="collab"?!this.Jk?s:this.Jk.On(a,b):this.parent(a,b)}});ig.Ro.xha={B0:ig.ya.Enemy,eS:{enabledReactions:[],aggression:sc.Ow.THREAT,regenFactor:0,annotate:{}},N1:function(){typeof this.aggression=="string"&&(this.aggression=sc.Ow[this.aggression]);if(this.annotate){var a=this.annotate;if(a.extra&&a.extra instanceof
Array){for(var b=a.extra,c=0,k=0;k<b.length;++k)c=c|sc.WL[b[k]];a.extra=c}typeof a.active=="string"&&(a.active=sc.yha[a.active]);typeof a.passive=="string"&&(a.passive=sc.aS[a.passive]);typeof a.weapon=="string"&&(a.weapon=sc.OY[a.weapon]);typeof a.element=="string"&&(a.element=sc.hya[a.element])}else this.annotate={}},apply:function(a){a.g8a(this.enabledReactions);if(a.dx!=this.aggression){a.dx=this.aggression;if(a.target){var b=a.target;a.jn(s);a.jn(b)}}a.PK=this.regenFactor;a.xn.Ga=this.annotate.active||
0;a.xn.sD=this.annotate.passive||0;a.xn.dH=this.annotate.weapon||0;a.xn.aA=this.annotate.extra||0;a.xn.element=this.annotate.element||0},load:function(a){this.enabledReactions=ig.copy(a.he.enabled);this.aggression=a.dx;this.regenFactor=a.PK;this.annotate={active:a.xn.Ga,passive:a.xn.sD,weapon:a.xn.dH,extra:a.xn.aA,element:a.xn.element}}};var b=new ig.rf("enemyStart",[{type:"WAIT",time:0.4}]),c=new ig.rf("enemyHide",[{type:"SHOW_EFFECT",effect:{sheet:"teleport",name:"hideDefault"},wait:j,align:"CENTER"},
{type:"HIDE"}])});ig.G=j;
ig.I("game.feature.combat.entities.enemy-spawner").J("impact.base.actor-entity").H(function(){ig.ya.EnemySpawner=ig.gd.extend({Yz:[],nMa:0,ym:0,oKa:w,jHa:w,s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",d:"Condition for prop to appear",sd:j},Yz:{c:"EnemyTypeList",d:"All enemies that are spawned on this place",sd:j}},Ip:j,Jp:j,Fj:j,hl:"rgba(255,120,0, 0.5)"}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;d.size||this.b.v(32,32,0);if(d.enemyTypes){a=d.enemyTypes;for(b=0;b<a.length;++b){c=
{info:a[b].info,type:new sc.bv(a[b].info.type),count:a[b].count,XM:[]};this.nMa=this.nMa+c.count;this.Yz.push(c)}}},show:function(a){this.parent(a);if(!a)this.jHa=j},Tb:function(a){this.parent(a);this.P4a();for(a=this.Yz.length;a--;)this.Yz[a].type.zc()},P4a:function(){for(var a=[],b=0,c=0;c<this.Yz.length;c++){a[c]=this.Yz[c].count-this.Yz[c].XM.length;b=b+a[c]}c=-1;b>0&&(c=sc.pb.time+this.ym);ig.pa.set(this.p_(),{killed:a,respawnTime:c})},p_:function(){return"session.map.spawner"+this.gy},update:function(){if(!this.oKa){this.oKa=
j;var a=ig.pa.get(this.p_()),b=s,c=180;if(a&&sc.pb.time<a.respawnTime){b=a.killed;c=a.respawnTime-sc.pb.time}this.VOa(this.jHa,b);this.ym=c}a=j;b=0;for(c=this.Yz.length;c--;){for(var d=this.Yz[c],e=d.XM.length;e--;){var h=d.XM[e];h.gaa?d.XM.splice(e,1):h.target&&(a=w)}b=b+(d.count-d.XM.length)}if(a&&b>0&&sc.pb.Ga){this.ym=this.ym-ig.g.ga;if(this.ym<=0){this.VOa(j);this.ym=180}}},VOa:function(a,b){for(var c=this.Yz.length;c--;)for(var d=this.Yz[c],e=d.count-d.XM.length-(b&&b[c]||0);e--;){var h=this.rva(d,
a);d.XM.push(h)}},rva:function(a,b){var c=this.b,d=a.type.size,e=c.size.x-d.x,d=c.size.y-d.y;e<0&&(e=0);d<0&&(d=0);return ig.t.af(ig.ya.Enemy,c.i.x+Math.random()*e,c.i.y+Math.random()*d,c.i.z,{enemyInfo:a.info},b)}})});ig.G=j;
ig.I("game.feature.combat.entities.respawn-blocker").J("impact.base.entity").H(function(){ig.ya.RespawnBlocker=ig.gd.extend({s:new ig.u({Bd:j,attributes:{},label:R("RespawnBlocker"),Ip:j,Jp:j,Fj:j,hl:"rgba(0,255,255, 0.3)"}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;d.size||this.b.v(32,32,0);sc.pb.z5a(this)}})});ig.G=j;
ig.I("game.feature.combat.entities.burst-spawner").J("game.constants","impact.feature.effect.effect-sheet","impact.base.entity").H(function(){ig.GTa=ig.gd.extend({$c:s,target:s,vk:s,kK:0,Kfa:3,ID:0.2,Pe:s,ina:0,jg:32,sg:24,UX:0.2,eT:0,n:0,Mfa:[],f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.IGNORE;this.b.mm=1;this.b.uz=0;this.b.pp=0;this.b.v(4,4,4);this.b.Z.x=d.vel.x;this.b.Z.y=d.vel.y;this.target=(this.$c=d.combatant||s)&&this.$c.target;this.vk=d.attack;this.kK=d.moveSpeed||40;this.Kfa=
d.spawnCount||3;this.ID=d.spawnInterval||0.3;this.Pe=d.effect;this.ina=d.damageDelay||0;this.jg=d.radius||32;this.sg=d.zHeight||24;this.UX=d.steerDegree||0.2;this.eT=d.adjustTime||0},update:function(){this.n=this.n+ig.g.ga;for(var a=Math.min(this.Kfa,Math.floor(this.n/this.ID));this.Mfa.length<a;)this.akb();for(var b=w,c=0;c<this.Mfa.length;++c)b=this.glb(this.Mfa[c]);if(a==this.Kfa&&b)this.Tb();else{this.target&&sc.fha.cFa(this,this.target,this.n,this.eT,this.UX);Vec2.length(this.b.Z,this.kK)}this.parent()},
akb:function(){var a=Vec3.create(this.b.i);this.Mfa.push({i:a,n:this.ina});this.Pe.eh(a.x,a.y,a.z)},glb:function(a){if(a.n>=0){a.n=a.n-ig.g.ga;if(a.n<=0){a=new sc.nH(this.$c,{pos:a.i,radius:this.jg,attack:this.vk,zHeight:this.sg});sc.pb.WB(a);return j}return w}return j}})});ig.G=j;
ig.I("game.feature.combat.entities.stone").J("game.feature.combat.entities.projectile","game.feature.combat.model.proxy","game.constants","impact.feature.effect.effect-sheet","impact.base.entity","impact.feature.light.light").H(function(){sc.Zmb=sc.rS.STONE=sc.Dia.extend({data:s,s:new ig.u({attributes:{gFa:{c:"AnimSheet",d:"Animation sheet of ball. Needs one entry with name 'default'",sd:j},size:{c:"Offset",d:"Size of projectile",U:j},Ad:{c:"Number",d:"Shadow size"},O:{c:"String",d:"Effect sheet for effects",
Y:"effects",Oi:j},ro:{c:"EffectKeys",d:"What keys to use in the effect sheet",U:j},hdb:{c:"Integer",d:"Number of times the stone can bounce on walls"},hqb:{c:"Integer",d:"How often stone can bounce on ground before being destroyed"},vk:{c:"AttackInfo",d:"How the ball will hit its target"},speed:{c:"NumberVary",d:"Speed of ball",ub:300},kr:{c:"NumberVary",d:"Z Vel when thrown"},Xh:{c:"Number",d:"Amount of z bounciness"},bG:{c:"Boolean",d:"True if stone can hit multiple targets"},ph:{c:"String",d:"Size of light shown for this ball",
U:j,Y:ig.cl},Edb:{c:"Boolean",d:"If true, don't make light glow for stone"}}}),f:function(a){this.data=a;a.animation.shapeType||(a.animation.shapeType="YZ_EXPAND");a.animation.wallY=1;a.animation=new ig.wj(a.animation);a.effects&&(a.effects=new ig.ae(a.effects))},Qa:function(){this.data.effects&&this.data.effects.zc();this.data.animation&&this.data.animation.Qa()},Hu:function(a,c,d,e,h){return ig.t.af(ig.ya.Stone,a,c,d,{dir:h,stoneInfo:this.data,params:e.ba,party:e.Ca,combatant:e})}});Vec2.create();
var a=Vec3.create();Vec3.create();ig.ya.Stone=ig.ya.Projectile.extend({Ca:0,target:s,ba:s,ic:s,bG:w,Eta:0,O:s,ro:s,Gh:s,hu:s,fC:s,pT:s,f:function(a,c,d,e){this.parent(a,c,d,{vel:e.dir,combatant:e.combatant});this.Ca=e.party;this.ba=e.params;this.Qib(e.stoneInfo);this.b.se=1},Qib:function(b){var c=this.b,d=ig.Ra.rba(b.speed),e=ig.Ra.rba(b.zVel);Vec2.length(c.Z,d);c.Z.z=e;c.Ui=d;c.Ad.size=b.shadow||16;c.Xh=b.zBounciness||0;d=b.size;e=Vec3.assign(a,c.size);d?c.v(d.x,d.y,d.z):c.v(8,8,8);c.l(c.i.x-(this.b.size.x-
e.x)/2,c.i.y-(this.b.size.y-e.y)/2,c.i.z);this.b.type=ig.la.PROJECTILE;this.b.v(8,8,8);if(this.$c)this.target=this.$c.target;this.fC=b.behaviors||s;this.nb=b.animation;this.ld(b.animation);this.O=b.effects;this.ro=b.effectKeys||s;this.bG=b.multiHit||w;this.RK=b.maxBounce;this.Eta=b.groundBounce;if(b.attack)this.ic=new sc.NL(this.ba,b.attack,j);ig.sH.vN(this,"trail");c=this.ro&&this.ro.trail||"stoneTrail";this.O&&this.O.Gba(c)&&this.O.Ya(c,this,{duration:-1,group:"trail"});this.Gh&&this.Gh.stop();
this.Gh=new ig.Qw(this,ig.cl[b.light||"XS"],0,0.2,-1,1,!b.noLightGlow);ig.ph.cx(this.Gh)},esa:function(a,c){this.O&&this.O.eh(this.ro&&this.ro.wallBounce||"stoneWallBounce",a.x,a.y,this.b.i.z,s,{angle:Vec2.Gs(c.jp)})},wK:function(){if(this.O){var a=this.ro&&this.ro.kill||"stoneKill";if(this.O.Gba(a)){var c=this.je(ig.Rb.CENTER);this.O.eh(a,c.x,c.y,c.z,s)}}},ssa:function(a){var c=w;if(this.ic&&a.Ge&&a.Ca!=this.Ca){var d=this.ic,c=j;if(a.Ge(this,d)&&!this.bG){this.wK();this.Tb()}}c&&this.$c.Xv&&sc.ta.cc("player",
"throwHits",1);return c},DA:function(){if(!this.Eta){this.wK();this.Tb()}if(this.b.Z.z<10){this.wK();this.Tb()}this.Eta--},nh:function(){return this.ic&&this.ic.element||sc.ja.NEUTRAL}})});ig.G=j;
ig.I("game.feature.combat.gui.hp-bar").J("impact.feature.gui.gui").H(function(){var a=Vec2.create();ig.Ji.HpBar=ig.X.extend({N:{DEFAULT:{state:{},time:0.25,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:1,Ma:0,oc:Math.PI*0.1},time:0.25,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/status-gui.png"),target:s,Jb:0,qe:0,n:0,Ym:0,f:function(a){this.parent();this.v(24,4);this.rb(12,2);this.a.Vc=0.7;this.a.zIndex=-50;this.a.TC=j;this.target=a;this.Jb=this.qe=a.ba.Jb;this.j("HIDDEN",j);this.target.dx!=sc.Ow.PEACEFUL&&
this.j("DEFAULT");sc.K.Na(a.ba,this)},lb:function(){this.K5(this.target.ba.Jb)},K5:function(a){this.n=0.5;this.Ym=2;if((this.qe-this.Jb)*(a-this.qe)<0)this.Jb=this.qe;this.qe=a;if(this.qe<0)this.qe=0},update:function(){var b=this.a;this.target instanceof ig.ya.Combatant&&this.target.Yg()&&this.remove();if(this.target.ba){b.Vc=this.Ym>0.2?1:0.9;if(this.Ym>0)this.Ym=this.Ym-ig.g.Da;if(this.n>0)this.n=this.n-ig.g.Da;else if(this.qe!=this.Jb){var c=ig.g.Da*this.target.ba.le("hp")/2;if(this.Jb>this.qe)this.Jb=
Math.max(this.qe,this.Jb-c);else if(this.Jb<this.qe)this.Jb=Math.min(this.qe,this.Jb+c);if(this.Ym<0.2)this.Ym=0.2;if(this.Jb==this.qe)this.n=0.2}c=this.target.kb();ig.g.Kv(a,Math.round(c.x),Math.round(c.y-this.target.b.i.z+this.target.b.size.y/2));this.a.i.x=a.x-b.size.x/2;this.a.i.y=a.y-b.size.y/2;b.qj||(this.target.dx==sc.Ow.PEACEFUL||this.a.i.x+b.size.x<0||this.a.i.x>ig.g.width||this.a.i.y+b.size.y<0||this.a.i.y>ig.g.height?this.j("HIDDEN"):this.j("DEFAULT"))}},va:function(a){var c=this.target.ba.le("hp"),
d=this.Ym>0.2,e=d?0:16;if(!d&&this.Ym>=0){d=this.Ym/0.2;d=Math.floor(d*24+(1-d)*16)}else d=d?24:16;var h=(24-d)/2,k=Math.ceil((d-2)*Math.min(this.qe,this.Jb)/c)+1,c=Math.ceil((d-2)*Math.max(this.qe,this.Jb)/c)+1;a.ia(this.r,h,0,216,0+e+(this.target.target?4:0),k,4);c!=k&&a.ia(this.r,k,0,216+k,12,c-k,4);a.ia(this.r,h+c,0,240-d+c,8+e,d-c,4)},remove:function(){sc.K.lc(this.target.ba,this);this.j("HIDDEN",w,j)},Yaa:function(){sc.K.lc(this.target.ba,this);this.j("HIDDEN",j,j)}})});ig.G=j;
ig.I("game.feature.combat.gui.status-bar").J("impact.feature.gui.gui").H(function(){var a=Vec2.create();sc.NAa={BREAK:{qa:0,f:s,l0:40},BURN:{qa:2,f:s,l0:44},CHILL:{qa:3,f:s,l0:48},WEAK:{qa:4,f:s,l0:52},BRITTLE:{qa:5,f:s,l0:56}};var b={};ig.Ji.StatusBar=ig.X.extend({N:{DEFAULT:{state:{},time:0.25,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:1,Ma:0,oc:Math.PI*0.1},time:0.25,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/status-gui.png"),Y5a:new ig.tg("media/gui/status-gui.png",8,8,240,0,2),target:s,Jb:0,
qe:0,n:0,Ym:0,iB:s,FRa:0,fR:{},MD:[],f:function(a){this.parent();this.v(24,4);this.rb(12,2);this.a.Vc=0.7;this.a.zIndex=-50;this.a.TC=j;this.j("HIDDEN",j);this.target=a;a.ba&&this.cca()},njb:function(){var a=sc.options.get("hp-bars");return this.target.Xv?a==sc.J7.$Wa:this.target.Ca==sc.Qd.PLAYER?a<=sc.J7.KH:!this.iB},cca:function(){if(this.target.ba){this.Jb=this.qe=this.target.ba.Jb;sc.K.Na(this.target.ba,this);sc.K.Na(sc.Dg,this);this.OSa();this.Mbb();this.target.dx!=sc.Ow.PEACEFUL&&this.j("DEFAULT")}},
OSa:function(){var a=s;this.target.Ca==sc.Qd.ENEMY&&sc.Dg.QJ(this.target)?a="PVP":this.target.$bb&&this.target.bc.hma&&(a="BOSS");if(this.FRa!=a){if(this.iB){this.iB.remove();this.iB=s}if(this.FRa=a){this.iB=new sc.nja[a](this.target);ig.T.Mc(this.iB);this.iB.cca()}}},lb:function(a,b){a==sc.Dg?this.OSa():b==sc.oi.eM&&this.K5(this.target.ba.Jb)},Mbb:function(){for(var a in sc.NAa)this.fR[a]={value:0,n:0}},nQa:function(a,b){var e=this.MD.indexOf(a);if(!this.MD.length||e!=this.MD.length-1){this.MD.splice(e,
1);this.MD.push(a)}e=this.fR[a];e.value=b;e.n=Math.max(e.n,2)},ilb:function(a,b){this.fR[a].value=b},Pib:function(a,b){var e=this.fR[a];if(e.hR=b)e.value=2},XFa:function(a){a=this.fR[a];a.n=Math.min(a.n,0.1)},K5:function(a){this.n=0.5;this.Ym=2;if((this.qe-this.Jb)*(a-this.qe)<0)this.Jb=this.qe;this.qe=a;if(this.qe<0)this.qe=0},update:function(){if(this.target.ba){var b=this.a;this.target instanceof ig.ya.Combatant&&(this.target.Yg()&&!sc.Dg.QJ(this.target))&&this.remove();for(var d=this.MD.length;d--;)this.Z4a(this.MD[d])&&
this.MD.splice(d,1);b.Vc=this.Ym>0.2?1:0.9;if(this.Ym>0)this.Ym=this.Ym-ig.g.Da;if(this.n>0)this.n=this.n-ig.g.Da;else if(this.qe!=this.Jb){d=ig.g.Da*this.target.ba.le("hp")/2;if(this.Jb>this.qe)this.Jb=Math.max(this.qe,this.Jb-d);else if(this.Jb<this.qe)this.Jb=Math.min(this.qe,this.Jb+d);if(this.Ym<0.2)this.Ym=0.2;if(this.Jb==this.qe)this.n=0.2}d=this.target.kb();ig.g.Kv(a,Math.round(d.x),Math.round(d.y-this.target.b.i.z+this.target.b.size.y/2));this.a.i.x=a.x-b.size.x/2;this.a.i.y=a.y-b.size.y/
2;if(!b.qj){d=this.target.dx==sc.Ow.PEACEFUL;this.target.Ca==sc.Qd.PLAYER&&sc.q.Qe()&&(d=j);d||this.a.i.x+b.size.x<0||this.a.i.x>ig.g.width||this.a.i.y+b.size.y<0||this.a.i.y>ig.g.height?this.j("HIDDEN"):this.j("DEFAULT")}}},Z4a:function(a){a=this.fR[a];if(!a.hR||a.n<=0.1)a.n=a.n-ig.g.Da;if(a.n<=0)a.hR=w;return a.n<=0},va:function(a){if(this.target.ba){this.njb()&&this.W2a(a);for(var b=this.MD.length,e=0,h=-5;b--;){this.c8a(a,e,h,this.MD[b]);h=h-5;e=e+3}}},W2a:function(a){var b=this.target.ba.le("hp"),
e=this.Ym>=0.2,h=e?0:20;if(!e&&this.Ym>=0){e=this.Ym/0.2;e=Math.floor(e*24+(1-e)*16)}else e=e?24:16;var k=(24-e)/2,l=Math.ceil((e-2)*Math.min(this.qe,this.Jb)/b)+1,b=Math.ceil((e-2)*Math.max(this.qe,this.Jb)/b)+1,m=0;this.target.Ca==sc.Qd.PLAYER?m=8:this.target.target&&(m=4);a.ia(this.r,k,0,216,0+h+m,l,4);b!=l&&a.ia(this.r,l,0,216+l,16,b-l,4);a.ia(this.r,k+b,0,240-e+b,12+h,e-b,4)},c8a:function(a,d,e,h){var k=this.fR[h],h=sc.NAa[h],l=1;k.n<0.1&&(l=k.n/0.1);l!=1&&a.ho().rb(d,e+2).tw(1,l);var m=this.Y5a.Lv(b,
h.qa);if(k.hR)a.ia(this.r,d-6,e-2,m.x,m.y,8,8);else{k.n>1.7&&(d=d+Math.sin(Math.PI*8*(2-k.n)/0.3));var k=1+Math.floor(k.value*22),n=23-k;a.ia(this.r,d,e,216,h.l0,k,4);n&&a.ia(this.r,d+k,e,216+k,12,n,4);a.ia(this.r,d+23,e-2,m.x+1,m.y,7,8)}l!=1&&a.Po()},remove:function(){this.target.ba&&sc.K.lc(this.target.ba,this);sc.K.lc(sc.Dg,this);this.j("HIDDEN",w,j);this.iB&&this.iB.remove()},Yaa:function(){this.target.ba&&sc.K.lc(this.target.ba,this);sc.K.lc(sc.Dg,this);this.j("HIDDEN",j,j);this.iB&&this.iB.Yaa()}})});
ig.G=j;
ig.I("game.feature.combat.gui.pvp-gui").J("impact.feature.gui.gui","impact.feature.gui.base.box").H(function(){sc.yZa=ig.X.extend({N:{DEFAULT:{state:{},time:0.25,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:3,Ma:0},time:0.25,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/pvp.png"),n:0,f:function(a,b){this.parent();this.v(64,64);this.rb(32,32);this.F(ig.k.za,ig.k.gb);this.l(0,-80);var c=new sc.ea("Round",{});c.F(ig.k.za,ig.k.gb);c.l(0,-5);this.m(c);c=new sc.Ib(9,{size:sc.uf.hh});c.sa(a);c.F(ig.k.za,ig.k.gb);
c.l(0,9);this.m(c);this.j("HIDDEN",j);this.j("DEFAULT");if(b)this.n=1},update:function(){if(this.n){this.n=this.n-ig.g.Da;if(this.n<=0){sc.Dg.GHa();this.remove()}}},va:function(a){a.ia(this.r,0,0,0,0,64,64)},remove:function(){this.n=0;this.j("HIDDEN",w,j)}});sc.wZa=ig.X.extend({N:{START:{state:{Ia:3,Ma:3},time:0.25,p:KEY_SPLINES.EASE_IN},DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:3,Ma:0},time:0.2,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/pvp.png"),n:0,f:function(){this.parent();
this.v(64,64);this.rb(32,32);this.F(ig.k.za,ig.k.gb);this.l(0,0);this.j("START",j);this.j("DEFAULT");this.n=1},update:function(){if(this.n){this.n=this.n-ig.g.Da;this.n<=0&&this.remove()}},remove:function(){this.n=0;this.j("HIDDEN",w,j)},va:function(a){a.ia(this.r,0,0,64,0,64,64).dh("lighter");a.ia(this.r,0,0,128,0,64,64)}})});ig.G=j;
ig.I("game.feature.combat.model.combat-status").J("game.feature.combat.model.combat-params","impact.feature.effect.effect-sheet").H(function(){sc.u7=ig.ra.extend({id:0,QG:s,Z3:s,c1:s,O:new ig.ae("combatant"),duration:5,td:0,Ga:w,kHa:0,cg:s,f:F(),Cbb:function(a,b,c){if(!this.Ga){var d=Math.max(0,1-b.Rl(this.c1)),e=b.$c;this.td=this.td+a*d/6;this.td>=1&&this.vf(e,b,c);this.QG&&e.wl.nQa(this.QG,this.td)}},vf:function(a,b,c){this.td=1;this.Ga=j;this.kHa=b.le("statusEffect")[this.id]+c.yz.Rl(this.Z3);
a.wl&&a.wl.Pib(this.QG,j);this.cg=this.O.Ya(this.label,a,{duration:-1});sc.pb.BQa(a,this.z$a());this.jD&&this.jD(a)},clear:function(a){this.td=0;this.Ga=w;this.cg&&this.cg.stop();if(a){this.XMa&&this.XMa(a);a.wl&&a.wl.XFa(this.QG)}},update:function(a,b){if(this.Ga){this.td=this.td-ig.g.tp/this.duration;this.td<=0?this.clear(a):this.Vk&&this.Vk(a,b)}else{this.td=this.td-ig.g.tp/100;a.wl&&a.wl.ilb(this.QG,this.td)}},z$a:function(){return ig.lang.get("sc.gui.combat."+this.label)},jD:s,Vk:s,XMa:s});sc.GY=
[];sc.Rlb=sc.GY[0]=sc.u7.extend({id:0,label:"burn",QG:"BURN",Z3:"COND_EFFECT_HEAT",c1:"COND_GUARD_HEAT",duration:10,j$:0,Vk:function(a,b){this.j$=this.j$+ig.g.tp;if(this.j$>0.5){var c=Math.floor(b.le("hp")*0.015*this.kHa);a.tKa(c,0.5);this.O.Ya("burnDamage",a);this.j$=0}}});sc.$lb=sc.GY[1]=sc.u7.extend({id:1,label:"chill",QG:"CHILL",Z3:"COND_EFFECT_COLD",c1:"COND_GUARD_COLD",duration:20});sc.nnb=sc.GY[2]=sc.u7.extend({id:2,label:"weak",QG:"WEAK",Z3:"COND_EFFECT_SHOCK",c1:"COND_GUARD_SHOCK",duration:20});
sc.Qlb=sc.GY[3]=sc.u7.extend({id:3,label:"brittle",QG:"BRITTLE",Z3:"COND_EFFECT_WAVE",c1:"COND_GUARD_WAVE",duration:20})});ig.G=j;
ig.I("game.feature.combat.model.enemy-reaction").J("impact.base.loader","game.feature.combat.model.combat-params","game.feature.combat.model.combat-condition","impact.base.animation","game.feature.combat.entities.combatant").H(function(){var a=ig.ra.extend({name:"",type:0,action:s,ry:s,VO:w,Xta:w,f:function(a,b){this.name=a;this.type=b.type;this.action=b.action||s;this.ry=b.postSwitchState||s;this.Xta=b.restartPrevAction||w},jD:F(),ata:F(),apply:function(a,b){if(this.Xta)a.he.m5=a.od;this.action&&
a.If(b[this.action]);a.xA=this.ry},Cb:s});sc.fE={};sc.fE.HIT_REACTION=a.extend({kea:s,Hh:s,gma:w,Xj:g,bC:0,Jx:s,Boa:w,xg:s,lU:s,eN:w,s:new ig.u({attributes:{kea:{c:"EnemyActionRef",d:"An Action that is very quickly executed before enemy is damaged. Any step that is not executed immediately will CANCEL this action",U:j},Hh:{c:"EnemyStateRef",d:"State to switch to before reaction starts",U:j},ry:{c:"EnemyStateRef",d:"State to switch to after reaction ended",U:j},action:{c:"EnemyActionRef",d:"Action to perform on reaction",
U:j},gma:{c:"Boolean",d:"If true - increase hitStable to withstand all following hits"},Xj:{c:"Number",d:"Damange factor applied on this attack",U:j,ub:1},bC:{c:"String",d:"If defined: change attackType of hit",Oi:j,Y:sc.hc},Jx:{c:"String",d:"If defined: change flyLevel of hit",Oi:j,Y:sc.kha},Boa:{c:"Boolean",d:"If true: make sure that entity remains stable after hit "},eN:{c:"Boolean",d:"If true, then entity should watch towards hit direction"},lU:{c:"String",d:"Dramatik effect of Reaction",Oi:j,
Y:sc.dE},xg:{c:"CombatConditions",d:"Additional conditions for hit condition"},Oc:{c:"String",d:"Override walk animation prior to damage",U:j}}}),f:function(a,b){this.parent(a,b);this.kea=b.preAction||s;this.Hh=b.preSwitchState||s;this.gma=b.blockFurtherHits||w;this.Xj=b.damageFactor;this.bC=sc.hc[b.attackType]||0;this.Jx=b.flyLevel||s;this.Boa=b.forceStable||w;this.eN=b.alignFace||w;this.lU=sc.dE[b.dramaticEffect]||s;this.Oc=b.walkAnims||s;var e=b.conditions;if(e)this.xg=new sc.IY(e)},jD:function(a){this.xg&&
this.xg.hG(a)},sbb:function(a,b,e,h){this.xg&&this.xg.fw(a);if(this.gma)a.Qs=sc.hc.MASSIVE;if(this.kea){a.Kva(j);a.If(h[this.kea]);a.i9a();a.Yta(j)}if(this.Xj!=g)e.Xj=this.Xj;if(this.bC)e.bC=this.bC;if(this.Jx)e.Jx=this.Jx;this.Hh&&a.bc.Ew(a,this.Hh);if(this.Boa)e.Qs=sc.hc.MASSIVE;else{e.Qs=sc.hc.NONE;a.xk()}if(this.eN)e.eN=j;this.Oc&&a.EG(this.Oc);this.lU&&sc.pb.WN(b.Bi(),a,this.lU)},D6a:function(a,b,e){return!this.xg?j:this.xg.Cb(a,b,e)}});var b=Vec2.create();sc.fE.TARGET_DISTANCE=a.extend({bda:s,
hy:s,s:new ig.u({attributes:{bda:{c:"Number",d:"Minimum Distance to target to trigger"},hy:{c:"Number",d:"Maximum Distance to target to trigger"},Hh:{c:"EnemyStateRef",d:"State to switch to before reaction starts",U:j},ry:{c:"EnemyStateRef",d:"State to switch to after reaction ended",U:j},Zva:{c:"Number",d:"If defined, only activate if target is looking at entity with given range. 0.5 = maximum 45 degree away",U:j},action:{c:"EnemyActionRef",d:"Action to perform on reaction",U:j}}}),f:function(a,
b){this.parent(a,b);this.bda=b.minDistance||s;this.hy=b.maxDistance||s;this.Hh=b.preSwitchState||s;this.Zva=b.targetFace||0;this.VO=j},ata:function(a){this.Hh&&a.bc.Ew(a,this.Hh)},Cb:function(a){if(!a.target||a.Zg)return w;if(this.yEa(a,ig.t.wb))return j;for(var b=sc.Ca.Xe.length;b--;)if(this.yEa(a,sc.Ca.EO(b)))return j;return w},yEa:function(a,d){if(!d||d.Yg()||d.Ne)return w;var e=ig.Xf.Lr(d.b,a.b,b),h=Vec2.length(e);if((h=(!this.bda||h>=this.bda)&&(!this.hy||h<=this.hy))&&this.Zva){if(d!=a.target)return w;
Vec2.oc(e,a.target.face)>Math.PI*this.Zva&&(h=w)}h&&a.jn(d);return h}});sc.fE.MOVEMENT_BLOCK=a.extend({Hh:s,oc:s,s:new ig.u({attributes:{Hh:{c:"EnemyStateRef",d:"State to switch to before reaction starts",U:j},ry:{c:"EnemyStateRef",d:"State to switch to after reaction ended",U:j},action:{c:"EnemyActionRef",d:"Action to perform on reaction",U:j},oc:{c:"Number",d:"The minimum angle to the wall for block to be accepted",ub:0.125}}}),f:function(a,b){this.parent(a,b);this.Hh=b.preSwitchState||s;this.oc=
b.angle||0.125},ata:function(a){this.Hh&&a.bc.Ew(a,this.Hh)},Cb:function(a){return ig.Xf.Jpa(a.b,this.oc)}});sc.fE.COLLAB=a.extend({GT:s,xg:s,s:new ig.u({attributes:{GT:{c:"String",d:"Collaboration Key to react to",U:j},Hh:{c:"EnemyStateRef",d:"State to switch to before reaction starts",U:j},ry:{c:"EnemyStateRef",d:"State to switch to after reaction ended",U:j},action:{c:"EnemyActionRef",d:"Action to perform on reaction",U:j},xg:{c:"CombatConditions",d:"Additional conditions for hit condition"}}}),
f:function(a,b){this.parent(a,b);this.GT=b.collabKey||s;this.Hh=b.preSwitchState||s;this.VO=j;this.xg=new sc.IY(b.conditions)},cLa:function(a,b){var e=Math.random();return this.GT==b&&this.xg.Cb(a,e)},apply:function(a,b){this.Hh&&a.bc.Ew(a,this.Hh);this.action&&a.Uea(a.Jk);this.parent(a,b)}});sc.fE.GUARD_COUNTER=a.extend({s:new ig.u({attributes:{Hh:{c:"EnemyStateRef",d:"State to switch to before reaction starts",U:j},ry:{c:"EnemyStateRef",d:"State to switch to after reaction ended",U:j},action:{c:"EnemyActionRef",
d:"Action to perform on reaction",U:j}}}),Ab:new ig.da("media/sound/battle/hit-counter-echo.ogg",1),f:function(a,b){this.parent(a,b);this.Hh=b.preSwitchState||s;this.VO=j},qeb:function(a,b){this.Hh&&a.bc.Ew(a,this.Hh);this.Ab.play();sc.pb.WN(b,a,sc.dE.GUARD_COUNTER)}});sc.fE.STORE_RELEASE=a.extend({s:new ig.u({attributes:{Hh:{c:"EnemyStateRef",d:"State to switch to before reaction starts",U:j},ry:{c:"EnemyStateRef",d:"State to switch to after reaction ended",U:j},action:{c:"EnemyActionRef",d:"Action to perform on reaction",
U:j}}}),f:function(a,b){this.parent(a,b);this.Hh=b.preSwitchState||s},Bsa:function(a){this.Hh&&a.bc.Ew(a,this.Hh)}});sc.fE.DODGE=a.extend({s:new ig.u({attributes:{Hh:{c:"EnemyStateRef",d:"State to switch to before reaction starts",U:j},ry:{c:"EnemyStateRef",d:"State to switch to after reaction ended",U:j},action:{c:"EnemyActionRef",d:"Action to perform on reaction",U:j},XSa:{c:"Number",d:"View angle from which incoming attacks are seen. 1= full circle. 0.5= half circle",ub:0.5},Xta:{c:"Boolean",d:"If true, restart previous action after reaction."},
lOa:{c:"Number",d:"Probability for dodge to work. 1=always",ub:3},count:{c:"Integer",d:"Maximum number of consecutive dodges allowed. 0 = infinity"},wFa:{c:"Number",d:"Time for dodge to block or counter reset",ub:1},xg:{c:"CombatConditions",d:"Additional conditions for dodge"}}}),f:function(a,b){this.parent(a,b);this.Hh=b.preSwitchState||s;this.XSa=b.viewAngle;this.lOa=b.probability;this.count=b.count;this.wFa=b.blockTime;var e=b.conditions;if(e)this.xg=new sc.IY(e)},Cb:function(a){if(!this.xg.Cb(a)||
a.Cq.wk)return w;var b=sc.pb.UIa(a,32,this.XSa);if(b){a.Cq.n=this.wFa;if(Math.random()>this.lOa){a.Cq.wk=j;return w}a.Cq.count++;if(this.count&&a.Cq.count>=this.count)a.Cq.wk=j;a.ega=b;return j}return w}});sc.fE.FALL=a.extend({s:new ig.u({attributes:{Hh:{c:"EnemyStateRef",d:"State to switch to before reaction starts",U:j},ry:{c:"EnemyStateRef",d:"State to switch to after reaction ended",U:j},action:{c:"EnemyActionRef",d:"Action to perform on reaction",U:j},mc:{c:"String",d:"If defined: only react when falling into specified terrain",
U:j,Y:ig.Gd}}}),f:function(a,b){this.parent(a,b);this.Hh=b.preSwitchState||s;this.VO=j;this.mc=ig.Gd[b.terrain]||s},Jda:function(a){this.Hh&&a.bc.Ew(a,this.Hh)},A6a:function(a){return!this.mc||this.mc==a}})});ig.G=j;
ig.I("game.feature.combat.model.enemy-collab").H(function(){sc.z7={ALL:1,INITIATOR:2,ANY:3};var a=Vec3.create();sc.$Ua=ig.ra.extend({S2:s,Zl:[],pa:{},ix:0,IRa:j,j0:[],f:function(a,c){this.S2=a;this.VEa(a,s,c.initiatorLabel);this.ix=sc.z7[c.breakType]||sc.z7.INITIATOR;for(var d=c.participants,e=d.length;e--;){var h=d[e];if(!sc.pb.r9a(this,h.collabKey,h.label,h.min,h.max,h.acceptStunned)){this.IRa=w;this.S2=s;for(d=this.Zl.length;d--;)this.Zl[d].An=s;this.Zl.length=0;break}}},Aab:function(a){return this.pa[a]||
0},Yib:function(a,c){this.pa[a]=c},On:function(a,c){return c[2]=="var"?ig.pa.Wta(this.pa,c,3):c[2]=="count"?this.Zl.length:s},i5a:function(a){this.j0.push(a)},Hgb:function(a){a=this.j0.indexOf(a);if(a!=-1){this.j0.splice(a,1);return j}return w},Aib:function(a,c){for(var d=this.Zl.length;d--;){var e=this.Zl[d];if(!c||c.indexOf(e.An.label)!=-1)e.An.P=a}},Esb:function(a,c){for(var d=this.Zl.length;d--;){var e=this.Zl[d];if(!c||c.indexOf(e.An.label)!=-1)e.An.$sa=a}},NIa:function(a){for(var c=this.Zl.length;c--;){var d=
this.Zl[c];if(d.An.label==a)return d}},start:function(){for(var a=this.Zl.length;a--;){var c=this.Zl[a];c.Jk=this;c==this.S2?c.fp(this):c.VGa(c.An.GT)}},Hob:function(a,c){for(var d=this.Zl.length;d--;){var e=this.Zl[d];(!c||c.indexOf(e.An.label)!=-1)&&e.VGa(a)}},D9a:function(b,c){var d=this.Zl,e=d.length;for(Vec3.Sa(b,0,0,0);e--;)Vec3.add(b,d[e].je(c,a));Vec3.ck(b,1/d.length);return b},VEa:function(a,c,d){if(this.Zl.indexOf(a)!=-1)return w;this.Zl.push(a);a.An={label:d,GT:c,$sa:s,P:s};return j},Sgb:function(a){var c=
this.Zl.indexOf(a);c==-1&&f(Error("Removed Participant that is not part of collab - this should never happen"));a.SK(this);a.Jk=s;a.An=s;this.Zl.splice(c,1);this.ix==sc.z7.ANY?this.cancel():a==this.S2&&this.ix==sc.z7.INITIATOR?this.cancel():this.Zl.length==0&&this.cancel()},Zr:function(a){this.Sgb(a)},cancel:function(){for(var a=this.j0.length;a--;)this.j0[a].Ydb(this);for(a=this.Zl.length;a--;){var c=this.Zl[a];c.SK(this);c.Jk=s;c.An=s;c.xk()}this.Zl.length=0;this.S2=s}})});ig.G=j;
ig.I("game.feature.combat.model.enemy-tracker").H(function(){sc.Eha=ig.ra.extend({update:s,n4:s,hG:s,Fda:R(w),fw:F(),reset:F()});sc.PY={};sc.PY.TIME=sc.Eha.extend({target:0,Ea:0,iqa:0,Tta:0,Kra:w,Pba:s,s:new ig.u({attributes:{target:{c:"Number",d:"Target time in seconds"},iqa:{c:"Number",d:"How much variance should be used when initializing the timer. 0 = noRandom, 1 = full range random"},Tta:{c:"Number",d:"How much variance should be used when resetting the timer. 0 = noRandom, 1 = full range random"},
Kra:{c:"Boolean",d:"If true, do not initialize when state is reset"},Pba:{c:"NumberArray",d:"A factor for each hp break level multiplied with target time",U:j}}}),f:function(a,b){this.target=b.target;this.iqa=b.initRandom;this.Tta=b.resetRandom;this.Kra=b.noStateReset;this.Pba=b.hpBreakFactor;this.I3a(a)},update:function(){this.Ea=this.Ea+ig.g.ga},n4:function(a){this.Kra||this.reset(a)},Fda:function(a){return this.Ea>=this.JS(a)},fw:function(a,b){b||this.reset(a)},I3a:function(a){this.Ea=this.JS(a)*
Math.random()*this.iqa},reset:function(a,b){var c=b!==g?b:Math.random()*this.Tta;this.Ea=this.JS(a)*c},JS:function(a){var b=this.target;this.Pba&&(b=b*(this.Pba[a.nA]||1));return b}});sc.PY.HIT=sc.Eha.extend({target:0,Ea:0,Gdb:w,Qba:s,s:new ig.u({attributes:{target:{c:"Number",d:"Target number of hits"},Qba:{c:"NumberArray",d:"A factor for each hp break level multiplied with target number",U:j}}}),f:function(a,b){this.target=b.target;this.Qba=b.hpBreakTargets;this.Ea=0},n4:F(),hG:function(a){this.reset(a)},
Fda:function(a,b,c){a=this.JS(a);if(c){this.Ea++;c.Wu=this.Ea/a}return this.Ea>=a},fw:function(a){this.reset(a)},reset:function(a,b){this.Ea=Math.floor((b!==g?b:0)*this.JS(a))},JS:function(a){var b=this.target;this.Qba&&(b=this.Qba[a.nA]||this.target);return b}});sc.PY.HP=sc.Eha.extend({target:0,gV:0,Gdb:w,s:new ig.u({attributes:{target:{c:"Number",d:"The target anount of HP relative to HP. 0.1 = 10% of HP reduced"}}}),f:function(a,b){this.target=b.target;this.gV=0},n4:F(),hG:function(a){this.reset(a)},
Fda:function(a,b,c){if(c&&c.jna){this.gV=this.gV+c.jna.Ge;c.Wu=this.gV/a.ba.le("hp")/this.target}return this.gV/a.ba.le("hp")>=this.target},fw:function(a){this.reset(a)},reset:function(a,b){this.gV=Math.floor((b!==g?b:0)*this.target*a.ba.le("hp"))}})});ig.G=j;
ig.I("game.feature.combat.entities.combat-proxy").J("game.feature.npc.entities.sc-actor","game.feature.combat.model.proxy","game.feature.combat.entities.combatant").H(function(){sc.NH={NEVER:1,ACTION:2,COMBATANT:3,COLLABORATION:4};sc.rS.GENERIC=sc.Dia.extend({data:s,s:new ig.u({attributes:{gFa:{c:"AnimSheet",d:"Animation sheet of proxy. Needs one entry with name 'default'",sd:j,U:j},Wob:{c:"AnimSheet",d:"Animation sheet of proxy. Needs one entry with name 'default'",Dnb:j,sd:j,U:j},size:{c:"Offset",
d:"Size of proxy"},ix:{c:"String",d:"How proxy is broken",Y:sc.NH},ad:{c:"ProxyConfig",d:"Configuration of proxy"},action:{c:"Action",d:"Action performed with proxy",sd:j},Bqb:{c:"Boolean",d:"If true, set initial alpha to 0"},Fh:{c:"Number",d:"If 0: proxy will ignore attack. -1: will take hits but is never destroyed (stops balls) >0: takes hits and can be destroyed"},crb:{c:"Effect",d:"Effect shown when proxy is killed",U:j},o6:{c:"Boolean",d:"If true, move proxy with source"},group:{c:"String",d:"Group identifier used to clear proxies"}}}),
f:function(a){this.data=ig.copy(a);this.data.animation&&(this.data.animation=new ig.wj(a.animation));if(this.data.faceAnims){this.data.faceAnims.DOCTYPE||(this.data.faceAnims.DOCTYPE="MULTI_DIR_ANIMATION");this.data.faceAnims=new ig.wj(this.data.faceAnims)}this.data.config=sc.WR.h7a(a.config);this.data.action=new ig.rf("[PROXY]",a.action,w,w);this.data.breakType=sc.NH[a.breakType];this.data.killEffect&&(this.data.killEffect=new ig.al(a.killEffect))},Qa:function(){this.data.action.Qa();this.data.animation&&
this.data.animation.Qa();this.data.faceAnims&&this.data.faceAnims.Qa();this.data.killEffect&&this.data.killEffect.Qa()},Hu:function(a,b,e,h,k){var l=this.data.size;return ig.t.af(sc.WR,a-l.x/2,b-l.y/2,e,{data:this.data,combatant:h,dir:k})}});var a=Vec3.create();sc.WR=sc.xxa.extend({Fh:0,ix:s,$c:s,Ca:0,Jk:s,target:s,ba:s,group:s,Mu:{ic:s,wk:[],Ie:0},O:{oW:s,handle:s},o6:w,f:function(a,b,e,h){this.parent(a,b,e,h);a=h.data;a.size&&this.b.v(a.size.x,a.size.y,a.size.z);this.Ei(a.config);this.Ca=(this.$c=
h.combatant||s)&&this.$c.Ca;this.Jk=this.$c.Jk;this.target=this.$c.target;this.ba=this.$c.ba;Vec2.assign(this.face,h.dir);this.o6=a.stickToSource||w;this.group=a.group;this.ix=a.breakType;this.ix==sc.NH.ACTION?this.$c.fp(this):this.ix==sc.NH.COMBATANT?this.$c.yI(this):this.ix==sc.NH.COLLABORATION&&this.$c.Jk.i5a(this);if(a.faceAnims||a.animation){this.nb=a.faceAnims||a.animation;this.ld()}this.iR("default",{idle:"default"});this.EG("default");this.If(a.action);if(a.invisible)this.Za.alpha=0;this.Fh=
a.hp;this.O.oW=a.killEffect},Bi:M("$c"),update:function(){if(this.o6){var b=ig.Xf.Moa(a,this.b,this.$c.b);this.l(b.x,b.y,this.$c.b.i.z)}this.parent()},Zr:function(){this.Hn()},eG:function(){this.Hn()},Ydb:function(){this.Hn()},IK:function(){this.od||this.Hn()},detach:function(){this.ix==sc.NH.ACTION?this.$c.SK(this):this.ix==sc.NH.COMBATANT?this.$c.Uea(this):this.ix==sc.NH.COLLABORATION&&this.$c.Jk&&this.$c.Jk.Hgb(this)},$r:function(a){a.vp()&&this.Tb()},Hn:function(){this.detach();if(this.O.oW){if(!this.O.handle){this.O.handle=
this.O.oW.Ya(this,{align:"CENTER",callback:this});this.b.Mp(ig.la.NONE)}}else this.Tb()},Om:function(a){if(this.Fh){if(a.Ca==this.$c.Ca)return w;var b=a.ij(this);if(this.Fh<0){sc.pb.sj(this,b,sc.hc.NONE,a.nh(),w,w);return j}var e=a.ic.Xj;sc.pb.sj(this,b,a.ic.type,a.nh(),w,w);this.Fh=this.Fh-e;this.Fh<=0&&this.Hn();return j}return w}});var b=new ig.lr({walkAnims:"default",collType:"IGNORE",maxVel:200,weight:-1,flyHeight:0,soundType:"none",friction:1,accelSpeed:1,bounciness:0});sc.WR.h7a=function(a){var d=
new ig.lr;d.aK(a,b);return d}});ig.G=j;
ig.I("game.feature.combat.combat-action-steps").J("impact.base.animation","impact.base.action","impact.base.entity","game.feature.combat.entities.drop","game.feature.combat.entities.combatant","game.feature.combat.entities.combat-proxy","impact.feature.effect.effect-steps").H(function(){var a=Vec3.create();ig.Ha.FACE_TO_TARGET=ig.Pa.extend({value:w,kV:w,s:new ig.u({attributes:{value:{c:"Boolean",d:"True if enemy should always look at the target."},kV:{c:"Boolean",d:"True if enemy should always look at the target IMMEDIATLY.",
U:j}}}),f:function(a){this.value=a.value;this.kV=a.immediately||w},xa:function(a){a.Ol.Ga=this.value;var b=a.Yp||a.target;if(this.kV&&b){b=Vec2.sub(b.kb(),a.kb());a.Ol.offset&&Vec2.rotate(b,a.Ol.offset*2*Math.PI);Vec2.assign(a.face,b)}return j}});ig.Ha.FACE_TO_TARGET_OFFSET=ig.Pa.extend({value:w,s:new ig.u({attributes:{value:{c:"Number",d:"Offset to target direction to look into"}}}),f:function(a){this.value=a.value},xa:function(a){a.Ol.offset=this.value;return j}});ig.Ha.FACE_TO_TARGET_SPEED=ig.Pa.extend({value:w,
s:new ig.u({attributes:{value:{c:"Number",d:"Speed in which entity will rotate to target. In rotations per seconds.",ub:2}}}),f:function(a){this.value=a.value},xa:function(a){a.Ol.speed=this.value;return j}});ig.Ha.DO_ENEMY_ACTION=ig.na.extend({xI:s,s:new ig.u({attributes:{xI:{c:"EnemyActionRef",d:"Name of action to perform"}}}),f:function(a){this.xI=a.actionName},start:function(a){a.Cna(this.xI)}});ig.Ha.MOVE_TO_DISTANCE=ig.Pa.extend({min:0,max:0,Fa:0,offset:s,FC:w,s:new ig.u({attributes:{min:{c:"Number",
d:"Minimum distance to move to"},max:{c:"Number",d:"Maximum distance to move to"},Fa:{c:"Number",d:"Maximum time to move"},offset:{c:"Vec2",d:"Offset to target.",U:j},FC:{c:"Boolean",d:"Keep moving, never stop until maxTime has been reached"},Xq:{c:"Number",d:"Speed in which entity will rotate to target. In rotations per seconds.",ub:2,U:j},jy:{c:"Number",d:"Reaction time to stop tackle after target has been clearly missed",U:j}}}),f:function(a){this.min=a.min;this.max=a.max;this.Fa=a.maxTime;this.offset=
a.offset||s;this.FC=a.forceTime||w;this.Xq=a.rotateSpeed||0;this.jy=a.missReactTime},start:function(a){a.Hb=a.Hb+this.Fa;this.Xq&&Vec2.assign(a.b.Eb,a.face)},xa:function(a){var b=a.Yp||a.target;if(!b)return j;var c=Vec2.sub(b.kb(),a.kb());this.offset&&Vec2.add(c,this.offset);var d=Vec2.length(c);d<this.min&&Vec2.aG(c,-1);if(this.Xq){Vec2.ZK(a.face,c,this.Xq*Math.PI*2*ig.g.ga);Vec2.assign(a.b.Eb,a.face)}else Vec2.assign(a.b.Eb,c);if(this.jy!=g&&this.jy!=s&&a.Hb>this.jy){ig.Xf.Lr(a.b,b.b,n);if(Vec2.oc(n,
a.face)>Math.PI/2)a.Hb=this.jy}if(this.min<=d&&d<=this.max){if(!this.FC)return j;Vec2.Sa(a.b.Eb,0,0)}return a.Hb<=0}});var b={TARGET_DISTANCE:1,SELF_DISTANCE:2},c={NORTH:{jh:{x:0,y:-1},lG:{x:1,y:0}},EAST:{jh:{x:1,y:0},lG:{x:0,y:1}},SOUTH:{jh:{x:0,y:1},lG:{x:1,y:0}},WEST:{jh:{x:-1,y:0},lG:{x:0,y:1}},HORIZONTAL_CLOSE:{jh:{x:1,y:0},lG:{x:0,y:1},close:j},HORIZONTAL_FAR:{jh:{x:1,y:0},lG:{x:0,y:1},rJ:j},VERTICAL_CLOSE:{jh:{x:0,y:1},lG:{x:1,y:0},close:j},VERTICAL_FAR:{jh:{x:0,y:1},lG:{x:1,y:0},rJ:j}};ig.Ha.SET_ATTRIB_CLOSEST_ENTITY=
ig.Pa.extend({s:new ig.u({attributes:{foa:{c:"String",d:"Name of attrib to store entity",U:j},gqa:{c:"String",d:"Name of attrib to store entity index",U:j},entities:{c:"Array",d:"List of entities. Will move to one of those",LE:{c:"Entity"}},oPa:{c:"String",d:"How entity is selected",Y:b}}}),f:function(a){this.foa=a.entityAttrib;this.gqa=a.indexAttrib;this.entities=a.entities;this.oPa=b[a.selectBy]},start:function(a){var c;c=this.entities;for(var d=-1,e=0,h=c.length,k=this.oPa==b.TARGET_DISTANCE?a.Yp||
a.target:a;h--;){var l=ig.Ra.pd(c[h]);if(l){l=ig.Xf.xO(k.b,l.b);if(d==-1||l<e){d=h;e=l}}}c=d;this.gqa&&a.setAttribute(this.gqa,c);this.foa&&a.setAttribute(this.foa,this.entities[c])}});ig.Ha.MOVE_TO_ATTRIB_ENTITY=ig.Pa.extend({s:new ig.u({attributes:{mFa:{c:"String",d:"Name of attribute that includes index of entity"},HK:{c:"String",d:"How to position entity",Y:c},ab:{c:"Number",d:"Distance to entity along position type"},ONa:{c:"Number",info:"Orthogonal distance (Sideways) - can also be negative for opposite direction."},
dFa:{c:"Boolean",d:"If true, adjust orthogonal distance to fit target"},Fa:{c:"Number",d:"Maximum time to move. If 0: Move until target is reached"},FC:{c:"Boolean",d:"Keep moving, never stop until maxTime has been reached"},ji:{c:"Boolean",d:"If true, move to point precisely"}}}),f:function(a){this.mFa=a.attrib;this.HK=c[a.positionType]||c.NORTH;this.ab=a.distance||0;this.ONa=a.orthogonalDist||0;this.dFa=a.adjustTarget||w;this.Fa=a.maxTime;this.FC=a.forceTime||w;this.ji=a.precise||w},start:function(a){delete a.tb.i;
var b=ig.Ra.pd(a.getAttribute(this.mFa));if(b){var c=b.kb(),d=Vec2.assign(l,this.HK.jh);if(this.HK.close||this.HK.rJ){b=ig.Xf.Lr(b.b,a.b,m);b=Vec2.hj(b,d);(this.HK.close&&b<0||this.HK.rJ&&b>0)&&Vec2.hd(d)}Vec2.length(d,this.ab);Vec2.bT(d,this.HK.lG,this.ONa);Vec2.add(c,d);a.tb.i=c;a.Hb=a.Hb+this.Fa}},xa:function(a){var b=a.tb.i;if(!b)return j;var c=a.Yp||a.target;if(this.dFa&&c){c=c.kb(l);this.HK.lG.x?b.x=c.x:b.y=c.y}b=Vec2.sub(b,a.kb(),e);c=Vec2.length(b);if(this.ji&&a.b.Ui*a.b.kg>c*10)a.b.kg=c/
a.b.Ui*10;Vec2.assign(a.b.Eb,b);if(c<=(this.ji?2:8)){if(!this.Fa||!this.FC)return j;Vec2.Sa(a.b.Eb,0,0)}return this.Fa&&a.Hb<=0}});ig.Ha.JUMP_TO_TARGET=ig.Pa.extend({BV:0,H9:0,offset:s,s:new ig.u({attributes:{BV:{c:"Number",d:"Jump Speed / Z Velocity"},H9:{c:"Number",d:"Until how high above player X/Z movement should be adjusted"},offset:{c:"Vec2",d:"Offset to target.",U:j}}}),f:function(a){this.BV=a.jumpSpeed;this.H9=a.adjustAbove||0;this.offset=a.offset||s},start:function(a){a.XN(this.BV)},xa:function(a){if(!a.target)return j;
var b=a.b.i.z-a.b.jc;if(a.b.Z.z<=0&&b<=this.H9){Vec2.Sa(a.b.Eb,0,0);if(b==0)return j}else{b=Vec2.sub(a.target.kb(),a.kb());this.offset&&Vec2.add(b,this.offset);Vec2.length(b)>8&&Vec2.assign(a.b.Eb,b)}return w}});var d={LANDED:{x2:function(a){var b=a.b.i.z-a.b.jc;return a.b.Z.z<=0&&b==0},duration:function(a){return ig.Xf.x$a(a.b,a.target.b.jc)}},Z_ZENITH:{x2:function(a){return a.b.Z.z<=0},duration:function(a){return ig.Xf.y$a(a.b)}}};ig.Ha.JUMP_TARGET_MOVEMENT=ig.Pa.extend({H9:0,offset:s,s:new ig.u({attributes:{Wfa:{c:"String",
d:"When to stop Jump Movement",Y:d},Pva:{c:"Number",d:"Number of seconds to stop before target point has been reached."},ab:{c:"Number",d:"Close in to target up to this distance"},offset:{c:"Vec2",d:"Offset to target.",U:j},Xq:{c:"Number",d:"Speed in which entity will rotate to target. In rotations per seconds.",ub:2,U:j},I9:{c:"Number",d:"If defined: optimized speed to hit target with up to this speed",U:j},dda:{c:"Number",d:"If set, move entity like missile flying right at entity with speed provided minimal zSpeed"}}}),
f:function(a){this.Wfa=d[a.stopType]||d.LANDED;this.Pva=a.stopBeforeTime||0;this.ab=a.distance||0;this.offset=a.offset||s;this.Xq=a.rotateSpeed||0;this.I9=a.adjustSpeedMax||0;this.dda=a.missileMode||0},start:function(a){if(this.Xq)a.tb.GLa=Vec2.create(a.face)},xa:function(b){if(b.target){var c=ig.Xf.yIa(b.b,b.target.b,a);this.offset&&Vec2.add(c,this.offset);var d=Vec2.length(c);if(d<=Math.max(this.ab,4))Vec2.Sa(b.b.Eb,0,0);else if(this.Xq){Vec2.assign(b.b.Eb,b.tb.GLa);Vec2.Tl(b.b.Eb)?Vec2.assign(b.b.Eb,
c):Vec2.ZK(b.b.Eb,c,this.Xq*Math.PI*2*ig.g.ga);Vec2.assign(b.tb.GLa,b.b.Eb)}else Vec2.assign(b.b.Eb,c);if(this.I9)if(this.dda){d=b.b;d.se=0;var e=Vec3.length(c),h=this.I9,k=h*Vec2.length(c)/e,c=h*c.z/e;d.kg=1;d.Ui=k;Vec2.length(d.Z,k);d.Z.z=c;if(d.Z.z>-this.dda)d.Z.z=-this.dda;d.uk=1}else{c=this.Wfa.duration(b)*0.75;h=(d-this.ab)/c;b.b.Ui=Math.min(h,this.I9)}if(this.Pva){c=this.Wfa.duration(b);if(c>0&&c<this.Pva)return j}}return this.Wfa.x2(b)}});ig.Ha.SET_MISSILE_SPEED=ig.Pa.extend({s:new ig.u({attributes:{speed:{c:"Number",
d:"Speed of Missile in pixel per seconds. Will be distributed to vel x/y/z to hit target on ground impact. Will always set gravityFactor to 0.",ub:400},Wl:{c:"Number",d:"Minimum amount of time for flight of missile",U:j}}}),f:function(a){this.speed=a.speed||400;this.Wl=a.minTime||0},start:function(b){if(b.target){var c=b.b;c.se=0;var b=ig.Xf.yIa(b.b,b.target.b,a),d=Vec3.length(b),e=this.speed,h=d/e;h<this.Wl&&(e=e*(h/this.Wl));h=e*Vec2.length(b)/d;b=e*b.z/d;c.kg=1;c.Ui=h;Vec2.length(c.Z,h);c.Z.z=
b;c.uk=1}}});ig.Ha.ESCAPE_FROM_TARGET=ig.Pa.extend({ab:0,Wl:0,Fa:0,s:new ig.u({attributes:{ab:{c:"Number",d:"Minimum distance to target"},Wl:{c:"Number",d:"Minimum amount of time to escape"},Fa:{c:"Number",d:"Maximum amount of time to escape"}}}),f:function(a){this.ab=a.distance;this.Wl=a.minTime;this.Fa=a.maxTime},start:function(a){a.tb.Fa=this.Wl+Math.random()*(this.Fa-this.Wl);a.Hb=a.Hb+a.tb.Fa;a.tb.Dna=j},xa:function(a){var b=a.Yp||a.target;if(!b)return j;b=Vec2.sub(a.kb(),b.kb());if(Vec2.length(b)>
this.ab)return j;Vec2.normalize(b);if(!a.tb.dir||a.b.vm>0.2){var c=a.b.vm=0;if(a.tb.Dna)c=b;else{do c=Vec2.normalize(Vec2.pc(Math.random()-0.5,Math.random()-0.5));while(a.tb.dir&&Vec2.hj(a.tb.dir,c)>0.8)}a.tb.dir=c;a.tb.Dna=!a.tb.Dna}Vec2.assign(a.b.Eb,a.tb.dir);return a.Hb<=0}});ig.Ha.CIRCLE_TARGET=ig.Pa.extend({Wl:0,Fa:0,s:new ig.u({attributes:{Wl:{c:"Number",d:"Minimum amount of time to circle target"},Fa:{c:"Number",d:"Maximum amount of time to circle target"}}}),f:function(a){this.Wl=a.minTime;
this.Fa=a.maxTime},start:function(a){a.Hb=this.Wl+Math.random()*(this.Fa-this.Wl);a.tb.m6a=Math.random()>0.5},xa:function(a){var b=a.Yp||a.target;if(!b)return j;b=Vec2.sub(a.kb(),b.kb());a.tb.m6a?Vec2.kX(b):Vec2.lX(b);Vec2.assign(a.b.Eb,b);return a.Hb<=0}});ig.Ha.TACKLE=ig.Pa.extend({time:0,jy:g,vk:s,vma:w,Pga:w,s:new ig.u({attributes:{vk:{c:"AttackInfo",d:"Attack Info of tackle"},time:{c:"Number",d:"Movement time to tackel target"},jy:{c:"Number",d:"Reaction time to stop tackle after target has been clearly missed",
U:j},vma:{c:"Boolean",d:"If true, cancel tackle once target is hit"},Pga:{c:"Boolean",d:"Show branches to handle hit and miss follow up",U:j},AN:{c:"Number",d:"If defined: if angle to collided wall is lower than this value, cancel step",U:j}},MI:function(a){switch(a){case "hit":return"ON TACKLE HIT";case "missed":return"ON TACKE MISS";case "_end":return"end tackle"}return"???"}}),f:function(a){this.time=a.time;this.vk=a.attack;this.jy=a.missReactTime;this.vma=a.cancelOnHit||w;this.Pga=a.withBranches||
w;this.AN=a.collideCancel||0},start:function(a){a.Hb=this.time;a.tb.dir=Vec2.create(a.face);a.tb.ni=a.b.ni;a.b.ni=-1;a.pQa(new sc.NL(a.ba,this.vk))},xa:function(a){Vec2.assign(a.b.Eb,a.tb.dir);var b=a.Yp||a.target;if(!a.Bi().Xv&&!a.target)a.Hb=0;if(b&&this.jy!=g&&this.jy!=s&&a.Hb>this.jy){ig.Xf.Lr(a.b,b.b,n);if(Vec2.oc(n,a.face)>Math.PI/2)a.Hb=this.jy}if(this.AN&&ig.Xf.Jpa(a.b,this.AN))a.Hb=0;if(this.vma&&a.Mu.Ie>0)a.Hb=0;return a.Hb<=0},IC:function(){return this.Pga?["hit","missed"]:s},Nx:function(a){var b=
a.Mu.Ie>0;a.pQa(s);a.b.ni=a.tb.ni;return this.Pga?b?this.Jg.hit||this.Ek:this.Jg.missed||this.Ek:this.Ek}});ig.Ha.CIRCLE_ATTACK=ig.Pa.extend({PFa:s,vk:s,s:new ig.u({attributes:{vk:{c:"AttackInfo",d:"Attack Info of circle attack"},align:{c:"String",d:"Alignment of force relative to entity",Y:ig.Rb},offset:{c:"Offset",d:"Offset to entity"},jg:{c:"Number",d:"Radius of circle attack"},Wy:{c:"Number",d:"Scale of y dimension relative to x. 1 = equally scaled. 0.5 = half y extend."},sg:{c:"Number",d:"Z Height of collision force."},
Tj:{c:"Number",d:"Central Angle of circle attack. 1 = one circle"},Nj:{c:"Number",d:"Start angle of circle attack relative to front. If not specified startes at - centralAngle / 2",U:j},duration:{c:"Number",d:"Duration of circle sweep"},qoa:{c:"Number",d:"How much the radius extends during the sweep"},g0:{c:"Boolean",d:"If true, circle is constantly closed."},Pt:{c:"Boolean",d:"If true, sweep clockwise. ccw otherwise."},Jr:{c:"Integer",d:"If true, flip circle orientation if left faced."},yta:{c:"Boolean",
d:"Collision area is actually not a circle, but a box."},repeat:{c:"Boolean",d:"If true, repeat proxy spawning until ended by force (action end or call STOP_REPEATING_FORCE)"}}}),f:L("PFa"),xa:function(a){var b=new sc.nH(a,this.PFa);sc.pb.WB(b);b.duration>0&&a.fp(b);return j}});ig.Ha.SET_INVINCIBLE=ig.Pa.extend({value:w,s:new ig.u({attributes:{value:{c:"Number",d:"The time the combatant will be invincible. -1 for constant invincibility. Set to 0 to reset."}}}),f:function(a){this.value=a.value},xa:function(a){a.Yx=
this.value;return j}});ig.Ha.DODGE_FREE_LINE=ig.Pa.extend({time:0,s:new ig.u({attributes:{time:{c:"Number",d:"How long to dodge the free line."}}}),f:function(a){this.time=a.time},start:function(a){a.Hb=this.time;a.tb.dir=sc.pb.CKa(a)},xa:function(a){if(!a.tb.dir)return j;Vec2.assign(a.b.Eb,a.tb.dir);return a.Hb<=0}});ig.Ha.ENABLE_REACTION=ig.Pa.extend({aQ:s,s:new ig.u({attributes:{aQ:{c:"Reaction",d:"Reaction to enable"}}}),f:function(a){this.aQ=a.reaction},xa:function(a){a.f8a(this.aQ);return j}});
ig.Ha.SET_SPIKE_DAMAGE=ig.Pa.extend({value:s,s:new ig.u({attributes:{value:{c:"Number",d:"Value for spike damage factor"}}}),f:function(a){this.value=a.value},xa:function(a){a.MG.oga=this.value;return j}});ig.Ha.DISABLE_REACTION=ig.Pa.extend({aQ:s,s:new ig.u({attributes:{aQ:{c:"Reaction",d:"Reaction to disable"}}}),f:function(a){this.aQ=a.reaction},xa:function(a){a.M7a(this.aQ);return j}});ig.Ha.SET_DAMAGE_FACTOR=ig.Pa.extend({value:s,s:new ig.u({attributes:{value:{c:"Number",d:"New damage factor"}}}),
f:function(a){this.value=a.value},xa:function(a){if(a.ba)a.ba.Xj=this.value;return j}});ig.Ha.SET_HIT_STABLE=ig.Pa.extend({value:s,s:new ig.u({attributes:{value:{c:"String",d:"New hit stable value.",Y:sc.hc}}}),f:function(a){this.value=sc.hc[a.value]},xa:function(a){a.Qs=this.value;return j}});ig.Ha.SET_MAX_DAMAGE_FACTOR=ig.Pa.extend({value:s,s:new ig.u({attributes:{value:{c:"Number",d:"The maximum sum of all damage factors of the attack. Damage factors will be scaled down when sum gets close to maximum"}}}),
f:function(a){this.value=a.value||0},xa:function(a){a=a.Bi();a.rC.G3=this.value;a.rC.W0=0;return j}});ig.Ha.SET_ENEMY_STATE=ig.Pa.extend({gO:0,s:new ig.u({attributes:{gO:{c:"EnemyState",d:"State of Enemy to switch to"}}}),f:function(a){this.gO=a.enemyState},xa:function(a){a.jx(this.gO);return j}});var e=Vec2.create(),h=Vec3.create(),k={SELF:function(a,b,c){return b.je(c,a)},TARGET:function(a,b,c){return(b.target||b).je(c,a)},COLLAB_CENTER:function(a,b,c){return!b.Jk?b.je(c,a):b.Jk.D9a(a,c)}};ig.Ha.SHOOT_PROXY=
ig.Pa.extend({ZW:s,offset:{x:0,y:0,z:0},align:ig.Rb.FACE,dir:s,mw:s,s:new ig.u({attributes:{proxy:{c:"ProxyRef",d:"Ball the entity will shoot"},offset:{c:"Offset",d:"Offset relative to entity ground center from which to shoot"},align:{c:"String",d:"Alignment relative to entity from which to shoot",Y:ig.Rb},dir:{c:"Vec2",d:"Direction to go to",BE:j,U:j},mw:{c:"String",d:"How to determine start position",Y:k,U:j}}}),f:function(a){this.ZW=sc.FB.vea(a.proxy);this.offset=a.offset||this.offset;this.align=
ig.Rb[a.align]||this.align;this.dir=a.dir;this.mw=k[a.posType]||k.SELF},Qa:function(){sc.FB.AOa(this.ZW)},xa:function(a){var b=a.Bi(),c=sc.FB.tba(this.ZW,b);if(c){var d=this.dir&&ig.rf.iA(this.dir,a,e)||a.face,a=this.mw(h,a,this.align);Vec3.add(a,this.offset);c.Hu(a.x,a.y,a.z,b,d)}return j}});var l=Vec2.create(),m=Vec3.create();ig.Ha.SHOOT_PROXY_RANGE=ig.Pa.extend({rO:s,s:new ig.u({attributes:{proxy:{c:"ProxyRef",d:"Ball the entity will shoot"},offset:{c:"Offset",d:"Offset relative to entity ground center from which to shoot"},
align:{c:"String",d:"Alignment relative to entity from which to shoot",Y:ig.Rb},dir:{c:"Vec2",d:"Direction to go to",BE:j,U:j},Tj:{c:"Number",d:"Central angle of range. 1 = full circle"},Nj:{c:"Number",d:"Angle from which to start. Default is - centralAngle / 2",U:j},N9:{c:"Number",d:"Randomly vary each angle with the provided range"},lt:{c:"Number",d:"Start Distance of ball in throw direction",U:j},jRa:{c:"Boolean",d:"If true: consider environment collision before adding start dist"},random:{c:"Boolean",
d:"Spawn each Proxy in random direction within range"},count:{c:"Number",d:"The number of proxies thrown"},duration:{c:"Number",d:"Time it takes to throw proxies"},Pt:{c:"Boolean",d:"If true throw proxies clockwise, otherwise counter clockwise"},Jr:{c:"Integer",d:"If FACE COUNT is provided: swap clockWise if face direction is towards left"},uK:{c:"Vec2",d:"offset Area around position to randomly spawn entity at",U:j},u$:{c:"Boolean",d:"Make offsetArea circular, not rectangular"},K6:{c:"Number",d:"To what extend the final dir should be uniform. 1=all the same dir, 0= all individual, 0.5=between the two"},
delay:{c:"Number",d:"Time delay for first shot"},repeat:{c:"Boolean",d:"If true, repeat proxy spawning until ended by force (action end or call STOP_REPEATING_FORCE)"},bga:{c:"Array",d:"Only spawn entity if terrain below is in this list",LE:{c:"String",Y:ig.Gd},U:j},Wca:{c:"Number",d:"If specified: must have at most this distance to ground, otherwise won't be spawned",U:j}}}),f:function(a){a.proxy=sc.FB.vea(a.proxy);this.rO=a},sob:function(){sc.FB.AOa(this.rO.proxy)},xa:function(a){var b=new sc.uZa(a,
this.rO);sc.pb.WB(b);a.fp(b);return j}});ig.Ha.STOP_REPEATING_FORCE=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),xa:function(a){for(var a=a.co,b=a.length;b--;){var c=a[b];c instanceof sc.JY&&c.eLa()&&c.Zr()}return j}});ig.Ha.REMOVE_PROXIES=ig.Pa.extend({s:new ig.u({attributes:{zRa:{c:"Boolean",d:"If true: only remove sticking proxies"},group:{c:"String",d:"If set, only clear proxies of that group"}}}),f:function(a){this.zRa=a.sticking||w;this.group=a.group||s},start:function(a){for(var a=a.oJ,
b=a.length;b--;){var c=a[b];if(c instanceof sc.WR&&(!this.zRa||c.o6))this.group&&c.group!=this.group||c.Hn()}}});ig.Ha.WAIT_UNTIL_PROXIES_DONE=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),xa:function(a){for(var a=a.co,b=a.length;b--;)if(a[b]instanceof sc.WR)return w;return j}});ig.Ha.SPAWN_BURSTS=ig.Pa.extend({offset:{x:0,y:0,z:0},dir:s,dqa:w,nN:s,maa:0,s:new ig.u({attributes:{vk:{c:"AttackInfo",d:"Attack Info of circle attack"},offset:{c:"Offset",d:"Offset relative to entity ground center from which to shoot"},
dir:{c:"Vec2",d:"Static direction to move burst to",U:j},maa:{c:"Number",d:"Rotation to original dir. 1 = one full circle rotation"},dqa:{c:"Boolean",d:"If true, spawn bursts along entity face. Otherwise directly to target"},Pe:{c:"Effect",d:"Effect to play on each burst"},kK:{c:"Number",d:"Movement speed of bursts",ub:40},Kfa:{c:"Number",d:"Number of bursts to spawn",ub:3},ID:{c:"Number",d:"Seconds to wait between bursts",ub:0.3},ina:{c:"Number",d:"Damage delay after burst effects stars in seconds",
ub:0},jg:{c:"Number",d:"Radius of burst damage",ub:32},sg:{c:"Number",d:"Z Range of burst damage",ub:24},UX:{c:"Number",d:"To what degree bursts steer towards player.",ub:0.2},eT:{c:"Number",d:"Time to 'fade In' steering degree at the beginning",U:j}}}),f:function(a){this.offset=a.offset||this.offset;this.dir=a.dir||s;this.maa=(a.dirRotate||0)*Math.PI*2;this.dqa=a.inFaceDir||w;this.nN=a;this.nN.effect=new ig.al(a.effect)},Qa:function(){this.nN.effect.Qa()},xa:function(a){var b=Vec3.create();a.kb(b);
b.z=a.b.i.z;Vec3.add(b,this.offset);var c,d=a.Yp||a.target;if(this.dir)c=Vec2.create(this.dir);else if(this.dqa||!d)c=Vec2.create(a.face);else{c=Vec2.create();d.kb(c);Vec2.sub(c,b)}this.maa&&Vec2.rotate(c,this.maa);this.nN.combatant=a;this.nN.vel=c;ig.t.af(ig.GTa,b.x,b.y,b.z,this.nN);this.nN.combatant=s;return j}});ig.Ha.HIT_STUNNED=ig.Pa.extend({RGa:s,Pe:s,s:new ig.u({attributes:{vk:{c:"AttackInfo",d:"Attack Info of circle attack"},Pe:{c:"Effect",d:"Effect to play on each burst",U:j},Wpa:{c:"String",
d:"Direct Hit direction",Y:sc.rha},align:{c:"String",d:"Alignment of force relative to entity",Y:ig.Rb},Ie:{c:"Number",d:"Number of hits",ub:1},Vpa:{c:"Number",d:"Delay in seconds between hits",wnb:0.1}}}),f:function(a){this.RGa=a;if(a.effect)this.Pe=new ig.al(a.effect)},Qa:function(){this.Pe&&this.Pe.Qa()},start:function(a){for(var b=a.co.length;b--;){var c=a.co[b];if(c instanceof sc.t7){c=new sc.JUa(a,c.$c,this.RGa,this.Pe);sc.pb.WB(c)}}}});ig.Ha.REGEN_HP=ig.Pa.extend({s:new ig.u({attributes:{value:{c:"Number",
d:"Relative amount of HP to regen. 1= FULL HP"}}}),f:function(a){this.value={value:a.value}},start:function(a){a.aV(this.value)}});ig.Ha.CONSUME_SP=ig.Pa.extend({s:new ig.u({attributes:{lf:{c:"Integer",d:"Number of SP to consume"}}}),f:function(a){this.lf=a.sp},start:function(a){a.ba.oGa(this.lf)}});ig.Ha.SET_FREE_LINE_CMD=ig.Pa.extend({time:0,s:new ig.u({attributes:{time:{c:"Number",d:"Time in seconds for free line command to preserve"}}}),f:function(a){this.time=a.time},xa:function(a){sc.pb.o5a(a,
this.time);return j}});ig.Ha.ADD_SHIELD=ig.Pa.extend({name:s,Op:s,vr:w,IA:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of Shield. If used, shield will remain after action end and can be disabled separately",U:j},Op:{c:"Guard",d:"The Shield to activate"},vr:{c:"Boolean",d:"If true, keep shield even after action is finished/interrupted."},IA:{c:"Number",d:"Amount of time for perfect guard",U:j}}}),f:function(a){this.name=a.name;var b=a.shield;this.Op=new sc.FY[b.type](b.settings,this.name);this.vr=
a.actionDetached||w;this.IA=a.perfectGuardTime||s},Qa:function(){this.Op&&this.Op.Qa()},xa:function(a){a.A5a(this.Op,this.vr,this.IA);return j}});ig.Ha.REMOVE_SHIELD=ig.Pa.extend({name:s,s:new ig.u({attributes:{name:{c:"String",d:"Name of Shield to be removed"}}}),f:function(a){this.name=a.name},xa:function(a){a.Pgb(this.name);return j}});ig.Ha.THROW_ENERGY_DROPS=ig.Pa.extend({target:s,Gr:s,Mpa:s,s:new ig.u({attributes:{Gr:{c:"String",d:"Type of Drop",Y:sc.uha},Mpa:{c:"Number",d:"Amount that is healed. 1=full healing"},
align:{c:"String",d:"Alignment of throw origin",Y:ig.Rb},target:{c:"Entity",d:"Target entity to throw drops at",U:j}}}),f:function(a){this.Gr=a.dropType;this.Mpa=a.healValue||0.1;this.align=ig.Rb[a.align]||ig.Rb.BOTTOM;this.target=a.target},xa:function(a){var b=s;this.target&&(b=ig.Ra.pd(this.target));sc.x7.WQ(a,this.align,this.Gr,this.Mpa,b);return j}});ig.Ha.NAVIGATE_TO_SPAWN_POINT=ig.Pa.extend({Fa:0,hy:0,ji:w,s:new ig.u({attributes:{Fa:{c:"Number",d:"Maxium time spend on navigation"},hy:{c:"Number",
d:"The maximum amount of distance to the target"},ji:{c:"Boolean",d:"Reach the target precisely, slowing down accordingly"}}}),f:function(a){this.Fa=a.maxTime;this.hy=a.maxDistance||0;this.ji=a.precise||w},start:function(a){a.Hb=a.Hb+this.Fa;var b=a.uva;if(b){var c=ig.navigation.BF(a);c.jY(b,this.hy,this.ji);a.tb.path=c}else a.tb.path=s},xa:function(a){if(!a.tb.path)return j;if(this.Fa&&a.Hb<=0&&!a.Zg){a.tb.path.U2();return j}return a.tb.path.vu()}});var n=Vec2.create();ig.Ha.DO_DAMAGE_MOVEMENT=ig.Pa.extend({Jx:s,
kma:w,fRa:w,kc:w,s:new ig.u({attributes:{Jx:{c:"String",d:"How far entity will fly",Y:sc.kha},kma:{c:"Boolean",d:"True if movement is for breaking hit."},fRa:{c:"Boolean",d:"True if movement is for stable hit."},kc:{c:"Boolean",d:"True if step should wait the matching stun time."}}}),f:function(a){this.Jx=a.flyLevel;this.kma=a.breaking||w;this.fRa=a.stable||w;this.kc=a.wait||w},start:function(a){Vec2.assign(n,a.face);Vec2.hd(n);var b=a.m1(n,this.Jx,this.kma,w);if(this.kc)a.Hb=a.Hb+b},xa:function(a){return!this.kc||
a.Hb<=0}});ig.Ha.COMBAT_IF=ig.Pa.extend({xg:s,qB:w,Jg:{},s:new ig.u({attributes:{xg:{c:"CombatConditions",d:"Combat conditions for if statement"},qB:{c:"Boolean",d:"With else case.",d9:j}},MI:function(a){switch(a){case "thenStep":return s;case "elseStep":return"else";case "_end":return"endif"}return"???"}}),f:function(a){this.xg=new sc.IY(a.conditions);this.qB=a.withElse},IC:function(){return this.qB?["thenStep","elseStep"]:["thenStep"]},Nx:function(a){var b=Math.random();return this.xg.Cb(a,b)?this.Jg.thenStep?
this.Jg.thenStep:this.Ek:this.Jg.elseStep?this.Jg.elseStep:this.Ek}});var o={set:function(a,b){return b},add:function(a,b){return a+b},sub:function(a,b){return a-b},mul:function(a,b){return a*b},div:function(a,b){return a/b},mod:function(a,b){return a%b}};ig.Ha.CHANGE_COLLAB_VAR=ig.Pa.extend({we:s,y0:s,value:0,s:new ig.u({attributes:{we:{c:"String",d:"Name of Var"},ff:{c:"String",d:"Type of modification",Y:o},value:{c:"NumberExpression",d:"Value to modify with"}}}),f:function(a){this.we=a.varName;
this.y0=o[a.changeType]||o.set;this.value=a.value||0},xa:function(a){if(a=a.Jk){var b=a.Aab(this.we),c=ig.Ra.so(this.value),b=this.y0(b,c*1);a.Yib(this.we,b);return j}}});ig.Ha.SET_ATTRIB_NUMBER=ig.Pa.extend({R9:s,y0:s,value:0,s:new ig.u({attributes:{R9:{c:"String",d:"Name of Var"},ff:{c:"String",d:"Type of modification",Y:o},value:{c:"NumberExpression",d:"Value to modify with"}}}),f:function(a){this.R9=a.attribName;this.y0=o[a.changeType]||o.set;this.value=a.value||0},xa:function(a){var b=a.getAttribute(this.R9)||
0,c=ig.Ra.so(this.value),b=this.y0(b,c*1);a.setAttribute(this.R9,b);return j}});var t={SELF:ba(),TARGET:function(a){return a.target},COLLAB_ENTITY:function(a,b){return a.Jk?a.Jk.NIa(b):s}};ig.Ha.SET_COLLAB_ENTITY=ig.Pa.extend({ioa:s,goa:s,Oqa:s,s:new ig.u({attributes:{ioa:{c:"String",d:"What kind of entity is set",Y:t},goa:{c:"String",d:"Additional entity label. (only required for COLLAB_ENTITY type)"},Oqa:{c:"CollabLabelFilter",d:"Labels to filter which entities in collaboration will have entity assigned",
U:j}}}),f:function(a){this.ioa=t[a.varName]||t.SELF;this.goa=a.entityLabel;this.Oqa=a.labelFilter},start:function(a){if(a.Jk){var b=this.ioa(a,this.goa);a.Jk.Aib(b,this.Oqa)}}});ig.Ha.STORE_IN_COLLAB_PARTNER=ig.Pa.extend({label:s,s:new ig.u({attributes:{label:{c:"String",d:"Label of collab partner"}}}),f:function(a){this.label=a.label},start:function(a){if(a.Jk){a.Jk.NIa(this.label).mkb(a);a.jn(s);a.hide()}}});ig.Ha.UPDATE_RESPAWN_POINT=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),start:function(a){Vec3.assign(a.SA,
a.b.i)}});ig.Ha.RESET_TRACKER=ig.Pa.extend({vwa:s,Coa:g,s:new ig.u({attributes:{vwa:{c:"TrackerRef",d:"Tracker to reset"},Coa:{c:"Number",d:"Force reset tracker to a certain value",U:j}}}),f:function(a){this.vwa=a.tracker;this.Coa=a.forceValue},start:function(a){var b=a.$G[this.vwa];b&&b.reset(a,this.Coa)}});ig.Ha.RELEASE_STORED_ENEMIES=ig.Pa.extend({align:s,ab:0,Tj:0,Nj:0,xI:s,VD:0,s:new ig.u({attributes:{align:{c:"String",d:"Aligned pos from where to start entity",Y:ig.Rb},ab:{c:"Number",d:"Distance towards storing entity when spawned"},
Tj:{c:"Number",d:"Central angle of range. 1 = full circle"},Nj:{c:"Number",d:"Angle from which to start. Default is - centralAngle / 2",U:j},VD:{c:"Number",d:"Additional randomness around original direction"}}}),f:function(a){this.align=ig.Rb[a.align]||ig.Rb.BOTTOM;this.ab=a.distance||0;this.Tj=a.centralAngle;this.Nj=a.startAngle;if(this.Nj==g)this.Nj=-this.Tj/2;this.VD=a.uniformRandom},start:function(b){var c=b.BRa,d=c.length,e=d;Vec2.assign(n,b.face);Vec2.rotate(n,this.Nj*Math.PI*2);var d=this.Tj/
(this.Tj==1?d:d-1)*Math.PI*2,k=b.je(this.align,a);for(this.ab&&Vec2.length(n,this.ab);e--;){var l=c[e],m=(Math.random()-0.5)*this.VD*d;m&&Vec2.rotate(n,m);Vec2.assign(l.face,n);Vec3.assign(h,k);this.ab&&Vec2.add(h,n);l.l(h.x-l.b.size.x/2,h.y-l.b.size.y/2,h.z);l.jn(b.target);l.Bsa();m&&Vec2.rotate(n,-m);Vec2.rotate(n,d)}c.length=0}});ig.Ha.REASSIGN_TARGET=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),start:function(a){a.bc&&a.bc.hX(a,w,j)}});ig.Ha.SPAWN_ENEMIES=ig.Pa.extend({rO:s,Dq:s,bc:s,s:new ig.u({attributes:{Dq:{c:"EnemyType",
d:"Enemy information",sd:j},offset:{c:"Offset",d:"Offset relative to entity ground center from which to shoot"},align:{c:"String",d:"Alignment relative to entity from which to shoot",Y:ig.Rb},dir:{c:"Vec2",d:"Direction to go to",BE:j,U:j},Tj:{c:"Number",d:"Central angle of range. 1 = full circle"},Nj:{c:"Number",d:"Angle from which to start. Default is - centralAngle / 2",U:j},N9:{c:"Number",d:"Randomly vary each angle with the provided range"},lt:{c:"Number",d:"Start Distance of ball in throw direction",
U:j},random:{c:"Boolean",d:"Spawn each Proxy in random direction within range"},count:{c:"NumberExpression",d:"The number of proxies thrown"},duration:{c:"Number",d:"Time it takes to throw proxies"},Pt:{c:"Boolean",d:"If true throw proxies clockwise, otherwise counter clockwise"},Jr:{c:"Integer",d:"If FACE COUNT is provided: swap clockWise if face direction is towards left"},uK:{c:"Vec2",d:"offset Area around position to randomly spawn entity at",U:j},u$:{c:"Boolean",d:"Make offsetArea circular, not rectangular"},
K6:{c:"Number",d:"To what extend the final dir should be uniform. 1=all the same dir, 0= all individual, 0.5=between the two"},delay:{c:"Number",d:"Time delay for first shot"}}}),f:function(a){this.rO=a;if(a.enemyInfo){this.Dq=a.enemyInfo;this.bc=new sc.bv(this.Dq.type)}this.rO.enemyType=this.bc},Qa:function(){this.bc&&this.bc.zc()},start:function(a){var b=new sc.nVa(a,this.rO);sc.pb.WB(b);a.fp(b)}});ig.Ha.SET_POI_TEMP_TARGET=ig.Pa.extend({s:new ig.u({attributes:{qG:{c:"PoiFilter",d:"Kind of POI searched. If not defined, use last searched PoI from Combat Condition",
U:j},ab:{c:"Number",d:"Maximum distance to POI. Only used if poiFilter is defined."}}}),f:function(a){this.qG=a.poiFilter;this.ab=a.distance},start:function(a){var b;b=this.qG?sc.oha.Qoa(this.qG,a,this.ab):a.Qqa;a.Yp=b}});ig.Ha.CLEAR_TEMP_TARGET=ig.Pa.extend({s:new ig.u({attributes:{}}),f:F(),start:function(a){a.Yp=s}})});ig.G=j;
ig.I("game.feature.combat.combat-event-steps").J("impact.base.animation","impact.base.action","impact.base.entity","game.feature.combat.entities.drop","game.feature.combat.entities.combatant","game.feature.combat.entities.combat-proxy","impact.feature.effect.effect-steps").H(function(){ig.Lha.PROXY_OWNER=function(a){return a.$c};var a=Vec3.create();ig.ma.SPAWN_ENEMY=ig.na.extend({position:s,Dq:s,bc:s,awa:w,s:new ig.u({attributes:{position:{c:"Vec3",d:"Point to navigate to",rv:j,Ht:j},Dq:{c:"EnemyType",
d:"Enemy information",sd:j},awa:{c:"Boolean",d:"If true, automatically target player"}}}),f:function(a){this.position=a.position;if(a.enemyInfo){this.Dq=a.enemyInfo;this.bc=new sc.bv(this.Dq.type)}this.awa=a.targetPlayer||w},Qa:function(){this.bc&&this.bc.zc()},start:function(){var b=ig.Ra.Mv(this.position,a),b=ig.t.af(ig.ya.Enemy,b.x-this.bc.size.x/2,b.y-this.bc.size.y/2,b.z,{enemyInfo:this.Dq},j);this.awa&&b.jn(ig.t.wb,j)}});ig.ma.KILL_ENEMIES=ig.na.extend({bc:s,s:new ig.u({attributes:{bc:{c:"String",
d:"If provided: only remove enemy of this type",U:j,Y:"enemies"}}}),f:function(a){this.bc=a.enemyType},start:function(){sc.pb.Jgb(this.bc,s)}});ig.ma.SET_ENEMY_STATE=ig.na.extend({hf:0,gO:0,s:new ig.u({attributes:{hf:{c:"Actor",d:"Enemy to change",Ah:"Entity"},gO:{c:"EnemyState",d:"State of Enemy to switch to"}}}),f:function(a){this.hf=a.enemy;this.gO=a.enemyState},start:function(a,b){var c=ig.Ra.pd(this.hf,b);c&&c.jx(this.gO,j)}});ig.ma.SET_ENEMY_TARGET=ig.na.extend({hf:0,target:0,s:new ig.u({attributes:{hf:{c:"Actor",
d:"Enemy to change",Ah:"Entity"},target:{c:"Entity",d:"Entity to target",Oi:j}}}),f:function(a){this.hf=a.enemy;this.target=a.target},start:function(a,b){var c=ig.Ra.pd(this.hf,b),k=ig.Ra.pd(this.target,b);c&&c.jn(k,j)}});ig.ma.SET_SCREEN_ENEMY_TARGET=ig.na.extend({target:0,s:new ig.u({attributes:{target:{c:"Entity",d:"Entity to target",Oi:j}}}),f:function(a){this.target=a.target},start:function(a,b){var c=ig.Ra.pd(this.target,b);sc.pb.Jib(c)}});ig.ma.SET_TYPED_ENEMY_TARGET=ig.na.extend({target:0,
s:new ig.u({attributes:{bc:{c:"String",d:"Type of enemy",Y:"enemies"},target:{c:"Entity",d:"Entity to target",Oi:j}}}),f:function(a){this.bc=a.enemyType;this.target=a.target},start:function(a,b){for(var c=ig.Ra.pd(this.target,b),k=ig.t.Bm,l=k.length;l--;){var m=k[l];m instanceof ig.ya.Enemy&&m.np==this.bc&&m.jn(c,j)}}});ig.ma.SET_FINAL_DRAMATIC_EFFECT=ig.na.extend({Qna:s,s:new ig.u({attributes:{Qna:{c:"String",d:"Type of dramatic effect",Y:sc.dE,Oi:j}}}),f:function(a){this.Qna=sc.dE[a.effectType]||
s},start:function(){sc.pb.mib(this.Qna)}});var b=Vec2.create();ig.ma.MASS_REPLACE_ENTITIES_WITH_ENEMY=ig.na.extend({zta:s,js:s,bc:s,target:s,s:new ig.u({attributes:{zta:{c:"String",d:"Regular Expression used on entityName to find entities"},Dq:{c:"EnemyType",d:"Enemy type to swap with entities",sd:j},target:{c:"Entity",d:"Set enemy target when spawned",U:j}}}),f:function(a){this.zta=RegExp(a.regExp);this.js=a.enemyInfo;this.bc=new sc.bv(a.enemyInfo.type);this.target=a.target},start:function(a,c){for(var h=
this.target&&ig.Ra.pd(this.target,c),k=ig.t.Bm,l=k.length;l--;){var m=k[l];if(m&&m.name&&this.zta.test(m.name)){var n=ig.t.af("Enemy",m.b.i.x,m.b.i.y,m.b.i.z,{enemyInfo:this.js}),o=m.kb(b);n.l(o.x-n.b.size.x/2,o.y-n.b.size.y/2,n.b.i.z);m.face&&Vec2.assign(n.face,m.face);m.Tb();n.ld(j);h&&n.jn(h,j)}}}});ig.ma.SWAP_ENTITY_WITH_ENEMY=ig.na.extend({P:s,js:s,bc:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to swap with enemy",Ah:"Entity"},Dq:{c:"EnemyType",d:"Enemy to swap with entity",sd:j}}}),f:function(a){this.P=
a.entity;this.js=a.enemyInfo;this.bc=new sc.bv(a.enemyInfo.type)},Qa:function(){this.bc&&this.bc.zc()},start:function(a,c){var h=ig.Ra.pd(this.P,c);if(h){var k=ig.t.af("Enemy",h.b.i.x,h.b.i.y,h.b.i.z,{enemyInfo:this.js,name:h.name+"_EnemySwap"}),l=h.kb(b);k.l(l.x-k.b.size.x/2,l.y-k.b.size.y/2,k.b.i.z);h.face&&Vec2.assign(k.face,h.face);h.hide();ig.t.Tva(h,k);k.ld(j)}}});ig.ma.SWAP_ENTITY_WITH_ENEMY=ig.na.extend({P:s,js:s,bc:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to swap with enemy",Ah:"Entity"},
Dq:{c:"EnemyType",d:"Enemy to swap with entity",sd:j}}}),f:function(a){this.P=a.entity;this.js=a.enemyInfo;this.bc=new sc.bv(a.enemyInfo.type)},Qa:function(){this.bc&&this.bc.zc()},start:function(a,c){var h=ig.Ra.pd(this.P,c);if(h){var k=ig.t.af("Enemy",h.b.i.x,h.b.i.y,h.b.i.z,{enemyInfo:this.js,name:h.name+"_EnemySwap"}),l=h.kb(b);k.l(l.x-k.b.size.x/2,l.y-k.b.size.y/2,k.b.i.z);h.face&&Vec2.assign(k.face,h.face);h.hide();ig.t.Tva(h,k);k.ld(j)}}});ig.ma.SWAP_BACK_ENEMY_WITH_ENTITY=ig.na.extend({P:s,
s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to swap with enemy",Ah:"Entity"}}}),f:function(a){this.P=a.entity},start:function(a,c){var h=ig.Ra.pd(this.P,c),k=ig.t.DIa(h.name+"_EnemySwap");if(k&&h){var l=h.kb(b);ig.t.Tva(k,h);k.l(l.x-k.b.size.x/2,l.y-k.b.size.y/2,h.b.i.z);k.face&&Vec2.assign(k.face,h.face);h.Tb();k.show()}}});ig.ma.SET_COMBAT_ACTIVE=ig.na.extend({Ga:w,s:new ig.u({attributes:{Ga:{c:"Boolean",d:"Activity status of combat"}}}),f:function(a){this.Ga=a.active},start:function(){sc.pb.setActive(this.Ga)}});
ig.ma.DO_ENEMY_ACTION=ig.na.extend({hf:s,xI:s,s:new ig.u({attributes:{hf:{c:"Actor",d:"Enemy to change",Ah:"Entity"},xI:{c:"String",d:"Name of action to perform"}}}),f:function(a){this.hf=a.enemy;this.xI=a.actionName},start:function(a,b){var c=ig.Ra.pd(this.hf,b);c&&c.Cna&&c.Cna(this.xI)}});var c={RELATIVE_HP:{},CURRENT_HP:{},MAX_HP:{cd:"hp"},ATTACK:{cd:"attack"},DEFENSE:{cd:"defense"},FOCUS:{cd:"focus"}};ig.ma.SET_VAR_COMBAT_STAT=ig.na.extend({we:s,cd:s,P:s,s:new ig.u({attributes:{we:{c:"VarName",
d:"Variable to store relative hp in"},P:{c:"Entity",d:"Combatant of which to fetch stat"},cd:{c:"String",d:"Type of Stat",Y:c}}}),f:function(a){this.we=a.varName;this.P=a.entity;this.cd=c[a.stat]||c.RELATIVE_HP},start:function(a,b){var h=ig.Ra.fu(this.we);if(h){var k=ig.Ra.pd(this.P,b);if(k&&k.tV){var l;if(this.cd.cd)l=k.ba.le(this.cd.cd);else if(this.cd==c.RELATIVE_HP)l=k.ba.f2();else if(this.cd==c.CURRENT_HP)l=k.ba.Jb;ig.pa.set(h,l)}}else ig.log("SET_VAR_TIME: Variable Name is not a String!")}});
ig.ma.MANUAL_COMBATANT_KILL=ig.na.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Combatant to manually kill"}}}),f:function(a){this.P=a.entity},start:function(a,b){var c=ig.Ra.pd(this.P,b);c&&c.tV&&c.T7a()}});ig.ma.START_PVP_BATTLE=ig.na.extend({pB:0,P:s,s:new ig.u({attributes:{pB:{c:"Integer",d:"Number of points to win PVP battle"},Tf:{c:"Array",d:"List of all enemies that participate in battle",LE:{c:"Entity"}}}}),f:function(a){this.pB=a.winPoints;this.Tf=a.enemies},start:function(a,b){for(var c=
[],k=0;k<this.Tf.length;k++)c.push(ig.Ra.pd(this.Tf[k],b));sc.Dg.start(this.pB,c)}});ig.ma.PREPARE_PVP_ROUND=ig.na.extend({gp:w,s:new ig.u({attributes:{gp:{c:"Boolean",d:"If true, automatically stop preparation"}}}),f:function(a){this.gp=a.autoContinue||w},start:function(){sc.Dg.Wjb(this.gp)},xa:function(){return!this.gp||!sc.Dg.Nt}});ig.ma.START_PVP_ROUND=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.Dg.GHa()}});ig.ma.STOP_PVP_BATTLE=ig.na.extend({s:new ig.u({attributes:{}}),
f:F(),start:function(){sc.Dg.stop()}});ig.ma.SET_RESPAWN_POINT=ig.Pa.extend({s:new ig.u({attributes:{P:{c:"Actor",d:"Entity to change",Ah:"Entity"},De:{c:"Entity",d:"marker Entity to take position from"}}}),f:function(a){this.P=a.entity;this.De=a.marker},start:function(a,b){var c=ig.Ra.pd(this.P,b),k=ig.Ra.pd(this.De,b);if(c&&k){Vec3.assign(c.SA,k.b.i);Vec2.bT(c.SA,k.b.size,0.5);Vec2.bT(c.SA,c.b.size,-0.5)}}})});ig.G=j;
ig.I("game.feature.combat.enemy-steps").J("impact.base.animation","impact.base.action","impact.base.entity","game.feature.combat.entities.enemy").H(function(){ig.Ha.CHANGE_ENEMY_ANNOTATION=ig.Pa.extend({s:new ig.u({attributes:{Ga:{c:"String",d:"The current active state",Y:sc.yha,U:j},sD:{c:"String",d:"The current passive state",Y:sc.aS,U:j},dH:{c:"String",d:"What weapon is preferred for the enemy",Y:sc.OY,U:j},aA:{c:"Array",d:"The current active state",LE:{c:"String",Y:sc.WL},U:j},element:{c:"String",
d:"What element should be used",Y:sc.hya,U:j}}}),f:function(a){this.Ga=a.active?sc.yha[a.active]||0:s;this.sD=a.passive?sc.aS[a.passive]||0:s;this.dH=a.weapon?sc.OY[a.weapon]||0:s;var b=a.extra;if(b)for(var c=this.aA=0;c<b.length;++c)this.aA=this.aA|b[c];else this.aA=s;this.element=a.element?sc.ja[a.element]||0:s},xa:function(a){if(this.Ga!=s)a.xn.Ga=this.Ga;if(this.sD!=s)a.xn.sD=this.sD;if(this.dH!=s)a.xn.dH=this.dH;if(this.aA!=s)a.xn.aA=this.aA;return j}})});ig.G=j;
ig.I("game.feature.combat.plug-in").J("game.feature.combat.combat","game.feature.combat.pvp","game.feature.combat.combat-shield","game.feature.combat.combat-force","game.feature.combat.combat-stun","game.feature.combat.combat-poi","game.feature.combat.stat-change","game.feature.combat.entities.combatant-marble","game.feature.combat.entities.ball","game.feature.combat.entities.combatant","game.feature.combat.entities.drop","game.feature.combat.entities.item-drop","game.feature.combat.entities.enemy",
"game.feature.combat.entities.enemy-spawner","game.feature.combat.entities.respawn-blocker","game.feature.combat.entities.hit-number","game.feature.combat.entities.burst-spawner","game.feature.combat.entities.stone","game.feature.combat.gui.hp-bar","game.feature.combat.gui.status-bar","game.feature.combat.gui.pvp-gui","game.feature.combat.gui.hp-bar-boss","game.feature.combat.gui.enemy-display-gui","game.feature.combat.model.combat-condition","game.feature.combat.model.combat-params","game.feature.combat.model.combat-status",
"game.feature.combat.model.enemy-type","game.feature.combat.model.enemy-reaction","game.feature.combat.model.enemy-collab","game.feature.combat.model.enemy-tracker","game.feature.combat.combat-action-steps","game.feature.combat.combat-event-steps","game.feature.combat.enemy-steps","game.feature.combat.stat-change").H(function(){if(window.Yc){wm.pj.push("game.feature.combat.editors.enemy-editor");wm.pj.push("game.feature.combat.editors.combat-condition-edit");wm.pj.push("game.feature.combat.editors.enemy-choice-edit");
wm.pj.push("game.feature.combat.editors.combat-edit");wm.pj.push("game.feature.combat.editors.pvp-edit");wm.pj.push("game.feature.combat.editors.proxy-edit");wm.fo(/COMBAT/,"violet");wm.fo(/ANNOTATION/,"orange")}});ig.G=j;
ig.I("game.feature.game-code.game-code").J("impact.base.game").H(function(){sc.GAa=101;sc.LTa=168;sc.Fya={p_a:{bx:sc.GAa,text:"sc.gimmick.sparklingShoes"},bWa:{SPa:"holidayQuest",text:"sc.gimmick.holidayQuest"}};sc.OVa={"WoN-Boots":sc.Fya.p_a,"Holiday-Man":sc.Fya.bWa};sc.SVa=ig.sf.extend({enabled:[],keys:{},f:function(){this.parent("GameCode");ig.pa.Gp("gamecode",this)},n8a:function(a){a=sc.OVa[a];if(!a){sc.rn.zX(ig.lang.get("sc.gimmick.unknown"),s,g);return w}this.enabled.indexOf(a)==-1&&this.enabled.push(a);
var b=ig.lang.get(a.text);a.SPa&&(this.keys[a.SPa]=j);sc.rn.zX(b,s,g);return j},On:function(a,b){return this.keys[b[1]]||w},UF:1E3,my:function(){for(var a=this.enabled.length;a--;){var b=this.enabled[a];b.bx&&sc.q.R.OU(b.bx)==0&&sc.q.R.bx(b.bx,1)}}});ig.wf(function(){return sc.q9a=new sc.SVa});sc.submitGameCode=function(a){sc.q9a.n8a(a)}});ig.G=j;ig.I("game.feature.game-code.plug-in").J("game.feature.game-code.game-code").H(function(){ig.HV.push("sc.gimmick")});ig.G=j;
ig.I("game.feature.interact.gui.interact-gui").J("impact.feature.gui.gui").H(function(){var a=Vec2.create();ig.Ji.Interact=ig.X.extend({TO:0,N:{DEFAULT:{state:{alpha:1},time:0.1,p:KEY_SPLINES.EASE_OUT},NEAR:{state:{alpha:0.9},time:0.1,p:KEY_SPLINES.EASE_OUT},AWAY:{state:{alpha:0.7},time:0.1,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:0,Ma:0,alpha:1},time:0.1,p:KEY_SPLINES.EASE_IN}},r:new ig.$("media/gui/map-ar.png"),target:s,offset:s,qa:s,n:0,Vra:0,PNa:s,Xi:s,f:function(a,c){this.parent();this.v(24,
24);this.rb(12,24);this.a.zIndex=-30;this.a.TC=j;this.target=a;this.qa=c;this.j("HIDDEN",j);this.PNa=new sc.AWa(this);this.m(this.PNa)},uX:function(a){this.TO=a;var c=j;if(this.Xi){this.Xi.uX(a);this.Xi.Tc(this.TO)&&(c=w);c||this.j(a==sc.Dl.HIDDEN?"HIDDEN":"DEFAULT")}c&&(this.qa.Tab(a)?a==sc.Dl.AWAY?this.j("AWAY"):a==sc.Dl.NEAR||a==sc.Dl.BLOCK?this.j("NEAR"):this.j("DEFAULT"):this.j("HIDDEN"))},HQ:function(a){this.Xi&&this.fQ(this.Xi);if(this.Xi=a){this.SC(this.Xi,0);this.Xi.F(ig.k.za,ig.k.xb)}this.uX(this.TO)},
update:function(){this.n=(this.n+ig.g.ga)%this.qa.J$a(this.TO);this.Vra=(this.Vra+ig.g.ga)%1;this.sk()},remove:function(){this.j("HIDDEN",w,j)},sk:function(){var b=0;this.TO!=sc.Dl.RUNNING&&(b=Math.round(Math.sin(Math.PI*2*(this.Vra/1))*1));this.Xi&&this.Xi.Tc(this.TO)&&(b=0);ig.g.Kv(a,Math.round(this.target.b.i.x+this.target.b.size.x/2),Math.round(this.target.b.i.y-this.target.b.i.z-this.target.b.size.z));this.a.i.x=a.x-this.a.size.x/2;this.a.i.y=a.y-this.a.size.y+b+4;this.offset&&Vec2.add(this.a.i,
this.offset)}});sc.AWa=ig.X.extend({r:new ig.$("media/gui/message.png"),vKa:s,f:function(a){this.parent();this.vKa=a},va:function(a){var c=this.vKa;c.qa.va(a,c.TO,c.n)}})});ig.G=j;
ig.I("game.feature.interact.map-interact").J("impact.base.game","game.feature.model.game-model","game.feature.interact.gui.interact-gui").H(function(){var a={gf:1,dir:{x:0,y:0}},b=[],c=Vec2.create(),d=Vec2.create(),e=Vec2.create(),h=Vec2.create(),k={},l=Vec2.create();sc.zB={Tia:1,BM:2};sc.Dl={HIDDEN:0,AWAY:1,NEAR:2,BLOCKED:3,FOCUS:4,RUNNING:5};sc.MXa=ig.sf.extend({qb:[],Kx:s,oqa:w,hidden:w,f:function(){this.parent("MapInteract")},de:function(a){if(this.qb.indexOf(a)==-1){this.qb.push(a);ig.T.Mc(a.T)}},
ie:function(a){a.T.remove();this.qb.xf(a)},JK:0,BA:function(){var k=!sc.V.Rbb(),n=j;if(!ig.t.paused){this.Ykb();if(this.hidden){k=j;n=w}var o=ig.t.wb;if(o)o.kb(h);else{k=j;n=w}if(this.oqa)if(k){this.Kx.ku.nW&&this.Kx.ku.nW();this.Kx=s;this.oqa=w}else n=w;if(n)this.Kx=s;for(var k=-1,t=this.qb.length,r;t--;){var p=this.qb[t],q=p.P;if(q.Ne)this.ie(p);else if(n){r=sc.Dl.AWAY;if(p.c$&&sc.q.pu())r=sc.xH.HIDDEN;else if(ig.Oj.Tr(q,16)){q.kb(d);Vec2.sub(d,h,e);var x=w;p.axa==sc.zB.Tia?x=Math.abs(q.b.i.z-o.b.i.z)<
ig.xe.yh:p.axa==sc.zB.BM&&(x=q.b.i.z+q.b.size.z>=o.b.i.z&&o.b.i.z+o.b.size.z>=q.b.i.z);var y=Vec2.length(e);if(x&&y<=40+q.b.size.y/2&&(!p.xKa||ig.t.bP())&&!o.nu){a.gf=1;a.dir.x=0;a.dir.y=0;b=[];if(!ig.t.trace(a,h.x,h.y,Math.floor(o.b.i.z+o.b.size.z*0.75),e.x,e.y,2,2,2,ig.la.IGNORE,o,b)||b[0]==q.b||(1-a.gf)*y<q.b.size.x/2+16){r=sc.Dl.NEAR;if(p.ku.PKa&&p.ku.PKa())r=sc.Dl.BLOCKED;else{x=-1;if(ig.input.bb==ig.Gb.Jc)Vec2.oc(e,o.face)<Math.PI/2?x=y:y<16&&(x=y+100);else{ig.g.Kv(l,q.b.i.x+q.b.size.x/2,q.b.i.y-
q.b.i.z+q.b.size.y/2-q.b.size.z/2);c.x=sc.V.to()-l.x;c.y=sc.V.Vm()-l.y;y=Vec2.length(c);q=Math.max(32,(q.b.size.y+q.b.size.z)/2);y<=q&&(x=y)}if(x!=-1&&(k==-1||x<k)){k=x;this.Kx=p}}}}}else r=sc.Dl.HIDDEN;p.iL(r)}else p!=this.Kx&&p.iL(sc.Dl.HIDDEN)}if(n&&this.Kx)if(sc.V.wKa()){n=s;this.Kx.ku.ql&&(n=this.Kx.ku.ql());if(n!==w){this.Kx.iL(sc.Dl.RUNNING);ig.ua.ed();this.oqa=j}else this.Kx.iL(sc.Dl.FOCUS)}else this.Kx.iL(sc.Dl.FOCUS)}},Ykb:function(){var a=ig.t.VC();if(this.hidden!=a)if(this.hidden=a)for(a=
0;a<this.qb.length;++a)this.qb[a].T.hide()},j9a:function(){this.hidden=j;for(var a=0;a<this.qb.length;++a){this.qb[a].iL(sc.Dl.HIDDEN);this.qb[a].T.a.Ee=j;this.qb[a].T.hide()}},l9a:function(){this.hidden=w;for(var a=0;a<this.qb.length;++a)this.qb[a].T.a.Ee=w}});ig.wf(function(){return sc.sm=new sc.MXa});sc.Wo=ig.ra.extend({qt:s,Frb:w,La:{},Ql:0,f:function(a,b,c){this.qt=a;this.Ql=c;for(var d in b)this.La[sc.Dl[d]]=b[d]},Tab:function(a){return!!this.La[a]},J$a:function(a){return(this.La[a]||this.La[sc.Dl.NEAR]).length*
this.Ql},va:function(a,b,c){var b=this.qt.Lv(k,(this.La[b]||this.La[sc.Dl.NEAR])[Math.floor(c/this.Ql)]),c=this.qt.width,d=this.qt.height;a.ia(this.qt.xc,(24-c)/2,24-d,b.x,b.y,c,d)}});sc.jS=ig.ra.extend({P:s,ku:s,offset:s,state:sc.Dl.HIDDEN,qa:s,xKa:w,axa:sc.zB.BM,T:s,c$:w,f:function(a,b,c,d,e){this.P=a;this.ku=b;this.qa=c;this.axa=d||sc.zB.BM;this.xKa=e||w;this.T=new ig.Ji.Interact(a,c)},zD:function(a,b){if(!this.T.offset)this.T.offset=Vec2.create();this.T.offset.x=a;this.T.offset.y=b},xy:function(a){this.qa=
a;this.T.qa=a},HQ:function(a){this.T.HQ(a)},iL:function(a){this.state=a;this.T.uX(a)}})});ig.G=j;
ig.I("game.feature.map-content.entities.elevator").J("impact.base.entity","game.feature.interact.map-interact").H(function(){function a(a){if(b){b.Qa();c.stop();c=b=s;a&&a.play()}}sc.y7={};sc.y7.cargoShip={size:{x:64,y:48,z:4},Sl:{r:"media/entity/objects/elevator.png",x:0,y:24,uc:64,Gc:64,Dd:w},ira:"SOUTH",DRa:0.5,JRa:{i:{x:26,y:2,z:4},size:{x:10,y:10,z:9},La:{sheet:{src:"media/entity/objects/elevator.png",width:16,height:24},SUB:[{name:"active",time:1,frames:[0]},{name:"disabled",time:1,frames:[0]}]}}};
sc.y7.coldDng={size:{x:96,y:64,z:2},Sl:{r:"media/map/cold-dng.png",x:400,y:304,uc:96,Gc:80,Dd:w,offset:{x:0,y:0,z:-1}},ira:"SOUTH",DRa:0.5,JRa:{i:{x:43,y:0,z:2},size:{x:10,y:6,z:16},La:{sheet:{src:"media/map/cold-dng.png",width:16,height:16,offX:448,offY:256,xCount:1},SUB:[{name:"active",time:1,frames:[1]},{name:"disabled",time:1,frames:[0]}]}}};var b=s,c=s;ig.ya.Elevator=ig.gd.extend({jra:Vec2.create(),v1:s,Sl:s,Dba:s,jb:s,k6:0,jB:s,VX:0,tF:0,Yj:[],SG:0,Ik:s,jo:s,lR:s,Kb:{},$Ga:w,s:new ig.u({Bd:j,
attributes:{name:{c:"String",d:"Name of the elevator. Used to teleport back to this elevator"},jb:{c:"VarCondition",d:"Condition for the elevator to be active",sd:j},Qob:{c:"String",d:"Type of elevator",Y:sc.y7},Yj:{c:"ElevatorDests",d:"Destinations of Elevator",sd:j},Ik:{c:"Event",d:"Event to be performed when using the elevator",sd:j,U:j},jo:{c:"VarCondition",d:"Condition to show the block event when using the elevator"}},label:function(){return"[ "+this.jb+" ]\n"+this.map+" > "+this.De}}),f:function(a,
b,c,k){this.parent(a,b,c,k);this.b.type=ig.la.BLOCK;this.b.se=0;this.map=k.map||s;this.De=k.marker;this.k6=this.b.i.z;this.Arb=k.moveHeight;this.Kb.start=new ig.da("media/sound/misc/elevator-loop.ogg",0.7);this.Kb.end=new ig.da("media/sound/misc/elevator-end.ogg",0.7);if(a=sc.y7[k.elevatorType]){this.v1=a;ig.Zb.Mr(ig.Zb.Cl[a.ira]||0,this.jra);this.Sl=a.Sl;this.Dba=new ig.$(a.Sl.r);Vec3.assign(this.b.size,a.size)}this.Fbb(k.destinations);this.jb=new ig.ce(k.condition);if(ig.t.De==this.name)if(a=ig.pa.get("_system.elevator.exitVel")){this.jB=
this.b.i.z;this.tF=a;this.AD(this.b.i.z+(a>0?-32:32));this.VX=3}if(k.blockEvent){this.Ik=new ig.Ra({name:"DOOR BLOCK EVENT",steps:k.blockEvent});this.jo=new ig.ce(k.blockEventCondition||"true")}},Fbb:function(a){if(a)for(var b=0;b<a.length;++b){var c=a[b];this.Yj.push({label:c.label,height:this.b.i.z+c.zMoveOffset,RRa:c.teleportMap,wkb:c.teleportMarker,Cs:c.activeCondition});ig.Re&&ig.Re.Ky("Elevator "+b,new ig.Oa(c.label))}},Jn:function(){this.dm(1)},Tb:function(a){this.parent(a);this.Kb.start.Qa();
this.Kb.end.Qa();this.Dba&&this.Dba.zc()},show:function(a){this.parent(a);if(this.v1){a=this.v1.JRa;this.lR=ig.t.af(sc.YUa,this.b.i.x+a.i.x,this.b.i.y+a.i.y,this.b.i.z+a.i.z,{data:a,ground:this});this.lR.setActive(this.jb.evaluate())}},Rfb:function(){this.Ik&&this.jo.evaluate()?sc.So.KD(this.Ik):this.kjb()},wdb:function(d){if((d=this.Yj[d])&&!(Math.abs(d.height-this.b.i.z)<ig.xe.yh)){var e=this.Kb.start;b&&a();b=e.clone();c=b.qy();this.jB=d.height;this.tF=this.jB<this.b.i.z?-80:80;if(Math.random()<=
this.v1.DRa){this.SG=0.1+0.2;this.b.Z.z=this.tF/4}this.lR.XPa(j);d.RRa&&this.Cfb(d)}},Cfb:function(a){a=new ig.Ra({steps:[{type:"DO_ACTION",entity:ig.t.wb,action:[{type:"SET_FACE",face:this.v1.ira,rotate:j},{type:"WAIT",time:"2.0"}]},{type:"WAIT",time:"0.5"},{type:"TELEPORT",map:a.RRa,marker:a.wkb}]});ig.t.Vg.wq(a,ig.bl.PARALLEL);ig.pa.set("_system.elevator.exitVel",this.tF);this.$Ga=j},kjb:function(){if(this.Yj.length){for(var a=ig.t.wb,b={type:"SHOW_CHOICE",person:{person:sc.q.R.Nc.name,expression:"DEFAULT"},
options:[]},c=0,k=0;k<this.Yj.length;++k){var l=this.Yj[k];b.options.push({label:l.label,activeCondition:l.Cs});b[c]=[{type:"MOVE_ELEVATOR",entity:this,floorOption:k}];c++}b.options.push({label:ig.lang.get("sc.map-content.elevator.cancel")});b[c]=[];a={steps:[{type:"DO_ACTION",entity:a,action:[{type:"SET_WALK_ANIMS",config:"normal"},{type:"SET_RELATIVE_SPEED",value:0.5},{type:"MOVE_TO_POINT",target:this.kb()},{type:"SET_FACE_TO_ENTITY",entity:this.lR,rotate:j}]},{type:"ADD_MSG_PERSON",person:{person:sc.q.R.Nc.name,
expression:"DEFAULT"},side:"RIGHT",order:0,clearSide:w},b]};a=new ig.Ra(a);sc.So.KD(a)}},update:function(){if(this.VX>0){this.VX=this.VX-1;if(this.VX<=0){this.VX=0;this.b.Z.z=this.tF}}else if(this.jB!==s){this.b.Z.z=this.b.Z.z+this.tF*2*ig.g.ga;var b=(this.jB-this.b.i.z)*10;this.b.Z.z=this.tF>0?this.b.Z.z.Vb(10,Math.min(b,this.tF)):this.b.Z.z.Vb(Math.max(b,this.tF),-10)}if(this.SG>0){b=this.SG;this.SG=this.SG-ig.g.ga;if(b>0.2&&this.SG<=0.2){b=new ig.Lm.vE("RANDOM","WEAK","FAST",0.2,w,j);ig.XA.cT(b)}if(this.SG<=
0.2)this.b.Z.z=0;if(this.SG<=0)this.SG=0}this.$Ga||(this.jB!==s&&Math.abs(this.jB-this.b.i.z)<1?this.Vhb():this.jB!==s&&Math.abs(this.jB-this.b.i.z)<4&&a(this.Kb.end));this.parent()},Vhb:function(){a(this.Kb.end);this.AD(this.jB);this.b.Z.z=0;this.jB=s;this.lR.XPa(w)},Js:function(){this.lR.AD(this.b.i.z+this.b.size.z)},Fg:function(){this.lR.setActive(this.jb.evaluate())},tj:function(){var a=this.Ta[0];a.AG(this,this.Sl.uc,this.Sl.Gc,ig.Xy.Z_EXPAND,1,this.Sl.offset,this.Dba,this.Sl.x,this.Sl.y);a.I5(this.Sl.Dd,
w)},ZB:function(a){var b=this.b.i.z+this.b.size.z;a.b.aa=this.b.aa;a.b.jc=b;a.b.i.z=b;a.face.x=this.jra.x;a.face.y=this.jra.y;a.l(this.b.i.x+this.b.size.x/2-a.b.size.x/2,this.b.i.y+this.b.size.y/2-a.b.size.y/2)}});sc.YUa=ig.fe.extend({WU:s,Be:s,Oq:w,Ga:w,Uv:{Cga:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24),{FOCUS:[22,23,24,0,20,21],NEAR:[25]},0.15),Uz:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24),{FOCUS:[30,31,32,33,34,0,0],NEAR:[35]},0.15)},f:function(a,b,c,k){this.parent(a,b,c,k);this.b.type=
ig.la.VIRTUAL;this.WU=k.ground;a=k.data;Vec3.assign(this.b.size,a.size);this.ld(a.La);this.Ja("active");this.Be=new sc.jS(this,this,this.Uv.Cga,sc.zB.Tia,j);this.vla()},setActive:function(a){this.Ga=a;this.vla()},XPa:function(a){this.Oq=a;this.vla()},vla:function(){this.Ja(this.Ga?"active":"disabled");!this.Ga||this.Oq?sc.sm.ie(this.Be):sc.sm.de(this.Be)},ql:function(){this.WU.Rfb()},Tb:function(a){sc.sm.ie(this.Be);this.parent(a)}})});ig.G=j;
ig.I("game.feature.map-content.map-content-steps").J("impact.base.action","impact.base.event").H(function(){ig.ma.MOVE_ELEVATOR=ig.na.extend({P:s,xoa:0,s:new ig.u({attributes:{P:{c:"Entity",d:"Elevator Entity",vka:"Elevator"},xoa:{c:"Number",d:"The number of the floor option to use."}}}),f:function(a){this.P=a.entity;this.xoa=a.floorOption},start:function(a,b){var c=ig.Ra.pd(this.P,b);c&&c instanceof ig.ya.Elevator&&c.wdb(this.xoa)}});ig.ma.UNTRIGGER_PROP=ig.na.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",
d:"Prop entity",vka:"Prop"}}}),f:function(a){this.P=a.entity},start:function(a,b){var c=ig.Ra.pd(this.P,b);c&&c instanceof ig.ya.Prop&&c.Rkb()}})});ig.G=j;
ig.I("game.feature.map-content.gui.icon-hover-text").J("impact.feature.gui.gui","impact.feature.gui.base.box","impact.feature.gui.base.basic-gui","game.feature.interact.map-interact").H(function(){sc.Tya=ig.te.extend({N:{DEFAULT:{state:{alpha:1,offsetY:8},time:0.1,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:0.4,Ma:0.5,alpha:0,offsetY:8},time:0.1,p:KEY_SPLINES.EASE_OUT}},eb:new ig.$b("media/gui/message.png",{width:4,height:4,left:6,top:6,right:6,bottom:6,Fb:{"default":{x:0,y:112}}}),JQa:w,f:function(a,
b,c,d){this.parent(134,20);this.a.Vc=0.6;this.a.i.y=4+(b||0);this.JQa=c||w;c=b=0;if(d){c=new sc.ea(d,{font:sc.Ka.Ve,maxWidth:134});c.F(ig.k.za,ig.k.W);this.m(c);b=c.a.size.y+1;c=c.a.size.x}a=new sc.ea(a,{font:sc.Ka.Ve,maxWidth:134});a.F(ig.k.za,d?ig.k.W:ig.k.gb);a.l(0,b);this.m(a);if(a.a.size.x>c)c=a.a.size.x;this.v(Math.max(40,c+8),a.a.size.y+4+b);this.rb(this.a.size.x/2,this.a.size.y);this.j("HIDDEN",j)},uX:function(a){a==sc.Dl.FOCUS||this.JQa&&a==sc.Dl.NEAR?this.j("DEFAULT"):this.j("HIDDEN")},
Tc:function(a){return a==sc.Dl.FOCUS},remove:function(){this.j("HIDDEN",w,j)}})});ig.G=j;
ig.I("game.feature.map-content.map-style").J("impact.feature.map-content.map-style").H(function(){ig.nf.Hf("default","map",{sheet:"media/entity/style/default-map.png",Rk:j,Ny:{x:0,y:160,Bl:3,sg:0}});ig.nf.Hf("default","puzzle",{sheet:"media/entity/style/default-puzzle.png"});ig.nf.Hf("default","puzzle2",{sheet:"media/entity/style/default-puzzle-2.png"});ig.nf.Hf("default","destruct",{sheet:"media/entity/style/default-destruct.png"});ig.nf.Hf("default","walls",{Cr:{a$:"#475ae2",b$:"#e6e9ff",Sda:"#80ff83",
Tda:"#b3c9ff",tda:"#eb8835",uda:"#ffe2ca"}});ig.nf.Hf("cargo-hold","map",{sheet:"media/entity/style/cargo-hold-map.png",Rk:j});ig.nf.Hf("cargo-ship-outer","map",{sheet:"media/entity/style/cargo-outer-map.png",Rk:w});ig.nf.Hf("cargo-ship-bridge","map",{sheet:"media/entity/style/cargo-bridge-map.png",Rk:w});ig.nf.Hf("rhombus-puzzle","map",{sheet:"media/entity/style/rhombus-dng-map.png",Rk:j,Ny:{x:0,y:160,Bl:3,sg:0}});ig.nf.Hf("rhombus-puzzle","puzzle",{sheet:"media/entity/style/rhombus-dng-puzzle.png"});
ig.nf.Hf("rhombus-puzzle","walls",{Cr:{a$:"#71a3ff",b$:"#b6dcff",Sda:"#80ff83",Tda:"#b3c9ff",tda:"#ffba80",uda:"#ffd6b3"}});ig.nf.Hf("rhombus-interior","map",{sheet:"media/entity/style/rhombus-interior-map.png",Rk:j});ig.nf.Hf("rookie-harbor-outer","map",{sheet:"media/entity/style/rh-outer-map.png",Rk:w,Ny:{x:0,y:48,Bl:3,sg:0}});ig.nf.Hf("rookie-harbor-interior","map",{sheet:"media/entity/style/rh-interior-map.png",Rk:j,Gna:{wood:{x:160,y:0}},ZQ:{x:160,y:48}});ig.nf.Hf("hideout-outer","map",{sheet:"media/entity/style/hideout-outer-map.png",
Rk:w});ig.nf.Hf("hideout-inner","map",{sheet:"media/entity/style/hideout-inner-map.png",Rk:w});ig.nf.Hf("autumn","map",{sheet:"media/entity/style/autumn-map.png",Rk:w,Ny:{x:0,y:48,Bl:3,sg:0}});ig.nf.Hf("christmas","map",{sheet:"media/entity/style/cargo-hold-map.png",Rk:j});ig.nf.Hf("christmas","destruct",{sheet:"media/entity/style/christmas-destruct.png"});ig.nf.Hf("bergen-outer","map",{sheet:"media/entity/style/bergen-map.png",Rk:w,Ny:{x:0,y:48,Bl:3,sg:0}});ig.nf.Hf("bergen-outer","destruct",{sheet:"media/entity/style/cold-dng-destruct.png"});
ig.nf.Hf("bergen-inner","map",{sheet:"media/entity/style/bergen-inner-map.png",Rk:j,ZQ:{x:160,y:48},Ny:{x:0,y:48,Bl:3,sg:0},Gna:{wood:{x:160,y:0,jU:w}}});ig.nf.Hf("cold-dng","map",{sheet:"media/entity/style/cold-dng-map.png",Rk:j,Ny:{x:0,y:160,Bl:3,sg:0}});ig.nf.Hf("cold-dng","puzzle",{sheet:"media/entity/style/cold-dng-puzzle.png"});ig.nf.Hf("cold-dng","puzzle2",{sheet:"media/entity/style/cold-dng-puzzle-2.png"});ig.nf.Hf("cold-dng","walls",{Cr:{a$:"#71a3ff",b$:"#b6dcff",Sda:"#80ff83",Tda:"#b3c9ff",
tda:"#ffba80",uda:"#ffd6b3"}});ig.nf.Hf("cold-dng","lorry",{sheet:"media/map/cold-dng.png",rta:176,sta:256,dra:128,era:272});ig.nf.Hf("cold-dng","effect",{sheet:"area.cold-dng"});ig.nf.Hf("cold-dng","destruct",{sheet:"media/entity/style/cold-dng-destruct.png"});ig.nf.Hf("heat-outer","map",{sheet:"media/entity/style/heat-map.png",Rk:w,Ny:{x:0,y:48,Bl:3,sg:0}});ig.nf.Hf("heat-outer","destruct",{sheet:"media/entity/style/heat-destruct.png"});ig.nf.Hf("heat-dng","map",{sheet:"media/entity/style/heat-dng-map.png",
Rk:j,Ny:{x:0,y:160,Bl:3,sg:0},ZQ:{x:160,y:0}});ig.nf.Hf("heat-dng","puzzle",{sheet:"media/entity/style/heat-dng-puzzle.png"});ig.nf.Hf("heat-dng","puzzle2",{sheet:"media/entity/style/heat-dng-puzzle-2.png"});ig.nf.Hf("heat-dng","destruct",{sheet:"media/entity/style/heat-dng-destruct.png"});ig.nf.Hf("heat-dng","waterblock",{sheet:"media/map/heat-dng.png",x:384,y:304,Vfb:352,Wfb:448});ig.nf.Hf("heat-dng","pipes",{sheet:"media/map/heat-dng.png",x:320,y:144});ig.nf.Hf("heat-dng","thermopole",{sheet:"media/map/heat-dng.png",
x:464,y:144});ig.nf.Hf("heat-dng","quicksand",{sheet:"media/map/heat-dng.png",x:160,y:272});ig.nf.Hf("heat-dng","walls",{Cr:{a$:"#5e5aac",b$:"#d6d4f6",Sda:"#80ff83",Tda:"#b3c9ff",tda:"#d95c3b",uda:"#e58c61"}});ig.nf.Hf("heat-dng","lorry",{sheet:"media/map/heat-dng.png",rta:176,sta:304,dra:128,era:304});ig.nf.Hf("heat-dng","coals",{sheet:"media/map/heat-dng.png",x:432,y:144});ig.nf.Hf("unknown-interior","map",{sheet:"media/entity/style/unknown-interior-map.png",Rk:j});ig.nf.Hf("heat-inner","map",{sheet:"media/entity/style/heat-interior-map.png",
Rk:w,ZQ:{x:160,y:0}})});ig.G=j;
ig.I("game.feature.map-content.sc-doors").J("impact.feature.map-content.entities.door").H(function(){ig.SL.COLD_DUNGEON={size:{x:64,y:16,z:64},XW:1.5,EA:{sheet:"area.cold-dng",name:"masterDoorOpen"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/cold-dng.png",width:48,height:64,xCount:2,offX:336,offY:576},SUB:[{frames:[0],offset:{x:-8,y:-2,z:0},SUB:[{name:"idle"},{name:"open",fx:[{type:"SLIDE",dir:"WEST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"WEST",
start:1,end:0,duration:1,keySpline:"EASE_IN"}]}]},{frames:[1],offset:{x:8,y:-2,z:0},SUB:[{name:"idle"},{name:"open",fx:[{type:"SLIDE",dir:"EAST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"EAST",start:1,end:0,duration:1,keySpline:"EASE_IN"}]}]}]}};ig.SL.HEAT_DUNGEON_ENTRANCE={size:{x:56,y:16,z:48},XW:1.3,EA:{sheet:"area.heat-dng",name:"masterDoorOpen"},La:{shapeType:"Y_FLAT",frames:[0],SUB:[{sheet:{src:"media/map/heat-dng-exterior.png",width:32,height:28,
xCount:1,offX:0,offY:128},offset:{x:-12,y:-2,z:0},SUB:[{name:"idle"},{name:"open",fx:[{type:"SLIDE",dir:"WEST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"SOUTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"WEST",start:1,end:0,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"SOUTH",start:1,end:0,duration:1,keySpline:"EASE_IN"}]}]},{sheet:{src:"media/map/heat-dng-exterior.png",width:32,height:28,xCount:1,offX:32,offY:128},
offset:{x:12,y:-2,z:0},SUB:[{name:"idle"},{name:"open",fx:[{type:"SLIDE",dir:"SOUTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"EAST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"SOUTH",start:1,end:0,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"EAST",start:1,end:0,duration:1,keySpline:"EASE_IN"}]}]},{sheet:{src:"media/map/heat-dng-exterior.png",width:36,height:28,xCount:1,offX:0,offY:100},offset:{x:-10,y:-2,z:14},
SUB:[{name:"idle"},{name:"open",fx:[{type:"SLIDE",dir:"NORTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"WEST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"NORTH",start:1,end:0,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"WEST",start:1,end:0,duration:1,keySpline:"EASE_IN"}]}]},{sheet:{src:"media/map/heat-dng-exterior.png",width:28,height:28,xCount:1,offX:36,offY:100},offset:{x:14,y:-2,z:14},SUB:[{name:"idle"},
{name:"open",fx:[{type:"SLIDE",dir:"NORTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"EAST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"NORTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"EAST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]}]}]}};ig.SL.HEAT_DUNGEON_MASTER_DOOR={size:{x:64,y:16,z:48},XW:1.3,EA:{sheet:"area.heat-dng",name:"masterDoorOpen"},La:{shapeType:"Y_FLAT",
frames:[0],SUB:[{sheet:{src:"media/map/heat-dng.png",width:36,height:28,xCount:1,offX:312,offY:512},offset:{x:-14,y:-2,z:0},SUB:[{name:"idle"},{name:"open",fx:[{type:"SLIDE",dir:"WEST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"SOUTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"WEST",start:1,end:0,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"SOUTH",start:1,end:0,duration:1,keySpline:"EASE_IN"}]}]},{sheet:{src:"media/map/heat-dng.png",
width:36,height:28,xCount:1,offX:348,offY:512},offset:{x:14,y:-2,z:0},SUB:[{name:"idle"},{name:"open",fx:[{type:"SLIDE",dir:"SOUTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"EAST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"SOUTH",start:1,end:0,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"EAST",start:1,end:0,duration:1,keySpline:"EASE_IN"}]}]},{sheet:{src:"media/map/heat-dng.png",width:40,height:32,xCount:1,
offX:312,offY:480},offset:{x:-12,y:-2,z:14},SUB:[{name:"idle"},{name:"open",fx:[{type:"SLIDE",dir:"NORTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"WEST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"NORTH",start:1,end:0,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"WEST",start:1,end:0,duration:1,keySpline:"EASE_IN"}]}]},{sheet:{src:"media/map/heat-dng.png",width:32,height:32,xCount:1,offX:352,offY:480},offset:{x:16,
y:-2,z:14},SUB:[{name:"idle"},{name:"open",fx:[{type:"SLIDE",dir:"NORTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"EAST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]},{name:"close",fx:[{type:"SLIDE",dir:"NORTH",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"},{type:"SLIDE",dir:"EAST",start:0,end:1,delay:0.4,duration:1,keySpline:"EASE_IN"}]}]}]}}});ig.G=j;
ig.I("game.feature.map-content.prop-interact").J("impact.feature.map-content.entities.prop","game.feature.map-content.gui.icon-hover-text").H(function(){sc.bZa={INFO:{KMa:new sc.Wo(new ig.tg("media/gui/map-icon.png",40,24,0,168),{FOCUS:[0],NEAR:[1]},0.1),eTa:new sc.Wo(new ig.tg("media/gui/map-icon.png",40,24,0,168),{FOCUS:[2],NEAR:[3]},0.1)},GRAB:{KMa:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24),{FOCUS:[40,41,42,41],NEAR:[43]},0.2),eTa:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24),{FOCUS:[40,
41,42,41],NEAR:[43]},0.2)}};sc.sZa=ig.ra.extend({Ep:s,qa:s,Be:s,py:s,event:s,f:function(a,b){this.Ep=a;this.qa=sc.bZa[b.icon||"INFO"];if(b.event)this.event=new ig.Ra({steps:sc.So.D$a(b.event,a)});if(b.permaEffect)this.py=new ig.al(b.permaEffect);this.Be=new sc.jS(this.Ep,this,this.event?this.qa.eTa:this.qa.KMa,sc.zB.BM,j);this.Be.c$=j;if(b.hoverText){var c=new sc.Tya(new ig.Oa(b.hoverText),s,s,b.title?new ig.Oa(b.title):s);this.Be.HQ(c)}},CNa:function(){sc.sm.de(this.Be);if(this.Ep.O.dca){this.Ep.O.dca.stop();
this.Ep.O.dca=s}if(this.py)this.Ep.O.dca=this.O.py.Ya(this,{duration:-1})},lNa:function(){sc.sm.ie(this.Be)},oW:function(){sc.sm.ie(this.Be);this.event&&this.event.Qa();this.py&&this.py.Qa()},ql:function(){if(this.event)sc.So.bR(ig.$y.CUTSCENE,this.event,s,this.Ep);else return w}});ig.sZ=sc.sZa});ig.G=j;
ig.I("game.feature.map-content.entities.jump-panel").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){var a={2:{kr:280,height:32,Wz:0.25},4:{kr:350,height:64,Wz:0.35},6:{kr:420,height:96,Wz:0.45},8:{kr:490,height:128,Wz:0.55}};ig.ya.JumpPanel=ig.fe.extend({O:new ig.ae("puzzle"),e3:s,jb:s,s:new ig.u({Bd:j,attributes:{Hcb:{c:"String",d:"How height to jump (in tiles).",Y:a},jb:{c:"VarCondition",d:"A condition for this if any. "}}}),f:function(b,c,h,k){this.parent(b,c,h,k);this.e3=
a[k.jumpHeight]||a["2"];this.jb=new ig.ce(k.condition||"");this.Ac=this.jb.evaluate();this.b.type=ig.la.BLOCK;this.b.v(16,16,0);this.ld({sheet:{src:"media/entity/objects/object-effects.png",width:16,height:16},gfxOffset:{x:0,y:-1},SUB:[{name:"off",time:0.2,frames:[]},{name:"normal",time:0.15,frames:[6,7,8,9,10],repeat:j,globalTiming:j},{name:"glow",time:0.05,frames:[0,0,0,0,0,0,0,0,1,2,3,4,5]}]});window.Yc?this.Ja("glow"):this.Ja(this.Ac?"normal":"off")},GNa:function(a){this.jb.evaluate();if(!this.jb.evaluate()&&
a.Xv)return w;a.XN(this.e3.kr,this.e3.height,100,g,w);this.O.Ya("jumpTrail",a,{duration:this.e3.Wz});this.O.Ya("jumpButtom",this);this.Ja("glow",j,this.Ac?"normal":"off",j);return j},Fg:function(){var a=this.jb.evaluate();if(this.Ac!=a){(this.Ac=a)&&this.O.Ya("jumpButtom",this);this.Ja(a?"normal":"off")}}});var b={10:{kr:160,height:16,speed:400,Wz:0.45},12:{kr:200,height:16,speed:400,Wz:0.5},14:{kr:230,height:16,speed:400,Wz:0.55},16:{kr:240,height:16,speed:400,Wz:0.62},22:{kr:310,height:16,speed:440,
Wz:0.8},24:{kr:320,height:16,speed:460,Wz:0.82}},c={NORTH:{dir:{x:0,y:-1},size:{x:16,y:24},hga:8,Dd:w,ll:{x:0,y:-5}},EAST:{dir:{x:1,y:0},size:{x:24,y:16},hga:0,Dd:w,ll:{x:1,y:0}},SOUTH:{dir:{x:0,y:1},size:{x:16,y:24},hga:16,Dd:w,ll:{x:0,y:-6}},WEST:{dir:{x:-1,y:0},size:{x:24,y:16},hga:0,Dd:j,ll:{x:-1,y:0}}};ig.ya.JumpPanelFar=ig.fe.extend({qD:s,O:new ig.ae("puzzle"),e3:s,jb:s,s:new ig.u({Bd:j,attributes:{qD:{c:"String",d:"Type of jump Panel",Y:c},AV:{c:"String",d:"How height to jump (in tiles).",
Y:b},jb:{c:"VarCondition",d:"A condition for this if any."}}}),f:function(a,e,h,k){this.parent(a,e,h,k);this.qD=c[k.panelType]||c.NORTH;this.AV=b[k.jumpDistance]||b["12"];this.jb=new ig.ce(k.condition||"");this.Ac=this.jb.evaluate();this.b.type=ig.la.BLOCK;this.b.v(this.qD.size.x,this.qD.size.y,0);this.ld({sheet:{src:"media/entity/objects/object-effects.png",width:16,height:16,offY:16,xCount:8},gfxOffset:this.qD.ll,tileOffset:this.qD.hga,flipX:this.qD.Dd,renderMode:"lighter",SUB:[{name:"off",time:0.2,
frames:[]},{name:"normal",time:0.15,frames:[4,5,6,7],repeat:j,globalTiming:j},{name:"glow",time:0.05,frames:[0,0,0,0,0,0,0,0,1,2,3]}]});window.Yc?this.Ja("glow"):this.Ja(this.jb.evaluate()?"normal":"off")},HNa:function(a){if(!this.jb.evaluate()&&a.Xv)return w;Vec2.assign(a.b.Z,this.qD.dir);Vec2.length(a.b.Z,this.AV.speed);Vec2.assign(a.b.Eb,this.qD.dir);Vec2.assign(a.face,this.qD.dir);a.XN(this.AV.kr,this.AV.height,this.AV.speed,0,w);a.b.uk=0;this.O.Ya("jumpTrailFar",a,{duration:this.AV.Wz});this.O.Ya("jumpButtom",
this);this.Ja("glow",j,this.Ac?"normal":"off",j);return j},Fg:function(){var a=this.jb.evaluate();if(this.Ac!=a){(this.Ac=a)&&this.O.Ya("jumpButtom",this);this.Ja(a?"normal":"off")}}})});ig.G=j;
ig.I("game.feature.map-content.entities.teleport-central").J("impact.base.entity","impact.base.actor-entity","impact.feature.effect.effect-sheet","game.feature.interact.map-interact","game.feature.npc.entities.npc-waypoint").H(function(){sc.E8={mO:{},vgb:function(a,b){this.mO[a]||(this.mO[a]=[]);this.mO[a].push(b)},Qkb:function(a,b){var c=this.mO[a];if(c){c.xf(b);c.length==0&&delete this.mO[a]}},i$a:function(a,b){var c=this.mO[a],d=b?Math.floor(Math.random()*c.length):0;return c[d]},j$a:function(a){return this.mO[a]}};
var a={CIRCLE:{Cb:function(a){var c=ig.t.wb.b,d=c.i.x+c.size.x-(a.i.x+a.size.x/2),a=c.i.y+c.size.y-(a.i.y+a.size.y/2);return d*d+a*a<b*b},Xa:function(a){ig.D7a.s5a(a.i.x+a.size.x/2,a.i.y+a.size.y/2,0,b,b,"green",86400,j)}},RECT_OVERLAP:{Cb:function(a){var b=ig.t.wb.b,e=a.i.x-c,m=a.i.y-d,n=a.i.y+a.size.y+d;return b.i.x<a.i.x+a.size.x+c&&b.i.x+b.size.x>e&&b.i.y<n&&b.i.y+b.size.y>m},Xa:function(a){var b=a.size.x+c*2,e=a.size.y+d*2;ig.D7a.s5a(a.i.x-c+b/2,a.i.y-d+e/2,0,b,e,"green",86400)}}},b=112,c=112,
d=64;ig.ya.TeleportCentral=ig.gd.extend({map:"",De:"",O:new ig.ae("puzzle"),cg:s,vda:0,wda:0,yo:s,ELa:s,CLa:s,DLa:3,EJa:j,g1:"RECT_OVERLAP",Uy:s,s:new ig.u({Bd:j,attributes:{vda:{c:"Number",d:"Probability that NPCs will enter through this exit"},wda:{c:"Number",d:"Probability that NPCs will exit through this exit"},O:{c:"Boolean",d:"True if ground effects should be displayed",ub:j},yo:{c:"Landmarks",d:"landmark to activate",Bnb:j,U:j},target:{c:"Entity",d:"Optional target to focus when landmark is activated",
U:j},jb:{c:"VarCondition",d:"Condition for the landmark to activate",sd:j,U:j},g1:{c:"String",d:"Type of detection",Y:a,ub:"RECT_OVERLAP",U:j}},Ip:j,Jp:j,label:function(){return this.yo?this.yo+" > "+this.g1:""},Fj:j,hl:"rgba(255,255,0, 0.5)",yF:"rgba(120,120,0, 0.8)"}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;d.size||this.b.v(32,32,0);this.dir=d.dir||"SOUTH";this.vda=d.npcRunnerEnterProb||0;this.wda=d.npcRunnerExitProb||0;this.EJa=d.effects==g?j:d.effects;if(d.landmark){this.yo=
d.landmark;this.CLa=new ig.ce(d.condition||"");this.g1=d.detectType||"RECT_OVERLAP";this.ELa=d.target||s}this.Uy=new sc.Rja(this)},update:function(){this.parent();if(this.yo&&!sc.map.QKa(this.yo))if(this.DLa>0)this.DLa--;else if(!sc.q.Qe()&&(this.CLa.evaluate()&&!sc.Dg.Tc())&&a[this.g1].Cb(this.b)){var b=ig.Ra.pd(this.ELa);sc.map.SEa(this.yo,s,b?b:this)}},Tb:function(a){this.parent(a);this.cg&&this.cg.stop()},show:function(a){this.parent(a);if(!window.Yc&&this.EJa)this.cg=this.O.Ya("teleportEffect",
this,{duration:-1})},nU:F(),mP:F(),ZB:function(a){var b=sc.E8.i$a(this.name,w);if(b)b.ZB(a);else{b=this.b;a.b.aa=b.aa;a.b.jc=b.jc;a.b.i.z=b.i.z;ig.Zb.Mr(ig.Zb.Cl.SOUTH||0,a.face);a.l(b.i.x+b.size.x/2-a.b.size.x/2,b.i.y+b.size.y/2-a.b.size.y/2)}},vba:function(){if(!this.vda&&!this.wda)return s;for(var a=sc.E8.j$a(this.name),b=a.length,c=[],d=s;b--;){var e=a[b];c.push({P:e,dir:e.dir,type:e.map?sc.GH.EXIT:sc.GH.ENTER,mw:sc.Y7.CENTER,vlb:j});d=d||e.map}return{qb:c,pU:this.vda,tU:this.wda,map:d}},tpa:M("Uy")});
var e={SOLID:function(a,b,c,d){return{shapeType:"Z_FLAT",offset:{x:0,y:4,z:0},sheet:{src:a,width:32,height:32,xCount:b,offX:c,offY:d},SUB:[{name:"inactive",time:1,frames:[0],repeat:w},{name:"active",time:1,frames:[1],repeat:w},{name:"red",time:1,frames:[2],repeat:w}]}},AR:function(){return{offset:{x:0,y:5,z:0},SUB:[{shapeType:"Z_FLAT",sheet:{src:"media/entity/objects/upgrade-symbol.png",width:32,height:32,xCount:2,offX:160,offY:0},frames:[0,0,0,1,2,3,4,5],time:0.07,repeat:j,SUB:[{name:"inactive"},
{name:"active"},{name:"red"}]},{renderMode:"lighter",sheet:{src:"media/entity/objects/upgrade-symbol.png",width:32,height:40,xCount:1,offX:224},wallY:1,shapeType:"Z_EXPAND",frames:[0,1,2],time:0.1,repeat:j,SUB:[{name:"inactive"},{name:"active"},{name:"red"}]}]}},RHOMBUS_SQR_LEFT:function(){return{shapeType:"Z_FLAT",offset:{x:0,y:4,z:0},sheet:{src:"media/map/rhombus-outside.png",width:32,height:32,xCount:1,offX:480,offY:0},time:1,frames:[0],repeat:w,SUB:[{name:"inactive"},{name:"active"},{name:"red"}]}},
RHOMBUS_SQR_RIGHT:function(){return{shapeType:"Z_FLAT",offset:{x:1,y:4,z:0},sheet:{src:"media/map/rhombus-outside.png",width:32,height:32,xCount:1,offX:480,offY:0},time:1,frames:[0],repeat:w,flipX:j,SUB:[{name:"inactive"},{name:"active"},{name:"red"}]}},BERGEN_LEFT:function(){return{shapeType:"Z_FLAT",offset:{x:0,y:4,z:0},sheet:{src:"media/map/bergen-trail.png",width:32,height:32,xCount:1,offX:256,offY:576},time:1,frames:[0],repeat:w,SUB:[{name:"inactive"},{name:"active"},{name:"red"}]}},HEAT_RIGHT:function(){return{shapeType:"Z_FLAT",
offset:{x:0,y:4,z:0},sheet:{src:"media/map/heat-area.png",width:32,height:32,xCount:1,offX:64,offY:688},time:1,frames:[0],repeat:w,SUB:[{name:"inactive"},{name:"active"},{name:"red"}]}}};ig.ya.TeleportField=ig.fe.extend({zma:s,map:s,De:s,dir:"SOUTH",FF:s,OF:w,bra:s,vkb:new sc.Wo(new ig.tg("media/gui/map-icon.png",40,48,160,168),{FOCUS:[1],NEAR:[0]},0.1),Be:s,O:{nlb:new ig.ae("scene.upgrade"),oOa:new ig.ae("puzzle"),Zk:new ig.ae("teleport")},Ik:s,jo:s,s:new ig.u({Bd:j,attributes:{nob:{c:"Entity",d:"Central Entity the field belongs to",
vka:"TeleportCentral",Oi:j},dir:{c:"String",d:"View direction of teleport ground.",Y:ig.Zb.zh,ub:"SOUTH"},map:{c:"Maps",d:"Map to be loaded",Ah:"Map",U:j},De:{c:"Marker",d:"Marker on map to teleport player to"},Rp:{c:"VarCondition",d:"Condition for teleporter to appear",sd:j},etb:{c:"LangLabel",d:"Label displayed for teleporter"},bra:{c:"VarCondition",d:"Condition for a long teleport sequence",ub:"false"},Ik:{c:"Event",d:"Event to be performed when entering the teleport ground",sd:j,U:j},jo:{c:"VarCondition",
d:"Condition to show the block event when entering this teleport ground"},gu:{c:"String",d:"Graphical appearance of teleporter.",Y:e}},label:function(){return!this.map?"":this.map+" > "+this.De},hl:"rgba(255,255,0, 0.5)",yF:"rgba(120,120,0, 0.8)"}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;this.zma=d.central&&d.central.name;sc.E8.vgb(this.zma,this);this.map=d.map;this.De=d.marker;this.dir=d.dir;this.bra=new ig.ce(d.longTelCond);var a=ig.Ef.get("map"),c=b=0,n=g,o=1;if(a.Ny){b=
a.Ny.x;c=a.Ny.y;n=a.Ny.Bl;o=a.sg||1}this.b.v(24,24,o);this.ld((e[d.gfxType]||e.SOLID)(a.sheet,n,b,c));if(d.blockEvent){this.Ik=new ig.Ra({name:"DOOR BLOCK EVENT",steps:d.blockEvent});this.jo=new ig.ce(d.blockEventCondition||"true")}if(this.Hba()){this.Be=new sc.jS(this,this,this.vkb,sc.zB.BM,j);d=new sc.Tya(new ig.Oa(d.teleportLabel),24,j);this.Be.HQ(d);this.Be.zD(1,0)}this.Ja(this.map?"red":"active")},show:function(a){this.parent(a);this.Hba()&&sc.sm.de(this.Be);if(!a){this.Za.alpha=0;this.O.nlb.Ya("symbolAppear",
this,{})}},gG:function(){this.Hba()&&sc.sm.ie(this.Be);this.hide()},Tb:function(a){this.parent(a);this.Hba()&&sc.sm.ie(this.Be);sc.E8.Qkb(this.zma,this)},Hba:function(){return this.map||this.Ik},lo:function(){this.FF||this.lRa()},update:function(){if(this.FF){var a=ig.t.uO(this);if(this.FF&&a.length==0){this.FF.stop();this.FF=s;this.Ja(this.map?"red":"active")}}if(!this.OF){this.lgb();this.OF=j}this.parent()},lgb:function(){this.FF||ig.t.uO(this).length>0&&this.lRa()},lRa:function(){if(!this.FF)this.FF=
this.O.oOa.Ya("teleportBlock",this,{duration:-1})},nU:function(a){var b=this.fA(a,j),b=new ig.rf("doorAction",b);a.If(b)},mP:function(a){ig.sH.vN(a);this.O.Zk.Ya(a.LG=="none"?"showDefaultSilent":"showDefault",a,{})},fA:function(a,b){var c=a.LG=="none",d=[{type:"SET_WALK_ANIMS",config:"normal"},{type:"SET_FACE_FIX",value:w},{type:"SET_RELATIVE_SPEED",value:0.5},{type:"SET_SLIP_THROUGH",value:j},{type:"MOVE_TO_POINT",target:this.kb(),precise:j},{type:"SET_FACE",face:this.dir,rotate:j}];b&&d.push({type:"SHOW_EFFECT",
effect:{sheet:"teleport",name:c?"hideDefaultSilent":"hideDefault"},duration:0,wait:j,actionDetached:j});return d},ql:function(){if(this.Ik&&this.jo.evaluate()){sc.So.KD(this.Ik);return j}var a=ig.t.wb,b=this.fA(a,w),c=[{type:"DO_ACTION",entity:a,action:b,wait:j}];c.push({type:"SET_TELEPORT_COLOR",lighter:j,color:"white"});if(b=this.bra.evaluate()){c.push({type:"SET_CAMERA_TARGET",entity:a,speed:"NORMAL",transition:"EASE_IN_OUT",zoom:1});c.push({type:"SHOW_EFFECT",entity:a,effect:{sheet:"teleport",
name:"hideSlow"}});c.push({time:0.2,ignoreSlowDown:w,type:"WAIT"});c.push({type:"SET_CAMERA_ZOOM",zoom:3,duration:4,transition:"EASE_IN"});c.push({color:"white",alpha:1,time:3,lighter:j,type:"SET_OVERLAY"});c.push({zoomType:"LIGHT",fadeIn:0.5,duration:4,fadeOut:1,type:"SET_ZOOM_BLUR",name:s});c.push({time:4,ignoreSlowDown:w,type:"WAIT"})}else{c.push({type:"SET_CAMERA_TARGET",entity:a,speed:"FAST",transition:"EASE_IN_OUT",zoom:1});c.push({time:0.1,ignoreSlowDown:w,type:"WAIT"});c.push({color:"white",
alpha:1,time:1,lighter:j,type:"SET_OVERLAY"});c.push({type:"SET_CAMERA_ZOOM",zoom:1.5,duration:1,transition:"EASE_IN"});c.push({type:"SHOW_EFFECT",entity:a,effect:{sheet:"teleport",name:"hideDefault"}});c.push({time:1.2,ignoreSlowDown:w,type:"WAIT"})}c.push({type:"TELEPORT",map:this.map,marker:this.De});c.push({time:3,ignoreSlowDown:w,type:"WAIT"});a=new ig.Ra({steps:c});b?sc.So.KD(a):ig.t.Vg.wq(a,ig.bl.BLOCKING);return j},Fg:function(){this.OF=w},ZB:function(a){var b=this.b;a.b.aa=b.aa;a.b.jc=b.jc;
a.b.i.z=b.i.z;ig.Zb.Mr(ig.Zb.Cl[this.dir]||0,a.face);a.l(b.i.x+b.size.x/2-a.b.size.x/2,b.i.y+b.size.y/2-a.b.size.y/2)},gLa:function(){return!!this.FF}})});ig.G=j;
ig.I("game.feature.map-content.plug-in").J("game.feature.map-content.entities.elevator","game.feature.map-content.map-content-steps","game.feature.map-content.gui.icon-hover-text","game.feature.map-content.map-style","game.feature.map-content.sc-doors","game.feature.map-content.prop-interact","game.feature.map-content.entities.jump-panel","game.feature.map-content.entities.teleport-central").H(function(){ig.HV.push("sc.map-content");window.Yc&&wm.pj.push("game.feature.map-content.editors.map-content-editor")});
ig.G=j;
ig.I("game.feature.model.model-steps").J("impact.base.action","impact.base.event","game.feature.player.player-model").H(function(){ig.ma.START_DEMO_HIGHSCORE_TIMER=ig.na.extend({s:new ig.u({attributes:{}}),start:function(){sc.q.Tjb()}});ig.ma.STOP_DEMO_HIGHSCORE_TIMER=ig.na.extend({zA:w,s:new ig.u({attributes:{zA:{c:"Boolean",d:"True if this is for the observatory challenge.",ub:w}}}),f:function(a){this.zA=a.observatory||w},start:function(){sc.q.ikb(this.zA)}});ig.ma.SET_TASK=ig.na.extend({Gi:s,Jqa:w,
s:new ig.u({attributes:{Gi:{c:"LangLabel",d:"Current task of the game.",mq:j},Jqa:{c:"Boolean",d:"Keep Task displayed all the time"}},width:500}),f:function(a){this.Gi=new ig.Oa(a.task);this.Jqa=a.keepDisplayed},start:function(){sc.q.kL(this.Gi,this.Jqa)}});ig.ma.SET_PERMA_TASK=ig.na.extend({Gi:s,s:new ig.u({attributes:{Gi:{c:"LangLabel",d:"Current perma task of the game. Displayed in Synopsis",mq:j}},width:500}),f:function(a){this.Gi=new ig.Oa(a.task)},start:function(){sc.q.Qua(this.Gi)}});ig.ma.SET_SAVE_BLOCK=
ig.na.extend({value:s,s:new ig.u({attributes:{value:{c:"Boolean",d:"True if saving should be blocked."}}}),f:function(a){this.value=a.value},start:function(){sc.q.Hib(this.value)}});ig.ma.SET_FORCE_COMBAT=ig.na.extend({value:w,s:new ig.u({attributes:{value:{c:"Boolean",d:"True if combat should remain active."}}}),f:function(a){this.value=a.value||w},start:function(){sc.q.eL(this.value,j)}});ig.ma.INCREASE_COMBAT_RANK=ig.na.extend({value:w,s:new ig.u({attributes:{value:{c:"Number",d:"Increase Combat Rank by this weight. 1=one enemy"}}}),
f:function(a){this.value=a.value},start:function(){sc.q.aKa(this.value)}});ig.ma.CLEAR_TASK=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.q.kL(s,w)}});ig.ma.SET_PLAYER_CORE=ig.na.extend({Qm:s,value:s,s:new ig.u({attributes:{Qm:{c:"String",d:"Type of Core.",Y:sc.hg},value:{c:"Boolean",d:"True to activate core."}}}),f:function(a){this.Qm=sc.hg[a.core];this.value=a.value},start:function(){sc.q.R.gib(this.Qm,this.value)}});ig.ma.SET_PLAYER_SP_LEVEL=ig.na.extend({aa:s,s:new ig.u({attributes:{aa:{c:"String",
d:"Type of Core.",Y:{"0":"0 SP",1:"4 SP",2:"8 SP",3:"12 SP",4:"16 SP"}}}}),f:function(a){this.aa=a.level},start:function(){sc.q.R.CG(this.aa)}});ig.ma.INCREASE_PLAYER_SP_LEVEL=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.q.R.CG(sc.q.R.UQ+1)}});ig.ma.ADD_PLAYER_EXP=ig.na.extend({exp:0,aa:0,s:new ig.u({attributes:{exp:{c:"NumberExpression",d:"Experience count."},aa:{c:"Number",d:"Level of experience",U:j}}}),f:function(a){this.exp=a.exp;this.aa=a.level||0},start:function(){var a=
this.aa||sc.q.R.aa,b=ig.Ra.so(this.exp),a=sc.q.R.$M(b,a,g,g,j);sc.ta.cc("player","expOther",a)}});ig.ma.SET_ALL_PLAYER_CORE=ig.na.extend({value:s,s:new ig.u({attributes:{value:{c:"Boolean",d:"True to activate core."}}}),f:function(a){this.value=a.value},start:function(){sc.q.R.hib(this.value)}})});ig.G=j;
ig.I("game.feature.model.plug-in").J("game.feature.model.base-model","game.feature.model.game-model","game.feature.model.model-steps","game.feature.model.options-model").H(function(){if(window.Yc){wm.fo(/TASK/,"violet");wm.fo(/CORE/,"violet");wm.pj.push("game.feature.model.editors.options-editors")}});ig.G=j;ig.I("game.feature.skills.plug-in").J("game.feature.skills.skills","game.feature.skills.skilltree").H(F());ig.G=j;
ig.I("game.feature.msg.entities.event-trigger").J("impact.base.entity").H(function(){sc.So={D$a:function(a,c){a=ig.copy(a);a.unshift(this.Cka({player:j},c));a.unshift(this.Cka({party:"Member2"},c));a.unshift(this.Cka({party:"Member3"},c));a.unshift({type:"SET_CAMERA_TARGET",entity:c,speed:"FAST",transition:"EASE_IN_OUT"});return a},Cka:function(a,c){return{type:"DO_ACTION",entity:a,action:[{type:"SET_FACE_TO_ENTITY",entity:c,rotate:j},{type:"SET_FACE_FIX",value:j},{type:"SET_RELATIVE_SPEED",value:0.3},
{type:"MOVE_TO_ENTITY_DISTANCE",entity:c,min:2,max:24,subRadius:j,maxTime:0.3}]}},KD:function(a,c,d){return ig.t.Vg.wq(a,ig.bl.BLOCKING,this.c4.bind(this),this.mW.bind(this),c,d)},c4:function(){sc.q.Zna()},mW:function(){sc.q.oU()},Vjb:function(a,c){var d=ig.t.Vg.wq(a,ig.bl.BLOCKING,this.Oeb.bind(this),this.Neb.bind(this),c);d.H4=j;return d},Oeb:function(){sc.q.message.WPa(j)},Neb:function(){sc.q.message.WPa(w)},Njb:function(a,c,d){a=ig.t.Vg.wq(a,ig.bl.INTERRUPTABLE,this.Mdb.bind(this),this.Ldb.bind(this),
c,d);a.H4=j;return a},Mdb:function(){sc.Wa.setActive(j)},Ldb:function(){sc.Wa.setActive(w)},bR:function(a,c,d,e){return a==ig.$y.CUTSCENE?sc.So.KD(c,d,e):a==ig.$y.AUTO_CONTROL?sc.So.Njb(c,d,e):a==ig.$y.INTERRUPTABLE?ig.t.Vg.wq(c,ig.bl.INTERRUPTABLE,g,g,d,e):ig.t.Vg.wq(c,ig.bl.PARALLEL,g,g,d,e)}};ig.$y={PARALLEL:1,CUTSCENE:2,INTERRUPTABLE:3,AUTO_CONTROL:4};ig.Cha={ALWAYS:0,ONCE_PER_ENTRY:1,ONCE:2};ig.ya.EventTrigger=ig.gd.extend({jO:s,gB:s,Una:s,event:s,Wt:s,UD:s,s:new ig.u({Bd:j,attributes:{jO:{c:"String",
d:"Type of event. Cutscenes will stop the movement of the player and can't be executed in parallel. Auto Control events will take over the player's control.",Y:ig.$y},gB:{c:"VarCondition",d:"Condition for the event to start",sd:j},Una:{c:"VarCondition",d:"Condition for the event to not start (even if start condition is true)",sd:j,ub:"false"},event:{c:"Event",d:"Event to be performed",sd:j},ntb:{c:"String",d:"How often should this event be run?",Y:ig.Cha}},label:R(""),Fj:j,hl:"rgba(255,0,0, 0.5)",
Fdb:j}),f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.IGNORE;this.b.v(16,16,0);this.jO=ig.$y[e.eventType]||ig.$y.PARALLEL;this.gB=new ig.ce(e.startCondition);this.Una=new ig.ce(e.endCondition);if(a=ig.Cha[e.triggerType||"ALWAYS"])this.UD=(a==ig.Cha.ONCE?"map.":"tmp.")+"_entity"+this.gy+"_triggered";if(e.event)this.event=new ig.Ra({name:this.name,steps:e.event})},Tb:function(a){this.parent(a);this.event&&this.event.Qa();this.jO==ig.$y.CUTSCENE&&(this.Wt&&this.Wt.Xm())&&sc.So.mW()},update:function(){if((!this.Wt||
!this.Wt.Xm())&&this.gB.evaluate()&&!this.Una.evaluate()){if(this.UD&&ig.pa.get(this.UD)||ig.t.wb.Yg()||ig.t.w6)return;this.Wt=sc.So.bR(this.jO,this.event)}this.Wt&&this.Wt.Xm()&&!this.Wt.Ph()&&this.UD&&ig.pa.set(this.UD,j)},Fg:function(){this.update()}});var a={IGNORE:0,ABOVE:1,BELOW:2};ig.ya.LocationEvent=ig.gd.extend({gB:s,event:s,UD:s,s:new ig.u({Bd:j,attributes:{gB:{c:"VarCondition",d:"Condition for the event to start",sd:j},event:{c:"Event",d:"Event to be performed when entity is in screen (always parallel)",
sd:j},jg:{c:"Number",d:"If specified, only trigger when distance to entity is below the given radius",U:j},Lba:{c:"String",info:"How height comparison matters",Y:a}},label:R(""),Fj:j,hl:"rgba(255,0,122, 0.5)",Y7a:function(a){return a.radius||0},Fdb:j}),f:function(b,c,d,e){this.parent(b,c,d,e);this.b.type=ig.la.IGNORE;this.b.v(16,16,0);this.gB=new ig.ce(e.startCondition);this.UD="map.locEvent.trig"+this.gy;this.jg=e.radius||0;this.Lba=a[e.heightCompare]||0;if(e.event)this.event=new ig.Ra({name:this.name,
steps:e.event});ig.pa.get(this.UD)?this.b.Eu(ig.Gm.STATIC):this.b.Eu(ig.Gm.ON_SCREEN)},Tb:function(a){this.parent(a);this.event&&this.event.Qa()},update:function(){if(!sc.q.pu()&&!sc.q.message.hLa()&&sc.q.SJ()&&sc.q.Xm()&&ig.Oj.Tr(this,-48,-32)&&this.gB.evaluate()){var b=ig.t.wb.b;if(!(this.jg&&ig.Xf.jab(this.b,b)>this.jg)&&(!this.Lba||!(this.Lba==a.ABOVE&&b.i.z<this.b.i.z||this.Lba==a.BELOW&&b.i.z>this.b.i.z))){this.b.Eu(ig.Gm.STATIC);if(!ig.pa.get(this.UD)){ig.pa.set(this.UD,1);sc.So.bR(ig.$y.PARALLEL,
this.event)}}}}})});ig.G=j;
ig.I("game.feature.msg.gui.message-box").J("impact.feature.gui.gui","game.feature.gui.base.boxes","game.feature.gui.base.text").H(function(){sc.dYa=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},SUB:{state:{alpha:0.8},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ma:0.3,Ia:0.3},time:0.2,p:KEY_SPLINES.LINEAR}},text:s,vc:s,bea:s,f:function(a,b,c,d,e,h){this.parent();this.bea=e;this.text=new sc.ea(c,{maxWidth:a,speed:d,bestRatio:4,optimize:j});this.vc=new sc.os(this.text.a.size.x,
this.text.a.size.y,b);this.text.l(this.vc.IH,this.vc.JH);this.text.vPa(h);this.a.size.x=this.vc.a.size.x;this.a.size.y=this.vc.a.size.y;this.a.cb.x=this.vc.a.cb.x;this.a.cb.y=this.vc.a.cb.y;this.m(this.vc);this.m(this.text)},ofa:function(){this.vc.ofa()},Mua:function(a){this.text.df.AA=a},ol:function(){return this.text.df.ol()},Ko:function(){this.text.finish()}});sc.WTa=ig.X.extend({r:new ig.$("media/gui/message.png"),N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,
Ma:0,Ia:1},time:0.2,p:KEY_SPLINES.LINEAR}},z0:s,oa:[],Q:s,ka:s,o0:s,PW:0,bU:0,f:function(a,b,c){this.parent();this.a.align.y=ig.k.xb;this.a.Vc=0.9;this.z0=a;this.Q=new ig.nr;this.ka=new sc.Wf;this.Q.Cg(this.ka);for(var d=0,e=sc.ps,h=0;h<a.length;++h){var k=a[h].Cs.evaluate(),k=new sc.ec(this.z0[h].label,g,k,sc.Ic.kE);k.H6a=h;var l=this;k.Qb=function(){l.remove();sc.q.message.Nhb(this.H6a)};k.l(3,3+d);this.ka.Uc(k,0,h);d=d+(k.a.size.y+0);e=Math.max(e,k.a.size.x);this.oa[h]=k}this.o0=new sc.ATa(e+6,
d-0+6-1,j);this.o0.a.Vc=this.a.Vc;this.m(this.o0);this.bU=0.3;for(h=0;h<a.length;++h){this.oa[h].FG(e);this.m(this.oa[h])}this.v(this.o0.a.size.x,this.o0.a.size.y+12);this.a.cb.y=this.a.size.y;a=b-this.a.size.x/2;this.PW=this.a.size.x/2;if(a+this.a.size.x+2>ig.g.width){this.PW=this.PW+(a+this.a.size.x+2-ig.g.width);a=ig.g.width-this.a.size.x-2}else if(a<2){this.PW=this.PW+(a-2);a=2}this.l(a,c);this.j("HIDDEN",j);this.j("DEFAULT")},update:function(){if(this.bU){this.bU=this.bU-ig.g.Da;if(this.bU<=
0){this.bU=0;ig.ua.de(this.Q)}}},va:function(a){a.ia(this.r,this.PW-8,this.a.size.y-12,32,32,16,12)},remove:function(){ig.ua.ie(this.Q);this.j("HIDDEN",w,j)}})});ig.G=j;
ig.I("game.feature.msg.gui.dream-msg").J("impact.base.image","impact.feature.interact.gui.focus-gui","game.feature.interact.button-group").H(function(){sc.MY={TOP:1,BOTTOM:2};var a=Vec2.create();sc.OUa=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.EASE_IN}},f:function(a,c,d,e,h,k){this.parent();this.a.zIndex=90;this.a.cr=j;this.target=a;this.mw=c;this.offset=d;this.Va=new sc.ea(e,h);this.m(this.Va);this.v(this.Va.a.size.x,
this.Va.a.size.y);this.j("DEFAULT",j);this.Va.df.AA=this.D_.bind(this);this.Gw=this.Va.df.ol();this.Ob=k;this.pe=new sc.At(this);ig.g.tl?this.rk():ig.ua.de(this.pe);this.sk()},wPa:function(a,c){this.ge.a.i.x=a;this.ge.a.i.y=c},D_:function(){this.Gw=j},ql:function(){if(this.Gw){ig.ua.ie(this.pe);this.rk()}else this.Va.finish()},rk:function(){this.j("HIDDEN",w,j);this.Ob&&this.Ob()},update:function(){this.target&&this.sk();!this.a.qj&&(this.Gw&&ig.g.tl)&&this.rk();this.parent()},va:function(a){this.bgColor&&
a.Ec(this.bgColor,0,0,this.a.size.x,this.a.size.y)},sk:function(){if(this.target){var b=this.target.b.i.y-this.target.b.i.z,b=this.mw==sc.MY.TOP?b-this.target.b.size.z:b+this.target.b.size.y;ig.g.Kv(a,Math.round(this.target.b.i.x+this.target.b.size.x/2),Math.round(b));this.a.i.x=a.x-this.a.size.x/2;this.a.i.y=a.y;this.a.i.y=this.mw==sc.MY.TOP?this.a.i.y-(8+this.a.size.y):this.a.i.y+8}else{this.a.i.x=ig.g.width/2-this.a.size.x/2;this.a.i.y=ig.g.height/2-this.a.size.y/2}this.offset&&Vec2.add(this.a.i,
this.offset);this.a.i.x=this.a.i.x.Vb(0,ig.g.width-this.a.size.x);this.a.i.y=this.a.i.y.Vb(0,ig.g.height-this.a.size.y)}})});ig.G=j;
ig.I("game.feature.msg.gui.message-overlay").J("impact.feature.gui.gui","game.feature.msg.gui.message-box","game.feature.model.options-model").H(function(){function a(){var a=sc.options.get("text-speed")!=g?sc.options.get("text-speed"):ig.rd.Nd.yya;if(ig.g.tl)a=ig.rd.Nd.We;return a}ig.Rw=ig.X.extend({N:{DEFAULT:{state:{},time:0.5,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.5,p:KEY_SPLINES.LINEAR}},K3:s,kOa:s,Jw:s,LI:s,sT:s,f:function(){this.parent();this.a.zIndex=50;this.a.size.x=ig.g.width;
this.a.size.y=ig.g.height;sc.K.Na(sc.q,this);sc.K.Na(sc.q.message,this);this.pe=new sc.At(this);this.Jw=new ig.Rw.Bxa;this.Jw.F(ig.k.fb,ig.k.W);this.m(this.Jw);this.LI=new ig.Rw.Bxa;this.LI.F(ig.k.fb,ig.k.xb);this.m(this.LI);this.kOa=new sc.rZa;this.m(this.kOa);this.K3=new ig.XXa;this.K3.F(ig.k.fb,ig.k.xb);this.m(this.K3);this.Jw.j("HIDDEN_TOP",j);this.LI.j("HIDDEN_BOTTOM",j);this.m(new sc.g0a)},lb:function(a,c,d){if(a instanceof sc.WY){if(c==sc.Le.Vw){if(a.Qe()){this.Jw.j("DEFAULT");this.LI.j("DEFAULT")}else{this.Jw.j("HIDDEN_TOP");
this.LI.j("HIDDEN_BOTTOM")}this.K3.j("DEFAULT")}}else if(a==sc.q.message&&c==sc.be.iza){if(d){this.a.Ee=j;this.a.zIndex=1201;ig.T.WQa();this.Jw.j("DEFAULT");this.LI.j("DEFAULT")}else{this.Jw.j("HIDDEN_TOP",w,w,this.Teb.bind(this));this.LI.j("HIDDEN_BOTTOM")}this.K3.j("DEFAULT")}},Teb:function(){this.a.Ee=w;this.a.zIndex=50;ig.T.WQa()}});ig.Rw.Bxa=ig.X.extend({N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN_TOP:{state:{alpha:1,offsetY:-21},time:0.3,p:KEY_SPLINES.EASE_IN},HIDDEN_BOTTOM:{state:{alpha:1,
offsetY:-21},time:0.3,p:KEY_SPLINES.EASE_IN}},f:function(){this.parent();this.a.size.y=21;this.a.size.x=ig.g.width},va:function(a){ig.$N.Tc()||a.Ec("black",0,0,ig.g.Ae(this.a.size.x),ig.g.Ae(this.a.size.y))}});ig.Rw.BTa=ig.X.extend({r:new ig.$("media/gui/message.png"),N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.3,p:KEY_SPLINES.EASE_IN}},f:function(){this.parent();this.a.Vc=1;this.a.size.x=ig.g.width;this.a.size.y=128;if(!this.constructor.pattern)this.constructor.pattern=
this.r.createPattern(144,0,16,128,ig.ue.Pf.Xn)},va:function(a){a.Rj(this.constructor.pattern,0,0,0,0,this.a.size.x,this.a.size.y)}});sc.MH={BLINK:{yC:j,cga:8,Bg:-48},OPEN_UP:{Bq:0.5,cga:0},PRE_CLOSE:{kc:0.3,cga:0},CLOSE_DOWN:{Bq:0.2,inverse:j,cga:8,jx:"HIDDEN"}};sc.rZa=ig.X.extend({r:new ig.$("media/gui/message.png"),yFa:new ig.$b("media/gui/message.png",{width:16,height:0,left:24,top:16,right:24,bottom:0,Fb:{upper:{x:64,y:96},lower:{x:64,y:112}}}),Ab:{zbb:new ig.da("media/sound/hud/calling.ogg",
1),u4:new ig.da("media/sound/hud/calling.ogg",1),open:new ig.da("media/sound/hud/take-call.ogg",1),close:new ig.da("media/sound/hud/end-call.ogg",1),d8a:new ig.da("media/sound/hud/end-call.ogg",1),handle:s},uFa:new ig.cv("media/gui/message.png",ig.ue.Pf.Xn,8,48,128,80,2,1),N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.JUMPY},PRE_HIDDEN:{state:{alpha:0.5},time:0.3,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0.4,Ma:0},time:0.1,p:KEY_SPLINES.LINEAR}},ip:0,gN:0,text:s,f:function(){this.parent();this.j("HIDDEN",
j);this.F(ig.k.za,ig.k.gb);this.text=new sc.ea(ig.lang.get("sc.gui.msg.private"));this.text.F(ig.k.za,ig.k.W);this.text.l(0,4);this.m(this.text);this.v(ig.g.width,32);this.rb(ig.g.width,16);sc.K.Na(sc.q.message,this)},efa:function(a,c){this.ip=a;this.gN=0;this.ip==sc.MH.OPEN_UP&&this.text.fa(ig.lang.get("sc.gui.msg.private"));a.Bq?this.bd(0,a.Bg||0,a.Bq,KEY_SPLINES.EASE_OUT):this.l(0,a.Bg||0);this.text.bd(0,this.ip.cga,0.1,KEY_SPLINES.EASE_IN_OUT);this.ip.jx&&this.j("PRE_HIDDEN");this.Ab.handle&&
this.Ab.handle.stop();if(!c&&!sc.q.c3()){this.Ab.handle=s;this.ip==sc.MH.OPEN_UP?this.Ab.open.play():this.ip==sc.MH.CLOSE_DOWN&&this.Ab.close.play()}},cLa:function(){return this.ip==sc.MH.OPEN_UP&&this.gN>=0.3},update:function(){if(this.ip){this.gN=this.gN+ig.g.Da;if(this.ip.kc)this.gN>=this.ip.kc&&this.efa(sc.MH.CLOSE_DOWN);else if(this.ip.yC){this.v(ig.g.width,32);this.rb(ig.g.width,16);var a=(1+Math.sin(this.gN*Math.PI*3.6)).Vb(0,1);this.a.Vc=a;this.text.a.Vc=a;ig.g.tl&&sc.q.message.cfb()}else if(this.ip.Bq){a=
this.gN;this.a.Vc=1;this.text.a.Vc=1;a=a/this.ip.Bq;a=Math.min(a,1);a=KEY_SPLINES.EASE_OUT.get(a);this.ip.inverse&&(a=1-a);this.v(ig.g.width,Math.floor(32*(1-a)+310*a));if(this.ip.inverse&&a<=0){this.ip=s;this.rb(ig.g.width,16);this.j("HIDDEN");sc.q.message.fF()}else if(!this.ip.inverse&&a>=1){this.ip=s;sc.q.message.fF()}}}},va:function(a){var c=this.a.size.x,d=this.a.size.y,e=(c-200)/2;this.yFa.Xa(a,200,16,"upper",e,0);this.yFa.Xa(a,200,16,"lower",e,d-16);var h=d-32;if(h>1){a.ho().wd(0.9);d=Math.min(48,
Math.floor(h/2));e=Math.min(48,h-d);h=h-d-e;a.Rj(this.uFa.eu(0),0,16,0,0,c,d);a.Rj(this.uFa.eu(1),0,16+d+h,0,48-e,c,e);h>0&&a.Ec("#001428",0,16+d,c,h);a.Po()}},lb:function(a,c,d){if(c==sc.be.Qia){this.j("DEFAULT");a=d?ig.lang.get("sc.gui.msg.outgoing"):ig.lang.get("sc.gui.msg.incoming");this.text.fa(a);this.efa(sc.MH.BLINK);this.Ab.handle=d?this.Ab.u4.qy():this.Ab.zbb.qy()}else if(c==sc.be.KAa)this.efa(sc.MH.OPEN_UP);else if(c==sc.be.gya)this.efa(sc.MH.PRE_CLOSE,d);else if(c==sc.be.aya){this.Ab.handle&&
this.Ab.handle.stop();!d&&!sc.q.c3()&&this.Ab.d8a.play();this.j("HIDDEN");sc.q.message.fF()}}});ig.XXa=ig.X.extend({N:{DEFAULT:{state:{},time:0.5,p:KEY_SPLINES.EASE_IN}},yN:w,qb:{},bt:{},$E:s,MV:s,iX:s,Bp:[],t$:s,sT:s,qZ:64,Cmb:8,f:function(){this.parent();this.a.size.x=ig.g.width;this.a.size.y=ig.g.height;this.sT=new ig.Rw.BTa;this.sT.F(ig.k.fb,ig.k.xb);this.m(this.sT);this.sT.gi=1E7;this.MV=new ig.Rw.aM(this,s,j,-1E3);this.MV.l(-104,0);this.m(this.MV);this.iX=new ig.Rw.aM(this,s,w,-1E3);this.iX.l(ig.g.width-
24,0);this.m(this.iX);this.$E=new sc.cYa;this.$E.F(ig.k.za,ig.k.gb);this.$E.l(0,-80);this.m(this.$E);this.$E.hide(j);sc.K.Na(sc.q.message,this)},update:function(){if(this.yN&&ig.g.tl){this.yN=w;sc.q.message.fF()}},lb:function(b,c,d){if(c==sc.be.Qia)this.yN=w;else if(c==sc.be.jza)if(this.yN)sc.q.message.fF();else{ig.ua.ed(0);this.Ko()}else if(c==sc.be.Qza){var e=d;this.bt[e]=new ig.Rw.qZa(this,b.E9a(e),b.getExpression(e),b.RU(e)==sc.DB.LEFT,b.epa(e),b.xIa(e));this.qb[e]=new ig.Rw.aM(this,e,b.RU(e)==
sc.DB.LEFT,b.epa(e));this.m(this.bt[e]);this.m(this.qb[e]);this.j9(this.bt[e]);this.$E.hide()}else if(c==sc.be.Sza){e=d;this.bt[e].remove();this.qb[e].remove();delete this.bt[e];delete this.qb[e];this.j9()}else if(c==sc.be.Rza){var e=d,h=b.epa(e),k=b.RU(e)==sc.DB.LEFT,d=this.bt[e],l=this.qb[e];d.an!=k&&l.DT();d.gi=h;l.gi=h;d.setExpression(b.getExpression(e));d.zPa(b.xIa(e));l.Gua(k);d.Gua(k);this.j9()}else if(c==sc.be.pya){e=d;this.bt[e].setExpression(b.getExpression(e),j)}else if(c==sc.be.wza){this.yN=
w;e=d.ko?ig.Gg.vj.cq:ig.Gg.vj.AH;h=a();this.$E.uh(d.text,e,h,this.Dsa.bind(this))}else if(c==sc.be.Kxa)this.$E.hide();else if(c==sc.be.pia){var e=d.name,c=ig.g.width-256,m=2,k=h=-1E3;for(l in this.qb){this.qb[l].an?k=Math.max(k,this.qb[l].gi):h=Math.max(h,this.qb[l].gi);m-- >0||(c=c-this.qZ)}c=Math.min(c,175);l=e?this.qb[e]:d.left?this.MV:this.iX;c=l.t5a(c,d.text);d=c.a.size.y+4;l=this.Bp.length;for(m=w;l--;){var n=this.Bp[l];n.ofa();m=m||n.bea.gi<(n.bea.an?k:h);if(d+n.a.size.y>128||m&&d+n.a.size.y>
80){n.bd(n.a.i.x,n.a.i.y+n.a.size.y,0.2,KEY_SPLINES.EASE_OUT);n.j("HIDDEN",w,j);this.Bp.splice(l,1)}else{n.bd(n.a.i.x,d,0.2,KEY_SPLINES.EASE_OUT);n.j("SUB")}d=d+(n.a.size.y+2)}this.Bp.push(c);e||this.j9()}else if(c==sc.be.wAa){e=d.name;this.t$=new sc.WTa(d.options,this.bt[e].a.i.x+64,this.bt[e].a.i.y+128);this.m(this.t$)}else if(c==sc.be.Ixa){for(e in this.bt)if(!d||b.RU(e)==d){this.bt[e].remove();this.qb[e].remove();delete this.bt[e];delete this.qb[e]}(!d||d==sc.DB.LEFT)&&this.MV.DT();(!d||d==sc.DB.RIGHT)&&
this.iX.DT();this.t$&&this.t$.remove()}for(var o in this.bt)break;this.sT.j(o&&!b.ucb()?"DEFAULT":"HIDDEN")},Dsa:function(){ig.g.tl||sc.q.message.gp?sc.q.message.fF():this.yN=j},DT:function(){for(var a=this.Bp.length;a--;)this.Bp[a].j("HIDDEN",w,j);this.Bp=[]},Ko:function(){if(sc.q.message.qT)this.$E.Ko();else{var a=this.Bp.length-1;a>=0&&this.Bp[a].Ko()}},j9:function(a){this.a.children.sort(function(a,b){var c=a.T.gi||0,d=b.T.gi||0;a.T.tqa||(c=c+1E5);b.T.tqa||(d=d+1E5);return d-c});var c=sc.q.message,
d=0,e=0,h;for(h in this.bt)c.RU(h)==sc.DB.LEFT?e++:d++;e=0+(e==1?this.qZ/2:0);d=ig.g.width-128-(d==1?this.qZ/2:0);this.MV.HJa()&&(e=e+48);this.iX.HJa()&&(d=d-48);for(var k=c.yu?22:0,l=this.a.children,m=l.length;m--;){var n=l[m],o=n.T;if(!o.tqa&&!n.qj&&(h=o.name)&&this.bt[h]){var t;if(c.RU(h)==sc.DB.LEFT){t=e;e=e+this.qZ}else{t=d;d=d-this.qZ}if(o==a||o.a.pab()==0){o.l(t,k);this.qb[h].l(t,k)}else{var r,o=Math.abs(n.i.x-t)>200?0.6:0.2;r=KEY_SPLINES.EASE_OUT;n.bd(t,k,o,r,0,j);this.qb[h].bd(t,k,o,r,0,
j)}}}}});ig.Rw.aM=ig.X.extend({name:s,tqa:j,an:w,gi:0,Az:new ig.da("media/sound/hud/dialog-beep-2.ogg",1,0.02),N:{DEFAULT:{state:{},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN_LEFT:{state:{alpha:0,offsetX:-32},time:0.3,p:KEY_SPLINES.EASE_IN},HIDDEN_RIGHT:{state:{alpha:0,offsetX:32},time:0.3,p:KEY_SPLINES.EASE_IN}},f:function(a,c,d,e){this.parent();this.v(128,128);this.a.align.y=ig.k.xb;this.Ub=a;this.name=c;this.an=d;this.gi=e;this.j(this.an?"HIDDEN_LEFT":"HIDDEN_RIGHT",j);this.j("DEFAULT");if(!this.name)this.gi=
-1E3},t5a:function(b,c){var d=this.an?sc.os.ev.Cja:sc.os.ev.Dja,e=a(),d=new sc.dYa(b,d,c,e,this,this.Az);d.F(this.an?ig.k.fb:ig.k.ha,ig.k.xb);d.l(112,2);this.Ub.yN=w;d.Mua(this.Ub.Dsa.bind(this.Ub));this.m(d);d.j("HIDDEN",j);d.j("DEFAULT");d.ol()&&this.Ub.Dsa();return d},HJa:function(){return this.a.children.length>0},DT:function(){for(var a=0;a<this.a.children.length;a++)this.a.children[a].j("HIDDEN",j,j)},Gua:L("an"),remove:function(){this.j(this.an?"HIDDEN_LEFT":"HIDDEN_RIGHT",w,j);for(var a=0;a<
this.a.children.length;++a)this.a.children[a].j("HIDDEN",w,j)}});ig.Rw.qZa=ig.X.extend({name:s,Nc:s,Wg:s,an:w,gi:0,n:0,kh:s,N:{DEFAULT:{state:{Ia:-1},time:0.3,p:KEY_SPLINES.EASE_OUT},DEFAULT_RIGHT:{state:{Ia:1},time:0.3,p:KEY_SPLINES.EASE_OUT},HIDDEN_LEFT:{state:{Ia:-1,alpha:0,offsetX:-32},time:0.3,p:KEY_SPLINES.EASE_IN},HIDDEN_RIGHT:{state:{Ia:1,alpha:0,offsetX:32},time:0.3,p:KEY_SPLINES.EASE_IN}},f:function(a,c,d,e,h,k){this.parent();this.v(128,128);this.rb(64,64);this.a.align.y=ig.k.xb;this.Ub=
a;this.name=c.name;this.Nc=c;this.Wg=d;this.an=e;this.gi=h;this.j(this.an?"HIDDEN_LEFT":"HIDDEN_RIGHT",j);this.j(this.an?"DEFAULT":"DEFAULT_RIGHT");k&&this.zPa(k)},Gua:function(a){this.an=a;this.j(this.an?"DEFAULT":"DEFAULT_RIGHT",j);this.kh&&this.kh.j(this.an?"DEFAULT":"DEFAULT_RIGHT")},zPa:function(a){if(!a&&this.kh){this.kh.j(this.an?"HIDDEN_LEFT":"HIDDEN_RIGHT",w,j);this.kh=s}else if(!this.kh&&a){this.kh=new sc.ea(a);this.kh.a.N={DEFAULT:{state:{Ia:-1},time:0.3,p:KEY_SPLINES.EASE},DEFAULT_RIGHT:{state:{Ia:1},
time:0.3,p:KEY_SPLINES.EASE},HIDDEN_LEFT:{state:{Ia:-1,alpha:0,offsetY:-10},time:0.3,p:KEY_SPLINES.EASE},HIDDEN_RIGHT:{state:{Ia:1,alpha:0,offsetY:-10},time:0.3,p:KEY_SPLINES.EASE}};this.kh.F(ig.k.za,ig.k.xb);a=0;this.kh.a.size.x>90&&(a=this.kh.a.size.x-90);this.kh.l(a,2);this.m(this.kh);this.kh.j(this.an?"HIDDEN_LEFT":"HIDDEN_RIGHT",j);this.kh.j(this.an?"DEFAULT":"DEFAULT_RIGHT")}else this.kh&&this.kh.fa(a)},setExpression:function(a,c){if(c||this.Wg!=a){this.Wg=a;this.n=0}},remove:function(){this.j(this.an?
"HIDDEN_LEFT":"HIDDEN_RIGHT",w,j);for(var a=0;a<this.a.children.length;++a)this.a.children[a].j(this.an?"HIDDEN_LEFT":"HIDDEN_RIGHT",w,j)},update:function(){this.n=this.n+ig.g.Da},va:function(a){var c=this.Nc.data;sc.X7.Kna(a,this.Nc,this.Wg,this.n,(128-c.face.width)/2,128-c.face.height)}});sc.X7={};sc.X7.Kna=function(a,c,d,e,h,k,l,m){var n=c.data,c=c.Saa,o=n.face.parts,d=n.face.expressions[d],t,r;if(l){t=n.face.centerX-Math.floor(l/2);r=n.face.centerY-Math.floor(m/2)}if(d){var n=d.anim,p=d.time,
q=d.repeat||w,x=d.faces,d=s;if(n){d=Math.floor(e/p);d=q?d%n.length:d.Vb(0,n.length-1);d=x[n[d]]}else d=x[0];for(q=n=e=0;q<d.length;++q){var p=o[q][d[q]],x=p.destX+e,y=p.destY+n;if(l){if(p.hideOnClip||t>=x+p.width||t+l<=x||r>=y+p.height||r+m<=y)continue;var z=Math.max(0,t-x),u=Math.max(0,r-y),v=Math.min(0,t+l-x-p.width)-z,A=Math.min(0,r+m-y-p.height)-u;a.ia(c,h-t+z+x,k-r+u+y,p.srcX+z,p.srcY+u,p.width+v,p.height+A)}else a.ia(c,h+x,k+y,p.srcX,p.srcY,p.width,p.height);e=e+(p.subX||0);n=n+(p.subY||0)}}}});
ig.G=j;
ig.I("game.feature.msg.gui.message-board").J("impact.feature.gui.gui","game.feature.gui.base.boxes","game.feature.gui.base.text").H(function(){sc.bYa=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.1,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.EASE_IN}},text:s,f:function(){this.parent();this.text=new sc.ea("WHATEVER",{maxWidth:230,textAlign:ig.Gg.vj.AH,bestRatio:10,optimize:j});this.text.F(ig.k.fb,ig.k.W);this.m(this.text);this.j("HIDDEN",j)},uh:function(b,d,e,h){var k=0,
l=0;this.text.Tib(d);this.text.Uib(e);this.text.df.AA=h;this.text.l(0,l);this.text.fa(b);l=l+this.text.a.size.y;k=Math.max(k,this.text.a.size.x);this.v(k,l);this.j("HIDDEN",j);this.j("DEFAULT",w,w,s,e==ig.rd.Nd.We?a:0)},ol:function(){return this.text.df.ol()},Ko:function(){this.text.finish()}});var a=0.1,b=Vec2.create();sc.cYa=ig.X.extend({N:{DEFAULT:{state:{alpha:1},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0,Ma:0.1,Ia:0.5},time:0.2,p:KEY_SPLINES.LINEAR}},vc:s,content:s,Hc:{start:Vec2.create(),
end:Vec2.create(),n:0},f:function(){this.parent();this.vc=new sc.os(8,8,sc.os.ev.NONE);this.m(this.vc);this.content=new sc.bYa;this.content.F(ig.k.fb,ig.k.W);this.m(this.content)},uh:function(b,d,e,h){this.content.uh(b,d,e,h);b=this.content.a.size;d=b.x+20;e=b.y+12;d=Math.max(240,d);e=Math.max(36,e);this.content.l((d-b.x)/2,(e-b.y)/2);if(this.a.fj=="HIDDEN"){this.j("DEFAULT");this.v(d,e)}else{Vec2.assign(this.Hc.start,this.a.size);Vec2.Sa(this.Hc.end,d,e);this.Hc.n=a}this.content.ol()&&h()},Ko:function(){this.content.Ko()},
v:function(a,b){this.parent(a,b);this.rb(a/2,b/2);this.vc.v(a,b)},update:function(){if(this.Hc.n){this.Hc.n=this.Hc.n-ig.g.Da;if(this.Hc.n<0)this.Hc.n=0;var c=1-this.Hc.n/a,c=KEY_SPLINES.EASE_IN_OUT.get(c),c=Vec2.Zm(this.Hc.start,this.Hc.end,c,b);this.v(c.x,c.y)}},hide:function(a){this.j("HIDDEN",a)}})});ig.G=j;
ig.I("game.feature.msg.msg-steps").J("impact.base.action","impact.base.event","game.feature.msg.message-model","game.feature.character.character","game.feature.gui.widget.demo-stats","game.feature.gui.widget.demo-highscore","game.feature.msg.gui.dream-msg").H(function(){ig.ma.SHOW_MSG=ig.na.extend({oj:s,Wg:s,message:s,gp:w,Qv:0,s:new ig.u({attributes:{oj:{c:"PersonExpression",d:"Talking person"},message:{c:"LangLabel",d:"Message to display",mq:j},gp:{c:"Boolean",d:"Automatically continue after message"}},
label:function(){return"<em>"+wmPrint("PersonExpression",this.oj)+"</em>: <i>"+wmPrint("LangLabel",this.message)+"</i>"+(this.gp?", <i>autoContinue</i>":"")}}),f:function(a){if(a.person&&a.person.person){this.oj=a.person.person;this.Wg=a.person.expression}else this.oj=a.person;this.message=new ig.Oa(a.message);this.gp=a.autoContinue||w;ig.Re&&ig.Re.Ky("MSG "+this.oj,this.message);if(this.oj=="main.lea"&&a.message&&a.message.en_US)this.Qv=(this.Qv=a.message.en_US.match(/hi[.!?]/gi))?this.Qv.length:
0},start:function(){this.Qv&&sc.ta.cc("misc","hiCount",this.Qv||0);this.Wg&&sc.q.message.setExpression(this.oj,this.Wg);sc.q.message.AX(this.oj,this.message,this.gp||this.Ek&&this.Ek instanceof ig.ma.SHOW_CHOICE);ig.Re&&ig.Re.ND("MSG "+this.oj,this.message)},xa:function(){return!sc.q.message.UC()}});ig.ma.RING_PRIVATE_MSG=ig.na.extend({u4:w,s:new ig.u({attributes:{u4:{c:"Boolean",d:"If true: this is an outgoing call"}}}),f:function(a){this.u4=a.outgoing},start:function(){sc.q.message.cPa(this.u4)},
xa:function(){return!sc.q.message.UC()}});ig.ma.START_PRIVATE_MSG=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.q.message.ZKa()?sc.q.message.nRa():sc.q.message.cPa()},xa:function(){if(!sc.q.message.UC()){if(!sc.q.message.ZKa())return j;sc.q.message.nRa()}return w}});ig.ma.END_PRIVATE_MSG=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.q.message.pHa()},xa:function(){return!sc.q.message.UC()}});ig.ma.SHOW_OFFSCREEN_MSG=ig.na.extend({RLa:s,message:s,gp:w,s:new ig.u({attributes:{$q:{c:"String",
d:"Side to display message at.",Y:sc.DB},message:{c:"LangLabel",d:"Message to display",mq:j},gp:{c:"Boolean",d:"Automaticallt continue after message"}},label:function(){return"<em>OFFSCREEN ("+(this.$q=="LEFT"?"left":"right")+")</em>: <i>"+wmPrint("LangLabel",this.message)+"</i>"+(this.gp?", <i>autoContinue</i>":"")}}),f:function(a){this.RLa=a.side=="LEFT";this.message=new ig.Oa(a.message);this.gp=a.autoContinue||w;ig.Re&&ig.Re.Ky("MSG Offscreen",this.message)},start:function(){sc.q.message.sjb(this.RLa,
this.message,this.gp||this.Ek&&this.Ek instanceof ig.ma.SHOW_CHOICE);ig.Re&&ig.Re.ND("MSG Offscreen",this.message)},xa:function(){return!sc.q.message.UC()}});ig.ma.SHOW_CHOICE=ig.na.extend({oj:s,Wg:s,options:[],Jg:{},s:new ig.u({attributes:{oj:{c:"PersonExpression",d:"Talking person"},options:{c:"ChoiceOptions",d:"List of options",d9:j}},MI:function(a){return a=="_end"?"END_SHOW_CHOICE":this.options[a]?"Choice: "+wmPrint("LangLabel",this.options[a].label):"???"}}),f:function(a){this.oj=a.person&&
a.person.person;this.Wg=a.person&&a.person.expression;for(var a=a.options||[],b=0;b<a.length;++b){this.options[b]={label:new ig.Oa(a[b].label),Cs:new ig.ce(a[b].activeCondition)};ig.Re&&ig.Re.Ky("Choice "+b,this.options[b].label)}},start:function(){this.Wg&&sc.q.message.setExpression(this.oj,this.Wg);sc.q.message.ijb(this.oj,this.options)},xa:function(){return!sc.q.message.UC()},IC:function(){for(var a=[],b=0;b<this.options.length;++b)a.push(b);return a},Nx:function(){return this.Jg[sc.q.message.LLa]||
this.Ek}});ig.ma.ADD_MSG_PERSON=ig.na.extend({Nc:s,Wg:s,$q:0,gi:0,xN:w,name:s,s:new ig.u({attributes:{oj:{c:"PersonExpression",d:"Person + Expression to add"},name:{c:"String",d:"Name to display under portrait if any",U:j},$q:{c:"String",d:"Side to display Person at.",Y:sc.DB},gi:{c:"Number",d:"Determines the order in which people are displayed on one side. LOWER values are in FRONT"},xN:{c:"Boolean",d:"Clear the side before adding the person"}}}),f:function(a){this.Nc=new sc.mH(a.person.person);
this.Wg=a.person.expression;this.$q=sc.DB[a.side];this.gi=a.order;this.xN=a.clearSide;this.name=a.name||s},Qa:function(){this.Nc.zc()},start:function(){this.xN&&sc.q.message.xN(this.$q);sc.q.message.XEa(this.Nc,this.Wg,this.$q,this.gi,this.name)}});ig.ma.REMOVE_MSG_PERSON=ig.na.extend({oj:s,s:new ig.u({attributes:{oj:{c:"String",d:"Person to remove",Y:"characters"}}}),f:function(a){this.oj=a.person},start:function(){sc.q.message.Ugb(this.oj)}});ig.ma.SET_MSG_EXPRESSION=ig.na.extend({oj:s,Wg:s,s:new ig.u({attributes:{oj:{c:"PersonExpression",
d:"Person + Expression to change"}}}),f:function(a){this.oj=a.person.person;this.Wg=a.person.expression},start:function(){sc.q.message.setExpression(this.oj,this.Wg)}});ig.ma.CLEAR_MSG=ig.na.extend({$q:s,s:new ig.u({attributes:{$q:{c:"String",d:"Side to clear",Y:sc.jia,ub:"ALL"}}}),f:function(a){this.$q=sc.jia[a.side]},start:function(){sc.q.message.xN(this.$q)}});ig.ma.SHOW_CENTER_MSG=ig.na.extend({Ou:s,text:s,s:new ig.u({attributes:{Ou:{c:"LangLabel",d:"Title of Box"},text:{c:"LangLabel",d:"Message in Box",
mq:j}},width:500}),f:function(a){this.Ou=new ig.Oa(a.titleText);this.text=new ig.Oa(a.text);ig.Re&&ig.Re.Ky("Center MSG Title",this.Ou);ig.Re&&ig.Re.Ky("Center MSG Content",this.text)},start:function(a){a.yb=w;var b=new sc.RL(this.Ou.toString()+"\n"+this.text.toString(),{maxWidth:300,speed:ig.rd.Nd.FASTEST},"black",0.9,function(){a.yb=j});ig.T.Mc(b);ig.Re&&ig.Re.ND("Center MSG Title",this.Ou);ig.Re&&ig.Re.ND("Center MSG Content",this.text)},xa:function(a){return a.yb}});ig.ma.SHOW_DREAM_MSG=ig.na.extend({Ou:s,
text:s,s:new ig.u({attributes:{text:{c:"LangLabel",d:"Message in Box",mq:j},P:{c:"Entity",d:"Entity the dream text will be displayed above or below. Text will be centered on screen if not specified",U:j},mw:{c:"String",d:"Whether to display text above or below entity.",Y:sc.MY,ub:"TOP"},offset:{c:"Vec2",d:"Offset added to position"}},width:500}),f:function(a){this.text=new ig.Oa(a.text);ig.Re&&ig.Re.Ky("Dream Text",this.text);this.P=a.entity;this.mw=sc.MY[a.posType]||sc.MY.TOP;this.offset=a.offset},
start:function(a,b){a.n=0;var c=ig.Ra.pd(this.P,b),c=new sc.OUa(c,this.mw,this.offset,this.text.toString(),{maxWidth:400,speed:ig.rd.Nd.fja,textAlign:ig.Gg.vj.cq},function(){a.n=0.2});ig.T.Mc(c);ig.Re&&ig.Re.ND("Dream Text",this.text)},xa:function(a){if(a.n){a.n=a.n-ig.g.ga;if(a.n<=0)return j}return w}});sc.Gja={TUTORIAL:{vjb:j,title:"sc.gui.bigChoice.tutorial.title",hTa:"sc.gui.bigChoice.tutorial.yes",JMa:"sc.gui.bigChoice.tutorial.no"},GENERIC:{title:"sc.gui.bigChoice.generic.title",hTa:"sc.gui.bigChoice.generic.yes",
JMa:"sc.gui.bigChoice.generic.no"}};ig.ma.SHOW_TUTORIAL_START=ig.na.extend({S3:s,title:s,content:s,$Ja:s,Jg:{},s:new ig.u({attributes:{S3:{c:"String",d:"Type of Message",Y:sc.Gja,ub:"TUTORIAL"},title:{c:"LangLabel",d:"Title of Toturial"},content:{c:"LangLabel",d:"Content of Tutorial",mq:j},xc:{c:"Image",d:"Image to be shown over content text",U:j}},MI:function(a){switch(a){case "acceptStep":return"on Accept";case "cancelStep":return"on Cancel";case "_end":return"Tutorial End"}return"???"},width:500}),
f:function(a){this.S3=sc.Gja[a.msgType]||sc.Gja.TUTORIAL;this.title=new ig.Oa(a.title);this.content=new ig.Oa(a.content);this.$Ja=a.image;ig.Re&&ig.Re.Ky("Tutorial MSG Title",this.title);ig.Re&&ig.Re.Ky("Tutorial MSG Content",this.content)},start:function(a){if(this.S3.vjb&&sc.options.get("skip-tutorials")){a.yb=j;a.accept=w}else{a.yb=w;a.accept=w;var b=new sc.K1a(this.S3,this.title.toString(),this.content.toString(),this.$Ja,function(b){a.yb=j;a.accept=b});ig.T.Mc(b);ig.Re&&ig.Re.ND("Tutorial MSG Title",
this.title);ig.Re&&ig.Re.ND("Tutorial MSG Content",this.content)}},xa:function(a){return a.yb},IC:function(){return["acceptStep","cancelStep"]},Nx:function(a){return a.accept?this.Jg.acceptStep?this.Jg.acceptStep:this.Ek:this.Jg.cancelStep?this.Jg.cancelStep:this.Ek}});ig.ma.SHOW_MODAL_CHOICE=ig.na.extend({text:s,options:[],Jg:{},s:new ig.u({attributes:{text:{c:"LangLabel",d:"Text of modal dialog"},options:{c:"ModalChoiceOptions",d:"All the options of the modal dialog"}},MI:function(a){return a==
"_end"?"END_MODAL_DIALOG_CHOICE":this.options[a]?"Choice: "+wmPrint("LangLabel",this.options[a].label):"???"}}),f:function(a){this.text=new ig.Oa(a.text);for(var a=a.options||[],b=0;b<a.length;++b){this.options[b]=new ig.Oa(a[b].label);ig.Re&&ig.Re.Ky("Modal Choice "+b,this.options[b])}},start:function(a){a.yb=w;a.OFa=s;sc.rn.cva(this.text.toString(),sc.qs.NONE,this.options,function(b){a.yb=j;a.OFa=b.data})},xa:function(a){return a.yb},IC:function(){for(var a=[],b=0;b<this.options.length;++b)a.push(b);
return a},Nx:function(a){return this.Jg[a.OFa]||this.Ek}});ig.ma.SHOW_TUTORIAL_MSG=ig.na.extend({i:s,size:s,text:s,direction:s,J$:0,s:new ig.u({attributes:{text:{c:"LangLabel",d:"Tutorial Text description",mq:j},i:{c:"Vec2",d:"Marker Square position"},size:{c:"Vec2",d:"Marker Square size"},direction:{c:"String",d:"Direction to show text relative to marker square.",Y:sc.WH},J$:{c:"Number",d:"Point where text line touches marker box. Between 0 to 1. 0= left corner, 1=right corner.",ub:0.5},uL:{c:"Boolean",
d:"If true: Stop time while displaying the message"}},width:500}),f:function(a){this.text=new ig.Oa(a.text);this.i=a.pos;this.size=a.size;this.direction=sc.WH[a.direction]||sc.WH.TOP_LEFT;this.J$=a.connectPos||0;this.uL=a.stopTime||w},start:function(a){a.yb=w;var b=new sc.wBa(this.i.x,this.i.y,this.size.x,this.size.y,this.text.toString(),this.direction,this.J$,this.uL,function(){a.yb=j});ig.T.Mc(b)},xa:function(a){return a.yb}});var a={PLAYER:function(a){ig.t.wb.je(ig.Rb.CENTER,a)},CROSSHAIR:function(a){var b=
ig.t.wb.T.Lg;b&&b.je(ig.Rb.CENTER,a)},ENEMY:function(a){for(var b=ig.t.Bm,c=b.length,d=s;c--;){var m=b[c];if(m instanceof ig.ya.Enemy&&ig.Oj.Tr(m,-16)){d=m;break}}d=d||ig.t.wb;d.je(ig.Rb.CENTER,a)}},b=Vec3.create(),c=Vec2.create();ig.ma.SHOW_TUTORIAL_PLAYER_MSG=ig.na.extend({i:s,size:s,text:s,direction:s,J$:0,s:new ig.u({attributes:{text:{c:"LangLabel",d:"Tutorial Text description",mq:j},QD:{c:"String",d:"Marker Square position",Y:a},size:{c:"Vec2",d:"Marker Square size"},uL:{c:"Boolean",d:"If true: Stop time while displaying the message"}},
width:500}),f:function(b){this.text=new ig.Oa(b.text);this.QD=a[b.targetType]||a.PLAYER;this.size=b.size;this.uL=b.stopTime||w},start:function(a){a.yb=w;var d=this.text.toString();this.QD(b);var k=ig.g.Kv(c,b.x,b.y-b.z),l=0,l=k.x<ig.g.width/2?k.y<ig.g.height/2?sc.WH.BOTTOM_RIGHT:sc.WH.TOP_RIGHT:k.y<ig.g.height/2?sc.WH.BOTTOM_LEFT:sc.WH.TOP_LEFT;k.x=k.x-this.size.x/2;k.y=k.y-this.size.y/2;k.x=Math.round(k.x);k.y=Math.round(k.y);d=new sc.wBa(k.x,k.y,this.size.x,this.size.y,d,l,0.5,this.uL,function(){a.yb=
j});ig.T.Mc(d)},xa:function(a){return a.yb}});ig.ma.SHOW_DEMO_HIGHSCORE=ig.na.extend({zA:w,s:new ig.u({attributes:{zA:{c:"Boolean",d:"True if this is for the observatory challenge.",ub:w}}}),f:function(a){this.zA=a.observatory||w},start:function(a){a.yb=w;var b=new sc.FUa(function(){a.yb=j},this.zA);ig.T.Mc(b)},xa:function(a){return a.yb}});ig.ma.SHOW_DEMO_TIME=ig.na.extend({zA:w,s:new ig.u({attributes:{zA:{c:"Boolean",d:"True if this is for the observatory challenge.",ub:w}}}),f:function(a){this.zA=
a.observatory||w},start:function(a){a.yb=w;var b=new sc.HUa(function(){a.yb=j},this.zA);ig.T.Mc(b)},xa:function(a){return a.yb}});var d={ACTIVATED:{en_US:"[!] activated",de_DE:"[!] aktiviert"},OBTAINED:{en_US:"[!] obtained",de_DE:"[!] erhalten"},WORD:{en_US:"New word embedded: [!]",de_DE:"Neues Wort [!] eingebunden"},FRIENDSHIP:{en_US:"Contacts shared with [!]",de_DE:"Kontakte mit [!] ausgetauscht"},PARTY:{en_US:"[!] joined your party!",de_DE:"[!] tritt deiner Party bei!"}};ig.ma.SHOW_GET_MSG=ig.na.extend({text:s,
Bb:s,fTa:w,s:new ig.u({attributes:{S3:{c:"String",d:"Type of get message",Y:d},object:{c:"LangLabel",d:"Object of get message"}},width:500}),f:function(a){var b=d[a.msgType];if(b){if(a.msgType=="WORD")this.fTa=j;b=new ig.Oa(b);a=(new ig.Oa(a.object)).toString();this.text=b.toString().replace(/\[!\]/,"\\i[<]"+a+"\\i[>]")}else this.text="UNKNOWN MSG TYPE";this.Bb=ig.Zf.nP("ability-got")},Qa:function(){this.Bb.Qa()},start:function(a){a.yb=w;this.fTa&&sc.ta.cc("misc","words",1);var b=new sc.RL(this.text,
{maxWidth:300,textAlign:ig.Gg.vj.cq,speed:ig.rd.Nd.FASTEST},"white",0.3,function(){a.yb=j});b.wPa(0,-64);ig.T.Mc(b);ig.Zf.N2(this.Bb,1,ig.Yy.MEDIUM)},xa:function(a){return a.yb}});ig.ma.SHOW_SIDE_MSG=ig.na.extend({Nc:s,Wg:s,message:s,Qv:0,s:new ig.u({attributes:{oj:{c:"PersonExpression",d:"Person + Exporession of message"},message:{c:"LangLabel",d:"Message to display",mq:j}},label:function(){return"<b>SHOW_SIDE_MSG</b> <em>"+wmPrint("PersonExpression",this.oj)+"</em>: <i>"+wmPrint("LangLabel",this.message)+
"</i>"}}),f:function(a){this.Nc=new sc.mH(a.person.person);this.Wg=a.person.expression;this.message=new ig.Oa(a.message);ig.Re&&ig.Re.Ky("Side MSG "+this.Nc.name,this.message);if(this.Nc.name=="main.lea"&&a.message&&a.message.en_US)this.Qv=(this.Qv=a.message.en_US.match(/hi[.!?]/gi))?this.Qv.length:0},Qa:function(){this.Nc.zc()},start:function(){this.Qv&&sc.ta.cc("misc","hiCount",this.Qv||0);ig.Re&&ig.Re.ND("Side MSG "+this.Nc.name,this.message);sc.q.message.tjb(this.Nc,this.Wg,this.message)}});ig.ma.CLEAR_SIDE_MSG=
ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.q.message.G0()}});ig.ma.SHOW_BOARD_MSG=ig.na.extend({text:s,title:s,ko:s,s:new ig.u({attributes:{text:{c:"LangLabel",d:"Text to display.",mq:j},ko:{c:"Boolean",d:"Center the text."}}}),f:function(a){this.text=new ig.Oa(a.text);this.ko=a.center;ig.Re&&ig.Re.Ky("BOARD MSG TEXT",this.text)},start:function(){sc.q.message.gjb(this.text,this.ko);ig.Re&&ig.Re.ND("BOARD MSG TEXT",this.text)},xa:function(){return!sc.q.message.UC()}});ig.ma.CLEAR_BOARD_MSG=
ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.q.message.XI()}})});ig.G=j;
ig.I("game.feature.msg.plug-in").J("game.feature.msg.entities.event-trigger","game.feature.msg.gui.message-box","game.feature.msg.gui.dream-msg","game.feature.msg.gui.message-overlay","game.feature.msg.gui.message-board","game.feature.msg.gui.side-message-hud","game.feature.msg.message-model","game.feature.msg.msg-steps").H(function(){if(window.Yc){wm.pj.push("game.feature.msg.editors.msg-editor");wm.fo(/MSG/,"red");wm.fo(/SHOW_CHOICE/,"red")}});ig.G=j;
ig.I("game.feature.interact.screen-interact").J("impact.feature.interact.interact").H(function(){sc.At=ig.Xya.extend({EFa:s,dTa:w,nFa:w,f:function(a,b){this.EFa=a;this.dTa=b?b:w},update:function(){if(sc.V.wKa(this.dTa,this.nFa)){ig.ua.ed();this.EFa.ql()}}})});ig.G=j;
ig.I("game.feature.interact.skip-interact").J("impact.feature.interact.interact").H(function(){function a(a,c){return a.gi-c.gi}sc.tM={fya:1,Yxa:2,eja:3};sc.f0a=ig.sf.extend({qb:[],f:F(),de:function(b){if(this.qb.indexOf(b)==-1){var c=this.EU();this.qb.push(b);this.qb.sort(a);b=this.EU();if(c!=b){c&&c.ku.qW(sc.tM.Yxa);b.ku.qW(sc.tM.fya)}}},ie:function(a){var c=this.EU();this.qb.xf(a);a=this.EU();if(c!=a){c&&c.ku.qW(sc.tM.Yxa);a&&a.ku.qW(sc.tM.fya)}},EU:function(){return this.qb[0]},Hkb:function(){var a=
this.EU();a&&a.ku.qW(sc.tM.eja)}});sc.XAa=ig.ra.extend({ku:s,gi:0,f:function(a,c){this.ku=a;this.gi=c},Tc:function(){return sc.mL.EU()==this}});ig.wf(function(){return sc.mL=new sc.f0a})});ig.G=j;ig.I("game.feature.interact.plug-in").J("game.feature.interact.map-interact","game.feature.interact.gui.interact-gui","game.feature.interact.screen-interact","game.feature.interact.skip-interact").H(F());ig.G=j;
ig.I("game.feature.trade.gui.trade-menu").J("game.feature.trade.trade-model","impact.base.image","impact.feature.gui.gui","game.feature.menu.gui.menu-misc","game.feature.trade.gui.trade-dialog","game.feature.trade.gui.equip-toggle-stats").H(function(){sc.B1a=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{},time:0.3,p:KEY_SPLINES.EASE_IN}},info:s,Ot:s,lY:s,back:s,gSa:s,sga:s,tga:s,uga:s,kSa:s,Ye:s,dW:s,f:function(a){this.parent();this.v(ig.g.width,
ig.g.height);this.rb(ig.g.width/2,ig.g.height/2);this.a.zIndex=1180;this.a.Ee=j;this.kSa=a.options||s;this.sga=new sc.x1a;this.m(this.sga);this.tga=new sc.D1a;this.m(this.tga);this.uga=new sc.vBa;this.m(this.uga);this.info=new sc.Wha;this.info.alpha=1;this.info.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-21},time:0.3,p:KEY_SPLINES.EASE_IN}};this.info.F(ig.k.fb,ig.k.xb);this.m(this.info);this.lY=new ig.Lf("#000000",ig.g.width,21);this.lY.a.N={DEFAULT:{state:{},time:0.2,
p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-21},time:0.3,p:KEY_SPLINES.EASE_IN}};this.lY.j("HIDDEN",j);this.m(this.lY);this.Ye=new ig.X;this.Ye.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-21},time:0.2,p:KEY_SPLINES.LINEAR}};this.Ye.F(ig.k.ha,ig.k.W);this.Ye.v(125,21);this.Ye.l(sc.OR+5,0);this.dW=new sc.Ib(99999999,{transitionTime:0.2});this.dW.F(ig.k.ha,ig.k.W);this.dW.sa(sc.q.R.Ud,j);this.dW.l(14,7);this.Ye.m(this.dW);a=new sc.ea(ig.lang.get("sc.gui.trade.credits"),
{font:sc.Ka.Lb});a.l(0,7);this.Ye.m(a);a=new ig.Dc(this.r,488,32,12,10);a.F(ig.k.ha,ig.k.W);a.l(0,6);this.Ye.m(a);this.m(this.Ye);this.Ye.j("HIDDEN",j);this.Ot=new sc.iha;this.info.m(this.Ot);a=new sc.ec("\\i[back]"+ig.lang.get("sc.gui.menu.back"),sc.OR,j,sc.Ic.Kc,sc.qd.back);a.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetX:-sc.OR},time:0.2,p:KEY_SPLINES.LINEAR}};a.F(ig.k.ha,ig.k.W);a.Qb=function(){this.LM()}.bind(this);a.setData({description:ig.lang.get("sc.gui.trade.end")});
a.j("HIDDEN",j);this.ti=a;this.m(this.ti);a=new sc.ec("\\i[help4]"+ig.lang.get("sc.gui.trade.toggle"),s,j,sc.Ic.Kc);a.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{offsetY:-sc.Ic.Kc.height},time:0.2,p:KEY_SPLINES.LINEAR}};a.dc=s;a.Qb=function(){if(sc.Db.pJ>=0){sc.qd.submit.play();sc.Db.eSa()}}.bind(this);a.F(ig.k.ha,ig.k.W);a.Ul=j;a.l(73,0);a.setData({description:ig.lang.get("sc.gui.trade.toggleDes")});a.j("HIDDEN",j);this.gSa=a},aoa:function(){sc.K.lc(sc.Db,this);sc.K.Na(sc.Db,
this);sc.Db.aoa(this.kSa);sc.Db.Q.E0();sc.Db.Q.md(this.ti,this.b4a.bind(this));sc.Db.Q.md(this.gSa,this.j4a.bind(this));this.sga.xd();this.tga.xd();this.uga.xd();this.Ot.fa("");this.j("DEFAULT",j);this.info.j("DEFAULT");this.lY.j("DEFAULT");this.ti.j("DEFAULT");this.Ye.j("DEFAULT")},b4a:function(){return sc.V.Bo()},j4a:function(){return sc.V.rMa()},LM:function(){sc.K.lc(sc.Db,this);this.sga.Ti();this.tga.Ti();this.uga.Ti();sc.q.Ir();sc.Db.Q.E0();sc.Db.M8a();ig.ua.ed(0.2);this.ti.j("HIDDEN");this.info.j("HIDDEN");
this.lY.j("HIDDEN");this.Ye.j("HIDDEN");this.j("HIDDEN",w,j)},lb:function(a,b,c){a==sc.Db&&(b==sc.Yo.bz?this.info.fa(sc.Db.Vx,c||w?0.5:0):b==sc.Yo.AY?this.Ot.fa(sc.Db.aF,c||w?0.5:0):b==sc.Yo.nBa&&this.dW.sa(sc.q.R.Ud))}})});ig.G=j;
ig.I("game.feature.npc.entities.npc-entity").J("game.feature.npc.entities.sc-actor","game.feature.character.character","game.feature.interact.map-interact","game.feature.trade.gui.trade-menu").H(function(){var a=new ig.lr({jumpingEnabled:j,maxVel:180,weight:200}),b=new ig.rf("",[{type:"SET_FACE_TO_ENTITY",entity:{player:j},rotate:j}]),c=new ig.rf("",[{type:"SET_FACE",face:{actorAttrib:"preEventFace"},rotate:j}]);sc.mM={PUSHABLE:0,FIXED_POS:1,FIXED_FACE:2};sc.ez={BOTH:0,MALE:1,FEMALE:2};ig.ya.NPC=
sc.Zb.extend({UI:s,Nc:s,tm:[],Rra:s,$w:-1,ag:{},hidden:w,Be:s,Dv:w,sna:w,Pra:new ig.ae("npc"),Uv:{sh:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24),{FOCUS:[0,1,2,3,4,5,5,5],NEAR:[6]},0.1),S5:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24,0,240),{FOCUS:[0,0,1,2,3,0,0,0,0],NEAR:[4],AWAY:[5]},0.1),ob:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24,0,216),{FOCUS:[1,0,1,2,3,2],NEAR:[4],AWAY:[5]},0.1),Erb:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24),{FOCUS:[0,1,2,3,4,5,5,5],NEAR:[6],
AWAY:[7]},0.1),Db:new sc.Wo(new ig.tg("media/gui/map-icon.png",40,24,0,144),{FOCUS:[0,1,2,3],NEAR:[4],AWAY:[5]},0.3),zlb:new sc.Wo(new ig.tg("media/gui/map-icon.png",40,24,0,192),{FOCUS:[2],NEAR:[2],AWAY:[2]},0.3),Alb:new sc.Wo(new ig.tg("media/gui/map-icon.png",40,24,0,192),{FOCUS:[0],NEAR:[1],AWAY:[1]},0.3)},Kca:s,Wt:s,taa:w,Vy:s,rY:s,kh:s,fU:s,oaa:s,s:new ig.u({Bd:j,attributes:{UI:{c:"Character",d:"Character of NPC",Ah:"Character"},tm:{c:"NPCStates",d:"Different states of the NPC",sd:j},Znb:{c:"Analyzable",
d:"Analyzable if any.",O8:j,U:j,sd:j}},label:R(""),Fj:j,hl:"rgba(0,0,255, 0.5)"}),f:function(a,b,c,k){this.parent(a,b,c,k);this.b.v(12,12,28);this.Rra=k.npcStates;this.Be=new sc.jS(this,this,this.Uv.sh,sc.zB.BM,j);this.Be.c$=j;if(this.UI=k.characterName){if(window.Yc){this.s=this.s.copy();this.s.Fj=w}this.Nc=new sc.mH(this.UI);this.Nc.wr(this)}if(k.analyzable){this.kh=k.analyzable.text||s;this.fU=k.analyzable.active||s}else{this.kh=k.displayName||s;this.fU=k.displayTrigger||s}},uba:function(){return{type:"NPC",
kh:this.kh,fU:this.fU,isb:this.oaa}},Pq:function(b){b||f(Error("Character loading failed for character '"+this.UI));b=this.Nc.data;b.size&&Vec3.assign(this.b.size,b.size);b.shadow==g&&(b.shadow=16);this.nb=new ig.wj(b.animSheet);for(var c in b.walkAnimSet)this.iR(c,b.walkAnimSet[c]);var h=new ig.lr;h.aK(b,a);for(var k in b.configs){var l=b.configs[k];this.ag[k]=new ig.lr;this.ag[k].aK(l,h)}this.EG(c);if(c=this.Rra)for(k=0;k<c.length;++k)this.tm.push(new sc.CYa(c[k],this));this.Rra=s;if(window.Yc){if(this.tm[0]){Vec2.assign(this.face,
this.tm[0].face);this.Ei(this.ag[this.tm[0].ad])}}else this.U6(j);this.Kca=new ig.rf("",[{type:"SET_FACE_TO_ENTITY",entity:this,rotate:j}]);this.ld()},Tb:function(a){this.parent(a);this.Nc.zc();this.nb.zc();for(a=0;a<this.tm.length;++a)this.tm[a].Qa()},update:function(){if(this.sna){this.Dv=w;this.U6(w,j);this.sna=w}this.Be.T.a.Vc=this.Za.alpha;this.parent()},IK:function(){if(!this.Wt||!this.Wt.Xm()||!this.taa){this.Wt=s;if(this.od&&this.od.Gx)this.Dv=j;if(!this.od&&!this.Dv)if(this.LJa())this.Yta();
else{var a=this.tm[this.$w];a&&a.y3&&this.If(a.y3)}if(!this.od&&this.hidden&&!this.ng){sc.sm.ie(this.Be);this.Za.alpha=0;this.hide()}}},Fg:function(){this.U6(w)},Zea:function(a){if(a||this.ng){this.Dv=w;this.U6(j,j)}else this.sna=j},rX:function(a){this.ag[a]?this.Ei(this.ag[a]):ig.warn("NPC: No such config available: "+a)},bbb:function(){for(var a=this.tm.length;a--;)if(this.tm[a].jb.evaluate())break;return a!=this.$w},U6:function(a,b){var c=this.od&&this.od.Gx&&this.ng;if(!(this.Dv||this.od&&this.od.Gx&&
!this.ng)){for(var k=this.tm.length;k--;)if(this.tm[k].jb.evaluate())break;if(!c||this.tm[k]&&!this.tm[k].hidden)if(b||a||k!=this.$w){this.j6a();var l=this.tm[this.$w],m=!l||l.hidden;this.$w=k;if(k==-1){this.hidden=j;sc.sm.ie(this.Be);this.hide()}else{var k=this.tm[this.$w],n=this.ag[k.ad];k.bX!=sc.mM.PUSHABLE?n.zK("weight",-1):n.Lma();var o;if(c){o=this.od;this.xk()}this.Ei(n);this.hidden=k.hidden;c&&this.If(o);if(a)if(this.hidden)this.hide();else{this.Za.alpha=1;this.show()}this.wib(k);k.ew?sc.sm.de(this.Be):
sc.sm.ie(this.Be);if(a||m&&this.hidden&&this.ng){this.l(k.position.x-this.b.size.x/2,k.position.y-this.b.size.y/2,k.position.z);Vec2.assign(this.face,k.face)}else{if(m&&this.ng){if(l){this.l(l.position.x-this.b.size.x/2,l.position.y-this.b.size.y/2,l.position.z);Vec2.assign(this.face,l.face)}this.show();this.Za.alpha=0;this.Pra.Ya("appear",this,{duration:0});if(l&&l.zx)(l=ig.Ra.pd(l.zx))&&l.mP(this)}!c&&k.bX!=sc.mM.FIXED_FACE&&this.If(k.$Q)}}}}},wib:function(a){if(a.hD==sc.Sw.VH){this.Be.xy(this.Uv.Db);
this.Be.HQ(a.ew.rp)}else if(a.hD==sc.Sw.Fia)this.Be.xy(this.Uv.ob);else if(a.hD==sc.Sw.rM)this.Be.xy(this.Uv.S5);else{this.Be.xy(this.Uv.sh);this.Be.HQ(s)}},ajb:function(a){this.J3a();this.Be.HQ(this.rY);this.Vy=a||s;sc.sm.de(this.Be);this.Vy.TT?this.Be.xy(this.Uv.Alb):this.Be.xy(this.Uv.zlb);this.rY.fa(a.U9a(),a);this.rY.show()},k6a:function(){this.Vy=s;this.rY.hide();sc.sm.ie(this.Be)},J3a:function(){if(!this.rY)this.rY=new sc.e2a},ql:function(){var a;if(this.Vy){if(!this.Vy.TT)return w;a=this.Vy.TT;
this.Vy.c4()}else{var b=this.tm[this.$w];b.ew&&(a=b.hD==sc.Sw.VH?b.ew.event:b.ew)}if(a)this.Wt=ig.t.Vg.wq(a,ig.bl.BLOCKING,this.c4.bind(this),this.mW.bind(this),s,this,{character:this.UI})},c4:function(){var a=this.tm[this.$w];ig.t.wb.If(this.Kca);var c=sc.Ca.EO(0),h=sc.Ca.EO(1);c&&c.If(this.Kca);h&&h.If(this.Kca);if(a.bX!=sc.mM.FIXED_FACE){this.setAttribute("preEventFace",ig.copy(this.face));this.taa=j;this.Dv?this.Dv=w:this.Kva();this.If(b);this.Dv=j}a=this.kb();a.y=a.y-this.b.i.z;ig.Vd.nw(new ig.ye.$n(new ig.ye.Cia(a),
0,0),"FAST");sc.q.Zna()},mW:function(){this.Dv=w;if(!this.bbb()&&this.taa)if(this.LJa())this.If(c);else{var a=this.tm[this.$w];a&&this.If(a.$Q)}else this.U6(w,j);this.Vy&&this.Vy.mW();ig.Vd.gea("FAST");sc.q.oU()},Gva:function(){var a=this.tm[this.$w];a.ew&&a.hD==sc.Sw.VH&&a.ew.Gva()},j6a:function(){this.W6a();this.taa=w}});sc.Sw={m_a:0,VH:1,Fia:2,rM:3};sc.CYa=ig.ra.extend({s:new ig.u({attributes:{jb:{c:"VarCondition",d:"Condition for this page to be active"},position:{c:"Vec3",d:"Position of NPC for this page",
Ht:j,U:j},bX:{c:"String",d:"How NPC will react on touches and talking",l_:j,Y:sc.mM,ub:"FIXED_POS"},face:{c:"Face",d:"Face direction.",l_:j},ad:{c:"CharConfig",d:"Configuration of Charater for this page",l_:j},action:{c:"Action",d:"Action to perform constantly",sd:j,l_:j,tnb:j},hidden:{c:"Boolean",d:"If true: NPC is hidden.",l_:j},zx:{c:"Entity",d:"Door that NPC should enter from/leave to (only specify when hidden!)",U:j,l_:j},event:{c:"NPCEvent",d:"Type of npc event. e.g. simple event or trade."}}}),
jb:s,position:Vec3.create(),ad:s,face:Vec2.create(),hidden:w,zx:s,$Q:s,y3:s,bX:sc.mM.PUSHABLE,ew:s,hD:s,f:function(a,b){this.jb=new ig.ce(a.condition);if(a.position)ig.Ra.Mv(a.position,this.position);else{b.kb(this.position);this.position.z=b.b.i.z}ig.Zb.Mr(ig.Zb.Cl[a.face]||0,this.face);this.hidden=a.hidden||w;this.ad=a.config;this.zx=a.door;this.bX=sc.mM[a.reactType||"PUSHABLE"];var c=[{type:"NAVIGATE_TO_POINT",target:this.position,maxTime:0,precise:!this.zx&&this.bX==sc.mM.FIXED_POS}];this.hidden?
c.push({type:"SHOW_EFFECT",effect:{sheet:"npc",name:"disappear"},duration:0,wait:!this.zx,actionDetached:j}):c.push({type:"SET_FACE",face:a.face||0,rotate:j});this.zx&&c.push({type:"ENTER_DOOR",door:this.zx});this.$Q=new ig.rf("[NPC]",c);if(a.action&&a.action.length>0&&!this.hidden)this.y3=new ig.rf("[NPC]",a.action);if(a.event)if(a.event instanceof Array){if(a.event.length>0){c={name:"NPC EVENT",steps:a.event};this.ew=new ig.Ra(c);this.hD=sc.Sw.m_a}}else if(a.event instanceof Object)if(a.event.trade){this.ew=
new sc.A1a(a.event.trade,b);this.hD=sc.Sw.VH}else if(a.event.quest){c={name:"NPC EVENT",steps:a.event.quest};this.ew=new ig.Ra(c);this.hD=sc.Sw.Fia}else if(a.event.shop){c={name:"NPC EVENT",steps:a.event.shop};this.ew=new ig.Ra(c);this.hD=sc.Sw.rM}},Qa:function(){this.ew&&this.ew.Qa();this.$Q&&this.$Q.Qa();this.y3&&this.y3.Qa()}})});ig.G=j;
ig.I("game.feature.npc.entities.npc-runner-entity").J("game.feature.npc.entities.sc-actor","game.feature.character.character","game.feature.interact.map-interact","game.feature.trade.gui.trade-menu").H(function(){var a=new ig.lr({jumpingEnabled:j,maxVel:180,weight:200,collType:ig.la.IGNORE,soundType:"none"}),b={NORTH:{x:0,y:1},EAST:{x:-1,y:0},SOUTH:{x:0,y:-1},WEST:{x:1,y:0}},c=Vec2.create(),d=Vec3.create();sc.zza=sc.Zb.extend({Pra:new ig.ae("npc"),UI:s,Nc:s,ag:{},O:{wlb:new ig.ae("scene.water")},
f:function(b,c,d,l){this.parent(b,c,d,l);this.b.v(12,12,28);this.Nc=l.character;b=this.Nc.data;b.size&&Vec3.assign(this.b.size,b.size);b.shadow==g&&(b.shadow=16);this.nb=l.animSheet;for(var m in b.walkAnimSet)this.iR(m,b.walkAnimSet[m]);m=new ig.lr;m.aK(b,a);for(var n in b.configs){c=new ig.lr;c.aK(b.configs[n],m);c.zK("weight",20);c.zK("relativeVel",l.speed);this.Ei(c);break}this.ld();this.Dbb(l.enter,l.exit,l.waypoints)},Dbb:function(a,b,c){var d=Vec3.create(),a=this.uIa(a,sc.GH.ENTER,d),m=Vec3.create(),
b=this.uIa(b,sc.GH.EXIT,m);this.l(d.x-this.b.size.x/2,d.y-this.b.size.y/2,d.z);ig.Zb.Mr(ig.Zb.Cl[a.dir]||0,this.face);this.Za.alpha=0;this.Pra.Ya("appear",this,{duration:0});a.P.mP&&a.P.mP(this);d=[{type:"NAVIGATE_TO_POINT",target:m,maxTime:0,precise:w},{type:"SHOW_EFFECT",effect:{sheet:"npc",name:"disappear"},duration:0,wait:w,actionDetached:j},{type:"ENTER_DOOR",door:b.P}];if(c)for(b=c.length;b--;){var n=c[b],m=Vec3.create();n.je(ig.Rb.BOTTOM,m);var o=n.b.size.x-this.b.size.x,n=n.b.size.y-this.b.size.y;
m.x=m.x+(Math.random()-0.5)*o;m.y=m.y+(Math.random()-0.5)*n;d.unshift({type:"NAVIGATE_TO_POINT",target:m,maxTime:0,precise:w})}a.vlb&&d.unshift({type:"WAIT",time:0.1+Math.random()*1});c=new ig.rf("[NPC]",d);this.If(c)},uIa:function(a,c,d){var l=a.qb,a=s,m=12;do a=l[Math.floor(Math.random()*l.length)];while(m--&&(!(a.type&c)||a.P.gLa&&a.P.gLa()));c=a.P;c.je(ig.Rb.BOTTOM,d);if(a.mw==sc.Y7.SIDE){l=b[a.dir];d.x=d.x+l.x*(c.b.size.x/2+this.b.size.x/2);d.y=d.y+l.y*(c.b.size.y/2+this.b.size.y/2);if(!l.x){m=
Math.max(0,c.b.size.x-64)/2;d.x=d.x+(2*Math.random()-1)*m}if(!l.y){c=Math.max(0,c.b.size.y-64)/2;d.y=d.y+(2*Math.random()-1)*c}}return a},update:function(){this.parent();for(var a=this.b,b=ig.t.Lx(a.i.x,a.i.y,a.i.z,a.size.x,a.size.y,a.size.z,this),k=b.length;k--;){var l=b[k];if(l instanceof sc.Zb){ig.Xf.Lr(l.b,a,c);Vec2.length(c,80);Vec2.add(a.ow,c)}}if(ig.mc.FO(a,j)==ig.Gd.WATER){a=this.je(ig.Rb.BOTTOM,d);this.O.wlb.eh("circularSmallSplash",a.x,a.y,a.z);this.Tb()}(sc.q.pu()||!sc.Qra.Yab())&&!ig.Oj.Tr(this,
16)&&this.Tb();this.od||this.Tb()},Tb:function(a){this.parent(a)}})});ig.G=j;
ig.I("game.feature.npc.npc-runners").J("impact.base.game").H(function(){sc.rE={};var a=[{name:"cross-worlds.triblader-male-blue",Tq:1},{name:"cross-worlds.triblader-female-purple",Tq:1},{name:"cross-worlds.hexacast-male-dark",Tq:1},{name:"cross-worlds.hexacast-male-red",Tq:1},{name:"cross-worlds.pentafist-male-dark",Tq:1},{name:"cross-worlds.pentafist-female-rasta",Tq:1},{name:"cross-worlds.quadroguard-female-gray",Tq:1},{name:"cross-worlds.quadroguard-male-black",Tq:1}];sc.rE.CROSSCENTRAL={Jz:a,
X3:80,I3:3,r5:0.5};sc.rE.CROWDED={Jz:a,X3:20,I3:3,r5:0.2};sc.rE.LIVELY={Jz:a,X3:10,I3:3,r5:0.3};sc.rE.REGULAR={Jz:a,X3:6,I3:2,r5:0.5};sc.rE.FEW={Jz:a,X3:2,I3:2,r5:0.5};sc.GH={ENTER:1,EXIT:2,ENTER_EXIT:3};sc.Y7={CENTER:1,SIDE:2};sc.BYa=ig.sf.extend({gMa:s,Nh:s,iu:s,i3:[],Ga:w,Yj:{AC:[],Iaa:0,Ev:[],Oaa:0},n:0,f6:0,e6:s,bTa:s,Lfa:s,dRa:0,f:function(){this.parent("NPC Runners")},GFa:function(){this.f6=0;this.Lfa=this.e6=s;this.i3.length=0},zua:function(a){if(this.Nh!=a){this.Nh&&this.UFa();this.Nh=a;
this.GFa();if(this.Nh){this.iu={Jz:[],Hoa:0,nra:60/this.Nh.X3};for(var a=this.Nh.Jz,c=0;c<a.length;++c){var d=a[c],e={Nc:new sc.mH(d.name),nb:s,Tq:d.Tq};this.iu.Jz.push(e);this.iu.Hoa=this.iu.Hoa+d.Tq;e.Nc.wr(this)}this.n=this.iu.nra*(0.05+Math.random()*0.1)}}},Pq:function(a,c){for(var d=this.iu.Jz,e=d.length;e--;)if(d[e].Nc==c)d[e].nb=new ig.wj(c.data.animSheet)},Yab:function(){return!!this.iu},jhb:function(){this.zua(this.gMa)},UFa:function(){if(this.iu){for(var a=this.iu.Jz,c=a.length;c--;){var d=
a[c];d.Nc.zc();d.nb.zc()}this.iu=this.Nh=s}},kqa:function(){for(var a=ig.t.CIa("NPCWaypoint"),c=a.length;c--;)a[c].kqa();sc.Cza.chb()},Lhb:function(){this.Yj.AC.length=0;this.Yj.Ev.length=0;this.Yj.Iaa=0;this.Yj.Oaa=0;for(var a=ig.t.entities,c=a.length;c--;){var d=a[c];if(d&&d.vba){var e=d.vba();if(e){for(var h=0,k=e.qb.length;k--;)h=h|e.qb[k].type;e.type=h;e.P=d;if(e.pU&&h&sc.GH.ENTER){this.Yj.AC.push(e);this.Yj.Iaa=this.Yj.Iaa+e.pU}if(e.tU&&h&sc.GH.EXIT){this.Yj.Ev.push(e);this.Yj.Oaa=this.Yj.Oaa+
e.tU}}}}this.Ga=this.Yj.AC.length>0&&this.Yj.Ev.length>0;if(this.Yj.AC.length==1&&this.Yj.Ev.length==1&&this.Yj.AC[0]==this.Yj.Ev[0])this.Ga=w},Fjb:function(){this.e6=this.cJa(w,s);this.Lfa=this.cJa(j,this.e6);this.bTa=this.Cab(this.e6.P,this.Lfa.P);var a=Math.random();this.f6=Math.ceil(Math.pow(a,2)*this.Nh.I3);this.dRa=Math.random()<=this.Nh.r5?0.8+Math.random()*0.1:0.5+Math.random()*0.1;this.cRa()},cRa:function(){var a=this.e6,c=this.Lfa,d=this.gab();ig.t.af(sc.zza,0,0,0,{enter:a,exit:c,waypoints:this.bTa,
character:d.Nc,animSheet:d.nb,speed:this.dRa});this.f6--},cJa:function(a,c){var d=a?this.Yj.Oaa:this.Yj.Iaa,e=a?this.Yj.Ev:this.Yj.AC;c&&(d=d-(a?c.tU:c.pU));for(var d=Math.random()*d,h=e.length;h--;){var k=e[h];if(k!=c){d=d-(a?k.tU:k.pU);if(d<=0)return k}}},Cab:function(a,c){return sc.Cza.Khb(a.Uy,c.Uy)},gab:function(){do for(var a,c=Math.random()*this.iu.Hoa,d=this.iu.Jz,e=d.length;e--;){var h=d[e],c=c-h.Tq;if(c<=0){a=h;break}}while(this.i3.indexOf(a)!=-1);this.i3.push(a);this.i3.length>Math.floor(this.iu.Jz.length/
2)&&this.i3.shift();return a},JK:100,BA:function(){if(this.Nh&&this.Ga&&!sc.q.pu()&&!ig.t.paused&&!ig.uu){this.n=this.n-ig.g.ga;if(this.n<=0){this.f6>0?this.cRa():this.Fjb();this.n=this.f6?0.3:this.iu.nra*(0.4+Math.random()*0.6)}}},TF:120,at:function(a){a=sc.rE[a.attributes&&a.attributes.npcRunners]||s;this.GFa();this.gMa=a;this.zua(a)},UF:120,my:function(){this.kqa();this.Lhb()},nj:function(){this.UFa()}});ig.wf(function(){return sc.Qra=new sc.BYa})});ig.G=j;
ig.I("game.feature.npc.npc-steps").J("impact.base.action","impact.base.event","game.feature.npc.npc-runners").H(function(){ig.ma.RESET_NPC=ig.na.extend({mj:s,s:new ig.u({attributes:{mj:{c:"NPC",d:"NPC to reset"}}}),f:function(a){this.mj=a.npc},start:function(a,b){var c=ig.Ra.pd(this.mj,b);if(c&&c instanceof ig.ya.NPC){c.xk();c.Zea()}}});ig.ma.SET_NPC_RUNNERS=ig.na.extend({Ms:s,s:new ig.u({attributes:{Ms:{c:"String",d:"Frequency of NPC Runners. Null = no NPC runners",Y:sc.rE,Oi:j}}}),f:function(a){this.Ms=
a.frequency},start:function(){sc.Qra.zua(sc.rE[this.Ms]||s)}});ig.ma.RESET_NPC_RUNNERS=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.Qra.jhb()}});ig.ma.SET_NPC_CONFIG=ig.na.extend({mj:s,ad:s,s:new ig.u({attributes:{mj:{c:"NPC",d:"NPC to change"},ad:{c:"String",d:"Config name to apply"}}}),f:function(a){this.mj=a.npc;this.ad=a.config},start:function(a,b){var c=ig.Ra.pd(this.mj,b);c&&c instanceof ig.ya.NPC&&c.rX(this.ad)}});ig.Ha.RESET_NPC=ig.Pa.extend({s:new ig.u({attributes:{}}),
f:F(),xa:function(a){a instanceof ig.ya.NPC&&a.Zea();return j}})});ig.G=j;
ig.I("game.feature.npc.plug-in").J("game.feature.npc.entities.sc-actor","game.feature.npc.entities.npc-entity","game.feature.npc.entities.npc-runner-entity","game.feature.npc.entities.npc-waypoint","game.feature.npc.npc-runners","game.feature.npc.npc-steps").H(function(){if(window.Yc){wm.pj.push("game.feature.npc.editors.npc-editor");wm.Vs&&(wm.Vs.npcRunners={c:"String",Y:sc.rE,d:"What kind of NPCs will be running around this map",Oi:j})}});ig.G=j;
ig.I("game.feature.player.entities.crosshair").J("impact.base.entity").H(function(){var a=Vec2.create();Vec2.create();var b=Vec3.create(),c=Vec2.create(),d=Vec2.create(),e=Vec2.create(),h=Vec2.create(),k={},l={};ig.ya.Crosshair=ig.gd.extend({offset:{x:8,y:8,z:0},XG:new ig.tg("media/entity/map-gui/crosshair.png",32,32),Rn:s,jF:s,xG:Math.PI/2,YB:0.5,gdb:Math.PI/128,q$:w,gn:0,Pz:0,kt:1,W9:1,yC:j,Q1:w,Ga:w,Tp:w,BT:0,rDa:Vec2.pc(0,1),DM:Vec2.pc(0,1),tr:[],mv:0,Kb:{r$:new ig.da("media/sound/move/targeting-charged.mp3",
0.4)},b6:0,Fob:[{x:0,y:-100,wh:3,Dd:0,yi:0},{x:70,y:-70,wh:4,Dd:0,yi:0},{x:100,y:0,wh:5,Dd:0,yi:0},{x:70,y:70,wh:4,Dd:0,yi:1},{x:0,y:100,wh:3,Dd:0,yi:1},{x:-70,y:70,wh:4,Dd:1,yi:1},{x:-100,y:0,wh:5,Dd:1,yi:0},{x:-70,y:-70,wh:4,Dd:1,yi:0}],f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.b.pp=0;this.b.v(0,0,0);this.Pz=this.YB;Vec2.Sa(this.b.i,ig.g.width/2,ig.g.height/2);this.Rn=d.thrower;this.jF=d.controller;for(a=0;a<12;a++)this.tr.push(ig.t.af(ig.ya.CrosshairDot,-1E3,-1E3,0))},
Jn:function(){this.dm(1,j)},Uoa:function(a){return Vec2.assign(a,this.DM)},yba:function(a){var a=Vec2.assign(a,this.DM),b=this.gn*(0.5-Math.random());Vec2.rotate(a,b);return a},XC:function(){return window.aj&&ig.t.Ysb||this.Tp?j:this.q$&&!this.gn&&this.jF.X2(this)&&this.Pz>this.YB},Xua:function(){this.yC=j;return this.Pz=0},Xhb:L("W9"),GQ:L("kt"),aib:function(){this.BT=0.2},wOa:function(a){this.gn=Math.min(this.xG,this.gn+this.xG*a);this.yC=this.yC||this.gn>this.xG/2*this.kt*this.W9},lQa:L("Tp"),
setActive:function(a){if(this.Ga!=a){this.Ga=a;this.jF.VMa(this);if(this.Ga)this.gn=this.xG*0.75;else{a=sc.q.Id==sc.vt.UR?2:1;this.Rn.Cf&&this.Rn.Cf.zD(0,0,a)}}},Js:function(){this.jF.KSa(this);var a=Vec2.hd(Vec2.sub(this.U8(c),this.b.i));if(Vec2.Tl(a))a.y=1;var b=Vec2.oc(a,this.rDa),e=this.gdb;if(!this.Tp&&b>2*e){this.gn=this.gn+b/2;if(this.gn>this.xG)this.gn=this.xG;this.yC=this.yC||this.gn>this.xG/2*this.kt*this.W9}Vec2.assign(this.rDa,a);Vec2.assign(this.DM,a);if(this.BT>0)this.BT=this.BT-ig.g.Da;
if(!this.Ga)this.Pz=this.YB;if(!this.Ga||ig.g.Tn<=0&&!sc.Wa.Tc())for(a=0;a<this.tr.length;++a){this.tr[a].Ja("normal",j);this.tr[a].l(-1E3,-1E3)}else{if(this.Tp)this.Pz=this.YB;this.Pz=this.Pz+ig.g.ga;if(this.gn>0){if(this.Tp)this.gn=this.gn-ig.g.Da/this.YB*this.xG*2;else{e=this.kt*this.W9;this.gn=this.gn-ig.g.ga/this.YB*this.xG*e}if(this.gn<0){this.gn=0;if(this.Pz>this.YB)this.Pz=this.YB}}this.XC();b=Vec2.Sa(d,this.b.i.x-ig.t.screen.x-ig.g.width/2,this.b.i.y-ig.t.screen.y-ig.g.height/2);e=this.jF.bIa(a,
b);if(this.jF.X2(this)&&this.Rn.Cf){e=((e-104)/40).Vb(0,1);e=e*e;this.Rn.xT.length>0&&(e=e*0.5);if(e>0){Vec2.length(b,72*e);Vec2.ab(b,this.Rn.Cf.offset)>2&&this.Rn.Cf.zD(b.x,b.y,0,this.DM.x,this.DM.y)}else this.Rn.Cf.zD(0,0,0,this.DM.x,this.DM.y)}b=this.gn/2;if(this.XC()){if(this.b6<=0)this.b6=0.1;this.b6=this.b6-ig.g.ga}else this.b6=0;e=Vec2.assign(h,this.Rn.b.i);e.x=e.x+(this.Rn.b.size.x/2-Constants.aE/2);e.y=e.y+(this.Rn.b.size.y/2-Constants.aE/2);var k;if(!b&&this.XC()){k=this.yC?"chargedBlink":
"charged";if(this.yC){this.yC=w;this.Kb.r$.play()}}else k="normal";var l=this.Tp||this.jF.X2(this)?1:0.4,p=this.gn||!this.q$?0:Math.floor((this.Pz-2*this.YB)/0.05).Vb(0,10),q=b?6:12;this.mv=0;Vec2.rotate(a,b);this.rla(e,a,l,k,p,q,3);if(b){Vec2.rotate(a,-2*b);this.rla(e,a,l,k,p,q,3)}for(;this.mv<this.tr.length;++this.mv){this.tr[this.mv].Ja("normal",j);this.tr[this.mv].l(-1E3,-1E3)}}},tj:function(){var a=this.Ta[0];if(!this.Ga||ig.g.Tn<=0&&!sc.Wa.Tc())if(this.BT>0){var b=this.U8(c);b.x=b.x+-sc.hH;
b.y=b.y+ +sc.hH;a.Ze="lighter";a.l(b.x,b.y,0);a.v(sc.hH*2,0,sc.hH*2,0);a.Vh(this.XG.xc,0,64);a.wd(this.BT/0.2)}else a.wd(0);else{var d=this.XC(),b=this.jF.X2()?1:0.4,e=0;this.gn==0&&d&&(e=4+Math.floor(Math.min(2,(this.Pz-this.YB)/0.1)));var d=this.b.i.x-16,h=this.b.i.y-this.b.i.z+16;a.Ze="source-over";a.l(d,h,0);a.v(32,0,32,0);e=this.XG.Lv(k,e);a.Vh(this.XG.xc,e.x,e.y);a.wd(b)}},Tb:function(a){for(var b=0;b<this.tr.length;b++)this.tr[b].Tb();this.parent(a)},rla:function(a,c,e,h,k,p,q){var x=this.Rn.b.i.z;
this.Rn.qP!==g&&this.Rn.qP>=0&&(x=Math.min(this.Rn.b.i.z,this.Rn.qP));var x=x+Constants.KR,y=12;Vec2.length(c,24*y);var z=ig.t.Nf.mu(l),u=[],v=ig.t.trace(z,a.x,a.y,x,c.x,c.y,Constants.aE,Constants.aE,Constants.rxa,ig.la.PROJECTILE,s,u),A=w;Vec2.assign(b,c);Vec2.ck(b,z.gf);Vec2.add(b,a);b.z=x;for(var C=0;C<u.length;++C)var B=u[C].P,A=A||B.FI||B.$O&&B.$O(b,z);y=y*Math.max(0,z.gf);Vec2.length(c,24);u=w;for(C=1;C<y+0.8;C++){u=Math.round(a.x)+c.x*(C>y-0.2?y-0.1:C);B=Math.round(a.y)+c.y*(C>y-0.2?y-0.1:
C);if(this.tr[this.mv]){this.tr[this.mv].l(u,B);this.tr[this.mv].b.i.z=x;this.tr[this.mv].b.aa=ig.t.KC(x);this.tr[this.mv].Ja(h,j,h=="chargedBlink"?"charged":s);this.tr[this.mv].Za.alpha=e;this.tr[this.mv].b.Ad.size=h=="charged"?4:0;++this.mv}else return;u=j;if(!--p)return}if((u||--p)&&v&&!A&&k&&q){Vec2.length(c,24*y);Vec2.add(a,c);x=Vec2.hj(c,z.dir);Vec2.sub(c,Vec2.ck(z.dir,2*x,d));k=Math.min(p,k);this.rla(a,c,Math.max(0.25,e*0.75),h,k,k,q-1)}},U8:function(a){Vec2.assign(a,this.Rn.b.i);a.x=Math.round(a.x)+
this.Rn.b.size.x/2;a.y=Math.round(a.y-this.Rn.b.i.z)+this.Rn.b.size.y/2-Constants.KR-Constants.aE/2;return a}});ig.ya.CrosshairDot=ig.fe.extend({Dz:{},XG:new ig.tg("media/entity/map-gui/crosshair.png",8,8,32,0),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.b.v(Constants.aE,Constants.aE,Constants.rxa);this.b.time.Gj=j;this.ld({offset:{x:0,y:0,z:(16-Constants.aE)/2},sheet:this.XG,SUB:[{name:"normal",time:1,frames:[0]},{name:"charged",time:0.07,frames:[1],repeat:w},{name:"chargedBlink",
time:0.07,frames:[2,3,1],repeat:w}]})},update:function(){this.Za.alpha=ig.g.Tn<=0&&!sc.Wa.Tc()?0:1;this.parent()}});sc.nZa=ig.ra.extend({Q1:w,X2:function(){return sc.V.oq()},bIa:function(a,b){var c=this.Q1?a:Vec2.aG(b,ig.g.height/ig.g.width,1,e);return Vec2.length(c)},VMa:function(a){if(a.Ga)this.Q1=sc.V.Zx()},KSa:function(b){if(this.Q1){if(sc.V.Zx()){var d=Vec2.hd(Vec2.sub(b.U8(c),b.b.i)),e=Vec2.Sa(a,sc.V.ke(ig.Pc.ss)*ig.g.height*0.6,sc.V.ke(ig.Pc.ts)*ig.g.height*0.6);Vec2.Zm(d,e,ig.g.Da*18);b.U8(b.b.i);
b.b.i.x=b.b.i.x+d.x;b.b.i.y=b.b.i.y+d.y}}else ig.g.QIa(b.b.i,sc.V.to(),sc.V.Vm())}});sc.uVa=ig.ra.extend({yl:Vec2.create(),Q1:w,X2:R(j),bIa:R(0),VMa:F(),KSa:function(a){Vec2.assign(a.b.i,this.yl)}})});ig.G=j;
ig.I("game.feature.player.player-level-notifier").H(function(){sc.oZa=ig.ra.extend({jrb:new ig.da("media/sound/battle/level-up.ogg"),f:F(),Ahb:function(a,b){var c=this.B$a(a,b);b.VFa();ig.t.Vg.wq(c,ig.bl.BLOCKING,this.Keb.bind(this),this.Jeb.bind(this))},Keb:function(){sc.q.s8a()},Jeb:function(){sc.q.Ir();sc.yq.gr("LEVEL_UP",{level:sc.q.R.aa})},B$a:function(a,b){var c={steps:[{type:"PLAY_SOUND",sound:"media/sound/battle/level-up.ogg",volume:1},{type:"DO_ACTION",entity:a,action:[{type:"WAIT",time:-1}]},
{type:"ADD_SLOW_MOTION",name:"levelUp",factor:0,time:0.5},{type:"WAIT",time:0.1,ignoreSlowDown:j},{type:"SET_ENTITY_STATIC_TIME",entity:a,value:j,global:j},{type:"DO_ACTION",entity:a,keepState:j,action:[{type:"SHOW_ANIMATION",anim:"levelUpPre",followUp:"levelUpStand"},{type:"WAIT",time:-1}]},{type:"SET_CAMERA_TARGET",entity:a,speed:0.6,transition:"EASE_IN_OUT",wait:j,zoom:1.5,waitSkip:0.2},{type:"ADD_GUI",name:"levelUpHud",guiInfo:{type:"LevelUpHud",settings:{deltaValues:ig.copy(b.OV)}}},{type:"SET_ZOOM_BLUR",
zoomType:"MEDIUM",fadeIn:0.1,duration:0.2,fadeOut:0.5},{type:"WAIT_UNTIL_TRUE",condition:"tmp._levelUpFinished"},{type:"DO_ACTION",entity:a,action:[{type:"SHOW_ANIMATION",anim:"levelUpPreJump"},{type:"WAIT",time:0.2},{type:"SHOW_ANIMATION",anim:"levelUpJump"},{type:"JUMP",jumpHeight:"M",wait:j,ignoreSounds:j}]},{type:"WAIT",time:0.5,ignoreSlowDown:j},{type:"CLEAR_SLOW_MOTION",name:"levelUp",time:0.1},{type:"SET_ENTITY_STATIC_TIME",entity:a,value:w,global:j}]};return new ig.Ra(c)}})});ig.G=j;
ig.I("game.feature.player.item-consumption").J("game.feature.inventory.inventory").H(function(){sc.CWa=ig.ra.extend({Kb:{Pob:new ig.da("media/sound/move/eat.ogg",1)},f:F(),zhb:function(a,b,c){if(c&&sc.Pb.getItem(c).type==sc.Hm.CONS){a=this.Hq(c);ig.t.wb.If(a)}},d5a:function(a,b,c){var d=sc.Pb.getItem(c),b=d.time||0;d.effect&&d.effect.Ya&&d.effect.Ya(a);if(d.stats){for(var a=d.stats,d=s,e=a.length,h=w;e--;){d=sc.Sg[a[e]];switch(d.change){case sc.Qf.HEAL:this.yhb(d);break;case sc.Qf.STATS:case sc.Qf.MODIFIER:h=
j}}h&&this.Chb(a,b,c)}else f(Error("Use Items must have defined a stats property"))},yhb:function(a){var b=ig.t.wb,a=a.value-1,a=a*(1+b.ba.Rl("ITEM_BOOST")),a=new sc.K7(b.ba,{value:a,absolute:w});b.aV(a)},Chb:function(a,b,c){sc.q.R.ba.Gla(a,b,c)},Hq:function(a){switch(sc.Pb.getItem(a).useSpeed||sc.uM.NORMAL){case sc.uM.NORMAL:return this.VIa(a);case sc.uM.SLOW:return this.mab(a);case sc.uM.FAST:return this.VIa(a)}},VIa:function(a){a=new ig.rf("consumeItem",[{type:"FOCUS_CAMERA",speed:1.2,transition:"EASE_IN_OUT",
zoom:1.5},{type:"SET_FACE",face:"SOUTH"},{type:"SHOW_ANIMATION",anim:"itemFetch",wait:j},{type:"SHOW_ANIMATION",anim:"itemHoldSandwich"},{type:"WAIT",time:0.2},{type:"PLAY_SOUND",sound:"media/sound/move/eat.ogg",volume:1},{type:"SHOW_ANIMATION",anim:"itemEatFast",wait:j},{type:"CONSUME_ITEM",item:a},{type:"SHOW_ANIMATION",anim:"itemEffect"},{type:"WAIT",time:0.4}]);a.Gx=j;return a},mab:function(a){a=new ig.rf("consumeItem",[{type:"FOCUS_CAMERA",speed:1.2,transition:"EASE_IN_OUT",zoom:1.5},{type:"SET_FACE",
face:"SOUTH"},{type:"SHOW_ANIMATION",anim:"itemFetch",wait:j},{type:"SHOW_ANIMATION",anim:"itemHoldSandwich"},{type:"WAIT",time:0.2},{type:"PLAY_SOUND",sound:"media/sound/move/eat.ogg",volume:1,speed:0.6},{type:"SHOW_ANIMATION",anim:"itemEatSlow",wait:j},{type:"CONSUME_ITEM",item:a},{type:"SHOW_ANIMATION",anim:"itemEffect"},{type:"WAIT",time:0.4}]);a.Gx=j;return a}})});ig.G=j;
ig.I("game.feature.player.entities.player-base").J("game.feature.combat.entities.ball","game.feature.combat.entities.combatant","game.feature.player.entities.crosshair","game.feature.player.player-level-notifier","game.feature.player.item-consumption").H(function(){sc.aAa=ig.ya.Combatant.extend({Ca:sc.Qd.PLAYER,XV:sc.kH.ORGANIC,ag:{sh:s,oq:s},qP:-1,He:{Ge:0,n:0,Joa:new ig.ae("guard"),cg:s,V$:s},f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.VIRTUAL;this.b.Xh=0;this.b.v(16,16,24);this.iR("normal",
{idle:"idle",hover:"hover",hoverMove:"hover",move:"walk",run:"run",brake:"brake",preIdle:"preIdle",damage:"damage",fall:"fall",jump:"jump"});this.iR("aiming",{idle:"aim",move:"aimMove",moveRev:"aimMoveRev",damage:"damage"});this.EG("normal");this.ag.sh=new ig.lr({walkAnims:"normal",maxVel:180,relativeVel:1,accelSpeed:0.8,friction:1.6,airFriction:0.7,hitStable:"LIGHT",jumpingEnabled:j,shadow:16,stepSfxFrames:[2,5],floatHeight:0});this.ag.oq=new ig.lr({walkAnims:"aiming",maxVel:100,accelSpeed:0.7,friction:1.6,
airFriction:0.7,hitStable:"LIGHT",faceDirFixed:j,jumpingEnabled:j,shadow:16,stepSfxFrames:0,floatHeight:0});this.Ei(this.ag.sh)},mRa:function(){var a="neutral";this.He.Ge>0.75?a=a+"4":this.He.Ge>0.5?a=a+"3":this.He.Ge>0.25&&(a=a+"2");if(a!=this.He.V$){this.He.cg&&this.He.cg.stop();this.He.V$=a;this.He.cg=this.He.Joa.Ya(a,this,{duration:-1})}},h8a:function(){if(!(this.He.Ge>=1)){this.He.cg&&this.He.cg.stop();this.He.cg=s;this.He.V$=s}},y7a:function(a){var b=this.He.Ge;this.He.Ge=this.He.Ge+a/7;if(b<=
0.75&&this.He.Ge>=1)this.He.Ge=0.99;if(this.He.Ge>=1){this.He.cg&&this.He.cg.stop();this.He.cg=this.He.Joa.Ya("guardBroken",this,{duration:-1});this.vNa&&this.vNa();this.He.n=5;this.He.Ge=1;sc.pb.WN(this,this,sc.dE.GUARD_BREAK);return j}this.He.n=1;this.mRa();return w},yOa:function(a){if(!a)if(this.He.n>0){this.He.n=this.He.n-ig.g.ga;if(this.He.n<0){this.He.n=0;if(this.He.Ge==1){this.He.cg&&this.He.cg.stop();this.He.cg=s;this.He.Ge=0}}}else if(this.He.Ge>0){this.He.Ge=this.He.Ge-ig.g.ga/10;if(this.He.Ge<
0)this.He.Ge=0}},SBa:function(a){this.parent(a);this.ySa()},UDa:function(a){this.parent(a);this.ySa()},ySa:function(){sc.q.eL(sc.pb.tcb())}})});ig.G=j;
ig.I("game.feature.player.entities.player").J("game.feature.combat.entities.ball","game.feature.player.entities.player-base","game.feature.combat.entities.combatant","game.feature.player.entities.crosshair","game.feature.player.player-level-notifier","game.feature.player.item-consumption").H(function(){function a(a){for(var b=k.length,c=0;b--;)if(a.time>=k[b]){c=b+1;break}return c=Math.min(a.bk,c)}function b(a,b){if(a[b]>0){a[b]=a[b]-ig.g.ga;a[b]<=0&&(a[b]=0)}}Vec2.create();var c={V_:"ATTACK_SPECIAL"},
d={V_:"THROW_SPECIAL"},e={V_:"GUARD_SPECIAL"},h={V_:"DASH_SPECIAL"},k=[0.25,0.6,1.2],l={gY:w,cN:w,T9:w,vk:w,He:w,td:w,X0:0,Y0:0,mR:w,$g:Vec2.create()},m={},n={};n[sc.LTa]=new ig.wj("player-xmas");ig.ya.Player=sc.aAa.extend({vpa:{qva:new ig.ae("equip.sparkling-boots")},fn:s,Kb:{WRa:[[new ig.da("media/sound/battle/airon/throw-ball-1.ogg",1),new ig.da("media/sound/battle/airon/throw-ball-2.ogg",1),new ig.da("media/sound/battle/airon/throw-ball-3.ogg",1)],[new ig.da("media/sound/battle/airon/throw-ball-heat1.ogg",
1),new ig.da("media/sound/battle/airon/throw-ball-heat2.ogg",1),new ig.da("media/sound/battle/airon/throw-ball-heat3.ogg",1)],[new ig.da("media/sound/battle/airon/cold/throw-ball-cold1.ogg",1),new ig.da("media/sound/battle/airon/cold/throw-ball-cold2.ogg",1),new ig.da("media/sound/battle/airon/cold/throw-ball-cold3.ogg",1),new ig.da("media/sound/battle/airon/cold/throw-ball-cold4.ogg",1)]],URa:[new ig.da("media/sound/battle/airon/throw-ball-charged.ogg",0.8),new ig.da("media/sound/battle/airon/throw-ball-heat-charged.ogg",
0.8),new ig.da("media/sound/battle/airon/cold/throw-ball-cold-charged.ogg",0.8)],aGa:[[new ig.da("media/sound/battle/airon/close-combat-sweep-1.ogg",1,0.1),new ig.da("media/sound/battle/airon/close-combat-sweep-2.ogg",1,0.1),new ig.da("media/sound/battle/airon/close-combat-sweep-3.ogg",1,0.1)],[new ig.da("media/sound/battle/airon/close-combat-heat-sweep-1.ogg",1,0.1),new ig.da("media/sound/battle/airon/close-combat-heat-sweep-2.ogg",1,0.1),new ig.da("media/sound/battle/airon/close-combat-heat-sweep-3.ogg",
1,0.1)],[new ig.da("media/sound/battle/airon/cold/close-combat-cold-sweep-1.ogg",1,0.1),new ig.da("media/sound/battle/airon/cold/close-combat-cold-sweep-2.ogg",1,0.1),new ig.da("media/sound/battle/airon/cold/close-combat-cold-sweep-3.ogg",1,0.1)]],bGa:[new ig.da("media/sound/battle/airon/close-combat-sweep-massive.ogg",1),new ig.da("media/sound/battle/airon/close-combat-heat-sweep-massive.ogg",1),new ig.da("media/sound/battle/airon/cold/close-combat-cold-sweep-massive.ogg",1)],Fc:[new ig.da("media/sound/battle/charge-01-short.mp3",
0.7),new ig.da("media/sound/battle/charge-02-short.mp3",0.7),new ig.da("media/sound/battle/charge-03-short.mp3",0.7)],x6a:new ig.da("media/sound/battle/charge-04.mp3",0.7)},q:s,state:0,VRa:0,QE:0,WG:Vec2.create(),fga:Vec2.create(),iU:w,KV:Vec2.create(),NN:0,Vca:3,DV:0,P3:0,sLa:Vec2.create(),d3:Vec2.create(),MF:{n:0,ug:[]},T:{},Cf:s,xT:[],Pi:{action:0,charge:0,dash:0,reaim:0,move:0},iGa:{MLa:s},St:Vec2.create(),ON:Vec2.create(),Gn:0,MN:0,kna:w,EK:0,Fc:{time:-1,YX:w,type:s,bk:0,fx:s,Ab:s,KN:s,ZE:0,
mK:s},pob:w,Kr:w,yG:w,nu:s,Qaa:w,SLa:s,Fqa:s,Xv:j,f:function(a,b,c,d){this.parent(a,b,c,d);this.SLa=new sc.oZa;this.Fqa=new sc.CWa;if(sc.q){this.q=sc.q.R;sc.K.Na(this.q,this);this.jKa()}this.Fc.KN=new ig.$R;ig.ph.$_(this.Fc.KN);sc.pb.MEa(this)},jKa:function(){this.ba=this.q.ba;this.ba.tua(this);this.nb=this.q.nb;sc.K.Na(this.ba,this);this.ld();this.rGa();this.T6();this.Jbb()},Jbb:function(){this.MF.ug.length=0;if(this.q.name=="Lea"){var a=new ig.rf("PLAYER_IDLE",[{type:"SET_FACE",face:"SOUTH_EAST",
rotate:j},{type:"SHOW_ANIMATION",anim:"idleStretch",wait:j}],w,w);this.MF.ug.push(a)}},T6:function(){this.PK=this.ba.Rl("HP_REGEN");this.T.Lg&&this.T.Lg.Xhb(1+this.ba.Rl("AIM_SPEED"));if(this.ba)this.ba.yGa=1.5+this.ba.Rl("CRITICAL_DMG");this.ERa=this.ba.Rl("STUN_THRESHOLD");this.nb=this.q.nb;for(var a in this.q.Wb){var b=this.q.Wb[a];if(n[b])this.nb=n[b]}this.ag.oq.zK("maxVel",100*(1+this.ba.Rl("AIMING_MOVEMENT")));this.Vca=Math.round(3+this.ba.Rl("DASH_STEP"));this.MG.oT=this.ba.Rl("SPIKE_DMG")},
Hla:function(a,b){if(this.xT.indexOf(a)==-1){this.xT.push(a);this.pla(b||"NORMAL")}},Gta:function(a,b){this.xT.xf(a);this.pla(b||"NORMAL")},pla:function(a){var b=s;if(this.xT.length==0)b=new ig.ye.$n(new ig.ye.bS(this),0,0);else{b=[this];b.push.apply(b,this.xT);b=new ig.ye.$n(new ig.ye.lZ(b,j),0,0)}b.zLa=j;this.Cf?ig.Vd.Xgb(this.Cf,b,a,KEY_SPLINES.EASE_IN_OUT):ig.Vd.nw(b,a,KEY_SPLINES.EASE_IN_OUT);this.Cf=b},uNa:function(){if(ig.Vd){for(;ig.Vd.No.length>0;)ig.Vd.gea();this.pla()}sc.Ca.Leb();Vec3.assign(this.SA,
this.b.i)},mD:function(a){a=="step"&&sc.ta.cc("player","steps",1);this.q.Wb.mh==sc.GAa&&(a=="step"?this.vpa.qva.Ya("step",this):a=="dash"?this.vpa.qva.Ya("dash",this):a=="jump"&&this.vpa.qva.Ya("jump",this,{angle:Vec2.Gs(this.face)}))},qaa:function(a){var b=this.q.Hq(a);this.q.Abb(a);this.If(b);this.Pi.action=this.Pi.charge=this.Pi.move=this.Pi.reaim=this.Pi.dash=100},oua:function(a){this.Pi.action=a.action;this.Pi.charge=a.charge||a.action;this.Pi.dash=a.dash;this.Pi.reaim=a.reaim;this.Pi.move=a.move},
v$:function(){this.Pi.action=this.Pi.move=this.Pi.charge=this.Pi.reaim=this.Pi.dash=0},AQa:function(a){this.Fc.fx&&this.Fc.fx.stop();this.Fc.fx=sc.pb.hjb(this,a);this.Fc.Ab&&this.Fc.Ab.stop();this.Fc.Ab=this.Kb.Fc[a-1].play();this.Fc.fx.b.time.Gj=j;this.Fc.KN.kfa(0.4,0.05);this.Cf.uw(1+a*0.5/3,0.5,KEY_SPLINES.JUMPY);if(a>=2){a=new ig.Vja(a==2?"LIGHT":"MEDIUM",0.2,0,0.3);ig.rQ.Qla(a)}},w$:function(){if(this.Fc.time!=-1){this.Fc.time=-1;ig.it.F0("playerCharge",0);this.T.Lg.lQa(w);this.b.time.ex=w;this.Fc.fx&&
this.Fc.fx.stop();this.Fc.Ab&&this.Fc.Ab.stop();this.Fc.fx=this.Fc.Ab=s;this.Fc.KN.kfa(0,0.5);this.Kb.x6a.play();this.Cf.uw(1,0.5,KEY_SPLINES.EAST_IN_OUT)}},Tb:function(a){this.w$();this.parent(a);sc.K.lc(this.q,this);sc.K.lc(this.ba,this);ig.ph.Igb(this.Fc.KN);sc.pb.BOa(this);if(!a){a=ig.pa.get("stats.deaths")||0;ig.t.qhb();ig.pa.set("stats.deaths",a+1)}},show:function(){this.parent();this.T.Lg=ig.t.af(ig.ya.Crosshair,0,0,0,{thrower:this,controller:new sc.nZa});this.T6()},H9a:function(a,b){return this.Gn>
0.3?h:a.Jq||sc.V.Jq()&&Vec2.Tl(b.$g)?e:sc.V.A7a()?h:this.state==1||(this.state==2||this.state==5)&&this.q.Si(sc.hg.THROWING)&&sc.V.oq()?d:c},P9a:function(){return this.Fc.time<=0?0:a(this.Fc)},G$a:function(a){for(var b=0,a=a.V_;b<3&&this.q.Hq(sc.cj[a+(b+1)]);)b++;return b},h6:function(a){if(!this.q.Si(sc.hg.SPECIAL))return w;var b=this.G$a(a),e=this.q.ba.nab(),h=0;e>=4?h=3:e>=2?h=2:e>=1&&(h=1);e=Math.min(b,h);if(h<b){if(!this.Fc.mK||this.Fc.mK.ol()){this.Fc.mK=new sc.y8(this,h==0?"NO SP":"SP LOW",
0.5);ig.T.Mc(this.Fc.mK)}}else{this.Fc.mK&&!this.Fc.mK.ol()&&this.Fc.mK.remove();this.Fc.mK=s}if(e==0)return w;this.Fc.bk=e;this.Fc.type=a;a==d?this.sOa(1):a==c&&this.sOa(3);return j},F9a:function(a,b){for(var c=a.V_;b&&!this.q.Hq(sc.cj[c+b]);)b--;var d=b;d==3&&(d=4);this.q.ba.oGa(d);return sc.cj[c+b]},sOa:function(a){this.state=a;if(a==1){this.T.Lg.setActive(j);this.Ei(this.ag.oq)}else{this.T.Lg.setActive(w);this.Ei(this.ag.sh)}},VC:function(){return this.Pv()||this.ba.Yg()||this.nu||this.od&&this.od.Gx},
update:function(){if(this.EK>0){this.EK=this.EK-ig.g.ga;if(this.EK<0)this.EK=0}if(!sc.pV.UC()){b(this.Pi,"charge");b(this.Pi,"action");b(this.Pi,"dash");b(this.Pi,"reaim");b(this.Pi,"move");this.q.$kb(sc.pb.xqa(this));if(this.Pv()&&this.nu){this.nu.Aeb();this.Qaa=j;this.nu=s}var a=this.s9a();if(this.VC()){this.w$();this.v$();this.yOa(w);this.Gn=this.NN=0;this.Pv()&&this.Nl<=0.2?this.wJa(m,a,j):this.St.x=this.St.y=0;this.QE=0;a=this.od&&this.od.Gx?0:4;if(this.state!=a){this.state=a;this.Zv=w;if(this.state==
0){this.Ei(this.ag.sh);this.wC.apply(this)}this.T.Lg.setActive(w);Vec2.Sa(this.WG,0,0);this.iU=w}this.parent()}else{if(this.q.Hpa()&&this.b.i.z==this.b.jc&&sc.q.UKa()){var c=this.b.Lc&&this.b.Lc.$j,c=(c=c&&c.hk||c)&&c.P;(!c||!c.Yg||!c.Yg())&&this.SLa.Ahb(this,this.q)}this.od&&(this.od.name=="PLAYER_IDLE"&&!Vec2.Tl(a.$g))&&this.xk();a.mR&&!this.q.jA&&a.mR!=sc.ja.SHOCK&&a.mR!=sc.ja.WAVE&&(a.mR==sc.q.R.Uj?sc.q.R.G5(sc.ja.NEUTRAL):sc.q.R.G5(a.mR));this.od||this.v$();if(!this.Zg)this.qP=-1;this.wJa(m,
a);this.Oab(m,a);this.Nab(m,a);this.Qab(m,a);if(this.Gn>0){sc.ta.cc("player","dashTime",ig.g.uy);this.Gn=this.Gn-ig.g.ga;if(this.Gn<=0){this.Gn=0;this.T.Lg.GQ(1);!m.Jq&&!m.Z2&&this.wC.apply(this)}}else{this.NN=0;this.blb(m,a)}this.T.Lg.Ga&&(this.state!=2||m.Jq)&&!m.Z2?this.T.Lg.Uoa(this.face):ig.input.bb==ig.Gb.gm&&m.Jq&&this.T.Lg.Uoa(this.face);this.Rab(m,a);this.Fc.Tob=w;this.parent();if(this.MF.n>0&&this.Cj=="idle"&&!this.VC()&&!sc.q.Qe()){this.MF.n=this.MF.n-ig.g.ga;if(this.MF.n<=0){a=this.MF.ug[Math.floor(this.MF.ug.length*
Math.random())];this.If(a)}}else this.MF.n=10+Math.random()*5}}},s9a:function(){l.gY=w;l.J9=w;l.cN=w;l.vk=w;l.T9=w;l.td=w;l.X0=0;l.Y0=0;l.He=w;l.mR=w;Vec2.assign(l.$g,0,0);if(ig.t.VC())return l;l.td=sc.V.td();if(!ig.ua.Ph()){if(this.q.Si(sc.hg.THROWING)){l.J9=sc.V.J9();l.cN=sc.V.oq();l.gY=sc.V.gY();l.T9=sc.V.V5a()}if(!this.Kr&&this.q.Si(sc.hg.CLOSE_COMBAT))l.vk=this.q.Si(sc.hg.THROWING)?sc.V.U5a():sc.V.XHa()}l.mR=sc.V.Sna();if(this.q.Si(sc.hg.GUARD))l.He=sc.V.Jq();if(!this.Kr&&this.q.Si(sc.hg.MOVE))this.b.kg=
sc.V.$g(l.$g,this.b.kg);if(Vec2.Tl(l.$g))this.P3=0;else{var a=Vec2.oc(l.$g,this.KV);if(!Vec2.Tl(this.KV)&&Math.abs(a)>Math.PI/3)this.P3=0;this.P3=this.P3+ig.g.Da}a=w;if(this.Fc.time>=0||sc.pV.T2)a=j;l.cN&&(a=j);ig.input.bb==ig.Gb.gm&&(a=j);if(this.DV<=0&&!Vec2.Kaa(this.KV,l.$g))this.DV=2/60;if(this.DV>0){this.DV=this.DV-ig.g.Da;if(!sc.pV.T2&&this.DV>0&&(l.$g.x!=0||l.$g.y!=0)){if(l.$g.x==0)l.$g.x=this.KV.x;if(l.$g.y==0)l.$g.y=this.KV.y}}Vec2.assign(this.KV,l.$g);if(!this.Zg&&sc.V.lna()&&this.MN<0.2&&
(a||this.P3>0.05)){l.X0=l.$g.x;l.Y0=l.$g.y}return l},wJa:function(a,b,c){if(this.MN>0)this.MN=this.MN-ig.g.ga;if(!this.Pi.dash&&(b.X0||b.Y0)&&this.Gn<=0.4&&this.MN<=0){if(b.X0)this.St.x=b.X0;if(b.Y0)this.St.y=b.Y0}a.Rea=this.Gn<=(this.NN<this.Vca?0.15:0.1);if(c)a.Rea=w;if(!this.Zg&&this.q.Si(sc.hg.DASH)){if((this.St.x!=0||this.St.y!=0)&&a.Rea){this.Ojb();a.Rea=w}}else{this.NN=0;this.Gn=this.St.x=this.St.y=0}},Oab:function(a,b){var c=this.He.Ge<1&&a.Rea&&!this.Pi.action&&(this.Fc.time==-1||this.Fc.type==
e);a.Jq=w;var d=this.q.Hq(sc.cj.GUARD),h=this.q.Hq(sc.cj.PERFECT_GUARD);if(c)if(b.He){this.QE=0;if(this.od!=d&&this.od!=h){this.Gn=0;if(this.EK>0)this.If(d);else{this.If(h);this.EK=0.5}}this.T.Lg.GQ(0.25);a.Jq=j;sc.ta.cc("combat","guardTime",ig.g.uy);this.yG&&ig.pa.add("playerVar.input.guardTime",ig.g.ga)}else if(this.Fc.time!=-1&&this.Fc.type==e)a.Jq=j;else if(this.od==d||this.od==h){this.xk();this.T.Lg.GQ(1)}this.yOa(a.Jq)},Nab:function(b,c){if(this.Fc.ZE>0){this.Fc.ZE=this.Fc.ZE-ig.g.Da;if(this.Fc.ZE<
0)this.Fc.ZE=0}else if(c.td&&this.Fc.time==-1){this.QE=0;var d=this.H9a(b,c);if(this.h6(d)){this.Gn=0;this.St.x=this.St.y=0;this.Fc.YX=w;this.Fc.time=0}}b.Ula=0;b.Z2=w;if(this.Fc.time>=0){b.Z2=j;if(!this.Pi.charge){if(this.Fc.time==0){ig.it.add(0.1,0.2,"playerCharge");this.b.time.ex=j;this.AQa(1);this.T.Lg.lQa(j);if(!b.Jq){this.od&&this.xk();this.If(this.q.Hq(sc.cj.CHARGING))}}d=a(this.Fc);sc.ta.cc("combat","charging",ig.g.uy);this.Fc.time=this.Fc.time+ig.g.Da;if(this.Fc.bk<3)this.Fc.time=Math.min(this.Fc.time,
k[this.Fc.bk]-0.05);var e=a(this.Fc);d>=1&&e!=d&&this.AQa(e)}if(!c.td&&this.Fc.time>=k[0]){b.Ula=a(this.Fc);b.Z2=w;this.w$()}}},Qab:function(a,b){a.Fy=-1;if(a.Z2){if(!this.Fc.YX)if(this.Fc.type!=e&&a.Jq){this.Fc.YX=j;this.h6(e)}else if(this.Fc.type!=h&&!a.Jq&&this.Fc.time<0.1&&sc.V.lna()){this.Fc.YX=j;this.h6(h)}else if(this.Fc.type==c&&this.q.Si(sc.hg.THROWING)&&sc.V.w6a()){this.Fc.YX=j;this.h6(d)}else if(this.Fc.type==d&&sc.V.v6a()){this.Fc.YX=j;this.h6(c)}}else{if(this.state==4){this.state=0;a.Fy=
this.state}if(a.Ula){this.state=5;if(this.Fc.type==d){this.T.Lg.yba(this.WG);this.T.Lg.Xua()}a.Fy=this.state}else if(this.state==0&&b.vk){this.state=3;a.Fy=this.state}else if(this.state==0&&(b.J9||!this.Qaa&&!this.Gn&&b.cN)){this.state=1;a.Fy=this.state}else if(this.state==1)if(b.gY||b.T9){this.T.Lg.yba(this.WG);this.state=2;a.Fy=this.state;this.x6=this.T.Lg.XC();this.T.Lg.Xua();this.T.Lg.GQ(0.25)}else{if(!b.cN){this.state=0;a.Fy=this.state}}else if(this.state==2||this.state==3||this.state==5){var k=
b.gY&&this.Pi.action<0.2||b.T9&&!this.Pi.action;if(this.T.Lg.Ga&&!this.iU&&k){this.T.Lg.yba(this.WG);this.x6=this.T.Lg.XC();this.T.Lg.Xua()}if(b.vk&&this.Pi.action<0.2)this.iU=j;else if(!this.Pi.action&&!Vec2.Tl(this.WG)){this.state=2;a.Fy=this.state}else if(!this.Pi.action&&this.iU){this.state=3;a.Fy=this.state}else if(!this.od||a.Jq||!this.Pi.move&&(b.$g.x!=0||b.$g.y!=0)||!this.Pi.reaim&&b.cN){this.QE=0;if(this.Gn<=0&&!a.Jq){this.xk();this.v$()}if(b.cN){this.state=1;a.Fy=this.state}else{this.state=
0;a.Fy=this.state;this.Ja("preIdle",j,"idle")}}}}},blb:function(a,b){if(a.Jq){this.state==1&&sc.ta.cc("combat","aiming",ig.g.uy);Vec2.Sa(this.b.Eb,0,0);(b.$g.x||b.$g.y)&&Vec2.assign(this.face,b.$g)}else if(this.state==0||this.state==1){this.state==1&&sc.ta.cc("combat","aiming",ig.g.uy);Vec2.assign(this.b.Eb,b.$g);this.Zg&&(Vec2.hj(this.b.Eb,this.d3)>=0&&Vec2.ab(this.b.i,this.sLa)<8?Vec2.add(this.b.Eb,this.d3):Vec2.Sa(this.d3,0,0))}else this.Zg||Vec2.Sa(this.b.Eb,0,0)},Rab:function(a,b){a.Fy!=-1&&
this.cF();var k=this.q.Uj;switch(a.Fy){case 0:this.yG&&ig.pa.set("playerVar.input.aiming",w);this.EG("normal");this.Ei(this.ag.sh);this.T.Lg.setActive(w);break;case 1:this.yG&&ig.pa.set("playerVar.input.aiming",j);this.Qaa=w;this.Ei(this.ag.oq);this.Gn<=0&&(!this.Zg&&!a.Jq)&&this.If(this.q.Hq(sc.cj.AIM_START));this.EG("aiming");this.T.Lg.q$=this.q.Si(sc.hg.CHARGE);this.T.Lg.Ga||this.T.Lg.setActive(j);this.T.Lg.GQ(1);break;case 3:this.yG&&ig.pa.set("playerVar.input.aiming",w);ig.input.bb==ig.Gb.gm&&
(this.q.Si(sc.hg.THROWING)&&sc.options.get("close-circle"))&&this.T.Lg.aib();this.QE++;var l;if(this.QE<=3){l=sc.cj[this.QE%2==1?"ATTACK_REV":"ATTACK"];var k=this.Kb.aGa[k]||this.Kb.aGa[0],m=Math.floor(Math.random()*k.length);k[m].play()}else{l=sc.cj.ATTACK_FINISHER;this.QE=0;k=this.Kb.bGa[k]||this.Kb.bGa[0];k.play()}sc.ta.cc("player","close",1);this.hRa(l,b);break;case 2:if(this.yG){ig.pa.set("playerVar.input.aiming",w);ig.pa.add("playerVar.input.thrown",1)}this.VRa++;l=this.VRa%2==0?sc.cj[this.x6?
"THROW_CHARGED_REV":"THROW_NORMAL_REV"]:sc.cj[this.x6?"THROW_CHARGED":"THROW_NORMAL"];this.qRa(l,b);Math.random();if(this.x6){k=this.Kb.URa[k]||this.Kb.URa[0];k.play()}else{k=this.Kb.WRa[k]||this.Kb.WRa[0];m=Math.floor(Math.random()*k.length);k[m].play()}break;case 5:l=this.F9a(this.Fc.type,a.Ula);sc.ta.cc("combat","specials",1);if(this.Fc.type==c){sc.ta.cc("combat","specialsClose",1);this.hRa(l,b)}else if(this.Fc.type==d){sc.ta.cc("combat","specialsThrow",1);this.qRa(l,b)}else if(this.Fc.type==e){sc.ta.cc("combat",
"specialsGuard",1);this.qaa(l)}else if(this.Fc.type==h){sc.ta.cc("combat","specialsDash",1);Vec2.Tl(b.$g)||Vec2.assign(this.ON,b.$g);this.T.Lg.setActive(w);this.setAttribute("dashDir",this.ON);this.qaa(l)}}},qRa:function(a,b){this.x6?sc.ta.cc("player","chargedThrows",1):sc.ta.cc("player","normalThrows",1);sc.ta.cc("player","throws",1);if(this.Gn>0)this.MN=0.3;this.Gn=0;Vec2.assign(this.face,this.WG);this.b.i.z==this.b.jc?this.setAttribute("dashDir",Vec2.assign(this.ON,b.$g)):this.setAttribute("dashDir",
Vec2.Sa(this.ON,0,0));Vec2.assign(this.fga,this.WG);Vec2.Sa(this.WG,0,0);this.qaa(a)},hRa:function(a,b){if(this.Gn>0)this.MN=0.3;this.Gn=0;this.iU=w;this.T.Lg.setActive(w);this.b.i.z==this.b.jc?this.setAttribute("dashDir",Vec2.assign(this.ON,b.$g)):this.setAttribute("dashDir",Vec2.Sa(this.ON,0,0));Vec2.Tl(b.$g)||Vec2.assign(this.face,b.$g);this.qaa(a)},Ojb:function(){this.QE=0;this.NN++;this.iU=this.kna=w;Vec2.Sa(this.WG,0,0);this.T.Lg.Ga||Vec2.assign(this.face,this.St);this.setAttribute("dashDir",
Vec2.assign(this.ON,this.St));this.St.x=this.St.y=0;if(this.Fc.time>=0){if(this.Fc.time<=0.2)return;this.w$();this.Fc.ZE=0.5}if(this.state==2)this.state=1;else if(this.state==3){this.EG("normal");this.Ei(this.ag.sh);this.state=0}if(this.NN<=this.Vca){sc.ta.cc("player","dash",1);sc.ta.cc("player","steps",3)}this.v$();this.T.Lg.wOa(0.2);this.T.Lg.GQ(0.5);this.Zv=w;this.Gn=0.36;this.mD("dash");this.If(this.q.Hq(sc.cj[this.NN<=this.Vca?"DASH":"DASH_SLOW"]))},Js:function(){this.nu&&this.nu.zeb&&this.nu.zeb(this)},
IK:function(){this.nu&&this.nu.Beb&&this.nu.Beb()},i6a:function(){if(this.nu){this.nu=s;if(sc.V.oq())this.Qaa=j}},qsa:function(a,b,c,d,e,h){this.yG&&(h?ig.pa.add("playerVar.input.shieldedHits",1):ig.pa.add("playerVar.input.hits",1));if(h){sc.ta.cc("combat","shieldedHits",1);if(h==sc.qM.oM){sc.ta.cc("combat","perfectShield",1);if(this.ba.Rl("PERFECT_GUARD_RESET")>=1)this.EK=0}}else sc.ta.cc("combat","damageHits",1);return w},vNa:function(){sc.ta.cc("combat","shieldBreaks",1)},tNa:function(){if(!this.kna){sc.ta.cc("player",
"perfectDash",1);this.kna=j}},Gda:function(a){sc.ta.cc("combat","damageTaken",a)},kNa:function(a,b){sc.ta.cc("combat","healed",b)},q4:function(a,b,c,d){sc.ta.cc("combat","damageGiven",c.Ge);sc.ta.lfa("combat","maxDamage",c.Ge);this.iGa.MLa=a;if(b.Jfa){b.V9||sc.ta.cc("player","closeHits",1);this.q.q4(a,b,c)}this.parent(a,b,c,d)},lsa:function(a,b){sc.ta.cc("player","jumps",1);this.qP=this.b.i.z+a;Vec2.assign(this.sLa,this.b.i);a>=16?Vec2.assign(this.d3,this.b.Eb):Vec2.Sa(this.d3,0,0);this.parent(a,
b)},Fg:function(){this.jb&&this.jb.evaluate();if(!this.Kr&&ig.pa.get("playerVar.staticFloat")){this.Kr=j;this.ag.sh.zK("floatHeight",6);this.ag.oq.zK("floatHeight",6);this.Ei(this.ag.sh)}else if(this.Kr&&!ig.pa.get("playerVar.staticFloat")){this.Kr=w;this.ag.sh.Lma();this.ag.oq.Lma();this.Ei(this.ag.sh)}if(this.yG!=ig.pa.get("playerVar.recordInput"))if(this.yG=ig.pa.get("playerVar.recordInput")){ig.pa.set("playerVar.input.thrown",0);ig.pa.set("playerVar.input.aiming",w);ig.pa.set("playerVar.input.guardTime",
0);ig.pa.set("playerVar.input.shieldedHits",0);ig.pa.set("playerVar.input.hits",0)}},lb:function(a,b,c){if(a==this.ba)b==sc.oi.Ww&&this.T6();else if(a==this.q)if(b==sc.Wc.qH){this.rGa();this.T6()}else b==sc.Wc.o7?this.jKa():b==sc.Wc.Ww?this.T6():b==sc.Wc.$Y&&this.Fqa.d5a(this,this.q,c)},rGa:function(){this.fn=this.q.gba()},uaa:function(a){(a=="water"||a=="hole")&&sc.ta.cc("player","respawns",1);a=="water"?sc.ta.cc("player","waterDeath",1):a=="hole"&&sc.ta.cc("player","holeDeath",1);this.parent();
ig.Vd.BKa(this.Cf)&&ig.Vd.ZOa("FASTER",KEY_SPLINES.EASE_IN_OUT)},XC:function(){return this.T.Lg.XC()},Oua:L("QNa"),Rwa:function(a){this.Fqa.zhb(this,this.q,a)}});window.E6a=function(){var a=ig.t.wb;if(a&&!a.C7a&&a.b.i.x==1)a.C7a=j}});ig.G=j;
ig.I("game.feature.player.crosshair-steps").J("impact.base.animation","impact.base.action","impact.base.entity").H(function(){var a=s;ig.ma.ACTIVATE_CROSSHAIR=ig.na.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Entity to focus camera on"}}}),f:function(a){this.P=a.entity},start:function(b,d){var e=ig.Ra.pd(this.P,d);if(e){a=ig.t.af(ig.ya.Crosshair,0,0,0,{thrower:e,controller:new sc.uVa});a.q$=j}}});ig.ma.DEACTIVATE_CROSSHAIR=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){a&&
a.Tb()}});ig.ma.SET_CROSSHAIR_TARGET=ig.na.extend({i:s,s:new ig.u({attributes:{i:{c:"Vec2",d:"Target position for CrossHair",rv:j,Ht:j}}}),f:function(a){this.i=a.pos},start:function(){a.setActive(j);ig.Ra.iA(this.i,a.jF.yl)}});ig.ma.SET_CROSSHAIR_SPEED=ig.na.extend({value:s,s:new ig.u({attributes:{value:{c:"Number",d:"Speed of CrossHair. 1 is default, 0 is pause"}}}),f:function(a){this.value=a.value},start:function(){a.GQ(this.value)}});ig.ma.REDUCE_CROSSHAIR_PRECISION=ig.na.extend({value:s,s:new ig.u({attributes:{value:{c:"Number",
d:"Amount to reduce. 0=nothing, 1=maximum"}}}),f:function(a){this.value=a.value},start:function(){a.wOa(this.value)}});var b=Vec2.create();ig.ma.GET_CROSSHAIR_DIR=ig.na.extend({gc:s,s:new ig.u({attributes:{gc:{c:"VarName",d:"Variable to contain (random) CrossHair direction."}}}),f:function(a){this.gc=a.variable},start:function(){a.yba(b);ig.pa.set(this.gc,b)}})});ig.G=j;
ig.I("game.feature.player.modifiers").J("impact.base.game").H(function(){sc.Me={};sc.Me.AIM_SPEED={qa:8};sc.Me.XP_PLUS={qa:9};sc.Me.RANGED_DMG={qa:10};sc.Me.KNOCKBACK={qa:11};sc.Me.MELEE_DMG={qa:12};sc.Me.CRITICAL_DMG={qa:14};sc.Me.DASH_INVINC={qa:15};sc.Me.STUN_THRESHOLD={qa:16};sc.Me.HP_REGEN={qa:17};sc.Me.XP_ZERO={qa:18,dG:j};sc.Me.DROP_CHANCE={qa:19};sc.Me.GUARD_STRENGTH={qa:20};sc.Me.ITEM_BOOST={qa:21};sc.Me.OVERHEAT_REDUCTION={qa:22};sc.Me.AIMING_MOVEMENT={qa:23};sc.Me.DASH_STEP={qa:24,dG:j};
sc.Me.SPIKE_DMG={qa:25};sc.Me.MONEY_PLUS={qa:26};sc.Me.PERFECT_GUARD_RESET={qa:28,dG:j};sc.Me.PERFECT_GUARD_WINDOW={qa:27};sc.Me.ASSAULT={qa:13};sc.Me.AIM_STABILITY={qa:8};sc.Me.GUARD_AREA={qa:8};sc.Me.SP_REGEN={qa:8};sc.Me.COND_EFFECT_HEAT={qa:8};sc.Me.COND_EFFECT_COLD={qa:8};sc.Me.COND_EFFECT_SHOCK={qa:8};sc.Me.COND_EFFECT_WAVE={qa:8};sc.Me.COND_GUARD_HEAT={qa:8};sc.Me.COND_GUARD_COLD={qa:8};sc.Me.COND_GUARD_SHOCK={qa:8};sc.Me.COND_GUARD_WAVE={qa:8};sc.Me.COND_HEALING={qa:8};sc.Me.CROSS_COUNTER=
{qa:8};sc.Me.BREAK_DMG={qa:8};sc.Me.BERSERK={qa:8,dG:j};sc.Me.ONCE_MORE={qa:8,dG:j};sc.Me.STATUS_CONDITION_HEALING={qa:8};sc.Me.SP_PRESERVATION={qa:8,dG:j};sc.Me.APPETITE={qa:8,dG:j}});ig.G=j;ig.I("game.feature.player.plug-in").J("game.feature.player.entities.crosshair","game.feature.player.entities.player","game.feature.player.player-steps","game.feature.player.crosshair-steps","game.feature.player.player-model","game.feature.player.modifiers").H(function(){window.Yc&&wm.pj.push("game.feature.player.editors.player-editors")});
ig.G=j;
ig.I("game.feature.puzzle.components.push-pullable").J("impact.base.entity","game.feature.interact.map-interact").H(function(){var a=Vec2.create(),b=Vec2.create(),c=Vec3.create(),d={};sc.Eia={};sc.Eia.dBa=new ig.da("media/sound/puzzle/push-start.ogg",1);sc.Eia.sXa=new ig.da("media/sound/puzzle/push-loop.ogg",1);sc.vZa=ig.ra.extend({P:s,Ga:w,Or:s,rna:w,Be:s,Uv:{nB:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24),{FOCUS:[40,41,42,41],NEAR:[43],RUNNING:[46,47]},0.2),Oba:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,
24),{FOCUS:[40,41,42,41],NEAR:[43],RUNNING:[44,45]},0.2)},M$:Vec2.create(),yl:Vec2.create(),Ok:0,V7a:100,JX:0,bO:0,xhb:s,fB:s,f:function(a){this.P=a;this.Ga=w;this.Be=new sc.jS(a,this,this.Uv.Oba,sc.zB.Tia,w);this.xhb=new ig.Lm.vE("RANDOM","WEAKEST","FAST",-1,0,s);this.Be.zD(0,-8)},setActive:function(a){(this.Ga=a)?sc.sm.de(this.Be):sc.sm.ie(this.Be)},ql:function(){if(this.Ok==0){var a=ig.t.wb;a.nu=this;var b=this.M$a();a.If(b,j)}},nW:function(){if(this.Or)this.rna=j},PKa:function(){if(this.Or)return w;
var b=ig.t.wb;this.Zoa(c);var h=b.kb(a),h=Vec2.sub(c,h),k=ig.t.Nf.mu(d);return ig.t.Kw(k,b,h.x,h.y,0,0,0,ig.la.IGNORE)},Vk:function(){var d=ig.t.wb,h=this.Ok;if(this.Ok==2||this.Ok==3||this.Ok==4){var k=Vec2.assign(b,this.yl),l=this.P.b.i;Vec2.sub(b,l);var m=this.V7a;this.bO=this.bO+ig.g.ga;if(this.JX<0.3){this.JX=this.JX+ig.g.ga;m=m*(this.JX/0.3).Vb(0,1)}m=ig.g.ga*m;if(Vec2.length(k)>m){Vec2.length(k,m);this.P.l(l.x+k.x,l.y+k.y)}else{this.P.l(this.yl.x,this.yl.y);k=ig.Oj.yO(this.P);if(this.Ok==4){k&&
k.Web(this.P);this.Ok=0}else{this.Ok=this.Or?1:0;this.P.Ja("default");if(k&&k.xNa&&k.xNa(this.P,c)){Vec2.assign(this.yl,c);this.setActive(w);this.uma();this.Ok=4}}}}if(this.Ga&&(this.Ok==0||this.Ok==1)){if(!this.Or){this.Ok=0;this.Vfa();return}if(d.yJa()){this.Ok=0;this.Vfa();return}k=this.P.b;if(k.i.z!=k.jc||d.b.i.z-d.b.jc>ig.xe.az||this.rna){this.rna=w;this.Ok=0;this.uma();this.Vfa();return}if(this.Ok==0){this.Ok=1;Vec2.assign(this.M$,d.b.i);Vec2.sub(this.M$,this.P.b.i)}k=b;sc.V.$g(k,1);Vec2.assign(a,
this.P.b.i);Vec2.add(a,this.M$);d.l(a.x,a.y,this.P.b.i.z);if((this.Or=="EAST"||this.Or=="WEST")&&k.x)this.CMa(k.x<0?-4:4,0);else if((this.Or=="NORTH"||this.Or=="SOUTH")&&k.y)this.CMa(0,k.y<0?-4:4)}if(this.Ok&&this.Or){Vec2.assign(a,this.P.b.i);Vec2.add(a,this.M$);d.l(a.x,a.y);d.b.nl=j;d.lm=j;this.Ok==1?d.Ja("gripStand"):this.Ok==2?d.Ja("gripPull"):this.Ok==3&&d.Ja("gripPush")}if(this.Ok!=h)this.JX=this.bO=0;(this.Ok==0||this.Ok==1)&&this.Vfa()},$s:function(){var a=ig.t.wb;this.Ok&&this.Or&&a.l(g,
g,this.P.b.i.z)},utb:F(),Vfa:function(){if(this.fB){this.fB.stop();this.fB=s}},uma:function(){var a=ig.t.wb;a.b.nl=w;a.lm=w;a.i6a();this.Or=s},Aeb:function(){this.uma()},Zoa:function(b){var c=ig.t.wb;this.P.je(ig.Rb.BOTTOM,b);var d=c.kb(a),d=Vec2.sub(d,b);if(Math.abs(d.x)>Math.abs(d.y)){c=this.P.b.size.x/2+c.b.size.x/2;if(d.x<0){b.x=b.x-c;b="EAST"}else{b.x=b.x+c;b="WEST"}}else{c=this.P.b.size.y/2+c.b.size.y/2;if(d.y<0){b.y=b.y-c;b="SOUTH"}else{b.y=b.y+c;b="NORTH"}}return b},M$a:function(){var a=Vec3.create(),
b=this.Zoa(a);b=="WEST"||b=="EAST"?this.Be.xy(this.Uv.Oba):this.Be.xy(this.Uv.nB);this.Or=b;this.bO=this.JX=0;return new ig.rf("gripStart",[{type:"MOVE_TO_POINT",target:a,precise:w},{type:"SET_FACE",face:b},{type:"SHOW_ANIMATION",anim:"gripStand"},{type:"ALIGN_PUSH_PULL_POS",component:this,duration:0.05}])},CMa:function(a,b){var c=ig.t.wb,l;a?l=this.Or=="EAST"&&a<0||this.Or=="WEST"&&a>0:b&&(l=this.Or=="NORTH"&&b>0||this.Or=="SOUTH"&&b<0);var m=ig.t.Nf.mu(d);if(!ig.t.Kw(m,this.P,a,b,0,0,0,ig.la.BLOCK,
s,c)&&(!l||!ig.t.Kw(m,c,a,b,0,0,0,ig.la.BLOCK,s,c))){if(!this.fB)this.fB=sc.Eia.sXa.qy();this.P.Ja(a?"moveH":"moveV");if(this.bO>=0.13){this.bO=this.bO-0.13;var n;a?n=a>0?"boxMediumEast":"boxMediumWest":b&&(n=b>0?"boxMediumSouth":"boxMediumNorth");ig.t.O.aO.Ya(n,this.P)}this.Ok=l?2:3;Vec2.assign(this.yl,this.P.b.i);Vec2.Y_(this.yl,a,b);this.yl.x=Math.round(this.yl.x/4)*4;this.yl.y=Math.round(this.yl.y/4)*4}}})});ig.G=j;
ig.I("game.feature.puzzle.entities.block").J("impact.base.entity").H(function(){ig.ya.Block=ig.fe.extend({XG:new ig.tg("media/entity/objects/block.png",32,32),n:0,style:0,s:new ig.u({Bd:j,attributes:{style:Number}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;this.b.v(16,16,16);if(d.style)this.style=d.style;this.ld({sheet:this.XG,SUB:[{name:"normal",time:1,frames:[0]},{name:"touched",time:1,frames:[1]}]})},update:function(){this.n=this.n-ig.g.ga;this.n<=0&&this.Ja("normal");this.parent()},
lo:function(){this.Ja("touched");this.n=0.2}})});ig.G=j;
ig.I("game.feature.puzzle.entities.blockers").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){sc.LR={};ig.ya.Blocker=ig.fe.extend({Ga:w,maxHeight:0,minHeight:0,gc:s,s:new ig.u({Bd:j,attributes:{iob:{c:"String",d:"Type of blocking object",Y:sc.LR,Oi:j},jb:{c:"VarCondition",d:"Condition for blocker to be active",sd:j}}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;this.jb=new ig.ce(d.condition);this.Ga=this.jb.evaluate();if(a=sc.LR[d.blockerType]){this.v(a.size.x,
a.size.y,a.size.z);this.b.shape=a.A$;this.minHeight=a.minHeight;this.maxHeight=this.b.size.z;b=ig.Ef.get("puzzle");a.La.sheet.src=b.sheet;this.ld(a.La);if(this.Ga){this.Ja("on");this.v(this.b.size.x,this.b.size.y,this.maxHeight)}else{this.Ja("off");this.v(this.b.size.x,this.b.size.y,this.minHeight)}}else this.b.v(32,32,0)},update:function(){this.parent()},Fg:function(){var a=this.jb.evaluate();if(this.Ga!=a)if(this.Ga=a){this.v(this.b.size.x,this.b.size.y,this.maxHeight);this.Ja("goOn",j,"on")}else this.Ja("goOff",
j,"off",w,j)},CI:function(){this.v(this.b.size.x,this.b.size.y,this.minHeight)}});sc.LR.diagonalNW={size:{x:32,y:32,z:24},A$:ig.mk.SLOPE_NW,minHeight:2,La:{sheet:{src:s,width:32,height:64,offY:128},SUB:[{name:"off",time:0.1,frames:[0],repeat:w},{name:"on",time:0.02,frames:[5,6],repeat:j},{name:"goOn",time:0.05,frames:[1,2,3,4],repeat:w},{name:"goOff",time:0.05,frames:[4,3,2,1],repeat:w}]}};sc.LR.diagonalNE={size:{x:32,y:32,z:24},A$:ig.mk.SLOPE_NE,minHeight:2,La:{sheet:{src:s,width:32,height:64,offY:128},
flipX:j,SUB:[{name:"off",time:0.1,frames:[0],repeat:w},{name:"on",time:0.02,frames:[5,6],repeat:j},{name:"goOn",time:0.05,frames:[1,2,3,4],repeat:w},{name:"goOff",time:0.05,frames:[4,3,2,1],repeat:w}]}};sc.LR.diagonalSE={size:{x:32,y:32,z:24},A$:ig.mk.SLOPE_SE,minHeight:2,La:{sheet:{src:s,width:32,height:64,offY:192},flipX:j,wallY:1,SUB:[{name:"off",time:0.1,frames:[0],repeat:w},{name:"on",time:0.02,frames:[5,6],repeat:j},{name:"goOn",time:0.05,frames:[1,2,3,4],repeat:w},{name:"goOff",time:0.05,frames:[4,
3,2,1],repeat:w}]}};sc.LR.diagonalSW={size:{x:32,y:32,z:24},A$:ig.mk.SLOPE_SW,minHeight:2,La:{sheet:{src:"media/entity/objects/blockers.png",width:32,height:64,offY:192},wallY:1,SUB:[{name:"off",time:0.1,frames:[0],repeat:w},{name:"on",time:0.02,frames:[5,6],repeat:j},{name:"goOn",time:0.05,frames:[1,2,3,4],repeat:w},{name:"goOff",time:0.05,frames:[4,3,2,1],repeat:w}]}}});ig.G=j;
ig.I("game.feature.puzzle.entities.bomb").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){var a=Vec2.create();Vec3.create();ig.ya.BombPanel=ig.fe.extend({ym:0,s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",d:"Condition for Enemy to spawn",sd:j}}}),O:{lN:new ig.ae("puzzle.bomb")},f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.NONE;this.b.v(24,24,0);a=ig.Ef.get("puzzle2");this.ld({sheet:{src:a.sheet,width:24,height:24,xCount:2,offX:0,offY:88},SUB:[{name:"on",
time:1,frames:[1],repeat:w},{name:"off",time:1,frames:[0],repeat:w},{name:"blink",time:0.04,frames:[0],repeat:w},{name:"blink",time:0.04,frames:[1,1,1,1,1,1,1,1],framesAlpha:[0,0.2,0.5,0.8,1,0.8,0.5,0.2],repeat:j}]});this.Ja("on")},show:function(a){this.parent(a);if(!a){this.Za.alpha=0;ig.t.O.Zk.Ya("showDefault",this,{})}this.ZQa(a)},update:function(){if(this.ym){this.ym=this.ym-ig.g.ga;this.ym<=0&&this.ZQa()}this.parent()},ZQa:function(b){this.ym=0;this.Ja("on");var c=this.kb(a),c=ig.t.af(sc.hha,
c.x,c.y,this.b.i.z,{panel:this});b||this.O.lN.Ya("appear",c,{})},Rdb:function(){this.Ja("off")},Qdb:function(){this.Ja("blink");this.ym=1.5}});sc.hha=ig.fe.extend({hi:s,n:0,$c:s,B2:w,O:{lN:new ig.ae("puzzle.bomb")},Cf:s,Gra:w,f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.VIRTUAL;this.b.se=1;this.b.Xh=0.5;this.b.v(20,20,16);this.b.uk=0.06;this.b.Ad.size=20;this.b.l(a-this.b.size.x/2,c-this.b.size.y/2,d);this.hi=e.panel||s;a=ig.Ef.get("puzzle2");this.ld({shapeType:"Y_FLAT",offset:{x:0,
y:-3,z:0},sheet:{src:a.sheet,width:24,height:24,xCount:5,offX:0,offY:64},SUB:[{name:"off",time:1,frames:[0],repeat:w},{name:"ticking",time:0.1,frames:[2,1,0,1],repeat:j},{name:"ticking",time:1,frames:[3],repeat:w},{name:"ticking",time:1,frames:[4],repeat:w},{name:"tickingEnd",time:0.03,frames:[0,0,2,2],repeat:j},{name:"tickingEnd",time:0.03,frames:[3,3,3,3],framesAlpha:[0,0,1,1],repeat:j},{name:"tickingEnd",time:0.03,frames:[4,4,4,4],framesAlpha:[0,0,1,1],repeat:j}]});this.Ja("off")},start:function(a,
c,d,e){if(!this.n){this.Ja("ticking");this.n=3;this.hi&&this.hi.Rdb();Vec2.assign(this.b.Z,a);Vec2.length(this.b.Z,d||180);this.b.Z.z=e||200;this.$c=c;this.cg=this.O.lN.Ya("active",this,{duration:-1})}},Cua:function(){this.n=0.75;this.Ja("tickingEnd");if(this.Ta.length>1){this.Ta[1].ht(0,0);this.Ta[2].ht(0,0)}this.cg&&this.cg.stop();this.cg=this.O.lN.Ya("almost",this,{duration:-1})},B1:function(){if(!this.Ne){var a=this.je(ig.Rb.CENTER,Vec3.create());this.O.lN.eh("explosion",a.x,a.y,a.z);a.z=a.z-
24;this.hi&&this.hi.Qdb();if(this.$c){a=new sc.nH(this.$c,{attack:{type:"MASSIVE",element:"HEAT",damageFactor:2,spFactor:0,hints:["BOMB"]},pos:a,radius:8,zHeight:48,duration:0.1,expandRadius:40,alwaysFull:j,party:"OTHER"});sc.pb.WB(a)}this.Cf&&ig.Vd.Uq(this.Cf,"SLOW",KEY_SPLINES.EASE_IN_OUT);this.Tb()}},sHa:function(a,c){if(!this.Ne&&!this.B2){this.B2=j;var d=this.b;Vec2.assign(d.Eb,a);d.Ui=400;d.ni=2E3;Vec2.assign(d.Z,a);Vec2.length(d.Z,400);this.n=2;if(!this.$c)this.$c=c;this.cg&&this.cg.stop();
if(!this.Gra){this.Cf=new ig.ye.$n(new ig.ye.lZ([this,ig.t.wb]),0,0);ig.Vd.nw(this.Cf,"FAST",KEY_SPLINES.EASE_IN_OUT)}this.O.lN.Ya("bombHeatTrail",this,{duration:-1,angle:Vec2.Gs(a),offset:{z:6}})}},update:function(){this.b.i.z<ig.t.$F&&this.B1();if(this.B2){(this.b.Zp>0||this.b.vm>0)&&this.B1();this.n=this.n-ig.g.ga;this.n<=0&&this.B1()}else if(this.n>0){this.n=this.n-ig.g.ga;this.n<=0&&this.B1();this.Cj=="ticking"&&this.n<=0.75&&this.Cua()}if(this.Cj=="ticking"&&this.Ta.length>1){var a=this.Ta[1],
c=this.Ta[2],d=a.size.y+a.size.z,e=(this.n-0.75)/0.75,e=e.Vb(0,1),e=Math.ceil(8*(1-e));a.ht(d-1-e,1);c.ht(d-7-e,7)}a=this.b;a.EJ=ig.mc.FO(a,j)==ig.Gd.ICE?0.02:1;this.parent()},Om:function(b){if(this.B2)return w;var c=b.ij(this),d=b.du(this,a),e=b.Wv&&!b.ic.yk("CHARGED")&&b.ic.element==sc.ja.HEAT;if(!b.ic.yk("DEEP_FLAME")&&b.Wv&&!b.ic.yk("CHARGED")&&(!this.n||!e)){sc.pb.sj(this,c,sc.hc.NONE,b.nh(),j,w,j);return j}sc.pb.sj(this,c,sc.hc.MEDIUM,b.nh(),w,w,j);if(b.ic.yk("DEEP_FLAME")){c=b.Bi();c.target&&
ig.Xf.Lr(this.b,c.target.b,d);this.sHa(d,b.Bi())}else!e&&b.ic.element==sc.ja.HEAT?this.sHa(d,b.Bi()):this.n?this.B1():this.start(d,b.Bi());return j},DA:function(a){if(this.b.i.z>=-1&&!this.b.nl){var c=this.kb();a<-50&&ig.t.O.aO.eh("medium",c.x,c.y,this.b.i.z);if((a=ig.Oj.yO(this))&&a.xFa)this.b.Z.z=0}},$O:R(j)})});ig.G=j;
ig.I("game.feature.puzzle.entities.water-bubble").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){var a=Vec2.create();Vec3.create();ig.ya.WaterBubblePanel=ig.fe.extend({ym:0,R0:s,Ga:w,s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",d:"Condition for Enemy to spawn",sd:j},ET:{c:"Number",d:"Time coal will be cooled by ice disks created from these bubbles",U:j}}}),O:{sheet:new ig.ae("puzzle.water-bubble")},f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.NONE;this.b.v(24,
24,0);this.b.se=1E3;a=ig.Ef.get("puzzle2");this.ld({sheet:{src:a.sheet,width:24,height:24,xCount:2,offX:0,offY:112},SUB:[{name:"on",time:1,frames:[1],repeat:w},{name:"off",time:1,frames:[0],repeat:w},{name:"blink",time:0.04,frames:[0],repeat:w},{name:"blink",time:0.02,frames:[1,1,1,1,1,1,1,1],framesAlpha:[0,0.2,0.5,0.8,1,0.8,0.5,0.2],repeat:j}]});this.ET=e.coalCoolTime;this.Ja("on")},show:function(a){this.parent(a);if(!a){this.Za.alpha=0;ig.t.O.Zk.Ya("showDefault",this,{})}this.Ga=j;this.$Qa(a)},
gG:function(){this.Ga=w;if(this.R0){this.R0.hi=s;this.R0.AFa()}ig.t.O.Zk.Ya("hideDefault",this,{callback:this})},$r:function(a){this.ng&&a.vp()&&this.hide()},update:function(){if(this.ym){this.ym=this.ym-ig.g.ga;this.ym<=0&&this.$Qa()}this.parent()},$Qa:function(b){if(this.Ga){this.ym=0;this.Ja("on");var c=this.kb(a),c=ig.t.af(sc.Sja,c.x,c.y,this.b.i.z+8,{panel:this,coalCoolTime:this.ET});if(!b){this.O.sheet.Ya("appear",c,{});c.Lra=2}this.R0=c}},Sdb:function(){this.Ja("off")},lW:function(){this.R0=
s;this.Ja("blink");this.ym=1.5}});Vec2.create();sc.Sja=ig.fe.extend({hi:s,state:1,n:0,k6:0,$c:s,B2:w,O:{sheet:new ig.ae("puzzle.water-bubble"),handle:s,lA:s},Cf:s,Gra:w,target:s,f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.VIRTUAL;this.b.se=1;this.b.Xh=0.5;this.b.mm=0.5;this.b.v(20,20,16);this.b.uk=0.2;this.b.Ui=125;this.b.nd.height=8;this.k6=d;this.b.nd.uj=2;this.b.Ad.size=16;this.b.l(a-this.b.size.x/2,c-this.b.size.y/2,d);this.hi=e.panel||s;this.ET=e.coalCoolTime;this.ld({shapeType:"Y_FLAT",
offset:{x:0,y:-3,z:0},sheet:{src:"media/entity/objects/object-effects.png",width:24,height:24,xCount:4,offX:128,offY:16},SUB:[{name:"idle",time:0.1,frames:[0,1,2,3],repeat:j}]});this.Ja("idle");if(e.target){this.b.mm=1;this.Waa(e.target,e.targetTime)}if(e.combatant)this.$c=e.combatant},Waa:function(a,c){this.target=a;this.state=2;this.n=c;ig.Xf.Lr(this.b,this.target.b,this.b.Eb);Vec2.assign(this.b.Z,this.b.Eb);Vec2.length(this.b.Z,this.b.Ui);this.b.Mp(ig.la.IGNORE);this.O.sheet.Ya("selfExplode",this,
{duration:-1})},g$:function(a,c){if(this.state==1)this.state=3;Vec2.assign(this.b.Z,a);Vec2.length(this.b.Z,c||180);if(!this.n){this.n=10;this.hi&&this.hi.Sdb()}if(this.O.lA){this.O.lA.rua(s);this.O.lA.stop()}this.O.lA=this.O.sheet.Ya("hit",this,{callback:this})},Cua:function(){this.state=4;this.O.handle=this.O.sheet.Ya("almostBurst",this,{duration:-1})},Qbb:function(){if(!(this.Ne||this.state==5)){this.state=5;this.hi&&this.hi.lW();this.Tb()}},AFa:function(){if(!(this.Ne||this.state==5)){this.state=
5;if(this.O.handle){this.O.handle.stop();this.O.handle=s}this.O.sheet.Ya("burst",this,{callback:this,align:"CENTER"});this.hi&&this.hi.lW()}},$r:function(a){if(!this.Ne&&a.state==ig.Nw.eE)a==this.O.lA?this.O.lA=s:this.Tb()},cf:function(a,c){if(!this.Ne){var d=this.je(ig.Rb.BOTTOM,Vec3.create());this.O.sheet.eh("steamExplosion",d.x,d.y,d.z,s,{angle:Vec2.Gs(a)});d.z=d.z-8;this.hi&&this.hi.lW();if(c){d=new sc.nH(c,{attack:{type:"MASSIVE",element:"HEAT",damageFactor:1,spFactor:0,hints:["STEAM"]},pos:d,
radius:8,zHeight:16,duration:0.2,expandRadius:60,alwaysFull:j,party:"OTHER",centralAngle:0.3,dir:ig.copy(a)});sc.pb.WB(d)}this.Cf&&ig.Vd.Uq(this.Cf,"SLOW",KEY_SPLINES.EASE_IN_OUT);this.Tb()}},Gma:function(a){if(!this.Ne){var c=this.je(ig.Rb.BOTTOM,Vec3.create());this.O.sheet.eh("steamExplosion2",c.x,c.y,c.z,s,{});c.z=c.z-8;this.hi&&this.hi.lW();if(a=a||this.$c){c=new sc.nH(a,{attack:{type:"MASSIVE",element:"HEAT",damageFactor:1,spFactor:0,hints:["STEAM"]},pos:c,radius:8,zHeight:16,duration:0.2,expandRadius:32,
alwaysFull:j,party:"OTHER",centralAngle:1});sc.pb.WB(c)}this.Cf&&ig.Vd.Uq(this.Cf,"SLOW",KEY_SPLINES.EASE_IN_OUT);this.Tb()}},I6:function(){if(!this.Ne){var b=this.kb(a);ig.t.af(sc.aZ,b.x,b.y,this.b.i.z+8,{panel:this.hi,coalCoolTime:this.ET});this.Tb()}},start:function(a,c,d){if(!this.n){this.Ja("ticking");this.n=3;Vec2.assign(this.b.Z,a);Vec2.length(this.b.Z,d||180);this.$c=c;this.cg=this.O.lN.Ya("active",this,{duration:-1})}},update:function(){this.Lra&&this.Lra--;if(this.target){ig.Xf.Lr(this.b,
this.target.b,a);Vec2.ZK(this.b.Eb,a,Math.PI*0.5*ig.g.ga);this.b.nd.height=Math.max(8,this.target.b.i.z+12-this.b.jc);Vec2.length(a)<48&&this.Gma()}else if(this.state!=1)this.b.nd.height=Math.max(8,this.k6-this.b.jc);else if(this.hi)this.k6=this.hi.b.i.z+8;if(this.state!=5&&this.n>0){this.n=this.n-ig.g.ga;this.n<=0&&(this.target?this.Gma():this.AFa());this.state==3&&this.n<=3&&this.Cua()}this.parent()},Om:function(b){var c=b.nh();if(c!=sc.ja.HEAT&&b.Ca!=sc.Qd.PLAYER||this.state==5)return w;var d=
b.ij(this),e=b.du(this,a);c==sc.ja.HEAT?this.Lra?this.Qbb():b.ic&&b.ic.yk("STEAM")?this.Gma(b.Bi()):this.cf(e,b.Bi()):c==sc.ja.COLD?this.I6(e):this.g$(e,120);c=sc.hc.LIGHT;if(!b.Wv||b.ic.yk("CHARGED"))c=sc.hc.MEDIUM;sc.pb.sj(this,d,c,b.nh(),w,w,j);return j},$O:R(j)})});ig.G=j;
ig.I("game.feature.puzzle.entities.water-block").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){var a={SQUARE:{shape:ig.mk.RECTANGLE,Bg:128,Dd:w,Qg:0},CORNER_NE:{shape:ig.mk.SLOPE_NE,Bg:64,Dd:w,Qg:0},CORNER_SE:{shape:ig.mk.SLOPE_SE,Bg:0,Dd:w,Qg:1},CORNER_SW:{shape:ig.mk.SLOPE_SW,Bg:0,Dd:j,Qg:1},CORNER_NW:{shape:ig.mk.SLOPE_NW,Bg:64,Dd:j,Qg:0}},b=Vec2.create();ig.ya.WaterBlock=ig.fe.extend({ym:0,iN:0,state:1,x0:0,n:0,O:{sheet:new ig.ae("puzzle.water-bubble"),handle:s,lA:s},
s:new ig.u({Bd:j,attributes:{iN:{c:"String",d:"Type of block",Y:a},x0:{c:"Number",d:"Number of seconds for steam or ice state to persist",ub:5}}}),f:function(b,d,e,h){this.parent(b,d,e,h);this.b.type=ig.la.BLOCK;this.b.v(32,32,32);this.iN=a[h.blockType]||a.SQUARE;this.b.shape=this.iN.shape;this.x0=h.changeDuration||5;(b=ig.Ef.get("waterblock"))&&this.ld({namedSheets:{block:{src:b.sheet,width:32,height:64,xCount:4,offX:b.x,offY:b.y+this.iN.Bg},puddle:{src:b.sheet,width:32,height:32,xCount:1,offX:b.Vfb,
offY:b.Wfb}},sheet:"block",flipX:this.iN.Dd,wallY:this.iN.Qg,pivot:{x:16,y:52},size:{x:32,y:32,z:32},SUB:[{name:"water",time:0.2,frames:[0,1,2],repeat:j,framesAlpha:[0.7,0.7,0.7]},{name:"frozen",time:0.2,frames:[3],repeat:j},{name:"melting",time:0.2,frames:[0,1,2],repeat:j},{name:"melting",time:0.2,frames:[3],repeat:j,aboveZ:1},{sheet:"puddle",size:{x:32,y:32,z:0},pivot:{x:16,y:16},wallY:1,time:1,frames:[0],repeat:w,SUB:[{name:"puddle"},{name:"regen"}]},{name:"regen",time:1,frames:[0],repeat:w}]});
this.mc=ig.Gd.WATER;this.Ja("water")},cf:function(a,b){if(this.state!=3){this.b.size.z=0;this.state=3;this.mc=0;this.O.sheet.Ya("blockSteam",this,{align:"CENTER"});var e=this.je(ig.Rb.BOTTOM,Vec3.create());if(b){e=new sc.nH(b,{attack:{type:"MASSIVE",element:"HEAT",damageFactor:2,spFactor:0,hints:["STEAM"]},pos:e,radius:8,zHeight:24,duration:0.1,expandRadius:32,alwaysFull:j,party:"OTHER",centralAngle:1});sc.pb.WB(e)}this.n=this.x0;this.O.handle=this.O.sheet.Ya("blockRecharge",this,{align:"CENTER",
duration:-1});this.Ja("puddle")}},isFrozen:function(){return this.state==2},I6:function(){if(this.state!=2){this.state=2;this.Ja("frozen");this.mc=ig.Gd.ICE;this.O.sheet.Ya("blockFreeze",this,{});this.n=this.x0}},qMa:function(){this.state=1;this.Ja("melting");this.O.sheet.Ya("blockMelt",this,{spriteFilter:1,callback:this});this.mc=ig.Gd.WATER;this.n=0},$r:function(a){this.Cj=="melting"&&a.state==ig.Nw.eE&&this.Ja("water")},pgb:function(){this.b.Mp(ig.la.BLOCK);this.state=1;this.b.size.z=32;this.mc=
ig.Gd.WATER;this.Ja("water");this.O.handle&&this.O.handle.stop();this.O.handle=s;this.O.sheet.Ya("blockAppear",this,{align:"CENTER"})},g$:function(){this.O.lA&&this.O.lA.stop();this.O.lA=this.O.sheet.Ya("blockHit",this)},lo:function(a,d){if(this.state==1&&!Vec2.Tl(d)){a instanceof sc.aZ&&this.I6();if(a instanceof ig.ya.Combatant){this.g$();Vec2.assign(b,d);Vec2.hd(b);sc.pb.sj(a,a.je(ig.Rb.CENTER),sc.hc.LIGHT,sc.ja.NEUTRAL,w,w,j);a.xk();var e=a.m1(b,a.Pv()?"LIGHT":"MEDIUM",w,w);a.b.Z.z=100;a.Nl=Math.max(a.Nl,
e)}}},d4:function(a){if(a instanceof sc.aZ&&this.state==1){this.I6();a.J2()}},Om:function(a){if(this.state==3)return w;var d=a.ij(this),e=a.du(this,b);if(a.ic&&a.ic.yk("STEAM"))return w;var h=a.nh();if(this.state==2&&h!=sc.ja.HEAT)return w;h==sc.ja.HEAT?this.state==2?this.qMa():this.cf(e,a.Bi()):h==sc.ja.COLD?this.I6(e):this.g$();e=sc.hc.LIGHT;if(!a.Wv||a.ic.yk("CHARGED"))e=sc.hc.MEDIUM;sc.pb.sj(this,d,e,a.nh(),w,w,j);return j},update:function(){if(this.n>0){this.n=this.n-ig.g.ga;if(this.n<0){this.n=
0;this.state==2?this.qMa():this.pgb()}}if(this.state==3){var a=1-this.n/this.x0;this.Za.Ia=a;this.Za.Ma=a}else{this.Za.Ia=1;this.Za.Ma=1}this.parent()}})});ig.G=j;
ig.I("game.feature.puzzle.entities.ice-disk").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){var a=Vec2.create(),b=Vec3.create();sc.aZ=ig.fe.extend({n:0,$c:s,state:1,O:{sheet:new ig.ae("puzzle.water-bubble"),handle:s,lA:s},Cf:s,f:function(a,b,e,h){this.parent(a,b,e,h);this.b.type=ig.la.VIRTUAL;this.b.se=1;this.b.Xh=0;this.b.mm=1;this.b.v(16,16,16);this.b.nfa(4,4);this.b.uk=0.2;this.b.Ad.size=24;this.b.l(a-this.b.size.x/2,b-this.b.size.y/2,e);this.RK=5;this.ld({shapeType:"Y_FLAT",
offset:{x:0,y:0,z:0},sheet:{src:"media/entity/objects/object-effects.png",width:24,height:24,xCount:1,offX:224,offY:16},SUB:[{name:"idle",time:0.1,frames:[0],repeat:j}]});this.Ja("idle");this.hi=h.panel||s;this.ET=h.coalCoolTime;this.n=5;this.Za.alpha=0;this.b.Z.z=150;this.O.sheet.Ya("iceAppear",this,{})},wjb:function(a,b){if(!this.Ne&&this.state!=2){this.state=2;var e=this.b;e.Ui=400;e.pp=0;e.uk=0;e.rda=j;e.ni=9001;Vec2.assign(e.Z,a);Vec2.round(e.Z,Math.PI*0.03);Vec2.length(e.Z,400);this.n=1.5;this.ic=
new sc.NL(b.ba,{element:sc.ja.COLD,hints:["ICE_DISK"]});if(!this.$c)this.$c=b;this.O.handle&&this.O.handle.stop();this.b.Mp(ig.la.IGNORE);this.O.sheet.Ya("iceTrail",this,{duration:-1,angle:Vec2.Gs(a),offset:{z:6}})}},nGa:function(a){this.state=3;Vec2.Sa(this.b.Z,0,0);ig.sH.vN(this);this.O.sheet.Ya("iceAbsorb",this,{callback:this,align:"CENTER"});this.Cf&&ig.Vd.Uq(this.Cf,"SLOW",KEY_SPLINES.EASE_IN_OUT);a&&this.l(a.x-this.b.size.x/2,a.z-this.b.size.y/2,a.z)},Tb:function(a){a||this.hi&&this.hi.lW();
this.parent(a)},Sfa:function(){if(!this.Ne){Vec2.Sa(this.b.Z,0,0);this.state=3;this.O.sheet.Ya("iceMelt",this,{callback:this,align:"CENTER"})}},$r:function(a){this.Ne||a.state==ig.Nw.eE&&this.Tb()},v2:function(a){if(!this.Ne){if(a.gF){var b=this.kb();b.x=b.x+a.jp.x*this.b.size.x/2.05;b.y=b.y+a.jp.y*this.b.size.y/2.05;if(!this.RK){this.J2();return}this.RK--;this.O.sheet.eh("iceBounce",b.x,b.y,this.b.i.z,s,{angle:Vec2.Gs(a.jp)})}this.parent(a)}},J2:function(){if(!this.Ne){this.Cf&&ig.Vd.Uq(this.Cf,
"SLOW",KEY_SPLINES.EASE_IN_OUT);var a=this.je(ig.Rb.BOTTOM,Vec3.create());this.O.sheet.eh("iceBreak",a.x,a.y,a.z,s,{});this.Tb()}},Jkb:function(){if(!this.Ne){this.Cf&&ig.Vd.Uq(this.Cf,"SLOW",KEY_SPLINES.EASE_IN_OUT);var a=this.je(ig.Rb.BOTTOM,Vec3.create());ig.t.af(sc.tUa,a.x,a.y,this.b.i.z,{panel:this.hi,coalCoolTime:this.ET});this.hi=s;this.Tb()}},update:function(){if(this.n){this.n=this.n-ig.g.ga;if(this.n<=0){this.n=0;this.state==1?this.Sfa():this.J2()}}this.b.i.z<ig.t.$F&&this.J2();this.b.i.z==
this.b.jc&&ig.mc.FO(this.b,j)==ig.Gd.COAL&&this.Jkb();this.parent()},Om:function(b){var d=b.nh();if(this.state==3||d!=sc.ja.HEAT&&this.state!=1)return w;var e=b.ij(this),h=b.du(this,a);sc.pb.sj(this,e,sc.hc.MEDIUM,b.nh(),w,w,j);d==sc.ja.HEAT?this.Sfa():this.wjb(h,b.Bi());return j},DA:function(a){if(this.b.i.z>=-1&&!this.b.nl){var d=this.je(ig.Rb.BOTTOM,b);a<-30&&this.O.sheet.eh("iceLand",d.x,d.y,d.z,s,{})}},lo:function(a){this.state==2&&(a.Ge&&a.Ca!=this.$c.Ca?a.Ge(this,this.ic)&&this.J2():a instanceof
ig.ya.RegenDestruct&&a.Om(this)&&this.nGa(a.je(ig.Rb.BOTTOM)))},$O:R(j),ij:function(a,b){return this.PU(a,b)},du:function(a,b){var e=b||{};Vec2.assign(e,this.b.Z);return e},nh:function(){return sc.ja.COLD},Bi:M("$c"),nca:R(j)});sc.tUa=ig.fe.extend({n:0,O:{sheet:new ig.ae("puzzle.water-bubble")},f:function(a,b,e,h){this.parent(a,b,e,h);this.b.type=ig.la.BLOCK;this.mc=ig.Gd.STONE;this.b.se=1;this.b.v(28,28,2);this.b.l(a-this.b.size.x/2,b-this.b.size.y/2,e);a=ig.Ef.get("coals");this.ld({shapeType:"Y_FLAT",
offset:{x:0,y:2,z:0},size:{x:32,y:32,z:0},sheet:{src:a.sheet,width:32,height:32,xCount:1,offX:a.x,offY:a.y},SUB:[{name:"idle",time:0.1,frames:[0],repeat:j}]});this.Ja("idle");this.hi=h.panel||s;this.n=h.coalCoolTime||5;this.O.sheet.Ya("coalsAppear",this,{})},Tb:function(a){a||this.hi&&this.hi.lW();this.parent(a)},Sfa:function(){this.Ne||this.O.sheet.Ya("coalsDisappear",this,{callback:this,align:"CENTER"})},$r:function(a){this.Ne||a.state==ig.Nw.eE&&this.Tb()},update:function(){if(this.n){this.n=this.n-
ig.g.ga;if(this.n<=0){this.n=0;this.Sfa()}}this.parent()}})});ig.G=j;
ig.I("game.feature.puzzle.entities.key-panel").J("impact.base.entity","impact.feature.effect.effect-sheet","game.feature.combat.entities.ball","game.feature.menu.map-model").H(function(){var a={REGULAR:{item:sc.LL.DUNGEON_KEY,hi:{size:{x:16,y:16,z:1},KX:{x:48,y:88,uc:24,Gc:24}},fx:{Ga:"active",r$:"chargeActive"},sFa:new sc.wxa({animation:{name:"default",sheet:{src:"media/entity/balls/default.png",width:24,height:24,offY:120,offX:24},time:0.05,repeat:j,frames:[0,1,2,3]},effects:"ball-special",maxBounce:3,
timer:1.5,effectKeys:{bounce:"keyBounce",wall:"keyWall",air:"keyAir",trail:"keyTrail"},attack:{type:"HEAVY",damageFactor:1.3,skillBonus:"CHARGED_BALL_DMG",hints:["CHARGED","DUNGEON_KEY"]},speed:400,trail:j})},MASTER:{item:sc.LL.DUNGEON_MASTER_KEY,hi:{size:{x:24,y:24,z:1},KX:{x:48,y:112,uc:32,Gc:32}},fx:{Ga:"activeMaster",r$:"chargeActiveMaster"},sFa:new sc.wxa({animation:{name:"default",sheet:{src:"media/entity/balls/default.png",width:24,height:24,offY:144,offX:24},time:0.05,repeat:j,frames:[0,1,
2,3]},effects:"ball-special",maxBounce:3,timer:1.5,effectKeys:{bounce:"keyBounceMaster",wall:"keyWallMaster",air:"keyAirMaster",trail:"keyTrailMaster"},attack:{type:"HEAVY",damageFactor:1.3,skillBonus:"CHARGED_BALL_DMG",hints:["CHARGED","DUNGEON_MASTER_KEY"]},speed:400,trail:j})}};ig.ya.KeyPanel=ig.fe.extend({s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",d:"Condition for Enemy to spawn",sd:j},gP:{c:"String",d:"Type of Key Panel",Y:a}}}),O:{key:new ig.ae("puzzle.key"),X_:s,VI:s},Hw:s,Ga:w,gP:s,
f:function(b,c,d,e){this.parent(b,c,d,e);this.b.type=ig.la.BLOCK;this.b.se=1E3;this.gP=a[e.keyType]||a.REGULAR;b=this.gP.hi;this.b.v(b.size.x,b.size.y,b.size.z);c=ig.Ef.get("puzzle2");this.ld({sheet:{src:c.sheet,width:b.KX.uc,height:b.KX.Gc,xCount:2,offX:b.KX.x,offY:b.KX.y},shapeType:"Z_FLAT",offset:{x:0,y:(b.KX.Gc-b.size.y)/2,z:0},SUB:[{name:"on",time:1,frames:[1],repeat:w},{name:"off",time:1,frames:[0],repeat:w}]});this.Ja("off")},qQa:function(a){!a&&this.Hw&&this.Hw.Oua(s);this.Hw=a;this.setActive(this.Hw&&
this.FJa());this.Hw&&!this.Ga&&this.O.key.Ya("noKeysBlink",this)},setActive:function(a){this.Ga=a;this.Ja(this.Ga?"on":"off");if(this.Ga&&!this.O.X_){this.Hw.Oua(this.gP.sFa);this.O.X_=this.O.key.Ya(this.gP.fx.Ga,this,{duration:-1})}if(!this.Ga&&this.O.X_){this.Hw&&this.Hw.Oua(s);this.O.X_.stop();this.O.X_=s}if(!this.Ga&&this.O.VI){this.O.VI.stop();this.O.VI=s}},FJa:function(){return sc.map.fba(this.gP.item)},update:function(){if(this.Hw)if(ig.Oj.yO(this.Hw)!=this)this.qQa(s);else{this.setActive(this.FJa());
if(this.Ga)if(!this.O.VI&&this.Hw.XC())this.O.VI=this.O.key.Ya(this.gP.fx.r$,this,{duration:-1});else if(this.O.VI&&!this.Hw.XC()){this.O.VI.stop();this.O.VI=s}}this.parent()},lo:function(a){!this.Hw&&a==ig.t.wb&&this.qQa(a)}})});ig.G=j;
ig.I("game.feature.puzzle.entities.ball-changer").J("impact.base.actor-entity","impact.base.entity","impact.base.game","game.feature.combat.model.combat-params","impact.feature.effect.effect-sheet").H(function(){var a=Vec3.create();ig.ya.BallChanger=ig.fe.extend({FI:j,Ac:w,jb:s,eF:s,eU:0,j1:s,s:new ig.u({Bd:j,attributes:{eF:{c:"BallChangerType",d:"Type of BallChanger",sd:j},jb:{c:"VarCondition",d:"Condition for BallChanger to be active"}},Fj:j,hl:"rgba(255,255,0, 0.5)"}),fx:{sheet:new ig.ae("puzzle.ball-changer")},
f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.IGNORE;this.b.ni=-1;this.b.se=1E3;Vec3.Sa(this.b.size,24,24,24);this.jb=new ig.ce(e.condition);if(e.changerType){if(window.Yc){this.s=this.s.copy();this.s.Fj=w}a=e.changerType;this.eF=new sc.yY[a.type](a.settings);a=ig.Ef.get("puzzle2");c=this.eF.qa;this.ld({namedSheets:{base:{src:a.sheet,width:16,height:16,offX:208,offY:64},sphere:{src:a.sheet,width:16,height:16,offX:144,offY:64,xCount:4},icon:{src:a.sheet,width:16,height:16,offX:208,offY:80,
xCount:3}},SUB:[{size:{x:16,y:16,z:0},offset:{y:-4},sheet:"base",SUB:[{name:"off",time:1,frames:[0]},{name:"on",time:1,frames:[2]},{name:"show",time:0.06,frames:[1,2]},{name:"hide",time:0.06,frames:[1,0]},{name:"used",time:0.15,frames:[1,2,1,0],repeat:j}]},{size:{x:16,y:0,z:16},offset:{z:12,y:-5},renderMode:"lighter",sheet:"sphere",SUB:[{name:"on",time:0.15,frames:[0,1,2,3,0,1,2,3],repeat:j,tileOffset:4+this.eF.xva*4,framesGfxOffset:[0,0,0,1,0,1,0,1,0,0,0,-1,0,-1,0,-1]},{name:"show",time:0.03,frames:[0,
1,2,3]},{name:"hide",time:0.03,frames:[3,2,1,0]}]},{size:{x:16,y:0,z:16},offset:{z:13,y:-4},sheet:"icon",frames:[c,c,c,c,c,c,c,c],flipX:this.eF.Dd,flipY:this.eF.yi,framesGfxOffset:[0,0,0,1,0,1,0,1,0,0,0,-1,0,-1,0,-1],time:0.15,repeat:j,SUB:[{name:"on"}]}]});this.Ac=this.jb.evaluate();this.Ja(this.Ac?"on":"off")}},update:function(){if(this.j1&&this.j1.Ne){this.Ac&&this.Ja("show",j,"on",j);this.j1=s}if(this.eU>0){this.eU=this.eU-ig.g.ga;if(this.eU<=0){this.Ac&&this.Ja("show",j,"on",j);this.eU=0}}this.parent()},
Fg:function(){var a=this.jb.evaluate();if(a!=this.Ac){this.Ac=a;this.fx.sheet.Ya("appear",this);this.Ja(this.Ac?"show":"hide",j,this.Ac?"on":"off",j)}},Om:function(b){if(!b.Wv||this.j1||!this.jb.evaluate())return w;this.Ja("hide",j,"used",j);this.eF.b4(b,this);if(this.eF.HFa){var c=ig.Xf.Moa(a,b.b,this.b);b.sJa(c)}b.F9(this);this.eF.$Sa?this.j1=b:this.eU=0.2;return w}});sc.k7=ig.ra.extend({qa:0,xva:0,Dd:w,yi:w,HFa:w,$Sa:w,b4:F()});sc.yY={};sc.yY.CHANGE_DIR=sc.k7.extend({s:new ig.u({attributes:{dir:{c:"Face",
d:"Direction to face",Y:ig.Zb.Cl}}}),dir:Vec2.create(),Ab:new ig.da("media/sound/puzzle/redirect.ogg",1),f:function(a){this.HFa=j;a=ig.Zb.Cl[a.dir];ig.Zb.Mr(a,this.dir);switch(a){case ig.Zb.Cl.NORTH:this.qa=0;break;case ig.Zb.Cl.EAST:this.qa=1;break;case ig.Zb.Cl.SOUTH:this.qa=0;this.yi=j;break;case ig.Zb.Cl.WEST:this.qa=1;this.Dd=j;break;case ig.Zb.Cl.NORTH_EAST:this.qa=2;break;case ig.Zb.Cl.SOUTH_EAST:this.qa=2;this.yi=j;break;case ig.Zb.Cl.SOUTH_WEST:this.qa=2;this.Dd=this.yi=j;break;case ig.Zb.Cl.NORTH_WEST:this.qa=
2;this.Dd=j}},b4:function(a){ig.Tg.ah(this.Ab,a);a.Q6a();a.r6a(this.dir)}});sc.yY.CHANGE_SPEED=sc.k7.extend({s:new ig.u({attributes:{lh:{c:"Number",d:"Relative speed factor",ub:0.5}}}),lh:s,$Sa:j,Ab:{wva:new ig.da("media/sound/puzzle/speed-up.ogg",1),nva:new ig.da("media/sound/puzzle/slow-down.ogg",1)},f:function(a){this.lh=a.factor||0.5;this.qa=3},b4:function(a){this.lh>1?ig.Tg.ah(this.Ab.wva,a):this.lh<1&&ig.Tg.ah(this.Ab.nva,a);a.Uta();a.Bma(this.lh,j)}});sc.yY.RESET_SPEED=sc.k7.extend({s:new ig.u({attributes:{}}),
lh:s,Ab:{reset:new ig.da("media/sound/puzzle/reset.ogg",1),wva:new ig.da("media/sound/puzzle/speed-up.ogg",1),nva:new ig.da("media/sound/puzzle/slow-down.ogg",1)},f:function(){this.qa=4},b4:function(a){var c=a.kt;a.ghb()&&(c>1?ig.Tg.ah(this.Ab.nva,a):c<1?ig.Tg.ah(this.Ab.wva,a):ig.Tg.ah(this.Ab.reset,a))}});sc.yY.CHANGE_ELEMENT=sc.k7.extend({s:new ig.u({attributes:{element:{c:"String",d:"Element to change to",Y:["HEAT","COLD"]}}}),element:s,O:new ig.ae("puzzle.ball-changer"),Ioa:s,f:function(a){this.element=
sc.ja[a.element];switch(this.element){case sc.ja.HEAT:this.qa=5;this.xva=1;this.Ioa="heatConvert";break;case sc.ja.COLD:this.qa=6;this.xva=2;this.Ioa="coldConvert";break;case sc.ja.SHOCK:this.qa=0;this.yi=j;break;case sc.ja.WAVE:this.qa=1;this.Dd=j}},b4:function(a,c){if(a.Bi().Xv){var d=sc.q.R.ad.AIa(this.element,a.ic.yk("CHARGED"));if(d){this.O.Ya(this.Ioa,c,{align:ig.Rb.BOTTOM,offset:{z:12}});a.uPa(d.data)}}}})});ig.G=j;
ig.I("game.feature.puzzle.entities.walls").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){sc.EBa={BLOCK:0,PBLOCK:1,NPBLOCK:2};sc.CS={CONTINUE:0,STOP:1};sc.Yw={CONTINUE:0,STOP:1,CORNER_LEFT:2,CORNER_RIGHT:3};ig.ya.WallBase=ig.gd.extend({jb:s,Ga:w,Xwa:0,Y6:0,Oga:[],yw:w,sK:w,f:function(a,c,d,e){this.parent(a,c,d,e);this.b.size.z=1;if(!e.size){this.b.size.x=8;this.b.size.y=8}this.sK=e.noNavMapBlock||w;this.b.type=ig.la.BLOCK;this.b.time.Gj=j;this.Xwa=e.collType||"BLOCK";this.Y6=
e.wallZHeight||32;this.jb=new ig.ce(e.condition);this.yw=e.skipRender||w;this.Ga=this.jb.evaluate()},Tb:function(a){this.parent(a)},Qwa:function(a){for(var c=0;c<this.Oga.length;++c)this.Oga[c].setActive(this.Ga,a)},Fg:function(){var a=this.jb.evaluate();if(this.Ga!=a){this.Ga=a;this.Qwa()}}});var a={};ig.ya.WallHorizontal=ig.ya.WallBase.extend({r:s,lw:s,LV:0,o5:0,s:new ig.u({Bd:j,Ip:j,attributes:{yw:{c:"Boolean",d:"True if the wall should be invisible",ub:w},LV:{c:"String",d:"Left End Type",Y:sc.CS},
o5:{c:"String",d:"Right End Type",Y:sc.CS},jb:{c:"VarCondition",d:"Condition for wall to be active",sd:j},xq:{c:"String",d:"Collision Types of Wall. BLOCK - Blocks all, PBLOCK - Blocks only projectiles, NPBLOCK - Blocks only non projectiles",Y:sc.EBa},Y6:{c:"Number",d:"Total height of the wall, when active",ub:32},sK:{c:"Boolean",d:"If true: do not block nav map"}}}),f:function(a,c,d,e){this.parent(a,c,d,e);a=ig.Ef.get("puzzle");this.r=new ig.$(a.sheet);this.lw=new ig.cv(a.sheet,ig.ue.Pf.Xn,8,16,
176,64,1,1);this.LV=sc.CS[e.leftEnd]||sc.CS.CONTINUE;this.o5=sc.CS[e.rightEnd]||sc.CS.CONTINUE},show:function(a){this.parent(a);this.Oga.push(ig.t.af("WallBlocker",this.b.i.x,this.b.i.y,this.b.i.z+this.b.size.z,{size:{x:this.b.size.x-0-0,y:8,z:this.Y6},collType:this.Xwa,skipRender:this.yw,noNavMapBlock:this.sK}));this.Qwa(j)},Jn:function(){this.dm(1+(this.LV?1:0)+(this.o5?1:0))},update:function(){this.parent()},tj:function(){if(!this.yw){var b=this.b,c=this.LV?8:0,d=b.size.x-(this.LV?8:0)-(this.o5?
8:0),e=0;if(d>0){this.Ta[e].l(b.i.x+c,b.i.y,b.i.z);this.Ta[e].v(d,b.size.y,b.size.z,b.size.y);this.Ta[e].Vh(this.lw.eu(0),0,0);e++}if(this.LV){this.Ta[e].l(b.i.x,b.i.y,b.i.z);this.Ta[e].v(8,b.size.y,b.size.z,b.size.y);var h=this.r.Lv(a,2,8,16,176,64);this.Ta[e].Vh(this.r,h.x,h.y);e++}if(this.o5){this.Ta[e].l(b.i.x+d+c,b.i.y,b.i.z);this.Ta[e].v(8,b.size.y,b.size.z,b.size.y);h=this.r.Lv(a,3,8,16,176,64);this.Ta[e].Vh(this.r,h.x,h.y)}}}});ig.ya.WallVertical=ig.ya.WallBase.extend({r:s,lw:s,sR:0,rT:0,
s:new ig.u({Bd:j,Jp:j,attributes:{yw:{c:"Boolean",d:"True if the wall should be invisible",ub:w},sR:{c:"String",d:"Top End Type",Y:sc.Yw},rT:{c:"String",d:"Bottom End Type",Y:sc.Yw},jb:{c:"VarCondition",d:"Condition for wall to be active",sd:j},xq:{c:"String",d:"Collision Types of Wall. BLOCK - Blocks all, PBLOCK - Blocks only projectiles, NPBLOCK - Blocks only non projectiles",Y:sc.EBa},Y6:{c:"Number",d:"Total height of the wall, when active",ub:32},sK:{c:"Boolean",d:"If true: do not block nav map"}}}),
f:function(a,c,d,e){this.parent(a,c,d,e);a=ig.Ef.get("puzzle");this.r=new ig.$(a.sheet);this.lw=new ig.cv(a.sheet,ig.ue.Pf.tE,8,16,184,64,1,1);this.sR=sc.Yw[e.topEnd]||sc.Yw.CONTINUE;this.rT=sc.Yw[e.bottomEnd]||sc.Yw.CONTINUE},show:function(a){this.parent(a);this.Oga.push(ig.t.af("WallBlocker",this.b.i.x+0,this.b.i.y+0,this.b.i.z+this.b.size.z,{size:{x:8,y:this.b.size.y-0-0,z:this.Y6},collType:this.Xwa,skipRender:this.yw,noNavMapBlock:this.sK}));this.Qwa(j)},Jn:function(){this.dm(1+(this.sR?1:0)+
(this.rT?1:0))},update:function(){this.parent()},tj:function(){if(!this.yw){var b=this.b,c=this.sR?9:1,d=b.size.y-(this.sR?8:0)-(this.rT?8:0),e=0;if(d>0){this.Ta[e].l(b.i.x,b.i.y+c,b.i.z);this.Ta[e].v(b.size.x,d,b.size.z,0);this.Ta[e].Vh(this.lw.eu(0),0,0);e++}if(this.sR){var h=0;switch(this.sR){case sc.Yw.STOP:h=h+5;break;case sc.Yw.CORNER_LEFT:h=h+4;break;case sc.Yw.CORNER_RIGHT:h=h+6}h=this.r.Lv(a,h,8,16,176,64);this.Ta[e].l(b.i.x,b.i.y,b.i.z);this.Ta[e].v(b.size.x,8,b.size.z,8);this.Ta[e].Vh(this.r,
h.x,h.y);e++}if(this.rT){h=0;switch(this.rT){case sc.Yw.STOP:h=h+8;break;case sc.Yw.CORNER_LEFT:h=h+7;break;case sc.Yw.CORNER_RIGHT:h=h+9}h=this.r.Lv(a,h,8,16,176,64);this.Ta[e].l(b.i.x,b.i.y+d+c,b.i.z);this.Ta[e].v(b.size.x,8,b.size.z,8);this.Ta[e].Vh(this.r,h.x,h.y)}}}});ig.ya.WallBlocker=ig.gd.extend({maxHeight:0,YI:s,n:0,lia:0.3,Mha:0.1,yw:w,dk:s,sK:w,Pna:s,s:new ig.u({Bd:w,attributes:{xq:{c:"String",d:"Top End Type",Y:ig.la}}}),f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.BLOCK;
this.b.time.Gj=j;this.sK=e.noNavMapBlock;if(!ig.g.ULa)this.Kb={Iab:new ig.da("media/sound/puzzle/barrier-up.ogg",0.9,w),Gab:new ig.da("media/sound/puzzle/barrier-down.ogg",0.9,w)};this.yw=e.skipRender||w;this.b.type=ig.la[e.collType];a=ig.Ef.get("walls").Cr;d=c="#fff";switch(e.collType){case "BLOCK":d=a.a$;c=a.b$;break;case "PBLOCK":d=a.Sda;c=a.Tda;break;case "NPBLOCK":d=a.tda;c=a.uda}this.YI=new ig.wha(new ig.G8(c,"white"),new ig.G8(d,"white"));this.Pna=new ig.cv("media/entity/objects/object-effects.png",
ig.ue.Pf.gz,16,16,176,0,1,1);this.maxHeight=this.b.size.z},Tb:function(a){this.dk&&this.dk.remove();this.Pna.zc();this.parent(a)},Jn:function(){this.dm(2)},update:function(){if(this.n>0)this.n=this.n-ig.g.ga},tj:function(){if(!this.yw){var a=this.b,c=this.Ta[0],d=this.Ta[1];if(a.size.z==0&&this.n<=0){c.Vh(s);d.Vh(s)}else{var e=0,h=0;if(this.n>0){e=((this.n-(a.size.z?this.Mha:0))/this.lia).Vb(0,1);e=KEY_SPLINES[a.size.z?"EASE_IN":"EASE_OUT"].get(e);h=((this.n-(a.size.z?0:this.lia))/this.Mha).Vb(0,
1);a.size.z||(h=1-h)}this.YI.BN.sua(h);this.YI.CN.sua(h);h=a.size.z?(1-e)*this.maxHeight:e*this.maxHeight;e=(a.size.z?1-e:e)*0.76;c.l(a.i.x,a.i.y,a.i.z);c.v(a.size.x,a.size.y,h);c.Vh(this.YI);c.tz=1;c.wd(e);d.l(a.i.x,a.i.y,a.i.z);d.v(a.size.x,a.size.y,h);d.wd(e);d.tz=1;d.Ze="lighter";d.Vh(this.Pna.eu(0),a.i.x+ig.t.nT*16,a.i.y-a.i.z-a.size.z+ig.t.nT*16)}}},setActive:function(a,c){this.v(this.b.size.x,this.b.size.y,a?this.maxHeight:0);if(a&&!this.dk&&!this.sK)this.dk=ig.navigation.i2(this);else if(!a&&
this.dk){this.dk.remove();this.dk=s}if(!c){this.n=this.Mha+this.lia;this.Kb&&(a?ig.Tg.ah(this.Kb.Iab,this):ig.Tg.ah(this.Kb.Gab,this))}}})});ig.G=j;
ig.I("game.feature.puzzle.entities.glowing-line").J("impact.base.entity").H(function(){ig.ya.GlowingLine=ig.gd.extend({lw:s,n:0,UU:w,s:new ig.u({Bd:j,attributes:{jb:{c:"VarCondition",d:"Condition on which the line will glow"}},Ip:j,Jp:j,w5:16,label:R("")}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.b.time.Gj=j;d.size||this.b.v(8,8,0);a=ig.Ef.get("puzzle");this.lw=new ig.cv(a.sheet,ig.ue.Pf.zZ,16,16,176,80,4,1);this.jb=new ig.ce(d.condition);this.UU=this.jb.evaluate()},Jn:function(){this.dm(1)},
update:function(){if(this.n>0)this.n=this.n-ig.g.ga},tj:function(){var a=this.UU?3:0;this.n>0&&(a=a-Math.min(2,Math.floor(this.n/0.05)));var b=this.b,c=this.Ta[0];c.l(b.i.x,b.i.y,b.i.z);c.v(b.size.x,b.size.y,b.size.z);c.Vh(this.lw.eu(a),0,0)},Fg:function(){var a=this.jb&&this.jb.evaluate();if(a&&!this.UU){this.UU=j;this.n=0.25}else if(!a&&this.UU){this.UU=w;this.n=0}}})});ig.G=j;
ig.I("game.feature.puzzle.entities.lorry").J("impact.base.entity","impact.feature.effect.effect-sheet","impact.base.actor-entity").H(function(){sc.dia={};sc.cia={PERMA_MOVE:{UNa:j},ON_TOUCH_PERMA_MOVE:{Oda:j},ON_TOUCH_MOVE_ONCE:{Oda:j,sNa:j},WHILE_TOUCH_MOVE:{Oda:j,peb:j,sNa:j}};sc.DH={};sc.DH.SLOW=60;sc.DH.DEFAULT=90;sc.DH.FAST=120;sc.DH.FASTER=180;sc.DH.FASTEST=240;var a=Vec3.create(),b=Vec3.create(),c=new ig.ae("puzzle.lorry");ig.ya.Lorry=ig.fe.extend({Mca:s,ym:0,zP:s,NF:Vec2.create(),Oq:w,rh:0,
Mk:0,nL:0,tD:0,Gh:s,xFa:j,cg:s,O3:{X4:s,gna:s,hW:s,sb:[],OW:0},s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",d:"Condition for Enemy to spawn",sd:j},Mca:{c:"String",d:"Type/Size of the Lorry",Y:sc.dia},zP:{c:"String",d:"How the platform moves",Y:sc.cia},NF:{c:"String",d:"The initial direction of the platform",Y:ig.Zb.zh},speed:{c:"String",d:"Speed of lorry",Y:sc.DH},jda:{c:"VarCondition",d:"Additional condition for lorry to move",U:j}}}),f:function(a,b,c,k){this.parent(a,b,c,k);this.b.type=ig.la.BLOCK;
this.zP=sc.cia[k.moveType]||sc.cia.PERMA_MOVE;ig.Zb.Mr(ig.Zb.zh[k.initDir],this.NF);this.rh=sc.DH[k.speed]||sc.DH.DEFAULT;this.jda=new ig.ce(k.moveCondition||s);a=ig.Ef.get("lorry");if(this.Mca=k=sc.dia[k.lorryType]){this.b.v(k.size.x,k.size.y,k.size.z);this.ld({sheet:{src:a.sheet,width:k.r.uc,height:k.r.Gc,xCount:k.r.Bl,offX:a.dra+k.r.x,offY:a.era+k.r.y},SUB:[{name:"off",time:1,frames:[0],repeat:w},{name:"on",time:1,frames:[1],repeat:w}]})}this.zP.UNa&&(!window.Yc&&this.jda.evaluate())&&this.hL(j,
j)},show:function(a){this.parent(a);if(!a){this.Za.alpha=0;c.Ya("lorryAppear",this,{align:"TOP"})}},j5:function(b,e){var h=this.je(ig.Rb.TOP,a);c.eh("lorryDisappear",h.x,h.y,h.z);this.l(b.x,b.y,b.z);this.tJa(e);this.hL(w,j);this.tD=this.nL=this.Mk=this.Za.alpha=0;c.Ya("lorryAppear",this,{align:"TOP"})},hL:function(a,b){this.Oq=a;this.Ja(this.Oq?"on":"off");if(this.Oq&&!this.Gh){this.cg=c.Ya("lorryRuns",this,{duration:-1});this.Gh=new ig.Qw(this,ig.cl.XL,0.2,0.2,-1,1);ig.ph.cx(this.Gh);b||c.Ya("lorryActivate",
this,{align:"TOP"})}else if(!this.Oq&&this.Gh){this.cg&&this.cg.stop();this.Gh.stop();this.Gh=s;b||c.Ya("lorryDeactivate",this,{align:"TOP"})}},update:function(){this.O3.gna||this.tJa(this.NF);if(this.Oq)if(this.tD>0){this.tD=this.tD-ig.g.ga;if(this.tD<=0)this.tD=0;if(this.zP.sNa){var a=ig.t.uO(this);a.indexOf(ig.t.wb)==-1&&this.hL(w)}}else{this.udb();if(this.zP.peb){a=ig.t.uO(this);if(a.indexOf(ig.t.wb)==-1){this.Mk=0;this.hL(w)}}}this.parent()},udb:function(){var c=this.je(ig.Rb.BOTTOM,a),e=this.O3,
h;if(!this.nL&&this.Mk>=this.rh||this.nL&&this.Mk<=15){this.Mk=this.Mk.Vb(15,this.rh);h=this.Mk*ig.g.ga}else{var k=this.nL?-this.nL:this.rh*2;h=this.Mk*ig.g.ga+k*ig.g.ga*ig.g.ga;this.Mk=this.Mk+k*ig.g.ga}for(k=w;h;){var l=e.sb[e.OW],m=Vec3.sub(l,c,b),n=Vec3.length(m);if(n<=h){h=h-n;Vec3.assign(c,l);if(!this.gkb()){h=0;k=j}}else{Vec3.length(m,h);Vec3.add(c,m);h=0}}h=this.b;h.l(c.x-h.size.x/2,c.y-h.size.y/2,c.z,j);if(k){this.nL=0;this.hd();this.tD=1}else if(!this.nL){h=this.Mk*0.5;c=e.gna.HIa(c,e.X4,
h);if(c<h)this.nL=0.5*this.Mk*this.Mk/c}},lo:function(a){if(this.jda.evaluate()&&this.zP.Oda&&a.Xv&&!this.Oq){this.tD=0.4;this.hL(j)}},Fg:function(){var a=this.jda.evaluate();if(!a&&this.Oq){this.Mk=0;this.hL(w)}else if(a&&!this.Oq){a=ig.t.uO(this);if(!this.zP.Oda||a.indexOf(ig.t.wb)!=-1){this.tD=0.4;this.hL(j)}}},gkb:function(){var a=this.O3;if(a.OW<a.sb.length-1){a.OW++;return j}if(a.hW){var b=a.sb.last();a.hW.$$a(a,b);return j}return w},hd:function(){for(var a=this.O3,b=[],c=a.sb.length;c--;)b.push(a.sb[c]);
a.sb=b;a.OW=b.length-a.OW;b=a.X4;a.X4=a.hW;a.hW=b},tJa:function(b){for(var c=this.je(ig.Rb.BOTTOM,a),h=ig.t.Lx(c.x-1,c.y-1,c.z-1,2,2,2,this),k=h.length;k--;)h[k]instanceof ig.ya.LorryRail&&h[k].s$a(this.O3,c,b)},ZB:function(a){a.b.aa=this.b.aa;a.b.i.z=a.b.jc=this.b.jc+this.b.size.z;a.face.x=this.NF.x;a.face.y=this.NF.y;a.l(this.b.i.x+this.b.size.x/2-a.b.size.x/2,this.b.i.y+this.b.size.y/2-a.b.size.y/2);this.hL(j,j);this.Mk=this.rh}});ig.ya.LorryRespawner=ig.fe.extend({bMa:s,dy:s,NF:Vec2.create(),
IV:0,s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",d:"Condition for Enemy to spawn",sd:j},lrb:{c:"Entity",d:"The lorry entity to be respawned at this point"},NF:{c:"String",d:"The initial direction of the platform",Y:ig.Zb.zh}},Fj:j,hl:"rgba(0,255,255, 0.5)"}),f:function(a,b,c,k){this.parent(a,b,c,k);this.b.type=ig.la.NONE;this.b.v(32,32,0);ig.Zb.Mr(ig.Zb.zh[k.initDir],this.NF);this.bMa=k.lorryEntity;this.IV=0},V8a:function(){if((this.dy=ig.Ra.pd(this.bMa))&&this.dy.Mca){var a=ig.Ef.get("lorry"),
b=this.dy.Mca;if(b){var c=this.b,k=b.size.x-this.b.size.x,l=b.size.y-this.b.size.y;c.v(b.size.x,b.size.y,0);this.ld({sheet:{src:a.sheet,width:b.r.uc-2,height:b.r.Gc-2,offX:a.dra+b.r.x+1,offY:a.era+b.r.y+1+b.r.Gc*2},renderMode:"lighter",SUB:[{name:"default",time:1,frames:[0],repeat:w}]});this.l(c.i.x-k/2,c.i.y-l/2,c.i.z)}}},update:function(){this.dy||this.V8a();if(this.dy){var a=1,b=ig.t.wb;ig.Oj.yO(b)==this.dy&&(a=0);var c=ig.Xf.xO(this.b,this.dy.b);!this.dy.Oq&&c>48&&(c=200);c<48?a=0:c<200&&(a=a*
((c-48)/152));var a=KEY_SPLINES.EASE_OUT.get(a),k=ig.g.ga*10;this.IV=k*a+this.IV*(1-k);this.Za.alpha=this.IV;this.Za.Ia=this.IV;this.Za.Ma=this.IV;a=ig.Xf.xO(b.b,this.b);if(c>=200&&a<=48){this.dy.j5(this.b.i,this.NF);c=b.b;this.dy.b.V2(c.i.x,c.i.y,c.i.z,c.size.x,c.size.y,c.size.z)&&b.l(c.i.x,c.i.y,c.i.z+this.dy.b.size.z)}}this.parent()}});sc.dia.BIG={size:{x:48,y:48,z:2},r:{x:0,y:0,uc:48,Gc:48,Bl:1}};sc.Im={};ig.ya.LorryRail=ig.fe.extend({qb:[],Ri:s,lGa:w,s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",
d:"Condition for Enemy to spawn",sd:j},hsb:{c:"String",d:"Type of rail",Y:sc.Im},Xnb:{c:"LorryAltTypes",d:"Other types depending on var conditions",U:j}}}),f:function(a,b,c,k){this.parent(a,b,c,k);this.b.type=ig.la.TRIGGER;k.size||this.b.v(16,16,0);if((a=sc.Im[k.railType])&&(a.Ia||a.Ma)){(!a.Ia&&this.b.size.x!=16||!a.Ma&&this.b.size.y!=16)&&this.b.v(16,16,0);if(window.Yc){this.s=this.s.copy();this.s.Ip=a.Ia;this.s.Jp=a.Ma;this.s.w5=16}}else this.b.v(a.r.uc?a.r.uc:16,16,0);this.mOa(k.railType,s);if(k.altTypes){k=
k.altTypes;for(a=0;a<k.length;++a)this.mOa(k[a].railType,new ig.ce(k[a].condition))}this.BSa(j)},Jn:function(){this.dm(this.qb.length)},show:function(a){this.parent(a);if(!a){this.Za.alpha=0;c.Ya("railAppear",this)}},I$:function(){if(!this.lGa){for(var a=this.qb.length;a--;)this.c7a(this.qb[a]);this.lGa=j}},c7a:function(a){if(a)for(var b=2;b--;){for(var c=a.sb[b?0:a.sb.length-1],c=ig.t.Lx(c.x-1,c.y-1,c.z-1,2,2,2,this),k=s,l=c.length;l--;)c[l]instanceof ig.ya.LorryRail&&(k=c[l]);a.Uf.push(k)}},mOa:function(a,
b){var c={jb:b,sheet:s,wm:s,sb:[],Uf:[]},k=ig.Ef.get("lorry"),l=sc.Im[a];if(k&&l){l.Ia||l.Ma?c.wm=new ig.cv(k.sheet,l.Ia?ig.ue.Pf.Xn:ig.ue.Pf.tE,16,16,k.rta+l.r.x,k.sta+l.r.y,1,1):c.sheet={r:new ig.$(k.sheet),x:k.rta+l.r.x,y:k.sta+l.r.y,uc:l.r.uc||16,Gc:16};k=l.sb;for(l=0;l<k.length;++l){var m=k[l],n=Vec3.create(this.b.i);n.x=n.x+this.b.size.x*m.x;n.y=n.y+this.b.size.y*m.y;n.z=n.z+this.b.size.z*(m.z||0);c.sb.push(n)}}this.qb.push(c)},s$a:function(a,c,h){this.I$();var k=this.Ri,c=Vec3.sub(k.sb[0],
c,b);Vec2.hj(c,h)<=0?this.w9(a,k,w):this.w9(a,k,j)},HIa:function(a,b,c){this.I$();for(var k=this.Ri,l,m,n=-1;n<this.qb.length;++n){k=n==-1?this.Ri:this.qb[n];if(!(n!=-1&&k==this.Ri))if(k.Uf[0]==b){l=k.sb.last();m=k.Uf[1]}else if(k.Uf[1]==b){l=k.sb[0];m=k.Uf[0]}}if(!l)return 0;a=Vec3.ab(a,l);return a<c&&m?a+m.HIa(l,this,c-a):a},$$a:function(a,b){this.I$();var c;c=this.OCa(a,this.Ri,b,-1);if(c!=0)for(var k=this.qb.length;k--;){c=this.OCa(a,this.qb[k],b,c);if(c==0)break}},OCa:function(a,b,c,k){var l=
Vec3.ab(c,b.sb[0]),c=Vec3.ab(c,b.sb.last());if(l<=c&&(k==-1||l<k)){this.w9(a,b,w);return l}if(c<l&&(k==-1||c<k)){this.w9(a,b,j);return c}return k},w9:function(a,b,c){a.gna=this;a.OW=1;if(c){a.X4=b.Uf[1];a.hW=b.Uf[0];a.sb.length=0;for(c=b.sb.length;c--;)a.sb.push(b.sb[c])}else{a.X4=b.Uf[0];a.hW=b.Uf[1];a.sb.length=0;a.sb.push.apply(a.sb,b.sb)}},BSa:function(a){for(var b=this.qb.length;b--;){var h=this.qb[b];if(!h.jb||h.jb.evaluate()){if(this.Ri!=h){a||c.Ya("railSwitch",this);this.Ri=h}break}}},update:function(){this.I$();
this.parent()},Tb:function(a){this.parent(a);for(a=this.qb.length;a--;){var b=this.qb[a];b.wm&&b.wm.zc();b.sheet&&b.sheet.r.zc()}},CPa:function(a,b){var c=this.b;b.sheet?a.AG(this,b.sheet.uc,b.sheet.Gc,"NO_EXPAND",0,s,b.sheet.r,b.sheet.x,b.sheet.y):b.wm&&a.AG(this,c.size.x,c.size.y,"NO_EXPAND",0,s,b.wm.eu(0),0,0);a.rb(c.size.x/2,c.size.y/2);a.rb(c.size.x/2,c.size.y/2);a.setTransform(1,1,this.Za.oc);a.wd(this.Za.alpha);this.Za.pY(this)},tj:function(){var a=0.4,b=this.Ta.length-1,c=this.qb.length,k=
this.Ta[b--];for(this.CPa(k,this.Ri);c--;)if(this.qb[c]!=this.Ri){k=this.Ta[b--];this.CPa(k,this.qb[c]);k.wd(k.alpha*a);a=a*0.4}},Fg:function(){this.BSa()}});sc.Im.HORIZONTAL={r:{x:32,y:0},Ia:j,sb:[{x:0,y:0.5},{x:1,y:0.5}]};sc.Im.VERTICAL={r:{x:32,y:16},Ma:j,sb:[{x:0.5,y:0},{x:0.5,y:1}]};sc.Im.CURVE_SE={r:{x:0,y:0},sb:[{x:1,y:0.5},{x:0.5,y:1}]};sc.Im.CURVE_SW={r:{x:16,y:16},sb:[{x:0,y:0.5},{x:0.5,y:1}]};sc.Im.CURVE_NE={r:{x:0,y:16},sb:[{x:0.5,y:0},{x:1,y:0.5}]};sc.Im.CURVE_NW={r:{x:16,y:0},sb:[{x:0.5,
y:0},{x:0,y:0.5}]};sc.Im.DIAG1={r:{x:0,y:0,uc:32},sb:[{x:0.75,y:0},{x:0.25,y:1}]};sc.Im.DIAG2={r:{x:0,y:16,uc:32},sb:[{x:0.25,y:0},{x:0.75,y:1}]};sc.Im.HORIZONTAL_SWITCH={r:{x:32,y:32},Ia:j,sb:[{x:0,y:0.5},{x:1,y:0.5}]};sc.Im.VERTICAL_SWITCH={r:{x:32,y:48},Ma:j,sb:[{x:0.5,y:0},{x:0.5,y:1}]};sc.Im.CURVE_SE_SWITCH={r:{x:0,y:32},sb:[{x:1,y:0.5},{x:0.5,y:1}]};sc.Im.CURVE_SW_SWITCH={r:{x:16,y:32},sb:[{x:0,y:0.5},{x:0.5,y:1}]};sc.Im.CURVE_NE_SWITCH={r:{x:0,y:48},sb:[{x:0.5,y:0},{x:1,y:0.5}]};sc.Im.CURVE_NW_SWITCH=
{r:{x:16,y:48},sb:[{x:0.5,y:0},{x:0,y:0.5}]};sc.Im.STOP_WEST={r:{x:48,y:0},sb:[{x:1,y:0.5},{x:0.5,y:0.5}]};sc.Im.STOP_EAST={r:{x:48,y:16},sb:[{x:0,y:0.5},{x:0.5,y:0.5}]};sc.Im.STOP_SOUTH={r:{x:48,y:32},sb:[{x:0.5,y:0},{x:0.5,y:0.5}]};sc.Im.STOP_NORTH={r:{x:48,y:48},sb:[{x:0.5,y:1},{x:0.5,y:0.5}]}});ig.G=j;
ig.I("game.feature.puzzle.entities.one-time-switch").J("impact.base.entity").H(function(){sc.lS={};ig.ya.OneTimeSwitch=ig.fe.extend({kj:s,FI:j,n:0,YHa:0,gc:"",Ac:w,Kb:{kA:new ig.da("media/sound/battle/hit-7.ogg",0.4),XE:new ig.da("media/sound/puzzle/switch-activate-2.ogg",1)},data:s,fx:{},cg:s,s:new ig.u({Bd:j,attributes:{vL:{c:"String",d:"Type of Switch",Y:sc.lS},gc:{c:"VarName",d:"Variable to be se to true when switch is activated"},nq:{c:"VarName",d:"Variable to increase by one when switch is activated"},
Lt:{c:"Number",d:"If >0: only keep switch active for said amount of time"},G1:{c:"Integer",d:"If >0: if addValue reached fixCount, remain active permanently"}},label:function(){return"[ "+this.gc+" ]\n"+this.nq+"++"}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.VIRTUAL;this.b.se=1E3;if(a=sc.lS[d.switchType]){if(a.xq)this.b.type=a.xq;Vec3.assign(this.b.size,a.size);Vec2.assign(this.b.padding,a.padding);this.kj=a.kj;this.YHa=this.b.size.z;if(a.cH){b=ig.Ef.get("puzzle");a.La.sheet.src=
b.sheet}this.ld(a.La);this.data=a;if(a.fx)for(var e in a.fx)this.fx[e]=new ig.al(a.fx[e])}this.gc=d.variable;this.nq=d.addValue;this.Lt=d.activeTime;this.G1=d.fixCount||0;if(!this.Lt)this.b.time.Gj=j;ig.pa.rw(this.gc,0);ig.pa.rw(this.nq,0);if(this.G1&&ig.pa.get(this.nq)>=this.G1){this.Ac=j;this.Lt=0}if(this.gc)this.Ac=ig.pa.get(this.gc);if(this.Ac)this.b.size.z=this.data.Gk;this.Ja(this.Ac?"on":"off")},Tb:function(a){this.Lt&&this.Ac&&this.N5();for(var b in this.fx)this.fx[b].Qa();this.parent(a)},
update:function(){if(this.n){this.n=this.n-ig.g.ga;if(this.n<0){this.n=0;this.N5();this.cg&&this.cg.stop();this.fx.aSa&&this.fx.aSa.Ya(this);this.nb.Eba("tmpOnEnd")?this.Ja("tmpOnEnd",j,"off"):this.Ja("off")}else if(this.n<this.data.gOa&&this.Cj!="tmpOnSlow"){if(this.fx.bSa){this.cg&&this.cg.stop();this.cg=this.fx.bSa.Ya(this,{duration:-1})}this.Ja("tmpOnSlow",j)}}this.parent()},Om:function(a){if(this.kj(this,a)){if(this.Ac&&!this.Lt)return j;if(!this.Ac){ig.pa.set(this.gc,j);ig.pa.add(this.nq,1);
this.Ac=j}this.data.nbb||sc.pb.sj(this,a.ij(this),sc.hc.MASSIVE,a.nh(),w,w,j);ig.Tg.ah(this.Kb.kA,this);ig.Tg.ah(this.Kb.XE,this);if(this.Lt){this.cg=this.fx.qwa&&this.fx.qwa.Ya(this,{duration:-1});this.Ja("tmpOn",j,s);this.n=this.Lt}else this.mfa()}else{if(this.data.xbb)return w;sc.pb.sj(this,a.ij(this),sc.hc.NONE,a.nh(),w,w,j)}return j},CI:function(a){a=="preOn"&&this.FHa()},mfa:function(){this.cg&&this.cg.stop();this.fx.UMa&&this.fx.UMa.Ya(this);this.nb.Eba("preOn")?this.Ja("preOn",j,s,j,j):this.FHa()},
FHa:function(){this.b.size.z=this.data.Gk;this.nb.Eba("preOnEnd")?this.Ja("preOnEnd",j,"on"):this.Ja("on",j)},Fg:function(){if(this.gc){var a=ig.pa.get(this.gc);if(this.Ac!=a){this.Ac=a;this.b.size.z=this.Ac?this.Gk:this.YHa;this.Ja(this.Ac?"on":"off",j,s,j)}}if(this.Lt&&this.G1&&ig.pa.get(this.nq)>=this.G1){this.n=this.Lt=0;this.mfa()}},N5:function(){this.Ac=w;ig.pa.set(this.gc,w);ig.pa.sub(this.nq,1)}});sc.lS["default"]={size:{x:16,y:16,z:17},padding:{x:4,y:4},Gk:0,cH:j,La:{offset:{x:0,y:0,z:0},
sheet:{src:s,width:16,height:32},SUB:[{name:"off",time:0.1,frames:[0,1,2,3],repeat:j},{name:"preOn",time:0.03,frames:[8,9,10,11,8,9,10,11,8,9,10,11,8,9,10,11,8,9,10,10,11,11,11,8,8,8,8,8,12,13],repeat:w},{name:"preOnEnd",time:0.1,frames:[14,15],repeat:w},{name:"on",time:1,frames:[15],repeat:w},{name:"tmpOn",time:0.025,frames:[4,5,6,7],repeat:j},{name:"tmpOnSlow",time:0.05,frames:[4,5,6,7],repeat:j}]},kj:function(a,b){return b.Ca==sc.Qd.PLAYER}};sc.lS["turret-switch"]={size:{x:24,y:24,z:21},padding:{x:0,
y:0},Gk:21,La:{offset:{x:-1,y:1,z:0},sheet:{src:"media/entity/objects/switch-special.png",width:24,height:48},SUB:[{name:"off",time:0.1,frames:[0],repeat:j},{name:"preOn",time:0.03,frames:[0,1,1,1,2],repeat:w},{name:"preOnEnd",time:0.03,frames:[3],repeat:w},{name:"on",time:1,frames:[3],repeat:w}]},kj:function(a,b){return b.Ca==sc.Qd.ENEMY}};sc.lS.propeller={size:{x:16,y:16,z:24},padding:{x:4,y:4},Gk:21,gOa:1,La:{sheet:{src:"media/map/heat-dng.png",width:24,height:32,offX:320,offY:256},SUB:[{name:"off",
time:0.1,frames:[0],repeat:j},{name:"tmpOn",time:0.033,frames:[3,4,5],repeat:j},{name:"tmpOnSlow",time:0.05,frames:[1,2,0],repeat:j},{name:"tmpOnEnd",time:0.05,frames:[0,0,1,1,2,2,0,0,0,1,1,1,2,2,2,2],repeat:w},{name:"on",time:0.033,frames:[3,4,5],repeat:j}]},fx:{qwa:{sheet:"puzzle.propeller",name:"tmpOn"},bSa:{sheet:"puzzle.propeller",name:"tmpOnSlow"},aSa:{sheet:"puzzle.propeller",name:"tmpOnEnd"}},kj:function(a,b){return b.ic&&b.ic.yk("STEAM")}};sc.lS.steamPipe={xq:ig.la.BLOCK,size:{x:16,y:16,
z:10},padding:{x:0,y:0},Gk:10,gOa:1,xbb:j,nbb:j,La:{sheet:{src:"media/map/heat-dng.png",width:16,height:24,offX:368,offY:208,xCount:1},wallY:1,SUB:[{name:"off",time:0.1,frames:[0],repeat:j},{name:"on",time:0.1,frames:[1],repeat:j},{name:"tmpOn",time:0.05,frames:[0],repeat:j},{name:"tmpOn",time:0.05,frames:[1,1,1,1,1,1],framesAlpha:[1,0.75,0.5,0.5,0.75,1],repeat:j},{name:"tmpOnSlow",time:0.05,frames:[1,0],repeat:j}]},fx:{qwa:{sheet:"puzzle.water-bubble",name:"steamSwitchTmp"},UMa:{sheet:"puzzle.water-bubble",
name:"steamSwitchOn"}},kj:function(a,b){return b.ic&&b.ic.yk("STEAM_PIPE")}}});ig.G=j;
ig.I("game.feature.puzzle.entities.floor-switch").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){sc.Jha={PERMANENT:{Vsa:j},WHILE_ON_TOP:{delay:0}};ig.ya.FloorSwitch=ig.fe.extend({kj:s,FI:j,Gk:0,vL:s,gc:"",Ac:w,TV:s,O:{sheet:new ig.ae("puzzle")},s:new ig.u({Bd:j,attributes:{vL:{c:"String",d:"Type of floor switch",Y:sc.Jha},gc:{c:"VarName",d:"Variable to be increased by 1 when switch is activated. IMPORTANT: MUST BE TMP when switchType ist NOT PERMANENT!"},TV:{c:"VarCondition",
d:"If specified: Switch will always stick while condition is true",U:j}},label:function(){return"[ "+this.gc+" ]\n"+this.nq+"++"}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;this.b.time.Gj=j;this.b.v(16,16,0);a=ig.Ef.get("puzzle2");this.ld({sheet:{src:a.sheet,width:16,height:16,offX:0,offY:48},SUB:[{name:"off",time:1,frames:[0],repeat:w},{name:"on",time:1,frames:[1],repeat:w}]});this.vL=sc.Jha[d.switchType]||sc.Jha.PERMANENT;this.gc=d.variable;if(d.lockCondition)this.TV=new ig.ce(d.lockCondition);
ig.pa.rw(this.gc,0);if(this.vL.Vsa)this.Ac=ig.pa.get(this.gc);if(!this.vL.Vsa&&this.TV&&this.TV.evaluate()){this.Ac=j;ig.pa.add(this.gc,1)}if(this.Ac)this.b.size.z=0;this.Ja(this.Ac?"on":"off")},update:function(){this.Ac&&!this.vL.Vsa&&(!this.TV||!this.TV.evaluate())&&ig.t.uO(this).length==0&&this.xi();this.parent()},vf:function(){if(!this.Ac){this.Ja("on");this.Ac=j;ig.pa.add(this.gc,1);this.O.sheet.Ya("floorSwitchActivate",this)}},xi:function(){this.Ac=w;this.Ja("off");ig.pa.sub(this.gc,1);this.O.sheet.Ya("floorSwitchDeactivate",
this)},lo:function(a){this.FKa(a)&&this.vf()},d4:function(a){this.FKa(a)&&this.vf()},FKa:function(a){return a instanceof sc.aZ||a instanceof sc.zza||a instanceof ig.ya.Enemy||a instanceof sc.Yza?w:j}})});ig.G=j;
ig.I("game.feature.puzzle.entities.multi-hit-switch").J("impact.base.entity").H(function(){sc.V7={};ig.ya.MultiHitSwitch=ig.fe.extend({kj:s,FI:j,Gk:0,gc:"",Ac:w,Zpa:0,VT:0,b1:0,$T:0,nga:0,D6:0,KF:new ig.da("media/sound/battle/hit-7.ogg",0.4),g7a:new ig.da("media/sound/puzzle/counter.ogg",1),Cla:new ig.da("media/sound/puzzle/switch-activate-2.ogg",1),s:new ig.u({Bd:j,attributes:{vL:{c:"String",d:"Type of Switch",Y:sc.V7},gc:{c:"VarName",d:"Variable to be se to true when switch is activated"},nq:{c:"VarName",
d:"Variable to increase by one when switch is activated"}},label:function(){return"Hits: "+this.Zpa+" [ "+this.gc+" ]\n"+this.nq+"++"}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.VIRTUAL;this.b.time.Gj=j;if(a=sc.V7[d.switchType]){Vec3.assign(this.b.size,a.size);Vec2.assign(this.b.padding,a.padding);this.kj=a.kj;this.Zpa=a.Ie;this.Gk=a.Gk;this.b1=a.b1;this.$T=a.$T;if(a.cH){b=ig.Ef.get("puzzle");a.La.sheet.src=b.sheet}this.ld(a.La)}this.gc=d.variable;this.nq=d.addValue;ig.pa.rw(this.gc,
0);ig.pa.rw(this.nq,0);if(this.Ac=ig.pa.get(this.gc))this.b.size.z=this.Gk;this.Ja(this.Ac?"on":"off")},update:function(){this.parent();if(!(this.Ac||this.VT<=0))if(this.nga<=0)if(this.D6<=0){this.VT--;this.D6=this.$T;this.cEa()}else this.D6=this.D6-ig.g.ga;else this.nga=this.nga-ig.g.ga},Om:function(a){if(!this.Ac&&this.kj(this,a)){this.nga=this.b1;this.D6=this.$T;this.VT++;ig.Tg.ah(this.KF,this);if(this.VT>=this.Zpa){this.Ac=j;this.Ja("switch",j,s,j,j);sc.pb.sj(this,a.ij(this),sc.hc.MASSIVE,a.nh(),
w,w,j);ig.Tg.ah(this.Cla,this);ig.pa.set(this.gc,j);ig.pa.add(this.nq,1)}else{this.cEa();ig.Tg.ah(this.g7a,this);sc.pb.sj(this,a.ij(this),sc.hc.LIGHT,a.nh(),w,w,j)}}else sc.pb.sj(this,a.ij(this),sc.hc.NONE,a.nh(),w,w,j);return j},CI:function(a){if(a=="switch"){this.b.size.z=this.Gk;this.Ja("switch_end",j,"on")}},cEa:function(){this.Ja(this.VT?"step"+this.VT:"off")}});sc.V7["default"]={size:{x:16,y:16,z:17},padding:{x:4,y:4},Gk:0,Ie:5,b1:0.3,$T:0.05,cH:j,La:{offset:{x:0,y:0,z:0},sheet:{src:s,width:16,
height:32,offY:32},SUB:[{name:"off",time:1,frames:[0],repeat:w},{name:"switch",time:0.05,frames:[5,6,7,8,9,5,6,7,8,9,5,6,6,7,7,8,8,9,9,9,10,10,10,10,11,12],repeat:w},{name:"switch_end",time:0.03,frames:[13],repeat:w},{name:"on",time:1,frames:[13],repeat:w},{name:"step1",time:1,frames:[1],repeat:w},{name:"step2",time:1,frames:[2],repeat:w},{name:"step3",time:1,frames:[3],repeat:w},{name:"step4",time:1,frames:[4],repeat:w}]},kj:function(a,b){return b.Ca==sc.Qd.PLAYER}};sc.V7.old={size:{x:16,y:16,z:17},
Gk:0,Ie:4,b1:0.3,$T:0.05,La:{offset:{x:-1,y:1,z:0},sheet:{src:"media/entity/objects/switch2.png",width:16,height:32},SUB:[{name:"off",time:1,frames:[16],repeat:w},{name:"switch",time:0.03,frames:[4,5,6,7,4,5,6,7,4,5,6,7,4,5,6,7,4,5,6,6,7,7,7,4,4,4,4,4,8,9],repeat:w},{name:"switch_end",time:0.03,frames:[10,11,12,13,14,15],repeat:w},{name:"on",time:1,frames:[15],repeat:w},{name:"step1",time:1,frames:[17],repeat:w},{name:"step2",time:1,frames:[18],repeat:w},{name:"step3",time:1,frames:[19],repeat:w}]},
kj:function(a,b){return b.Ca==sc.Qd.PLAYER}}});ig.G=j;
ig.I("game.feature.puzzle.entities.bounce-switch").J("impact.base.entity","impact.base.game","impact.feature.effect.effect-sheet").H(function(){sc.CTa=ig.sf.extend({ju:{},O:new ig.ae("puzzle"),f:function(){this.parent("BounceSwitchGroups")},xgb:function(a,b){var c=this.In(a.group);c.Gaa=a;c.gc=b;ig.pa.rw(c.gc,w);if(this.vqa(a.group))for(var d=c.Dz.length;d--;)c.Dz[d].e4(j)},sgb:function(a){this.In(a.group).Dz.push(a)},H8a:function(a){var b=this.In(a);this.Xea(a);b.Cf&&ig.Vd.Uq(b.Cf,"NORMAL",KEY_SPLINES.EASE_IN_OUT);
b.toa&&b.hN==b.Dz.length?this.mhb(a):this.ahb(a)},ahb:function(a){for(var a=this.In(a),b=a.Dz.length;b--;)a.Dz[b].ksa();a.Gaa.ksa();a.toa=w;a.hN=0},mhb:function(a){a=this.In(a);ig.pa.set(a.gc,j);for(var b=a.Dz.length;b--;)a.Dz[b].e4(w);a.Gaa.e4()},Yhb:function(a,b){this.Xea(a);var c=this.ju[a];c.yW=new ig.ye.$n(new ig.ye.lZ([b,ig.t.wb]),0,0);ig.Vd.nw(c.yW,"FAST",KEY_SPLINES.EASE_IN_OUT)},Zhb:function(a,b){this.Xea(a);var c=this.ju[a];c.yW=new ig.ye.$n(new ig.ye.Cia(b),0,0);ig.Vd.nw(c.yW,"FAST",KEY_SPLINES.EASE_IN_OUT)},
Xea:function(a){a=this.ju[a];a.yW&&ig.Vd.Uq(a.yW,"FAST",KEY_SPLINES.EASE_IN_OUT)},LKa:function(a,b){a=this.In(a);return a.Dn&&a.Dn!=b},vqa:function(a){return(a=this.In(a))&&ig.pa.get(a.gc)},zpb:function(a){return this.In(a).Gaa},Cpb:function(a){return this.In(a).hN},Pdb:function(a,b){var c=this.In(a.group);if(c.Dn&&c.Dn!=b)return w;if(!c.Dn){c.Dn=b;this.O.Ya("bounceTrail",b,{duration:-1,align:ig.Rb.CENTER});b.Bma(0.75)}c.hN++;return c.hN},gfb:function(a,b){var c=this.In(a.group);if(c.Dn&&c.Dn!=b)return w;
c.Dn=b;c.toa=j;return c.hN==c.Dz.length?j:w},$s:function(){for(var a in this.ju){var b=this.ju[a];if(b.Dn&&b.Dn.Ne){b.Dn=s;this.H8a(a)}}},at:function(){this.ju={}},In:function(a){this.ju[a]||(this.ju[a]={Gaa:s,gc:s,Dz:[],hN:0,toa:w,Dn:s,Cf:s,yW:s});return this.ju[a]}});ig.wf(function(){return sc.hx=new sc.CTa});ig.ya.BounceSwitch=ig.fe.extend({FI:j,gc:s,group:s,Ac:w,O:new ig.ae("puzzle"),Kb:{kA:new ig.da("media/sound/puzzle/highlight-switch-1.ogg",1),XE:new ig.da("media/sound/puzzle/highlight-switch-2.ogg",
1),R8a:new ig.da("media/sound/puzzle/highlight-switch-3.ogg",1)},n:0,Cf:s,s:new ig.u({Bd:j,attributes:{gc:{c:"VarName",d:"Variable to be se to true when switch is activated"},group:{c:"String",d:"Group Name to assign bouncing blocks to switch"}},label:function(){return"<"+this.group+">\n[ "+this.gc+" ]"}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.VIRTUAL;this.b.time.Gj=j;Vec3.Sa(this.b.size,24,24,24);this.group=d.group;this.gc=d.variable;window.Yc||sc.hx.xgb(this,d.variable);a=ig.Ef.get("puzzle2");
this.ld({namedSheets:{base:{src:a.sheet,width:24,height:28,offX:168,xCount:2},cube:{src:a.sheet,width:16,height:24,offX:224,xCount:2},top:{src:a.sheet,width:8,height:8,offX:216,offY:48}},SUB:[{size:{x:24,y:26,z:0},offset:{y:0},sheet:"base",SUB:[{name:"off",time:0.1,frames:[0]},{name:"rolling",time:0.1,frames:[0]},{name:"rollingEnd",time:0.1,frames:[0]},{name:"flyDown",time:0.05,frames:[0,0,1]},{name:"impact",time:0.05,frames:[2]},{name:"on",time:0.1,frames:[3]}]},{size:{x:16,y:16,z:8},offset:{z:12,
y:-4},sheet:"cube",repeat:j,SUB:[{name:"off",time:0.1,frames:[0,1,2,3]},{name:"rolling",time:0.03,frames:[0,1,2,3]},{name:"rollingEnd",time:0.06,frames:[0,1,2,3,3,0,0,0],repeat:w},{name:"flyDown",time:0.05,frames:[0,0,4],repeat:w,framesGfxOffset:[0,2,0,5]}]},{size:{x:8,y:8,z:0},offset:{z:20,y:-8},sheet:"top",repeat:j,frames:[0],SUB:[{name:"off"},{name:"rolling"},{name:"rollingEnd"}]}]});if(this.Ac=sc.hx.vqa(this.group))this.b.size.z=0;this.Ja(this.Ac?"on":"off")},update:function(){if(this.n>0){this.n=
this.n-ig.g.ga;if(this.n<=0){this.Ja("rollingEnd",j,s,j,j);this.n=0}}this.parent()},Om:function(a){if(this.Ac||!a.Wv||sc.hx.LKa(this.group,a)){sc.pb.sj(this,a.ij(this),sc.hc.NONE,a.nh(),w,w,j);return j}if(!this.Ac){this.Ac=j;this.Ja("rolling");if(sc.hx.gfb(this,a)){sc.pb.sj(this,a.ij(this),sc.hc.MASSIVE,a.nh(),w,w,j);this.O.Ya("bounceFinal",this);ig.Tg.ah(this.Kb.kA,this)}else{sc.pb.sj(this,a.ij(this),sc.hc.NONE,a.nh(),w,w,j);ig.Tg.ah(this.Kb.R8a,this)}}return j},CI:function(a){if(a=="rollingEnd")this.Ja("flyDown",
j,s,j,j);else if(a=="flyDown"){this.b.size.z=0;if(this.Cf){ig.Vd.Uq(this.Cf,"NORMAL",KEY_SPLINES.EASE_IN_OUT);this.Cf=s}this.O.Ya("bounceHit",this,{offset:{z:4}});this.Ja("impact",j,"on");ig.Tg.ah(this.Kb.XE,this)}},ksa:function(){this.O.Ya("bounceDenied",this);this.Ac=w;this.Ja("off")},e4:function(){this.n=0.5;this.Cf=new ig.ye.$n(new ig.ye.bS(this),0,0);ig.Vd.nw(this.Cf,"FAST",KEY_SPLINES.EASE_OUT);var a=new ig.Lm.vE("RANDOM","STRONGER","FASTER",0.3,j);ig.XA.cT(a)}});sc.OL={};ig.ya.BounceBlock=
ig.fe.extend({group:s,HI:0,Xca:0,n:s,lob:s,O:new ig.ae("puzzle"),ama:0,Kb:{XE:new ig.da("media/sound/puzzle/highlight-block.ogg",0.8)},s:new ig.u({Bd:j,attributes:{iN:{c:"String",d:"Type of Switch",Y:sc.OL},group:{c:"String",d:"Group of bounce switch this block belongs to"},action:{c:"BounceAction",d:"Action to perform when block is hit",sd:j,U:j},ama:{c:"Number",d:"How long the ball will be alive after bouncing with this block. (default=0.5)",U:j}},label:function(){return"[ "+this.gc+" ]\n"}}),f:function(a,
b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;this.b.time.Gj=j;this.b.ni=-1;this.b.se=1;Vec3.Sa(this.b.size,16,16,24);this.n=new ig.Ct;this.group=d.group;this.ama=d.ballTime||0.5;window.Yc||sc.hx.sgb(this);if(d.action){a=d.action;this.action={mdb:a.minHit,Vd:a.camera}}if(d=sc.OL[d.blockType]){Vec3.assign(this.b.size,d.size);this.b.shape=d.shape;a=ig.Ef.get("puzzle2");d.La.namedSheets.block.src=a.sheet;if(d.La.namedSheets.ground)d.La.namedSheets.ground.src=a.sheet;this.ld(d.La)}this.Xca=this.b.size.z;
sc.hx.vqa(this.group)?this.e4(j):this.HI=0;this.Ja(this.HI?"on":"off")},Om:function(a,b){if(!a.Wv||sc.hx.LKa(this.group,a)){sc.pb.sj(this,a.ij(this),sc.hc.NONE,a.nh(),w,w,j);return j}if(!b||Vec2.Tl(b))return w;if(!this.HI){this.HI=1;var c=sc.hx.In(this.group);ig.Tg.ah(this.Kb.XE,this,w,{speed:1-(c.Dz.length+2-c.hN)*0.03});a.Ygb();a.Uta(this.ama/a.kt);a.QFa(0.025);sc.pb.sj(this,a.ij(this),sc.hc.HEAVY,a.nh(),w,w,j);this.O.Ya("bounceHit",this);this.Ja("on");c=sc.hx.Pdb(this,a);if(this.action&&this.action.mdb<=
c){c=this.action.Vd.type;c=="reset"?sc.hx.Xea(this.group):c=="ball"?sc.hx.Yhb(this.group,a):c=="fixed"&&sc.hx.Zhb(this.group,this.action.Vd.value)}}return w},e4:function(a){this.HI=2;a?this.b.v(this.b.size.x,this.b.size.y,0):this.n.set(1,ig.qk.hq);this.Ja("on")},ksa:function(){this.HI==0&&this.O.Ya("bounceDenied",this);this.HI=0;this.Ja("off")},update:function(){if(!this.n.yb()){this.n.ga();var a=KEY_SPLINES.EASE_IN_OUT.get(this.n.get());this.HI==2&&(a=1-a);a=Math.round(this.Xca*a);this.b.v(this.b.size.x,
this.b.size.y,a)}this.parent()},tj:function(){this.parent();if(this.Ta.length)this.Ta[0].src.y=this.Ta[0].src.y-(this.Xca-this.b.size.z)}});sc.OL["default"]={size:{x:24,y:24,z:23},shape:ig.mk.RECTANGLE,La:{namedSheets:{block:{src:s,width:24,height:48}},sheet:"block",SUB:[{name:"off",time:1,frames:[0],repeat:w},{name:"on",time:1,frames:[1],repeat:w}]}};sc.OL.slopeNE={size:{x:24,y:24,z:23},shape:ig.mk.SLOPE_NE,La:{namedSheets:{block:{src:s,width:24,height:48,offX:48},ground:{src:s,width:24,height:24,
offX:144}},SUB:[{sheet:"block",aboveZ:1,SUB:[{name:"off",time:1,frames:[0],repeat:w},{name:"on",time:1,frames:[1],repeat:w}]},{sheet:"ground",size:{x:24,y:24,z:0},frames:[0],SUB:[{name:"off"},{name:"on"}]}]}};sc.OL.slopeSE={size:{x:24,y:24,z:23},shape:ig.mk.SLOPE_SE,La:{namedSheets:{block:{src:s,width:24,height:48,offX:96},ground:{src:s,width:24,height:24,offX:144,offY:24}},SUB:[{sheet:"block",wallY:1,SUB:[{name:"off",time:1,frames:[0],repeat:w},{name:"on",time:1,frames:[1],repeat:w}]},{sheet:"ground",
size:{x:24,y:23,z:1},frames:[0],wallY:1,SUB:[{name:"off"},{name:"on"}]}]}};sc.OL.slopeSW={size:{x:24,y:24,z:23},shape:ig.mk.SLOPE_SW,La:{namedSheets:{block:{src:s,width:24,height:48,offX:96},ground:{src:s,width:24,height:24,offX:144,offY:24}},flipX:j,SUB:[{sheet:"block",wallY:1,SUB:[{name:"off",time:1,frames:[0],repeat:w},{name:"on",time:1,frames:[1],repeat:w}]},{sheet:"ground",size:{x:24,y:23,z:1},frames:[0],wallY:1,SUB:[{name:"off"},{name:"on"}]}]}};sc.OL.slopeNW={size:{x:24,y:24,z:23},shape:ig.mk.SLOPE_NW,
La:{namedSheets:{block:{src:s,width:24,height:48,offX:48},ground:{src:s,width:24,height:24,offX:144}},flipX:j,SUB:[{sheet:"block",aboveZ:1,SUB:[{name:"off",time:1,frames:[0],repeat:w},{name:"on",time:1,frames:[1],repeat:w}]},{sheet:"ground",size:{x:24,y:24,z:0},frames:[0],SUB:[{name:"off"},{name:"on"}]}]}}});ig.G=j;
ig.I("game.feature.puzzle.entities.thermo-pole").J("impact.base.entity","impact.feature.effect.effect-sheet","game.feature.combat.combat-poi").H(function(){var a=Vec3.create();sc.gE={ju:{},tgb:function(a,b){if(a.group){var c=this.In(a.group);c.NGa[a.element]=a;if(b){c.lF=a;for(var d=c.Ie=c.Sq.length;d--;)c.Sq[d].aNa(a.element)}}},wgb:function(a){if(a.group){var b=this.In(a.group);b.Sq.push(a);if(b.lF){b.Ie=b.Sq.length;a.aNa(b.lF.element)}}},In:function(a){this.ju[a]||(this.ju[a]={NGa:{},Sq:[],Dn:s,
lF:s,Ie:0});return this.ju[a]},KGa:function(a){a&&delete this.ju[a]},psa:function(a,b,c){var d=b.nh();if(!d)return w;if(!a.group)return j;var e=this.In(a.group),d=e.NGa[d]||s;if(e.Dn&&e.Dn!=b&&!c||e.lF&&e.lF!=d){this.jNa(a);c=w}if(d&&!d.Ac()){if(c||e.Ie>=e.Sq.length)return j;e.Dn=b;e.lF=d;e.Ie++;b=e.Ie==e.Sq.length;d.psa(a,b,e.Sq);if(b)for(b=e.Sq.length;b--;){c=e.Sq[b];a!=c&&c.deb()}}return j},G9a:function(a){if(!a.group)return b.BS;a=this.In(a.group);return!a.lF?b.BS:a.Ie<a.Sq.length?b.VYa:b.bM},
meb:function(a){a=this.In(a.group);a.Dn=s;for(a=a.Sq.length;a--;);},Tdb:function(a){a=this.In(a.group);if(a.Ie==a.Sq.length)return w;if(a.Dn.Ne){a.Dn=s;a.Ie=0;for(var b=a.Sq.length;b--;)a.Sq[b].Eda();return j}return w},jNa:function(a){if(!a.group)return s;var b=this.In(a.group);b.lF.Eda();b.lF=s;b.Ie=0;b.Dn=s;for(var c=b.Sq.length;c--;){var d=b.Sq[c];d!=a&&d.Eda()}}};sc.AS={};sc.AS.LONG={size:{x:16,y:16,z:48},src:{x:0,y:144},kC:32};sc.AS.LONG_64={size:{x:16,y:16,z:80},src:{x:80,y:144},kC:64};sc.AS.SHORT=
{size:{x:16,y:16,z:16},src:{x:0,y:208}};var b={NONE:{C6:w},BS:{C6:j,blink:j},VYa:{C6:w,blink:j},bM:{C6:w},sha:{C6:j}};ig.ya.ElementPole=ig.fe.extend({data:s,r:s,group:s,td:{state:b.NONE,element:0,W4:0,n:0,Ur:[]},O:{sheet:new ig.ae("puzzle.thermo-pole"),handle:s},s:new ig.u({Bd:j,attributes:{Yrb:{c:"String",d:"Type of Pole",Y:sc.AS},group:{c:"String",d:"Group of ThermoPoleDest this pole belongs to"}}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.VIRTUAL;this.b.se=1E3;this.group=d.group;
this.data=sc.AS[d.poleType]||sc.AS.SHORT;this.b.v(this.data.size.x,this.data.size.y,this.data.size.z);Vec2.Sa(this.b.padding,4,4);if(a=ig.Ef.get("puzzle2"))this.r=new ig.$(a.sheet);this.td.n=new ig.Ct(w);sc.gE.wgb(this)},Tb:function(a){sc.gE.KGa(this.group);this.r&&this.r.zc();this.parent(a)},Jn:function(){this.dm(3)},update:function(){if(this.td.state!=b.NONE){this.td.n.ga();if(this.td.state.C6&&this.td.n.yb())this.td.state==b.sha?this.td.state=b.NONE:this.SGa()}this.parent()},tj:function(){if(this.r){var a=
this.data.src,c=this.b.size.y+this.b.size.z;this.Ta[0].AG(this,16,c,"NO_EXPAND",1,s,this.r,a.x,a.y);var d=this.Ta[1],e=this.Ta[2];if(this.td.state==b.sha){var n=this.td.W4*16;d.AG(this,16,c,"NO_EXPAND",1,s,this.r,a.x+n,a.y);c=d.size.y+d.size.z;a=Math.round(this.td.n.get()*c);d.ht(a,0);d.wd(1);d.Ze="lighter";e.bB()}else if(this.td.element){var n=this.td.element*16,o=this.td.n.n,t=0.3,r=4;if(this.td.state.blink){t=0.5;r=8}o=(1-t+t/2*Math.sin(Math.PI*2*o*r))*(4*o*r).Vb(0,1);d.ht(0,0);d.AG(this,16,c,
"NO_EXPAND",1,s,this.r,a.x+n,a.y);d.Ze="lighter";d.wd(Math.min(o*2,1));if(o>0.5){e.AG(this,16,c,"NO_EXPAND",1,s,this.r,a.x+n,a.y);e.Ze="lighter";e.wd(o*2-1)}else e.bB()}else{d.bB();e.bB()}this.Za.pY(this)}},Cma:function(a,b,c,d){this.td.W4=this.td.element;this.td.element=a;!d&&(c!=this.td.state||this.td.W4!=this.td.element)&&this.eva(a,b,c);this.td.n.set(8,ig.qk.hq);this.td.state=c;if(!this.td.Ur.length)if(this.data.kC){this.Mla(4-this.data.kC/2);this.Mla(4+this.data.kC/2)}else this.Mla(4)},Wq:function(a){this.td.state==
b.BS&&this.td.n.Gib(a)},Mla:function(a){var b=new ig.Qw(this,ig.cl.XL,0.1,0.3,-1,1,w);b.zD(0,0,a);ig.ph.cx(b);this.td.Ur.push(b)},SGa:function(){this.O.handle&&this.O.handle.stop();this.O.sheet.Ya("discharge",this);this.O.handle=s;this.td.n.set(0.5,ig.qk.hq);this.td.W4=this.td.element;this.td.element=0;this.td.state=b.sha;for(var a=this.td.Ur.length;a--;)this.td.Ur[a].stop();this.td.Ur.length=0},eva:function(a,c,e){c=d[a]+"Circle"+(c?"Down":"Up");this.O.sheet.Ya(c,this,{offset:{z:12}});if(e==b.BS){this.O.handle&&
this.O.handle.stop();c=d[a]+"Temp";this.O.handle=this.O.sheet.Ya(c,this,{offset:{x:1,z:this.data.kC?12+this.data.kC:12},duration:-1})}},Om:function(c){if(!c.Wv||c.Ca!=sc.Qd.PLAYER)return w;var d=c.nh();if(!sc.gE.psa(this,c,this.td.element==d)){sc.pb.sj(this,c.ij(this),sc.hc.NONE,c.nh(),w,w,j);return j}var e=w;this.td.state!=b.BS&&c.QFa(0.015);if(this.data.kC){var e=c.b.i.z>this.b.i.z+this.b.size.z/2,m=ig.Xf.Moa(a,c.b,this.b);m.z=e?this.b.i.z+12:this.b.i.z+this.data.kC+12;c.sJa(m,0.5)}this.Cma(d,e,
sc.gE.G9a(this));if(this.td.element!=this.td.W4){if(this.td.state==b.bM)return j;c.n<0.2&&c.Uta(0.2)}c.F9(this);return w},deb:function(){this.O.handle&&this.O.handle.stop();this.O.handle=s;this.Cma(this.td.element,w,b.bM)},aNa:function(a){this.Cma(a,w,b.bM,j)},Irb:F(),Eda:function(){this.td.element&&this.SGa()}});var c={tia:1,Gxa:2,uia:3};ig.ya.ElementPoleDest=ig.fe.extend({group:s,element:s,state:c.tia,s:new ig.u({Bd:j,attributes:{group:{c:"String",d:"Group of ThermoPoleDest this pole belongs to"},
element:{c:"String",d:"Element of Destination",Y:["HEAT","COLD","SHOCK","WAVE"]},gc:{c:"VarName",d:"Variable to be se to true when switch is activated"},Lt:{c:"Number",d:"If >0: only keep switch active for said amount of time"}}}),O:{sheet:new ig.ae("puzzle.thermo-pole"),handle:s,Gh:s},f:function(a,b,d,e){this.parent(a,b,d,e);this.b.type=ig.la.VIRTUAL;this.b.v(16,16,0);this.b.se=1E3;this.group=e.group;this.element=sc.ja[e.element]||sc.ja.HEAT;this.gc=e.variable;this.Lt=e.activeTime;a=ig.Ef.get("puzzle2");
this.ld({sheet:{src:a.sheet,width:16,height:16,offX:0,offY:240},SUB:[{time:0.1,frames:[0],repeat:j,SUB:[{name:"off"},{name:"tmpOn"},{name:"tmpOnEnd"},{name:"on"}]},{tileOffset:this.element*2-1,repeat:j,SUB:[{name:"off",time:0.3,frames:[0,0,0,0],framesGfxOffset:[0,1,0,0,0,-1,0,0]},{name:"tmpOn",time:0.1,frames:[1,1,1,1],framesAlpha:[1,0.66,0.33,0.66,1]},{name:"tmpOnEnd",time:0.033,frames:[1,1,1,1],framesAlpha:[1,0.5,0.25,0.5,1]},{name:"on",time:0.1,frames:[1,1,1,1],framesAlpha:[1,0.9,0.8,0.9,1]}]}]});
if(a=ig.pa.get(this.gc)){this.mSa();this.state=c.uia}sc.gE.tgb(this,a)},Tb:function(a){this.n&&this.ywa();sc.gE.KGa(this.group);this.parent(a)},update:function(){if(this.n){this.n=this.n-ig.g.ga;this.n<=1&&this.Cj!="tmpOnEnd"&&this.Ja("tmpOnEnd");if(this.n<=0){this.n=0;sc.gE.jNa(this);this.ywa()}}if(this.state==c.Gxa&&sc.gE.Tdb(this)){this.state=c.IDLE;this.Ja("off",j)}this.parent()},Ac:function(){return this.state==c.uia},psa:function(a,b,e){var m=d[this.element]+"Charge";this.state=b?c.uia:c.Gxa;
a.O.handle&&a.O.handle.stop();if(b)for(b=e.length;b--;){var n=this.O.sheet.Ya(m,this,{target2:e[b],target2Align:ig.Rb.TOP});if(e[b]==a){n.rua(this);this.O.handle=n}}else a.O.handle=this.O.sheet.Ya(m+"Prepare",this,{target2:a,target2Align:ig.Rb.TOP,duration:-1})},$r:function(a){a.state==ig.Nw.zia&&this.Lkb()},Eda:function(){this.ywa()},Lkb:function(){this.O.handle=s;sc.gE.meb(this);this.O.sheet.Ya(d[this.element]+"Activate",this);ig.pa.set(this.gc,j);this.mSa()},mSa:function(){if(!this.O.Gh){var a=
new ig.Qw(this,ig.cl.L,0.1,0.1,-1,1,w);a.zD(0,0,0);ig.ph.cx(a);this.O.Gh=a}if(this.Lt){this.n=this.Lt;this.Ja("tmpOn",j)}else this.Ja("on",j)},ywa:function(){this.O.Gh&&this.O.Gh.stop();this.O.Gh=s;ig.pa.set(this.gc,w);this.O.handle&&this.O.handle.rua(s);this.O.handle=s;this.n=0;this.state=c.tia;this.Ja("off",j)}});var d={};d[sc.ja.HEAT]="flame";d[sc.ja.COLD]="ice";var e={gH:0,Kc:1,X0a:2};sc.lha.ELEMENT_POLE={s:{attributes:{element:{c:"String",d:"Element the pole is charged to",Y:sc.ja},size:{c:"String",
d:"Type of Pole to select",Y:e}}},soa:function(a,c,d){for(var m=sc.ja[d.element],d=e[d.size],n=c.length;n--;){var o=c[n];o instanceof ig.ya.ElementPole&&!(o.td.state!=b.BS&&o.td.state!=b.bM)&&o.td.element==m&&!(d==e.Kc&&o.data.kC)&&(d!=e.X0a||o.data.kC)&&a.push(o)}return a}}});ig.G=j;
ig.I("game.feature.puzzle.entities.push-pull-block").J("impact.base.actor-entity","impact.base.entity","game.feature.puzzle.components.push-pullable").H(function(){sc.a8={};ig.ya.PushPullBlock=ig.fe.extend({s:new ig.u({Bd:j,attributes:{fsb:{c:"String",d:"Type of push pull block",Y:sc.a8}}}),uG:s,f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;this.b.se=1E3;this.b.Xh=0;this.b.ni=-1;this.b.Ad.size=16;if(a=sc.a8[d.pushPullType]){this.mc=a.mc;Vec3.assign(this.b.size,a.size);if(a.cH){b=
ig.Ef.get("puzzle");a.La.sheet.src=b.sheet}this.ld(a.La)}this.uG=new sc.vZa(this);this.uG.setActive(j)},update:function(){this.uG.Vk();this.parent()},Js:function(){this.uG.$s();if(this.b.i.z==this.b.jc){this.b.se=1;this.b.Xh=0.3}},ql:function(){this.uG.ql()},nW:function(){this.uG.nW()},Tb:function(a){this.parent(a)}});sc.a8.Large={size:{x:32,y:32,z:32},mc:ig.Gd.METAL,cH:j,La:{sheet:{src:s,width:32,height:64,offX:224,offY:128},aboveZ:1,SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"moveV",
time:0.03,frames:[0,0],framesGfxOffset:[0,-1,0,0],repeat:j},{name:"moveH",time:0.03,frames:[0,0],framesGfxOffset:[0,-1,0,0],repeat:j}]}};sc.a8.SmallTest={size:{x:16,y:16,z:16},mc:ig.Gd.METAL,La:{sheet:{src:"media/entity/objects/puzzle-elements-1.png",width:16,height:32},aboveZ:1,SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"move",time:0.05,frames:[0,1,2,1],repeat:j}]},Oc:{idle:"default",move:"move"}}});ig.G=j;
ig.I("game.feature.puzzle.entities.push-pull-dest").J("impact.base.actor-entity","impact.base.entity","game.feature.puzzle.components.push-pullable").H(function(){var a=Vec2.create();sc.Aia={};var b={PERMANENT:1,TEMP:2};ig.ya.PushPullDest=ig.fe.extend({gc:s,c7:0,saveType:0,VP:s,dea:w,cxa:0,NW:0,JGa:w,O:new ig.ae("puzzle"),Ab:{Zcb:new ig.da("media/sound/puzzle/push-click.ogg",1)},s:new ig.u({Bd:j,attributes:{esb:{c:"String",d:"Type of push pull dest",Y:sc.Aia},c7:{c:"Number",d:"Z Movememnt aber PushPullable has been placed"},
saveType:{c:"String",d:"How state of box should be saved",Y:b},gc:{c:"String",d:"Variable to set to increase when push-pullable is placed"}}}),f:function(a,d,e,h){this.parent(a,d,e,h);this.b.type=ig.la.BLOCK;this.b.se=0;this.b.Xh=0.3;this.b.ni=-1;this.b.Ad.size=16;this.NW=new ig.Ct;this.gc=h.variable||s;this.c7=h.zMove||0;this.saveType=b[h.saveType||"PERMANENT"];this.cxa=this.b.i.z;if(a=sc.Aia[h.pushPullDestType]){this.mc=a.mc;Vec3.assign(this.b.size,a.size);if(a.cH){d=ig.Ef.get("puzzle");a.La.sheet.src=
d.sheet}this.ld(a.La)}this.Wcb()},xNa:function(b,d){var e=ig.Xf.Lr(this.b,b.b,a);if(Vec2.length(e)<=4){Vec2.assign(d,this.b.i);return j}return w},Web:function(a){this.Fhb(a);this.NW.set(0.2,ig.qk.hq);this.O.Ya("boxLockIn",a)},Fhb:function(a){this.VP={id:a.gy};this.dea=j;ig.pa.set(this.SCa(),this.VP)},Wcb:function(){(this.VP=ig.pa.get(this.SCa()))&&this.AD(this.cxa+this.c7);this.lKa()},lKa:function(){if(!this.dea&&this.VP){var a=ig.t.f$a(this.VP.id);if(a){var b=this.b.i;a.l(b.x,b.y,b.z);a.uG.setActive(w);
this.dea=j}}},SCa:function(){return(this.saveType==b.TEMP?"tmp.":"map.")+"entity"+this.gy+"_placed"},update:function(){!this.dea&&this.VP&&this.lKa();if(!this.NW.yb()){this.NW.ga();var a=this.NW.get();if(this.JGa)this.AD(this.cxa+a*this.c7);else if(a==1){this.Ab.Zcb.play();this.NW.set(Math.abs(this.c7/40),ig.qk.hq);this.JGa=j}}this.parent()},ql:function(){this.uG.ql()},nW:function(){this.uG.nW()}});sc.Aia.DEFAULT={size:{x:32,y:32,z:0},mc:ig.Gd.METAL,cH:j,La:{sheet:{src:s,width:32,height:32,offX:224,
offY:96},aboveZ:1,SUB:[{name:"default",time:1,frames:[0],repeat:w}]}}});ig.G=j;
ig.I("game.feature.puzzle.entities.sliding-block").J("impact.base.actor-entity","impact.base.entity","impact.feature.effect.effect-sheet").H(function(){var a=Vec2.create(),b={};ig.ya.SlidingBlock=ig.fe.extend({s:new ig.u({Bd:j,attributes:{}}),Oq:w,$g:Vec2.create(),xFa:j,O:{sheet:new ig.ae("puzzle.sliding-block"),handle:s},f:function(a,b,e,h){this.parent(a,b,e,h);this.b.type=ig.la.BLOCK;this.b.se=1;this.b.Xh=0.3;this.b.ni=-1;this.b.Ad.size=16;this.b.v(32,32,32);this.mc=ig.Gd.METAL;a=ig.Ef.get("puzzle");
this.ld({sheet:{src:a.sheet,width:32,height:64,offX:224,offY:192},aboveZ:1,wallY:0.1,SUB:[{name:"default",time:1,frames:[0],repeat:w}]})},Om:function(c){var d=c.ij(this),e=w;!c.Wv&&!c.ic.yk("BOMB")&&(e=j);c.Wv&&!c.ic.yk("CHARGED")&&(e=j);if(this.Oq||e){sc.pb.sj(this,d,sc.hc.NONE,c.nh(),j,w,j);return j}Vec2.hd(ig.Zb.Mr(c.V1(this),this.$g));c=Vec2.assign(a,this.$g);d=ig.t.Nf.mu(b);if(ig.t.Kw(d,this,c.x,c.y,0,0,0,ig.la.IGNORE))this.O.sheet.Ya("blocked",this);else{this.Oq=j;this.O.handle=this.O.sheet.Ya("slide",
this,{duration:-1})}return j},update:function(){if(this.Oq){var c=Vec2.assign(a,this.$g);Vec2.length(c,400*ig.g.ga);var d=ig.t.Nf.mu(b);if(ig.t.Kw(d,this,c.x,c.y,0,0,0,ig.la.IGNORE)){Vec2.ck(c,d.gf);this.Oq=w;this.O.handle&&this.O.handle.stop()}d=this.b;this.l(d.i.x+c.x,d.i.y+c.y,d.i.z,j)}this.parent()}})});ig.G=j;
ig.I("game.feature.puzzle.entities.switch").J("impact.base.entity").H(function(){ig.ya.Switch=ig.fe.extend({FI:j,gc:"",Ac:w,Kb:{kA:new ig.da("media/sound/battle/hit-7.ogg",0.4),XE:new ig.da("media/sound/puzzle/switch-activate-2.ogg",1)},s:new ig.u({Bd:j,attributes:{gc:{c:"VarName",d:"Variable set to true when switch is hit"}},label:function(){return"[ "+this.gc+" ]"}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.VIRTUAL;this.b.v(16,16,24);this.b.nfa(4,4);this.b.se=1E3;a=ig.Ef.get("puzzle");
this.ld({sheet:{src:a.sheet,width:24,height:24,offX:0,offY:64},repeat:j,time:0.15,SUB:[{name:"off",frames:[6]},{name:"switchOn",frames:[6]},{name:"on",frames:[6]},{name:"switchOff",frames:[6]},{name:"off",frames:[0,0,0,0,0,0],framesSpriteOffset:[0,0,12,0,0,12,0,0,13,0,0,14,0,0,14,0,0,13]},{name:"switchOn",time:0.07,frames:[1,2],framesSpriteOffset:[0,0,13,0,0,13]},{name:"on",frames:[3,3,3,3,3,3],framesSpriteOffset:[0,0,12,0,0,12,0,0,13,0,0,14,0,0,14,0,0,13]},{name:"switchOff",time:0.07,frames:[4,5],
framesSpriteOffset:[0,0,13,0,0,13]}]});this.gc=d.variable;ig.pa.rw(this.gc,0);this.Ac=ig.pa.get(this.gc);this.Ja(this.Ac?"on":"off")},Om:function(a){ig.pa.set(this.gc,!ig.pa.get(this.gc));sc.pb.sj(this,a.ij(this),sc.hc.MEDIUM,a.nh(),w,w,j);ig.Tg.ah(this.Kb.kA,this);ig.Tg.ah(this.Kb.XE,this);return j},Fg:function(){var a=ig.pa.get(this.gc);if(this.Ac!=a){this.Ac=a;this.Ja(this.Ac?"switchOn":"switchOff",j,this.Ac?"on":"off",j)}}})});ig.G=j;
ig.I("game.feature.puzzle.entities.destructible").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){sc.To={};var a=Vec2.create();ig.ya.Destructible=ig.fe.extend({js:s,bc:s,J4:s,Ida:s,Mda:s,Ps:s,Ie:0,EN:s,Kb:{kA:new ig.da("media/sound/battle/block-hit.ogg",1),ZE:new ig.da("media/sound/battle/hit-block.ogg",0.5)},O:{Mb:new ig.ae("puzzle.destructible"),Q4:s,Qc:s,kd:s,QN:0,ZT:0,uD:s,yr:s},Xk:{key:s,delay:0,hP:-1,padding:0},YC:s,KF:s,gC:w,dk:s,Sj:0,pK:w,s:new ig.u({Bd:j,attributes:{LGa:{c:"String",
d:"Type of destructible object",Y:sc.To,Oi:j},Dq:{c:"EnemyType",d:"Enemy to spawn after destruction",sd:j,Oi:j},Rp:{c:"VarCondition",d:"Condition for Enemy to spawn",sd:j},gC:{c:"Boolean",j2a:"If true, block path map and update when destroyed"},J4:{c:"Boolean",d:"If true, then destructible stays destroyed after reentering map"},Ida:{c:"VarName",d:"Variable to increase by one when destroyed",U:j},Mda:{c:"VarName",d:"Variable to increase by one when destroyed",U:j}}}),f:function(a,c,d,e){this.parent(a,
c,d,e);this.b.type=ig.la.BLOCK;this.b.se=1;this.b.Xh=0.5;this.J4=e.permaDestruct||w;this.Ida=e.onDestructIncrease||s;this.Mda=e.onPreDestructIncrease||s;c=ig.Ef.get("effect");if(a=sc.To[e.desType]){this.Ie=a.Ie;this.b.size=a.size;this.Ps=a.Ps||[1,1,1,1];this.KF=a.KF;this.EN=a.kj;this.O.QN=(a.QN||0)*2*Math.PI;this.O.ZT=a.ZT||0.1;this.pK=a.pK||w;if((this.YC=a.YC)||a.pfb)this.J4=j;a.Xk&&ig.merge(this.Xk,a.Xk);if(a.kd){d=ig.copy(a.kd);if(!d.sheet)d.sheet=c.sheet;this.O.kd=new ig.al(d)}if(a.Qc)this.O.Qc=
new ig.al(a.Qc);if(a.VW)this.O.Q4=new ig.al(a.VW);if(e.enemyInfo&&e.enemyInfo.type){this.js=e.enemyInfo;this.bc=new sc.bv(e.enemyInfo.type)}c=ig.Ef.get("destruct");a=ig.copy(a.La);if(a.namedSheets)for(var h in a.namedSheets)a.namedSheets[h].src=c.sheet;else if(!a.sheet.src)a.sheet.src=c.sheet;this.ld(a)}else{this.b.size.x=32;this.b.size.y=32}this.gC=e.blockNavMap;window.Yc||this.J4&&ig.pa.get(this.vIa())&&this.Tb();this.Sj=Math.random()*5+1},show:function(a){this.parent(a);if(!a){this.Za.alpha=0;
ig.t.O.Zk.Ya("showFast",this,{})}if(this.gC)this.dk=ig.navigation.i2(this)},Tb:function(a){this.parent(a);if(this.O.uD&&this.Xk.hP<0){this.O.uD=s;this.Yua()}this.dk&&this.dk.remove();this.bc&&this.bc.zc();this.O.kd&&this.O.kd.Qa();this.O.Qc&&this.O.Qc.Qa();this.O.Q4&&this.O.Q4.Qa()},vIa:function(){return"map._entity"+this.gy+"_destroyed"},update:function(){if(this.O.yr){if(this.O.ZT>0){this.O.ZT=this.O.ZT-ig.g.ga;this.O.ZT<=0&&this.y6()}}else if(!this.O.uD){if(this.Sj<=0)this.Sj=Math.random()*2+4;
this.Sj=this.Sj-ig.g.ga;if(!this.pK&&this.Ta.length>1){var a=this.Ta[1],c=a.size.y+a.size.z,d=c,e=0;if(this.Sj<1){d=Math.round((this.Sj-0.08)/0.92*c);d<0&&(d=0);e=Math.round((1-this.Sj/0.92)*c);e<0&&(e=0)}a.ht(d,e)}}if(this.Xk.hP>=0){this.Xk.hP=this.Xk.hP-ig.g.ga;this.Xk.hP<0&&this.Hn(j)}this.parent()},$r:function(a){if(a==this.O.uD){if(this.O.uD.vp()){this.O.uD=s;this.Hn()}}else a==this.O.yr&&this.O.yr.vp()&&this.Tb()},Om:function(b){if(this.O.uD||this.O.yr||!ig.Oj.Tr(this,40))return w;var c=b.V1(this,
a),d=b.ic&&b.ic.yk("CHARGED"),e=d?sc.hc.MEDIUM:sc.hc.LIGHT,h=b.ij(this);if(!this.Ps[c]||this.EN&&!this.EN(b)){if(!this.Ps[c]){this.O.Mb.Ya("shieldBlink",this,{spriteFilter:2});ig.Tg.ah(this.Kb.ZE,this)}return w}if(this.YC){if(!b.ic||!b.ic.yk(this.YC))return w;c=sc.LL[this.YC];if(sc.map.fba(c)==0)return j;sc.q.R.removeItem(sc.map.Loa(c),1)}this.Ie=this.Ie-(d?2:1);this.Ie<=0&&(e=sc.hc.MASSIVE);sc.pb.sj(this,h,e,b.nh(),w,w,j);this.Ie<=0?this.Bva():this.KF&&ig.Tg.ah(this.KF,this);return j},Bva:function(){if(!this.Ne&&
!this.O.yr&&!this.O.uD){this.Mda&&ig.pa.add(this.Mda,1);this.Ie=0;this.O.Q4?this.O.uD=this.O.Q4.Ya(this,{align:"CENTER",callback:this}):this.Hn();this.Xk.key&&this.AKa(this.Xk.Pjb)}},Hn:function(a){if(!this.Ne&&!this.O.yr){this.Ie=0;this.Ja("hit",j);var c=this.kb();this.b.type=ig.la.IGNORE;a||this.Yua();if(this.O.Qc)this.O.yr=this.O.Qc.eh(c.x,c.y,this.b.i.z+this.b.size.z/2,this,{callback:this});else{this.y6();this.Tb()}}},Yua:function(){this.J4&&ig.pa.set(this.vIa(),j);this.Ida&&ig.pa.add(this.Ida,
1)},AKa:function(a){for(var c=this.b,d=this.Xk.padding,c=ig.t.Lx(c.i.x-d,c.i.y-d,c.i.z-d,this.b.size.x+2*d,this.b.size.y+2*d,this.b.size.z+2*d,this),d=c.length;d--;){var e=c[d];e.ANa&&e.ANa(this.Xk.key,a)}},ANa:function(a,c){if(!this.O.yr&&!this.O.uD&&this.Xk.key==a&&!(this.Xk.hP>=0)){this.Xk.hP=c;this.Yua();this.AKa(c+this.Xk.delay)}},y6:function(){var a=this.kb();this.O.kd&&this.O.kd.eh(a.x,a.y,this.b.i.z,s,{angle:this.QN});if(this.js)ig.t.af("Enemy",this.b.i.x,this.b.i.y,this.b.i.z,{enemyInfo:this.js}).Yx=
0.05},$O:function(a,c){var d=c.dir;return this.Ps[Math.abs(d.x)>Math.abs(d.y)?ig.Zb.zh[d.x>0?"WEST":"EAST"]:ig.Zb.zh[d.y>0?"NORTH":"SOUTH"]]}});sc.To.boxMedium={Ie:1,size:{x:24,y:24,z:22},Qc:{sheet:"puzzle.destructible",name:"medium"},kd:{sheet:"cube-debris",name:"medium"},La:{sheet:{src:s,width:24,height:48,offX:64},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.boxMedNorth={Ie:1,size:{x:24,y:24,z:22},Qc:{sheet:"puzzle.destructible",
name:"medium"},kd:{sheet:"cube-debris",name:"medium"},Ps:[1,0,0,0],La:{sheet:{src:s,width:24,height:48,offX:64},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"default",time:1,frames:[2],repeat:w,aboveZ:1}]}};sc.To.boxMedEast={Ie:1,size:{x:24,y:24,z:22},Qc:{sheet:"puzzle.destructible",name:"medium"},kd:{sheet:"cube-debris",name:"medium"},Ps:[0,1,0,0],La:{sheet:{src:s,width:24,height:48,offX:64},SUB:[{name:"default",time:1,frames:[0],repeat:w},
{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"default",time:1,frames:[5],repeat:w,aboveZ:1}]}};sc.To.boxMedSouth={Ie:1,size:{x:24,y:24,z:22},Qc:{sheet:"puzzle.destructible",name:"medium"},kd:{sheet:"cube-debris",name:"medium"},Ps:[0,0,1,0],La:{sheet:{src:s,width:24,height:48,offX:64},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"default",time:1,frames:[3],repeat:w,aboveZ:1}]}};sc.To.boxMedWest={Ie:1,size:{x:24,y:24,z:22},
Qc:{sheet:"puzzle.destructible",name:"medium"},kd:{sheet:"cube-debris",name:"medium"},Ps:[0,0,0,1],La:{sheet:{src:s,width:24,height:48,offX:64},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"default",time:1,frames:[4],repeat:w,aboveZ:1}]}};sc.To.boxLarge={Ie:2,size:{x:32,y:32,z:32},Qc:{sheet:"puzzle.destructible",name:"large"},kd:{sheet:"cube-debris",name:"large"},KF:new ig.da("media/sound/battle/block-hit.ogg",0.7),La:{sheet:{src:s,width:32,
height:64},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.iceBlock={Ie:1,size:{x:24,y:24,z:24},Qc:{sheet:"puzzle.destructible",name:"iceBlockBoom"},kj:function(a){return a.ic&&a.ic.element==sc.ja.HEAT},La:{sheet:{src:s,width:24,height:48,offX:96,offY:96},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.bombBlock={Ie:1,size:{x:32,y:32,z:32},Qc:{sheet:"puzzle.destructible",name:"bombBlockBoom"},
kd:{name:"bombBlockDebris"},kj:function(a){return a.ic&&a.ic.yk("BOMB")},La:{sheet:{src:s,width:32,height:48,offX:0,offY:64},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.bombWallNorth={Ie:1,size:{x:32,y:4,z:48},Qc:{sheet:"puzzle.destructible",name:"bombBlockBoom"},kd:{name:"bombBlockDebrisWall"},QN:0.5,kj:function(a){return a.ic&&a.ic.yk("BOMB")},La:{sheet:{src:s,width:32,height:48,offX:0,offY:112},SUB:[{name:"default",time:1,frames:[0],
repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.bombWallEast={Ie:1,size:{x:16,y:32,z:32},Qc:{sheet:"puzzle.destructible",name:"bombBlockBoom"},kd:{name:"bombBlockDebrisWall"},QN:0.75,kj:function(a){return a.ic&&a.ic.yk("BOMB")},La:{sheet:{src:s,width:16,height:64,offX:64,offY:64},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.bombWallWest={Ie:1,size:{x:16,y:32,z:32},Qc:{sheet:"puzzle.destructible",name:"bombBlockBoom"},
kd:{name:"bombBlockDebrisWall"},QN:0.25,kj:function(a){return a.ic&&a.ic.yk("BOMB")},La:{sheet:{src:s,width:16,height:64,offX:64,offY:64},flipX:j,SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.keyWallNorth={Ie:1,size:{x:32,y:4,z:32},VW:{sheet:"puzzle.destructible",name:"keyDoorPre"},YC:"DUNGEON_KEY",La:{sheet:{src:s,width:32,height:32,offX:96,offY:48},offset:{x:0,y:-4,z:0},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",
time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.keyPillar={Ie:1,size:{x:16,y:16,z:96},VW:{sheet:"puzzle.destructible",name:"keyPillarPre"},Qc:{sheet:"puzzle.destructible",name:"keyPillarBoom"},Xk:{key:"KEY_PILLAR",delay:0.1,padding:8,Pjb:1},YC:"DUNGEON_KEY",La:{sheet:{src:s,width:16,height:48,offX:176,offY:48},pivot:{x:8,y:48},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.keyPillarAR={Ie:1,size:{x:16,y:16,z:96},VW:{sheet:"puzzle.destructible",
name:"keyPillarPre"},Qc:{sheet:"puzzle.destructible",name:"keyPillarBoom"},Xk:{key:"KEY_PILLAR",delay:0.1,padding:8},kj:R(w),pfb:j,pK:j,La:{namedSheets:{floor:{src:s,width:16,height:16,offX:144,offY:80},ar:{src:s,width:16,height:48,offX:160,offY:48}},SUB:[{name:"default",sheet:"floor",time:1,frames:[0],repeat:w,shapeType:"Z_FLAT",pivot:{x:8,y:16}},{name:"default",sheet:"ar",time:0.05,frames:[0,0,0,0,0,0],framesAlpha:[1,1,1,0.8,0.6,0.8],repeat:j,renderMode:"lighter",pivot:{x:8,y:48}}]}};sc.To.masterKeyWallColdDungeon=
{Ie:1,size:{x:64,y:4,z:64},VW:{sheet:"puzzle.destructible",name:"keyDoorMasterPre"},YC:"DUNGEON_MASTER_KEY",La:{sheet:{src:"media/map/cold-dng.png",width:64,height:64,offX:176,offY:416,xCount:1},offset:{x:0,y:-4,z:0},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}};sc.To.masterKeyWallHeatDungeon={Ie:1,size:{x:64,y:4,z:48},VW:{sheet:"puzzle.destructible",name:"keyDoorMasterPre"},YC:"DUNGEON_MASTER_KEY",La:{sheet:{src:"media/map/heat-dng.png",
width:64,height:48,offX:320,offY:544,xCount:1},offset:{x:0,y:-4,z:0},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1}]}}});ig.G=j;
ig.I("game.feature.puzzle.entities.item-destruct").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){sc.tf={};var a=Vec3.create();ig.ya.ItemDestruct=ig.fe.extend({s:new ig.u({Bd:j,attributes:{LGa:{c:"String",d:"Type of destructible object",Y:sc.tf,Oi:j},rc:{c:"ItemsDropRate",d:"Items dropped",sd:j},UNa:{c:"Boolean",d:"True if cannot be respawned",ub:"false",U:j},Dq:{c:"EnemyType",d:"Enemy to spawn after destruction",sd:j,Oi:j}}}),Sj:0,iHa:w,zV:[],zwa:s,VNa:w,js:s,bc:s,rHa:-1,
d$:s,daa:s,f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.VIRTUAL;this.b.se=1;this.b.Xh=0.5;this.b.Eu(ig.Gm.via);a=sc.tf[e.desType];this.VNa=e.perma||w;if(a){if(e.enemyInfo&&e.enemyInfo.type){this.js=e.enemyInfo;this.bc=new sc.bv(e.enemyInfo.type);this.rHa=e.enemyInfo.chance||-1}this.zwa=a;Vec3.assign(this.b.size,a.size);this.d$=new ig.al(a.Qc);this.daa=new ig.al(a.kd);this.ld(a.La)}else{this.b.size.x=32;this.b.size.y=32}if(e=e.items){a=0;for(c=e.length;c--;){a=a+e[c].prob;this.zV.push({id:e[c].id,
Tq:a})}}(e=ig.pa.get(this.p_()+".respawnTime"))&&(e>sc.pb.time||this.VNa)&&this.APa();this.Sj=Math.random()*5+1},p_:function(){return"session.map.itemDestruct"+this.gy},Tb:function(a){this.parent(a);this.d$&&this.d$.Qa();this.daa&&this.daa.Qa()},update:function(){if(this.Sj<=0)this.Sj=Math.random()*2+4;this.Sj=this.Sj-ig.g.ga;this.parent();if(this.Ta.length>1){var a=this.Ta[1],c=a.size.y+a.size.z,d=c,e=0;if(this.Sj<1){d=Math.round((this.Sj-0.15)/0.85*c);d<0&&(d=0);e=Math.round((1-this.Sj/0.85)*c);
e<0&&(e=0)}a.ht(d,e)}},Om:function(a){if(this.iHa||!ig.Xf.Tr(this.b,0))return w;var c=a.ic&&a.ic.yk("CHARGED")?sc.hc.MEDIUM:sc.hc.LIGHT,d=a.ij(this),c=sc.hc.HEAVY;sc.ta.cc("player","propsDestroyed",1);sc.pb.sj(this,d,c,a.nh(),w,w,j);this.Hn();return j},Hn:function(){this.APa();var b=this.kb(a);this.zwa.Df&&Vec3.add(b,this.zwa.Df);this.d$.eh(b.x,b.y,this.b.i.z+this.b.size.z/2);this.daa.eh(b.x,b.y,this.b.i.z+this.b.size.z/2);this.e8a();ig.pa.set(this.p_()+".respawnTime",sc.pb.time+300);if(this.js&&
Math.random()<=this.rHa)ig.t.af("Enemy",this.b.i.x,this.b.i.y,this.b.i.z,{enemyInfo:this.js}).Yx=0.05},APa:function(){this.iHa=j;this.Ja("dropped",j);this.b.type=ig.la.IGNORE;this.b.Eu(ig.Gm.HB)},e8a:function(){for(var a=Math.random(),c=0;c<this.zV.length;++c){var d=this.zV[c];if(a<=d.Tq){sc.fM.WQ(this,ig.Rb.CENTER,ig.t.wb,d.id,1,sc.mE.PROP);break}}},$O:R(j)});sc.tf.AutumnPlantA={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.autumn",name:"plantBurst"},
La:{shapeType:"Y_FLAT",sheet:{src:"media/entity/objects/autumn-destructibles.png",width:24,height:32,offX:0},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Autumn-Ground-1"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.autumn",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/entity/objects/autumn-destructibles.png",width:24,height:32,
offX:0},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Autumn-Ground-2"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.autumn",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/entity/objects/autumn-destructibles.png",width:24,height:32,offY:32},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},
{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Autumn-Water-1"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.autumn",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/entity/objects/autumn-destructibles.png",width:24,height:32,offY:64},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Autumn-Water-2"]={size:{x:16,y:16,z:22},Df:{x:0,
y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.autumn",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/entity/objects/autumn-destructibles.png",width:24,height:32,offY:96},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Autumn-Special"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.autumn",name:"plantBurst"},
La:{shapeType:"Y_FLAT",sheet:{src:"media/entity/objects/autumn-destructibles.png",width:24,height:32,offY:128},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Autumn-Water-Special"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.autumn",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/entity/objects/autumn-destructibles.png",width:24,
height:32,offY:160},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantA-1"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:0,offY:384},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},
{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantA-2"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:0,offY:416},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantA-Rare"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,
z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:144,offY:384},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantB-1"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurst"},La:{shapeType:"Y_FLAT",
sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:0,offY:448},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantB-2"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:0,offY:480},SUB:[{name:"default",time:1,frames:[0],
repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantB-Rare"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:144,offY:448},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantA-1-Snow"]=
{size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurstSnow"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:72,offY:384},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantA-2-Snow"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",
name:"plantBurstSnow"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:72,offY:416},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantA-Snow-Rare"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,
offX:144,offY:416},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantB-1-Snow"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurstSnow"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:72,offY:448},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],
repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantB-2-Snow"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurstSnow"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:72,offY:480},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-PlantB-Snow-Rare"]={size:{x:16,
y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"plantBurstSnow"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:144,offY:480},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-Snow-Crystal"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:8},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",
name:"burstSnow"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:24,height:32,offX:216,offY:480},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bergen-Vase-1"]={size:{x:16,y:10,z:18},Df:{x:0,y:0,z:9},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.bergen",name:"vase-break"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/bergen-trail.png",width:16,height:28,offX:224,
offY:964},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Cold-Dng-Egg-1"]={size:{x:14,y:16,z:16},Df:{x:0,y:0,z:9},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.cold-dng",name:"eggs"},La:{wallY:0.4,sheet:{src:"media/map/cold-dng.png",width:16,height:32,offX:192,offY:560},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"dropped",
time:1,frames:[2],repeat:w}]}};sc.tf["Cold-Dng-Egg-2"]={size:{x:14,y:16,z:16},Df:{x:0,y:0,z:9},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.cold-dng",name:"eggs"},La:{wallY:0.4,sheet:{src:"media/map/cold-dng.png",width:16,height:32,offX:192,offY:592},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Cold-Dng-Egg-3"]={size:{x:14,y:16,z:16},Df:{x:0,y:0,z:9},Qc:{sheet:"puzzle.destructible",
name:"small"},kd:{sheet:"area.cold-dng",name:"eggs"},La:{wallY:0.4,sheet:{src:"media/map/cold-dng.png",width:16,height:32,offX:192,offY:624},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Cold-Dng-Egg-4"]={size:{x:24,y:16,z:16},Df:{x:0,y:0,z:9},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.cold-dng",name:"eggs"},La:{wallY:0.4,sheet:{src:"media/map/cold-dng.png",width:32,height:32,
offX:240,offY:560},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Cold-Dng-Egg-Special-A"]={size:{x:36,y:24,z:24},Df:{x:0,y:0,z:9},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.cold-dng",name:"eggs"},La:{wallY:0.4,sheet:{src:"media/map/cold-dng.png",width:40,height:48,offX:72,offY:560},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,
aboveZ:1},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Cold-Dng-Egg-Special-B"]={size:{x:36,y:24,z:24},Df:{x:0,y:0,z:9},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.cold-dng",name:"eggs"},La:{wallY:0.4,sheet:{src:"media/map/cold-dng.png",width:40,height:48,offX:72,offY:608},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Cactus-1"]={size:{x:16,y:16,z:22},Df:{x:0,
y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:208,offY:320},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Cactus-2"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"plantBurst"},La:{shapeType:"Y_FLAT",
sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:208,offY:352},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Cactus-Special"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:208,offY:384},SUB:[{name:"default",time:1,frames:[0],
repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Palmapple-1"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:208,offY:416},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Palmapple-2"]=
{size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:208,offY:448},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Palmapple-Special"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",
name:"plantBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:208,offY:480},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Dry-Bush-1"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"plantBurstRed"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:280,
offY:320},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Dry-Bush-2"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"plantBurstRed"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:280,offY:352},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",
time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Dry-Bush-Special"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"plantBurstRed"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:280,offY:384},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Bones-1"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",
name:"small"},kd:{sheet:"area.heat",name:"boneBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:208,offY:512},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Bones-2"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"boneBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",
width:24,height:32,offX:208,offY:544},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Bones-Special"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"boneBurst"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:280,offY:512},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,
frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Hill-1"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"termiteDust"},La:{wallY:1,shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:280,offY:416},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Hill-2"]={size:{x:16,y:16,
z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"termiteDust"},La:{wallY:1,shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:280,offY:448},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Heat-Hill-Special"]={size:{x:16,y:16,z:22},Df:{x:0,y:0,z:12},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"termiteDust"},
La:{wallY:1,shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:24,height:32,offX:280,offY:480},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}};sc.tf["Bakii-Vase"]={size:{x:16,y:12,z:20},Df:{x:0,y:0,z:9},Qc:{sheet:"puzzle.destructible",name:"small"},kd:{sheet:"area.heat",name:"vase-break"},La:{shapeType:"Y_FLAT",sheet:{src:"media/map/heat-area.png",width:16,height:32,offX:464,offY:320},SUB:[{name:"default",
time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w},{name:"dropped",time:1,frames:[2],repeat:w}]}}});ig.G=j;
ig.I("game.feature.puzzle.entities.regen-destruct").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){sc.h8={};var a=Vec2.create();ig.ya.RegenDestruct=ig.fe.extend({Ps:s,EN:s,O:{Mb:new ig.ae("puzzle.destructible"),Qc:s,kd:s,OK:s,yr:s,QK:s},gC:w,dk:s,Sj:0,Ata:0,dt:0,xq:s,Oma:s,sg:0,s:new ig.u({Bd:j,attributes:{LGa:{c:"String",d:"Type of regen destructible object",Y:sc.h8,Oi:j},Rp:{c:"VarCondition",d:"Condition for destructible to spawn",sd:j},Cs:{c:"VarCondition",d:"Condition for destructible to be active. Otherwise is always 'destroyed'",
sd:j},gC:{c:"Boolean",d:"If true, block path map and update when destroyed"},ksb:{c:"Number",d:"Time in seconds for destruct to regenerate",ub:1}}}),f:function(a,b,e,h){this.parent(a,b,e,h);this.b.type=ig.la.BLOCK;this.b.se=1;this.b.Xh=0.5;b=ig.Ef.get("effect");if(a=ig.copy(sc.h8[h.desType])){this.b.size=a.size;this.sg=a.size.z;this.xq=a.xq||ig.la.BLOCK;this.b.Mp(this.xq);this.Ps=a.Ps||[1,1,1,1];this.KF=a.KF;this.EN=a.kj;this.pK=a.pK||w;this.Oma=a.$db||s;if(a.kd){e=ig.copy(a.kd);if(!e.sheet)e.sheet=
b.sheet;this.O.kd=new ig.al(e)}if(a.Qc)this.O.Qc=new ig.al(a.Qc);if(a.OK)this.O.OK=new ig.al(a.OK);b=ig.Ef.get("destruct");if(a.La.namedSheets)for(var k in a.La.namedSheets){if(!a.La.namedSheets[k].src)a.La.namedSheets[k].src=b.sheet}else if(!a.La.sheet.src)a.La.sheet.src=b.sheet;this.ld(a.La);this.Ja("default")}else{this.b.size.x=32;this.b.size.y=32}this.gC=h.blockNavMap;this.Sj=Math.random()*5+1;this.Ata=h.regenTime;this.Cs=new ig.ce(h.activeCondition);this.Cs.evaluate()||this.Hn(j,j)},show:function(a){this.parent(a);
if(!a){this.Za.alpha=0;ig.t.O.Zk.Ya("showFast",this,{})}if(this.gC)this.dk=ig.navigation.i2(this)},Tb:function(a){this.parent(a);this.dk&&this.dk.remove();this.O.kd&&this.O.kd.Qa();this.O.Qc&&this.O.Qc.Qa();this.O.OK&&this.O.OK.Qa()},Dva:function(){this.Ja("cut",j);this.Ata?this.dt=this.Ata:this.Tea()},Tea:function(){if(this.xq!=ig.la.BLOCK)for(var a=ig.t.uO(this),b=a.length;b--;)a[b].uaa&&a[b].uaa();this.b.Mp(this.xq);this.b.size.z=this.sg;if(this.O.OK){this.Ja("transition",j);this.O.QK=this.O.OK.Ya(this,
{align:"CENTER",spriteFilter:1,callback:this})}else this.Ja("regen",j,"default")},rgb:function(){this.Ja("default",j);this.Sj=Math.random()*5+1;if(this.Ta.length>1){var a=this.Ta[1];a.ht(a.size.y+a.size.x,0)}},update:function(){if(this.dt){if(this.Cs.evaluate()){this.dt=this.dt-ig.g.ga;if(this.dt<=0){this.dt=0;this.Tea()}}}else if(!this.O.QK&&!this.O.yr){if(this.Sj<=0)this.Sj=Math.random()*2+4;this.Sj=this.Sj-ig.g.ga;if(!this.pK&&this.Ta.length>1){var a=this.Ta[1],b=a.size.y+a.size.z,e=b,h=0;if(this.Sj<
1){e=Math.round((this.Sj-0.08)/0.92*b);e<0&&(e=0);h=Math.round((1-this.Sj/0.92)*b);h<0&&(h=0)}a.ht(e,h)}}this.parent()},$r:function(a){if(a==this.O.QK){if(this.O.QK.vp()){this.O.QK=s;this.rgb()}}else if(a==this.O.yr&&this.O.yr.vp()){this.O.yr=s;this.Dva()}},Om:function(b){if(this.dt||this.O.yr||!ig.Oj.Tr(this,40))return w;var d=b.V1(this,a),e=b.ic&&b.ic.yk("CHARGED")?sc.hc.MEDIUM:sc.hc.LIGHT,h=b.ij(this);if(!this.Ps[d]||this.EN&&!this.EN(b,this)){if(!this.Ps[d]){this.O.Mb.Ya("shieldBlink",this,{spriteFilter:2});
ig.Tg.ah(this.Kb.ZE,this)}return w}e=sc.hc.MASSIVE;sc.pb.sj(this,h,e,b.nh(),w,w,j);if(this.O.QK){this.O.QK.stop();this.O.QK=s}this.Hn();return j},Hn:function(a,b){if(!this.dt&&!this.O.yr){this.Ie=0;var e=this.kb();this.b.Mp(ig.la.BLOCK);this.b.size.z=0;if(b)this.Dva();else if(this.nb.Eba("transition")&&this.O.Qc){this.Ja("transition",j);this.O.yr=this.O.Qc.eh(e.x,e.y,this.b.i.z+this.b.size.z/2,this,{spriteFilter:1,callback:this});this.y6()}else{!a&&this.O.Qc&&this.O.Qc.eh(e.x,e.y,this.b.i.z+this.b.size.z/
2,this);this.Ja("destroy",j,"cut");this.y6();this.Dva()}this.Ta.length>1&&this.Ta[1].ht(0,0)}},Fg:function(){this.b.size.z>0&&!this.Cs.evaluate()&&this.Hn(j)},lo:function(a,b){this.b.size.z>0&&this.Oma&&this.Oma(a,b,this)},y6:function(){var a=this.kb();this.O.kd&&this.O.kd.eh(a.x,a.y,this.b.i.z,s,{angle:this.QN})},$O:function(a,b){var e=b.dir;return this.Ps[Math.abs(e.x)>Math.abs(e.y)?ig.Zb.zh[e.x>0?"WEST":"EAST"]:ig.Zb.zh[e.y>0?"NORTH":"SOUTH"]]}});sc.h8.iceBlock={size:{x:24,y:24,z:24},Qc:{sheet:"puzzle.destructible",
name:"iceBlockBoomQuick"},OK:{sheet:"puzzle.destructible",name:"iceBlockRegen"},kj:function(a){return a.ic&&a.ic.element==sc.ja.HEAT},La:{namedSheets:{fullIce:{src:s,width:24,height:48,offX:96,offY:96},bottomIce:{src:s,width:24,height:24,offX:144,offY:96}},SUB:[{sheet:"bottomIce",shapeType:"Z_FLAT",frames:[0],repeat:w,SUB:[{name:"cut"},{name:"transition"}]},{shapeType:"Z_EXPAND",sheet:"fullIce",SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"default",time:1,frames:[1],repeat:w,aboveZ:1},{name:"transition",
time:1,frames:[0],repeat:w}]}]}};var b=Vec2.create();sc.h8.flame={size:{x:32,y:32,z:24},pK:j,xq:ig.la.NPBLOCK,Qc:{sheet:"puzzle.flame",name:"boom"},Uob:"puzzle.flame",kj:function(a,b){if(a.ic&&a.ic.yk("ICE_DISK"))return j;b.Ja("shuffle",j,"default",j);a.F9&&a.F9(b);return w},$db:function(a,d,e){if(d&&a instanceof ig.ya.Combatant){Vec2.assign(b,d);Vec2.hd(b);e.Ja("shuffle",j,"default",j);sc.pb.sj(a,a.je(ig.Rb.CENTER),sc.hc.LIGHT,sc.ja.HEAT,w,w,w);a.xk();var h=a.m1(b,a.Pv()?"MEDIUM":"HEAVY",w,w);a.Nl=
Math.max(a.Nl,h)}if(d&&a instanceof sc.Sja){e.Ja("shuffle",j,"default",j);Vec2.assign(b,d);Vec2.hd(b);a.cf(b,a.$c||ig.t.wb)}},La:{namedSheets:{flame:{src:"media/map/heat-dng.png",width:32,height:48,offX:288,offY:736},bottom:{src:"media/map/heat-dng.png",width:16,height:16,offX:480,offY:208}},SUB:[{sheet:"bottom",shapeType:"Z_FLAT",frames:[0],repeat:w,SUB:[{name:"default"},{name:"destroy"},{name:"cut"},{name:"regen"},{name:"shuffle"}]},{sheet:"flame",offset:{x:0,y:0,z:4},SUB:[{name:"default",time:0.1,
frames:[3,4,5,6],repeat:j},{name:"destroy",time:0.066,frames:[2,1,0],repeat:w},{name:"regen",time:0.066,frames:[0,1,2],repeat:w},{name:"shuffle",time:0.05,frames:[0,1,2],repeat:w}]}]}}});ig.G=j;
ig.I("game.feature.puzzle.entities.extract-platform").J("game.config","impact.base.entity").H(function(){sc.B7={};ig.ya.ExtractPlatform=ig.fe.extend({s:new ig.u({Bd:j,attributes:{Vob:{c:"String",d:"Type of extractable platform",Y:sc.B7},Gk:{c:"Number",d:"The z position when active."},eqa:{c:"Number",d:"The z position when inactive."},jb:{c:"VarCondition",d:"Condition for the platform to move up",sd:j}}}),jb:s,mc:s,FR:0,e7:0,Gk:0,eqa:0,vz:w,a_:0,vEa:0,CEa:0,f:function(a,b,c,d){this.parent(a,b,c,d);
this.b.type=ig.la.BLOCK;this.b.Xh=0;this.a_=this.b.i.z;this.jb=new ig.ce(d.condition);this.Gk=d.activeZHeight||0;a=sc.B7[d.extractType];this.FR=this.e7=a.yHa;Vec3.assign(this.b.size,a.size);this.vz=this.jb.evaluate();window.Yc||(this.vz?this.AD(this.a_-this.b.size.z+this.Gk):this.AD(this.a_-this.b.size.z+this.eqa));this.ld(a.La)},update:function(){this.parent();if(this.FR<this.e7){this.FR=this.FR+ig.g.ga;var a=Math.min(1,Math.max(0,this.FR)/this.e7),a=KEY_SPLINES.LINEAR.get(a),b=this.vEa*(1-a)+this.CEa*
a;if(a==1)this.FR=this.e7;this.AD(b)}},Fg:function(){var a=this.jb.evaluate();if(this.vz!=a){this.vz=a;this.vEa=this.b.i.z;this.CEa=this.vz?this.a_-this.b.size.z+this.Gk:this.a_-this.b.size.z+this.eqa;this.FR=0}}});sc.B7.Small={size:{x:16,y:16,z:16},yHa:0.3,mc:ig.Gd.METAL,La:{sheet:{src:"media/entity/objects/puzzle-elements-1.png",width:16,height:32},SUB:[{name:"default",time:1,frames:[0],repeat:w}]}};sc.B7.Large={size:{x:32,y:32,z:32},yHa:0.3,mc:ig.Gd.METAL,La:{sheet:{src:"media/entity/objects/puzzle-elements-1.png",
width:32,height:64,offY:32},SUB:[{name:"default",time:1,frames:[0],repeat:w}]}}});ig.G=j;
ig.I("game.feature.puzzle.entities.dynamic-platform").J("impact.base.actor-entity","impact.base.entity").H(function(){var a=Vec3.pc(0,0,0);sc.VL={};ig.ya.DynamicPlatform=ig.Zb.extend({s:new ig.u({Bd:j,attributes:{Wrb:{c:"String",d:"Type of extractable platform",Y:sc.VL},Dm:{c:"DynamicPlatformDests",d:"the states to iterate. ",sd:j},Yda:{c:"VarCondition",d:"Condition to pause the platform to move.",sd:j,ub:"false"},Xda:{c:"EntityAnim",d:"Animation to be played on pause",U:j},Osb:{c:"Boolean",d:"True if actions should be interrupted when switching states.",
ub:j}}}),Id:s,Dm:[],Yda:s,Xda:s,Es:s,paused:w,TQa:w,s9:w,N_:w,f:function(b,c,d,e){this.parent(b,c,d,e);this.TQa=e.skipWait;b=sc.VL[e.platformType];Vec3.assign(this.b.size,b.size);this.mc=b.mc;this.nb=new ig.wj(b.La);for(var h in b.Oc)this.iR(h,b.Oc[h]);this.Es=new ig.lr({collType:ig.la.BLOCK,walkAnims:h,zGravityFactor:0,weight:-1,maxVel:180,relativeVel:1,accelSpeed:1.5,friction:1.6,airFriction:0.7,shadow:32,shadowType:ig.bE.STATIC_SIZE});this.Yda=new ig.ce(e.pauseCondition);this.Xda=e.pauseAnimation;
h=this.je(ig.Rb.BOTTOM,a);e=e.states;b=s;if(e)for(c=0;c<e.length;c++){var b=e[c],d=b.useAbsolute?b.position:Vec3.add(b.position,h,Vec3.create()),k=[{type:"INTERPOLATE_POSITION",newPos:d,keySpline:b.keySpline,duration:b.duration||0}],l=new ig.lr({walkAnims:b.animation},this.Es);this.Dm.push({action:b.action?new ig.rf(s,b.action):s,jb:new ig.ce(b.condition),ad:l,i:d,$Q:new ig.rf(s,k),Rjb:b.duration||0,Gfb:b.playOnce||w})}if(window.Yc)this.Dm.length>0&&this.Ei(this.Dm[0].ad);else{this.MSa(j);this.JSa()}this.ld()},
update:function(){this.parent()},IK:function(){if(!this.yJa()&&!this.paused)if(this.s9){this.ZNa();this.s9=w}else{(!this.Id.Gfb||!this.N_)&&this.If(this.Id.action);this.N_=j}},Tb:function(a){this.parent(a);this.nb.Qa()},MSa:function(a){for(var c=this.Dm.length,d=s,e=s;c--;){d=this.Dm[c];if(d.jb.evaluate()){e=d;break}}if(e!=this.Id){this.Id=e;this.Id.played=w;if(a||this.TQa||!this.N_)this.ZNa(a);else{this.N_=w;this.s9=j}}},ZNa:function(a){this.Ei(this.Id.ad);if(a){this.l(this.Id.i.x-this.b.size.x/
2,this.Id.i.y-this.b.size.y/2,this.Id.i.z);this.s9=w}else if(this.Id.Rjb!=0)this.If(this.Id.$Q);else{this.If(this.Id.action);this.N_=j}},Fg:function(){this.MSa();this.JSa()},JSa:function(){var a=this.Yda&&this.Yda.evaluate();if(a!=this.paused)if(this.paused=a){this.Kva();if(this.Xda){this.Ja(this.Xda,j,s,j);this.lm=j}Vec2.Sa(this.b.Eb,0,0);Vec2.Sa(this.b.Z,0,0)}else{this.lm=w;this.Yta()}}});sc.VL.Small={size:{x:16,y:16,z:16},mc:ig.Gd.METAL,La:{sheet:{src:"media/entity/objects/puzzle-elements-1.png",
width:16,height:32},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"move",time:0.05,frames:[0,1,2,1],repeat:j}]},Oc:{"default":{idle:"default",move:"move"}}};sc.VL.Large={size:{x:32,y:32,z:32},mc:ig.Gd.METAL,La:{sheet:{src:"media/entity/objects/puzzle-elements-1.png",width:32,height:64,offY:32},SUB:[{name:"default",time:1,frames:[0],repeat:w},{name:"move",time:0.05,frames:[0,1,2,1],repeat:j}]},Oc:{"default":{idle:"default",move:"move"}}};sc.VL.RhombusMedium={size:{x:32,y:32,z:32},mc:ig.Gd.METAL,
La:{sheet:{src:"media/entity/objects/dynamic-blocks.png",width:32,height:64},SUB:[{name:"redOn",time:1,frames:[0],repeat:w},{name:"redOff",time:1,frames:[1],repeat:w},{name:"greenOn",time:1,frames:[2],repeat:w},{name:"greenOff",time:1,frames:[3],repeat:w},{name:"blueOn",time:1,frames:[4],repeat:w},{name:"blueOff",time:1,frames:[5],repeat:w}]},Oc:{greenOn:{idle:"greenOn"},greenOff:{idle:"greenOff"},redOn:{idle:"redOn"},redOff:{idle:"redOff"},blueOn:{idle:"blueOn"},blueOff:{idle:"blueOff"}}};sc.VL.Floating=
{size:{x:32,y:32,z:0},mc:ig.Gd.METAL,La:{sheet:{src:"media/entity/objects/dynamic-blocks.png",width:32,height:36},shapeType:"Z_EXPAND",offset:{x:0,y:0,z:-4},SUB:[{name:"redOn",time:1,frames:[0],repeat:w},{name:"redOff",time:1,frames:[1],repeat:w},{name:"greenOn",time:1,frames:[2],repeat:w},{name:"greenOff",time:1,frames:[3],repeat:w},{name:"blueOn",time:1,frames:[4],repeat:w},{name:"blueOff",time:1,frames:[5],repeat:w}]},Oc:{greenOn:{idle:"greenOn"},greenOff:{idle:"greenOff"},redOn:{idle:"redOn"},
redOff:{idle:"redOff"},blueOn:{idle:"blueOn"},blueOff:{idle:"blueOff"}}};sc.VL.FloatingBig={size:{x:64,y:64,z:0},mc:ig.Gd.METAL,La:{sheet:{src:"media/entity/objects/dynamic-blocks.png",width:64,height:68,offY:40},shapeType:"Z_EXPAND",offset:{x:0,y:0,z:-4},SUB:[{name:"blueOn",time:1,frames:[0],repeat:w},{name:"blueOff",time:1,frames:[1],repeat:w}]},Oc:{blueOn:{idle:"blueOn"},blueOff:{idle:"blueOff"}}}});ig.G=j;
ig.I("game.feature.puzzle.entities.ol-platform").J("impact.base.entity","impact.feature.base.entities.object-layer-view").H(function(){sc.Eza={SLOWEST:25,SLOWER:50,SLOW:75,MEDIUM:100,FAST:150};var a=Vec3.create();ig.ya.OLPlatform=ig.gd.extend({s:new ig.u({Bd:j,Ip:j,Jp:j,w5:4,attributes:{NLa:{c:"String",d:"Object Layer from which to display graphic.",Y:{object1:1,object2:1,object3:1}},sg:{c:"Number",d:"Z height of displayed object"},Qg:{c:"Number",d:"Wall Y Value"},mc:{c:"String",d:"Type of ground terrain",
Y:ig.Gd},Dm:{c:"OlPlatformStates",d:"States of the platform",sd:j},speed:{c:"String",d:"Speed of transition",Y:sc.Eza},Lva:{c:"Boolean",d:"Speed independent of distance"}},Fj:w,hl:"rgba(120,255,120, 0.5)",yF:"rgba(80,244,80, 0.5)",L9:j}),mc:s,jf:s,mn:Vec3.create(),Dm:[],speed:0,Lva:w,Ab:{move:new ig.da("media/sound/puzzle/push-start.ogg",1)},pI:Vec3.create(),n:s,Id:s,qL:w,dk:s,f:function(a,c,d,e){this.parent(a,c,d,e);this.b.type=ig.la.BLOCK;this.b.size.z=e.zHeight||0;this.mc=e.terrain||0;this.speed=
sc.Eza[e.speed||"MEDIUM"];this.Qg=(e.wallY||0).Vb(0,1);this.Lva=e.staticSpeed||w;this.jf=ig.t.sba(e.layer);Vec3.assign(this.mn,this.b.i);this.n=new ig.Ct;if(a=e.states)for(c=0;c<a.length;++c){d=a[c];e=s;d.layer&&(e=ig.t.sba(d.layer));this.Dm.push({jb:new ig.ce(d.condition),i:Vec3.add(d.offset,this.mn,Vec3.create()),jf:e,g6:KEY_SPLINES[d.spline||"EASE_IN_OUT"]})}this.dm(ig.oS.jpa(this,this.jf));window.Yc||this.Su(j)},show:function(a){this.parent(a);this.dk=ig.navigation.i2(this)},Tb:function(){this.dk&&
this.dk.remove();this.parent()},Su:function(a){for(var c=this.Dm.length,d=s;c--;){var e=this.Dm[c];if(e.jb.evaluate()){d=e;break}}if(d&&d!=this.Id){Vec3.assign(this.pI,this.b.i);if(a)Vec3.assign(this.b.i,d.i);else{this.Ab.move.play();a=Vec3.ab(this.pI,d.i);this.Lva&&(a=32);this.n.set(a/this.speed,ig.qk.hq)}if(this.Id&&this.Id.jf!=d.jf)this.qL=w}this.Id=d},update:function(){this.parent();if(!this.n.yb()){this.n.ga();var b=this.n.get(),b=this.Id.g6.get(b);Vec3.Zm(this.pI,this.Id.i,b,a);this.l(a.x,a.y,
a.z,j);this.n.yb()&&this.dk&&this.dk.update()}},tj:function(){if(!this.qL){var b=this.Id&&this.Id.jf||this.jf,c=Vec3.sub(this.b.i,this.mn,a);if(ig.oS.tj(this,b,this.Qg,c))this.qL=w}},Fg:function(){this.Su()}})});ig.G=j;
ig.I("game.feature.puzzle.entities.enemy-counter").J("game.feature.combat.combat","impact.base.entity").H(function(){ig.ya.EnemyCounter=ig.fe.extend({r:s,Av:s,Yna:0,LA:0,WP:0,tea:s,P4:s,yb:w,zfa:s,n:0,hza:0.5,Kb:{count:new ig.da("media/sound/puzzle/counter.ogg",0.7),yb:new ig.da("media/sound/puzzle/switch-activate-2.ogg",1)},O:{sheet:new ig.ae("puzzle")},s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",d:"VarCondition to make enemy counter appear",sd:j},Av:{c:"String",d:"Enemy Group that is considered for counting"},
Yna:{c:"Number",d:"Number of enemies that needs to be defeated"},tea:{c:"VarName",d:"Variable to be set to true when all enemies are defeated."},P4:{c:"VarName",d:"Variable to be set to true when the last marble reached the counter."},Oz:{c:"VarName",d:"Variable to be set to the current enemyCount value."},zfa:{c:"VarCondition",d:"if provided: shuffle when condition evaluates to true",U:j}},label:function(){return""+this.YV+" => ["+this.tea+"] > ["+this.P4+"]"}}),f:function(a,b,c,d){this.parent(a,
b,c,d);this.b.type=ig.la.BLOCK;this.b.v(32,30,2);this.b.time.Gj=j;a=ig.Ef.get("puzzle");this.r=new ig.$(a.sheet);this.Av=d.enemyGroup;this.Yna=d.enemyCount;this.tea=d.preVariable;this.P4=d.postVariable;this.Oz=d.countVariable;this.zfa=d.shuffleCondition?new ig.ce(d.shuffleCondition):s;this.WP=this.LA=(this.yb=ig.pa.get(this.P4))?0:this.Yna;sc.pb.Jla(this);this.Oz&&ig.pa.set(this.Oz,this.WP)},show:function(a){this.parent(a);if(!a){this.Za.alpha=0;this.O.sheet.Ya("enemyCounterAppear",this,{})}},Jn:function(){this.dm(4)},
update:function(){if(this.n>0)this.n=this.n-ig.g.ga},hsa:function(a,b){if(this.LA>0&&b==sc.m7.DEFEATED&&a.Ca==sc.Qd.ENEMY&&(!this.Av||a.Av==this.Av)){this.LA--;this.LA==0&&ig.pa.set(this.tea,j);return this}},aeb:function(){this.F7a()},tj:function(){var a=this.yb?64:0,b=this.b;this.Ta[0].l(b.i.x,b.i.y,b.i.z);this.Ta[0].v(b.size.x,b.size.y,b.size.z,b.size.y);this.Ta[0].rb(b.size.x/2,(b.size.y+b.size.z)/2);this.Ta[0].Vh(this.r,0+a,96);this.Ta[0].wd(this.Za.alpha);this.Ta[0].setTransform(this.Za.Ia,this.Za.Ma,
this.Za.oc);if(this.n>0){this.Ta[3].l(b.i.x,b.i.y,b.i.z);this.Ta[3].v(b.size.x,b.size.y,b.size.z);this.Ta[0].rb(b.size.x/2,(b.size.y+b.size.z)/2);this.Ta[3].Vh(this.r,32+a,96);this.Ta[3].wd(this.n/this.hza*this.Za.alpha);this.Ta[3].setTransform(this.Za.Ia,this.Za.Ma,this.Za.oc)}else this.Ta[3].Vh(s);if(this.yb){this.Ta[1].Vh(s);this.Ta[2].Vh(s)}else{var c=this.WP;this.zfa&&this.zfa.evaluate()&&(c=Math.floor(Math.random()*100));a=Math.floor(c/10);c=c%10;this.Ta[1].l(b.i.x+9,b.i.y+6,b.i.z);this.Ta[1].v(16,
16,0,0);this.Ta[1].Vh(this.r,128+a%5*16,96+(a>=5?16:0));this.Ta[1].wd(this.Za.alpha);this.Ta[1].setTransform(this.Za.Ia,this.Za.Ma,this.Za.oc);this.Ta[2].l(b.i.x+14,b.i.y+11,b.i.z);this.Ta[2].v(16,16,0,0);this.Ta[2].Vh(this.r,128+c%5*16,96+(c>=5?16:0));this.Ta[2].wd(this.Za.alpha);this.Ta[2].setTransform(this.Za.Ia,this.Za.Ma,this.Za.oc)}},Tb:function(a){sc.pb.DOa(this);this.parent(a)},F7a:function(){if(this.WP>0){this.n=this.hza;this.WP--;this.Oz&&ig.pa.set(this.Oz,this.WP);if(this.WP==0){this.yb=
j;ig.pa.set(this.P4,j);ig.Tg.ah(this.Kb.yb,this)}else ig.Tg.ah(this.Kb.count,this)}}});ig.ya.KillCounter=ig.gd.extend({Av:s,FV:0,LA:0,gc:s,yb:w,s:new ig.u({Bd:j,attributes:{Av:{c:"String",d:"Enemy Group that is considered for counting"},FV:{c:"Number",d:"Number of kills to do."},gc:{c:"VarName",d:"Variable to be set to true when all kill count is reached"},Oz:{c:"VarName",d:"Variable to be set to the current enemyCount value."}},Fj:j,Ip:j,Jp:j,hl:"rgba(0,0,255, 0.5)",yF:"rgba(0,0,120, 0.8)",label:function(){return""+
this.FV+" => ["+this.gc+"]"}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;d.size||this.b.v(32,32,0);this.b.time.Gj=j;this.Av=d.enemyGroup;this.FV=d.killCount;this.gc=d.variable;this.Oz=d.countVariable;this.LA=(this.yb=ig.pa.get(this.gc))?0:this.FV;sc.pb.Jla(this);this.Oz&&ig.pa.set(this.Oz,this.LA)},hsa:function(a,b){if(this.LA>0&&b==sc.m7.DEFEATED&&a.Ca==sc.Qd.ENEMY&&(!this.Av||a.Av==this.Av)){this.LA--;this.Oz&&ig.pa.set(this.Oz,this.LA);if(this.LA==0){ig.pa.set(this.gc,j);
this.yb=j}}},Tb:function(a){sc.pb.DOa(this);this.parent(a)}})});ig.G=j;
ig.I("game.feature.puzzle.entities.group-switch").J("impact.base.entity").H(function(){sc.Nha={};sc.vH={};sc.vH.LOCAL=0;sc.vH.GLOBAL=1;var a={};ig.ya.GroupSwitch=ig.fe.extend({kj:s,FI:j,Cs:s,group:s,ns:sc.vH.LOCAL,aT:s,Ds:s,Gk:0,Ac:w,Kb:{kA:new ig.da("media/sound/battle/hit-7.ogg",0.4),XE:new ig.da("media/sound/puzzle/switch-activate-2.ogg",1)},time:0,n:0,Dqa:w,s:new ig.u({Bd:j,attributes:{vL:{c:"String",d:"Type of Group Switch",Y:sc.Nha},ns:{c:"String",d:"Update type for the group switch",Y:sc.vH},
group:{c:"String",d:"The associated group for this switch. Must be set for global type switches."},Lt:{c:"Number",d:"the time the switch (or all switches in the group if global) stays active."},aT:{c:"VarName",d:"Variable is set to true when all switches are activated"},Ds:{c:"VarName",d:"This variable stored the number of active switches in this group"}},label:function(){return"[ "+this.aT+" ]\n"+this.Ds+"++"}}),f:function(b,c,d,e){this.parent(b,c,d,e);this.b.type=ig.la.BLOCK;this.b.time.Gj=j;b=
sc.Nha[e.switchType];ig.Ef.get("switch");if(b){Vec3.assign(this.b.size,b.size);this.kj=b.kj;this.Gk=b.Gk;if(b.cH){c=ig.Ef.get("puzzle");b.La.sheet.src=c.sheet}this.ld(b.La)}this.ns=sc.vH[e.updateType];this.group=e.group;this.n=this.time=e.activeTime;this.Cs=new ig.ce(e.activeCondition||"false");this.aT=e.activeBoolVar;(this.Ds=e.activeCountVar)&&ig.pa.rw(this.Ds,0);ig.pa.rw(this.aT,0);a[this.group]||(a[this.group]={entities:[],WV:s,C9:0});a[this.group].entities.push(this);(this.Ac=ig.pa.get(this.aT))?
this.b.size.z=this.Gk:this.Ds&&ig.pa.set(this.Ds,0);this.Ja(this.Ac?"on":"off")},Tb:function(b){this.Ac||this.Ds&&ig.pa.set(this.Ds,0);delete a[this.group];this.parent(b)},N5:function(){this.Ja("off",j,s,j,w);this.Dqa=0;this.Ac=w},mfa:function(){this.Ac=j;this.Ja("switch",j,s,j,j)},update:function(){if(!this.Ac&&this.n<this.time){this.n=this.n+ig.g.ga;if(this.n>=this.time){this.n=this.time;var b=a[this.group];if(this.ns==sc.vH.LOCAL){this.Ds&&ig.pa.sub(this.Ds,1);this.N5();b.C9--}else if(this.ns==
sc.vH.GLOBAL&&this==b.WV){this.Ds&&ig.pa.set(this.Ds,0);for(var c=b.entities.length;c--;)b.entities[c].N5();b.WV=s;b.C9=0}}}this.parent()},Om:function(b){if(!this.Ac&&!this.Dqa&&this.kj(this,b)){this.Dqa=j;this.Ja("spinning",j,s,j,w);sc.pb.sj(this,b.ij(this),sc.hc.MASSIVE,b.nh(),w,w,j);ig.Tg.ah(this.Kb.kA,this);ig.Tg.ah(this.Kb.XE,this);b=a[this.group];this.n=0;if(this.ns==sc.vH.GLOBAL&&!b.WV)b.WV=this;b.C9++;this.Ds&&ig.pa.add(this.Ds,1);if(b.C9==b.entities.length){for(var c=b.entities.length;c--;)b.entities[c].mfa();
ig.pa.set(this.aT,j)}}else sc.pb.sj(this,b.ij(this),sc.hc.NONE,b.nh(),w,w,j);return j},CI:function(a){if(a=="switch"){this.b.size.z=this.Gk;this.Ja("switch_end",j,"on")}}});sc.Nha["default"]={size:{x:16,y:16,z:17},Gk:0,cH:j,La:{offset:{x:0,y:0,z:0},sheet:{src:s,width:16,height:32},SUB:[{name:"off",time:0.1,frames:[0,1,2,3],repeat:j},{name:"spinning",time:0.03,frames:[4,5,6,7],repeat:j},{name:"switch",time:0.03,frames:[8,9,10,11,8,9,10,11,8,9,10,11,8,9,10,11,8,9,10,10,11,11,11,8,8,8,8,8,12,13],repeat:w},
{name:"switch_end",time:0.1,frames:[14,15],repeat:w},{name:"on",time:1,frames:[15],repeat:w}]},kj:function(a,c){return c.Ca==sc.Qd.PLAYER}}});ig.G=j;
ig.I("game.feature.puzzle.entities.chest").J("impact.base.actor-entity","impact.base.entity","game.feature.interact.map-interact","game.feature.inventory.inventory","game.feature.menu.menu-model").H(function(){sc.QL={};sc.PR={};sc.PR.BRONZE=154;sc.PR.SILVER=155;sc.PR.GOLD=156;ig.ya.Chest=ig.fe.extend({s:new ig.u({Bd:j,attributes:{AT:{c:"String",d:"Type of the chest.",Y:sc.QL},item:{c:"Item",d:"The item to spawn."},zb:{c:"Number",d:"Amount of the given item. 0 = 1.",ub:1},Rp:{c:"VarCondition",d:"Condition for Enemy to spawn",
sd:j},gc:{c:"VarName",d:"the value to add 1 to",U:j},trigger:{c:"VarName",d:"trigger to set to true the only 'once' when chest is activated",U:j}},label:function(){return this.oDa+" + "+this.zb}}),hMa:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24),{FOCUS:[50,51,52,51],NEAR:[53]},0.2),edb:new sc.Wo(new ig.tg("media/gui/map-icon.png",24,24),{FOCUS:[55,56,57,58,57,58,57,56],NEAR:[54]},0.2),Kb:{open:new ig.da("media/sound/puzzle/chest-opening.ogg",1)},Be:s,Pr:s,kca:w,Ema:w,item:s,zb:0,AT:s,oDa:s,
vI:s,f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.NONE;this.b.se=1;this.Be=new sc.jS(this,this,this.hMa,sc.zB.BM,w);this.Be.c$=j;this.vI=d.trigger||s;this.AT=a=sc.QL[d.chestType]||sc.QL["default"];Vec3.assign(this.b.size,a.size);this.Ema=(b=d.variable||"")&&b!=""?b:"map.chest_"+this.gy;this.item=d.item||0;this.oDa=ig.Oa.wc(sc.Pb.getItem(this.item).name)||"NULL";this.zb=d.amount||1;this.ld(a.La);if(ig.pa.get(this.Ema)){this.kca=j;this.Ja("end",j,s,j)}else{this.b.nd.height=6;this.b.nd.uj=
2;this.b.Ad.size=16}this.Za.alpha=1},$r:function(a){if(a.vp()){this.Pr=s;this.hide()}},show:function(a){this.parent(a);if(!a){this.Za.alpha=0;ig.t.O.Zk.Ya("showDefault",this,{})}if(!this.kca){(a=this.AT.item?w:j)||(a=sc.q.R.Ov(this.AT.item));a?this.Be.xy(this.hMa):this.Be.xy(this.edb);sc.sm.de(this.Be)}},gG:function(){sc.sm.ie(this.Be);this.Pr=ig.t.O.Zk.Ya("hideDefault",this,{callback:this})},ql:function(){if(this.kca)return j;if(this.AT.item&&!sc.q.R.Ov(this.AT.item)){if(this.vI&&!ig.pa.get(this.vI)){ig.pa.set(this.vI,
j);return j}return w}var a=ig.t.wb,b=[{type:"SET_WALK_ANIMS",config:"normal"},{type:"SET_RELATIVE_SPEED",value:0.5},{type:"SET_FACE_TO_ENTITY",entity:this,rotate:j},{type:"SET_FACE_FIX",value:j},{type:"MOVE_TO_ENTITY_DISTANCE",entity:this,min:16,max:20,maxTime:0.2},{type:"SHOW_ANIMATION",anim:"chestOpen"}];this.vI&&!ig.pa.get(this.vI)?b.push({type:"CHANGE_VAR_BOOL",varName:this.vI,changeType:"set",value:j}):b.push({type:"OPEN_CHEST",entity:this});b.push({type:"WAIT",time:0.8});b.push({type:"SHOW_ANIMATION",
anim:"preIdle",wait:j});b=new ig.rf("openChest",b);b.Gx=j;a.If(b)},MNa:function(){this.kca=j;this.Kb.open.play();sc.fM.WQ(this,ig.Rb.CENTER,ig.t.wb,this.item,this.zb,sc.mE.CHEST);sc.ta.cc("chests",sc.map.$h.path,1);sc.ta.cc("chests","total",1);sc.sm.ie(this.Be);this.Ja("open",j,s,j,j);ig.pa.add(this.Ema,1);ig.pa.set(this.vI,j);this.b.nd.height=0;this.b.Ad.size=0},CI:function(a){a=="open"&&this.Ja("end",j,s,j)}});ig.Ha.OPEN_CHEST=ig.Pa.extend({P:0,f:function(a){this.P=a.entity},start:function(){var a=
ig.Ra.pd(this.P);a&&a.MNa&&a.MNa()}});sc.QL.Default={size:{x:17,y:13,z:12},mc:ig.Gd.METAL,La:{shapeType:"Y_FLAT",SUB:[{sheet:{src:"media/entity/objects/treasure.png",width:16,height:24},SUB:[{name:"idle",time:0.05,frames:[0,0,0,0,0,0,0,0,1,2,3,4,5],repeat:j}]},{sheet:{src:"media/entity/objects/treasure.png",width:24,height:32,offY:24},gfxOffset:{x:0,y:4},SUB:[{name:"open",time:0.1,frames:[0,1,2,3],repeat:w},{name:"end",time:0.1,frames:[4],repeat:w,shapeType:"Z_FLAT"}]}]}};sc.QL.Bronze={size:{x:17,
y:13,z:12},mc:ig.Gd.METAL,item:sc.PR.BRONZE,La:{shapeType:"Y_FLAT",SUB:[{sheet:{src:"media/entity/objects/treasure.png",width:16,height:24,offY:64},SUB:[{name:"idle",time:0.05,frames:[0,0,0,0,0,0,0,0,1,2,3,4,5],repeat:j}]},{sheet:{src:"media/entity/objects/treasure.png",width:24,height:32,offY:88},gfxOffset:{x:0,y:4},SUB:[{name:"open",time:0.1,frames:[0,1,2,3],repeat:w},{name:"end",time:0.1,frames:[4],repeat:w,shapeType:"Z_FLAT"}]}]}};sc.QL.Silver={size:{x:17,y:13,z:12},mc:ig.Gd.METAL,item:sc.PR.SILVER,
La:{shapeType:"Y_FLAT",SUB:[{sheet:{src:"media/entity/objects/treasure.png",width:16,height:24,offY:128},SUB:[{name:"idle",time:0.05,frames:[0,0,0,0,0,0,0,0,1,2,3,4,5],repeat:j}]},{sheet:{src:"media/entity/objects/treasure.png",width:24,height:32,offY:152},gfxOffset:{x:0,y:4},SUB:[{name:"open",time:0.1,frames:[0,1,2,3],repeat:w},{name:"end",time:0.1,frames:[4],repeat:w,shapeType:"Z_FLAT"}]}]}};sc.QL.Gold={size:{x:17,y:13,z:12},mc:ig.Gd.METAL,item:sc.PR.GOLD,La:{shapeType:"Y_FLAT",SUB:[{sheet:{src:"media/entity/objects/treasure.png",
width:16,height:24,offY:192},SUB:[{name:"idle",time:0.05,frames:[0,0,0,0,0,0,0,0,1,2,3,4,5],repeat:j}]},{sheet:{src:"media/entity/objects/treasure.png",width:24,height:32,offY:216},gfxOffset:{x:0,y:4},SUB:[{name:"open",time:0.1,frames:[0,1,2,3],repeat:w},{name:"end",time:0.1,frames:[4],repeat:w,shapeType:"Z_FLAT"}]}]}}});ig.G=j;
ig.I("game.feature.puzzle.entities.quick-sand").J("impact.feature.influencer.influencer","impact.feature.terrain.terrain","impact.feature.effect.effect-sheet").H(function(){ig.mc.Cta(ig.Gd.QUICKSAND);ig.YZa=ig.ra.extend({Rr:s,n:0,O:{sheet:new ig.ae("puzzle.quicksand"),handle:s},f:F(),Vk:function(a,b){var c=b.b,d=b.n6.IFa==ig.Gd.QUICKSAND&&c.i.z==c.jc;c.Px!=ig.DY.LOOSE&&(d=w);if(!this.Rr&&d){this.Rr=new ig.Vya;this.Rr.zra=0.9;a.REa(this.Rr);this.n=0;this.O.handle=this.O.sheet.Ya("sandTrail",b,{duration:-1})}else if(this.Rr&&
!d){this.n/2>0.3&&b.XN(100,0,80);this.Wna(a,0.1)}if(this.Rr){this.n=this.n+ig.g.ga;d=this.n/2;this.Rr.uJa=c.size.z*d;this.Rr.HMa=1-d*0.7;if(this.n>=2)if((c=ig.Oj.yO(b))&&c.zNa){this.Wna(a,1);c.zNa(b)}else{this.Wna(a,0);b.Jea&&b.Jea("quicksand")}}},Wna:function(a,b){b?this.Rr.jfa(0.1):a.GOa(this.Rr);this.O.handle.stop();this.Rr=this.O.handle=s}});ig.Wya.Z_(ig.YZa);ig.ya.QuicksandHole=ig.fe.extend({s:new ig.u({Bd:j,attributes:{map:{c:"Maps",d:"Map to be loaded",Ah:"Map"},De:{c:"Marker",d:"Marker on map to teleport player to"}},
label:function(){return"[ "+this.gc+" ]\n"+this.nq+"++"}}),O:{sheet:new ig.ae("puzzle.quicksand")},f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;this.b.v(32,32,0);a=ig.Ef.get("quicksand");this.ld({sheet:{src:a.sheet,width:32,height:32,offX:a.x,offY:a.y},SUB:[{name:"defaukt",time:0.2,frames:[0,1,2,3],repeat:j}]});this.map=d.map;this.De=d.marker;this.Rr=new ig.Vya;this.Rr.Dib(sc.lWa.cZa,0,0,40);this.Rr.Cib(this)},update:function(){this.parent()},zNa:function(a){this.O.sheet.Ya("sandDive",
a);a=new ig.Ra({steps:[{type:"TELEPORT",map:this.map,marker:this.De}]});ig.t.Vg.wq(a,ig.bl.BLOCKING)},d4:function(a){a.WO&&a.WO.REa(this.Rr)},iNa:function(a){a.WO&&a.WO.GOa(this.Rr)}})});ig.G=j;
ig.I("game.feature.puzzle.entities.steam-pipes").J("impact.base.entity","impact.feature.effect.effect-sheet").H(function(){sc.iv={};var a=4/220,b=Vec2.create(),c=Vec2.create(),d=Vec3.create();sc.yM={Dea:function(a,c,d){for(var c=this.kba(b,a,c),a=ig.t.Lx(c.x-1,c.y-1,a.b.i.z-1,4,4,4,a),l=a.length;l--;){var m=a[l];if(m.xta&&m.xta(c,d))return j}d&&d.stop(c);return w},hIa:function(a,b,d,l){var m=this.kba(c,a,b[0]),n=Vec2.ab(m,d),m=this.kba(c,a,b[1]),a=Vec2.ab(m,d);return l&&Math.min(n,a)>l?-1:n<a?0:1},
kba:function(a,b,c){a=Vec2.assign(a,c);Vec2.eW(a,b.b.size);Vec2.add(a,b.b.i);return a}};sc.P0a=ig.gd.extend({Gh:s,f:function(a,b,c,d){this.parent(a,b,c,d);this.v(0,0,0);this.Gh=new ig.Qw(this,ig.cl.S,0.1,0.3,-1,1,j);ig.ph.cx(this.Gh)},stop:function(a){a=new sc.nH(ig.t.wb,{attack:{type:"MASSIVE",element:"HEAT",damageFactor:0,spFactor:0,hints:["STEAM_PIPE"]},pos:Vec3.pc(a.x,a.y,this.b.i.z),radius:4,zHeight:4,duration:0.1,expandRadius:0,alwaysFull:j,party:"OTHER",centralAngle:1});sc.pb.WB(a);this.Gh.stop();
this.Tb()}});ig.ya.SteamPipe=ig.gd.extend({JA:s,r:s,cf:{LX:0,duration:0,j6:0,Dx:0,RV:0,jta:w,JO:s},s:new ig.u({L9:j,Bd:j,attributes:{JA:{c:"String",d:"Type of rail",Y:sc.iv}}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;a=ig.Ef.get("pipes");d=this.JA=sc.iv[d.pipeType]||sc.iv.HORIZONTAL;if(a&&d){if(!d.Ia||this.b.size.x%16!=0)this.b.size.x=d.size.x;if(!d.Ma||this.b.size.y%16!=0)this.b.size.y=d.size.y;this.b.size.z=d.size.z;if(d.Ia||d.Ma){if(window.Yc){this.s=this.s.copy();this.s.Ip=
d.Ia;this.s.Jp=d.Ma;this.s.w5=16}b=d.Ia?ig.ue.Pf.Xn:ig.ue.Pf.tE;this.r={pattern:new ig.cv(a.sheet,b,d.r.uc||16,d.r.Gc|16,a.x+d.r.x,a.y+d.r.y,1,1),wpa:new ig.cv(a.sheet,b,d.r.uc||16,d.r.Gc|16,a.x+d.r.x,a.y+d.r.y+32,1,1)}}else this.r={sheet:new ig.$(a.sheet),x:a.x+d.r.x,y:a.y+d.r.y}}else this.b.v(16,16,6)},Tb:function(a){if(this.r){this.r.pattern&&this.r.pattern.zc();this.r.wpa&&this.r.wpa.zc();this.r.sheet&&this.r.sheet.zc()}this.parent(a)},Jn:function(){this.dm(4);for(var a=this.b,b=this.Ta.length;b--;){var c=
this.Ta[b];c.v(a.size.x,a.size.y,this.JA.Vq,a.size.y);c.pfa(this,s,s,0)}},update:function(){if(this.cf.duration){if(!this.cf.jta){this.cf.j6=this.cf.j6+ig.g.ga;if(this.cf.j6>=this.cf.duration){var a=this.JA.sb[1-this.cf.LX];sc.yM.Dea(this,a,this.cf.JO);this.cf.jta=j}}this.cf.RV=this.cf.RV+ig.g.ga;if(this.cf.JO&&this.cf.RV>=this.cf.duration)this.cf.JO=s;if(this.cf.JO&&this.cf.RV>=0){var d=this.JA.sb[this.cf.LX],a=this.JA.sb[1-this.cf.LX],a=Vec2.Zm(d,a,this.cf.RV/this.cf.duration,b),a=sc.yM.kba(c,this,
a),d=Math.round(this.cf.JO.b.i.z*0.8+(this.b.i.z+(this.b.size.z==32?17:2))*0.2);this.cf.JO.l(a.x,a.y,d)}this.cf.Dx=this.cf.Dx+ig.g.ga;if(this.cf.Dx>=this.cf.duration)this.cf.duration=0}this.parent()},tj:function(){var b=this.Ta[0];this.r.pattern?b.Vh(this.r.pattern.eu(0),0,0):b.Vh(this.r.sheet,this.r.x,this.r.y);for(b=3;b--;){var c=this.Ta[b+1];if(this.cf.duration){this.r.pattern?c.Vh(this.r.wpa.eu(0),0,0):c.Vh(this.r.sheet,this.r.x,this.r.y+32);c.ht(0,0,0,0);c.Ze="lighter";var d=this.JA.sb[this.cf.LX],
l=(1-this.cf.j6/this.cf.duration).Vb(0,1);this.nCa(c,d,l);d=this.JA.sb[1-this.cf.LX];l=((this.cf.Dx+b*a)/this.cf.duration).Vb(0,1);this.nCa(c,d,l)}else c.bB()}},nCa:function(a,b,c){if(b.y==0.5){c=Math.round(a.size.x*c);b.x==1?a.jj.left=c:a.jj.right=c}else{c=Math.round((a.size.y+a.size.z)*c);b.y==1?a.jj.top=c:a.jj.bottom=c}},xta:function(a,b){a=sc.yM.hIa(this,this.JA.sb,a,4);if(a==-1)return w;this.cf.LX=a;this.cf.duration=(this.JA.Ia?this.b.size.x:this.JA.Ma?this.b.size.y:16)/220;this.cf.j6=0;this.cf.Dx=
-40/220;this.cf.RV=-8/220;this.cf.jta=w;b||(b=ig.t.af(sc.P0a,a.x,a.y,this.b.i.z,{}));this.cf.JO=b;this.cf.Gh=s;return j}});sc.iv.HORIZONTAL={r:{x:32,y:0},Ia:j,size:{x:16,y:12,z:5},Vq:4,sb:[{x:0,y:0.5},{x:1,y:0.5}]};sc.iv.VERTICAL={r:{x:32,y:16},Ma:j,size:{x:16,y:16,z:5},Vq:0,sb:[{x:0.5,y:0},{x:0.5,y:1}]};sc.iv.CURVE_SE={r:{x:0,y:0},size:{x:16,y:12,z:5},Vq:4,sb:[{x:1,y:0.5},{x:0.5,y:1}]};sc.iv.CURVE_SW={r:{x:16,y:0},size:{x:16,y:12,z:5},Vq:4,sb:[{x:0,y:0.5},{x:0.5,y:1}]};sc.iv.CURVE_NE={r:{x:0,y:16},
size:{x:16,y:16,z:5},Vq:0,sb:[{x:0.5,y:0},{x:1,y:0.5}]};sc.iv.CURVE_NW={r:{x:16,y:16},size:{x:16,y:16,z:5},Vq:0,sb:[{x:0.5,y:0},{x:0,y:0.5}]};sc.iv.END_NORTH={r:{x:48,y:6},size:{x:16,y:16,z:5},Vq:10,sb:[{x:0.5,y:0},{x:0.5,y:1}]};sc.iv.OVEN_EAST={r:{x:64,y:0},size:{x:16,y:12,z:32},Vq:20,sb:[{x:0,y:0.5},{x:1,y:0.5}]};sc.iv.OVEN_WEST={r:{x:80,y:0},size:{x:16,y:12,z:32},Vq:20,sb:[{x:0,y:0.5},{x:1,y:0.5}]};sc.iv.UPPER_PIPE={r:{x:96,y:0,uc:16,Gc:32},size:{x:16,y:12,z:32},Vq:20,Ia:j,sb:[{x:0,y:0.5},{x:1,
y:0.5}]};sc.Xw={};ig.ya.SteamTurnout=ig.fe.extend({Kkb:s,Ikb:s,jb:s,sb:[],Ac:w,O:{sheet:new ig.ae("puzzle.water-bubble")},s:new ig.u({L9:j,Bd:j,attributes:{Kkb:{c:"String",d:"Default turn of turnout",Y:sc.Xw},Ikb:{c:"String",d:"Alternative turn of turnout",Y:sc.Xw},jb:{c:"VarCondition",d:"Condition to switch to turnAlt"}}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;this.b.v(16,16,10);a=ig.Ef.get("pipes");b=sc.Xw[d.turnDefault]||sc.Xw.CURVE_NE;c=sc.Xw[d.turnAlt]||sc.Xw.CURVE_NE;
this.sb.push(b.sb);this.sb.push(c.sb);this.ld({shapeType:"XY_EXPAND",Qg:1,sheet:{src:a.sheet,width:16,height:24,xCount:3,offX:a.x,offY:a.y+64},SUB:[{name:"off",time:0.1,frames:[b.wh],repeat:j},{name:"on",time:0.1,frames:[c.wh],repeat:j}]});this.jb=new ig.ce(d.condition);this.Ac=this.jb.evaluate();this.Ja(this.Ac?"on":"off")},xta:function(a,b){this.O.sheet.Ya("steamTurnout",this);var c=this.sb[this.Ac?1:0],d=sc.yM.hIa(this,c,a,4);d==-1?b.stop(a):sc.yM.Dea(this,c[1-d],b);return j},Fg:function(){var a=
this.jb.evaluate();if(this.Ac!=a){this.Ac=a;this.O.sheet.Ya("turnoutChange",this);this.Ja(this.Ac?"on":"off",j)}}});sc.Xw.HORIZONTAL={wh:2,sb:[{x:0,y:0.5},{x:1,y:0.5}]};sc.Xw.VERTICAL={wh:5,sb:[{x:0.5,y:0},{x:0.5,y:1}]};sc.Xw.CURVE_SE={wh:0,sb:[{x:1,y:0.5},{x:0.5,y:1}]};sc.Xw.CURVE_SW={wh:1,sb:[{x:0,y:0.5},{x:0.5,y:1}]};sc.Xw.CURVE_NE={wh:3,sb:[{x:0.5,y:0},{x:1,y:0.5}]};sc.Xw.CURVE_NW={wh:4,sb:[{x:0.5,y:0},{x:0,y:0.5}]};ig.ya.SteamOven=ig.fe.extend({O:{sheet:new ig.ae("puzzle.water-bubble"),handle:s},
s:new ig.u({Bd:j,attributes:{}}),f:function(a,b,c,d){this.parent(a,b,c,d);this.b.type=ig.la.BLOCK;this.b.v(16,16,32);a=ig.Ef.get("pipes");this.ld({namedSheets:{floor:{src:a.sheet,width:16,height:16,xCount:1,offX:a.x+80,offY:a.y+64},top:{src:a.sheet,width:16,height:32,xCount:1,offX:a.x+64,offY:a.y+64}},SUB:[{name:"default",sheet:"floor",time:0.2,frames:[0,1,2,1],repeat:j,size:{x:16,y:16,z:0}},{name:"default",sheet:"top",time:0.1,frames:[0],repeat:j,size:{x:16,y:16,z:16},offset:{x:0,y:0,z:12}}]});this.Ja("default");
this.Gh=new ig.Qw(this,ig.cl.L,0,0.2,-1,1,j);this.Gh.zD(0,0,-16);ig.ph.cx(this.Gh)},lo:function(a,b){if(!Vec2.Tl(b)&&a instanceof sc.aZ&&a.b.i.z==this.b.i.z){this.bkb();a.nGa(this.je(ig.Rb.BOTTOM,d))}},bkb:function(){this.O.sheet.Ya("ovenActivate",this);sc.yM.Dea(this,{x:0,y:0.5});sc.yM.Dea(this,{x:1,y:0.5})}})});ig.G=j;
ig.I("game.feature.puzzle.puzzle-steps").J("impact.base.action","impact.base.event").H(function(){var a=Vec3.create(),b=Vec2.create();ig.ma.DESTROY_DESTRUCTIBLE=ig.na.extend({P:s,s:new ig.u({attributes:{P:{c:"Entity",d:"Destructible to destroy"}}}),f:function(a){this.P=a.entity||s},start:function(a,b){var c=ig.Ra.pd(this.P,b);c&&c.Bva&&c.Bva()}});ig.Ha.ALIGN_PUSH_PULL_POS=ig.Pa.extend({jGa:s,duration:0,f:function(a){this.jGa=a.component;this.duration=a.duration},start:function(a){a.tb.mn=a.je(ig.Rb.BOTTOM);
a.tb.duration=this.duration;a.Hb=a.tb.duration},xa:function(b){var c=1-(b.Hb/b.tb.duration).Vb(0,1);this.jGa.Zoa(a);Vec3.Zm(b.tb.mn,a,c,a);b.l(a.x-b.b.size.x/2,a.y-b.b.size.y/2,a.z,j);return c>=1}});ig.Ha.THROW_BOMB=ig.Pa.extend({r:s,offset:s,align:s,speed:s,kr:s,lga:s,s:new ig.u({attributes:{offset:{c:"Offset",d:"Offset relative to entity ground center from which to shoot"},align:{c:"String",d:"Alignment relative to entity from which to shoot",Y:ig.Rb},speed:{c:"Number",d:"The XY speed of the thrown bomb",
U:j},kr:{c:"Number",d:"The z speed of the thrown bomb",U:j},lga:{c:"Number",d:"Time in seconds the timer of the bomb should be advanced"}}}),f:function(a){this.offset=a.offset;this.align=a.align;this.speed=a.speed;this.kr=a.zVel;this.lga=a.timeAdvance||0;a=ig.Ef.get("puzzle2");this.r=new ig.$(a.sheet)},Qa:function(){this.r.zc()},start:function(b){var c=b.je(this.align,a);this.offset&&Vec3.add(c,this.offset);c=ig.t.af(sc.hha,c.x,c.y,c.z,{});c.start(b.face,b,this.speed,this.kr);c.n=c.n-this.lga}});
var c=[];ig.Ha.RAIN_BOMB=ig.Pa.extend({r:s,count:s,offset:s,align:s,Ub:s,exa:s,s:new ig.u({attributes:{count:{c:"Integer",d:"Number of bombs"},offset:{c:"Offset",d:"Offset relative to entity ground center from which to shoot"},align:{c:"String",d:"Alignment relative to entity from which to shoot",Y:ig.Rb},Ub:{c:"Vec2",d:"Area on which to rain the bombs randomly"},exa:{c:"Number",d:"Value to +- vary the z height"}}}),f:function(a){this.count=a.count;this.offset=a.offset;this.align=a.align;this.Ub=
a.area;this.exa=a.zVary||0;a=ig.Ef.get("puzzle2");this.r=new ig.$(a.sheet)},Qa:function(){this.r.zc()},start:function(d){d=d.je(this.align,a);this.offset&&Vec3.add(d,this.offset);for(var e=this.count;e--;){var h=5;do{var k=w,l=Vec2.Sa(b,0,0);l.x=(Math.random()-0.5)*this.Ub.x;l.y=(Math.random()-0.5)*this.Ub.y;for(var m=c.length;m--;)if(Vec2.ab(c[m],l)<48){k=j;break}}while(h--&&k);c.push(Vec2.create(l));h=(Math.random()-0.5)*this.exa;l=ig.t.af(sc.hha,d.x+l.x,d.y+l.y,d.z+h,{});l.Gra=j;l.b.Xh=0.25}c.length=
0}});ig.Ha.SHOOT_BUBBLE=ig.Pa.extend({r:s,offset:s,align:s,speed:s,kr:s,lga:s,s:new ig.u({attributes:{offset:{c:"Offset",d:"Offset relative to entity ground center from which to shoot"},align:{c:"String",d:"Alignment relative to entity from which to shoot",Y:ig.Rb},duration:{c:"Number",d:"Time in seconds until bubble explodes",ub:3}}}),f:function(a){this.offset=a.offset;this.align=ig.Rb[a.align]||ig.Rb.BOTTOM;this.r=new ig.$("media/entity/objects/object-effects.png");this.duration=a.duration||3},
Qa:function(){this.r.zc()},start:function(b){var c=b.je(this.align,a);this.offset&&Vec3.add(c,this.offset);ig.t.af(sc.Sja,c.x,c.y,c.z,{combatant:b.Bi(),target:b.target,targetTime:this.duration})}});ig.Ha.SET_ELEMENT_POLE_TIMER=ig.Pa.extend({s:new ig.u({attributes:{time:{c:"Number",d:"Minimum time that currently targeted element pole should have, if temporary"}}}),f:function(a){this.time=a.time},start:function(a){(a=a.Yp)&&a instanceof ig.ya.ElementPole&&a.Wq(this.time)}})});ig.G=j;
ig.I("game.feature.puzzle.plug-in").J("game.feature.puzzle.components.push-pullable","game.feature.puzzle.entities.block","game.feature.puzzle.entities.blockers","game.feature.puzzle.entities.bomb","game.feature.puzzle.entities.water-bubble","game.feature.puzzle.entities.water-block","game.feature.puzzle.entities.ice-disk","game.feature.puzzle.entities.key-panel","game.feature.puzzle.entities.ball-changer","game.feature.puzzle.entities.walls","game.feature.puzzle.entities.glowing-line","game.feature.puzzle.entities.lorry",
"game.feature.puzzle.entities.one-time-switch","game.feature.puzzle.entities.floor-switch","game.feature.puzzle.entities.multi-hit-switch","game.feature.puzzle.entities.bounce-switch","game.feature.puzzle.entities.thermo-pole","game.feature.puzzle.entities.push-pull-block","game.feature.puzzle.entities.push-pull-dest","game.feature.puzzle.entities.sliding-block","game.feature.puzzle.entities.switch","game.feature.puzzle.entities.destructible","game.feature.puzzle.entities.item-destruct","game.feature.puzzle.entities.regen-destruct",
"game.feature.puzzle.entities.extract-platform","game.feature.puzzle.entities.dynamic-platform","game.feature.puzzle.entities.ol-platform","game.feature.puzzle.entities.enemy-counter","game.feature.puzzle.entities.group-switch","game.feature.puzzle.entities.chest","game.feature.puzzle.entities.quick-sand","game.feature.puzzle.entities.steam-pipes","game.feature.puzzle.puzzle-steps").H(function(){window.Yc&&wm.pj.push("game.feature.puzzle.editors.puzzle-editors")});ig.G=j;
ig.I("game.feature.menu.menu-steps").J("impact.base.utils","impact.base.event","impact.base.action","game.feature.menu.menu-model","game.feature.menu.map-model","game.feature.menu.lore-model").H(function(){ig.ma.UNLOCK_LORE=ig.na.extend({ud:s,DP:w,s:new ig.u({attributes:{ud:{c:"LoreSelect",d:"Lore to unlock. Unlocks ALL entries "},DP:{c:"Boolean",d:"True if notification should be displayed",ub:w}}}),f:function(a){this.ud=a.lore;this.DP=a.notify||w},start:function(){sc.ud.L6(this.ud,this.DP)}});ig.ma.UNLOCK_LORE_ALL=
ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){if(window.aj)for(var a in sc.ud.Tk)sc.ud.L6(a)}});ig.ma.UNLOCK_LORE_FIRST_TIME=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.ud.Hdb()}});ig.ma.UNLOCK_LORE_ENTRY=ig.na.extend({ud:s,Zz:s,DP:w,s:new ig.u({attributes:{ud:{c:"LoreSelect",d:"Lore to the entry is associated with",Ah:"Lore"},Zz:{c:"LoreEntrySelect",d:"The entry to unlock"},DP:{c:"Boolean",d:"True if notification should be displayed",ub:w}}}),f:function(a){this.ud=
a.lore;this.Zz=a.entry;this.DP=a.notify||w},start:function(){sc.ud.rSa(this.ud,this.Zz,this.DP)}});ig.ma.ACTIVATE_LANDMARK=ig.na.extend({Ub:s,yo:s,s:new ig.u({attributes:{Ub:{c:"Area",d:"Area to select landmark from",Y:"areas",Ah:"Area"},yo:{c:"Landmarks",d:"Landmark to activate"}}}),f:function(a){this.Ub=a.area;this.yo=a.landmark},start:function(){sc.map.SEa(this.yo,this.Ub)}});ig.ma.OPEN_SHOP=ig.na.extend({S5:s,s:new ig.u({attributes:{S5:{c:"Shop",d:"The Shop to access. Below you can see the content",
Ah:"Shop"}}}),f:function(a){this.S5=a.shop||s},start:function(){sc.e.lL=this.S5;sc.e.yQ(j,sc.Cd.rM);sc.q.Ex(j);sc.q.KK=sc.Yf.fv}})});ig.G=j;
ig.I("game.feature.menu.plug-in").J("game.feature.menu.area-loadable","game.feature.menu.menu-steps","game.feature.menu.gui.menu-misc","game.feature.menu.gui.base-menu","game.feature.menu.gui.main-menu","game.feature.menu.gui.start-menu","game.feature.menu.gui.equip.equip-menu","game.feature.menu.gui.list-boxes","game.feature.menu.gui.circuit.circuit-menu","game.feature.menu.gui.circuit.circuit-misc","game.feature.menu.gui.item.item-menu","game.feature.menu.gui.map.map-menu","game.feature.menu.gui.social.social-menu",
"game.feature.menu.gui.save.save-menu","game.feature.menu.gui.options.options-menu","game.feature.menu.gui.shop.shop-menu","game.feature.menu.gui.synop.synop-menu","game.feature.menu.gui.quests.quest-menu","game.feature.menu.gui.enemies.enemy-menu","game.feature.menu.gui.lore.lore-menu","game.feature.menu.gui.help.help-menu","game.feature.menu.gui.status.status-menu","game.feature.menu.gui.museum.museum-menu","game.feature.menu.gui.stats.stats-menu","game.feature.menu.gui.trophy.trophy-menu","game.feature.menu.gui.trade.trader-menu",
"game.feature.menu.menu-model","game.feature.menu.lore-model").H(function(){if(window.Yc){wm.Vs&&(wm.Vs.area={c:"String",Y:"areas",d:"Area of the map."});wm.pj.push("game.feature.menu.editors.area-editors");wm.pj.push("game.feature.menu.editors.lore-editors");wm.pj.push("game.feature.menu.editors.shop-editors");wm.fo(/LORE/,"orange")}});ig.G=j;
ig.I("game.feature.quick-menu.gui.quick-item-menu").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.interact.button-group","game.feature.menu.gui.list-boxes","game.feature.menu.gui.menu-misc").H(function(){var a=Vec2.pc(0,0);sc.Mia=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR}},Dd:w,yi:w,s0:w,f:function(){this.parent();this.v(9,15);this.j("DEFAULT")},
cB:function(a,c,d,e,h){this.l(a,c);this.Dd=d||w;this.yi=e||w;this.s0=h||w},va:function(a){a.ia(this.r,0,0,this.s0?444:434,337,9,15,this.Dd,this.yi)}});sc.QZa=ig.te.extend({r:new ig.$("media/gui/basic.png"),eb:new ig.$b("media/gui/menu.png",{width:8,height:8,left:8,top:8,right:8,bottom:8,Fb:{"default":{x:432,y:304},flipped:{x:456,y:304}}}),N:{HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR}},Mb:s,anchor:s,list:s,Ig:s,Ba:s,ng:j,f:function(a,c){this.parent(175,
147);this.Mb=a.a;this.anchor=c.a;this.Ba=new sc.Wf(w,ig.mr.AE);this.Ba.si(this.m4.bind(this));this.Ba.tk(this.rsa.bind(this));this.Ba.Bk(function(){sc.ib.tc("",j);sc.ib.cm("",j)}.bind(this));sc.K.Na(sc.ib,this);this.list=new sc.jH(1,0,20);this.list.Q=sc.ib.Q;this.list.l(2,13);this.list.v(171,123);this.list.E5(this.Ba);this.list.yX=w;this.m(this.list);var d=new sc.ea(ig.lang.get("sc.gui.menu.select"),{speed:ig.rd.Nd.We,font:sc.Ka.Lb});d.l(8,6);this.m(d);d=new sc.ea(ig.lang.get("sc.gui.menu.quantity"),
{speed:ig.rd.Nd.We,font:sc.Ka.Lb});d.l(6,6);d.F(ig.k.ha,ig.k.W);this.m(d);var d=sc.q.R.ba,e={size:sc.uf.KB,color:sc.ef.qr};this.zo=new sc.Ib(4,e);this.zo.F(ig.k.ha,ig.k.xb);this.zo.l(6,3);this.zo.sa(d.zo);this.m(this.zo);this.rx=new sc.Ib(4,e);this.rx.F(ig.k.ha,ig.k.xb);this.rx.l(20,3);this.rx.sa(d.zr.length);this.m(this.rx);d=new ig.Dc(this.r,208,18,5,5);d.F(ig.k.ha,ig.k.xb);d.l(14,4);this.m(d);d=new sc.ea(ig.lang.get("sc.gui.menu.item.buff")+":",{font:sc.Ka.Lb});d.F(ig.k.ha,ig.k.xb);d.l(28,2);this.m(d);
this.Ig=new sc.Mia;this.m(this.Ig);this.j("HIDDEN",j)},update:function(){if(this.a.Il&&(this.Ba.Tc()&&!ig.ua.Ph())&&sc.V.Bo()){sc.qd.back.play();sc.ib.$na()}},va:function(a){this.parent(a);a.Ec("#7E7E7E",2,135,171,1)},yR:function(a){var c=this.list.CJ(),d=this.Ba.Ea.y;if(!sc.options.get("quick-cursor"))d=c=0;this.Ba.clear();this.list.clear(j);for(var e=sc.q.R,h=e.apa(sc.Hm.CONS,sc.ih.ORDER,j),k=s,l=k=s,m=s,n=0,o=0,t=0;t<h.length;t++){o=e.rc[h[t]]||0;n++;m=sc.Pb.getItem(h[t]);new ig.Oa(m.name);k="\\i["+
(m.icon+sc.Pb.uo(m.rarity||0)||"item-default")+"]"+ig.Oa.wc(m.name);l=ig.Oa.wc(m.description);k=new sc.AB(k,142,26,o||1,h[t],l,g,g);m.isBuff&&sc.q.R.ba.GJa()&&k.setActive(w);e.vV(h[t])&&this.m5a(k);this.list.Rd(k)}this.list.el=d;d=Math.min(d,Math.max(0,n-1));ig.input.dd?this.Ba.Mj(0,d):this.Ba.yf(0,d,w,a);this.list.zG(c,j)},show:function(){if(this.ng){this.ng=w;this.yR(j);var b=this.a;a.x=this.Mb.i.x+this.anchor.i.x+Math.floor(this.anchor.size.x/2);a.y=this.Mb.i.y+this.anchor.i.y+Math.floor(this.anchor.size.y/
2);var c=a.y+-46;a.y=Math.max(10,Math.min(ig.g.height-137-10-22,a.y+-46));b.i.y=a.y;if(a.x+240<ig.g.width){this.Nk="default";b.i.x=a.x+27+30;b.bd(a.x+27,a.y,0.2,KEY_SPLINES.EASE_OUT);this.Ig.cB(-10,42+(c-a.y),w)}else{this.Nk="flipped";b.i.x=a.x-b.size.x-27-30-1;b.bd(a.x-b.size.x-27-1,a.y,0.2,KEY_SPLINES.EASE_OUT);this.Ig.cB(b.size.x+1,42+(c-a.y),j)}b=sc.q.R.ba;this.zo.sa(b.zo);this.rx.sa(b.zr.length);ig.ua.ed(0.2);this.list.vf(sc.ib.Q);this.j("DEFAULT")}},hide:function(){if(!this.ng){this.ng=j;this.list.xi(sc.ib.Q);
this.j("HIDDEN")}},m5a:function(a){var c=new ig.Dc(this.eb.r,256,480,19,17);c.l(0,0);a.m(c)},m4:function(a){sc.ib.tc(a.data.description);a.data.id&&(sc.Pb.rV(a.data.id)?sc.ib.cm(sc.Pb.S1(a.data.id)):sc.ib.cm("",w))},rsa:function(a){if(a.data&&(!sc.Pb.rV(a.data.id)||!sc.q.R.ba.GJa())){ig.t.wb.Rwa(a.data.id);sc.ib.Dfa=j;sc.q.Ir()}},lb:function(a,c){a==sc.ib&&(c==sc.qi.vM?sc.ib.aLa()?this.show():this.hide():c==sc.qi.YL&&this.hide())}})});ig.G=j;
ig.I("game.feature.quick-menu.gui.quick-misc").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.gui.base.numbers","game.feature.combat.combat","game.feature.menu.gui.enemies.enemy-pages","game.feature.quick-menu.gui.quick-item-menu").H(function(){var a=Vec2.pc(0,0),b=[1,1,1,1];sc.Kia={};sc.PZa=ig.X.extend({wg:{},Yfa:[],f:function(){this.parent()},zgb:function(a){if(sc.Kia[a]&&!this.wg[a]){var b=new sc.Kia[a];this.wg[a]=b;this.m(b)}},$Ea:function(a){if(a){this.Yfa.push(a);
this.SC(a,1)}},show:function(a,b,e){(a=this.wg[a])&&(!a.a.Il&&!a.Os())&&a.show(b,e)},hide:function(a){var b=this.wg[a];b&&b.a.Il&&this.wg[a].hide()},hhb:function(){for(var a=this.Yfa.length;a--;)this.Yfa[a].remove();this.Yfa.length=0},reset:function(){for(var a in this.wg)this.wg[a].hide(j)}});sc.Kia.Enemy=ig.te.extend({eb:new ig.$b("media/gui/menu.png",{width:8,height:8,left:8,top:8,right:8,bottom:8,Fb:{"default":{x:432,y:304},flipped:{x:456,y:304}}}),N:{HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},
DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE}},title:s,Ig:s,WE:s,TE:s,UE:s,VE:s,RA:s,anchor:s,hf:s,f:function(){this.parent(127,140);this.title=new sc.ea("");this.title.F(ig.k.za,ig.k.W);this.title.l(0,1);this.m(this.title);var a=21;this.WE=this.Qt("maxhp",0,4,a);a=a+14;this.TE=this.Qt("atk",1,4,a);a=a+14;this.UE=this.Qt("def",2,4,a);a=a+14;this.VE=this.Qt("foc",3,4,a);a=a+18;this.RA=new sc.qya;this.RA.l(4,a);this.m(this.RA);this.Ig=new sc.Mia;this.m(this.Ig);this.j("HIDDEN",j)},va:function(a){this.parent(a);
a.Ec("#CCCCCC",3,this.title.a.size.y+1,121,1)},show:function(a){this.I5a(a.a);this.setData(a.P.np);this.j("DEFAULT")},hide:function(a){this.j("HIDDEN",a)},setData:function(a){var d=sc.pb.zC[a];this.title.fa(sc.pb.Voa(a));this.RA.hide();if(d.params){a=d.params;this.WE.sa(a.hp,j);this.TE.sa(a.attack,j);this.UE.sa(a.defense,j);this.VE.sa(a.focus,j);this.RA.gQa(a.elemFactor||b,j)}},Qt:function(a,b,e,h){a=new sc.Dha(ig.lang.get("sc.gui.menu.equip."+a),b);a.l(e,h);this.m(a);return a},I5a:function(b){var d=
this.a;a.x=b.i.x+Math.floor(b.size.x/2);a.y=b.i.y+Math.floor(b.size.y/2);b=a.y+-46;a.y=Math.max(10,Math.min(ig.g.height-140-10,a.y+-46));d.i.y=a.y;var e=38+(b-a.y);if(a.x+173<ig.g.width){this.Nk="default";d.i.x=a.x+20+10;d.bd(a.x+20,a.y,0.2,KEY_SPLINES.EASE);this.Ig.cB(-10,Math.max(7,Math.min(125,e)),w)}else{this.Nk="flipped";d.i.x=a.x-d.size.x-20-10-1;d.bd(a.x-d.size.x-20-1,a.y,0.2,KEY_SPLINES.EASE);this.Ig.cB(d.size.x+1,Math.max(7,Math.min(125,38+(b-a.y))),j)}this.Ig.s0=w;this.Ig.yi=w;if(e<7){this.Ig.s0=
j;this.Ig.yi=j}else if(e>125)this.Ig.s0=j}});sc.iAa=ig.X.extend({eb:new ig.$b("media/gui/menu.png",{width:4,height:4,left:4,top:4,right:4,bottom:4,Fb:{"default":{x:480,y:126}}}),name:s,DI:Vec2.pc(0,0),f:function(a,b,e){this.parent();this.name=new sc.ea(a,{font:sc.Ka.Lb,maxWidth:e||0});this.name.l(4,1);this.m(this.name);this.v(this.name.a.size.x+7,b?this.name.a.size.y+1:9)},va:function(a){this.eb.Xa(a,this.a.size.x,this.a.size.y,"default");a.ia(this.eb.r,this.a.size.x/2-1.5-this.DI.x,this.DI.y<0?-2:
this.a.size.y-1,480,122,3,3,w,this.DI.y<0?j:w)},cB:function(b,d){var e=b.kf;if(e){var h=this.a;a.x=e.x+b.size.x/2-h.size.x/2;a.y=e.y-(d.b.size.y+14);if(a.x<0){a.x=a.x*-1;a.x=a.x+1;this.DI.x=Math.max(4,Math.min(h.size.x-4,a.x))}else if(a.x+h.size.x>ig.g.width){a.x=ig.g.width-(a.x+h.size.x+1);this.DI.x=-Math.max(4,Math.min(h.size.x-4,-a.x))}else{a.x=0;this.DI.x=0}if(a.y<0){this.DI.y=-1;a.y=d.b.size.y+6;this.jL("HIDDEN","offsetY",-8)}else{a.y=-(d.b.size.y+14);this.DI.y=0;this.jL("HIDDEN","offsetY",8)}this.l(this.kb(b)+
a.x,b.i.y+a.y)}},kb:function(a){return a.i.x+a.size.x/2-this.a.size.x/2}});sc.OZa=ig.X.extend({eb:new ig.$b("media/gui/menu.png",{width:4,height:0,left:4,top:9,right:4,bottom:0,Fb:{"default":{x:480,y:112}}}),p3:s,Ana:0,Hc:s,Drb:w,f:function(a){this.parent();this.v(32,9);this.Ana=this.$6a(a);this.p3=new sc.Ib(99,{leadingZeros:2,size:sc.uf.KB,color:this.Ana});this.p3.F(ig.k.ha,ig.k.W);this.p3.l(4,2);this.m(this.p3);this.p3.sa(sc.pb.BIa(a)||1)},update:function(){if(this.Hc){this.Hc.n=this.Hc.n+ig.g.Da;
var a=Math.min(1,Math.max(0,this.Hc.n)/this.Hc.time),a=this.Hc.p.get(a);this.a.size.x=Math.round(this.Hc.cR*(1-a)+this.Hc.width*a);this.a.size.y=Math.round(this.Hc.Dw*(1-a)+this.Hc.height*a);if(a==1)this.Hc=s}},va:function(a){this.eb.Xa(a,this.a.size.x,this.a.size.y,"default");a.ia(this.eb.r,this.a.size.x/2-1.5,this.a.size.y-1,480,122,3,3);a.ia(this.eb.r,this.a.size.x-27,2,493,112+this.Ana*6,9,5)},Bq:function(a,b,e,h,k){if(e)this.Hc={cR:this.a.size.x,width:a||0,Dw:this.a.size.y,height:b||0,time:e,
p:h||KEY_SPLINES.EASE,n:0-(k||0)};else{this.a.size.x=a;this.a.size.y=b}},$6a:function(a){a=(sc.pb.BIa(a)||1)-sc.q.R.aa;return a>=3?sc.ef.hm:a<=-2?sc.ef.uH:sc.ef.$o}})});ig.G=j;
ig.I("game.feature.quick-menu.gui.quick-screen-types").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","impact.feature.interact.gui.focus-gui","game.feature.gui.base.numbers","game.feature.combat.combat","game.feature.quick-menu.gui.quick-misc").H(function(){var a=Vec2.pc(0,0);sc.xZ={};sc.$u={RED:0,BLUE:1,GREEN:2,ORANGE:3,YELLOW:4,GREY:5,PURPLE:6};sc.hz={DEFAULT:0,INSTANT:1};sc.Nia=ig.Vn.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE},
HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},type:s,P:s,screen:s,Iv:j,CD:sc.hz.DEFAULT,color:sc.$u.GREY,Ry:s,ys:0,f:function(a,c,d){this.parent(j,w);this.type=a||s;this.P=c.P;this.screen=d;this.screen.zgb(a);this.a.gL(j);this.Ry=new ig.Dc(this.r,504+this.color*14,144,13,13);this.Ry.F(ig.k.za,ig.k.gb);this.Ry.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}};this.m(this.Ry);this.Ry.j("HIDDEN",j);this.v(16,16);this.j("HIDDEN",j)},
update:function(){this.Os()&&this.a.fj=="HIDDEN"&&this.d0();if(this.Iv&&this.ys<0.5){this.ys=this.ys+ig.g.Da;if(this.ys>=0.5)this.ys=0}},va:function(a){var c=this.ys/0.5;a.ho().rb(8,8).tw(0.8+c,0.8+c);a.ia(this.r,0,0,504,120,15,15).wd(this.Ry.a.Id.alpha*(1-c));a.Po()},v:function(a,c){this.parent(a,c)},PF:function(){if(sc.ib.lca()&&!ig.ua.Ph()&&this.Iv&&sc.ib.ecb()){if(ig.input.bb==ig.Gb.Jc){if(sc.ib.V0){sc.ib.fl==this&&this.screen.hide(this.type);sc.ib.Bga(this);return w}if(Math.floor(Vec2.k1(sc.ib.cursor.x,
sc.ib.cursor.y,this.a.i.x+Math.floor(this.a.size.x/2),this.a.i.y+Math.floor(this.a.size.y/2)))<=10){var a=this.a;sc.ib.NHa(a.i.x+Math.floor(a.size.x/2),a.i.y+Math.floor(a.size.y/2),this,j);sc.ib.fl==this&&this.screen.show(this.type,this)}else{sc.ib.fl==this&&this.screen.hide(this.type);sc.ib.Bga(this)}}else if(ig.input.bb==ig.Gb.gm){var c=Math.floor(sc.V.to()),d=Math.floor(sc.V.Vm()),a=this.a;if(c=c>=a.i.x&&c<=a.i.x+a.size.x&&d>=a.i.y&&d<=a.i.y+a.size.y){sc.ib.fl&&sc.ib.fl!=this&&sc.ib.Bga(sc.ib.fl);
sc.ib.NHa(a.i.x+Math.floor(a.size.x/2),a.i.y+Math.floor(a.size.y/2),this);this.screen.show(this.type,this)}else{sc.ib.fl==this&&this.screen.hide(this.type);sc.ib.Bga(this)}return c}return w}},Pl:function(){this.parent()},zg:function(){this.parent()},OPa:function(a){this.color=a||0;this.Ry.offsetX=504+this.color*14},show:function(a){this.j("DEFAULT",a);this.CD==sc.hz.INSTANT&&this.Ry.j("DEFAULT")},hide:function(a){this.j("HIDDEN",a);this.CD==sc.hz.INSTANT&&this.Ry.j("HIDDEN")},d0:function(b,c){if(this.P){var d=
this.a,e=this.P.b;ig.g.Kv(a,Math.round(e.i.x+e.size.x/2),Math.round(e.i.y-e.i.z-e.size.z/2+e.size.y/2));d.i.x=a.x-d.size.x/2+(b|0);d.i.y=a.y-d.size.y/2+(c|0)+4}},bsa:function(){this.ys=-0.1;this.CD==sc.hz.DEFAULT&&this.Ry.j("DEFAULT");this.Ry.j("DEFAULT")},Dda:function(){this.CD==sc.hz.DEFAULT&&this.Ry.j("HIDDEN");sc.ib.fl==this&&this.screen.hide(this.type)}});sc.xZ.Analyzable=sc.Nia.extend({ee:s,P7a:w,f:function(a,c,d){this.parent(a,c,d);this.OPa(c.color);this.CD=c.showType||0;if(a=ig.Oa.wc(c.text)){c.visible&&
((new ig.ce(c.visible)).evaluate()||(a="???"));this.ee=new sc.iAa(a,j,200);this.ee.rb(this.ee.a.size.x/2,0);this.ee.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,Ia:0.3,offsetY:8},time:0.2,p:KEY_SPLINES.LINEAR}};this.ee.j("HIDDEN",j);this.screen.$Ea(this.ee)}else this.Iv=w},bsa:function(){if(this.ee){this.ee.cB(this.a,this.P);this.parent()}},Dda:function(){if(this.ee){this.parent();this.ee.j("HIDDEN")}},Pl:function(){this.ee&&this.ee.j("DEFAULT")},zg:function(){this.ee&&
this.ee.j("HIDDEN")},d0:function(){this.parent();this.ee&&this.ee.cB(this.a,this.P)}});sc.xZ.NPC=sc.Nia.extend({color:sc.$u.BLUE,ee:s,P7a:w,f:function(a,c,d){this.parent(a,c,d);a=s;c=this.P;if(c.kh)a=ig.Oa.wc(c.kh);else if(c.Nc.data.name)a=ig.Oa.wc(c.Nc.data.name,j);else if(c.oaa)a=c.oaa;if(c.tm[c.$w])switch(c.tm[c.$w].hD){case sc.Sw.VH:this.color=sc.$u.GREEN;a=a?ig.lang.get("sc.gui.trade.trader")+": "+a:ig.lang.get("sc.gui.trade.trader");break;case sc.Sw.rM:this.color=sc.$u.GREEN;a=a?ig.lang.get("sc.gui.trade.shop")+
": "+a:ig.lang.get("sc.gui.trade.shop");break;case sc.Sw.Fia:this.CD=sc.hz.INSTANT;this.color=sc.$u.PURPLE;a=a?ig.lang.get("sc.gui.trade.quest")+": "+a:ig.lang.get("sc.gui.trade.quest")}this.OPa(this.color);if(a){c.fU&&((new ig.ce(c.fU)).evaluate()||(a="???"));this.ee=new sc.iAa(a);this.ee.rb(this.ee.a.size.x/2,0);this.ee.a.N={DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,Ia:0.3,offsetY:8},time:0.2,p:KEY_SPLINES.LINEAR}};this.ee.j("HIDDEN",j);this.screen.$Ea(this.ee)}else this.Iv=
w},bsa:function(){if(this.ee){this.ee.cB(this.a,this.P);this.parent()}},Dda:function(){if(this.ee){this.parent();this.ee.j("HIDDEN")}},Pl:function(){this.ee&&this.ee.j("DEFAULT")},zg:function(){this.ee&&this.ee.j("HIDDEN")},d0:function(){this.parent();this.ee&&this.ee.cB(this.a,this.P)}});sc.xZ.Enemy=sc.Nia.extend({color:sc.$u.RED,aa:s,f:function(a,c,d){this.parent(a,c,d);this.aa=new sc.OZa(this.P.np);this.aa.F(ig.k.za,ig.k.gb);this.m(this.aa)},d0:function(){this.parent();this.aa.l(0,-(this.P.b.size.y+
9))}})});ig.G=j;
ig.I("game.feature.quick-menu.gui.quick-screen").J("impact.base.image","impact.feature.gui.gui","game.feature.quick-menu.gui.quick-screen-types","game.feature.menu.gui.menu-misc","game.feature.quick-menu.gui.quick-misc").H(function(){sc.TZa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR}},focusOffset:{x:0,y:0},focus:w,Mf:0,mg:0,Ug:0,Lh:0,Qj:w,f:function(){this.parent();this.v(23,23)},ac:function(){sc.K.Na(sc.ib,
this)},Yb:function(){sc.K.lc(sc.ib,this)},update:function(){if(this.Lh!=ig.input.bb){this.Qj=ig.input.bb==ig.Gb.Jc;this.Lh=ig.input.bb}if(this.Mf<this.mg){this.Mf=this.Mf+ig.g.ga;if(this.Mf>=this.mg){this.Mf=this.mg;this.Ug=this.focus?2:0}else this.Ug=Math.floor((this.mg?1:-1)*(this.Mf/this.mg)*2)}},va:function(a){this.focus?a.ia(this.r,-1,-1,512+(this.focus?24:0),160,23,23):this.Qj&&a.ia(this.r,-1,-1,512+(this.focus?24:0),160,23,23)},Ks:function(a,b){this.l(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/
2)-this.focusOffset.y);this.focus=j;this.Mf=0;this.mg=0.2;this.Ug=0},$p:function(){this.focus=w;this.mg=this.Mf=0.2;this.Ug=0},moveTo:function(a,b,c,d){c&&ig.input.bb==ig.Gb.Jc?this.bd(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2)-this.focusOffset.y,d,KEY_SPLINES.EASE):this.l(a-Math.floor(this.a.size.x/2),b-Math.floor(this.a.size.y/2)-this.focusOffset.y);if(this.focus){this.Mf=0;this.mg=0.2;this.Ug=3;this.focus=w}},lb:function(a,b){if(a==sc.ib)if(b==sc.qi.Pya){this.mg=this.Mf=0.2;this.Ug=
0}else b==sc.qi.Aya?this.Ks(sc.ib.cursor.x,sc.ib.cursor.y):b==sc.qi.xBa?this.$p():b==sc.qi.jya&&(this.focus||this.Ks(sc.ib.cursor.x,sc.ib.cursor.y))}});sc.SZa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}},ka:s,cursor:s,entities:[],PJ:s,H1:s,FN:[],background:s,Bh:Vec2.pc(-1E4,-1E4),boa:w,f:function(){this.parent();this.v(ig.g.width,ig.g.height);sc.K.Na(sc.ib,this);this.ka=new sc.W7;this.ka.UO=
j;this.ka.si(F().bind(this));this.ka.Bk(F().bind(this));if(!this.constructor.Km)this.constructor.Km=this.r.createPattern(512,352,64,64,ig.ue.Pf.gz);this.background=new ig.X;this.background.a.N={DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR},HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR}};this.background.va=function(a){a.Rj(this.constructor.Km,0,0,0,0,this.a.size.x,this.a.size.y).dh("lighter")}.bind(this);this.background.j("HIDDEN",j);this.m(this.background);this.O$();this.O$(j);this.O$(w,
j);this.O$(j,j);this.PJ=new ig.X;this.PJ.v(ig.g.width,ig.g.height);this.m(this.PJ);this.cursor=new sc.TZa;this.cursor.j("HIDDEN",j);this.m(this.cursor);this.H1=new sc.PZa;this.m(this.H1)},update:function(){sc.ib.V0=w;if(this.a.Il&&this.ka.Tc()&&!ig.ua.Ph())if(sc.V.Bo()){sc.qd.back.play();sc.ib.$na()}else{if(sc.ib.k3!=ig.input.bb){sc.ib.k3=ig.input.bb;sc.ib.P1=ig.input.bb==ig.Gb.Jc;var a=s;if(ig.input.bb==ig.Gb.Jc){console.log("test 2");a=this.Bh;this.oV(a);sc.ib.cursor.x=a.x;sc.ib.cursor.y=a.y;this.by();
sc.ib.NOa();this.cursor.moveTo(sc.ib.cursor.x,sc.ib.cursor.y)}else if(ig.input.bb==ig.Gb.gm){this.Bh.x=sc.ib.cursor.x;this.Bh.y=sc.ib.cursor.y;this.cursor.$p()}sc.ib.Bkb()}if(ig.input.bb==ig.Gb.Jc){var b=a=0,c=0,d=w;if((c=sc.V.ke(ig.Pc.El))<-0.5){a=(-100+c*100)*ig.g.Da;d=j}else if((c=sc.V.ke(ig.Pc.El))>0.5){a=(100+c*100)*ig.g.Da;d=j}if((c=sc.V.ke(ig.Pc.Fl))<-0.5){b=(-100+c*100)*ig.g.Da;d=j}else if((c=sc.V.ke(ig.Pc.Fl))>0.5){b=(100+c*100)*ig.g.Da;d=j}if(d){sc.ib.V0=j;sc.ib.cursor.x=a>=0?Math.floor(sc.ib.cursor.x+
a):Math.ceil(sc.ib.cursor.x+a);sc.ib.cursor.y=b>=0?Math.floor(sc.ib.cursor.y+b):Math.ceil(sc.ib.cursor.y+b);this.by();this.cursor.moveTo(sc.ib.cursor.x,sc.ib.cursor.y)}}}},show:function(){this.PJ.rg();this.entities.length=0;this.ka.clear();this.H1.hhb();for(var a=s,a=s,b=ig.t.Bm,c=b.length;c--;){var d=b[c];if(d&&d.uba&&ig.Oj.Tr(d,-d.b.size.x)){a=d.uba();if(sc.xZ[a.type]){a.P=d;a=new sc.xZ[a.type](a.type,a,this.H1);a.d0(0,0);this.PJ.m(a);a.show();this.entities.push(a);this.ka.Uc(a)}}}this.H1.reset();
this.j("DEFAULT")},hide:function(){for(var a=this.PJ.a.children.length;a--;){this.PJ.a.children[a].T.hide();this.PJ.a.children[a].qj=j}for(a=this.entities.length;a--;)this.entities[a].Dda();for(a=this.FN.length;a--;)this.FN[a].j("DEFAULT")},AC:function(){sc.ib.Q.Cg(this.ka);for(var a=this.entities.length;a--;){this.entities[a].zg();this.entities[a].bsa()}for(a=this.FN.length;a--;)this.FN[a].j("DEFAULT");sc.ib.NOa();this.cursor.ac();this.cursor.j("DEFAULT");if(sc.ib.k3!=ig.input.bb){sc.ib.P1=ig.input.bb==
ig.Gb.Jc;sc.ib.k3=ig.input.bb}this.d9a();ig.ua.ed(0.2);this.background.j("DEFAULT");this.boa=j},Ev:function(){this.cursor.$p();this.cursor.Yb();this.cursor.j("HIDDEN");for(var a=this.entities.length;a--;)this.entities[a].Dda();for(a=this.FN.length;a--;)this.FN[a].j("HIDDEN");this.background.j("HIDDEN");sc.ib.Q.Lj(this.ka);this.boa=w},d9a:function(){if(this.boa){var a=this.Bh;a.x=sc.ib.cursor.x;a.y=sc.ib.cursor.y;this.by();this.cursor.moveTo(sc.ib.cursor.x,sc.ib.cursor.y)}else if(ig.input.bb==ig.Gb.Jc){a=
this.Bh;this.oV(a);sc.ib.cursor.x=ig.g.width/2;sc.ib.cursor.y=ig.g.height/2;this.by();this.cursor.moveTo(sc.ib.cursor.x,sc.ib.cursor.y)}},oV:function(a){if(a.x<=-1E4||a.y<=-1E4){a.x=ig.g.width/2;a.y=ig.g.height/2}},by:function(){var a=sc.ib.cursor.x;sc.ib.cursor.x=a.Vb(1,ig.g.width-Math.floor(this.cursor.a.size.x/2)-1);a=sc.ib.cursor.y;sc.ib.cursor.y=a.Vb(1,ig.g.height-this.cursor.a.size.y-1)},O$:function(a,b){var c=new ig.Dc(this.r,512,280,104,65);c.F(a?ig.k.ha:ig.k.fb,b?ig.k.xb:ig.k.W);c.a.N={DEFAULT:{state:{},
time:0.2,p:KEY_SPLINES.EASE},HIDDEN:{state:{alpha:0,offsetX:-20},time:0.2,p:KEY_SPLINES.LINEAR}};c.j("HIDDEN",j);c.Dd=a||w;c.yi=b||w;c.Ze="lighter";this.FN.push(c);this.m(c)},lb:function(a,b){a==sc.ib&&(b==sc.qi.vM?sc.ib.lca()?this.AC():this.Ev():b==sc.qi.YL&&this.Ev())}})});ig.G=j;
ig.I("game.feature.quick-menu.gui.circle-menu").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.interact.button-group").H(function(){var a=Vec2.pc(0,0);sc.d_a=ig.Vn.extend({r:new ig.$("media/gui/menu.png"),N:{HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR}},state:0,alpha:1,pq:0,Cx:Vec2.pc(0,0),origin:Vec2.pc(40,40),Eaa:Vec2.pc(0,0),data:s,dc:s,gl:s,f:function(a,c,d){this.parent(j,j);this.l(this.origin.x,
this.origin.y);this.v(32,32);this.rb(16,16);this.state=a;this.Cx.x=c;this.Cx.y=d;this.dc=sc.qd.submit;this.gl=sc.qd.xx},Vv:function(){this.parent();this.dc&&this.dc.play()},Pl:function(){this.parent();if(this.focus){this.pq=0;this.alpha=1}},update:function(){this.pq=(this.pq+ig.g.Da)%1;var a=this.pq/1,a=KEY_SPLINES.EASE_IN_OUT.get(1-(a>0.5?1-(a-0.5)*2:a*2));this.alpha=0.8*a+0.2},va:function(a){a.ia(this.r,0,0,400,304,32,32);this.Ga?this.focus?a.ia(this.r,0,0,400,336,32,32).wd(this.alpha):this.Bc&&
a.ia(this.r,0,0,400,336,32,32):this.focus&&a.ia(this.r,0,0,400,272,32,32);a.ia(this.r,8,8,432+(this.state-1)*16,352+(this.Ga?0:16),16,16)},show:function(a,c){c&&this.Ce(w);this.j("DEFAULT",w,w,s,a);this.bd(this.Cx.x,this.Cx.y,0.2,KEY_SPLINES.EASE_OUT,a)},hide:function(){this.zg();this.Ce(w);this.j("HIDDEN");this.bd(this.origin.x,this.origin.y,0.2,KEY_SPLINES.LINEAR)},vf:function(){this.j("DEFAULT");this.bd(this.Eaa.x,this.Eaa.y,0.1,KEY_SPLINES.LINEAR)},xi:function(){this.j("HIDDEN");this.zg();this.bd(this.Cx.x,
this.Cx.y,0.1,KEY_SPLINES.LINEAR)}});sc.OWa=ig.X.extend({N:{HIDDEN:{state:{alpha:0},time:0.1,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{},time:0.1,p:KEY_SPLINES.LINEAR}},Tc:j,Je:s,button:s,f:function(a){this.parent();this.v(32,32);this.button=a;this.Je=new sc.Ib(60,{leadingZeros:2,size:sc.uf.Ki,noZero:j,color:sc.ef.hm});this.Je.F(ig.k.za,ig.k.gb);this.Je.sa(0);this.m(this.Je)},update:function(){var a=sc.q.R;if(this.Tc){if(a.qu<=0){this.Tc=w;this.button.setActive(j)}}else if(a.qu>0){this.Tc=j;this.button.setActive(w)}this.Je.sa(Math.ceil(a.qu))}});
sc.UZa=ig.Wf.extend({Kb:{focus:new ig.da("media/sound/menu/menu-hover.ogg",0.9)},f:function(){this.parent();this.w5a(0,0)},qua:function(a,c,d,e){a&&this.Uc(a,0,1);c&&this.Uc(c,0,2);d&&this.Uc(d,0,3);e&&this.Uc(e,0,4)},Kn:function(){return sc.V.Xr()||sc.V.sA()||sc.V.UA()||sc.V.ls()||sc.V.Fr()},sF:function(a){if(!a){sc.V.Xr()&&this.rqa();this.Fba(1)&&sc.V.sA()?this.yf(0,1):this.Fba(2)&&sc.V.ls()?this.yf(0,2):this.Fba(3)&&sc.V.UA()?this.yf(0,3):this.Fba(4)&&sc.V.Fr()&&this.yf(0,4)}},yf:function(a,c,
d,e,h){if(!this.Q||!this.Q.qf)if(h||!(this.Ea.x==a&&this.Ea.y==c)){this.elements[this.Ea.x][this.Ea.y]&&this.elements[this.Ea.x][this.Ea.y].zg();this.Ea.x=a%this.elements.length;this.Ea.y=c%this.elements[this.Ea.x].length;e=e!=g?e:w;a=this.elements[this.Ea.x][this.Ea.y];a.Ij&&!this.TQ?a.Bc||!e&&this.Kb.focus&&this.Kb.focus.play():!e&&this.Kb.focus&&this.Kb.focus.play();a.Pl();d||this.nI(a)}},Fba:function(a){return this.elements[0][a]}});sc.XZa=ig.X.extend({r:new ig.$("media/gui/menu.png"),N:{HIDDEN:{state:{alpha:0,
Ia:0.5,Ma:0.5,oc:1},time:0.2,p:KEY_SPLINES.LINEAR},PRE_DEFAULT:{state:{alpha:0,Ia:0.5,Ma:0.5,oc:-1},time:0.2,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.EASE_OUT}},Ba:s,rc:s,map:s,Cb:s,Ca:s,oa:[],f:function(){this.parent();this.v(112,112);this.rb(56,56);sc.K.Na(sc.ib,this);this.Ba=new sc.UZa;this.Ba.tk(function(a){if(a.state!=g)switch(a.state){case sc.zj.cz:sc.ib.r8a();this.y9(a);break;case sc.zj.pi:this.y9();sc.e.yQ(j,sc.Cd.pi);sc.q.Ex(j);sc.q.KK=sc.Yf.fv;break;case sc.zj.CY:sc.ib.m8a();
this.y9();break;case sc.zj.KH:sc.ib.x8a();this.y9(a)}}.bind(this));this.j7a();this.j("HIDDEN",j)},update:function(){this.sk()},va:function(a){a.ia(this.r,16,16,320,288,80,80)},AC:function(){this.j("PRE_DEFAULT",j);this.j("DEFAULT");sc.q.mca()?this.map.setActive(j):this.map.setActive(w);sc.Dg.Tc()?this.rc.setActive(w):this.rc.setActive(j);!sc.q.R.Si(sc.hg.MENU_SOCIAL)||sc.Ca.Xe.length<=0?this.Ca.setActive(w):this.Ca.setActive(j);for(var a=this.oa.length;a--;)this.oa[a].show();this.sk();sc.ib.Q.Cg(this.Ba)},
Ev:function(){this.j("HIDDEN");for(var a=this.oa.length;a--;)this.oa[a].hide();sc.ib.Q.Lj(this.Ba)},show:function(){this.j("DEFAULT")},hide:function(){this.j("HIDDEN")},j7a:function(){for(var b=[],c=0;c<360;c=c+90){a.x=56-35*Math.sin(c*Math.PI/180);a.y=56-35*Math.cos(c*Math.PI/180);b.push({x:a.x,y:a.y})}this.rc=this.Q8("items",sc.zj.cz,b,0,1);this.Cb=this.Q8("analyze",sc.zj.CY,b,0,2);this.Ca=this.Q8("party",sc.zj.KH,b,0,3);this.map=this.Q8("map",sc.zj.pi,b,0,4);this.rc.m(new sc.OWa(this.rc));this.Ba.qua(this.Cb,
this.rc,this.map,this.Ca)},y9:function(){for(var a=this.oa.length;a--;)this.oa[a].zg()},Q8:function(a,c,d){var e=new sc.d_a(c,Math.floor(d[c-1].x-16)+1,Math.floor(d[c-1].y-16)+1);e.data=ig.lang.get("sc.gui.quick-menu.description."+a);e.Eaa.x=Math.floor(d[0].x-16)+1;e.Eaa.y=Math.floor(d[0].y-16)+5;this.m(e);return this.oa[c-1]=e},sk:function(){var b=ig.t.wb,c=this.a;if(b){b=b.b;ig.g.Kv(a,Math.round(b.i.x+b.size.x/2),Math.round(b.i.y-b.i.z-b.size.z/2+b.size.y/2));c.i.x=a.x-c.size.x/2;c.i.y=a.y-c.size.y/
2;c.i.x=Math.max(0,Math.min(ig.g.width-c.size.x,c.i.x));c.i.y=Math.max(0,Math.min(ig.g.height-c.size.y,c.i.y))}},E4a:function(a){var a=a-1,c=this.oa.length;if(this.oa[a]){for(;c--;)c!=a&&this.oa[c].xi();this.oa[a].vf()}else{for(;c--;)this.oa[c].show(0,j);sc.ib.vcb()&&!ig.input.dd&&(sc.ib.a5==sc.zj.cz?this.oa[0].Pl():sc.ib.a5==sc.zj.KH?this.oa[2].Pl():sc.ib.a5==sc.zj.CY&&this.Ba.yf(0,1,w,j,j))}},lb:function(a,c){if(a==sc.ib&&c==sc.qi.vM)if(sc.ib.lca())this.hide();else{this.show();this.E4a(sc.ib.Id)}}})});
ig.G=j;
ig.I("game.feature.quick-menu.gui.quick-party").J("impact.base.image","impact.feature.gui.gui","impact.feature.gui.base.basic-gui","game.feature.interact.button-group","game.feature.menu.gui.list-boxes","game.feature.menu.gui.menu-misc","game.feature.quick-menu.gui.quick-item-menu").H(function(){var a=Vec2.pc(0,0);sc.WZa=ig.te.extend({r:new ig.$("media/gui/basic.png"),eb:new ig.$b("media/gui/menu.png",{width:8,height:8,left:8,top:8,right:8,bottom:8,Fb:{"default":{x:432,y:304},flipped:{x:456,y:304}}}),
N:{HIDDEN:{state:{alpha:0},time:0.2,p:KEY_SPLINES.LINEAR},DEFAULT:{state:{},time:0.2,p:KEY_SPLINES.LINEAR}},Mb:s,anchor:s,list:s,Ig:s,T0:s,Ba:s,ng:j,f:function(a,c){this.parent(175,147);this.Mb=a.a;this.anchor=c.a;this.Ba=new sc.Wf(w,ig.mr.AE);this.Ba.si(this.m4.bind(this));this.Ba.tk(this.rsa.bind(this));this.Ba.Bk(function(){sc.ib.tc("",j);sc.ib.cm("",j)}.bind(this));sc.K.Na(sc.ib,this);this.list=new sc.jH(1,0,20);this.list.Q=sc.ib.Q;this.list.l(2,13);this.list.v(171,123);this.list.E5(this.Ba);
this.list.yX=w;this.m(this.list);var d=new sc.ea(ig.lang.get("sc.gui.quick-menu.select"),{speed:ig.rd.Nd.We,font:sc.Ka.Lb});d.l(8,6);this.m(d);this.T0=new sc.ea("boon",{speed:ig.rd.Nd.We,font:sc.Ka.Lb});this.T0.F(ig.k.ha,ig.k.xb);this.T0.l(5,2);this.m(this.T0);this.Ig=new sc.Mia;this.m(this.Ig);this.j("HIDDEN",j)},update:function(){if(this.a.Il&&(this.Ba.Tc()&&!ig.ua.Ph())&&sc.V.Bo()){sc.qd.back.play();sc.ib.$na()}},va:function(a){this.parent(a);a.Ec("#7E7E7E",2,this.a.size.y-12,171,1)},yR:function(a){var c=
this.list.CJ(),d=this.Ba.Ea.y;if(!sc.options.get("quick-cursor"))d=c=0;this.Ba.clear();this.list.clear(j);var e=sc.yia,h=s,k=h=s,l=0,m;for(m in e){h=ig.lang.get("sc.gui.quick-menu.strategy.buttons."+m);k=ig.lang.get("sc.gui.quick-menu.strategy.descriptions."+m);h=new sc.AB(h,165,0,-1,m,k,j);this.list.Rd(h);l++}this.v(175,l*21+23);this.list.v(171,l*21-1);this.list.el=d;d=Math.min(d,Math.max(0,l-1));ig.input.dd?this.Ba.Mj(0,d):this.Ba.yf(0,d,w,a);this.list.zG(c,j)},show:function(){if(this.ng){this.ng=
w;this.yR(j);var b=this.a;a.x=this.Mb.i.x+this.anchor.i.x+Math.floor(this.anchor.size.x/2);a.y=this.Mb.i.y+this.anchor.i.y+Math.floor(this.anchor.size.y/2);var c=a.y+-46;a.y=Math.max(10,Math.min(ig.g.height-137-10-22,a.y+-46));b.i.y=a.y;if(a.x+240<ig.g.width){this.Nk="default";b.i.x=a.x+27+30;b.bd(a.x+27,a.y,0.2,KEY_SPLINES.EASE_OUT);this.Ig.cB(-10,42+(c-a.y),w)}else{this.Nk="flipped";b.i.x=a.x-b.size.x-27-30-1;b.bd(a.x-b.size.x-27-1,a.y,0.2,KEY_SPLINES.EASE_OUT);this.Ig.cB(b.size.x+1,42+(c-a.y),
j)}b="\\c[3]"+ig.lang.get("sc.gui.quick-menu.current")+": ";b=b+(ig.lang.get("sc.gui.quick-menu.strategy.buttons."+sc.Ca.Xfa)+"\\c[0]");this.T0.fa(b);ig.ua.ed(0.2);this.list.vf(sc.ib.Q);this.j("DEFAULT")}},hide:function(){if(!this.ng){this.ng=j;this.list.xi(sc.ib.Q);this.j("HIDDEN")}},m4:function(a){sc.ib.tc(a.data.description)},rsa:function(a){if(a.data){console.log(a.data);sc.Ca.Pua(a.data.id);sc.ib.Dfa=j;sc.q.Ir()}},lb:function(a,c){a==sc.ib&&(c==sc.qi.vM?sc.ib.bLa()?this.show():this.hide():c==
sc.qi.YL&&this.hide())}})});ig.G=j;
ig.I("game.feature.quick-menu.gui.quick-menu").J("impact.base.image","impact.feature.gui.gui","game.feature.quick-menu.gui.quick-screen","game.feature.quick-menu.gui.circle-menu","game.feature.quick-menu.gui.quick-item-menu","game.feature.quick-menu.gui.quick-party","game.feature.menu.gui.menu-misc").H(function(){sc.RZa=ig.X.extend({XK:s,rc:s,M9:s,Ca:s,info:s,Ot:s,ti:s,f:function(){this.parent();this.v(ig.g.width,ig.g.height);this.rb(ig.g.width/2,ig.g.height/2);this.a.zIndex=1180;this.a.Ee=j;sc.K.Na(sc.q,
this);sc.K.Na(sc.ib,this);this.M9=new sc.SZa;this.m(this.M9);this.XK=new sc.XZa;this.m(this.XK);this.rc=new sc.QZa(this.XK,this.XK.rc);this.m(this.rc);this.Ca=new sc.WZa(this.XK,this.XK.rc);this.m(this.Ca);this.info=new sc.Wha;this.info.F(ig.k.fb,ig.k.xb);this.m(this.info);this.Ot=new sc.iha;this.info.m(this.Ot);this.j("DEFAULT")},$Ba:function(){return sc.V.Bo()},ska:function(){sc.ib.Jaa();sc.sm.j9a();sc.q.Mma();this.Ot.fa("");this.XK.AC();this.M9.show();ig.ua.ed(0.2)},LM:function(){sc.ib.Q.E0();
this.XK.Ev();this.M9.hide();this.info.j("HIDDEN");sc.ib.L8a();ig.ua.ed(0.2);sc.sm.l9a()},A4a:function(){sc.ib.aLa()||sc.ib.bLa()?this.info.j("DEFAULT"):this.info.j("HIDDEN")},lb:function(a,b,c){a==sc.q?b==sc.Le.jq&&(sc.q.yV()?this.ska():this.LM()):a==sc.ib&&(b==sc.qi.vM?this.A4a():b==sc.qi.bz?this.info.fa(sc.ib.Vx,c||w?0.5:0):b==sc.qi.AY&&this.Ot.fa(sc.ib.aF,c||w?0.5:0))}})});ig.G=j;
ig.I("game.feature.quick-menu.entities.analyzable").J("impact.base.entity","game.feature.quick-menu.gui.quick-screen-types").H(function(){var a={DEFAULT:{showType:sc.hz.DEFAULT,color:sc.$u.GREY},QUEST:{showType:sc.hz.INSTANT,color:sc.$u.PURPLE},SPECIAL:{showType:sc.hz.DEFAULT,color:sc.$u.YELLOW}};ig.ya.Analyzable=ig.gd.extend({s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",d:"Condition for Enemy to spawn",sd:j},Ynb:{c:"Select",d:"Type of the Analyzable",Y:a,ub:"DEFAULT"},visible:{c:"VarCondition",
d:'Condition to check if text is visible, if not "???" will be shown instead'},text:{c:"LangLabel",d:"Name to display above the entity",O8:j,mq:j,Oi:j}},label:R(""),Fj:j,hl:"rgba(0,255,0, 0.5)"}),color:sc.$u.GREY,text:s,visible:s,f:function(b,c,d,e){this.parent(b,c,d,e);this.b.type=ig.la.IGNORE;this.b.v(16,16,0);this.text=e.text||s;this.visible=e.visible||s;if(e.analType){this.color=a[e.analType].color||sc.$u.GREY;this.CD=a[e.analType].showType||sc.hz.DEFAULT}else{this.color=sc.$u[e.color]||sc.$u.GREY;
this.CD=e.showType?sc.hz[e.showType]:0}},uba:function(){return{type:"Analyzable",color:this.color,text:this.text,visible:this.visible,CD:this.CD}}})});ig.G=j;ig.I("game.feature.quick-menu.plug-in").J("game.feature.quick-menu.quick-menu-model","game.feature.quick-menu.gui.quick-menu","game.feature.quick-menu.gui.circle-menu","game.feature.quick-menu.gui.quick-item-menu","game.feature.quick-menu.entities.analyzable").H(function(){window.Yc&&wm.pj.push("game.feature.quick-menu.editors.quick-menu-editors")});
ig.G=j;
ig.I("game.feature.tutorial.input-forcer").J("impact.base.game","impact.feature.gui.gui").H(function(){sc.yWa=ig.X.extend({Ou:s,cV:s,N:{DEFAULT:{state:{alpha:1},time:0.1,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{alpha:0,Ia:1.5,Ma:1.5},time:0.1,p:KEY_SPLINES.EASE_OUT}},f:function(){this.parent();this.a.cr=j;this.v(ig.g.width,ig.g.height);this.rb(ig.g.width/2,ig.g.height/2);this.Ou=new sc.ea("",{maxWidth:300,textAlign:ig.Gg.vj.cq});this.Ou.F(ig.k.za,ig.k.gb);this.Ou.l(0,-64);this.m(this.Ou);this.cV=new sc.ea("",
{maxWidth:300,textAlign:ig.Gg.vj.cq});this.cV.F(ig.k.za,ig.k.gb);this.cV.l(0,64);this.m(this.cV)},show:function(a,b){this.Ou.fa(ig.Oa.wc(b.title));ig.input.bb==ig.Gb.Jc?this.cV.fa(ig.Oa.wc(b.eY)):this.cV.fa(ig.Oa.wc(b.fY));ig.T.Mc(this);this.j("HIDDEN",j);this.j("DEFAULT")},remove:function(){this.j("HIDDEN",w,j)}});sc.xWa=ig.sf.extend({YM:s,dga:{title:s,fY:s,eY:s},T:s,wk:w,nF:s,Gh:s,T2:w,Kb:{start:new ig.da("media/sound/hud/popup-2.ogg",1)},f:function(){this.parent("InputForcer");this.T=new sc.yWa},
H5:function(a,b,e,h){this.YM=sc.xH[a]||s;this.dga.title=b;this.dga.eY=h;this.dga.fY=e;this.update()},UC:M("wk"),N6a:function(){this.wk&&this.xCa();this.YM=s},Wqb:M("T2"),JK:10,BA:function(){this.update()},update:function(){if(this.YM){var a=this.YM.Cb();!a&&!this.wk?this.N4a():a&&this.wk&&this.xCa();if(a&&!this.YM.rca)this.YM=s;if(a)this.T2=j}else this.T2=w},N4a:function(){this.T.show(this.YM,this.dga);ig.it.add(0,0,"forceInput");ig.it.sO();ig.Yd.Gea();this.Kb.start.play();this.nF=new ig.$R(j);this.nF.Wua(s,
0.8,-1,0.2,0.2);ig.ph.$_(this.nF);this.wk=j;ig.t.wb.xk();this.Gh=new ig.Qw(ig.t.wb,ig.cl.L,0,0,-1,1,w);ig.ph.cx(this.Gh)},xCa:function(){ig.Yd.fea();ig.it.F0("forceInput",0);ig.it.sO();this.nF.stop();this.Gh.stop();this.wk=w;this.T.remove();var a=ig.t.wb;a.od&&a.od.Gx&&a.xk()}});ig.wf(function(){return sc.pV=new sc.xWa});sc.xH={};var a=Vec2.create(),b=Vec2.create();sc.xH.DODGE_RIGHT={Cb:function(){if(!sc.V.lna())return w;sc.V.$g(a,0,j);if(Vec2.Tl(a))return w;Vec2.Sa(b,1,0);return Vec2.oc(b,a)>Math.PI*
0.2?w:j},rca:w};sc.xH.ATTACK_LEFT={Cb:function(){return!sc.V.XHa()?w:j},rca:w};sc.xH.CHARGE_HOLD={Cb:function(){return!sc.V.td()?w:j},rca:j};sc.xH.CHARGE_RELEASE={Cb:function(){return sc.V.td()?w:j},rca:w}});ig.G=j;
ig.I("game.feature.tutorial.tutorial-steps").J("impact.base.action","game.feature.tutorial.input-forcer").H(function(){ig.ma.START_FORCE_INPUT=ig.na.extend({lqa:s,title:s,fY:s,eY:s,s:new ig.u({attributes:{lqa:{c:"String",d:"Name of player config",Y:sc.xH},title:{c:"LangLabel",d:"Title of input forcer"},fY:{c:"LangLabel",d:"Text for Keyboard"},eY:{c:"LangLabel",d:"Text for Gamepad"}}}),f:function(a){this.lqa=a.inputEntry;this.title=a.title;this.fY=a.textKeyboard;this.eY=a.textGamepad},start:function(){sc.pV.H5(this.lqa,
this.title,this.fY,this.eY)},xa:function(){return!sc.pV.UC()}});ig.ma.CLEAR_FORCE_INPUT=ig.na.extend({s:new ig.u({attributes:{}}),f:F(),start:function(){sc.pV.N6a()}})});ig.G=j;ig.I("game.feature.tutorial.plug-in").J("game.feature.tutorial.input-forcer","game.feature.tutorial.tutorial-steps").H(F());ig.G=j;
ig.I("game.feature.trade.gui.trade-icon").J("impact.feature.gui.gui","impact.feature.gui.base.box","impact.feature.gui.base.basic-gui","game.feature.interact.map-interact").H(function(){sc.z1a=ig.te.extend({N:{DEFAULT:{state:{alpha:1,offsetY:8},time:0.1,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:0.4,Ma:0.5,alpha:0,offsetY:8},time:0.1,p:KEY_SPLINES.EASE_OUT}},eb:new ig.$b("media/gui/message.png",{width:4,height:4,left:6,top:6,right:6,bottom:6,Fb:{"default":{x:0,y:112}}}),lSa:s,jtb:s,$C:s,f:function(a){this.parent(134,
40);this.a.Vc=0.6;this.a.i.y=7;this.lSa=sc.Db.q2(a);this.mz();this.j("HIDDEN",j)},uX:function(a){a==sc.Dl.FOCUS?this.j("DEFAULT"):this.j("HIDDEN")},Tc:function(a){return a==sc.Dl.FOCUS},mz:function(){this.N2a();for(var a=14,b=-1,c=this.lSa.options,d=s,e=s,d=d=s,h=sc.Pb,k=0;k<c.length;k++)for(var e=c[k].get,l=0;l<e.length;l++){d=h.getItem(e[l].id);d="\\i["+(d.icon+sc.Pb.uo(d.rarity||0)||"item-default")+"]"+ig.Oa.wc(d.name);d=new sc.ea(d);d.F(ig.k.za,ig.k.W);d.l(0,a);this.m(d);a=a+(d.a.size.y-2);if(b<
d.a.size.x)b=d.a.size.x}this.v(Math.min(b+21,134),a+6);this.rb(this.a.size.x/2,this.a.size.y)},N2a:function(){var a=new sc.ea(ig.lang.get("sc.gui.trade.tradeOffer"),{font:sc.Ka.Lb});a.F(ig.k.za,ig.k.W);a.l(0,4);this.m(a);this.$C=new ig.Lf("#ccc",a.a.size.x+10,1);this.$C.F(ig.k.za,ig.k.W);this.$C.l(0,12);this.m(this.$C)},remove:function(){this.j("HIDDEN",w,j)}})});ig.G=j;
ig.I("game.feature.trade.trade-steps").J("impact.base.action","impact.base.event").H(function(){ig.ma.START_NPC_TRADE_MENU=ig.na.extend({s:new ig.u({attributes:{}}),f:function(a){this.mj=a.npc},start:function(a,b){if(b.t0 instanceof ig.ya.NPC){ig.Vd.nw(new ig.ye.$n(new ig.ye.bS(b.t0),0,0),"FAST",KEY_SPLINES.EASE_IN_OUT);b.t0.Gva()}},xa:function(){sc.q.yqa()||ig.Vd.gea("FAST",KEY_SPLINES.EASE_IN_OUT);return!sc.q.yqa()}})});ig.G=j;
ig.I("game.feature.trade.plug-in").J("game.feature.trade.gui.trade-menu","game.feature.trade.gui.trade-icon","game.feature.trade.trade-steps").H(function(){window.Yc&&wm.pj.push("game.feature.trade.editors.trade-editor")});ig.G=j;
ig.I("game.feature.save-preset.save-preset").J("impact.base.loader","impact.base.game").H(function(){var a=["0-before-boss","1-rhombus-dng-start","2-continue-story","3-autumn-rise","4-apollo-duel","5-before-bergen","6-before-maroon","7-fajro-temple"];sc.F_a=ig.CB.extend({ui:"SavePresetData",title:s,sub:s,u5:s,Nn:F(),JC:function(){return ig.root+this.path.dr("data/save-presets/",".json")+ig.kl()},onload:function(a){this.title=new ig.Oa(a.title);this.sub=new ig.Oa(a.sub);this.u5=new ig.xS(a.savefile);
sc.version.elb(this.u5)}});sc.E_a=ig.sf.extend({Ke:[],f:function(){if(!window.Yc)for(var b=0;b<a.length;++b)this.Ke[b]=new sc.F_a(a[b])},load:function(a){a=ig.copy(this.Ke[a].u5);ig.t.Gca(a)}});ig.wf(function(){return sc.hPa=new sc.E_a})});ig.G=j;ig.I("game.feature.save-preset.plug-in").J("game.feature.save-preset.save-preset").H(F());ig.G=j;
ig.I("game.feature.xeno-dialogs.entities.xeno-dialog").J("impact.base.entity").H(function(){var a=80,b=200,c=120,d=b,a=a*a,b=b*b,c=c*c,e=[];ig.ya.XenoDialog=ig.gd.extend({s:new ig.u({Bd:j,attributes:{Rp:{c:"VarCondition",d:"optional spawn condition, leave empty for true"},UN:{c:"XenoDialog",d:"The dialog"}},Fj:j,Xa:function(a,b){if(b.Rh&&b.Rh.length==0)b.Rh=s;b.fDa();if(a)for(var c=b.Rh.length;c--;)b.Ta.push(ig.yva.get(w));else if(b.Rh&&b.Ta.length!=1)for(var e=s,n=s,c=b.Rh.length,o=2,t=b.b.i.x+b.b.size.x/
2,r=b.b.i.y+b.b.size.y/2-b.b.i.z;c--;)if(b.Rh[c]){e=b.Rh[c].b;n=b.Ta[b.Ta.length-o];o++;if(n){n.l(e.i.x,e.i.y,e.i.z);n.v(16,16,0);n.Vh(new ig.Uxa("rgba(128,0,128, 0.5)","rgba(200, 200, 200, 0.1)",t,r,d))}}},hl:"rgba(128,0,128, 0.5)",label:R("")}),UN:s,Rh:s,Hp:w,tv:0,AK:0,eJ:-1,T$:s,$$:"",TT:s,f:function(a,b,c,d){this.parent(a,b,c,d);this.b.v(16,16,0);this.b.type=ig.la.IGNORE;this.UN=[];a=d.dialog;for(b=0;b<a.length;b++)if(c=a[b]){c={x1:c.entity,text:new ig.Oa(c.text),event:c.event?new ig.Ra({steps:c.event}):
s,P:s};ig.Re&&ig.Re.Ky("Xeno MSG "+(c.x1&&c.x1.name),c.text);this.UN.push(c)}},Tb:function(a){this.m$();this.parent(a)},update:function(){this.parent();this.fDa();if(!ig.t.VC()&&!sc.q.Qe())if(this.tv>0)this.tv=this.tv-ig.g.ga;else if(this.Hp)if(this.eJ==-1?this.Pka(c):this.Pka(b)){if(this.AK>0)this.AK=this.AK-ig.g.ga;this.AK<=0&&this.nEa()}else this.m$();else this.Pka(a,j)&&this.Qjb()},Qjb:function(){for(var a=e.length;a--;)e[a].m$();this.Hp=j;e.push(this)},m$:function(){this.Hp=w;this.fka();this.eJ=
-1;this.AK=0;e.xf(this)},U9a:function(){return this.$$||"Hello World"},npb:M("TT"),c4:function(){this.Hp=w;this.fka();this.tv=1;this.eJ=-1;this.AK=0},mW:function(){this.tv=1;this.m$()},nEa:function(){this.fka();this.eJ++;if(this.eJ>=this.UN.length){this.eJ=-1;this.AK=2;return j}var a=this.UN[this.eJ];this.T$=a.P;this.TT=a.event;this.$$=a.text;ig.Re&&ig.Re.ND("Xeno MSG "+(a.x1&&a.x1.name),a.text);this.T$.ajb(this);this.AK=Math.max(1.5,this.$$.toString().length/25*1.1+1.2);return w},fka:function(){if(!(this.eJ<
0)){this.T$.k6a();this.TT=this.$$=this.T$=s}},Pka:function(a,b){for(var c=ig.t.wb.b,d=this.Rh.length,e=s,o=0,e=0;d--;){e=this.Rh[d].b;if(!(b&&c.i.z!=e.jc)){o=c.i.x+c.size.x/2-(e.i.x+e.size.x/2);e=c.i.y+c.size.y/2-(e.i.y+e.size.y/2);if(o*o+e*e<=a)return j}}return w},fDa:function(){if(!this.Rh){this.Rh=[];for(var a=this.UN.length,b=s,c=s;a--;){b=this.UN[a];(c=ig.Ra.pd(b.x1))&&this.Rh.indexOf(c)==-1&&this.Rh.push(c);b.P=c||s}}}})});ig.G=j;
ig.I("game.feature.xeno-dialogs.gui.xeno-icon").J("impact.feature.gui.gui","impact.feature.gui.base.box","impact.feature.gui.base.basic-gui","game.feature.interact.map-interact","game.feature.msg.gui.msg-skip-hud").H(function(){sc.e2a=ig.te.extend({N:{DEFAULT:{state:{alpha:1,offsetY:8},time:0.1,p:KEY_SPLINES.EASE_OUT},HIDDEN:{state:{Ia:0.4,Ma:0.5,alpha:0,offsetY:8},time:0.1,p:KEY_SPLINES.EASE_OUT}},eb:new ig.$b("media/gui/message.png",{width:4,height:4,left:6,top:6,right:6,bottom:6,Fb:{"default":{x:0,
y:112}}}),Va:s,ln:s,Vy:s,Ffa:s,f:function(){this.parent(40,40);this.a.Vc=0.7;this.a.i.y=4;this.Va=new sc.ea("This is a sample text.",{font:sc.Ka.Ve,maxWidth:134,speed:ig.rd.Nd.fja,linePadding:0,optimize:j,bestRatio:4});this.Va.F(ig.k.za,ig.k.gb);this.Va.df.AA=this.hfb.bind(this);this.m(this.Va);this.v(this.Va.a.size.x+8,this.Va.a.size.y+4);this.rb(this.a.size.x/2,this.a.size.y);this.j("HIDDEN",j);this.ln=new sc.uza;this.m(this.ln);this.ln.j("HIDDEN",j);this.ln.F(ig.k.fb,ig.k.xb);this.Ffa=new sc.XAa(this,
20)},hfb:function(){this.Gga()},Gga:function(){this.Va.df.ol()&&this.Ffa.Tc()?this.ln.show():this.ln.hide()},fa:function(a,b){this.Va.fa(a||"This is an empty test");var c=Math.max(30,this.Va.a.size.x+8);this.v(c,this.Va.a.size.y+4);this.rb(this.a.size.x/2,this.a.size.y);this.ln.l(this.a.size.x+1,0);sc.mL.de(this.Ffa);this.Vy=b;this.Gga()},show:function(){this.Va.reset();this.j("DEFAULT")},hide:function(){sc.mL.ie(this.Ffa);this.Gga();this.j("HIDDEN")},qW:function(a){a==sc.tM.eja&&(this.Va.df.ol()?
this.Vy.nEa():this.Va.finish());this.Gga()},uX:F(),Tc:function(a){return a!=sc.xH.HIDDEN},remove:function(){this.j("HIDDEN",w,j)}})});ig.G=j;ig.I("game.feature.xeno-dialogs.plug-in").J("game.feature.xeno-dialogs.entities.xeno-dialog","game.feature.xeno-dialogs.gui.xeno-icon").H(function(){window.Yc&&wm.pj.push("game.feature.xeno-dialogs.editors.xeno-dialog-editor")});ig.G=j;
ig.I("game.feature.quest.quest-types").H(function(){sc.yZ=ig.ra.extend({type:s,f:function(a){this.type=a.type||"THROWS_ERROR"}});sc.sS={};sc.sS.COLLECT=sc.yZ.extend({s:new ig.u({attributes:{item:{c:"Item",d:"The item to collect."},zb:{c:"Number",d:"the amount you need to collect.",ub:1},Lqa:{c:"Boolean",d:"True if the player can keep the items",ub:"false"},Spa:{c:"Boolean",U:j,ub:"true",d:"True if the name should be hidden until at least one of the item has been found or the sub task is finished"},
Rpa:{c:"Boolean",U:j,ub:"true",d:"True if the max number should be hidden until the subtask is solved."}}}),item:0,zb:0,Lqa:w,Spa:w,Rpa:w,f:function(a){this.parent(a);this.item=a.item;this.zb=a.amount;this.Lqa=a.keepItems;this.Spa=a.hideName||w;this.Rpa=a.hideMax||w},RC:function(a){a.collected=sc.q.R.Nr(this.item)},Su:function(a,b,c,d){if(d||b.item==this.item)a.collected=sc.q.R.Nr(this.item)},Y1:function(a,b){return b?this.zb-a.collected:a.collected},E1:function(){this.Lqa||sc.q.R.removeItem(this.item,
this.zb)},RJ:function(a){return a.collected>=this.zb},reset:F()});sc.sS.KILL=sc.yZ.extend({s:new ig.u({attributes:{hf:{c:"EnemyName",d:"The enemy you need to defeat"},zb:{c:"Number",d:"the amount you need to defeat.",ub:1}}}),hf:0,zb:0,f:function(a){this.parent(a);this.hf=a.enemy;this.zb=a.amount},RC:function(a){a.killed=0},Su:function(a,b){b.enemy==this.hf&&(a.killed=a.killed+b.amount)},Y1:function(a,b){return b?this.zb-a.killed:a.killed},RJ:function(a){return a.killed>=this.zb},reset:function(a){ig.debug("RESTORE [KILL]: enemy:"+
this.hf+", amount: "+this.zb);a.killed=0}});sc.sS.CONDITION=sc.yZ.extend({s:new ig.u({attributes:{label:{c:"String",d:"The label inside the quest that will be set to true"},text:{c:"LangLabel",d:"The text that should be displayed as subtask",U:j},ejb:{c:"LangLabel",d:"short version for minified GUI",U:j}},label:function(){return"<b>CONDITION</b>  <code>label:"+this.label+(this.text?" text: <i style='color: orange'>"+wmPrint("LangLabel",this.text)+"</i>":"")}}),text:s,JQ:s,label:s,f:function(a){this.parent(a);
this.text=a.text?new ig.Oa(a.text):"";this.JQ=a.shortText?new ig.Oa(a.shortText):s;this.label=a.label||s},RC:function(a){a.active=w},Su:function(a,b,c){if(this.label==b.label){a.active=b.value;a.active&&(c[this.label]=j)}},Y1:function(a,b){return b?w:a.active},RJ:function(a){return a.active},reset:function(a,b){ig.debug("RESTORE [CONDITION]: label:"+this.label);a.active=w;b[this.label]=w}});sc.sS.QUEST=sc.yZ.extend({s:new ig.u({attributes:{ob:{c:"SubQuestSelect",d:"Quest to solve. Select parent quest first."},
text:{c:"LangLabel",d:"The text that should be displayed as subtask",U:j},ejb:{c:"LangLabel",d:"short version for minified GUI",U:j}},label:function(){return"<b>QUEST</b>  <code>quest:"+this.ob+(this.text?" text: <i style='color: orange'>"+wmPrint("LangLabel",this.text)+"</i>":"")}}),ob:s,text:s,JQ:s,f:function(a){this.parent(a);this.ob=a.quest||s;this.text=a.text?new ig.Oa(a.text):"";this.JQ=a.shortText?new ig.Oa(a.shortText):s},RC:function(a){a.active=w},Su:function(a,b,c,d){if(d){a.active=sc.Xb.Ss(this.ob);
ig.debug("SubQuest done after prev task finished: "+this.ob+" | state: "+a.active)}else this.ob==b.quest&&(a.active=b.value)},Y1:function(a,b){return b?w:a.active},RJ:function(a){return a.active}});sc.sS.LANDMARK=sc.yZ.extend({s:new ig.u({attributes:{Ub:{c:"Select",d:"The item to check",Y:"areas"},zb:{c:"Number",d:"the amount you need to unlock.",ub:1}}}),Ub:0,zb:0,f:function(a){this.parent(a);this.Ub=a.area;this.zb=a.amount},RC:function(a){a.unlocked=sc.map.ppa(this.Ub)},Su:function(a,b,c,d){if(d||
b.area==this.Ub)a.unlocked=sc.map.ppa(this.Ub)},Y1:function(a,b){return b?this.zb-a.unlocked:a.unlocked},RJ:function(a){return a.unlocked>=this.zb}});sc.LZa=ig.ra.extend({Gi:"",Jy:[],pGa:w,nt:s,RQa:w,f:function(a,b){this.Gi=new ig.Oa(a.task);this.Jy=[];this.RQa=a.skipNotify||w;for(var c=a.subtasks,d=0;d<c.length;d++){var e=new sc.sS[c[d].type](c[d]);if(e.type=="CONDITION")b.Jcb.push(e.label);else if(e.type=="COLLECT"||e.type=="LANDMARK")this.pGa=j;else if(e.type=="QUEST"){if(!this.nt)this.nt=[];this.nt.push(e.ob)}this.Jy.push(e)}}});
sc.gAa=ig.ra.extend({name:"",aa:1,gi:0,description:"",Hr:"",Ih:s,zm:s,id:s,oj:s,XNa:s,Jcb:[],Nba:w,Ub:s,NMa:w,E4:s,location:{Ub:"",map:""},timeStamp:0,Nc:s,f:function(a,b){this.aa=a.level||1;this.name=new ig.Oa(a.name);this.description=new ig.Oa(a.description);this.Hr=new ig.Oa(a.briefing);this.zm=a.rewards||{};this.id=b||s;this.NMa=a.noTrack||w;this.gi=a.order||-1;this.oj=new ig.Oa(a.person||"???");this.Nba=a.hideRewards||w;this.Ub=a.area||s;this.E4=a.parent||s;if(a.personAfter)this.XNa=new ig.Oa(a.personAfter||
"???");this.Ih=[];for(var c=a.tasks,d=0;d<c.length;d++){this.Ih.push(new sc.LZa(c[d],this));d>0&&this.Ih[d].nt&&f(Error("Sub Quest found in"+d+" task. Can only be in first task!"))}}})});ig.G=j;
ig.I("game.feature.quest.quest-model").J("impact.base.game","impact.base.loader","impact.feature.database.database","game.config","game.feature.quest.quest-types","game.feature.model.game-model","game.feature.combat.combat","game.feature.timers.timers-model").H(function(){var a={ob:s,state:s},b={item:0,amount:0,enemy:s,quest:s};sc.OH={hxa:0,hja:1,gH:2};sc.yt={ACCEPTED:0,ORDER:1,NAME:2,LEVEL:3};sc.JZa=ig.sf.extend({um:[],vl:{},Hg:[],Ix:{},Ai:-1,un:{},VS:[],WS:0,Gt:w,Knb:[],f:function(){this.parent("Quests");
this.T3a();window.Yc&&ig.Dj.dg("quests","QuestEnumEditor","Quests");ig.Cc.dg(this);ig.pa.Gp("quest",this,"VarQuestEditor");sc.pb.Jla(this);sc.K.Na(sc.q.R,this)},Aba:function(a,b){var e=0,h=0,k;for(k in this.vl)if(!(b&&this.vl[k].Ub!=b)&&!this.vl[k].NMa){this.Ix[k]&&e++;h++}return a?e/h:e},Vab:function(a){var b=this.vl,e;for(e in b)if(b[e].Ub==a)return j;return w},BA:function(){if(sc.q.UKa())if(this.VS.length>=1)if(this.WS<=0){var a=this.VS.splice(0,1)[0];this.Gt=j;a=this.bab(this.vl[a]);sc.So.KD(a);
this.WS=0}else this.WS=this.WS-ig.g.Da;else this.Gt=w},Rta:-1,nj:function(){this.Hg.length=0;this.un={};this.Ai=-1;this.WS=this.VS.length=0;this.Ix={};sc.K.wa(this,sc.Li.TY)},Mrb:function(){sc.q.z8a()},Lrb:function(){sc.q.Ir();ig.pa.set("tmp._questRewardsFinished",w)},bab:function(a){return new ig.Ra({steps:[{type:"WAIT",time:0.2,ignoreSlowDown:j},{type:"ADD_GUI",name:"levelUpHud",guiInfo:{type:"QuestSolvedDialog",settings:{quest:a}}},{type:"WAIT_UNTIL_TRUE",condition:"tmp._questRewardsFinished"},
{type:"WAIT",time:0.1,ignoreSlowDown:j}]})},oqb:M("Gt"),tX:function(a){if(a<0)return w;a==this.Ai&&(a=-1);var b=this.Ai;this.Ai=a;sc.K.wa(this,sc.Li.TY,b);return j},hna:function(a,b){if(this.Hg.length!=0){var e=this.Ai,a=a||0;this.Ai=this.Ai+a;if(a>=0){if(this.Ai>=this.Hg.length)this.Ai=-1}else if(this.Ai==-2)this.Ai=this.Hg.length-1;else if(this.Ai<0)this.Ai=-1;b||sc.K.wa(this,sc.Li.TY,e)}},vQ:function(b,d,e){b==sc.Li.D7&&this.cQa(d.ob,e);a.state=d||s;a.ob=d.ob||s;sc.K.wa(this,b,a)},t7a:function(b){b=
new sc.gAa(b);this.dEa(b);var d=new sc.g8(b);a.ob=b;a.state=d;this.Hg.push(d);sc.K.wa(this,sc.Li.IR,a);sc.yq.gr("QUEST_ACCEPTED",{});ig.t.Zi()},LEa:function(b,d){var e=this.vl[b];e||f(Error("Could not find quest with ID: "+b));this.z3a(e)&&f(Error("Static quest is already finished! Quest ID: "+b));this.dEa(e,d);var h=new sc.g8(e);if(!h.Eq){this.Hg.push(h);this.un[b]=this.Hg.length-1;a.ob=e;a.state=h;sc.ta.lfa("quests","active",this.Hg.length);sc.e.zI({type:"QUEST",accept:j,quest:b});sc.K.wa(this,
sc.Li.IR,a);sc.yq.gr("QUEST_ACCEPTED",{})}ig.t.Zi();return h},yjb:function(a,d){for(var e=this.vl[a],h=this.Hg.length;h--;){var k=this.Hg[h];if(k.ob==e){k.labels[d]=j;b.label=d;b.value=j;k.Su("CONDITION",b);ig.t.Zi();return}}f(Error("Tried to solve condition of quest that is not active"))},Sta:function(a,b){var e=this.un[a];if(e!=g){this.Hg[e].ihb(b);ig.t.Zi()}},N6:function(a,b){for(var e=this.Hg.length;e--;)this.Hg[e].Su(a,b);ig.t.Zi()},Vta:function(a,b){for(var e=this.Hg.length;e--;)this.Hg[e].Su(a,
b,j);ig.t.Zi()},cQa:function(a,d){this.Ix[a.id]&&f(Error("Static quest has already been finished! ID: "+a.id));if(!d){var e=this.un[a.id];if(e==g){console.error("Quest with State %O is not an active quest and cannot be finished!",a.id);return}this.Hg.splice(e,1);for(var h in this.un)this.un[h]>=e&&(this.un[h]=this.un[h]-1)}sc.ta.cc("quests","solved",1);sc.e.zI({type:"QUEST",finish:j,quest:a.id});this.VS.push(a.id);this.Ai==e?this.Ai=-1:this.hna(-1,j);if(a.id){this.Ix[a.id]={solved:j};d||delete this.un[a.id]}ig.t.Zi();
b.quest=a.id;b.value=j;this.N6("QUEST",b)},a9a:function(a){this.A2a(a);sc.K.wa(this,sc.Li.aZa,a)},Ss:function(a){return this.Ix[a]},$Ka:function(a,b){var e=this.eab(a);return e?e.labels[b]:this.Ss(a.id)?j:w},eab:function(a){return this.Hg[this.un[a.id]]},qab:function(a){if(a.Ih[0]&&a.Ih[0].nt)return a.Ih[0].nt},fab:function(a,b){if(this.vl[a])return this.vl[a].Ih[b]},xba:function(a){return this.vl[a]},Eqa:function(a,b){var e=this.Hg[this.un[a.id]];return e?e.Wd>b:this.Ix[a.id]?j:w},Toa:function(a,
b){var e=this.Hg[this.un[a.id]];if(e)return b?e.IJ:e.Wd;if(this.Ix[a.id])return a.Ih.length-1},dab:function(a){return!this.vl[a]?"NO QUEST":this.vl[a].name},cab:function(a,b){var e=[];if(a==sc.OH.hxa||a==sc.OH.gH)for(var h=this.Hg.length;h--;)e.push(this.Hg[h].ob);if(a==sc.OH.hja||a==sc.OH.gH)for(var k in this.Ix)e.push(this.vl[k]);b!=g&&this.Ajb(e,b);return e},Ajb:function(a,b){switch(b){case sc.yt.ACCEPTED:a.sort(function(a,b){return b.timeStamp-a.timeStamp});break;case sc.yt.ORDER:a.sort(function(a,
b){return a.gi-b.gi});break;case sc.yt.NAME:a.sort(function(a,b){return a.name.toString().localeCompare(b.name.toString())});break;case sc.yt.LEVEL:a.sort(function(a,b){return a.aa!=b.aa?a.aa-b.aa:b.timeStamp-a.timeStamp})}},v9a:function(a){return this.un[a.id]},l9:function(a,b){return a.gi-b.gi},qba:function(){return this.Ai<0?s:this.Hg[this.Ai].ob},nIa:function(){return this.Ai<0?s:this.Hg[this.Ai].Wd},TKa:function(){return!this.Hg[this.Ai]?j:this.Hg[this.Ai].vp()},Kqb:function(a){return this.Ai<
0?w:this.Hg[this.Ai].Wd>a},Npb:function(a){for(var b=this.Hg[this.Ai].ob,e=b.Ih.length;e--;)if(b.Ih[e]==a)return e},rab:function(a,b,e){return this.Hg[this.un[a.id]]?this.Hg[this.un[a.id]].yb[b][e]:{}},xcb:function(a,b,e){return this.Hg[this.un[a.id]]?a.Ih[b].Jy[e].RJ(this.Hg[this.un[a.id]].yb[b][e]):w},On:function(a,b){if(b[0]=="quest"){var e=this.un[b[1]];if(e!=g&&e>=0){if(e=this.Hg[e])switch(b[2]){case "started":return j;case "solved":return e.Eq;case "task":return e.Wd==b[3]*1;case "currentTask":return e.Wd;
case "subtask":return e.ycb(b[3]*1);case "subvalue":return e.pIa(b[3]*1)+"";case "subrequire":return e.pIa(b[3]*1,j)+"";case "label":return e.labels[b[3]]}}else if(this.Ix[b[1]]){e=this.vl[b[1]];switch(b[2]){case "task":return e.Ih.length==b[3]*1;case "currentTask":return e.Ih.length;default:return j}}}},hsa:function(a,d){if(d==sc.m7.DEFEATED){b.enemy=a.np||s;b.amount=1;this.N6("KILL",b)}},Geb:function(a){if(a){b.area=a;this.N6("LANDMARK",b)}},lb:function(a,d,e){if(a==sc.q.R)if(d==sc.Wc.M7){b.item=
e.id;b.amount=e.zb;this.N6("COLLECT",b)}else if(d==sc.Wc.Uha){b.item=e.id;b.amount=-e.zb;this.Vta("COLLECT",b)}else if(d==sc.Wc.$Y){b.item=e;b.amount=-1;this.Vta("COLLECT",b)}else if(d==sc.Wc.Aha)if(e.zb<0){b.item=e.id;b.amount=-1;this.Vta("COLLECT",b)}else if(e.zb>0){b.item=e.id;b.amount=1;this.N6("COLLECT",b)}},A2a:function(a){if(a.zm){var b=sc.q.R,e=a.zm;if(e.exp){a=b.$M(e.exp.exp,a.aa,e.exp.bonus,j);sc.ta.cc("quests","exp",a)}if(e.money){b.D9(e.money);sc.ta.cc("quests","money",e.money||0)}if(e.items)for(a=
0;a<e.items.length;a++){b.bx(e.items[a].id,e.items[a].amount);sc.ta.cc("quests","rewards",1)}}},QSa:function(a,b){a.timeStamp=sc.ta.pg("player","playtime")+b},dEa:function(a,b){a.location.Ub=sc.map.oIa();a.location.map=sc.map.mIa();a.timeStamp=sc.ta.pg("player","playtime");a.Nc=b||s},z3a:function(a){return this.Ix[a.id]},T3a:function(){this.vl={};var a=ig.Dj.get("quests"),b;for(b in a)this.vl[b]=new sc.gAa(a[b],b);ig.hM&&ig.log("%cDATABASE: %cLoaded Static Quests: \n%O","color:orange","",this.vl)},
Rq:function(a){var b={};b.focusQuest=this.Ai;b.finished=ig.copy(this.Ix);b.solvedQueue=ig.copy(this.VS);var e={},h=s,k;for(k in this.vl){h=this.vl[k];h.timeStamp>0&&(e[k]={time:h.timeStamp,location:{area:h.location.Ub.data,map:h.location.map.data},character:h.Nc})}b.locale=e;e=[];h=this.Hg.length;for(k=s;h--;){k=this.Hg[h];e[h]=k.LC()}b.states=e;a.quests=b},Qq:function(a){(a=a.quests)||(a={});this.Ai=a.focusQuest==g?-1:a.focusQuest;this.VS=a.solveQueue||[];this.WS=0;var b=s,e=a.locale,h;for(h in e)if(this.vl[h]){b=
this.vl[h];b.location.Ub=new ig.Oa(e[h].location.area||"???");b.location.map=new ig.Oa(e[h].location.map||"???");b.timeStamp=e[h].time;b.Nc=e[h].character?e[h].character:s}this.Ix=a.finished||{};h=a.states||[];this.un={};this.Hg.length=0;for(var e=s,k=w,l=0;l<h.length;++l){a=h[l];b=this.vl[h[l].id];if(b.Ih.length!=a.completed.length){k=j;e=new sc.g8(b)}else{e=new sc.g8(b,j);e.Eua(a)}if(!e.Eq){this.un[b.id]=this.Hg.length;this.Hg.push(e)}}k&&ig.t.Pla(ig.lang.get("sc.gui.loading.questUpdate"));sc.K.wa(this,
sc.Li.TY,-1E5)}});sc.g8=ig.ra.extend({ob:s,yb:[],Wd:0,IJ:0,Eq:w,labels:{},f:function(a,b){this.ob=a;!b&&this.RC()},wU:function(a){for(var a=a.Jy,b=a.length;b--;){a[b].E1&&a[b].E1();sc.ta.cc("quests","subtasks",1);sc.ta.cc("quests","subtasks"+a[b].type,1)}},RC:function(a){var b=this.ob.Ih,e;for(e in this.labels)this.labels[e]=w;this.yb.length=0;e=s;for(var h=j,k=w,l=0;l<b.length;l++){e=b[l].Jy;this.yb[l]=[];for(var h=j,m=e[n],n=0;n<e.length;n++){m=e[n];this.yb[l][n]={};m.RC(this.yb[l][n],this.labels);
m.RJ(this.yb[l][n])||(h=w)}if(h){if(!k){this.Wd++;this.IJ=this.Wd;if(this.Wd>=2){sc.ta.cc("quests","tasks",1);this.wU(b[this.Wd-2])}}}else k=j}if(this.Wd>this.yb.length-1){this.IJ=this.Wd=this.yb.length;this.wU(b[this.Wd-1]);this.yb.length>=2&&this.wU(b[this.Wd-2]);this.Eq=j;sc.ta.cc("quests","tasks",1);!a&&sc.Xb.vQ(sc.Li.D7,this,j)}},Su:function(a,b,e){if(!(this.Wd>=this.yb.length)){this.s$(a,b,this.Wd)?this.cKa():sc.Xb.vQ(sc.Li.Ija,this);if(e&&this.Wd>0)if(this.s$(a,b,this.Wd-1))sc.Xb.vQ(sc.Li.Ija,
this);else{a=this.ob.Ih[this.Wd];this.Wd=this.Wd-1;sc.ta.XX("quests","tasks",1);for(b=a.length;b--;){sc.ta.XX("quests","subtasks",1);sc.ta.XX("quests","subtasks"+a[b].type,1)}sc.Xb.vQ(sc.Li.yja,this)}}},cKa:function(){if(this.Wd>=this.yb.length-1){this.IJ=this.Wd=this.yb.length;this.wU(this.ob.Ih[this.Wd-1]);this.yb.length>=2&&this.wU(this.ob.Ih[this.Wd-2]);this.Eq=j;sc.ta.cc("quests","tasks",1);sc.Xb.vQ(sc.Li.D7,this)}else{var a=this.IJ!=this.Wd;this.Wd++;this.IJ=this.Wd;this.Wd>=2&&this.wU(this.ob.Ih[this.Wd-
2]);sc.ta.cc("quests","tasks",1);a||sc.e.zI({type:"QUEST",task:this.Wd-1,quest:this.ob.id});sc.Xb.vQ(sc.Li.C8,this);this.Xab(this.Wd)&&(this.s$("COLLECT",s,this.Wd,j)||this.s$("LANDMARK",s,this.Wd,j))&&this.cKa()}ig.t.Zi()},ihb:function(a){if(!(a>=this.Wd)){for(var b=this.Wd;b>a;){b--;for(var e=this.ob.Ih[b].Jy,h=e.length;h--;){var k=e[h];k.reset&&k.reset(this.hJa(h,b),this.labels);sc.ta.XX("quests","subtasks",1);sc.ta.XX("quests","subtasks"+k.type,1)}sc.ta.XX("quests","tasks",1)}this.Wd=b;sc.Xb.vQ(sc.Li.yja,
this)}},Xab:function(a){return this.ob.Ih[a].pGa},SQa:function(){return this.ob.Ih[Math.max(this.Wd-1,0)].RQa},s$:function(a,b,e,h){for(var e=Math.max(0,e),k=this.ob.Ih[e].Jy,l=k.length,m=s,n=this.labels,o=s,t=j;l--;){m=k[l];o=this.hJa(l,e);m.type==a&&m.Su(o,b,n,h);m.RJ(o)||(t=w)}return t},ycb:function(a){var b=this.ob.Ih[this.Wd].Jy[a];return b?b.RJ(this.yb[this.Wd][a]):w},pIa:function(a,b){var e=this.ob.Ih[this.Wd].Jy[a];return e?e.Y1(this.yb[this.Wd][a],b):0},Toa:function(){return this.ob.Ih[this.Wd]},
hJa:function(a,b){return this.yb[b==g?this.Wd:b][a]},vp:function(){return this.Wd>=this.yb.length},LC:function(){var a={};a.id=this.ob.id;a.task=this.Wd;a.highest=this.IJ;a.finished=this.Eq;a.completed=ig.copy(this.yb);a.labels=ig.copy(this.labels);return a},Eua:function(a){this.Eq=a.finished||w;this.Wd=a.task||0;this.IJ=a.highest;this.yb=a.completed;var a=a.labels,b;for(b in a)this.labels[b]=a[b]}});sc.Li={};sc.Li.IR=0;sc.Li.Ija=1;sc.Li.C8=2;sc.Li.yja=3;sc.Li.Vmb=4;sc.Li.D7=5;sc.Li.aZa=6;sc.Li.TY=
7;ig.wf(function(){return sc.Xb=new sc.JZa})});ig.G=j;
ig.I("game.feature.quest.quest-steps").J("impact.base.action","impact.base.entity","impact.base.event","game.feature.quest.quest-model","game.feature.menu.gui.quests.quest-misc").H(function(){ig.ma.CREATE_QUEST=ig.na.extend({Fi:s,s:new ig.u({attributes:{name:{c:"LangLabel",d:"Name of the quest",O8:j},aa:{c:"Number",d:"Level of the quest"},description:{c:"LangLabel",d:"Starting description text",mq:j,O8:j,Jka:70},kob:{c:"LangLabel",d:"Ending description text",mq:j,O8:j,Jka:70},zm:{c:"QuestRewards",
d:"The rewards the player gets for completing the quest.",sd:j},Ih:{c:"QuestTaskList",d:"The tasks to complete"}},label:function(){return"<b style='color: limegreen'>CREATE QUEST</b> name: <i>"+new ig.Oa(this.name)+"</i>, description: <i>"+new ig.Oa(this.description)+"</i>, tasks: <i>"+(this.Ih?this.Ih.length:0)+"</i>"}}),f:L("Fi"),start:function(){sc.Xb.t7a(this.Fi)}});ig.ma.START_STATIC_QUEST=ig.na.extend({ob:s,s:new ig.u({attributes:{ob:{c:"QuestNameSelect",d:"The quest to start"}},label:function(){return"<b style='color: limegreen'> START STATIC QUEST </b> <i>"+
this.ob+"</i>"}}),f:function(a){this.ob=a.quest||""},start:function(){sc.Xb.LEa(this.ob)}});ig.ma.SOLVE_QUEST_CONDITION=ig.na.extend({pOa:s,label:s,s:new ig.u({attributes:{ob:{c:"QuestLabelSelect",d:"The label to set to active"}},label:function(){return"<b style='color: limegreen'> SOLVE QUEST CONDITION </b> <i>"+wmPrint("QuestLabelSelect",this.ob)+"</i>"}}),f:function(a){this.pOa=a.quest.quest;this.label=a.quest.label||s},start:function(){sc.Xb.yjb(this.pOa,this.label)}});ig.ma.RESET_QUEST_TASK=
ig.na.extend({ob:s,index:-1,s:new ig.u({attributes:{ob:{c:"Quest",d:"The quest on which the index should be reset",Ah:"Quest"},Gi:{c:"TaskIndex",d:"The quest task to reset to"}}}),f:function(a){this.ob=a.quest||s;this.index=a.task==g?-1:a.task},start:function(){this.index==g||this.index<0||sc.Xb.Sta(this.ob,this.index)}});ig.ma.OPEN_QUEST_DIALOG=ig.na.extend({ob:s,Tnb:s,s:new ig.u({attributes:{ob:{c:"Quest",d:"The quest to open",znb:j}},MI:function(a){switch(a){case "accepted":return"on accept";case "declined":return"on decline";
case "_end":return"end quest dialog"}return"???"}}),c_:s,f:function(a){this.ob=sc.Xb.vl[a.quest]},IC:function(){return["accepted","declined"]},start:function(a,b){this.c_=b.data.character||s;a.yb=w;a.mla=sc.q.message.cbb();a.Od=a.mla?0.2:0;a.mla&&sc.q.message.tRa()},xa:function(a){if(a.Od>=0){a.Od=a.Od-ig.g.Da;if(a.Od<0){sc.q.p6();sc.q.EX=j;var b=new sc.hAa(this.ob,function(b){a.a5a=b;a.yb=j}.bind(this),w,this.c_);ig.T.Mc(b)}}if(a.yb){sc.q.EX=w;a.mla&&sc.q.message.MQa()}return a.yb},Nx:function(a){return a.a5a?
this.Jg.accepted||this.Ek:this.Jg.declined||this.Ek}});ig.ma.FINISH_STATIC_QUEST=ig.na.extend({ob:s,s:new ig.u({attributes:{ob:{c:"QuestNameSelect",d:"The label to set to solve"}},label:function(){return"<b style='color: limegreen'> OPEN QUEST DIALOG </b> <i>"+this.ob+"</i> "}}),f:function(a){this.ob=sc.Xb.vl[a.quest]},start:function(){sc.Xb.cQa(this.ob)}})});ig.G=j;
ig.I("game.feature.quest.plug-in").J("game.feature.quest.quest-types","game.feature.quest.quest-steps","game.feature.quest.quest-model").H(function(){if(window.Yc){wm.pj.push("game.feature.quest.editors.quest-editors");wm.fo(/QUEST/,"limegreen")}});ig.G=j;
ig.I("game.feature.party.party").J("impact.feature.storage.storage","impact.base.event","game.feature.menu.map-model","game.feature.model.game-model").H(function(){var a=Vec3.create();Vec2.create();sc.LH={oZ:1,vha:2};sc.Mza=2;var b=[1,0.9,0.75];sc.rs=["Lea","Shizuka","Emilie","Sergey","Schneider","Hlin","Grumpy","Buggy"];sc.pS={STATUS:0,NAME:1,LEVEL:2};sc.sE={UNKNOWN:0,CONTACT:1,FRIEND:2};sc.yia={FREE:{xaa:1},FOCUS_ENEMY:{VSa:j,xaa:0.7},FOCUS_DEFENSE:{Cdb:j,xaa:2},NOTHING:{raa:j,xaa:2,JNa:j}};sc.HZ=
{PARTY_JOIN:1,PARTY_LEAVE:2,CONTACT:3};sc.iZa=ig.sf.extend({um:[],fi:{},Xe:[],HA:{},Kk:{},Vz:w,JV:w,R8:w,Xfa:"FREE",hB:sc.yia.FREE,f:function(){for(var a=0;a<sc.rs.length;++a)this.y5a(sc.rs[a]);this.nj();ig.Cc.dg(this);ig.pa.Gp("party",this,"VarPartyEditor");sc.K.Na(sc.q,this)},Pua:function(a){this.Xfa=a||"FREE";this.hB=sc.yia[this.Xfa]},uua:function(a,b){if(this.Kk[a])this.Kk[a].status=b},YPa:function(a,b){if(this.Kk[a])this.Kk[a].xu=b||w},uib:function(a,b){if(this.Kk[a])this.Kk[a].YF=b||w},y5a:function(a){var b=
new sc.hZa(a);this.fi[a]=b},Aqb:function(a){for(var a=a.split(","),b=0;b<a.length;++b)this.WEa(a[b],s,j)},WEa:function(a,b,c){if(this.Xe.indexOf(a)==-1){this.uua(a,sc.sE.FRIEND);this.YPa(a,j);this.Xe.push(a);this.fi[a].kQ();if(!c)if(b){this.n9(a,j,g,b);this.R_()}else this.R8=j;sc.K.wa(this,sc.LH.oZ);ig.t.Zi()}},Tgb:function(a,b){if(this.QF(a)){this.Xe.splice(this.Xe.indexOf(a),1);this.Kk[a].YF=w;if(b){this.SDa(a,b);this.R_()}else this.R8=j;this.fi[a].kQ();sc.K.wa(this,sc.LH.oZ);ig.t.Zi()}},aPa:function(){for(var a=
this.Xe.length;a--;){var b=this.Xe[a];this.fi[b].fca()||this.Zta(b)}},Zta:function(a){var b=this.Xe.indexOf(a);this.fi[a].kQ();if(b!=-1){this.n9(a,j,b);this.R_()}},lb:function(a,b){b==sc.Le.Vw&&a.Qe()&&this.aPa()},Meb:function(a){this.fi[a].Hda();sc.yq.gr("PARTY_MEMBER_EVENT",{member:[a],eventType:"DIES"});sc.q.Sr()||this.aPa()},Leb:function(){this.HA={};var a=sc.map.uV(j),b=s,c=s;if(sc.map.uV()){if(!this.Vz){this.Vz=j;sc.K.wa(this,sc.LH.vha);b="ENTER"}}else{if(this.Vz){this.Vz=w;sc.K.wa(this,sc.LH.vha);
b="LEAVE"}this.rhb()}if(a!=this.JV)c=(this.JV=a)?"ENTER":"LEAVE";(b||c)&&sc.yq.gr("DUNGEON_TRANSITION",{mapTransition:b,areaTransition:c})},rhb:function(){for(var a=0;a<this.Xe.length;++a)this.fi[this.Xe[a]].fca()&&this.n9(this.Xe[a],w);this.R_()},Fqb:M("Vz"),QF:function(a){return this.T9a(a)!=-1},IKa:function(a){return this.Kk[a].status==sc.sE.FRIEND},rcb:function(a){return(a=this.Kk[a])&&a.YF},scb:function(a){return(a=this.Kk[a])&&a.xu},Yg:function(){for(var a=this.Xe.length;a--;)if(!this.HA[this.Xe[a]].Yg())return w;
return ig.t.wb.Yg()},T9a:function(a){return this.Xe.indexOf(a)},Spb:function(){return this.Xe.length},QU:function(a){return this.fi[a]},W$a:function(a){return this.HA[a]||s},EO:function(a){return this.HA[this.Xe[a]]||s},ZIa:function(a){return(a=this.Xe[a])&&this.fi[a]},$M:function(a,c,h,k,l){for(var m=b[this.Xe.length]||1,n=this.Xe.length;n--;)this.fi[this.Xe[n]].$M(a*m,c,h,k,l);return m},R6:function(){for(var a=this.Xe.length,b=[];a--;){var c=this.Xe[a];this.fi[c].uSa()&&b.push(c)}b.length>0&&sc.yq.gr("PARTY_MEMBER_EVENT",
{member:b,eventType:"EQUIP_UPDATE"})},ehb:function(b){var c=this.HA[b];if(c){b=this.MCa(a,b,w);c.l(b.x,b.y,b.z)}},MCa:function(b,c,h){var k=ig.t.wb,c=this.Xe.indexOf(c);if(h||k.b.i.z==k.b.jc){b=k.je(ig.Rb.BOTTOM,b);h=c==1?-16:16;if(Math.abs(k.face.x)>Math.abs(k.face.y)){b.y=b.y+h;b.x=b.x+(k.face.x>0?-8:8)}else{b.x=b.x+h;b.y=b.y+(k.face.y>0?-8:8)}b.x=b.x-k.b.size.x/2;b.y=b.y-k.b.size.y/2}else{b=Vec3.assign(a,k.SA);b.x=b.x+k.b.size.x/2;b.y=b.y+k.b.size.y/2}return b},S7a:function(){if(!this.Vz){for(var a in this.HA)this.QF(a)||
this.SDa(a);for(var b=this.Xe.length;b--;){a=this.Xe[b];this.HA[a]||this.n9(a,j)}this.R_()}},n9:function(b,c,h,k){var l=ig.t.wb,h=h===g;if(k){h=k.je(ig.Rb.BOTTOM,a);h.x=h.x-l.b.size.x/2;h.y=h.y+(k.b.size.y/2-l.b.size.y)}else h=this.MCa(a,b,h);c=ig.t.af(sc.Yza,h.x,h.y,h.z,{partyMemberName:b},!k&&c);this.HA[b]=c;if(k){Vec2.assign(c.face,k.face);k.hide()}else Vec2.assign(c.face,l.face)},R_:function(){for(var a=0;a<this.Xe.length;++a){var b=this.HA[this.Xe[a]];if(b)if(this.Xe.length==1){b.TW.x=0;b.TW.y=
-16}else{b.TW.x=a==1?-16:16;b.TW.y=-8}}},SDa:function(b,c){var h=this.HA[b];if(c){c.Zea(j);var k=h.je(ig.Rb.BOTTOM,a);k.x=k.x-c.b.size.x/2;k.y=k.y+(h.b.size.y/2-c.b.size.y);c.l(k.x,k.y,k.z);c.show();c.Zea()}h.Ncb(!!c);delete this.HA[b]},On:function(a,b){if(b[0]=="party"){var c=b[1];return c=="has"?this.Xe.indexOf(b[2])!=-1:c=="alive"?!this.Vz&&this.Xe.indexOf(b[2])!=-1&&this.QU(b[2]).fca():c=="size"?this.Xe.length+1:s}},rG:600,gw:function(){if(!ig.uu&&!ig.t.paused){if(this.R8){this.S7a();this.R8=
w}for(var a=this.Xe.length;a--;)this.fi[this.Xe[a]].update()}},nj:function(){for(var a in this.fi)this.fi[a].reset();this.Xe.length=0;this.Pua("FREE");this.JV=this.Vz=w;for(a=0;a<sc.rs.length;++a)this.Kk[sc.rs[a]]={status:sc.sE.UNKNOWN,xu:j,YF:w};sc.K.wa(this,sc.LH.oZ)},Rq:function(a){var b={},c;for(c in this.fi)b[c]=this.fi[c].LC();c={};for(var k in this.Kk)c[k]={status:this.Kk[k].status,online:this.Kk[k].xu,locked:this.Kk[k].YF};a.party={models:b,currentParty:ig.copy(this.Xe),contacts:c,strategy:this.Xfa,
dungeonBlocked:this.Vz,lastAreaDungeon:this.JV}},Qq:function(a){if(a=a.party){for(var b in this.fi)this.fi[b].Eua(a.models[b]);this.Xe=ig.copy(a.currentParty);for(var c in this.Kk)if(a.contacts[c]){this.Kk[c].status=a.contacts[c].status||0;this.Kk[c].xu=a.contacts[c].online||w;this.Kk[c].YF=a.contacts[c].locked||w}this.Pua(a.strategyKey);this.Vz=a.dungeonBlocked;this.JV=a.lastAreaDungeon||w}else this.nj();sc.K.wa(this,sc.LH.oZ)}});ig.wf(function(){return sc.Ca=new sc.iZa});var c=ig.copy(sc.rs);c.unshift("Member3");
c.unshift("Member2");ig.Ra.ugb(function(a){return a.indexOf("Member")==0?sc.Ca.EO(a.substr(6,1)*1-2):sc.Ca.W$a(a)},{c:"String",Y:c})});ig.G=j;
ig.I("game.feature.party.party-steps").J("impact.base.action","impact.base.event","game.feature.party.party").H(function(){ig.ma.SET_CONTACT_ONLINE=ig.na.extend({ei:s,xu:s,s:new ig.u({attributes:{ei:{c:"String",d:"Party member to add",Y:sc.rs},xu:{c:"Boolean",d:"True if online."}}}),f:function(a){this.ei=a.member;this.xu=a.online},start:function(){sc.Ca.YPa(this.ei,this.xu)}});ig.ma.SET_MEMBER_LOCKED=ig.na.extend({ei:s,YF:s,s:new ig.u({attributes:{ei:{c:"String",d:"Party member to change",Y:sc.rs},
YF:{c:"Boolean",d:"True if locked."}}}),f:function(a){this.ei=a.member;this.YF=a.locked},start:function(){sc.Ca.uib(this.ei,this.YF)}});ig.ma.SET_CONTACT_TYPE=ig.na.extend({ei:s,status:s,s:new ig.u({attributes:{ei:{c:"String",d:"Party member to add",Y:sc.rs},status:{c:"String",d:"Status to set",Y:sc.sE}}}),f:function(a){this.ei=a.member;this.status=sc.sE[a.status]||0},start:function(){sc.Ca.uua(this.ei,this.status)}});ig.ma.SET_CONTACT_TYPE_ALL=ig.na.extend({status:s,s:new ig.u({attributes:{status:{c:"String",
d:"Status to set",Y:sc.sE}}}),f:function(a){this.status=sc.sE[a.status]||0},start:function(){for(var a in sc.Ca.Kk)sc.Ca.uua(a,this.status)}});ig.ma.ADD_PARTY_MEMBER=ig.na.extend({ei:s,mj:s,s:new ig.u({attributes:{ei:{c:"String",d:"Party member to add",Y:sc.rs},mj:{c:"NPC",d:"NPC that will turn into the party member",U:j}}}),f:function(a){this.ei=a.member;this.mj=a.npc},start:function(a,b){var c=ig.Ra.pd(this.mj,b);sc.Ca.WEa(this.ei,c)}});ig.ma.SET_PARTY_MEMBER_LEVEL=ig.na.extend({ei:s,aa:s,exp:s,
R6:w,s:new ig.u({attributes:{ei:{c:"String",d:"Party member to add",Y:sc.rs},aa:{c:"Integer",d:"Level to set"},exp:{c:"Integer",d:"Exp to set"},R6:{c:"Boolean",d:"If true, also update equipment of party member"}}}),f:function(a){this.ei=a.member;this.aa=a.level||1;this.exp=a.exp||0;this.R6=a.updateEquipment||w},start:function(){sc.Ca.QU(this.ei).DQ(this.aa,this.exp,this.R6)}});ig.ma.SET_PARTY_MEMBER_SP_LEVEL=ig.na.extend({s:new ig.u({attributes:{ei:{c:"String",d:"Party member to add",Y:sc.rs},aa:{c:"String",
d:"Type of Core.",Y:{"0":"0 SP",1:"4 SP",2:"8 SP",3:"12 SP",4:"16 SP"}}}}),f:function(a){this.ei=a.member;this.aa=a.level},start:function(){sc.Ca.QU(this.ei).CG(this.aa)}});ig.ma.REMOVE_PARTY_MEMBER=ig.na.extend({ei:s,mj:s,s:new ig.u({attributes:{ei:{c:"String",d:"Party member to add",Y:sc.rs},mj:{c:"NPC",d:"NPC that will turn into the party member",U:j}}}),f:function(a){this.ei=a.member;this.mj=a.npc},start:function(a,b){var c=ig.Ra.pd(this.mj,b);sc.Ca.Tgb(this.ei,c)}});ig.ma.REVIVE_PARTY_MEMBER=
ig.na.extend({ei:s,s:new ig.u({attributes:{ei:{c:"String",d:"Party member to revive",Y:sc.rs}}}),f:function(a){this.ei=a.member},start:function(){sc.Ca.QU(this.ei).fca()||sc.Ca.Zta(this.ei)}})});ig.G=j;
ig.I("game.feature.party.party-member-model").J("game.feature.model.base-model","game.feature.combat.model.combat-params","game.feature.combat.entities.ball","game.feature.player.player-config","game.feature.player.player-steps","game.feature.achievements.stats-model").H(function(){sc.pZ={qH:1,ZL:3,nE:4,FZ:11};sc.hZa=ig.ra.extend({um:[],Qm:{},ad:s,nb:s,ta:s,ba:s,name:s,nC:s,Nc:s,sU:0,aa:1,exp:0,DN:0,UQ:0,Wb:{head:-1,di:-1,ki:-1,Jh:-1,mh:-1},Nb:{elemFactor:[1,1,1,1]},Bv:s,Fx:s,Es:s,Pk:{},lQ:0,Uj:0,
f:function(a){this.ba=new sc.t7;this.ad=new sc.d8(a);this.ad.wr(this)},Pq:function(){var a=this.ad;this.name=a.name;this.nC=a.nC;this.DN=a.DN;this.Nc=a.Nc;this.nb=a.nb;this.fn=a.fn;this.ta=a.ta;this.Es=a.Es;this.Pk=a.Pk;this.ms()},zO:function(){return this.ad.OO},AQ:function(a,b){sc.fz.Wb(this.Wb,a,b)},SFa:function(){for(var a in this.Wb)this.Wb[a]=-1},uSa:function(){if(this.EEa(this.aa)){this.ms();return j}return w},EEa:function(a){a=sc.fz.U9(this,this.ad.U9,this.sU,a,w,w);if(a>this.sU){this.sU=
a;return j}return w},ms:function(){sc.fz.kGa(this.Nb,this.ta,this.aa);this.Bv=ig.copy(this.Nb);this.Fx={};sc.fz.CSa(this.Wb,this.Bv,this.Fx);for(var a in sc.ja)this.Pk[sc.ja[a]].cta();this.Es.update(this.Bv,this.Fx);for(a in sc.ja)this.Pk[sc.ja[a]].update(this.Bv,this.Fx);this.ba.pua(this.Pk[this.Uj].Nb);this.ba.Kua(this.Pk[this.Uj].Ys)},fca:function(){return this.lQ==0},Hda:function(){this.lQ=30},kQ:function(){this.ba.kQ();this.lQ=0},update:function(){if(this.lQ){this.lQ=this.lQ-ig.g.ga;if(this.lQ<=
0||!sc.q.Sr()){sc.yq.gr("PARTY_MEMBER_EVENT",{member:[this.name],eventType:"REVIVED"});sc.Ca.Zta(this.name)}}},eA:function(){return this.Nc?this.Nc.data&&this.Nc.data.name?ig.Oa.wc(this.Nc.data.name):s:s},rpb:function(){return this.Nc?this.Nc.data&&this.Nc.data.realname?ig.Oa.wc(this.Nc.data.realname):s:s},Hq:function(a){return this.Pk[this.Uj].Hq(a)||this.Es.Hq(a)},gba:function(){return this.ad.fn},LC:function(){return{level:this.aa,equipLevel:this.sU,exp:this.exp,spLevel:this.UQ}},Eua:function(a){a=
a||{};this.aa=a.level||1;this.exp=a.exp||0;this.sU=0;this.CG(a.spLevel||1);this.SFa();this.EEa(a.equipLevel||1);this.ms()},reset:function(){this.aa=1;this.sU=this.exp=0;this.kQ();this.CG(2);this.SFa();this.ad.loaded&&this.ms()},CG:function(a){if(!(a<0||a>=sc.JZ.length)){this.UQ=a;this.ba.Iua(sc.JZ[a]);this.ba.Wj=this.ba.Ao/2}},$M:function(a,b,c,d,e){a=sc.fz.G$(a,this.aa,b,g,g,e);this.exp=this.exp+a;if(this.exp>=sc.$L){this.aa=this.aa+Math.floor(this.exp/sc.$L);this.exp=this.exp%sc.$L;this.ms();sc.K.wa(this,
sc.pZ.nE)}sc.K.wa(this,sc.pZ.ZL)},DQ:function(a,b,c){this.exp=b;this.aa=a;this.ms();c&&this.uSa();sc.K.wa(this,sc.pZ.nE);sc.K.wa(this,sc.pZ.ZL)}})});ig.G=j;
ig.I("game.feature.party.entities.party-member-entity").J("game.feature.player.entities.player-base").H(function(){var a={IDLE:{start:function(a){a.Ei(a.ag.sh)},update:function(b,c,d){Vec2.Sa(b.b.Eb,0,0);if(sc.q.pu()&&sc.Ca.hB.raa){d.xW=0;return d.ab<120||d.ab>320?a.OAa:a.mAa}if(d.ab>48)return a.Bya;if(d.ab<4)return a.vTa;if(Vec2.oc(d.xC,b.face)>Math.PI*0.5)return a.mAa}},OAa:{start:function(a){a.Ei(a.ag.sh);a.sw(11);a.n.move=4},update:function(b,c,d){b.b.kg=1;d.xW=0;if(b.Af.path.vu()||b.n.move<=
0)return a.IDLE;b.Zg||d.xW>1.5&&b.j5()}},vTa:{start:function(a){a.Ei(a.ag.sh);a.b.kg=0.5;a.sw(2)},update:function(b,c,d){b.Yt=j;Vec2.assign(b.face,d.xC);if(d.ab>=16){Vec2.Sa(b.b.Eb,0,0);return a.IDLE}if(b.Af.path.vu())return a.IDLE}},mAa:{start:function(a){a.Ei(a.ag.sh)},update:function(b,c,d){Vec2.ZK(b.face,d.xC,Math.PI*2*ig.g.ga*2);Vec2.Sa(b.b.Eb,0,0);if((!sc.q.pu()||!sc.Ca.hB.raa)&&d.ab>48)return a.Bya;if(Vec2.oc(d.xC,b.face)<Math.PI*0.1)return a.IDLE}},Bya:{start:function(a){a.Ei(a.ag.sh);a.sw(1)},
update:function(b,c,d){if(sc.q.pu()&&sc.Ca.hB.raa)return a.OAa;b.b.kg=d.ab>80?1:d.ab/80;if(b.Zg)b.b.kg=1;if(b.Af.path.vu())return a.IDLE;b.Zg||d.xW>1.5&&b.j5()}},cE:{start:function(a){a.hX();a.Ei(a.ag.oq);a.Ol.Ga=j},update:function(b,c,d){Vec2.Sa(b.b.Eb,0,0);if(b.target){if(!sc.Ca.hB.Cdb&&b.n.vk<=0){if(sc.tt.fjb(b.target,b)){b.n.vk=0.2;return a.Nxa}c=0.3;Math.random()<=sc.tt.jJa(b.target,b)&&(sc.tt.plb(b.target)?c=0:sc.tt.rlb(b.target)&&(c=1));return Math.random()<c?a.OTa:a.AXa}if(d.ab<48||d.ab>160)return a.NTa;
if(b.n.move<=0&&b.n.vk>0.5){b.n.move=0.5+Math.random()*0.5;return a.Nxa}}}},Nxa:{start:function(a,b,c,d){a.Ei(a.ag.oq);a.Ol.Ga=j;if(sc.tt.$ab(b,a))a.Ol.offset=0.5;a.b.kg=1;a.sw(5);d.sq=0},update:function(b){if(b.Af.path.vu())return a.cE}},OTa:{start:function(a,b,c,d){a.Ei(a.ag.sh);a.Ol.Ga=w;a.b.kg=1;if(sc.tt.BJa(a.target,this))a.sw(9);else if(sc.tt.CJa(a.target,this))a.sw(10);else{a.Ol.Ga=j;a.Ei(a.ag.oq);a.sw(6)}d.sq=0},update:function(b,c,d,l){if(l.sq==0){if(b.Af.path.vu()){b.Ol.Ga=j;b.Ei(b.ag.oq);
this.pRa(b,d,l)}}else if(l.sq<4&&b.n.action<=0)this.pRa(b,d,l);else if(l.sq==4&&b.n.action<=0){b.Qta();return a.cE}},pRa:function(a,b,c){a.xk();c.sq++;c=c.sq==1?"THROW_CHARGED":c.sq%2==1?"THROW_NORMAL":"THROW_NORMAL_REV";Vec2.assign(a.face,b.xC);Vec2.assign(a.fga,b.xC);a.setAttribute("dashDir",a.face);a.saa(c)}},NTa:{start:function(a){a.Af.path.U2();a.Ei(a.ag.sh);a.Ol.Ga=w;a.b.kg=1;a.sw(3)},update:function(b,c,d){if(b.Af.path.vu())if(d.ab<48||d.ab>160)b.sw(3);else return a.cE}},Hmb:{start:function(a,
b,c,d){d.sq=0},update:function(a,b,c,d){a.n.action<=0&&this.Qfa(a,c,d)},Qfa:function(a,b,c){a.xk();c.sq++;c=c.sq%2==1?"ATTACK":"ATTACK_REV";a.b.Mp(ig.la.VIRTUAL);Vec2.assign(a.face,b.xC);a.setAttribute("dashDir",Vec2.create());a.saa(c)}},AXa:{start:function(a,b,c,d){a.Af.path.U2();a.Ei(a.ag.sh);a.b.kg=1;d.naa=w;if(sc.tt.BJa(a.target,this)){d.naa=j;a.sw(7)}else if(sc.tt.CJa(a.target,this)){d.naa=j;a.sw(8)}else a.sw(4);d.sq=0},update:function(b,c,d,l){if(l.naa){if(c=b.Af.path.vu()){b.sw(4);l.naa=w}}else if(l.sq==
0)(c=b.Af.path.vu())||d.ab<16?this.Qfa(b,d,l):d.ab<32&&b.b.Mp(ig.la.VIRTUAL);else if(l.sq<b.q.DN&&b.n.action<=0){if(d.ab>48){b.Qta();return a.cE}this.Qfa(b,d,l)}else if(l.sq==b.q.DN&&b.n.action<=0){b.Qta();return a.cE}},Qfa:function(a,b,c){a.xk();c.sq++;c=c.sq==a.q.DN?"ATTACK_FINISHER":c.sq%2==1?"ATTACK":"ATTACK_REV";a.b.Mp(ig.la.VIRTUAL);Vec2.assign(a.face,b.xC);a.setAttribute("dashDir",a.face);a.saa(c)}},Zxa:{start:function(a){a.Af.path.U2();a.Ei(a.ag.sh);ig.navigation.zIa(b,a,a.ega,48);var c=a.je(ig.Rb.BOTTOM);
Vec3.sub(c,b);Vec3.hd(c);a.Ol.Ga=j;a.setAttribute("dashDir",c);a.saa("DASH")},update:function(b){if(!b.od)return b.lV?a.cE:a.IDLE}}};Vec2.create();var b=Vec3.create();sc.Yza=sc.aAa.extend({Ca:sc.Qd.PLAYER,XV:sc.kH.ORGANIC,ag:{sh:s,oq:s},He:{Ge:0,n:0,Joa:new ig.ae("guard"),cg:s,V$:s},q:s,TW:Vec2.create(),Dra:s,state:s,lV:w,UG:{xC:Vec2.create(),ab:0,xW:0},uRa:{},n:{action:0,move:0,vk:0},YN:0,fga:Vec2.create(),f:function(b,c,d,l){this.parent(b,c,d,l);this.ag.sh.zK("collType",ig.la.SEMI_IGNORE);this.ag.oq.zK("collType",
ig.la.SEMI_IGNORE);this.Ei(this.ag.sh);this.q=sc.Ca.QU(l.partyMemberName);this.nb=this.q.nb;this.fn=this.q.gba();this.ld();this.ba=this.q.ba;this.ba.tua(this);l.posOffset&&Vec2.assign(this.TW,l.posOffset);this.state=a.IDLE},show:function(a){this.parent(a);if(!a){this.Za.alpha=0;ig.t.O.Zk.Ya("showDefault",this,{align:"CENTER"});this.If(c)}},Tb:function(a){this.q&&this.ba.Yg()&&sc.Ca.Meb(this.q.name);this.parent(a)},Ncb:function(a){if(!this.Ne){this.q=s;this.fO();a?this.Tb():this.If(d)}},Qta:function(){this.n.vk=
this.target&&sc.tt.qLa(this.target)?1:1+Math.random()*2},Ava:function(){this.qPa();if(this.target){this.lV=j;this.n.vk=1+Math.random()*1;this.jx(a.cE)}},fO:function(){this.jn(s);this.lV=w;this.jx(a.IDLE)},saa:function(a){var b=sc.cj[a];b||f(Error("Unknown Action Type: "+a));a=this.q.Hq(b);this.If(a)},oua:function(a){this.n.action=a.action},OJa:function(){return this.target&&!this.target.Ne&&!this.target.Yg()&&this.target.target},qPa:function(){if(!this.OJa()){var a=sc.pb.bJa(this);this.jn(a)}},hX:function(){var a=
sc.pb.bJa(this);this.jn(a)},jx:function(a){this.state=a;this.xk();a=this.target||ig.t.wb;this.state.start&&this.state.start(this,a,this.UG,this.uRa)},VC:function(){return!this.q||this.Pv()||this.ba.Yg()||this.od&&this.od.Gx||this.od==c},Y9a:function(){return 0.5*sc.Ca.hB.xaa},Hab:function(){return sc.q.pu()&&!sc.Ca.hB.raa},update:function(){if(this.YN){this.YN=this.YN-ig.g.ga;if(this.YN<=0)this.YN=0}if(sc.q.Qe()&&this.od&&this.od.Gx)this.Dv=j;if(!this.Dv||!sc.q.Qe()){if(this.Dv){this.Dra=s;this.jx(a.IDLE);
this.Dv=w}this.UG.xW=ig.Oj.Tr(this,0)?0:this.UG.xW+ig.g.ga;if(this.n.vk>0)this.n.vk=this.n.vk-ig.g.ga;if(this.n.move>0)this.n.move=this.n.move-ig.g.ga;if(this.n.action>0)this.n.action=this.n.action-ig.g.ga;var b=ig.t.wb;if(this.VC())this.state=s;else{this.state||this.jx(this.lV?a.cE:a.IDLE);if(sc.q.pu()&&!this.Zg&&this.state!=a.Zxa){var c=sc.pb.UIa(this,48,1);if(c&&!this.YN){this.YN=0.4;if(Math.random()<this.Y9a()){this.ega=c;this.jx(a.Zxa)}}}if(this.n.action<=0&&!this.Zg)if(this.Hab())if(this.lV){if(!this.OJa()){this.qPa();
this.target?this.jx(a.cE):this.fO()}}else this.Ava();else this.lV&&this.fO();b=this.target||b;ig.Xf.Lr(this.b,b.b,this.UG.xC);this.UG.ab=Vec2.length(this.UG.xC);this.UG.ab=this.UG.ab-b.b.size.x/2;(b=this.state.update(this,b,this.UG,this.uRa))&&this.jx(b)}}this.parent();this.q||this.od||this.Tb()},j5:function(){sc.Ca.ehb(this.q.name);ig.t.O.Zk.Ya("showFast",this);this.Af.path.fK=-1},sw:function(a){a==1?this.Dra!=a&&this.Af.path.BL(ig.t.wb,16,{posOffset:this.TW}):a==2?this.Af.path.Cq(ig.t.wb,32):a==
3?this.Af.path.oQ(this.target,120,j):a==4?this.Af.path.BL(this.target,16):a==7?this.Af.path.bfa(this.target,0.5,24,80):a==8?this.Af.path.bfa(this.target,0,24,80):a==5?this.Af.path.OQa(this.target,80,16,j):a==6?this.Af.path.oQ(this.target,100,j):a==9?this.Af.path.bfa(this.target,0.5,100,132,j):a==10?this.Af.path.bfa(this.target,0,100,132,j):a==11&&this.Af.path.oQ(ig.t.wb,240);this.Dra=a},l4:function(a){a>5&&this.j5()}});var c=new ig.rf("enemyStart",[{type:"WAIT",time:0.4}]),d=new ig.rf("enemyStart",
[{type:"SHOW_EFFECT",effect:{sheet:"teleport",name:"hideDefault"},wait:j,align:"CENTER",actionDetached:j}])});ig.G=j;ig.I("game.feature.party.plug-in").J("game.feature.party.party","game.feature.party.party-steps","game.feature.party.party-member-model","game.feature.party.entities.party-member-entity").H(function(){window.Yc&&wm.pj.push("game.feature.party.editors.party-editors")});ig.G=j;
ig.I("game.feature.common-event.common-event").J("impact.feature.storage.storage","game.feature.party.party").H(function(){function a(a,b){return a-b}var b=["D","E","C","B","A","S"],c=["ENTER","LEAVE"];sc.n7={CALL:{s:new ig.u({attributes:{}}),Cb:R(j)},ENEMY_ATTACKS:{s:new ig.u({attributes:{Tf:{c:"Array",d:"Types of enemy attacking",LE:{c:"String",Y:"enemies"},U:j},hrb:{c:"Integer",d:"LevelGap: Enemy Level - Player Level",U:j},irb:{c:"Integer",d:"LevelGap: Enemy Level - Player Level",U:j},Xrb:{c:"Boolean",
d:"If defined: only trigger when player started battle if true or if not player started if false",U:j},eob:{c:"Boolean",d:"If defined => true: only trigger when start of battle, false: only trigger when enemies join during battle",U:j}}}),YT:j,Cb:function(a,b){return a.enemies&&!b.enemies.ZO(a.enemies)||a.levelGapAbove!==g&&b.levelGap<a.levelGapAbove||a.levelGapBelow!==g&&b.levelGap>a.levelGapBelow||a.playerStarted!==g&&a.playerStarted!=b.playerStarted||a.battleStarted!==g&&a.battleStarted!=b.battleStarted?
w:j}},ENEMY_DEFEATED:{s:new ig.u({attributes:{hf:{c:"String",d:"Type of enemy defeated",Y:"enemies",U:j}}}),YT:j,Cb:function(a,b){return!a.enemy||a.enemy==b.enemy}},BATTLE_OVER:{s:new ig.u({attributes:{FV:{c:"Integer",d:"Minimum amount of killed enemies"},hgb:{c:"String",d:"Minimum rank at cooldown",Y:b,U:j}}}),YT:j,Cb:function(a,b){if(a.killCount>b.killCount)return w;if(a.rank){var c=sc.q.hba(a.rank);return b.rank>=c}return j}},COOLDOWN_START:{s:new ig.u({attributes:{Tf:{c:"Array",d:"Type of enemy defeated",
LE:{c:"String",Y:"enemies"},U:j},FV:{c:"Integer",d:"Minimum amount of killed enemies"},hgb:{c:"String",d:"Minimum rank at cooldown",Y:b,U:j},jsb:{c:"String",d:"Rank that was reached since last cooldown",Y:b,U:j}}}),Cb:function(a,b){if(a.enemies&&!b.enemies.ZO(a.enemies))return w;if(a.rankReached){var c=sc.q.hba(a.rankReached);if(b.rank<c||b.prevRank>=c)return w}if(a.rank){c=sc.q.hba(a.rank);return b.rank>=c}return j}},LEVEL_UP:{s:new ig.u({attributes:{aa:{c:"Integer",d:"Minimum Level reached"}}}),
YT:j,Cb:function(a,b){return a.level>=b.rank}},MENU_LEAVE:{s:new ig.u({attributes:{}}),Cb:R(j)},QUEST_ACCEPTED:{s:new ig.u({attributes:{}}),Cb:R(j)},PARTY_MEMBER_EVENT:{s:new ig.u({attributes:{ei:{c:"String",d:"Party member that just DIED",Y:sc.rs},jO:{c:"String",d:"Type of party member event",Y:["DIES","REVIVED","EQUIP_UPDATE"]}}}),YT:j,Cb:function(a,b){return b.member.indexOf(a.member)==-1?w:a.eventType==b.eventType}},DUNGEON_TRANSITION:{s:new ig.u({attributes:{orb:{c:"String",d:"If defined: react on map dungeon change",
Y:c,Oi:j},aob:{c:"String",d:"If defined: react on area dungeon change",Y:c,Oi:j}}}),YT:j,Cb:function(a,b){return(!a.mapTransition||a.mapTransition==b.mapTransition)&&(!a.areaTransition||a.areaTransition==b.areaTransition)}},SOCIAL_ACTION:{s:new ig.u({attributes:{member:{c:"String",d:"Party member that we do the social action with",Y:sc.rs,U:j},actionType:{c:"String",d:"Type of social action",Y:sc.HZ}}}),Cb:function(a,b){return a.member&&a.member!=b.member?w:sc.HZ[a.actionType]==b.actionType},bR:function(a,
b){return sc.So.Vjb(a,b)}},MAP_ENTERED:{s:new ig.u({attributes:{}}),Cb:R(j)}};sc.QTa={ALWAYS:{},REGULAR:{Ep:1},SOMETIMES:{Ep:0.5},RARE:{Ep:0.2}};sc.RR={REPEAT:1,ONCE:2};var d=["REGULAR","SOMETIMES","RARE"],e=[];sc.oUa=ig.sf.extend({Vg:{},Naa:{},Bu:{},e1:[],SN:0,f:function(){ig.Cc.dg(this);window.Yc&&ig.Dj.dg("commonEvents","CommonEnumEditor","Common Events");this.P3a()},nj:function(){this.Bu={}},Rq:function(a){var b={},c;for(c in this.Bu){var d=this.Bu[c];this.Vg[c]&&this.Vg[c].repeat==sc.RR.ONCE&&
(b[c]=d)}a.commonEvents={runData:b}},Qq:function(a){a=a.commonEvents||{};this.Bu=ig.copy(a.runData||{});for(var b in this.Bu)if(this.Bu[b].runCount){this.Bu[b].trigger=this.Bu[b].runCount;delete this.Bu[b].runCount}},$s:function(){if(this.SN){if(sc.q.Qe()||sc.q.iLa()||sc.q.message.hLa()){this.SN=0;this.e1.length=0}this.SN=this.SN-ig.g.Da;if(this.SN<=0){this.SN=0;for(var a=this.e1.length;a--;){var b=this.e1[a];this.ACa(b.type,b.I8a)}this.e1.length=0}}},P3a:function(){this.Vg={};var a=ig.Dj.get("commonEvents");
ig.Oa.$Pa("data/database.json");for(var b in a){var c=new sc.nUa(b,a[b]);this.Vg[b]=c;var d=c.type;this.Naa[d]||(this.Naa[d]=[]);this.Naa[d].push(c)}ig.Oa.$Pa(s)},gr:function(a,b){if(sc.Wa.Tc())return s;if(sc.n7[a].YT){this.SN=0.2;this.e1.push({type:a,I8a:ig.copy(b)})}else return this.ACa(a,b);return s},ACa:function(a,b){var c=this.Ohb(a,b);if(c){var d=c.start(this.fJa(c));this.dKa(c);return d}return s},Ohb:function(a,b){var c=this.Naa[a];if(!c)return s;var m=d.length,n=Math.random();e.length=0;for(var o=
-1,m=0;m<c.length;++m){var t=c[m];if(t.Cb(b)&&!(t.repeat==sc.RR.ONCE&&this.rpa(t)>=t.Vr)){if(!t.Ms.Ep)return t;if(!(t.Ms.Ep<n)&&!(t.repeat!=sc.RR.ONCE&&o!=-1))if(this.fJa(t)==0)this.dKa(t);else{var r=this.rpa(t);if(t.repeat==sc.RR.ONCE&&(o==-1||r<o)){e.length=0;o=r}(o==-1||r==o)&&e.push(t)}}}return e[Math.floor(Math.random()*e.length)]},fJa:function(a){return!a.nX?1:a.nX.indexOf(this.rpa(a)+1)+1},rpa:function(a){return this.Bu[a.name]&&this.Bu[a.name].trigger||0},dKa:function(a){this.Bu[a.name]||
(this.Bu[a.name]={trigger:0});var b=this.Bu[a.name];b.trigger=b.trigger+1||1;a.repeat!=sc.RR.ONCE&&(b.trigger=b.trigger%a.Vr)}});sc.nUa=ig.ra.extend({name:s,type:s,nSa:s,Ms:s,repeat:s,nX:s,Vr:0,jb:s,event:s,f:function(b,c){this.name=b;if(c.type){this.type=c.type.type;this.nSa=c.type}this.Ms=sc.QTa[c.frequency];this.repeat=sc.RR[c.repeat];this.jb=new ig.ce(c.condition);this.jO=ig.$y[c.eventType]||ig.$y.PARALLEL;if(this.nX=c.runOnTrigger||s){this.nX.sort(a);this.Vr=this.nX.last()}else this.Vr=1;this.event=
new ig.Ra({steps:c.event,input:{runCount:{_type:"Number"}}});this.event.yob=j},Cb:function(a){return!this.jb.evaluate()?w:sc.n7[this.type].Cb(this.nSa,a)},start:function(a){var a={runCount:a},b=sc.n7[this.type];return b.bR?b.bR(this.event,a):sc.So.bR(this.jO,this.event,a)}});ig.wf(function(){return sc.yq=new sc.oUa})});ig.G=j;
ig.I("game.feature.common-event.common-event-steps").J("game.feature.common-event.common-event","impact.base.action","impact.base.event").H(function(){ig.ma.TRIGGER_COMMON_EVENTS=ig.na.extend({Tma:s,s:new ig.u({attributes:{Tma:{c:"String",d:"Type of Common Event",Y:sc.n7}}}),f:function(a){this.Tma=a.commonEventType},start:function(){sc.yq.gr(this.Tma,{})}})});ig.G=j;
ig.I("game.feature.common-event.plug-in").J("game.feature.common-event.common-event","game.feature.common-event.common-event-steps").H(function(){window.Yc&&wm.pj.push("game.feature.common-event.editors.common-event-editors")});ig.G=j;
ig.I("game.features").J("game.loader","game.constants","impact.feature.database.plug-in","impact.feature.gamepad.plug-in","impact.feature.base.plug-in","impact.feature.bgm.plug-in","impact.feature.event-sheet.plug-in","impact.feature.camera.plug-in","impact.feature.rumble.plug-in","impact.feature.slow-motion.plug-in","impact.feature.effect.plug-in","impact.feature.gui.plug-in","impact.feature.light.plug-in","impact.feature.height-map.plug-in","impact.feature.navigation.plug-in","impact.feature.map-content.plug-in",
"impact.feature.overlay.plug-in","impact.feature.dream-fx.plug-in","impact.feature.parallax.plug-in","impact.feature.screen-blur.plug-in","impact.feature.terrain.plug-in","impact.feature.interact.plug-in","impact.feature.env-particles.plug-in","impact.feature.storage.plug-in","impact.feature.weather.plug-in","impact.feature.map-sounds.plug-in","impact.feature.nwf.plug-in","impact.feature.video.plug-in","impact.feature.influencer.plug-in","game.feature.version.plug-in","game.feature.timers.plug-in",
"game.feature.achievements.plug-in","game.feature.auto-control.plug-in","game.feature.inventory.plug-in","game.feature.font.font-system","game.feature.ar.plug-in","game.feature.base.plug-in","game.feature.bgm.plug-in","game.feature.character.plug-in","game.feature.combat.plug-in","game.feature.game-code.plug-in","game.feature.gui.plug-in","game.feature.map-content.plug-in","game.feature.model.plug-in","game.feature.skills.plug-in","game.feature.msg.plug-in","game.feature.interact.plug-in","game.feature.npc.plug-in",
"game.feature.player.plug-in","game.feature.puzzle.plug-in","game.feature.control.control","game.feature.menu.plug-in","game.feature.quick-menu.plug-in","game.feature.tutorial.plug-in","game.feature.trade.plug-in","game.feature.save-preset.plug-in","game.feature.xeno-dialogs.plug-in","game.feature.quest.plug-in","game.feature.party.plug-in","game.feature.common-event.plug-in").H(F());ig.G=j;
ig.I("game.main").J("impact.base.game","game.config","game.features").H(function(){sc.ZUa=ig.eZ.extend({Xa:F()});sc.KZ={mja:0,RVa:1,dZa:2};sc.uUa=ig.Iya.extend({kMa:sc.ZUa,VU:800,wfa:new ig.$("media/entity/shadow.png"),vR:0,mF:{Uh:0,Oh:0,Mh:0},Em:{Uh:0,Oh:0,Mh:0,qh:w,mga:0.3,gwa:0.3},O:{aO:new ig.ae("dust"),Zk:new ig.ae("teleport")},Kb:{Jfb:new ig.da("media/sound/hud/popup.ogg",0.8)},oEa:0,lla:sc.KZ.mja,ola:[],f:function(){this.parent();sc.version.hbb()&&sc.version.Ehb();ig.Cc.ZLa("cc.save.demo");
sc.options.RF.eKa();ig.input.bind(ig.Ua.kia,"aim");ig.input.bind(ig.Ua.U7,"dash");ig.input.bind(ig.Ua.oza,"scrollUp");ig.input.bind(ig.Ua.nza,"scrollDown");ig.input.bind(ig.Ua.wya,"snapshot");ig.input.bind(ig.Ua.vya,"langedit");ig.input.bind(ig.Ua.tya,"savedialog");ig.platform==ig.pk.DESKTOP&&ig.input.bind(ig.Ua.uya,"fullscreen");window.aj&&ig.hM&&ig.t.Tfb();ig.T.Mc(new sc.SXa);ig.T.Mc(new sc.m1a);ig.T.Mc(new sc.rXa);ig.T.Mc(new ig.Rw);sc.Fcb=new sc.GWa;ig.T.Mc(sc.Fcb);ig.T.Mc(new sc.K0a);ig.T.Mc(new sc.hUa);
ig.T.Mc(new sc.XUa);ig.T.Mc(new sc.VUa);ig.T.Mc(new sc.$_a);ig.T.Mc(new sc.fq);ig.T.Mc(new sc.RZa);ig.T.Mc(new sc.kZa);window.testGui=new sc.p1a;ig.T.Mc(window.testGui);sc.T={};sc.T.VA=new sc.c_a;sc.T.tkb=new sc.c1a;sc.T.AMa=new sc.aYa;sc.T.Dcb=new sc.HWa;sc.T.T8a=new sc.KVa;sc.T.dgb=new sc.IVa;sc.T.egb=new sc.NZa;sc.T.Kcb=new sc.eXa;sc.T.adb=new sc.yXa;sc.T.VA.XB(sc.T.tkb);sc.T.VA.XB(sc.T.dgb);sc.T.VA.XB(sc.T.egb);sc.T.VA.XB(sc.T.Kcb);sc.T.VA.XB(sc.T.adb);sc.T.VA.XB(sc.T.T8a);sc.T.VA.XB(sc.T.AMa);
sc.T.VA.XB(sc.T.Dcb);ig.T.Mc(sc.T.VA);ig.vd.Te(0,0,0,1,0);window.IG_LOAD_SLOT!=g?this.Gca(window.IG_LOAD_SLOT):window.SC_SKIP_TITLE?this.start():sc.q.vHa();ig.Cc.Whb(function(a){return a=="NEW"||a=="LOAD"?w:!sc.q.oX});this.Nf.ypa=function(a){return ig.mc.uqa(ig.mc.dpa(a.i.x+a.size.x/2,a.i.y+a.size.y/2,a.aa,0,0))?j:w};this.Nf.zpa=function(a){return ig.mc.uqa(a.P.mc)?j:w}},update:function(){if(this.vR>0){this.vR=this.vR-ig.g.Da;this.vR<=0&&this.Gkb()}this.parent()},Xa:function(){this.parent()},lJa:function(){return sc.version.toString()},
Pla:function(a){this.ola.push(a)},start:function(a,b){this.lla=a!=g?a:sc.KZ.mja;sc.q.v8a();sc.q.oU();this.vR=b||0.3},Gca:function(a){this.oEa=a||0;sc.q.t8a();sc.q.oU();this.vR=0.3},rJa:function(){this.sfa(0,0,0,w);this.mF.Uh=0;this.mF.Oh=0;this.mF.Mh=0;this.vR=0.8;sc.q.A8a()},Gkb:function(){switch(sc.q.Ml){case sc.Yf.oia:sc.pH&&sc.pH.Krb();if(this.lla==sc.KZ.RVa)this.Zk("rookie-harbor.west",new ig.jz("start"),"NEW");else if(this.lla==sc.KZ.dZa)this.Zk("rhombus-dng.entrance",new ig.jz("start"),"NEW");
else if(window.LOAD_LEVEL_ON_GAME_START){var a=window.MARKER_ON_GAME_START,a=a?new ig.jz(a):s;this.Zk(window.LOAD_LEVEL_ON_GAME_START,a,"NEW")}else this.Zk("hideout.entrance",new ig.jz("start"),"NEW");break;case sc.Yf.Oia:sc.q.Ir();ig.t.reset();sc.q.vHa();break;case sc.Yf.aia:ig.Cc.load(this.oEa)}},iqb:function(){sc.q.Ir();ig.t.reset()},qhb:function(){var a=new ig.Ra({steps:[{type:"SET_OVERLAY_CORNER",alpha:0,time:0.5,color:"RED"},{type:"SET_OVERLAY",alpha:1,time:0.5,color:"white"},{type:"WAIT",time:1},
{type:"SET_OVERLAY",alpha:1,time:0.5,color:"black"},{type:"WAIT",time:1},{type:"LOAD"}]});this.Vg.wq(a,ig.bl.BLOCKING)},sfa:function(a,b,c,d){this.Em.Uh=a;this.Em.Oh=b;this.Em.Mh=c;this.Em.qh=d},Vua:function(a,b){this.Em.mga=a;this.Em.gwa=b},ENa:function(){ig.vd.Te(this.Em.Uh,this.Em.Oh,this.Em.Mh,1,this.Em.mga,this.Em.qh);this.mF.Uh=this.Em.Uh;this.mF.Oh=this.Em.Oh;this.mF.Mh=this.Em.Mh;this.Em.Uh=0;this.Em.Oh=0;this.Em.Mh=0;this.Em.qh=w;sc.q.D8a();return this.Em.mga},DNa:function(){sc.q.u8a()},
uGa:function(){var a=this.CIa(ig.ya.Player)[0];a||(a=this.af(ig.ya.Player,0,0,0));this.wb=a},EIa:function(a){a.save=ig.Cc.OIa()},Kma:function(){this.parent()},Xqa:function(a){if(ig.Cc.Wea){sc.q.R.Tea();ig.Cc.Wea=w}sc.q.Qe()&&sc.q.oU();this.parent(a)},$La:function(){this.parent();this.xJa()},xJa:function(){if(this.ola.length>0){ig.t.EQ(j);var a=this.ola.pop();this.Kb.Jfb.play();sc.rn.GQa(a,j,this.xJa.bind(this));this.MJa=j}else{this.MJa=w;sc.q.Ir();ig.vd.wd(0,this.Em.gwa);this.Em.gwa=0.3;this.Em.mga=
0.3;if(!sc.yq.gr("MAP_ENTERED",{})){a=new ig.Ra({steps:[{type:"DO_ACTION",entity:this.wb,action:[{type:"WAIT",time:0.1},{type:"WAIT_UNTIL_ON_GROUND"}]}]});ig.t.Vg.wq(a,ig.bl.BLOCKING)}}}});window.startCrossCode=function(){window.aj&&sc.pH.dpb();ig.cdb()}});
