1import{S as ne,i as ie,s as de,e as g,k as E,c as z,a as F,m as I,d as p,L as T,b as k,f as S,g as y,J as m,M as O,t as V,h as M,K as D,N as B,O as j,P as J,Q as L,l as q,R as ae}from"../chunks/vendor-09c44283.js";function A(l,t,o){const e=l.slice();return e[12]=t[o],e[14]=o,e}function G(l,t,o){const e=l.slice();return e[15]=t[o],e}function R(l){let t,o,e,s,c,n,u,i,r=l[0].story>=1&&U(),d=l[0].story>=2&&v(),a=l[0].story>=3&&H();return{c(){t=g("div"),r&&r.c(),o=E(),d&&d.c(),e=E(),a&&a.c(),s=E(),c=g("img"),this.h()},l(f){t=z(f,"DIV",{class:!0});var h=F(t);r&&r.l(h),o=I(h),d&&d.l(h),e=I(h),a&&a.l(h),s=I(h),c=z(h,"IMG",{src:!0,style:!0,class:!0}),h.forEach(p),this.h()},h(){T(c.src,n=l[2](l[0]))||k(c,"src",n),S(c,"opacity","0"),k(c,"class","svelte-a09uo2"),k(t,"class","text-container svelte-a09uo2")},m(f,h){y(f,t,h),r&&r.m(t,null),m(t,o),d&&d.m(t,null),m(t,e),a&&a.m(t,null),m(t,s),m(t,c),u||(i=O(t,"click",function(){B((l[0].story+=1,l[1]()))&&(l[0].story+=1,l[1]()).apply(this,arguments)}),u=!0)},p(f,h){l=f,l[0].story>=1?r?r.p(l,h):(r=U(),r.c(),r.m(t,o)):r&&(r.d(1),r=null),l[0].story>=2?d?d.p(l,h):(d=v(),d.c(),d.m(t,e)):d&&(d.d(1),d=null),l[0].story>=3?a?a.p(l,h):(a=H(),a.c(),a.m(t,s)):a&&(a.d(1),a=null),h&1&&!T(c.src,n=l[2](l[0]))&&k(c,"src",n)},d(f){f&&p(t),r&&r.d(),d&&d.d(),a&&a.d(),u=!1,i()}}}function U(l){let t,o;return{c(){t=g("div"),o=V(ee),this.h()},l(e){t=z(e,"DIV",{class:!0,style:!0});var s=F(t);o=M(s,ee),s.forEach(p),this.h()},h(){k(t,"class","text svelte-a09uo2"),S(t,"margin-top","8%")},m(e,s){y(e,t,s),m(t,o)},p:D,d(e){e&&p(t)}}}function v(l){let t,o;return{c(){t=g("div"),o=V(oe),this.h()},l(e){t=z(e,"DIV",{class:!0,style:!0});var s=F(t);o=M(s,oe),s.forEach(p),this.h()},h(){k(t,"class","text svelte-a09uo2"),S(t,"margin-top","30%")},m(e,s){y(e,t,s),m(t,o)},p:D,d(e){e&&p(t)}}}function H(l){let t,o;return{c(){t=g("div"),o=V(te),this.h()},l(e){t=z(e,"DIV",{class:!0,style:!0});var s=F(t);o=M(s,te),s.forEach(p),this.h()},h(){k(t,"class","text svelte-a09uo2"),S(t,"margin-top","55%")},m(e,s){y(e,t,s),m(t,o)},p:D,d(e){e&&p(t)}}}function K(l){let t,o,e,s,c,n,u,i,r=l[0].story>=5&&P(),d=l[0].story>=6&&Q(),a=l[0].story>=7&&W();return{c(){t=g("div"),r&&r.c(),o=E(),d&&d.c(),e=E(),a&&a.c(),s=E(),c=g("img"),this.h()},l(f){t=z(f,"DIV",{class:!0});var h=F(t);r&&r.l(h),o=I(h),d&&d.l(h),e=I(h),a&&a.l(h),s=I(h),c=z(h,"IMG",{src:!0,style:!0,class:!0}),h.forEach(p),this.h()},h(){T(c.src,n=l[2](l[0]))||k(c,"src",n),S(c,"opacity","0"),k(c,"class","svelte-a09uo2"),k(t,"class","text-container svelte-a09uo2")},m(f,h){y(f,t,h),r&&r.m(t,null),m(t,o),d&&d.m(t,null),m(t,e),a&&a.m(t,null),m(t,s),m(t,c),u||(i=O(t,"click",function(){B((l[0].story+=1,l[1]()))&&(l[0].story+=1,l[1]()).apply(this,arguments)}),u=!0)},p(f,h){l=f,l[0].story>=5?r?r.p(l,h):(r=P(),r.c(),r.m(t,o)):r&&(r.d(1),r=null),l[0].story>=6?d?d.p(l,h):(d=Q(),d.c(),d.m(t,e)):d&&(d.d(1),d=null),l[0].story>=7?a?a.p(l,h):(a=W(),a.c(),a.m(t,s)):a&&(a.d(1),a=null),h&1&&!T(c.src,n=l[2](l[0]))&&k(c,"src",n)},d(f){f&&p(t),r&&r.d(),d&&d.d(),a&&a.d(),u=!1,i()}}}function P(l){let t,o;return{c(){t=g("div"),o=V(le),this.h()},l(e){t=z(e,"DIV",{class:!0,style:!0});var s=F(t);o=M(s,le),s.forEach(p),this.h()},h(){k(t,"class","text svelte-a09uo2"),S(t,"margin-top","8%")},m(e,s){y(e,t,s),m(t,o)},p:D,d(e){e&&p(t)}}}function Q(l){let t,o;return{c(){t=g("div"),o=V(se),this.h()},l(e){t=z(e,"DIV",{class:!0,style:!0});var s=F(t);o=M(s,se),s.forEach(p),this.h()},h(){k(t,"class","text svelte-a09uo2"),S(t,"margin-top","30%")},m(e,s){y(e,t,s),m(t,o)},p:D,d(e){e&&p(t)}}}function W(l){let t,o;return{c(){t=g("div"),o=V(re),this.h()},l(e){t=z(e,"DIV",{class:!0,style:!0});var s=F(t);o=M(s,re),s.forEach(p),this.h()},h(){k(t,"class","text svelte-a09uo2"),S(t,"margin-top","55%"),S(t,"margin-left","55%")},m(e,s){y(e,t,s),m(t,o)},p:D,d(e){e&&p(t)}}}function X(l){let t,o,e,s,c,n,u=l[3](l[0]),i=[];for(let d=0;d<u.length;d+=1)i[d]=Z(G(l,u,d));let r=l[0].scene==="2ce"&&l[0].door===0&&x(l);return{c(){t=g("div"),o=g("img"),c=E();for(let d=0;d<i.length;d+=1)i[d].c();n=E(),r&&r.c(),this.h()},l(d){t=z(d,"DIV",{class:!0});var a=F(t);o=z(a,"IMG",{src:!0,class:!0}),c=I(a);for(let f=0;f<i.length;f+=1)i[f].l(a);n=I(a),r&&r.l(a),a.forEach(p),this.h()},h(){T(o.src,e=l[2](l[0]))||k(o,"src",e),k(o,"class",s=""+(j(l[0].winState)+" svelte-a09uo2")),k(t,"class","image-container svelte-a09uo2")},m(d,a){y(d,t,a),m(t,o),m(t,c);for(let f=0;f<i.length;f+=1)i[f].m(t,null);m(t,n),r&&r.m(t,null)},p(d,a){if(a&1&&!T(o.src,e=d[2](d[0]))&&k(o,"src",e),a&1&&s!==(s=""+(j(d[0].winState)+" svelte-a09uo2"))&&k(o,"class",s),a&9){u=d[3](d[0]);let f;for(f=0;f<u.length;f+=1){const h=G(d,u,f);
1i[f]?i[f].p(h,a):(i[f]=Z(h),i[f].c(),i[f].m(t,n))}for(;f<i.length;f+=1)i[f].d(1);i.length=u.length}d[0].scene==="2ce"&&d[0].door===0?r?r.p(d,a):(r=x(d),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(d){d&&p(t),L(i,d),r&&r.d()}}}function Z(l){let t,o,e,s,c,n;return{c(){t=g("button"),this.h()},l(u){t=z(u,"BUTTON",{id:!0,class:!0,style:!0}),F(t).forEach(p),this.h()},h(){k(t,"id",o=l[15].id),k(t,"class",e=""+(j(l[15].class)+" svelte-a09uo2")),k(t,"style",s=l[15].style)},m(u,i){y(u,t,i),c||(n=O(t,"click",function(){B(l[15].click)&&l[15].click.apply(this,arguments)}),c=!0)},p(u,i){l=u,i&1&&o!==(o=l[15].id)&&k(t,"id",o),i&1&&e!==(e=""+(j(l[15].class)+" svelte-a09uo2"))&&k(t,"class",e),i&1&&s!==(s=l[15].style)&&k(t,"style",s)},d(u){u&&p(t),c=!1,n()}}}function x(l){let t,o=l[0].keypad,e=[];for(let s=0;s<o.length;s+=1)e[s]=$(A(l,o,s));return{c(){t=g("div");for(let s=0;s<e.length;s+=1)e[s].c();this.h()},l(s){t=z(s,"DIV",{class:!0});var c=F(t);for(let n=0;n<e.length;n+=1)e[n].l(c);c.forEach(p),this.h()},h(){k(t,"class","grid svelte-a09uo2")},m(s,c){y(s,t,c);for(let n=0;n<e.length;n+=1)e[n].m(t,null)},p(s,c){if(c&17){o=s[0].keypad;let n;for(n=0;n<o.length;n+=1){const u=A(s,o,n);e[n]?e[n].p(u,c):(e[n]=$(u),e[n].c(),e[n].m(t,null))}for(;n<e.length;n+=1)e[n].d(1);e.length=o.length}},d(s){s&&p(t),L(e,s)}}}function $(l){let t,o,e;function s(){return l[5](l[14])}return{c(){t=g("div"),this.h()},l(c){t=z(c,"DIV",{class:!0}),F(t).forEach(p),this.h()},h(){k(t,"class","grid-item svelte-a09uo2"),J(t,"selected",l[0].keypad[l[14]])},m(c,n){y(c,t,n),o||(e=O(t,"click",s),o=!0)},p(c,n){l=c,n&1&&J(t,"selected",l[0].keypad[l[14]])},d(c){c&&p(t),o=!1,e()}}}function ue(l){let t,o,e,s,c=l[0].story<4&&R(l),n=l[0].story>=5&&K(l),u=l[0].story===4&&X(l);return{c(){t=E(),c&&c.c(),o=E(),n&&n.c(),e=E(),u&&u.c(),s=q(),this.h()},l(i){ae('[data-svelte="svelte-9el6c0"]',document.head).forEach(p),t=I(i),c&&c.l(i),o=I(i),n&&n.l(i),e=I(i),u&&u.l(i),s=q(),this.h()},h(){document.title="58 Joralemon"},m(i,r){y(i,t,r),c&&c.m(i,r),y(i,o,r),n&&n.m(i,r),y(i,e,r),u&&u.m(i,r),y(i,s,r)},p(i,[r]){i[0].story<4?c?c.p(i,r):(c=R(i),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null),i[0].story>=5?n?n.p(i,r):(n=K(i),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),i[0].story===4?u?u.p(i,r):(u=X(i),u.c(),u.m(s.parentNode,s)):u&&(u.d(1),u=null)},i:D,o:D,d(i){i&&p(t),c&&c.d(i),i&&p(o),n&&n.d(i),i&&p(e),u&&u.d(i),i&&p(s)}}}const be=!0,ee="Fact: There is a house in Brooklyn that is not a house. The windows are blackened. No one is home. It is a New York City subway vent, disguised as a house. This is 58 Joralemon Street.",oe="Not-so-Fact: There has been a service emergency at the Metropolitan Transit Authority. The entire system is on the fritz. Every subway line is experiencing severe delays. The mayor is baffled. Nobody can figure out what is going on.",te="Except you. Your job is to enter 58 Joralemon, figure out the controls to the system, and get the trains back on track. The city is counting on you.",le="Hurray! You saved the day! The citizens of New York City thank you greatly. Your job here is done.",se="Until next time...",re="-Ben Tupper";function w(l,t=1){const o=new Audio(`sounds/${l}.mp3`);o.volume=t*.8,o.play()}function ce(l,t=1){const o=new Audio(`sounds/${l}.mp3`);o.volume=t*.5,o.loop=!0,o.play()}function we(l,t){let o=["n","e","s","w","n"];const e=l.scene.slice(0,2),s=l.scene.slice(2,3);t==="left"&&o.reverse();let c=o.findIndex(n=>n===s);return e+o[c+1]}function fe(l,t){for(var o=0;o<l.length;++o)if(l[o]!==t[o])return 0;return 1}function he(l,t,o){let e={scene:"Fas",el:1,door:0,walk:0,power:0,ladder:1,switch:0,keypad:[0,0,0,0,0,0,0,0,0,0,0,0],keylock:0,winState:0,music:0,story:1};const s=["Op1","Op2","Op3","En1","En2","En3","0ae-el0-walk0","0ae-el0-walk1","0ae-el1-walk0","0ae-el1-walk1","0ae-el2-walk0","0ae-el2-walk1","0an","0as-el0-walk0-ladder0","0as-el0-walk0-ladder1","0as-el0-walk1-ladder0","0as-el0-walk1-ladder1","0as-el1-walk0-ladder0","0as-el1-walk0-ladder1","0as-el1-walk1-ladder0","0as-el1-walk1-ladder1","0as-el2-walk0-ladder0","0as-el2-walk0-ladder1","0as-el2-walk1-ladder0","0as-el2-walk1-ladder1","0au","0aw-power0","0aw-power1","0be-el0-walk0","0be-el0-walk1","0be-el1-walk0","0be-el1-walk1","0be-el2-walk0","0be-el2-walk1","0bn-walk0-power0","0bn-walk0-power1","0bn-walk1-power0","0bn-walk1-power1","0bs-ladder0","0bs-ladder1","0bu-ladder0","0bu-ladder1","0bw","0ce-el0-door0","0ce-el0-door1","0ce-el1","0ce-el2-door0","0cn","0cs","0cw-walk1-power0-ladder0","0cw-walk1-power0-ladder1","0cw-walk1-power1-ladder0","0cw-walk1-power1-ladder1","0de","0dn","0ds","0dw-power0-ladder0","0dw-power0-ladder1","0dw-power1-ladder0","0dw-power1-ladder1","0dw","0le","0ln","0ls-power0","0ls-power1","0lw-door0-ladder0","0lw-door0-ladder1","0lw-door1-walk0-ladder0","0lw-door1-walk0-ladder1","0lw-door1-walk1-ladder0","0lw-door1-walk1-ladder1","0lz","1ae","1an","1as-el0-walk0-ladder0","1as-el0-walk0-ladder1","1as-el0-walk1-ladder0","1as-el0-walk1-ladder1","1as-el1-walk0-ladder0","1as-el1-walk0-ladder1","1as-el1-walk1-ladder0","1as-el1-walk1-ladder1","1as-el2-walk0-ladder0","1as-el2-walk0-ladder1","1as-el2-walk1-ladder0","1as-el2-walk1-ladder1","1aw-walk0-ladder0","1aw-walk0-ladder1","1aw-walk1-ladder0","1aw-walk1-ladder1","1bd-power0-walk0","1bd-power0-walk1","1bd-power1-walk0","1bd-power1-walk1","1be-el0-walk0","1be-el0-walk1","1be-el1-walk0","1be-el1-walk1","1be-el2-walk0","1be-el2-walk1","1bn","1bs-el0-ladder0","1bs-el0-ladder1","1bs-el1-ladder0","1bs-el1-ladder1","1bs-el2-ladder0","1bs-el2-ladder1","1bw","1ce","1cn-power0","1cn-power1","1cs-el0-door0","1cs-el1-do
1or0","1cs-el1-door1-power0","1cs-el1-door1-power1","1cs-el2-door0","1cw-walk0-power0-ladder0","1cw-walk0-power0-ladder1","1cw-walk0-power1-ladder0","1cw-walk0-power1-ladder1","1cw-walk1-power0-ladder0","1cw-walk1-power0-ladder1","1cw-walk1-power1-ladder0","1cw-walk1-power1-ladder1","1de","1dn-walk0-power0","1dn-walk0-power1","1dn-walk1-power0","1dn-walk1-power1","1ds","1dw-walk0-power0-ladder0","1dw-walk0-power0-ladder1","1dw-walk0-power1-ladder0","1dw-walk0-power1-ladder1","1dw-walk1-power0-ladder0","1dw-walk1-power0-ladder1","1dw-walk1-power1-ladder0","1dw-walk1-power1-ladder1","1le","1ln-door0","1ln-door1-walk0","1ln-door1-walk1","1ls-power0","1ls-power1","1lw-door0","1lw-door1","1lz","2ae-el0","2ae-el1","2ae-el2-door0","2ae-el2-door1","2an","2as","2aw-ladder0","2aw-ladder1","2bd-ladder0","2bd-ladder1","2be-el0","2be-el1","2be-el2","2bn","2bs-ladder0","2bs-ladder1","2bw","2ce-door0","2ce-door0","2ce-door1-switch0","2ce-door1-switch1","2ce-door1-switch0","2cn","2cs","2cw-ladder0","2cw-ladder1","2le","2ln-door0","2ln-door1","2ls-power0","2ls-power1","2lw-door0-ladder0","2lw-door0-ladder1","2lw-door1-ladder0","2lw-door1-ladder1","2lz","Fas","Fbs-door0","Fbs-door1","Fcs-door0","Fcs-door1"];function c(){o(0,e)}const n={"0dw":"0cw","0cw":"0bw","0an":"Fas","1as":"1cs","1aw":"1bw","1be":"1ae","1cn":"1an","2aw":"2bw","2be":"2ae","2cw":"2aw"},u=["0bu","Fas","Fbs","Fcs","1bd","2bs","2ce","2bd","0lz","1lz","2lz","0au"];let i=[{name:"Fas",conditions:!0,button:{style:"top: 30%; left: 0; height: 70%; width: 40%; cursor: n-resize;",click:()=>{o(0,e.scene="Fbs",e)}}},{name:"Fas",conditions:!0,button:{style:"top: 50%; left: 50%; height: 50%; width: 50%; cursor: n-resize;",click:()=>{o(0,e.scene="Fcs",e)}}},{name:"Fbs",conditions:!0,button:{class:"left",style:"width: 10%",click:()=>{o(0,e.scene="Fas",e),o(0,e.door=0,e)}}},{name:"Fbs",conditions:!0,button:{class:"right",style:"left: 90%; width: 10%",click:()=>{o(0,e.door=0,e),o(0,e.scene="Fas",e)}}},{name:"Fbs",conditions:{door:0},button:{style:"top: 12%; left: 20%; height: 80%; width: 56%; cursor: pointer;",click:()=>{w("front",.3),o(0,e.door=1,e)}}},{name:"Fbs",conditions:{door:1},button:{class:"right",style:"top: 12%; left: 20%; height: 80%; width: 56%; cursor: n-resize;",click:()=>{o(0,e.scene="1as",e),e.music||(ce("music"),o(0,e.music=1,e))}}},{name:"Fcs",conditions:{door:0},button:{style:"top: 12%; left: 20%; height: 80%; width: 56%; cursor: n-resize;",click:()=>{w("cellar",.3),o(0,e.door=1,e)}}},{name:"Fcs",conditions:{door:1},button:{style:"top: 0; height: 100%; left: 20%; width: 60%; cursor: n-resize;",click:()=>{e.music||(ce("music"),o(0,e.music=1,e)),o(0,e.scene="0as",e),o(0,e.door=0,e)}}},{name:"Fcs",conditions:!0,button:{class:"left",style:"width: 10%",click:()=>{o(0,e.door=0,e),o(0,e.scene="Fas",e)}}},{name:"Fcs",conditions:!0,button:{class:"right",style:"left: 90%; width: 10%",click:()=>{o(0,e.door=0,e),o(0,e.scene="Fas",e)}}},{name:"0as",conditions:{walk:1},button:{class:"forward",click:()=>{o(0,e.scene="0bs",e)}}},{name:"0aw",conditions:!0,button:{class:"up",click:()=>{o(0,e.scene="0au",e)}}},{name:"0aw",conditions:{power:0},button:{style:"top: 33%; height: 31%; left: 36%; width: 35%; cursor: pointer;",click:()=>{o(0,e.power=1,e),w("power",.6),w("electric",.6)}}},{name:"0aw",conditions:{power:1},button:{style:"top: 18%; height: 27%; left: 36%; width: 35%; cursor: pointer;",click:()=>{o(0,e.power=0,e),w("power",.6)}}},{name:"0au",conditions:!0,button:{style:"top: 60%; height: 40%; left: 0; width: 100%; cursor: s-resize",click:()=>{o(0,e.scene="0aw",e)}}},{name:"0bs",conditions:!0,button:{class:"up",style:"background-color: green",click:()=>{o(0,e.scene="0bu",e)}}},{name:"0be",conditions:{walk:1},button:{class:"forward",click:()=>{o(0,e.scene="0ce",e)}}},{name:"0bn",conditions:{walk:1},button:{class:"forward",click:()=>{o(0,e.scene="0an",e)}}},{name:"0bu",conditions:!0,button:{style:"top: 50%; height: 50%; left: 0; width: 100%; cursor: s-resize",click:()=>{o(0,e.scene="0bs",e)}}},{name:"0bu",conditions:{ladder:0},button:{class:"forward",click:()=>{o(0,e.scene="2bs",e)}}},{name:"0ce",conditions:{el:0,door:0},button:{style:"top: 44%; height: 34%; left: 24%; width: 20%; cursor: pointer",click:()=>{o(0,e.door=1,e),w("eldoor",.3)}}},{name:"0ce",conditions:{el:0,door:1},button:{style:"top: 0; height: 100%; left: 25%; width: 50%; cursor: n-resize;",click:()=>{o(0,e.scene="0le",e)}
1}},{name:"0ce",conditions:{el:1},button:{style:"top: 0; height: 100%; left: 25%; width: 50%; cursor: n-resize;",click:()=>{o(0,e.scene="0de",e)}}},{name:"0ce",conditions:{el:2},button:{style:"top: 0; height: 100%; left: 25%; width: 50%; cursor: n-resize;",click:()=>{o(0,e.scene="0de",e)}}},{name:"0ce",conditions:{el:0,door:1},button:{style:"top: 41%; height: 37%; left: 81%; width: 19%; cursor: pointer",click:()=>{o(0,e.door=0,e),w("eldoor",.3)}}},{name:"0lw",conditions:{door:1,walk:1},button:{style:"top:0; height: 100%; left: 25%; width:50%",click:()=>{o(0,e.scene="0cw",e)}}},{name:"1an",conditions:!0,button:{style:"top:0; height: 100%; left: 25%; width:50%",click:()=>{o(0,e.scene="Fas",e)}}},{name:"1bs",conditions:!0,button:{class:"down",click:()=>{o(0,e.scene="1bd",e)}}},{name:"1bd",conditions:!0,button:{class:"left",style:"width: 10%; cursor: s-resize",click:()=>{o(0,e.scene="1bs",e)}}},{name:"1bd",conditions:!0,button:{class:"right",style:"left: 90%; width: 10%; cursor: s-resize;",click:()=>{o(0,e.scene="1bs",e)}}},{name:"1bd",conditions:!0,button:{class:"up",style:"left: 10%; width: 80%; cursor: s-resize;",click:()=>{o(0,e.scene="1bs",e)}}},{name:"1bd",conditions:!0,button:{style:"top: 56%; left: 14%; height: 44%; width: 73%; cursor: pointer;",click:()=>{e.power?(o(0,e.walk=e.walk?0:1,e),w("wheel_power1",.2)):w("wheel_power0",.1)}}},{name:"1cs",conditions:{el:0},button:{style:"top: 0; left: 25%; height: 100%; width: 50%; cursor: pointer;",click:()=>{o(0,e.scene="1ds",e)}}},{name:"1dn",conditions:{el:0},button:{style:"top: 0; left: 25%; height: 100%; width: 50%; cursor: pointer;",click:()=>{o(0,e.scene="1cn",e)}}},{name:"1cs",conditions:{el:1,door:0},button:{style:"top: 42%; left: 54%; height: 44%; width: 25%; cursor: pointer;",click:()=>{o(0,e.door=1,e),w("eldoor",.3)}}},{name:"1cs",conditions:{el:1,door:1},button:{class:"forward",click:()=>{o(0,e.scene="1ls",e)}}},{name:"1ls",conditions:!0,button:{class:"elevator-button",click:()=>{e.power?(o(0,e.scene="2ls",e),o(0,e.el=2,e),w("elbutton_power1",.12)):w("elbutton_power0",.05)}}},{name:"1ls",conditions:!0,button:{class:"elevator-button",style:"top: 70%;",click:()=>{e.power?(o(0,e.scene="1ls",e),o(0,e.el=1,e)):w("elbutton_power0",.05)}}},{name:"1ls",conditions:!0,button:{class:"elevator-button",style:"top: 80%;",click:()=>{e.power?(o(0,e.scene="0ls",e),o(0,e.el=0,e),w("elbutton_power1",.12)):w("elbutton_power0",.05)}}},{name:"1ln",conditions:{door:1},button:{style:"top:0; height: 100%; left: 25%; width:50%",click:()=>{o(0,e.scene="1cn",e)}}},{name:"2ls",conditions:!0,button:{class:"elevator-button",click:()=>{e.power?(o(0,e.scene="2ls",e),o(0,e.el=2,e)):w("elbutton_power0",.05)}}},{name:"2ls",conditions:!0,button:{class:"elevator-button",style:"top: 70%;",click:()=>{e.power?(o(0,e.scene="1ls",e),o(0,e.el=1,e),w("elbutton_power1",.12)):w("elbutton_power0",.05)}}},{name:"2ls",conditions:!0,button:{class:"elevator-button",style:"top: 80%;",click:()=>{e.power?(o(0,e.scene="0ls",e),o(0,e.el=0,e),w("elbutton_power1",.12)):w("elbutton_power0",.05)}}},{name:"0ls",conditions:!0,button:{class:"elevator-button",click:()=>{e.power?(o(0,e.scene="2ls",e),o(0,e.el=2,e),w("elbutton_power1",.12)):w("elbutton_power0")}}},{name:"0ls",conditions:!0,button:{class:"elevator-button",style:"top: 70%;",click:()=>{e.power?(o(0,e.scene="1ls",e),o(0,e.el=1,e),w("elbutton_power1",.12)):w("elbutton_power0",.05)}}},{name:"0ls",conditions:!0,button:{class:"elevator-button",style:"top: 80%;",click:()=>{e.power?(o(0,e.scene="0ls",e),o(0,e.el=0,e)):w("elbutton_power0",.05)}}},{name:"0lw",conditions:{door:0},button:{class:"elevator-door",click:()=>{o(0,e.door=1,e),w("eldoor",.3)}}},{name:"0lw",conditions:{door:1},button:{class:"elevator-door",style:"left: 15%;",click:()=>{w("eldoor",.3),o(0,e.door=0,e)}}},{name:"1ln",conditions:{door:0},button:{class:"elevator-door",style:"left: 10%;",click:()=>{w("eldoor",.3),o(0,e.door=1,e)}}},{name:"1ln",conditions:{door:1},button:{class:"elevator-door",style:"left: 67%; width: 15%;",click:()=>{w("eldoor",.3),o(0,e.door=0,e)}}},{name:"2lw",conditions:{door:0}
1,button:{class:"elevator-door",click:()=>{o(0,e.door=1,e),w("eldoor",.3)}}},{name:"2lw",conditions:{door:1},button:{class:"forward",click:()=>{o(0,e.scene="2aw",e)}}},{name:"2lw",conditions:{door:1},button:{class:"elevator-door",style:"left: 15%;",click:()=>{w("eldoor",.3),o(0,e.door=0,e)}}},{name:"2bs",conditions:!0,button:{style:"top: 0; height: 100%; left: 0; width: 15%; cursor: w-resize",click:()=>{o(0,e.scene="2be",e)}}},{name:"2bs",conditions:!0,button:{class:"right",style:"height: 25%; left: 77%; width: 23%; cursor: e-resize;",click:()=>{o(0,e.scene="2bw",e)}}},{name:"2bs",conditions:!0,button:{class:"right",style:"top: 85%; height: 15%; left: 77%; width: 23%;",click:()=>{o(0,e.scene="2bw",e)}}},{name:"2bs",conditions:!0,button:{style:"top: 54%; height: 46%; left: 15%; width: 60%; cursor: s-resize",click:()=>{o(0,e.scene="2bd",e)}}},{name:"2bs",conditions:{ladder:1},button:{style:"top: 30%; height: 31%; left: 77%; width: 21%; cursor: pointer",click:()=>{o(0,e.ladder=0,e),w("power",.6)}}},{name:"2bs",conditions:{ladder:0},button:{style:"top: 50%; height: 31%; left: 77%; width: 21%; cursor: pointer",click:()=>{o(0,e.ladder=1,e),w("power",.6)}}},{name:"2ae",conditions:{el:1},button:{class:"forward",click:()=>{o(0,e.scene="2ce",e)}}},{name:"2ce",conditions:{winState:0},button:{class:"left",style:"top: 0; height: 100%; left: 0; width: 20%",click:()=>{o(0,e.scene="2cn",e)}}},{name:"2ce",conditions:{winState:0},button:{class:"right",style:"height: 70%; left: 85%; width: 15%",click:()=>{o(0,e.scene="2cs",e)}}},{name:"2bd",conditions:!0,button:{style:"top: 0; height: 25%; left: 0; width: 100%; cursor: n-resize",click:()=>{o(0,e.scene="2bs",e)}}},{name:"2bd",conditions:{ladder:0},button:{style:"top: 25%; height: 67%; left: 10%; width: 83%; cursor: s-resize",click:()=>{o(0,e.scene="0bs",e)}}},{name:"2ae",conditions:{el:2,door:0},button:{style:"top: 41%; height: 37%; left: 20%; width: 20%; cursor: pointer",click:()=>{w("eldoor",.3),o(0,e.door=1,e)}}},{name:"2ae",conditions:{el:2,door:1},button:{style:"top: 0; height: 100%; left: 25%; width: 50%; cursor: pointer",click:()=>{o(0,e.scene="2le",e)}}},{name:"2ae",conditions:{el:2,door:1},button:{style:"top: 41%; height: 37%; left: 65%; width: 20%; cursor: pointer",click:()=>{o(0,e.door=0,e),w("eldoor",.3)}}},{name:"1cs",conditions:{el:1,door:1},button:{style:"top: 41%; height: 37%; left: 6%; width: 20%; cursor: pointer",click:()=>{o(0,e.door=0,e),w("eldoor",.3)}}},{name:"2ce",conditions:{keylock:0},button:{style:"top: 83%; height: 17%; left: 83%; width: 13%; cursor: pointer",click:()=>{o(0,e.keypad=[0,0,0,0,0,0,0,0,0,0,0,0],e),w("elbutton_power0",.05)}}},{name:"2ce",conditions:{keylock:1,winState:0},button:{style:"top: 83%; height: 17%; left: 83%; width: 13%; cursor: pointer",click:()=>{o(0,e.door=1,e),o(0,e.keypad=[0,0,0,0,0,0,0,0,0,0,0,0],e),w("eldoor",.3)}}},{name:"2ce",conditions:{door:1,switch:0},button:{style:"top: 46%; height: 30%; left: 43%; width: 20%; cursor: pointer;",click:()=>{o(0,e.switch=1,e),o(0,e.winState="fade-out",e),w("power",.6),w("train",.15),setTimeout(function(){o(0,e.story+=1,e)},6e3)}}},{name:"2ln",conditions:{door:0},button:{style:"top: 76%; height: 24%; left: 30%; width: 18%; cursor: zoom-in;",click:()=>{o(0,e.scene="2lz",e)}}},{name:"1ln",conditions:{door:0},button:{style:"top: 76%; height: 24%; left: 30%; width: 18%; cursor: zoom-in;",click:()=>{o(0,e.scene="1lz",e)}}},{name:"0ln",conditions:{door:0},button:{style:"top: 76%; height: 24%; left: 30%; width: 18%; cursor: zoom-in;",click:()=>{o(0,e.scene="0lz",e)}}},{name:"0lz",conditions:{door:0},button:{style:"top: 0; height: 100%; left: 0; width: 100%; cursor: zoom-out;",click:()=>{o(0,e.scene="0ln",e)}}},{name:"1lz",conditions:{door:0},button:{style:"top: 0; height: 100%; left: 0; width: 100%; cursor: zoom-out;",click:()=>{o(0,e.scene="1ln",e)}}},{name:"2lz",conditions:{door:0},button:{style:"top: 0; height: 100%; left: 0; width: 100%; cursor: zoom-out;",click:()=>{o(0,e.scene="2ln",e)}}}];function r(b,_){b.door=0,["left","right"].includes(_)?b.scene=we(b,_):_==="forward"?b.scene=n[b.scene]:b.scene=_,c()}function d(b){for(const _ of Object.keys(b))if(e[_]!=b[_])return!1;return!0}function a(b){for(const _ of s){let N={};const Y=_.split("-");N.scene=Y[0];for(const C of Y.slice(1))N[C.slice(0,-1)]=C.slice(-1);if(d(N))return"images/"+_+".jpg"}}function f(b){let _=[];b.scene in n&&_.push({class:"forward",click:()=>r(b,"forward")}),u.includes(b.scene)||_.push({class:"left",click:()=>r(b,"left")}
1,{class:"right",click:()=>r(b,"right")});for(const N of i)b.scene===N.name&&d(N.conditions)&&_.push(N.button);return _}function h(b){w("keypad_buttons",1),o(0,e.keypad[b]=e.keypad[b]?0:1,e),o(0,e.keylock=fe(e.keypad,[0,0,1,0,1,0,0,0,1,0,0,0]),e)}return[e,c,a,f,h,b=>h(b)]}class me extends ne{constructor(t){super();ie(this,t,he,ue,de,{})}}export{me as default,be as prerender};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.