function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return n?n.call(e):{next:t(e)}}function n(t){if(!(t instanceof Array)){t=e(t);for(var n,a=[];!(n=t.next()).done;)a.push(n.value);t=a}return t}var a="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e},r;if("function"==typeof Object.setPrototypeOf)r=Object.setPrototypeOf;else{var i;t:{var o={ta:!0},h={};try{h.__proto__=o,i=h.ta;break t}catch(t){}i=!1}r=i?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var l=r;function s(t,e){if(t.prototype=a(e.prototype),t.prototype.constructor=t,l)l(t,e);else for(var n in e)if("prototype"!=n)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(e,n);r&&Object.defineProperty(t,n,r)}else t[n]=e[n]}function u(){this.ma=new Date,this.ba=this.f=0}function f(t,e){var n=m,a=.1,r=this;e=void 0===e?null:e,a=void 0===a?0:a,this.g=0,this.L=[],this.K=[],this.ca=void 0===n?null:n,this.C=this.R=0,this.m=!1,this.Na=a,this.Fa=a+.2,this.state=this.A=this.s=0,t&&t.forEach(function(t){window.addEventListener("keydown",function(e){e.code!=t&&e.keyCode!=t||(e=p(r.L,t)).ga&&(r.L=e.ea,c(r))}),window.addEventListener("keyup",function(e){e.code!=t&&e.keyCode!=t||(r.L=d(r.L,t),c(r))})}),e&&e.forEach(function(t){window.addEventListener("keydown",function(e){e.code!=t&&e.keyCode!=t||(e=p(r.K,t)).ga&&(r.K=e.ea,c(r))}),window.addEventListener("keyup",function(e){e.code!=t&&e.keyCode!=t||(r.K=d(r.K,t),c(r))})})}function c(t){var e=t.L.length-t.K.length;0<e&&1!=t.g?(t.g=1,t.C=0,t.A=0,t.s=0):0>e&&-1!=t.g?(t.g=-1,t.C=0,t.A=0,t.s=0):0!=t.g&&(t.g=0,t.C=0,t.A=0,t.s=0)}function p(t,e){var n=!1;return-1===t.indexOf(e)&&(t.push(e),n=!0),{ea:t,ga:n}}function d(t,e){var n=t.indexOf(e);return-1<n&&t.splice(n,1),t}u.prototype.update=function(t){t=void 0===t?null:t;var e=new Date;this.f=t||(e-this.ma)/1e3,this.ma=e,this.ba+=this.f},f.prototype.update=function(){this.ca&&0!=this.g?(this.C+=this.ca.f,this.s+=this.ca.f,0==this.R||1<this.A&&this.s>=this.Na||1>=this.A&&this.s>=this.Fa?(this.m=!0,this.A+=1,this.s=0):this.m=!1):this.m=!1,this.state=0==this.g?0!=this.R?3:0:0==this.R?1:2,this.R=this.C};var v=function(){function t(t,e){this.canvas=t,this.va=this.canvas.getContext("2d"),this.H=new a(e)}function a(t){this.G={J:2,aa:1,fa:1,stroke:"#000",strokeWidth:1,xa:0,wa:.95,W:9,fillStyle:"hachure",u:-1,ka:-41,la:-1,Ra:-1,Qa:-1,Va:-1,b:0,Pa:!1,ia:!1,ya:!1},this.ha=t||{},this.ha.options&&(this.G=this.M(this.ha.options))}function r(t){this.b=t}function i(t){this.I=t}function o(){return h.apply(this,arguments)||this}function h(t){this.I=t}function l(t,n,a){if(t&&t.length){var r=(n=e(n)).next().value,i=n.next().value;a*=Math.PI/180;var o=Math.cos(a),h=Math.sin(a);t.forEach(function(t){var n=e(t),a=n.next().value;n=n.next().value,t[0]=(a-r)*o-(n-i)*h+r,t[1]=(a-r)*h+(n-i)*o+i})}}function u(t){var e=t[0];return t=t[1],Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function f(t,e,n,a){var r=e[1]-t[1];e=t[0]-e[0],t=r*t[0]+e*t[1];var i=a[1]-n[1];a=n[0]-a[0],n=i*n[0]+a*n[1];var o=r*a-i*e;return o?[(a*t-e*n)/o,(r*n-i*t)/o]:null}function c(t,e,n){var a=t.length;if(3>a)return!1;var r=[Number.MAX_SAFE_INTEGER,n];e=[e,n];for(var i=n=0;i<a;i++){var o=t[i],h=t[(i+1)%a];if(v(o,h,e,r)){if(0===d(o,e,h))return p(o,e,h);n++}}return 1==n%2}function p(t,e,n){return e[0]<=Math.max(t[0],n[0])&&e[0]>=Math.min(t[0],n[0])&&e[1]<=Math.max(t[1],n[1])&&e[1]>=Math.min(t[1],n[1])}function d(t,e,n){return 0==(t=(e[1]-t[1])*(n[0]-e[0])-(e[0]-t[0])*(n[1]-e[1]))?0:0<t?1:2}function v(t,e,n,a){var r=d(t,e,n),i=d(t,e,a),o=d(n,a,t),h=d(n,a,e);return r!==i&&o!==h||!(0!==r||!p(t,n,e))||!(0!==i||!p(t,a,e))||!(0!==o||!p(n,t,a))||!(0!==h||!p(n,e,a))}function g(t,e){var a=[0,0],r=Math.round(e.ka+90);r&&l(t,a,r);var i=function(t,e){var a=[].concat(n(t));a[0].join(",")!==a[a.length-1].join(",")&&a.push([a[0][0],a[0][1]]);var r=[];if(a&&2<a.length){var i=e.la;0>i&&(i=4*e.strokeWidth),i=Math.max(i,.1);for(var o=[],h=0;h<a.length-1;h++){var l=a[h],s=a[h+1];if(l[1]!==s[1]){var u=Math.min(l[1],s[1]);o.push({F:u,B:Math.max(l[1],s[1]),x:u===l[1]?l[0]:s[0],Ga:(s[0]-l[0])/(s[1]-l[1])})}}if(o.sort(function(t,e){return t.F<e.F?-1:t.F>e.F?1:t.x<e.x?-1:t.x>e.x?1:t.B===e.B?0:(t.B-e.B)/Math.abs(t.B-e.B)}),!o.length)return r;for(var f=[],c=o[0].F;f.length||o.length;){if(o.length){for(a=-1,h=0;h<o.length&&!(o[h].F>c);h++)a=h;o.splice(0,a+1).forEach(function(t){f.push({Ua:c,h:t})})}if((f=f.filter(function(t){return!(t.h.B<=c)})).sort(function(t,e){return t.h.x===e.h.x?0:(t.h.x-e.h.x)/Math.abs(t.h.x-e.h.x)}),1<f.length)for(a=0;a<f.length&&!((h=a+1)>=f.length);a+=2)r.push([[Math.round(f[a].h.x),c],[Math.round(f[h].h.x),c]]);c+=i,f.forEach(function(t){t.h.x+=i*t.h.Ga})}}return r}(t,e),o,h,s,u;return r&&(l(t,a,-r),h=a,s=-r,u=[],(o=i).forEach(function(t){return u.push.apply(u,n(t))}),l(u,h,s)),i}function x(t,e,n){var a=2*Math.PI/Math.max(n.W,n.W/Math.sqrt(200)*Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)));t=Math.abs(t/2),e=Math.abs(e/2);var r=1-n.wa;return{Y:a,ra:t+=M(t*r,n),sa:e+=M(e*r,n)}}function y(t,n,a,r){var i=e(I(r.Y,t,n,r.ra,r.sa,1,r.Y*k(.1,k(.4,1,a),a),a)),o=i.next().value;return i=i.next().value,o=S(o,null,a),a.ia||(a=S(t=e(I(r.Y,t,n,r.ra,r.sa,1.5,0,a)).next().value,null,a),o=o.concat(a)),{Ba:i,$:{type:"path",o:o}}}function b(t,e){var n=[];if(t.length){var a=e.J||0,r=t.length;if(2<r){n.push({i:"move",data:[t[0][0]+M(a,e),t[0][1]+M(a,e)]});for(var i=1;i<r;i++)n.push({i:"lineTo",data:[t[i][0]+M(a,e),t[i][1]+M(a,e)]})}}return{type:"fillPath",o:n}}function m(t,e){var n=e.fillStyle||"hachure";if(!T[n])switch(n){case"zigzag":T[n]||(T[n]=new o(R));break;case"dots":T[n]||(T[n]=new i(R));break;default:T[n="hachure"]||(T[n]=new h(R))}return T[n].X(t,e)}function w(t){return t.qa||(t.qa=new r(t.b||0)),t.qa.next()}function k(t,e,n,a){return n.aa*(void 0===a?1:a)*(w(n)*(e-t)+t)}function M(t,e,n){return k(-t,t,e,void 0===n?1:n)}function z(t,e,n,a,r,i){var o=void 0!==i&&i?r.ya:r.ia;return i=A(t,e,n,a,r,!0,!1),o?i:(t=A(t,e,n,a,r,!0,!0),i.concat(t))}function A(t,e,n,a,r,i,o){function h(){return M(f,r,1)}function l(){return M(c,r,1)}var s=Math.pow(t-n,2)+Math.pow(e-a,2),u=Math.sqrt(s),f=r.J||0;f*f*100>s&&(f=u/10);var c=f/2;s=.2+.2*w(r),u=r.fa*r.J*(a-e)/200;var p=r.fa*r.J*(t-n)/200;u=M(u,r,1),p=M(p,r,1);var d=[];return i&&(o?d.push({i:"move",data:[t+l(),e+l()]}):d.push({i:"move",data:[t+M(f,r,1),e+M(f,r,1)]})),o?d.push({i:"bcurveTo",data:[u+t+(n-t)*s+l(),p+e+(a-e)*s+l(),u+t+2*(n-t)*s+l(),p+e+2*(a-e)*s+l(),n+l(),a+l()]}):d.push({i:"bcurveTo",data:[u+t+(n-t)*s+h(),p+e+(a-e)*s+h(),u+t+2*(n-t)*s+h(),p+e+2*(a-e)*s+h(),n+h(),a+h()]}),d}function S(t,e,a){var r=t.length,i=[];if(3<r){var o=[],h=1-a.xa;i.push({i:"move",data:[t[1][0],t[1][1]]});for(var l=1;l+2<r;l++){var s=t[l];o[0]=[s[0],s[1]],o[1]=[s[0]+(h*t[l+1][0]-h*t[l-1][0])/6,s[1]+(h*t[l+1][1]-h*t[l-1][1])/6],o[2]=[t[l+1][0]+(h*t[l][0]-h*t[l+2][0])/6,t[l+1][1]+(h*t[l][1]-h*t[l+2][1])/6],o[3]=[t[l+1][0],t[l+1][1]],i.push({i:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}e&&2===e.length&&(t=a.J,i.push({i:"lineTo",data:[e[0]+M(t,a),e[1]+M(t,a)]}))}else 3===r?(i.push({i:"move",data:[t[1][0],t[1][1]]}),i.push({i:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===r&&i.push.apply(i,n(z(t[0][0],t[0][1],t[1][0],t[1][1],a)));return i}function I(t,e,n,a,r,i,o,h){var l=[],s=[],u=M(.5,h)-Math.PI/2;s.push([M(i,h)+e+.9*a*Math.cos(u-t),M(i,h)+n+.9*r*Math.sin(u-t)]);for(var f=u;f<2*Math.PI+u-.01;f+=t){var c=[M(i,h)+e+a*Math.cos(f),M(i,h)+n+r*Math.sin(f)];l.push(c),s.push(c)}return s.push([M(i,h)+e+a*Math.cos(u+2*Math.PI+.5*o),M(i,h)+n+r*Math.sin(u+2*Math.PI+.5*o)]),s.push([M(i,h)+e+.98*a*Math.cos(u+o),M(i,h)+n+.98*r*Math.sin(u+o)]),s.push([M(i,h)+e+.9*a*Math.cos(u+.5*o),M(i,h)+n+.9*r*Math.sin(u+.5*o)]),[s,l]}h.prototype.X=function(t,e){return this.da(t,e)},h.prototype.da=function(t,e,n){n=void 0!==n&&n;var a=g(t,e);return n&&(t=this.ua(t,a),a=a.concat(t)),{type:"fillSketch",o:this.Ia(a,e)}},h.prototype.Ia=function(t,a){for(var r=[],i=e(t),o=i.next();!o.done;o=i.next())o=o.value,r.push.apply(r,n(this.I.Aa(o[0][0],o[0][1],o[1][0],o[1][1],a)));return r},h.prototype.ua=function(t,e){var a=[];if(1<e.length)for(var r=1;r<e.length;r++){var i=e[r-1];3>u(i)||3<u(i=[e[r][0],i[1]])&&(i=this.Ka(t,i),a.push.apply(a,n(i)))}return a},h.prototype.Z=function(t,e){return c(t,(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2)},h.prototype.Ka=function(t,e){for(var a=Math.max(5,.1*u(e)),r=[],i=0;i<t.length;i++){var o=t[i],h=t[(i+1)%t.length];if(v.apply(null,[o,h].concat(n(e)))&&(o=f(o,h,e[0],e[1]))){h=u([o,e[0]]);var l=u([o,e[1]]);h>a&&l>a&&r.push({Ha:o,ja:h})}}if(1<r.length){if(a=r.sort(function(t,e){return t.ja-e.ja}).map(function(t){return t.Ha}),c.apply(null,[t].concat(n(e[0])))||a.shift(),c.apply(null,[t].concat(n(e[1])))||a.pop(),1>=a.length)return this.Z(t,e)?[e]:[];for(a=[e[0]].concat(n(a),[e[1]]),r=[],i=0;i<a.length-1;i+=2)o=[a[i],a[i+1]],this.Z(t,o)&&r.push(o);return r}return this.Z(t,e)?[e]:[]},s(o,h),o.prototype.X=function(t,e){return this.da(t,e,!0)},i.prototype.X=function(t,e){var n=g(t,e=Object.assign({},e,{W:4,ka:0,aa:1}));return this.za(n,e)},i.prototype.za=function(t,a){var r=[],i=a.la;0>i&&(i=4*a.strokeWidth),i=Math.max(i,.1);var o=a.u;0>o&&(o=a.strokeWidth/2);for(var h=i/4,l=e(t),s=l.next();!s.done;s=l.next()){var f=s.value,c=u(f);c-=(s=Math.ceil(c/i)-1)*i;var p=(f[0][0]+f[1][0])/2-i/4;f=Math.min(f[0][1],f[1][1]);for(var d=0;d<s;d++){var v=f+c+d*i,g=this.I.pa(p-h,p+h,a);v=this.I.pa(v-h,v+h,a),g=this.I.ellipse(g,v,o,o,a),r.push.apply(r,n(g.o))}}return{type:"fillSketch",o:r}};var T={};r.prototype.next=function(){return this.b?(Math.pow(2,31)-1&(this.b=Math.imul(48271,this.b)))/Math.pow(2,31):Math.random()};var R={Ta:function(t,e){return M(t,e)},pa:function(t,e,n){return k(t,e,n)},ellipse:function(t,e,n,a,r){return y(t,e,r,n=x(n,a,r)).$},Aa:function(t,e,n,a,r){return z(t,e,n,a,r,!0)}};return a.oa=function(){return Math.floor(Math.random()*Math.pow(2,31))},a.prototype.M=function(t){return t?Object.assign({},this.G,t):this.G},a.prototype.S=function(t,e,n){return{shape:t,Ja:e||[],options:n||this.G}},a.prototype.line=function(t,e,n,a,r){return r=this.M(r),this.S("line",[{type:"path",o:z(t,e,n,a,r)}],r)},a.prototype.j=function(t,e,a,r,i){i=this.M(i);var o=[],h=[[t,e],[t+a,e],[t+a,e+r],[t,e+r]],l=(h||[]).length;if(2<l){for(var s=[],u=0;u<l-1;u++)s.push.apply(s,n(z(h[u][0],h[u][1],h[u+1][0],h[u+1][1],i)));s.push.apply(s,n(z(h[l-1][0],h[l-1][1],h[0][0],h[0][1],i))),h={type:"path",o:s}}else h=2===l?{type:"path",o:z(h[0][0],h[0][1],h[1][0],h[1][1],i)}:{type:"path",o:[]};return i.fill&&(t=[[t,e],[t+a,e],[t+a,e+r],[t,e+r]],"solid"===i.fillStyle?o.push(b(t,i)):o.push(m(t,i))),"none"!==i.stroke&&o.push(h),this.S("rectangle",o,i)},a.prototype.ellipse=function(t,e,n,a,r){var i=[];return n=y(t,e,r=this.M(r),a=x(n,a,r)),r.fill&&("solid"===r.fillStyle?((t=y(t,e,r,a).$).type="fillPath",i.push(t)):i.push(m(n.Ba,r))),"none"!==r.stroke&&i.push(n.$),this.S("ellipse",i,r)},a.prototype.N=function(t,e,n,a){return(t=this.ellipse(t,e,n,n,a)).shape="circle",t},t.prototype.O=function(t){for(var n=t.options||this.H.G,a=this.va,r=e(t.Ja||[]),i=r.next();!i.done;i=r.next())switch(i=i.value,i.type){case"path":a.save(),a.strokeStyle="none"===n.stroke?"transparent":n.stroke,a.lineWidth=n.strokeWidth,n.La&&a.setLineDash(n.La),n.Ma&&(a.lineDashOffset=n.Ma),this.T(a,i),a.restore();break;case"fillPath":a.save(),a.fillStyle=n.fill||"",this.T(a,i,"curve"===t.shape||"polygon"===t.shape?"evenodd":"nonzero"),a.restore();break;case"fillSketch":this.Ea(a,i,n)}},t.prototype.Ea=function(t,e,n){var a=n.u;0>a&&(a=n.strokeWidth/2),t.save(),n.Ca&&t.setLineDash(n.Ca),n.Da&&(t.lineDashOffset=n.Da),t.strokeStyle=n.fill||"",t.lineWidth=a,this.T(t,e),t.restore()},t.prototype.T=function(t,n,a){a=void 0===a?"nonzero":a,t.beginPath();for(var r=e(n.o),i=r.next();!i.done;i=r.next()){var o=(i=i.value).data;switch(i.i){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}"fillPath"===n.type?t.fill(a):t.stroke()},t.prototype.line=function(t,e,n,a,r){return t=this.H.line(t,e,n,a,r),this.O(t),t},t.prototype.j=function(t,e,n,a,r){return t=this.H.j(t,e,n,a,r),this.O(t),t},t.prototype.ellipse=function(t,e,n,a,r){return t=this.H.ellipse(t,e,n,a,r),this.O(t),t},t.prototype.N=function(t,e,n,a){return t=this.H.N(t,e,n,a),this.O(t),t},{canvas:function(e,n){return new t(e,n)},Sa:function(t){return new a(t)},oa:function(){return a.oa()}}}();zzfxV=.15,zzfx=function(t,e,n,a,r,i,o,h,l,s,u,f,c,p,d,v,g,x,y,b){t=void 0===t?1:t,e=void 0===e?.05:e,n=void 0===n?220:n,o=void 0===o?0:o,h=void 0===h?1:h,l=void 0===l?0:l,p=void 0===p?0:p,d=void 0===d?0:d,v=void 0===v?0:v,x=void 0===x?1:x,b=void 0===b?0:b;var m=2*Math.PI,w=l*=500*m/Math.pow(zzfxR,2),k=(0<d?1:-1)*m/4;e=n*=(1+2*e*Math.random()-e)*m/zzfxR;var M=[],z=0,A=0,S=0,I=1,T=0,R=0,C=0,E;for(a=99+zzfxR*(void 0===a?0:a),y=(void 0===y?0:y)*zzfxR,r=(void 0===r?0:r)*zzfxR,i=(void 0===i?.1:i)*zzfxR,g=(void 0===g?0:g)*zzfxR,s=500*m/Math.pow(zzfxR,3)*(void 0===s?0:s),d*=m/zzfxR,u=m/zzfxR*(void 0===u?0:u),f=(void 0===f?0:f)*zzfxR,c=zzfxR*(void 0===c?0:c)|0,E=a+y+r+i+g|0;S<E;M[S++]=C){++R%(100*v|0)||(C=o?1<o?2<o?3<o?Math.sin(Math.pow(z%m,3)):Math.max(Math.min(Math.tan(z),1),-1):1-(2*z/m%2+2)%2:1-4*Math.abs(Math.round(z/m)-z/m):Math.sin(z),C=(c?1-b+b*Math.sin(2*Math.PI*S/c):1)*(0<C?1:-1)*Math.pow(Math.abs(C),h)*t*.15*(S<a?S/a:S<a+y?1-(S-a)/y*(1-x):S<a+y+r?x:S<E-g?(E-S-g)/i*x:0),C=g?C/2+(g>S?0:(S<E-g?1:(E-S)/g)*M[S-g|0]/2):C);var P=(n+=l+=s)*Math.sin(A*d-k);z+=P-P*p*(1-1e9*(Math.sin(S)+1)%2),A+=P-P*p*(1-1e9*(Math.pow(Math.sin(S),2)+1)%2),I&&++I>f&&(n+=u,e+=u,I=0),!c||++T%c||(n=e,l=w,I=I||1)}return(t=zzfxX.createBuffer(1,E,zzfxR)).getChannelData(0).set(M),(n=zzfxX.createBufferSource()).buffer=t,n.connect(zzfxX.destination),n.start(),n},zzfxX=new(window.AudioContext||webkitAudioContext),zzfxR=44100;var g=[];g.push([{P:[1,3,6,12,15],na:[1,5,10,17],c:-2},"##########.","p1g.1.1.1.g","##########.","2.2.2.2.2.g","##########.",".333.3333.g","##########.","4.4.4.4g4#."]),g.push([{a:100,name:"A Wrapping World"},"#####.#","......#","...#..#","#.###.#",".b#t.p.","..###.#"]),g.push([{a:101,name:"Infinite Inlet"},"..#","p.#",".tbt","#b.b",".tbt"]),g.push([{a:102,name:"Glass Hallway"},"##.##",".t.tp","bb#bb",".t.t","##.##"]),g.push([{a:103,name:"Girded Grid"},".#.#.#","t.b.t",".#.#.#","b.p.b",".#.#.#","t.b.t"]),g.push([{a:200,name:"Wrap Around The Block",c:2},"","####","","####","..b","####","t#.p","####"]),g.push([{a:201,name:"Crowned Conundrum",D:3},"pb...b","b#.#.#",".#ttt#"]),g.push([{a:202,name:"Twisted Terrace",D:3},"b..p",".##.##",".#.t.#","bbt#tb",".#.t.#",".##.##"]),g.push([{a:203,name:"Continuous Corridor",c:3},"######","tb..p","t....b","######","t#...b","tb...#"]),g.push([{a:204,name:"Grandiose Garden",c:3},"..bpb","..#.#",".#.t.#",".bt.tb",".#.t.#","..#.#"]),g.push([{a:300,name:"Sift & Shift"},"bt##|#","###p","####.#"]),g.push([{a:301,name:"Cornered Contraption",c:1},"p",".|","#####",".t#","###"]),g.push([{a:302,name:"Zealous Zigzag"},"#t#t#t",".-..-","###..#",".p####",".-"]),g.push([{a:303,name:"Irregular Infrastructure",c:2},"##.|",".#..p",".#..#",".#.#t","....#",""]),g.push([{a:304,name:"Enchanted Encagement"},"##.#.###.#.#","#..-..#....#","#..p..#.t.t","#..-..##","##.#.###.#.#"]),g.push([{a:305,name:"Riddle Raster",c:-1},"",".t","#|#",".t","#b#","pt","#|#"]),g.push([{a:306,name:"Locked Loungerooms",c:-2},"#########","####..###",".......##","####....#","####","....#...#","#....#","...||.###","##.p","tt#...###"]),g.push([{a:400,name:"Rubble Rundown"},"rrr#..r#",".pb...r#","#t######"]),g.push([{a:401,name:"Quality Questions",c:-2},"rrrrrrr","#t|#|t#","#|t#t|#","rrrprrr","#######","rrrrrrr","#t#|#t#","#|#t#|#","rrrrrrr","#######"]),g.push([{a:402,name:"Swirling Stars"},"....#r+tr","b##..r.rb","b.##..r.b","..t...p","#ttt#rrr#"]),g.push([{a:403,name:"Box Breakout"},"b.#.#.b",".#rpr#","#rrtrr#","...+","#rrtrr#","q#r.r#q","bq#.#.b"]),g.push([{a:404,name:"Edge Not Found",U:1},"","#.#.###.#.#","#p#.#.#.#t#","###.#.#.###","..#.###...#"]);var x=Math,y=70,b=1,m=new u,w=document.getElementById("canvas"),k=w.getContext("2d",{alpha:!1}),M=v.canvas(w),z=document.createElement("canvas"),A=z.getContext("2d"),S=v.canvas(z),I=document.createElement("canvas"),T=I.getContext("2d"),R=v.canvas(I),C=document.createElement("canvas"),E=C.getContext("2d"),P=v.canvas(C),W=document.createElement("canvas"),j=W.getContext("2d"),B=v.canvas(W),O=document.createElement("canvas"),D=O.getContext("2d"),F=v.canvas(O),L=document.createElement("canvas"),K=L.getContext("2d"),G=v.canvas(L),q=[],N=0,_=0,H="Edge Not Found ",X="Press any key",U="",Z=0,J=0,V=0,Q=0,Y=0,$=0;onkeydown=function(t){if("ArrowDown"!=t.key&&"ArrowUp"!=t.key&&" "!=t.key&&"Backspace"!=t.key||t.preventDefault(),!Dt)if(It)ae(0,!0),It=!1;else{var e=t.key;Lt=!0,"Escape"==e&&.1<=zt&&((At=!At)?ae(7,!0):ae(0,!0),St=zt=0),At||("r"==e||"R"==e?Ot||(ae(6),q.push({v:it,V:ht.slice(),D:Z,c:J}),Jt(nt,!1)):t.shiftKey&&"n"==e||"N"==e?Jt(x.min(nt+1,g.length-1)):(t.shiftKey&&"b"==e||"B"==e)&&Jt(x.max(nt-1,0)))}},window.onbeforeunload=function(){return"Quit?"};var tt=null,et=!1;onload=function(){tt=document.querySelector('link[rel="icon"]')};var nt=0,at=g[nt].length,rt=g[nt][0].length,it={x:0,y:0},ot=[],ht=[],lt=[],st=[],ut=[],ft=[],ct="",pt=0,dt=0,vt=1/3,gt=vt,xt=4,yt=xt,bt=0,mt=0,wt=.075,kt=0,Mt=0,zt=.25,At=!1,St=0,It=!0,Tt=new f(["KeyS","ArrowDown"],["KeyW","ArrowUp"]),Rt=new f(["KeyD","ArrowRight"],["KeyA","ArrowLeft"]),Ct=new f(["KeyZ","Backspace"],[]),Et=new f(["KeyX","Space","Enter"],[]),Pt=!1,Wt=[["Sketchbook","#ffffff","#000000","#808080","#ff0000"],["Scratchpad","#202020","#ffffff","#808080","#ffd700"],["Golden Ticket","#303030","#b29700","#8e7900","#efe7d6"],["Ikaniko","#1E2A26","#7CA49B","#267B75","#C8EEE5"],["BackFlipped","#223e32","#b3dd52","#04bf00","#A7C06D"]],jt=0,Bt=!0,Ot=!0,Dt=!1,Ft=0,Lt=!0,Kt=0;window.onresize=function(){w.width=w.clientWidth,w.height=w.clientHeight,Lt=!0},w.width=w.clientWidth,w.height=w.clientHeight;for(var Gt=[],qt=0;qt!=g.length;qt+=1)Gt[qt]=0;var Nt=0,_t=window.localStorage,Ht=_t.getItem("enf-l");if(null!=Ht)for(var Xt=1;Xt!=Gt.length;Xt+=1)"t"==Ht[Xt-1]?(Gt[Xt]=2,Nt++):"f"==Ht[Xt-1]&&(Gt[Xt]=1);function Ut(){try{if(m.update(),Rt.update(),Tt.update(),Ct.update(),Et.update(),!Dt&&!It)if(At){var t=5;if(0==nt&&(t=4),Tt.m&&1==Tt.g)(St+=1)>=t&&(St=0);else if(Tt.m&&-1==Tt.g)0>--St&&(St=t-1);else if(Et.m)switch(St){case 0:At=!At,ae(0,!0);break;case 1:(Bt=!Bt)&&ae(7,!0),re();break;case 2:Pt=!Pt,ae(2,!0),re();break;case 3:.2<=mt&&(mt=0,++jt>=Wt.length&&(jt=0),Lt=!0,ae(2,!0)),re();break;case 4:Jt(0),ae(8,!0),At=!At}}else{if(Tt.m&&ne(0,Tt.g),Rt.m&&ne(Rt.g,0),1==Ct.m&&0!=q.length){if(ae(5),t=q.pop(),it=t.v,ht=t.V,Z=t.D,J=t.c,ct=ct.slice(0,-1),Ot=0==ct.length||" "==ct.slice(-1),0==nt){var e=Yt();ie(e,1)}dt=.1,Lt=!0}Et.m&&1<=bt&&null!=(e=Yt())&&(Ft=st[e].target,Dt=!0,yt=0,ae(0))}dt=x.min(dt+m.f,.1),gt=x.min(gt+m.f,vt),bt=x.min(bt+m.f,1),yt=x.min(yt+m.f,xt),mt=x.min(mt+m.f,.2),kt=x.min(kt+m.f,wt),Mt=x.min(Mt+m.f,.2),zt=x.min(zt+m.f,.25),It&&(bt=.5),y=700>w.width||700>w.height?40:1e3>w.width||900>w.height?55:70,e=1,t=y,1>bt?(e=bt/1,t=y+20-20*te(bt/1)):yt<xt&&0!=nt?(e=1-yt/xt,t=y-50+50*(1-te(yt/xt))):1>yt&&0==nt?(e=1-yt/1,t=y-20*te(yt/1)):(yt>=xt&&0!=nt||1<=yt&&0==nt)&&Dt&&(0==nt?Jt(Ft):(nt==g.length-1&&(H="Victory! ",X="Thank you for playing!",It=!0,ae(9)),Jt(0)),e=0),Pt&&(t=y);var n=at*t,a=rt*t,r=!1;if(!Pt&&gt>=vt||t!=Kt||Lt){!Pt&&gt>=vt&&(b+=1,gt=0),r=!0,Lt=!1,t!=Kt?(C.width=t,C.height=t,I.width=t+10,I.height=t+10,W.width=t+10,W.height=t+10,L.width=t+15,L.height=t+15,O.width=t+15,O.height=t+15):(E.clearRect(0,0,C.width,C.height),E.beginPath(),T.clearRect(0,0,I.width,I.height),T.beginPath(),j.clearRect(0,0,W.width,W.height),j.beginPath(),K.clearRect(0,0,L.width,L.height),K.beginPath(),D.clearRect(0,0,O.width,O.height),D.beginPath());var i=.8;P.N(.5*t,.5*t,t*i,{fill:Wt[jt][1],fillStyle:"solid",stroke:Wt[jt][2],strokeWidth:1,b:b}),R.j(5,5,t,t,{stroke:Wt[jt][2],fill:Wt[jt][2],strokeWidth:1,b:b}),i=.8,B.j(5+.5*(1-i)*t,5+.5*(1-i)*t,t*i,t*i,{stroke:Wt[jt][2],fill:Wt[jt][2],strokeWidth:2,b:b}),i=1.1,G.j(7.5+.5*(1-i)*t,7.5+.5*(1-i)*t,t*i,t*i,{stroke:"none",fill:Wt[jt][2],fillStyle:"dots",u:t/70,strokeWidth:2,b:b}),F.N(.5*t+7.5,.5*t+7.5,1.1*t,{fillStyle:"zigzag",fill:Wt[jt][3],stroke:Wt[jt][2],strokeWidth:1,b:b})}if(null==tt||et||(tt.href=O.toDataURL("image/png"),et=!0),i=0!=N||0!=_,0<N?N=x.max(0,N-2):0>N&&(N=x.min(0,N+2)),0<_?_=x.max(0,_-2):0>_&&(_=x.min(0,_+2)),(r||gt>=vt||.2>=dt||1!=e||i)&&(t!=Kt||Lt?(z.width=a+20,z.height=n+20):(A.clearRect(0,0,z.width,z.height),A.beginPath()),Zt(t),r=!0),r||It){r=1,Pt&&(r=0);var o=x.round(.5*w.width-.5*a-10+.25*N*r),h=x.round(.5*w.height-.5*n-10+.25*_*r),l=x.ceil((w.width-a+10)/a*.5),s=x.ceil((w.height-n+10)/n*.5);0!=Z&&(l+=1),0!=J&&(s+=1);var u=Z-Y*(1-te(x.min(dt/.1,1))),f=J-$*(1-te(x.min(dt/.1,1)));for(k.globalAlpha=1,k.fillStyle=Wt[jt][1],k.fillRect(0,0,w.width,w.height),i=-s;i<=s;i++)for(var c=-l;c<=l;c++)0==c&&0==i||(k.globalAlpha=x.max(0,e-.1*x.abs(i)-x.abs(.1*c)),0<k.globalAlpha&&k.drawImage(z,o+a*c+u*t*i,h+n*i+f*t*c));if(k.globalAlpha=e,k.drawImage(z,x.round(o+N*r),x.round(h+_*r)),M.j(x.round(o-5+.5*N*r),x.round(h-5+.5*_*r),a+5+20,n+5+20,{stroke:Wt[jt][2],b:b}),k.globalAlpha=1,(It||At)&&(k.globalAlpha=.4,k.fillStyle=Wt[jt][1],k.fillRect(-1,-1,w.width+2,w.height+2),k.globalAlpha=1),It||(k.textAlign="left",k.font="40px sans-serif",k.globalAlpha=te(Mt/.2),ee(k,U,40,w.height-40),k.globalAlpha=1),k.font="22px sans-serif",k.fillStyle=Wt[jt][1],k.textAlign="center",k.textBaseline="middle",It){k.font=x.round(1.2*y)+"px sans-serif",k.textAlign="left",k.textBaseline="center",k.fillStyle="black";var p=H,d=k.measureText(p).width;p=p.repeat(x.ceil(w.width/d)+1),o=0,Pt||(o=m.ba%5/5),ee(k,p,-o*d,.5*w.height),k.font=x.round(.5*y)+"px sans-serif",k.textAlign="center",ee(k,X,.5*w.width,.6*w.height)}else At?(d=k.globalAlpha=1,Pt||(d=te(zt/.25)),o=400*d,M.j(-5,-5,o+5,55+250*d,{fill:Wt[jt][2],u:4,stroke:"none",b:x.round(b/2)}),h=50*d,k.globalAlpha=d,M.j(20,25+St*h,o-40,h,{fillStyle:"none",stroke:Wt[jt][1],b:b}),k.fillStyle=Wt[jt][1],k.textAlign="center",p="Audio: ",p=1==Bt?p+"ON":p+"OFF",k.fillText(p,.5*o,50+1*h),k.fillText("[Esc] Resume",.5*o,50),p="Reduce Motion: ",p=1==Pt?p+"ON":p+"OFF",k.fillText(p,.5*o,50+2*h),p="Theme: "+Wt[jt][0]+" ("+(jt+1)+"/"+Wt.length+")",k.fillText(p,.5*o,50+3*h),0!=nt?k.fillText("Back to Level Select",.5*o,50+4*h):(k.font="16px sans-serif",k.fillText("Game by Tom Hermans for js13k 2020",.5*o,50+3.8*h),k.fillText("rough - Copyright (c) 2019 Preet Shihn",.5*o,50+4.2*h),k.fillText("ZzFX - Copyright (c) 2019 Frank Force",.5*o,50+4.6*h)),k.globalAlpha=1):Dt||(M.j(-5,-5,85,85,{fill:Wt[jt][2],u:4,stroke:"none",b:x.round(b/2)}),k.fillText("[Esc]",50,60),0!=nt&&(k.globalAlpha=Ot?.25:1,M.j(w.width-160,w.height-80,100,50,{fill:Wt[jt][2],u:4,stroke:"none",b:x.round(b/2)}),k.fillText("[R] Retry",w.width-110,w.height-55),k.globalAlpha=0<q.length?1:.25,M.j(w.width-280,w.height-80,100,50,{fill:Wt[jt][2],u:4,stroke:"none",b:x.round(b/2)+10}),k.fillText("[Z] Undo",w.width-230,w.height-55)))}Kt=t,window.requestAnimationFrame(Ut)}catch(t){console.error("Whoops! The game crashed.",t)}}function Zt(t){function e(e,n){if(n(0,0),.5>=e.x){var a=(e.y+J+i)%i-e.y;n(r*t,a*t)}else e.x>=r-1.5&&(a=(e.y-J+i)%i-e.y,n(-r*t,a*t));.5>=e.y?n((a=(e.x+Z+r)%r-e.x)*t,i*t):e.y>=i-1.5&&n((a=(e.x-Z+r)%r-e.x)*t,-i*t)}function n(t){return 0<q.length?a(ht[t],q[q.length-1].V[t]):{x:ht[t].x,y:ht[t].y}}function a(t,e){var n=1-Math.max(0,Math.min(dt/.1,1));if(0!=n){var a=x.round(t.x-e.x),o=x.round(t.y-e.y);return 0!=a&&0!=o?0!=pt?(a-=x.sign(a)*r,o=0):(o-=x.sign(o)*i,a=0):1<x.abs(a)?a-=x.sign(a)*r:1<x.abs(o)&&(o-=x.sign(o)*i),n=te(n),{x:t.x-a*n,y:t.y-o*n}}return{x:t.x,y:t.y}}var r=rt,i=at,o=0<q.length?a(it,q[q.length-1].v):{x:it.x,y:it.y};if(0<q.length&&!Pt){var h=Math.max(1,Math.min(q.length,9));h=x.min(h,ct.length-ct.lastIndexOf(" "));for(var l=0;l<h;l+=1){var s=q.length-h+l;if(0>s||s>q.length)break;var u=1;s==q.length-1&&(u=dt/.1);var f,c=oe(x.max(0,(l+(1-u))/h*.25)),p={x:q[s].v.x,y:q[s].v.y},d=q[s].v.x,v=q[s].v.y;switch(ct[s].toLowerCase()){case"u":p.y+=.2,v-=1.2*u;break;case"d":p.y-=.2,v+=1.2*u;break;case"l":p.x+=.2,d-=1.2*u;break;case"r":p.x+=.2,d+=1.2*u}e(p,function(e,n){e=void 0===e?0:e,n=void 0===n?0:n,S.line(10+(p.x+.5)*t+e,10+(p.y+.5)*t+n,10+(d+.5)*t+e,10+(v+.5)*t+n,{strokeWidth:.4*t,stroke:c,b:b+l,aa:.75})})}}for(h=0;h!=ft.length;h++)A.drawImage(L,10+ft[h].x*t-7.5,10+ft[h].y*t-7.5);for(h=0;h!=lt.length;h++)A.drawImage(O,10+lt[h].x*t-7.5,10+lt[h].y*t-7.5);for(h=0;h!=ut.length;h++)A.globalAlpha=ut[h].target<=Nt?.2:1,A.drawImage(W,10+ut[h].x*t-5,10+ut[h].y*t-5);for(A.globalAlpha=1,h=0;h!=ot.length;h++)A.drawImage(I,10+ot[h].x*t-5,10+ot[h].y*t-5);for(h=0;h!=st.length;h++)A.drawImage(O,10+st[h].x*t-7.5,10+st[h].y*t-7.5);for(e(it,function(e,n){A.drawImage(C,10+o.x*t+(void 0===e?0:e)+N,10+o.y*t+(void 0===n?0:n)+_)}),h={l:0};h.l!=ht.length;(h={l:h.l}).l++){s=function(e){return function(n,a){n=void 0===n?0:n,a=void 0===a?0:a,A.drawImage(W,10+y.x*t-5+n,10+y.y*t-5+a),1!=ht[e.l].shift&&3!=ht[e.l].shift||S.line(10+y.x*t+.2*t+n,10+y.y*t+.5*t+a,10+y.x*t+.8*t+n,10+y.y*t+.5*t+a,{stroke:Wt[jt][4],strokeWidth:t/7,b:b}),2!=ht[e.l].shift&&3!=ht[e.l].shift||S.line(10+y.x*t+.5*t+n,10+y.y*t+.2*t+a,10+y.x*t+.5*t+n,10+y.y*t+.8*t+a,{stroke:Wt[jt][4],strokeWidth:t/7,b:b})}}(h);var y=n(h.l);e(ht[h.l],s)}for(A.textAlign="center",A.textBaseline="middle",A.fillStyle=Wt[jt][2],h=0;h!=st.length;h++)A.font=x.round(.5*t)+"px sans-serif",A.fillText(g[st[h].target][0].a.toString(),10+st[h].x*t+.5*O.width-7.5,10+st[h].y*t-7.5+.5*O.height),2==Gt[h+1]?(A.font=x.round(.4*t)+"px sans-serif",A.fillText("✓",10+st[h].x*t+.75*O.width-7.5,10+st[h].y*t-7.5+.75*O.height)):0==Gt[h+1]&&(A.font="bold "+x.round(.25*t)+"px sans-serif",A.fillText("!",10+st[h].x*t+.5*O.width-7.5,10+st[h].y*t-7.5+.8*O.height));for(A.font=x.round(.4*t)+"px sans-serif",A.textAlign="center",A.textBaseline="middle",A.fillStyle=Wt[jt][2],h=0;h!=ut.length;h++)A.globalAlpha=ut[h].target<=Nt?.2:1,ee(A,Nt+"/"+ut[h].target,10+ut[h].x*t+.5*W.width-5,10+ut[h].y*t-5+.5*W.height);A.globalAlpha=1}function Jt(t,e){function n(t,e,n){n!=Ft||i||(it={x:t,y:e},i=!0,U=g[Ft][0].a+": "+g[Ft][0].name+" - [Space] to enter",Mt=0)}e=void 0===e||e,nt=t;var a=g[t].slice(),r=a.shift();0==Gt[nt]&&(Gt[nt]=1,re()),it={x:0,y:0},ot.length=0,ht.length=0,lt.length=0,st.length=0,ft.length=0,_=N=ut.length=0,Ot=!0,Dt=!1,ie(nt),2==Gt[nt]&&0!=nt&&(U+=" ✓"),Z=r.D?r.D:0,J=r.c?r.c:0,V=r.U?r.U:0,Q=r.Oa?r.U:0;var i=!1,o=null;r.na&&(o=r.na.slice());var h=0;at=a.length;for(var l=rt=0;l<at;l++){rt=x.max(rt,a[l].length);for(var s=0;s<a[l].length;s++)switch(a[l].substring(s,s+1).toLowerCase()){case"p":i||(it={x:s,y:l});break;case"#":ot.push({x:s,y:l});break;case"b":ht.push({x:s,y:l,shift:0});break;case"-":ht.push({x:s,y:l,shift:1});break;case"|":ht.push({x:s,y:l,shift:2});break;case"+":ht.push({x:s,y:l,shift:3});break;case"t":lt.push({x:s,y:l});break;case"1":st.push({x:s,y:l,target:o[0]}),n(s,l,o[0]),o[0]++;break;case"2":if(Nt<r.P[1]){lt.push({x:s,y:l});break}st.push({x:s,y:l,target:o[1]}),n(s,l,o[1]),o[1]++;break;case"3":if(Nt<r.P[2]){lt.push({x:s,y:l});break}st.push({x:s,y:l,target:o[2]}),n(s,l,o[2]),o[2]++;break;case"4":if(Nt<r.P[3]){lt.push({x:s,y:l});break}st.push({x:s,y:l,target:o[3]}),n(s,l,o[3]),o[3]++;break;case"r":ft.push({x:s,y:l});break;case"g":ut.push({x:s,y:l,target:r.P[h]}),h++}}e?(q=[],ct="",bt=0,yt=xt):ct+=" "}function Vt(t,e){function n(){return t>=rt?(t-=rt,e-=J,!0):0>t&&(t+=rt,e+=J,!0)}var a=n();return e>=at?(e-=at,t-=Z):0>e&&(e+=at,t+=Z),a||n(),{x:t,y:e}}function Qt(t,e,n){for(var a=0;a!=t.length;a++)if(t[a].x==e&&t[a].y==n)return a;return null}function Yt(){return Qt(st,it.x,it.y)}function $t(t,e){var n=Qt(ut,t,e);return null!=ut[n]&&ut[n].target<=Nt?null:n}function te(t){return t*(2-t)}function ee(t,e,n,a){t.miterLimit=2,t.strokeStyle=Wt[jt][2],t.lineWidth=8,t.strokeText(e,n,a),t.fillStyle=Wt[jt][1],t.fillText(e,n,a)}function ne(t,e){function n(t){0==J&&(Y=-t,dt=0,(Z-=t)>=.5*rt?Z-=rt:Z<=.5*-rt&&(Z+=rt))}function a(t){0==Z&&($=-t,dt=0,(J-=t)>=.5*at?J-=at:J<=.5*-at&&(J+=at))}var r="";if(-1==t)r="l";else if(1==t)r="r";else if(1==e)r="d";else{if(-1!=e)return;r="u"}if(0!=t||0!=e){q.push({v:it,V:ht.slice(),D:Z,c:J});var i=!1,o=!1;$=Y=0;var h=Vt(it.x+t,it.y+e),l=h.x;h=h.y;var s=Qt(ht,l,h);if(null!==s){var u=Vt(l+t,h+e),f=u.x;u=u.y,null===Qt(ot,f,u)&&null===Qt(ht,f,u)&&null===Qt(ft,f,u)&&(ht[s]={x:f,y:u,shift:ht[s].shift},it={x:l,y:h},o=i=!0,0!=ht[s].shift&&(1!=ht[s].shift&&3!=ht[s].shift||n(t),2!=ht[s].shift&&3!=ht[s].shift||a(e)))}else null===Qt(ot,l,h)&&null===$t(l,h)&&(it={x:l,y:h},i=!0)}if(i){if(ct=o?ct+r.toUpperCase():ct+r,dt=0,pt=t,Ot=!1,0==nt&&ie(Yt(),1),V?n(V):Q&&a(Q),r=!0,o&&0<lt.length){for(i=0;i!=lt.length;i++)if(null===Qt(ht,lt[i].x,lt[i].y)){r=!1;break}}else r=!1;r?(2!=Gt[nt]&&(Gt[nt]=2,Nt++),re(),ae(4,!0),Dt=!0,yt=0):ae(o?0!=Y||0!=$?3:10:2)}else 0==t&&0==e||(ae(1),q.pop()),N=12*t,_=12*e}function ae(t,e){if(e=void 0!==e&&e,Bt&&(kt>=wt||e))switch(e||(kt=0),t){case 0:zzfx.apply(null,[,.3,176,.02,,.08,3,.4,-.7,-21,-127,.01,.05,,,,.38,,.03]);break;case 1:zzfx.apply(null,[,.3,220,.02,,.08,3,.4,-.7,-21,-127,.01,.05,,,,.38,,.03]);case 2:zzfx.apply(null,[.6,.1,176,.02,,.01,3,.4,-.7,-21,-127,.01,.05,,,,.1,,.02]);break;case 10:zzfx.apply(null,[.5,.1,220,.02,,.01,3,.4,-.7,-21,-127,.01,.05,,,,.1,,.02]);break;case 3:zzfx.apply(null,[.45,.1,250,.02,,.01,3,.4,-.7,-21,-127,.01,.05,,,.1,.1,,.02]);break;case 4:zzfx.apply(null,[.6,,934,.12,.38,.93,1,.27,,.4,-434,.08,.2,.1,,.1,.17,.55,1,.46]);break;case 5:zzfx.apply(null,[,,110,,,,1,1.82,,.1,,,,.1,,.1,.01,.7,.02,.15]);break;case 6:zzfx.apply(null,[,,283,.02,,.11,,.38,,,,,.07,,,.1,.08,.63,.02]);break;case 7:zzfx.apply(null,[,.02,1638,,.05,.17,1,,,,490,.09,,,,.1,.05,.5,.03]);break;case 8:zzfx.apply(null,[,,98,.08,.18,.02,2,2.47,36,.5,,,.04,.1,,.9,.44,,.04]);break;case 9:zzfx.apply(null,[,,525,.18,.28,.17,1,1.24,8.3,-9.7,-151,.03,.06,,,,,.93,.02,.14])}}function re(){for(var t=window.localStorage,e="",n=1;n!=Gt.length;n+=1)e=2==Gt[n]?e+"t":1==Gt[n]?e+"f":e+"n";t.setItem("enf-l",e),t.setItem("enf-c",jt),t.setItem("enf-a",Bt),t.setItem("enf-r",Pt),t.setItem("enf-v",1)}function ie(t,e){e=void 0===e?0:e;var n=U;0==nt||Gt.includes(2)?null!=t&&0!=t+e?(U=g[t+e][0].a+": "+g[t+e][0].name,0==nt&&(U+=" - [Space] to enter")):U=Gt.includes(2)?"":"WASD/Arrow Keys to move":U="Push the box to the goal!",n!=U&&(Mt=0)}function oe(t){var n=Wt[jt][3],a=e(Wt[jt][1].match(/\w\w/g).map(function(t){return parseInt(t,16)})),r=a.next().value,i=a.next().value;a=a.next().value;var o=e(n.match(/\w\w/g).map(function(t){return parseInt(t,16)}));n=o.next().value;var h=o.next().value;return o=o.next().value,"#"+x.round(r+(n-r)*t).toString(16).padStart(2,"0")+x.round(i+(h-i)*t).toString(16).padStart(2,"0")+x.round(a+(o-a)*t).toString(16).padStart(2,"0")}0<=(Ht=parseInt(_t.getItem("enf-c",0)))&&Ht<Wt.length&&(jt=Ht),"false"==(Ht=_t.getItem("enf-a"))&&(Bt=!1),Ht=_t.getItem("enf-r"),Pt="true"==Ht,Jt(nt),window.requestAnimationFrame(Ut);