=E,width:"23.5%",onClick:function(){function N(){return d("adjustTimer",{time:s+5})}return N}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:!S||s>=E,width:"23.5%",onClick:function(){function N(){return d("adjustTimer",{time:E})}return N}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041F\u0440\u0435\u0434\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,r.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u041E\u0442\u043A\u043B\u044E\u0447\u0451\u043D",disabled:!S||u&&!h,onClick:function(){function N(){return d("toggleSafety")}return N}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0430\u0439\u043C\u0435\u0440",children:(0,e.createComponentVNode)(2,r.Button,{selected:u,icon:"power-off",disabled:!S||h,content:u?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u041E\u0442\u043A\u043B\u044E\u0447\u0451\u043D",onClick:function(){function N(){return d("bombSet")}return N}()})})]})]})})})}return v}()},46892:function(b,n,t){"use strict";n.__esModule=!0,n.Orbit=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595);function f(h,p){var S=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(S)return(S=S.call(h)).next.bind(S);if(Array.isArray(h)||(S=v(h))||p&&h&&typeof h.length=="number"){S&&(h=S);var T=0;return function(){return T>=h.length?{done:!0}:{done:!1,value:h[T++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(h,p){if(h){if(typeof h=="string")return C(h,p);var S={}.toString.call(h).slice(8,-1);return S==="Object"&&h.constructor&&(S=h.constructor.name),S==="Map"||S==="Set"?Array.from(h):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?C(h,p):void 0}}function C(h,p){(p==null||p>h.length)&&(p=h.length);for(var S=0,T=Array(p);SS},c=function(p,S){var T=p.name,y=S.name;if(!T||!y)return 0;var E=T.match(m),N=y.match(m);if(E&&N&&T.replace(m,"")===y.replace(m,"")){var V=parseInt(E[1],10),I=parseInt(N[1],10);return V-I}return d(T,y)},g=function(p,S){var T=(0,r.useBackend)(S),y=T.act,E=p.searchText,N=p.source,V=p.title,I=N.filter(l(E));return I.sort(c),N.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:V+" - ("+N.length+")",children:I.map(function(O){return(0,e.createComponentVNode)(2,o.Button,{content:O.name,onClick:function(){function x(){return y("orbit",{ref:O.ref})}return x}()},O.name)})})},u=function(p,S){var T=(0,r.useBackend)(S),y=T.act,E=p.color,N=p.thing;return(0,e.createComponentVNode)(2,o.Button,{color:E,onClick:function(){function V(){return y("orbit",{ref:N.ref})}return V}(),children:N.name})},s=n.Orbit=function(){function h(p,S){for(var T=(0,r.useBackend)(S),y=T.act,E=T.data,N=E.alive,V=E.antagonists,I=E.dead,O=E.ghosts,x=E.misc,w=E.npcs,F=(0,r.useLocalState)(S,"searchText",""),W=F[0],$=F[1],z={},k=f(V),M;!(M=k()).done;)for(var D=M.value,A=f(D.antag),P;!(P=A()).done;){var U=P.value;z[U]===void 0&&(z[U]=[]),z[U].push(D)}var K=Object.entries(z);K.sort(function(X,_){return d(X[0],_[0])});var G=function(){function X(_){for(var J=0,ce=[K.map(function(re){var ye=re[0],Ae=re[1];return Ae}),N,O,I,w,x];J0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function(X){var _=X[0],J=X[1];return(0,e.createComponentVNode)(2,o.Section,{title:_,level:2,children:J.filter(l(W)).sort(c).map(function(ce){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:ce},ce.name)})},_)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+N.length+")",children:N.filter(l(W)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,u,{color:"good",thing:X},X.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+O.length+")",children:O.filter(l(W)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,u,{color:"grey",thing:X},X.name)})}),(0,e.createComponentVNode)(2,g,{title:"Dead",source:I,searchText:W}),(0,e.createComponentVNode)(2,g,{title:"NPCs",source:w,searchText:W}),(0,e.createComponentVNode)(2,g,{title:"Misc",source:x,searchText:W})]})})}return h}()},8189:function(b,n,t){"use strict";n.__esModule=!0,n.Particool=void 0;var e=t(89005),a=t(87341),r=t(87341),o=t(72253),i=t(36036),f=t(98595),v=t(9394),C=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createComponentVNode)(2,i.NumberInput,{value:I,stepPixelSize:5,width:"39px",onDrag:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"int"}})}return F}()})},m=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return I=I||[0,0,0,0,0,0],(0,e.createComponentVNode)(2,i.Flex,{children:(0,e.createComponentVNode)(2,i.Flex.Item,{children:I.map(function(F,W){return(0,e.createComponentVNode)(2,i.NumberInput,{value:F,onDrag:function(){function $(z,k){I[W]=k,w("modify_particle_value",{new_data:{name:O,value:I,type:"matrix"}})}return $}()},W)})})})},l=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=(0,o.useLocalState)(V,"particleFloatStep",.01),W=F[0],$=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.NumberInput,{value:I,stepPixelSize:4,step:W,format:function(){function z(k){return(0,a.toFixed)(k,(0,r.numberOfDecimalDigits)(W))}return z}(),width:"80px",onDrag:function(){function z(k,M){return w("modify_particle_value",{new_data:{name:O,value:M,type:"float"}})}return z}()}),(0,e.createComponentVNode)(2,i.Box,{inline:!0,ml:2,mr:1,children:"Step:"}),(0,e.createComponentVNode)(2,i.NumberInput,{value:W,step:.001,format:function(){function z(k){return(0,a.toFixed)(k,4)}return z}(),width:"70px",onChange:function(){function z(k,M){return $(M)}return z}()})],4)},d=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=["num","vector","box","color","circle","sphere","square","cube"],W=["UNIFORM_RAND","NORMAL_RAND","LINEAR_RAND","SQUARE_RAND"],$="",z="",k="",M="";if(v.logger.log(I),I){var D=I.match(/\((.*)\)/);if(D=D||["","","",""],D=D[1].split(", "),D.length===4){$=D[0],M=D[1];var A=D[2].match(/\((.*)\)/);z=A&&A[1];var P=D[3].match(/\((.*)\)/);k=P?P[1]:D[3]}}var U=(0,o.useLocalState)(V,O+"genType",$),K=U[0],G=U[1],X=(0,o.useLocalState)(V,O+"a",z),_=X[0],J=X[1],ce=(0,o.useLocalState)(V,O+"b",k),Ee=ce[0],le=ce[1],re=(0,o.useLocalState)(V,O+"rand",M),ye=re[0],Ae=re[1],xe=function(){v.logger.log(K),w("modify_particle_value",{new_data:{name:O,value:{genType:K,a:_,b:Ee,rand:ye},type:"generator"}})};return(0,e.createComponentVNode)(2,i.Collapsible,{title:"Generator Settings - Hit Set to save",children:(0,e.createComponentVNode)(2,i.Section,{level:2,children:[(0,e.createComponentVNode)(2,i.LabeledList,{children:[(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:K,children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:""+F.join(", "),children:(0,e.createComponentVNode)(2,i.Input,{value:K,onInput:function(){function Oe(ue,ne){return G(ne)}return Oe}()})})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"A",children:(0,e.createComponentVNode)(2,i.Input,{value:_,onInput:function(){function Oe(ue,ne){return J(ne)}return Oe}()})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"B",children:(0,e.createComponentVNode)(2,i.Input,{value:Ee,onInput:function(){function Oe(ue,ne){return le(ne)}return Oe}()})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"Rand Type",children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:""+W.join(", "),children:(0,e.createComponentVNode)(2,i.Input,{value:ye,onInput:function(){function Oe(ue,ne){return Ae(ne)}return Oe}()})})})]}),(0,e.createComponentVNode)(2,i.Button,{content:"Set",onClick:function(){function Oe(){return xe()}return Oe}()})]})})},c=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createComponentVNode)(2,i.Input,{value:I,width:"250px",onInput:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"string"}})}return F}()})},g=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=I?Object.keys(I).map(function(W){return I[W]}):[];return(0,e.createComponentVNode)(2,i.Input,{value:F.join(","),width:"250px",onInput:function(){function W($,z){return w("modify_particle_value",{new_data:{name:O,value:z,type:"numList"}})}return W}()})},u=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{icon:"pencil-alt",onClick:function(){function F(){return w("modify_color_value")}return F}()}),(0,e.createComponentVNode)(2,i.ColorBox,{color:I,mr:.5}),(0,e.createComponentVNode)(2,i.Input,{value:I,width:"90px",onInput:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"color"}})}return F}()})],4)},s=function(N,V){var I=N.value,O=(0,o.useBackend)(V),x=O.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{icon:"pencil-alt",onClick:function(){function w(){return x("modify_icon_value")}return w}()}),(0,e.createComponentVNode)(2,i.Box,{inline:!0,ml:1,children:I})],4)},h={width:"float",height:"float",count:"int",spawning:"float",bound1:"numlist",bound2:"numlist",gravity:"numlist",gradient:"string",transform:"matrix",lifespan:"float",fade:"float",icon:"icon",icon_state:"string",color:"color",color_change:"float",position:"generator",velocity:"generator",scale:"generator",grow:"generator",rotation:"float",spin:"float",friction:"float",drift:"generator"},p=function(N,V){var I=N.name,O={int:(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({},N))),float:(0,e.normalizeProps)((0,e.createComponentVNode)(2,l,Object.assign({},N))),string:(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({},N))),numlist:(0,e.normalizeProps)((0,e.createComponentVNode)(2,g,Object.assign({},N))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({},N))),icon:(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},N))),generator:(0,e.normalizeProps)((0,e.createComponentVNode)(2,d,Object.assign({},N))),matrix:(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({},N)))};return(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:I,children:O[h[I]]||"Not Found (This is an error)"})},S=function(N,V){var I=(0,o.useBackend)(V),O=I.act,x=I.data,w=N.particle;return(0,e.createComponentVNode)(2,i.LabeledList,{children:Object.keys(h).map(function(F){var W=w[F];return(0,e.createComponentVNode)(2,p,{name:F,value:W},F)})})},T=function(){return(0,e.createComponentVNode)(2,i.Collapsible,{title:"Generator Help",children:[(0,e.createComponentVNode)(2,i.Section,{level:2}),(0,e.createComponentVNode)(2,i.Section,{level:2,children:(0,e.createVNode)(1,"table",null,(0,e.createVNode)(1,"tbody",null,[(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Generator type",16),(0,e.createVNode)(1,"td",null,"Result type",16),(0,e.createVNode)(1,"td",null,"Description",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"num",16),(0,e.createVNode)(1,"td",null,"num",16),(0,e.createVNode)(1,"td",null,"A random number between A and B.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector on a line between A and B.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"box",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector within a box whose corners are at A and B",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"color",16),(0,e.createVNode)(1,"td",null,"color (string) or color matrix",16),(0,e.createVNode)(1,"td",null,"Result type depends on whether A or B are matrices or not. The result is interpolated between A and B; components are not randomized separately.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"circle",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random XY-only vector in a ring between radius A and B, centered at 0,0.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"sphere",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector in a spherical shell between radius A and B, centered at 0,0,0.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"square",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random XY-only vector between squares of sizes A and B. (The length of the square is between A*2 and B*2, centered at 0,0.)",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"cube",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector between cubes of sizes A and B. (The length of the cube is between A*2 and B*2, centered at 0,0,0.)",16)],4)],4),2)})]})},y=n.Particool=function(){function E(N,V){var I=(0,o.useBackend)(V),O=I.act,x=I.data,w=x.target_particle||{},F=w&&Object.keys(w).length>0;return(0,e.createComponentVNode)(2,f.Window,{title:"Particool",width:700,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,i.NoticeBox,{danger:!0,children:[" ",String(Date.now())," ",(0,e.createVNode)(1,"br"),"Particles? ",F.toString()," -",(x.target_particle===null).toString()," ",(0,e.createVNode)(1,"br"),"dazta Json - ",JSON.stringify(x.target_particle)]}),(0,e.createComponentVNode)(2,i.Section,{title:(0,e.createComponentVNode)(2,i.Box,{inline:!0,children:"Particle"}),buttons:F?(0,e.createComponentVNode)(2,i.Button.Confirm,{icon:"minus",content:"Remove Particle",onClick:function(){function W(){return O("remove_particle")}return W}()}):(0,e.createComponentVNode)(2,i.Button,{icon:"plus",content:"Add Particle",onClick:function(){function W(){return O("add_particle")}return W}()}),children:[(0,e.createComponentVNode)(2,T),F?(0,e.createComponentVNode)(2,S,{particle:w}):(0,e.createComponentVNode)(2,i.Box,{children:"No particle"})]})]})})}return E}()},56150:function(b,n,t){"use strict";n.__esModule=!0,n.Photocopier=void 0;var e=t(89005),a=t(36036),r=t(72253),o=t(98595),i=n.Photocopier=function(){function m(l,d){var c=(0,r.useBackend)(d),g=c.data,u=g.isAI,s=g.has_toner,h=g.has_item;return(0,e.createComponentVNode)(2,o.Window,{title:"Photocopier",width:240,height:u?309:234,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[s?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.createComponentVNode)(2,v):(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted item."})}),!!u&&(0,e.createComponentVNode)(2,C)]})})}return m}(),f=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.max_toner,h=u.current_toner,p=s*.66,S=s*.33;return(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[p,s],average:[S,p],bad:[0,S]},value:h,minValue:0,maxValue:s})})},v=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.num_copies,h=u.has_enough_toner;return(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:[(0,e.createComponentVNode)(2,a.Flex,{children:[(0,e.createComponentVNode)(2,a.Flex.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.NumberInput,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:s,onDrag:function(){function p(S,T){return g("set_copies",{num_copies:T})}return p}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Button,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){function p(){return g("make_copy")}return p}(),children:"Copy"})})]}),(0,e.createComponentVNode)(2,a.Button,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){function p(){return g("remove")}return p}(),children:"Remove item"})]})},C=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.can_AI_print;return(0,e.createComponentVNode)(2,a.Section,{title:"AI Options",children:(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{fluid:!0,icon:"images",textAlign:"center",disabled:!s,onClick:function(){function h(){return g("ai_photo")}return h}(),children:"Print photo from database"})})})}},57003:function(b,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(78091),f=n.PortablePump=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.direction,u=c.target_pressure,s=c.default_pressure,h=c.min_pressure,p=c.max_pressure;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:405,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,i.PortableBasicInfo),(0,e.createComponentVNode)(2,r.Section,{title:"Pump",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:g?"sign-in-alt":"sign-out-alt",content:g?"In":"Out",selected:g,onClick:function(){function S(){return d("direction")}return S}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Output",children:(0,e.createComponentVNode)(2,r.NumberInput,{value:u,unit:"kPa",width:"75px",minValue:h,maxValue:p,step:10,onChange:function(){function S(T,y){return d("pressure",{pressure:y})}return S}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"minus",disabled:u===h,onClick:function(){function S(){return d("pressure",{pressure:"min"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",disabled:u===s,onClick:function(){function S(){return d("pressure",{pressure:"reset"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"plus",disabled:u===p,onClick:function(){function S(){return d("pressure",{pressure:"max"})}return S}()})]})]})})]})})}return v}()},70069:function(b,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(78091),f=n.PortableScrubber=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.filter_types||[],u=c.target_rate,s=c.default_rate,h=c.min_rate,p=c.max_rate;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:405,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,i.PortableBasicInfo),(0,e.createComponentVNode)(2,r.Section,{title:"Scrubber",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Volume Rate",children:(0,e.createComponentVNode)(2,r.NumberInput,{value:u,unit:"L/s",width:"75px",minValue:h,maxValue:p,step:10,onChange:function(){function S(T,y){return d("rate",{rate:y})}return S}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"minus",disabled:u===h,onClick:function(){function S(){return d("rate",{rate:"min"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",disabled:u===s,onClick:function(){function S(){return d("rate",{rate:"reset"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"plus",disabled:u===p,onClick:function(){function S(){return d("rate",{rate:"max"})}return S}()})]})]})})]})})}return v}()},31197:function(b,n,t){"use strict";n.__esModule=!0,n.ReligiousTool=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=[],v=function(V,I){if(V===3)return(0,e.createComponentVNode)(2,u);if(I)return(0,e.createComponentVNode)(2,g);if(V===1)return(0,e.createComponentVNode)(2,l);if(V===2)return(0,e.createComponentVNode)(2,E)},C=n.ReligiousTool=function(){function N(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=(0,r.useSharedState)(I,"tab",1),W=F[0],$=F[1],z=w.sects,k=w.encyclopedia;return k.ASPECTS.map(function(M){return f[M.name]=M.color}),(0,e.createComponentVNode)(2,i.Window,{width:1e3,height:700,children:(0,e.createComponentVNode)(2,i.Window.Content,{fontSize:"14px",children:[(0,e.createComponentVNode)(2,o.Tabs,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{direction:"raw",width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===1,onClick:function(){function M(){return $(1)}return M}(),children:["Religion ",(0,e.createComponentVNode)(2,o.Icon,{name:"place-of-worship"})]})}),!z&&(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===2,onClick:function(){function M(){return $(2)}return M}(),children:["Rites ",(0,e.createComponentVNode)(2,o.Icon,{name:"pray"})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===3,onClick:function(){function M(){return $(3)}return M}(),children:["Encyclopedia ",(0,e.createComponentVNode)(2,o.Icon,{name:"book-open"})]})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v(W,z)})]})})}return N}(),m=function(V,I){var O=null;return I.length?O=I.map(function(x){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{children:(0,a.toTitleCase)(x)}),2,null,x)}):O=(0,e.createComponentVNode)(2,o.Box,{color:"gray",children:"Nothing."}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:V,fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",ml:I.length?3:0,children:(0,e.createVNode)(1,"ui",null,O,0)})})})},l=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.name,W=w.deities,$=w.favor,z=w.piety,k=w.max_favor,M=w.passive_favor_gain,D=w.aspects,A=w.techs,P=w.god_spells,U=w.holy_reagents,K=w.faith_reactions;return(0,e.createComponentVNode)(2,o.Section,{title:F,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{children:W}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Stack,{mt:2,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:"Resources",fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",ml:3,children:(0,e.createVNode)(1,"ui",null,[(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:"yellow",children:["Favor: ",$," / ",k,(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" "),(0,e.createTextVNode)("(+"),M,(0,e.createTextVNode)(")")],0,{style:{color:"gray","font-size":"8pt"}})]}),2),(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:"pink",children:["Piety: ",z]}),2)],4)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:"Aspects",fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",children:d("",D)})})}),m("Techs",A)]}),(0,e.createComponentVNode)(2,o.Stack,{children:[m("God Spells",P),m("Holy Reagents",U),m("Faith Reactions",K)]})]})]})},d=function(V,I,O){return O===void 0&&(O=!0),I?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:[(0,e.createVNode)(1,"ui",null,Object.keys(I).map(function(x){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:f[x],children:[x," = ",I[x]]}),2,null,x)}),0),O?(0,e.createVNode)(1,"br"):""]})]}):null},c=function(V,I,O){return O===void 0&&(O=!0),!V&&!I?null:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"Costs:"}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,[!!V&&(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:"yellow",children:[V," favor"]}),2),!!I&&(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:"pink",children:[I," piety"]}),2)],0)}),O?(0,e.createVNode)(1,"br"):""]})},g=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.sects,W=w.holds_religious_tool;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Sect Select",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:F.map(function($){return(0,e.createComponentVNode)(2,o.Collapsible,{title:(0,e.createVNode)(1,"b",null,$.name,0),color:"transparent",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.BlockQuote,{children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:$.desc}),(0,e.createComponentVNode)(2,o.Box,{children:[$.aspect_preset||$.aspects_count?(0,e.createVNode)(1,"br"):"",d("Aspects:",$.aspect_preset),$.aspects_count&&(0,e.createComponentVNode)(2,o.Box,{children:["You can choose ",$.aspects_count," aspects."]})]})]})}),(0,e.createComponentVNode)(2,o.Button,{mt:2,textAlign:"center",icon:"plus",fluid:!0,disabled:!W,onClick:function(){function z(){return x("sect_select",{path:$.path})}return z}(),children:[$.aspects_count?"Create":"Select"," ",$.name]})]},$.name)},$.name)})})})},u=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=(0,r.useSharedState)(I,"cat",""),W=F[0],$=F[1],z=w.encyclopedia;return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Tabs,{vertical:1,children:Object.keys(z).map(function(k){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===k,onClick:function(){function M(){return $(k)}return M}(),children:(0,a.toTitleCase)(k)},k)})}),(0,e.createComponentVNode)(2,o.Section,{height:52,fill:!0,scrollable:!0,width:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:[W==="RITES"&&(0,e.createComponentVNode)(2,s),W==="SECTS"&&(0,e.createComponentVNode)(2,h),W==="ASPECTS"&&(0,e.createComponentVNode)(2,p),W==="GOD SPELLS"&&(0,e.createComponentVNode)(2,S),W==="HOLY REAGENTS"&&(0,e.createComponentVNode)(2,T),W==="FAITH REACTIONS"&&(0,e.createComponentVNode)(2,y)]})})]})},s=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.RITES,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc.replace(/<[/]?i>/g,"")}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"b",null,"Length:",16)," ",A.ritual_length/10," seconds."]}),(0,e.createComponentVNode)(2,o.Box,{color:A.can_talismaned?"green":"red",children:["Can",A.can_talismaned?"":"'t"," be talismaned."]}),A.needed_aspects?(0,e.createVNode)(1,"br"):"",d("Needed Aspects:",A.needed_aspects,!1),(!!A.favor_cost||!!A.piety_cost)&&(0,e.createVNode)(1,"br"),c(A.favor_cost,A.piety_cost,!1),(0,e.createComponentVNode)(2,o.Box,{children:!!A.tips.length&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:[" ",(0,e.createVNode)(1,"br"),"Tips:"]}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,A.tips.map(function(P){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{children:P.replace(/<[/]?i>/g,"")}),2,null,P)}),0)})]})})]})},A.name)})]})},h=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.SECTS,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc}),(0,e.createVNode)(1,"br"),d("Aspect Preset:",A.aspect_preset,!1),A.aspects_count&&(0,e.createComponentVNode)(2,o.Box,{children:["You can choose ",A.aspects_count," aspects."]})]})},A.name)})]})},p=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.ASPECTS,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{color:f[A.name],title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc}),A.god_desc&&(0,e.createComponentVNode)(2,o.Box,{children:[" ",(0,e.createVNode)(1,"br"),A.god_desc]})]})},A.name)})]})},S=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["GOD SPELLS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[d("Needed Aspects:",A.needed_aspects),c(A.favor_cost),(0,e.createComponentVNode)(2,o.Box,{children:["Cooldown: ",A.charge_max/10," seconds"]})]})},A.name)})]})},T=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["HOLY REAGENTS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:d("Needed Aspects:",A.needed_aspects,!1)})},A.name)})]})},y=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["FAITH REACTIONS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.convertable_id+" to "+A.result_id}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:(0,a.capitalize)(A.convertable_id)+" to "+(0,a.capitalize)(A.result_id),children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[d("Needed Aspects:",A.needed_aspects,!1),A.favor_cost?(0,e.createVNode)(1,"br"):"",c(A.favor_cost,0,!1)]})},(0,a.capitalize)(A.convertable_id)+" to "+(0,a.capitalize)(A.result_id))})]})},E=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.rites,W=w.favor,$=w.piety,z=w.can_talismaning,k=w.holds_religious_tool,M=(0,r.useSharedState)(I,"searchText",""),D=M[0],A=M[1],P=(0,a.createSearch)(D,function(K){return K.name}),U=D.length>0&&F.filter(P)||F;return(0,e.createComponentVNode)(2,o.Section,{height:52,fill:!0,scrollable:!0,width:"100%",children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function K(G,X){return A(X)}return K}(),mb:1}),(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mt:2,children:U.map(function(K){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:K.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{fontColor:"white",disabled:!k||W0?" "+K.piety_cost+" piety":""),disabled:!z||!K.can_talismaned||W0?" and "+K.piety_cost+" piety":"","."]}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:K.desc}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{children:["Power: ",K.power]}),(0,e.createComponentVNode)(2,o.Box,{children:!!K.tips.length&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:[" ",(0,e.createVNode)(1,"br"),"Tips:"]}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,K.tips.map(function(G){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{children:G.replace(/<[/]?i>/g,"")}),2,null,G)}),0)})]})})]})]})},K.name)})})]})}},54431:function(b,n,t){"use strict";n.__esModule=!0,n.Safe=void 0;var e=t(89005),a=t(59626),r=t(72253),o=t(36036),i=t(98595),f=n.Safe=function(){function l(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.dial,p=s.open;return(0,e.createComponentVNode)(2,i.Window,{width:625,height:760,theme:"ntos",children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving-hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving-hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe__engraving-arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),p?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe__dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*h+"deg)"}})]}),!p&&(0,e.createComponentVNode)(2,m)]})})}return l}(),v=function(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.dial,p=s.open,S=s.locked,T=function(E,N){return(0,e.createComponentVNode)(2,o.Button,{disabled:p||N&&!S,icon:"arrow-"+(N?"right":"left"),content:(N?"Right":"Left")+" "+E,iconPosition:N?"right":"left",onClick:function(){function V(){return u(N?"turnleft":"turnright",{num:E})}return V}()})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:S,icon:p?"lock":"lock-open",content:p?"Close":"Open",mb:"0.5rem",onClick:function(){function y(){return u("open")}return y}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[T(50),T(10),T(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer-right",position:"absolute",right:"5px",children:[T(1,!0),T(10,!0),T(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer-number",children:h})]})},C=function(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe__contents",overflow:"auto",children:h.map(function(p,S){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function T(){return u("retrieve",{index:S+1})}return T}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:p.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),p.name]}),(0,e.createVNode)(1,"br")],4,p)})})},m=function(d,c){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe__help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},98984:function(b,n,t){"use strict";n.__esModule=!0,n.SamplerPipe=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.SamplerPipe=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.gases,g=d.nodeName,u=d.locked;return(0,e.createComponentVNode)(2,o.Window,{title:"Atmospherics Alet System",width:300,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{title:"Node name",children:(0,e.createComponentVNode)(2,r.Input,{disabled:u,fluid:!0,value:g,onChange:function(){function s(h,p){return l("setName",{name:p})}return s}()})}),(0,e.createComponentVNode)(2,r.Section,{title:"Gases",children:c.map(function(s){return(0,e.createComponentVNode)(2,r.Section,{title:s.name,children:[(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:"Lower"}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.NumberInput,{disabled:u,width:5,minValue:0,maxValue:1,step:.01,value:s.threshold.min,onChange:function(){function h(p,S){return l("setBound",{id:s.id,bound:"min",value:S})}return h}()})})]}),(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:"Upper"}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.NumberInput,{disabled:u,width:5,minValue:0,maxValue:1,step:.01,value:s.threshold.max,onChange:function(){function h(p,S){return l("setBound",{id:s.id,bound:"max",value:S})}return h}()})})]})]},s.id)})})]})})}return f}()},23278:function(b,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=function(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=c.locked,s=c.l_setshort,h=c.code,p=c.emagged;return(0,e.createComponentVNode)(2,r.Box,{width:"185px",children:(0,e.createComponentVNode)(2,r.Grid,{width:"1px",children:g.map(function(S){return(0,e.createComponentVNode)(2,r.Grid.Column,{children:S.map(function(T){return(0,e.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,mb:"6px",content:T,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!p||!!s&&1||T!=="R"&&!u||h==="ERROR"&&T!=="R"&&1,onClick:function(){function y(){return d("type",{digit:T})}return y}()},T)})},S[0])})})})},f=n.SecureSafe=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.code,u=c.l_setshort,s=c.l_set,h=c.emagged,p=c.locked,S=!(s||u);return(0,e.createComponentVNode)(2,o.Window,{width:250,height:380,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Box,{m:"6px",children:[S&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!h&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.createComponentVNode)(2,r.Section,{height:"60px",children:(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",position:"center",fontSize:"35px",children:g&&g||(0,e.createComponentVNode)(2,r.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,e.createComponentVNode)(2,r.Flex,{ml:"3px",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,r.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}return v}()},32163:function(b,n,t){"use strict";n.__esModule=!0,n.SkillsConsole=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.SkillsConsole=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.skill_list,g=d.IQ,u=d.MDI,s=d.skill_min_value,h=d.skill_max_value,p=d.compatible_species,S=d.inserted_cartridge,T=d.cartridge_name,y=d.cartridge_unpacked,E=d.connected_table,N=d.cartridge_points,V=d.connected_patient,I=d.free_points,O=d.can_inject,x=d.power_usage,w=d.power_max,F=d.power_current;return(0,e.createComponentVNode)(2,o.Window,{resizable:!0,width:600,height:675,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,r.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Section,{title:"Power info",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Active power usage",children:[x/1e3," kW"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available power in area",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:w!=="No data"?F/w:"No data"})})]})})}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{width:"40%",mr:1,children:(0,e.createComponentVNode)(2,r.Section,{title:"Patient status",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[!E&&(0,e.createComponentVNode)(2,r.Box,{children:"CMF manipulion table is not connected"}),!V&&(0,e.createComponentVNode)(2,r.Box,{children:"No patient detected"}),E&&V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"IQ",children:g}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"MDI",children:u})],4)]})})}),(0,e.createComponentVNode)(2,r.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,r.Section,{title:"Cartridge information",children:[!S&&(0,e.createComponentVNode)(2,r.Box,{children:"No cartridge inserted"}),S===1&&(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Installed cartridge",children:[T,!y&&(0,e.createComponentVNode)(2,r.Box,{as:"span",m:5,children:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject cartridge",onClick:function(){function W(){l("eject")}return W}(),style:{marginLeft:20}})})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Compatible species",children:p.join(", ")}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available USP",children:[y===0&&N,y===1&&I]})]})]})})]})}),y===0&&S===1&&(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,r.Button,{onClick:function(){function W(){l("unpack")}return W}(),fluid:!0,color:"danger",tooltip:"This action will destroy the cartridge and begin the CMF manipulation procedure.",children:"Unpack cartridge"})}),y===1&&S===1&&(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Section,{title:"CMF manipulation",children:[Object.keys(c).map(function(W){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:W,children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{onChange:function(){function $(z,k){c[W]=k,l("change_skill",c)}return $}(),step:1,value:c[W],maxValue:h,stepPixelSize:50,minValue:s})})})},W)}),(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,r.Button,{onClick:function(){function W(){l("inject")}return W}(),fluid:!0,disabled:O===0,color:"green",children:"Inject implant"}),(0,e.createComponentVNode)(2,r.Button.Confirm,{onClick:function(){function W(){l("abort")}return W}(),fluid:!0,color:"danger",confirmContent:"Confirm ",children:"Abort"})]})]})})]})})})}return f}()},86162:function(b,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(49968),i=t(98595),f=1e3,v=n.Smes=function(){function C(m,l){var d=(0,a.useBackend)(l),c=d.act,g=d.data,u=g.capacityPercent,s=g.charge,h=g.inputAttempt,p=g.inputting,S=g.inputLevel,T=g.inputLevelMax,y=g.inputAvailable,E=g.outputAttempt,N=g.outputting,V=g.outputLevel,I=g.outputLevelMax,O=g.outputUsed,x=u>=100&&"good"||p&&"average"||"bad",w=N&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,i.Window,{width:340,height:350,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,r.ProgressBar,{fractionDigits:1,value:u*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,r.Section,{title:"Input",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){function F(){return c("tryinput")}return F}(),children:h?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,r.Box,{color:x,children:u>=100&&"Fully Charged"||p&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:S===0,onClick:function(){function F(){return c("input",{target:"min"})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"backward",disabled:S===0,onClick:function(){function F(){return c("input",{adjust:-1e4})}return F}()})]}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{value:S/f,fillValue:y/f,minValue:0,maxValue:T/f,step:5,stepPixelSize:4,format:function(){function F(W){return(0,o.formatPower)(W*f,1)}return F}(),onDrag:function(){function F(W,$){return c("input",{target:$*f})}return F}()})}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"forward",disabled:S===T,onClick:function(){function F(){return c("input",{adjust:1e4})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:S===T,onClick:function(){function F(){return c("input",{target:"max"})}return F}()})]})]})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(y)})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Output",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:E?"power-off":"times",selected:E,onClick:function(){function F(){return c("tryoutput")}return F}(),children:E?"On":"Off"}),children:(0,e.createComponentVNode)(2,r.Box,{color:w,children:N?"Sending":s>0?"Not Sending":"No Charge"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:V===0,onClick:function(){function F(){return c("output",{target:"min"})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"backward",disabled:V===0,onClick:function(){function F(){return c("output",{adjust:-1e4})}return F}()})]}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{value:V/f,minValue:0,maxValue:I/f,step:5,stepPixelSize:4,format:function(){function F(W){return(0,o.formatPower)(W*f,1)}return F}(),onDrag:function(){function F(W,$){return c("output",{target:$*f})}return F}()})}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"forward",disabled:V===I,onClick:function(){function F(){return c("output",{adjust:1e4})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:V===I,onClick:function(){function F(){return c("output",{target:"max"})}return F}()})]})]})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(O)})]})})]})})}return C}()},38096:function(b,n,t){"use strict";n.__esModule=!0,n.SpawnersMenu=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(49968),v=n.SpawnersMenu=function(){function C(m,l){var d=(0,r.useBackend)(l),c=d.act,g=d.data,u=g.spawners;return(0,e.createComponentVNode)(2,i.Window,{title:"\u041C\u0435\u043D\u044E \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0445 \u0440\u043E\u043B\u0435\u0439",width:700,height:525,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[!u.length&&(0,e.createComponentVNode)(2,o.Flex.Item,{fontSize:"14px",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{children:"\u0420\u043E\u043B\u0435\u0439 \u043D\u0435\u0442, \u043D\u043E \u043D\u0435 \u043F\u0435\u0447\u0430\u043B\u044C\u0441\u044F, \u043E\u043D\u0438 \u0441\u043A\u043E\u0440\u043E \u0431\u0443\u0434\u0443\u0442!"})}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:(0,a.toTitleCase)(s.name),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C\u0441\u044F",onClick:function(){function h(){return c("jump",{ref:s.ref})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:s.register_only?s.checked?"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C":"\u0417\u0430\u044F\u0432\u0438\u0442\u044C":"\u041F\u043E\u044F\u0432\u0438\u0442\u044C\u0441\u044F",selected:s.checked,blocked:s.blocked,onClick:function(){function h(){return c("spawn",{ref:s.ref})}return h}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[s.time_left&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:s.time_type===1?"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F":"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E",color:s.time_type===1?"green":"red",children:(0,f.formatTime)(s.time_left)}),!!s.register_only&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u041A\u0430\u043D\u0434\u0438\u0434\u0430\u0442\u043E\u0432",children:s.registered_candidates}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u041F\u043E\u0437\u0438\u0446\u0438\u0439 \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u043E",children:s.positions}),s.playing>0&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u0418\u0433\u0440\u0430\u0435\u0442",children:s.playing}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:s.short_desc}),s.important_warning&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u0430\u0436\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",children:s.important_warning}),s.wiki_ref&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u0438\u043A\u0438",children:(0,e.createVNode)(1,"a",null,s.wiki_ref,0,{href:"{spawner.wiki_ref}",target:"_blank"})})]})}),(0,e.createVNode)(1,"br")]},s.ref)})]})})})}return C}()},85444:function(b,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var e=t(89005),a=t(87341),r=t(72253),o=t(36036),i=t(98595),f=t(9394),v=n.Stack=function(){function c(g,u){var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=p.amount,T=p.recipes;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:720,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Amount: "+S,children:(0,e.createComponentVNode)(2,C,{recipes:T})})})})}return c}(),C=function(g,u){var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=g.recipes,T=Object.keys(S).sort();return T.map(function(y,E){var N=S[y];return N.ref===void 0?(0,e.createComponentVNode)(2,o.Collapsible,{ml:1,mb:-.7,color:"label",title:y,children:(0,e.createComponentVNode)(2,o.Box,{ml:1,children:(0,e.createComponentVNode)(2,C,{recipes:N})})},E):(0,e.createComponentVNode)(2,d,{title:y,recipe:N},E)})},m=function(g,u){return g.req_amount>u?0:Math.floor(u/g.req_amount)},l=function(g,u){for(var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=g.recipe,T=g.maxMultiplier,y=Math.min(T,Math.floor(S.max_res_amount/S.res_amount)),E=[5,10,25],N=[],V=function(){var w=O[I];y>=w&&N.push((0,e.createComponentVNode)(2,o.Button,{content:w*S.res_amount+"x",onClick:function(){function F(){return h("make",{ref:S.ref,multiplier:w})}return F}()}))},I=0,O=E;I1?"s":""),O+=")",E>1&&(O=E+"x "+O);var x=m(T,S);return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:!x,icon:"wrench",content:O,onClick:function(){function w(){return h("make",{ref:T.ref,multiplier:1})}return w}()})}),N>1&&x>1&&(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,l,{recipe:T,maxMultiplier:x})})]})})})}},1754:function(b,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Tank=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,r.ProgressBar,{value:d.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure Regulator",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:d.ReleasePressure===d.minReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"min"})}return c}()}),(0,e.createComponentVNode)(2,r.NumberInput,{animated:!0,value:parseFloat(d.releasePressure),width:"65px",unit:"kPa",minValue:d.minReleasePressure,maxValue:d.maxReleasePressure,onChange:function(){function c(g,u){return l("pressure",{pressure:u})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:d.ReleasePressure===d.maxReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"max"})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"undo",content:"",disabled:d.ReleasePressure===d.defaultReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"reset"})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:d.connected?"toggle-on":"toggle-off",content:"",selected:d.connected?"selected":null,onClick:function(){function c(){return l("internal")}return c}()})]})]})})})})}return f}()},53752:function(b,n,t){"use strict";n.__esModule=!0,n.Vote=void 0;var e=t(89005),a=t(72253),r=t(14596),o=t(36036),i=t(98595),f=n.Vote=function(){function d(c,g){var u=(0,a.useBackend)(g),s=u.data,h=s.isAdmin,p=s.currentPoll,S=s.polls,T=Math.min(730,90+(!p||h?45+26*S.filter(function(y){return!y.adminOnly||!!h}).length:0)+(p?135+22*p.choices.length:23));return(0,e.createComponentVNode)(2,i.Window,{width:450,height:T,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(!p||!!h)&&(0,e.createComponentVNode)(2,m),!!p&&(0,e.createComponentVNode)(2,l)]})]})})}return d}(),v=function(c,g){var u=(0,a.useBackend)(g),s=u.data,h=s.currentPoll,p=(0,a.useLocalState)(g,"infoModalOpen",!1),S=p[0],T=p[1];return S?h?(0,e.createComponentVNode)(2,o.Modal,{children:["\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u043E\u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u0442\u044C"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canVoteMultiple?"\u0437\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432":"\u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043E\u0434\u0438\u043D \u0432\u0430\u0440\u0438\u0430\u043D\u0442"}),(0,e.createVNode)(1,"br"),"\u0412\u044B"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canRevote?"\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C":"\u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C"})," ","\u0441\u0432\u043E\u0439 \u0433\u043E\u043B\u043E\u0441",(0,e.createVNode)(1,"br"),"\u0412\u044B"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canUnvote?"\u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C":"\u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"})," ","\u0441\u0432\u043E\u0439 \u0433\u043E\u043B\u043E\u0441",(0,e.createVNode)(1,"br"),h.minimumWinPercentage?(0,e.createFragment)([(0,e.createTextVNode)("\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043D\u0430\u0431\u0440\u0430\u0442\u044C \u043C\u0438\u043D\u0438\u043C\u0443\u043C"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:[h.minimumWinPercentage*100,"%"]}),(0,e.createTextVNode)(", \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043F\u043E\u0431\u0435\u0434\u0438\u043B")],0):"",h.description&&(0,e.createFragment)([(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,o.Box,{dangerouslySetInnerHTML:{__html:(0,r.sanitizeText)(h.description)}})],4),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,align:"center",onClick:function(){function y(){return T(!1)}return y}(),children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"})]}):(T(!1),null):null},C=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.currentPoll,S=(0,a.useLocalState)(g,"infoModalOpen",!1),T=S[0],y=S[1],E=p==null?void 0:p.choices.some(function(N){return N.selected});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!!p&&p.choices.length!==0,title:p?"\u0413\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435: "+p.poll.name:"\u0413\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435",buttons:p?(0,e.createComponentVNode)(2,o.Button,{icon:"info",color:"transparent",disabled:!p,onClick:function(){function N(){return y(!0)}return N}()}):void 0,children:p&&p.choices.length!==0?(0,e.createFragment)([p.showWarning?(0,e.createComponentVNode)(2,o.NoticeBox,{children:p.poll.message}):"",!!p.question&&(0,e.createComponentVNode)(2,o.Box,{italic:!0,children:p.question}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack,{fill:!0,justify:"space-around",children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B"}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"\u0413\u043E\u043B\u043E\u0441\u0430"})]}),(0,e.createVNode)(1,"br"),p.choices.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Box,{height:"22px",children:[(0,e.createComponentVNode)(2,o.Button,{maxWidth:"260px",ellipsis:!0,disabled:!p.canRevote&&E,selected:N.selected,onClick:function(){function V(){return s("putVote",{choiceRef:N.ref})}return V}(),children:N.name.replace(/^\w/,function(V){return V.toUpperCase()})}),!!N.selected&&(0,e.createComponentVNode)(2,o.Icon,{name:"vote-yea",color:"green",ml:1,verticalAlign:"super"})]}),(0,e.createComponentVNode)(2,o.Box,{mr:15,children:N.votes})]},N.ref)})]})],0):(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,mb:"0",children:p?"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432!":"\u041D\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u044F!"})})})},m=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.isAdmin,S=h.polls;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041D\u0430\u0447\u0430\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,justify:"space-between",children:S?S.map(function(T){return(!T.adminOnly||!!p)&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{horizontal:!0,children:[!!p&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{width:9.5,textAlign:"center",onClick:function(){function y(){return s("toggleAdminOnly",{pollRef:T.type})}return y}(),children:T.adminOnly?"\u0422\u043E\u043B\u044C\u043A\u043E \u0430\u0434\u043C\u0438\u043D\u044B":"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043E \u0432\u0441\u0435\u043C"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!T.canStart&&!p||T.forceBlocked,color:p?T.canStart?void 0:"red":void 0,tooltip:T.message,content:T.name,onClick:function(){function y(){return s("callVote",{pollRef:T.type})}return y}()})})]})},T.name)}):(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,children:"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0439!"})})})})},l=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.currentPoll,S=h.isAdmin;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C \u0432\u0440\u0435\u043C\u0435\u043D\u0438: ",(p==null?void 0:p.timeRemaining)||0,"\u0441"]}),!!S&&!!p&&(0,e.createComponentVNode)(2,o.Button,{color:"red",disabled:!S,onClick:function(){function T(){return s("cancelVote")}return T}(),children:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435"})]})})})}},30138:function(b,n,t){"use strict";n.__esModule=!0,n.Wires=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Wires=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.wires||[],g=d.status||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:45+c.length*25+(g.length>0?35:0)+g.length*12,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:c.map(function(u){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{className:"candystripe",label:u.label?u.label:"\u041F\u0440\u043E\u0432\u043E\u0434\u0430",labelColor:u.color,color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Button,{content:u.cut?"\u0421\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C":"\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u0442\u044C",onClick:function(){function s(){return l("cut",{wire:u.wire})}return s}()}),(0,e.createComponentVNode)(2,r.Button,{content:"\u041F\u0443\u043B\u044C\u0441",onClick:function(){function s(){return l("pulse",{wire:u.wire})}return s}()}),(0,e.createComponentVNode)(2,r.Button,{content:u.attached?"\u041E\u0442\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C":"\u041F\u0440\u0438\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C",onClick:function(){function s(){return l("attach",{wire:u.wire})}return s}()})],4)},u.color)})})}),!!g.length&&(0,e.createComponentVNode)(2,r.Section,{children:g.map(function(u){return typeof u=="string"?(0,e.createComponentVNode)(2,r.Box,{children:u},u):(0,e.createComponentVNode)(2,r.Button,{content:u.label,onClick:function(){function s(){return l(u.act,u.act_params?u.act_params:void 0)}return s}()},u)})})]})})}return f}()},49148:function(b,n,t){"use strict";n.__esModule=!0,n.AccessList=void 0;var e=t(89005),a=t(88510),r=t(72253),o=t(36036);function i(l,d){var c=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(c)return(c=c.call(l)).next.bind(c);if(Array.isArray(l)||(c=f(l))||d&&l&&typeof l.length=="number"){c&&(l=c);var g=0;return function(){return g>=l.length?{done:!0}:{done:!1,value:l[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(l,d){if(l){if(typeof l=="string")return v(l,d);var c={}.toString.call(l).slice(8,-1);return c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set"?Array.from(l):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?v(l,d):void 0}}function v(l,d){(d==null||d>l.length)&&(d=l.length);for(var c=0,g=Array(d);c0&&!O.includes(U.ref)&&!V.includes(U.ref),checked:V.includes(U.ref),onClick:function(){function K(){return x(U.ref)}return K}()},U.desc)})]})]})})}return l}()},195:function(b,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.InterfaceLockNoticeBox=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=f.siliconUser,c=d===void 0?l.siliconUser:d,g=f.locked,u=g===void 0?l.locked:g,s=f.onLockStatusChange,h=s===void 0?function(){return m("lock")}:s,p=f.accessText,S=p===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":p;return c?(0,e.createComponentVNode)(2,r.NoticeBox,{color:"grey",children:(0,e.createComponentVNode)(2,r.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:"\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441:"}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,r.Button,{m:0,color:u?"red":"green",icon:u?"lock":"unlock",content:u?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D",onClick:function(){function T(){h&&h(!u)}return T}()})})]})}):(0,e.createComponentVNode)(2,r.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",S," \u0434\u043B\u044F ",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438":"\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438","."]})}return i}()},190:function(b,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.MiningUser=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=f.insertIdText,c=l.has_id,g=l.id;return(0,e.createComponentVNode)(2,r.NoticeBox,{success:c,children:c?(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",g.name,".",(0,e.createVNode)(1,"br"),"You have ",g.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function u(){return m("logoff")}return u}()}),(0,e.createComponentVNode)(2,r.Box,{style:{clear:"both"}})],4):d})}return i}()},78091:function(b,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.PortableBasicInfo=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=l.connected,c=l.holding,g=l.on,u=l.pressure,s=l.power_draw,h=l.cell_charge,p=l.cell_maxcharge,S=h/p;return(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:g?"power-off":"times",content:g?"On":"Off",selected:g,onClick:function(){function T(){return m("power")}return T}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:u})," kPa"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Port",color:d?"good":"average",children:d?"Connected":"Not Connected"})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Cell",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:s})," W"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Charge",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{bad:[-1/0,.1],average:[.1,.6],good:[.6,1/0]},value:S})})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject",disabled:!c,onClick:function(){function T(){return m("eject")}return T}()}),children:c?(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Label",children:c.name}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:c.pressure})," kPa"]})]}):(0,e.createComponentVNode)(2,r.Box,{color:"average",children:"No holding tank"})})],4)}return i}()},17617:function(b,n,t){"use strict";n.__esModule=!0,n.Layout=void 0;var e=t(89005),a=t(35840),r=t(55937),o=t(24826),i=["className","theme","children"],f=["className","scrollable","children"];/**
+ */var m=0,l=n.ListInput=function(){function c(g,u){var s=(0,o.useBackend)(u),h=s.act,p=s.data,S=p.title,T=p.message,y=p.buttons,E=p.timeout,N=(0,o.useLocalState)(u,"search_bar",!1),V=N[0],I=N[1],O=(0,o.useLocalState)(u,"displayed_array",y),x=O[0],w=O[1],F=(0,o.useLocalState)(u,"search_array",[]),W=F[0],$=F[1],z=(0,o.useLocalState)(u,"search_index",0),k=z[0],M=z[1],D=(0,o.useLocalState)(u,"last_char_code",null),A=D[0],P=D[1],U=(0,o.useLocalState)(u,"selected_button",y[0]),K=U[0],G=U[1];return(0,e.createComponentVNode)(2,f.Window,{title:S,width:325,height:325,resizable:!0,children:[E!==void 0&&(0,e.createComponentVNode)(2,d,{value:E}),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,i.Section,{scrollable:!0,className:"ListInput__Section",width:"100%",fill:!0,title:T,tabIndex:0,onKeyDown:function(){function X(_){if(_.preventDefault(),(0,C.acquireHotKey)(v.KEY_DOWN),(0,C.acquireHotKey)(v.KEY_UP),!(m>performance.now())){if(m=performance.now()+125,_.keyCode===v.KEY_UP||_.keyCode===v.KEY_DOWN){var J=1;_.keyCode===v.KEY_UP&&(J=-1);var ce=0;for(ce;ce=y.length&&(ce=0),G(y[ce]),P(null),document.getElementById(y[ce]).focus();return}if(_.keyCode===v.KEY_SPACE||_.keyCode===v.KEY_ENTER){h("choose",{choice:K});return}var Ee=String.fromCharCode(_.keyCode).toLowerCase();if(Ee){var le;if(Ee===A&&W.length>0){var re=k+1;re0&&($(ye),M(0),le=ye[0])}le&&(P(Ee),G(le),document.getElementById(le).focus())}}}return X}(),buttons:(0,e.createComponentVNode)(2,i.Button,{icon:"search",color:"transparent",selected:V,tooltip:"Search Bar",tooltipPosition:"left",onClick:function(){function X(){I(!V),w(y)}return X}(),compact:!0}),children:(0,e.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:x.map(function(X){return(0,e.createComponentVNode)(2,i.Flex.Item,{basis:"100%",children:(0,e.createComponentVNode)(2,i.Button,{color:"transparent",content:X,id:X,width:"100%",selected:K===X,onClick:function(){function _(){if(K===X)h("choose",{choice:X});else{G(X);var J=0;for(J;J=y.length&&(J=0),P(null),document.getElementById(y[J]).focus()}P(null)}return _}()},null,{onComponentDidMount:function(){function _(J){K===X&&J.focus()}return _}()})},X)})})})}),V&&(0,e.createComponentVNode)(2,i.Flex.Item,{mt:1,children:(0,e.createComponentVNode)(2,i.Input,{fluid:!0,onInput:function(){function X(_,J){return w(y.filter((0,a.createSearch)(J)))}return X}()})}),(0,e.createComponentVNode)(2,i.Flex.Item,{mt:1,children:(0,e.createComponentVNode)(2,i.Flex,{textAlign:"center",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,i.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){function X(){return h("cancel")}return X}()})}),(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,ml:1,children:(0,e.createComponentVNode)(2,i.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",disabled:K===null,onClick:function(){function X(){return h("choose",{choice:K})}return X}()})})]})})]})})]})}return c}(),d=n.Loader=function(){function c(g){var u=g.value;return(0,e.createVNode)(1,"div","ListInput__Loader",(0,e.createComponentVNode)(2,i.Box,{className:"ListInput__LoaderProgress",style:{width:(0,r.clamp01)(u)*100+"%"}}),2)}return c}()},70073:function(b,n,t){"use strict";n.__esModule=!0,n.Lootcrate=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Lootcrate=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.code,g=d.buttons_pressed;return(0,e.createComponentVNode)(2,o.Window,{width:235,height:140,theme:"ntos",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{top:"+6px",right:"-9px",content:1,color:g[0]?c[0]===1||c[1]===1||c[2]===1?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:1})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+6px",right:"-14px",content:2,color:g[1]?c[0]===2||c[1]===2||c[2]===2?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:2})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+6px",right:"-19px",content:3,color:g[2]?c[0]===3||c[1]===3||c[2]===3?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:3})}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{top:"+5px",right:"-9px",content:4,color:g[3]?c[0]===4||c[1]===4||c[2]===4?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:4})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+5px",right:"-14px",content:5,color:g[4]?c[0]===5||c[1]===5||c[2]===5?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:5})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+5px",right:"-19px",content:6,color:g[5]?c[0]===6||c[1]===6||c[2]===6?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:6})}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{top:"+4px",right:"-9px",content:7,color:g[6]?c[0]===7||c[1]===7||c[2]===7?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:7})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+4px",right:"-14px",content:8,color:g[7]?c[0]===8||c[1]===8||c[2]===8?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:8})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+4px",right:"-19px",content:9,color:g[8]?c[0]===9||c[1]===9||c[2]===9?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:9})}return u}()})]})]})})})})}return f}()},76298:function(b,n,t){"use strict";n.__esModule=!0,n.MafiaPanel=void 0;var e=t(89005),a=t(35840),r=t(25328),o=t(72253),i=t(36036),f=t(98595),v=n.MafiaPanel=function(){function u(s,h){var p,S=(0,o.useBackend)(h),T=S.act,y=S.data,E=y.actions,N=y.phase,V=y.roleinfo,I=y.role_theme,O=y.admin_controls;return(0,e.createComponentVNode)(2,f.Window,{title:"\u041C\u0430\u0444\u0438\u044F",theme:I,width:650,height:580,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,C)}),!!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,m)}),E==null?void 0:E.map(function(x){return(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,i.Button,{onClick:function(){function w(){return T("mf_action",{atype:x})}return w}(),children:x})},x)}),!!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,d)}),N!=="\u041D\u0435\u0442 \u0418\u0433\u0440\u044B"&&(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:1.34,basis:0,children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,i.Stack.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),!!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{height:"80px",children:(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(p=V.action_log)==null?void 0:p.map(function(x){return(0,e.createComponentVNode)(2,i.Box,{children:x},x)})})})]})})]})}),!!O&&(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,g)})]})})})}return u}(),C=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.lobbydata,E=T.phase,N=T.timeleft,V=y?y.filter(function(I){return I.status==="\u0413\u043E\u0442\u043E\u0432"}):null;return(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,title:"Lobby",buttons:(0,e.createFragment)([(0,e.createTextVNode)("\u0421\u0442\u0430\u0434\u0438\u044F = "),E,(0,e.createTextVNode)(" | "),(0,e.createComponentVNode)(2,i.TimeDisplay,{auto:"down",value:N}),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,i.Button,{icon:"clipboard-check",tooltipPosition:"bottom-start",tooltip:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0432 \u0438\u0433\u0440\u0443. \u0415\u0441\u043B\u0438 \u043E\u043D\u0430 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442, \u0442\u043E\n\u0412\u044B \u0432\u043E\u0439\u0434\u0451\u0442\u0435 \u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E.",content:"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function I(){return S("mf_signup")}return I}()}),(0,e.createComponentVNode)(2,i.Button,{icon:"eye",tooltipPosition:"bottom-start",tooltip:"\u0412\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043D\u0430\u0431\u043B\u044E\u0434\u0430\u0442\u0435\u043B\u0435\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u044D\u0442\u043E.\n\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0412\u044B \u0443\u043C\u0438\u0440\u0430\u0435\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0433\u0440\u044B.\n\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043D\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u0445\u043E\u0434\u0438\u0442\u044C, \u0435\u0441\u043B\u0438 \u0412\u044B \u0432\u043E\u0439\u0434\u0451\u0442\u0435 \u0432 \u0440\u0430\u0443\u043D\u0434.",content:"\u041D\u0430\u0431\u043B\u044E\u0434\u0430\u0442\u044C",onClick:function(){function I(){return S("mf_spectate")}return I}()})],0),children:[(0,e.createComponentVNode)(2,i.NoticeBox,{info:!0,children:["\u0412 \u043B\u043E\u0431\u0431\u0438 ",V?V.length:"0","/12 \u0432\u0430\u043B\u0438\u0434\u043D\u044B\u0445 \u0438\u0433\u0440\u043E\u043A\u043E\u0432."]}),y==null?void 0:y.map(function(I){return(0,e.createComponentVNode)(2,i.Stack,{className:"candystripe",p:1,align:"baseline",children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:I.name}),(0,e.createComponentVNode)(2,i.Stack.Item,{children:"\u0421\u0442\u0430\u0442\u0443\u0441:"}),(0,e.createComponentVNode)(2,i.Stack.Item,{color:I.status==="\u0413\u043E\u0442\u043E\u0432"?"green":"red",children:[I.spectating," ",I.status]})]},I)})]})},m=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.phase,E=T.roleinfo,N=T.timeleft;return(0,e.createComponentVNode)(2,i.Section,{title:y,minHeight:"100px",maxHeight:"50px",buttons:(0,e.createComponentVNode)(2,i.Box,{style:{"font-family":"Consolas, monospace","font-size":"14px","line-height":1.5,"font-weight":"bold"},children:(0,e.createComponentVNode)(2,i.TimeDisplay,{auto:"down",value:N})}),children:(0,e.createComponentVNode)(2,i.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,i.Box,{bold:!0,children:["\u0412\u044B - ",E.role]}),(0,e.createComponentVNode)(2,i.Box,{italic:!0,children:E.desc})]}),(0,e.createComponentVNode)(2,i.Stack.Item,{children:[(0,e.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["mafia32x32",E.revealed_icon]),style:{transform:"scale(2) translate(0px, 10%)","vertical-align":"middle"}}),(0,e.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["mafia32x32",E.hud_icon]),style:{transform:"scale(2) translate(-5px, -5px)","vertical-align":"middle"}})]})]})})},l=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.all_roles;return(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,title:"\u0420\u043E\u043B\u0438 \u0438 \u0417\u0430\u043C\u0435\u0442\u043A\u0438",minHeight:"120px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"address-book",tooltipPosition:"bottom-start",tooltip:"\u0412\u0435\u0440\u0445\u043D\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043B - \u044D\u0442\u043E \u0440\u043E\u043B\u0438 \u0432 \u0438\u0433\u0440\u0435. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043D\u0430\u0436\u0430\u0442\u044C \u043D\u0430 \u0437\u043D\u0430\u043A \u0432\u043E\u043F\u0440\u043E\u0441\u0430,\n\u0447\u0442\u043E\u0431\u044B \u0443\u0437\u043D\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0440\u043E\u043B\u0438."}),(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"edit",tooltipPosition:"bottom-start",tooltip:"\u041D\u0438\u0436\u043D\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043B - \u0432\u0430\u0448\u0438 \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u0437\u0430\u043C\u0435\u0442\u043A\u0438. \u041D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0440\u043E\u043B\u044F\u0445 \u043E\u043D \u0431\u0443\u0434\u0435\u0442 \u043F\u0443\u0441\u0442\u043E\u0439,\n\u043D\u043E \u043D\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043F\u0438\u0441\u044B\u0432\u0430\u0442\u044C\u0441\u044F \u0432\u0430\u0448\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F(\u0434\u0435\u0442\u0435\u043A\u0442\u0438\u0432\u043D\u044B\u0435 \u0440\u0430\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F)"})],4),children:(0,e.createComponentVNode)(2,i.Flex,{direction:"column",children:y==null?void 0:y.map(function(E){return(0,e.createComponentVNode)(2,i.Flex.Item,{height:"30px",className:"Section__title candystripe",children:(0,e.createComponentVNode)(2,i.Flex,{height:"18px",align:"center",justify:"space-between",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{children:E}),(0,e.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"question",onClick:function(){function N(){return S("mf_lookup",{atype:E.slice(0,-3)})}return N}()})})]})},E)})})})},d=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.judgement_phase;return(0,e.createComponentVNode)(2,i.Section,{title:"\u0421\u0443\u0434",buttons:(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"info",tooltipPosition:"left",tooltip:"\u041A\u043E\u0433\u0434\u0430 \u043A\u043E\u0433\u043E-\u0442\u043E \u0441\u0443\u0434\u044F\u0442, \u0432\u044B \u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u0435\u0433\u043E \u0441\u0443\u0434\u044C\u0431\u0443.\n\u041F\u043E\u0431\u0435\u0434\u0430 \u041D\u0415\u0412\u0418\u041D\u041E\u0412\u0415\u041D \u043E\u0437\u043D\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A \u0441\u043C\u043E\u0436\u0435\u0442 \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0435\u0449\u0451 \u043E\u0434\u0438\u043D \u0434\u0435\u043D\u044C,\n\u043D\u043E... \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u044D\u0442\u043E\u0433\u043E \u0443\u0436\u0435 \u043D\u0435 \u0441\u043B\u0443\u0447\u0438\u0442\u0441\u044F.\n\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043D\u0435 \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u0442\u044C, \u043D\u0430\u0436\u0430\u0432 \u043D\u0430 \u0441\u0440\u0435\u0434\u043D\u044E\u044E \u043A\u043D\u043E\u043F\u043A\u0443."}),children:[(0,e.createComponentVNode)(2,i.Flex,{justify:"space-around",children:[(0,e.createComponentVNode)(2,i.Button,{icon:"smile-beam",content:"\u041D\u0415\u0412\u0418\u041D\u041E\u0412\u0415\u041D!",color:"good",disabled:!y,onClick:function(){function E(){return S("vote_innocent")}return E}()}),!y&&(0,e.createComponentVNode)(2,i.Box,{children:"\u0412 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0441\u0443\u0434\u0438\u0442\u0441\u044F."}),!!y&&(0,e.createComponentVNode)(2,i.Box,{children:"\u0412\u0440\u0435\u043C\u044F \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u044F. \u041F\u0440\u043E\u0433\u043E\u043B\u043E\u0441\u0443\u0439 \u0438\u043B\u0438 \u0432\u043E\u0437\u0434\u0435\u0440\u0436\u0438\u0441\u044C."}),(0,e.createComponentVNode)(2,i.Button,{icon:"angry",color:"bad",disabled:!y,onClick:function(){function E(){return S("vote_guilty")}return E}(),children:"\u0412\u0418\u041D\u041E\u0412\u0415\u041D!"})]}),(0,e.createComponentVNode)(2,i.Flex,{justify:"center",children:(0,e.createComponentVNode)(2,i.Button,{icon:"meh",color:"white",disabled:!y,onClick:function(){function E(){return S("vote_abstain")}return E}(),children:"\u0412\u043E\u0437\u0434\u0435\u0440\u0436\u0430\u0442\u044C\u0441\u044F"})})]})},c=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.players;return(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,title:"\u0418\u0433\u0440\u0430\u0446\u0444\u043E\u043A\u0438",children:(0,e.createComponentVNode)(2,i.Flex,{direction:"column",children:y==null?void 0:y.map(function(E){var N;return(0,e.createComponentVNode)(2,i.Flex.Item,{height:"30px",className:"Section__title candystripe",children:(0,e.createComponentVNode)(2,i.Stack,{height:"18px",align:"center",children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,color:!E.alive&&"red",children:[E.name," ",!E.alive&&"(\u041C\u0401\u0420\u0422\u0412)"]}),(0,e.createComponentVNode)(2,i.Stack.Item,{shrink:0,children:E.votes!==void 0&&!!E.alive&&"\u0413\u043E\u043B\u043E\u0441\u0430: "+E.votes}),(0,e.createComponentVNode)(2,i.Stack.Item,{shrink:0,minWidth:"42px",textAlign:"center",children:(N=E.actions)==null?void 0:N.map(function(V){return(0,e.createComponentVNode)(2,i.Button,{onClick:function(){function I(){return S("mf_targ_action",{atype:V,target:E.ref})}return I}(),children:V},V)})})]})},E.ref)})})})},g=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data;return(0,e.createComponentVNode)(2,i.Collapsible,{title:"\u0410\u0414\u041C\u0418\u041D \u041F\u0410\u041D\u0415\u041B\u042C \u0423\u041F\u0420\u0410\u0412\u041B\u0415\u041D\u0418\u042F",color:"red",children:(0,e.createComponentVNode)(2,i.Section,{children:[(0,e.createComponentVNode)(2,i.Collapsible,{title:"\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043E\u0442 \u041A\u043E\u0434\u0435\u0440\u043E\u0432!",color:"transparent",children:"\u041F\u043E\u0447\u0442\u0438 \u0432\u0441\u0435 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043C\u043E\u0447\u044C \u043C\u043D\u0435 \u043E\u0442\u043B\u0430\u0434\u0438\u0442\u044C \u0438\u0433\u0440\u0443 (\u043E\u0439, \u043E\u0442\u043B\u0430\u0434\u043A\u0430 \u0438\u0433\u0440\u044B \u043D\u0430 12 \u0438\u0433\u0440\u043E\u043A\u043E\u0432!). \u0422\u0430\u043A \u0447\u0442\u043E, \u043E\u043D\u043E \u0432\u0441\u0435 \u0433\u0440\u0443\u0431\u043E\u0432\u0430\u0442\u043E\u0435 \u0438 \u0441\u043A\u043B\u043E\u043D\u043D\u043E \u043B\u043E\u043C\u0430\u0442\u044C\u0441\u044F \u043F\u043E \u043C\u0430\u043B\u0435\u0439\u0448\u0435\u043C\u0443 \u043F\u043E\u0432\u043E\u0434\u0443. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u0412\u044B \u0437\u043D\u0430\u0435\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043A\u043D\u043E\u043F\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0436\u043C\u0451\u0442\u0435 \u043D\u0430 \u043D\u0435\u0451. \u0422\u0430\u043A \u0436\u0435(\u043E\u0434\u0438\u043D \u0438\u0437 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u0432 \u044D\u0442\u043E \u0441\u0434\u0435\u043B\u0430\u043B), \u043D\u0438\u043A\u043E\u0433\u043E \u043D\u0435 \u0433\u0438\u0431\u0430\u0439\u0442\u0435 \u0438 \u043D\u0435 \u0443\u0434\u0430\u043B\u044F\u0439\u0442\u0435 \u043B\u044E\u0431\u044B\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u0430\u043C\u0438! \u042D\u0442\u043E \u043F\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043A \u0440\u0430\u043D\u0442\u0430\u0439\u043C\u0443, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0441\u043B\u043E\u043C\u0430\u0435\u0442 \u0432\u0441\u044E \u0438\u0433\u0440\u0443, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043B\u043E\u043C\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440!"}),(0,e.createComponentVNode)(2,i.Button,{icon:"arrow-right",onClick:function(){function y(){return S("next_phase")}return y}(),children:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0430\u0434\u0438\u044F"}),(0,e.createComponentVNode)(2,i.Button,{icon:"home",onClick:function(){function y(){return S("players_home")}return y}(),tooltip:"\u041D\u0430\u0434\u0435\u044E\u0441\u044C, \u0412\u044B \u043D\u0435 \u0431\u0443\u0434\u0435\u0442\u0435 \u043D\u0430\u0436\u0438\u043C\u0430\u0442\u044C \u044D\u0442\u0443 \u043A\u043D\u043E\u043F\u043A\u0443 \u043E\u0447\u0435\u043D\u044C \u0447\u0430\u0441\u0442\u043E,\n\u044D\u0442\u043E \u043D\u0443\u0436\u043D\u043E \u043D\u0430 \u0442\u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439, \u0435\u0441\u043B\u0438 \u043A\u0430\u043A\u043E\u0439-\u0442\u043E \u0438\u0433\u0440\u043E\u043A\n\u043A\u0430\u043A\u0438\u043C-\u0442\u043E \u043E\u0431\u0440\u0430\u0437\u043E\u043C \u0441\u0431\u0435\u0433\u0430\u0435\u0442 (nullspace, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438, \u043E\u0442\u043A\u0440\u044B\u0442\u0430\u044F \u0434\u0432\u0435\u0440\u044C).\n\u0412 \u043B\u044E\u0431\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435, \u041E\u0427\u0415\u041D\u042C \u041F\u041B\u041E\u0425\u041E \u0415\u0421\u041B\u0418 \u042D\u0422\u041E \u041F\u0420\u041E\u0418\u0417\u041E\u0419\u0414\u0415\u0422.\n\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439 \u044D\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u0438\u0433\u0440\u043E\u043A\u043E\u0432 \u0432\u0435\u0440\u043D\u0443\u0442\u044C, \u0430 \u0437\u0430\u0442\u0435\u043C \u0441\u043E\u043E\u0431\u0449\u0438 \u043D\u0430 \u0433\u0438\u0442\u0445\u0430\u0431.",children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0412\u0441\u0435\u0445 \u0414\u043E\u043C\u043E\u0439"}),(0,e.createComponentVNode)(2,i.Button,{icon:"sync-alt",onClick:function(){function y(){return S("new_game")}return y}(),tooltip:"\u042D\u0442\u043E \u043D\u0435\u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u0438\u0433\u0440\u0443 \u0438 \u043F\u043E\u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u043D\u0430\u0447\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E",children:"\u041D\u043E\u0432\u0430\u044F \u0418\u0433\u0440\u0430"}),(0,e.createComponentVNode)(2,i.Button,{icon:"skull",onClick:function(){function y(){return S("nuke")}return y}(),tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u0434\u0430\u0442\u0443\u043C\u044B, \u043E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0435 landmarks, \u0443\u0431\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435\u0445 \u0436\u0438\u0442\u0435\u043B\u0435\u0439 \u0438 \u043C\u0430\u0444\u0438\u044E,\n\u0441\u0442\u0438\u0440\u0430\u0435\u0442 \u043C\u0435\u0441\u0442\u043E \u0438\u0433\u0440\u044B. \u041D\u0430\u0436\u043C\u0438 \u044D\u0442\u043E, \u0435\u0441\u043B\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u0441\u0451 \u043F\u043E\u043B\u043E\u043C\u0430\u043D\u043E.\n\u0422\u044B \u0432\u0435\u0434\u044C \u0443\u0436\u0435 \u0432\u0441\u0451 \u0441\u043B\u043E\u043C\u0430\u043B, \u043D\u0435 \u0442\u0430\u043A \u043B\u0438?",children:"Nuke"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,i.Button,{icon:"paint-brush",onClick:function(){function y(){return S("debug_setup")}return y}(),tooltip:"\u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u0441\u0432\u043E\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443 \u0434\u043B\u044F \u0438\u0433\u0440\u044B, \u044D\u0442\u043E \u0442\u0430\u043A... \u043F\u0440\u043E\u0441\u0442\u043E.\n\u0412\u044B \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0435\u0442\u0435 \u0440\u043E\u043B\u044C \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440, \u043F\u043E\u043A\u0430 \u043D\u0435 \u043D\u0430\u0436\u043C\u0451\u0442\u0435 CANCEL \u0438\u043B\u0438 FINISH.\n\u0421\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F \u0440\u0430\u0443\u043D\u0434\u0430, \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438.",children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0421\u0432\u043E\u044E \u0418\u0433\u0440\u0443"}),(0,e.createComponentVNode)(2,i.Button,{icon:"paint-roller",onClick:function(){function y(){return S("cancel_setup")}return y}(),tooltip:"\u0415\u0441\u043B\u0438 \u0432\u044B \u0447\u0442\u043E-\u0442\u043E \u043D\u0430\u043F\u0443\u0442\u0430\u043B\u0438, \u0442\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u044E\u0434\u0430 \u043D\u0430\u0436\u0430\u0442\u044C, \u0447\u0442\u043E\u0431\u044B \u0441\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0441\u0432\u043E\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443.\n\u0418\u0433\u0440\u0430 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u0435\u0442 \u0435\u0451 \u043F\u043E\u0441\u043B\u0435 \u043A\u0430\u0436\u0434\u043E\u0439 \u0438\u0433\u0440\u044B.",children:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0421\u0432\u043E\u044E \u0418\u0433\u0440\u0443"})]})})}},66238:function(b,n,t){"use strict";n.__esModule=!0,n.Minesweeper=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Minesweeper=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.width,g=d.height,u=d.grid,s=d.mines,h={"\u2000":"#ffffff",1:"#0092cc",2:"#779933",3:"#ff3333",4:"#087099",5:"#cc3333",6:"#A6B2EC",7:"#600095",8:"#E5E5E5"};return(0,e.createComponentVNode)(2,o.Window,{width:c,height:g+32,title:s,className:"Minesweeper__Window",children:(0,e.createComponentVNode)(2,o.Window.Content,{fitted:!0,height:g+32,children:u.map(function(p){return(0,e.createFragment)([p.map(function(S,T){return(0,e.createComponentVNode)(2,r.Button,{className:"Minesweeper__Button",disabled:S.state==="empty"?1:0,textColor:h[S.nearest],content:(0,e.createComponentVNode)(2,r.Box,{className:"Minesweeper__Button-Content",children:S.flag?(0,e.createComponentVNode)(2,r.Icon,{name:"flag",color:"#e73409"}):S.nearest}),onClick:function(){function y(){return l("button_press",{choice_x:S.x,choice_y:S.y})}return y}(),onContextMenu:function(){function y(E){E.preventDefault(),l("button_flag",{choice_x:S.x,choice_y:S.y})}return y}()},T)}),(0,e.createVNode)(1,"br")],0)})})})}return f}()},1102:function(b,n,t){"use strict";n.__esModule=!0,n.MiningOreProcessingConsole=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(190),v=n.MiningOreProcessingConsole=function(){function d(c,g){var u=(0,r.useBackend)(g),s=u.act,h=u.data,p=h.unclaimedPoints,S=h.ores,T=h.showAllOres,y=h.power,E=h.speed,N=h.ore_values;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.MiningUser,{insertIdText:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",mr:1,onClick:function(){function V(){return s("insert")}return V}(),children:"Insert ID"}),"in order to claim points."]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:y,onClick:function(){function V(){return s("power")}return V}(),children:y?"Processing":"Disabled"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:p<1,icon:"download",onClick:function(){function V(){return s("claim")}return V}(),children:"Claim"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:p})})})}),(0,e.createComponentVNode)(2,l)]})})}return d}(),C=["Not Processing","Smelting","Compressing","Alloying"],m=null,l=function(c,g){var u=(0,r.useBackend)(g),s=u.act,h=u.data,p=h.ores,S=h.showAllOres,T=h.ore_values;return(0,e.createComponentVNode)(2,o.Section,{title:"Ore Processing Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){function y(){return s("showAllOres")}return y}(),children:S?"All Ores":"Ores in Machine"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:p.length&&p.sort().map(function(y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(y.ore),buttons:(0,e.createComponentVNode)(2,o.Dropdown,{width:"120px",color:y.processing===0&&"red"||y.processing===1&&"green"||y.processing===2&&"blue"||y.processing===3&&"yellow",options:C,selected:C[y.processing],onSelected:function(){function E(N){return s("toggleSmelting",{ore:y.ore,set:C.indexOf(N)})}return E}()}),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:y.amount})})},y.ore)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.Collapsible,{title:"Mineral Value List",children:T.length&&T.sort().map(function(y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(y.name),children:[y.amount," points"]},y.name)})})})})]})}},77749:function(b,n,t){"use strict";n.__esModule=!0,n.MiningStackingConsole=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=n.MiningStackingConsole=function(){function v(C,m){var l=(0,r.useBackend)(m),d=l.act,c=l.data,g=c.stacktypes,u=c.stackingAmt;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Stacker Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stacking",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(){function s(h,p){return d("change_stack",{amt:p})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),g.length&&g.sort().map(function(s){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(s.type),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function h(){return d("release_stack",{stack:s.type})}return h}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:s.amt})},s.type)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}return v}()},87684:function(b,n,t){"use strict";n.__esModule=!0,n.MiningVendor=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(190),v=t(35840),C=["title","items"];function m(s,h){if(s==null)return{};var p={};for(var S in s)if({}.hasOwnProperty.call(s,S)){if(h.includes(S))continue;p[S]=s[S]}return p}var l={Alphabetical:function(){function s(h,p){return h-p}return s}(),"By availability":function(){function s(h,p){return-(h.affordable-p.affordable)}return s}(),"By price":function(){function s(h,p){return h.price-p.price}return s}()},d=n.MiningVendor=function(){function s(h,p){return(0,e.createComponentVNode)(2,i.Window,{width:410,height:450,children:(0,e.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,f.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,c)]})})}return s}(),c=function(h,p){var S=(0,r.useBackend)(p),T=S.act,y=S.data,E=y.has_id,N=y.id,V=y.items,I=(0,r.useLocalState)(p,"search",""),O=I[0],x=I[1],w=(0,r.useLocalState)(p,"sort","Alphabetical"),F=w[0],W=w[1],$=(0,r.useLocalState)(p,"descending",!1),z=$[0],k=$[1],M=(0,a.createSearch)(O,function(P){return P[0]}),D=!1,A=Object.entries(V).map(function(P,U){var K=Object.entries(P[1]).filter(M).map(function(G){return G[1].affordable=E&&N.points>=G[1].price,G[1]}).sort(l[F]);if(K.length!==0)return z&&(K=K.reverse()),D=!0,(0,e.createComponentVNode)(2,u,{title:P[0],items:K},P[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:D?A:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})},g=function(h,p){var S=(0,r.useLocalState)(p,"search",""),T=S[0],y=S[1],E=(0,r.useLocalState)(p,"sort",""),N=E[0],V=E[1],I=(0,r.useLocalState)(p,"descending",!1),O=I[0],x=I[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",autoFocus:!0,onInput:function(){function w(F,W){return y(W)}return w}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(){function w(F){return V(F)}return w}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:O?"arrow-down":"arrow-up",height:"19px",tooltip:O?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function w(){return x(!O)}return w}()})})]})})},u=function(h,p){var S=(0,r.useBackend)(p),T=S.act,y=S.data,E=h.title,N=h.items,V=m(h,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:E},V,{children:N.map(function(I){return(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"span",(0,v.classes)(["equipment_locker32x32",I.path]),null,1,{style:{"vertical-align":"middle","horizontal-align":"middle"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"certificate",disabled:!y.has_id||y.id.points=E,width:"23.5%",onClick:function(){function N(){return d("adjustTimer",{time:s+5})}return N}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:!S||s>=E,width:"23.5%",onClick:function(){function N(){return d("adjustTimer",{time:E})}return N}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041F\u0440\u0435\u0434\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,r.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u041E\u0442\u043A\u043B\u044E\u0447\u0451\u043D",disabled:!S||u&&!h,onClick:function(){function N(){return d("toggleSafety")}return N}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0430\u0439\u043C\u0435\u0440",children:(0,e.createComponentVNode)(2,r.Button,{selected:u,icon:"power-off",disabled:!S||h,content:u?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u041E\u0442\u043A\u043B\u044E\u0447\u0451\u043D",onClick:function(){function N(){return d("bombSet")}return N}()})})]})]})})})}return v}()},46892:function(b,n,t){"use strict";n.__esModule=!0,n.Orbit=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595);function f(h,p){var S=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(S)return(S=S.call(h)).next.bind(S);if(Array.isArray(h)||(S=v(h))||p&&h&&typeof h.length=="number"){S&&(h=S);var T=0;return function(){return T>=h.length?{done:!0}:{done:!1,value:h[T++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(h,p){if(h){if(typeof h=="string")return C(h,p);var S={}.toString.call(h).slice(8,-1);return S==="Object"&&h.constructor&&(S=h.constructor.name),S==="Map"||S==="Set"?Array.from(h):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?C(h,p):void 0}}function C(h,p){(p==null||p>h.length)&&(p=h.length);for(var S=0,T=Array(p);SS},c=function(p,S){var T=p.name,y=S.name;if(!T||!y)return 0;var E=T.match(m),N=y.match(m);if(E&&N&&T.replace(m,"")===y.replace(m,"")){var V=parseInt(E[1],10),I=parseInt(N[1],10);return V-I}return d(T,y)},g=function(p,S){var T=(0,r.useBackend)(S),y=T.act,E=p.searchText,N=p.source,V=p.title,I=N.filter(l(E));return I.sort(c),N.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:V+" - ("+N.length+")",children:I.map(function(O){return(0,e.createComponentVNode)(2,o.Button,{content:O.name,onClick:function(){function x(){return y("orbit",{ref:O.ref})}return x}()},O.name)})})},u=function(p,S){var T=(0,r.useBackend)(S),y=T.act,E=p.color,N=p.thing;return(0,e.createComponentVNode)(2,o.Button,{color:E,onClick:function(){function V(){return y("orbit",{ref:N.ref})}return V}(),children:N.name})},s=n.Orbit=function(){function h(p,S){for(var T=(0,r.useBackend)(S),y=T.act,E=T.data,N=E.alive,V=E.antagonists,I=E.dead,O=E.ghosts,x=E.misc,w=E.npcs,F=(0,r.useLocalState)(S,"searchText",""),W=F[0],$=F[1],z={},k=f(V),M;!(M=k()).done;)for(var D=M.value,A=f(D.antag),P;!(P=A()).done;){var U=P.value;z[U]===void 0&&(z[U]=[]),z[U].push(D)}var K=Object.entries(z);K.sort(function(X,_){return d(X[0],_[0])});var G=function(){function X(_){for(var J=0,ce=[K.map(function(re){var ye=re[0],Ae=re[1];return Ae}),N,O,I,w,x];J0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function(X){var _=X[0],J=X[1];return(0,e.createComponentVNode)(2,o.Section,{title:_,level:2,children:J.filter(l(W)).sort(c).map(function(ce){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:ce},ce.name)})},_)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+N.length+")",children:N.filter(l(W)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,u,{color:"good",thing:X},X.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+O.length+")",children:O.filter(l(W)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,u,{color:"grey",thing:X},X.name)})}),(0,e.createComponentVNode)(2,g,{title:"Dead",source:I,searchText:W}),(0,e.createComponentVNode)(2,g,{title:"NPCs",source:w,searchText:W}),(0,e.createComponentVNode)(2,g,{title:"Misc",source:x,searchText:W})]})})}return h}()},8189:function(b,n,t){"use strict";n.__esModule=!0,n.Particool=void 0;var e=t(89005),a=t(87341),r=t(87341),o=t(72253),i=t(36036),f=t(98595),v=t(9394),C=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createComponentVNode)(2,i.NumberInput,{value:I,stepPixelSize:5,width:"39px",onDrag:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"int"}})}return F}()})},m=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return I=I||[0,0,0,0,0,0],(0,e.createComponentVNode)(2,i.Flex,{children:(0,e.createComponentVNode)(2,i.Flex.Item,{children:I.map(function(F,W){return(0,e.createComponentVNode)(2,i.NumberInput,{value:F,onDrag:function(){function $(z,k){I[W]=k,w("modify_particle_value",{new_data:{name:O,value:I,type:"matrix"}})}return $}()},W)})})})},l=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=(0,o.useLocalState)(V,"particleFloatStep",.01),W=F[0],$=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.NumberInput,{value:I,stepPixelSize:4,step:W,format:function(){function z(k){return(0,a.toFixed)(k,(0,r.numberOfDecimalDigits)(W))}return z}(),width:"80px",onDrag:function(){function z(k,M){return w("modify_particle_value",{new_data:{name:O,value:M,type:"float"}})}return z}()}),(0,e.createComponentVNode)(2,i.Box,{inline:!0,ml:2,mr:1,children:"Step:"}),(0,e.createComponentVNode)(2,i.NumberInput,{value:W,step:.001,format:function(){function z(k){return(0,a.toFixed)(k,4)}return z}(),width:"70px",onChange:function(){function z(k,M){return $(M)}return z}()})],4)},d=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=["num","vector","box","color","circle","sphere","square","cube"],W=["UNIFORM_RAND","NORMAL_RAND","LINEAR_RAND","SQUARE_RAND"],$="",z="",k="",M="";if(v.logger.log(I),I){var D=I.match(/\((.*)\)/);if(D=D||["","","",""],D=D[1].split(", "),D.length===4){$=D[0],M=D[1];var A=D[2].match(/\((.*)\)/);z=A&&A[1];var P=D[3].match(/\((.*)\)/);k=P?P[1]:D[3]}}var U=(0,o.useLocalState)(V,O+"genType",$),K=U[0],G=U[1],X=(0,o.useLocalState)(V,O+"a",z),_=X[0],J=X[1],ce=(0,o.useLocalState)(V,O+"b",k),Ee=ce[0],le=ce[1],re=(0,o.useLocalState)(V,O+"rand",M),ye=re[0],Ae=re[1],xe=function(){v.logger.log(K),w("modify_particle_value",{new_data:{name:O,value:{genType:K,a:_,b:Ee,rand:ye},type:"generator"}})};return(0,e.createComponentVNode)(2,i.Collapsible,{title:"Generator Settings - Hit Set to save",children:(0,e.createComponentVNode)(2,i.Section,{level:2,children:[(0,e.createComponentVNode)(2,i.LabeledList,{children:[(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:K,children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:""+F.join(", "),children:(0,e.createComponentVNode)(2,i.Input,{value:K,onInput:function(){function Oe(ue,ne){return G(ne)}return Oe}()})})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"A",children:(0,e.createComponentVNode)(2,i.Input,{value:_,onInput:function(){function Oe(ue,ne){return J(ne)}return Oe}()})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"B",children:(0,e.createComponentVNode)(2,i.Input,{value:Ee,onInput:function(){function Oe(ue,ne){return le(ne)}return Oe}()})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"Rand Type",children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:""+W.join(", "),children:(0,e.createComponentVNode)(2,i.Input,{value:ye,onInput:function(){function Oe(ue,ne){return Ae(ne)}return Oe}()})})})]}),(0,e.createComponentVNode)(2,i.Button,{content:"Set",onClick:function(){function Oe(){return xe()}return Oe}()})]})})},c=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createComponentVNode)(2,i.Input,{value:I,width:"250px",onInput:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"string"}})}return F}()})},g=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=I?Object.keys(I).map(function(W){return I[W]}):[];return(0,e.createComponentVNode)(2,i.Input,{value:F.join(","),width:"250px",onInput:function(){function W($,z){return w("modify_particle_value",{new_data:{name:O,value:z,type:"numList"}})}return W}()})},u=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{icon:"pencil-alt",onClick:function(){function F(){return w("modify_color_value")}return F}()}),(0,e.createComponentVNode)(2,i.ColorBox,{color:I,mr:.5}),(0,e.createComponentVNode)(2,i.Input,{value:I,width:"90px",onInput:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"color"}})}return F}()})],4)},s=function(N,V){var I=N.value,O=(0,o.useBackend)(V),x=O.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{icon:"pencil-alt",onClick:function(){function w(){return x("modify_icon_value")}return w}()}),(0,e.createComponentVNode)(2,i.Box,{inline:!0,ml:1,children:I})],4)},h={width:"float",height:"float",count:"int",spawning:"float",bound1:"numlist",bound2:"numlist",gravity:"numlist",gradient:"string",transform:"matrix",lifespan:"float",fade:"float",icon:"icon",icon_state:"string",color:"color",color_change:"float",position:"generator",velocity:"generator",scale:"generator",grow:"generator",rotation:"float",spin:"float",friction:"float",drift:"generator"},p=function(N,V){var I=N.name,O={int:(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({},N))),float:(0,e.normalizeProps)((0,e.createComponentVNode)(2,l,Object.assign({},N))),string:(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({},N))),numlist:(0,e.normalizeProps)((0,e.createComponentVNode)(2,g,Object.assign({},N))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({},N))),icon:(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},N))),generator:(0,e.normalizeProps)((0,e.createComponentVNode)(2,d,Object.assign({},N))),matrix:(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({},N)))};return(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:I,children:O[h[I]]||"Not Found (This is an error)"})},S=function(N,V){var I=(0,o.useBackend)(V),O=I.act,x=I.data,w=N.particle;return(0,e.createComponentVNode)(2,i.LabeledList,{children:Object.keys(h).map(function(F){var W=w[F];return(0,e.createComponentVNode)(2,p,{name:F,value:W},F)})})},T=function(){return(0,e.createComponentVNode)(2,i.Collapsible,{title:"Generator Help",children:[(0,e.createComponentVNode)(2,i.Section,{level:2}),(0,e.createComponentVNode)(2,i.Section,{level:2,children:(0,e.createVNode)(1,"table",null,(0,e.createVNode)(1,"tbody",null,[(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Generator type",16),(0,e.createVNode)(1,"td",null,"Result type",16),(0,e.createVNode)(1,"td",null,"Description",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"num",16),(0,e.createVNode)(1,"td",null,"num",16),(0,e.createVNode)(1,"td",null,"A random number between A and B.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector on a line between A and B.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"box",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector within a box whose corners are at A and B",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"color",16),(0,e.createVNode)(1,"td",null,"color (string) or color matrix",16),(0,e.createVNode)(1,"td",null,"Result type depends on whether A or B are matrices or not. The result is interpolated between A and B; components are not randomized separately.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"circle",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random XY-only vector in a ring between radius A and B, centered at 0,0.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"sphere",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector in a spherical shell between radius A and B, centered at 0,0,0.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"square",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random XY-only vector between squares of sizes A and B. (The length of the square is between A*2 and B*2, centered at 0,0.)",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"cube",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector between cubes of sizes A and B. (The length of the cube is between A*2 and B*2, centered at 0,0,0.)",16)],4)],4),2)})]})},y=n.Particool=function(){function E(N,V){var I=(0,o.useBackend)(V),O=I.act,x=I.data,w=x.target_particle||{},F=w&&Object.keys(w).length>0;return(0,e.createComponentVNode)(2,f.Window,{title:"Particool",width:700,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,i.NoticeBox,{danger:!0,children:[" ",String(Date.now())," ",(0,e.createVNode)(1,"br"),"Particles? ",F.toString()," -",(x.target_particle===null).toString()," ",(0,e.createVNode)(1,"br"),"dazta Json - ",JSON.stringify(x.target_particle)]}),(0,e.createComponentVNode)(2,i.Section,{title:(0,e.createComponentVNode)(2,i.Box,{inline:!0,children:"Particle"}),buttons:F?(0,e.createComponentVNode)(2,i.Button.Confirm,{icon:"minus",content:"Remove Particle",onClick:function(){function W(){return O("remove_particle")}return W}()}):(0,e.createComponentVNode)(2,i.Button,{icon:"plus",content:"Add Particle",onClick:function(){function W(){return O("add_particle")}return W}()}),children:[(0,e.createComponentVNode)(2,T),F?(0,e.createComponentVNode)(2,S,{particle:w}):(0,e.createComponentVNode)(2,i.Box,{children:"No particle"})]})]})})}return E}()},56150:function(b,n,t){"use strict";n.__esModule=!0,n.Photocopier=void 0;var e=t(89005),a=t(36036),r=t(72253),o=t(98595),i=n.Photocopier=function(){function m(l,d){var c=(0,r.useBackend)(d),g=c.data,u=g.isAI,s=g.has_toner,h=g.has_item;return(0,e.createComponentVNode)(2,o.Window,{title:"Photocopier",width:240,height:u?309:234,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[s?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.createComponentVNode)(2,v):(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted item."})}),!!u&&(0,e.createComponentVNode)(2,C)]})})}return m}(),f=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.max_toner,h=u.current_toner,p=s*.66,S=s*.33;return(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[p,s],average:[S,p],bad:[0,S]},value:h,minValue:0,maxValue:s})})},v=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.num_copies,h=u.has_enough_toner;return(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:[(0,e.createComponentVNode)(2,a.Flex,{children:[(0,e.createComponentVNode)(2,a.Flex.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.NumberInput,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:s,onDrag:function(){function p(S,T){return g("set_copies",{num_copies:T})}return p}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Button,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){function p(){return g("make_copy")}return p}(),children:"Copy"})})]}),(0,e.createComponentVNode)(2,a.Button,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){function p(){return g("remove")}return p}(),children:"Remove item"})]})},C=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.can_AI_print;return(0,e.createComponentVNode)(2,a.Section,{title:"AI Options",children:(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{fluid:!0,icon:"images",textAlign:"center",disabled:!s,onClick:function(){function h(){return g("ai_photo")}return h}(),children:"Print photo from database"})})})}},57003:function(b,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(78091),f=n.PortablePump=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.direction,u=c.target_pressure,s=c.default_pressure,h=c.min_pressure,p=c.max_pressure;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:405,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,i.PortableBasicInfo),(0,e.createComponentVNode)(2,r.Section,{title:"Pump",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:g?"sign-in-alt":"sign-out-alt",content:g?"In":"Out",selected:g,onClick:function(){function S(){return d("direction")}return S}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Output",children:(0,e.createComponentVNode)(2,r.NumberInput,{value:u,unit:"kPa",width:"75px",minValue:h,maxValue:p,step:10,onChange:function(){function S(T,y){return d("pressure",{pressure:y})}return S}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"minus",disabled:u===h,onClick:function(){function S(){return d("pressure",{pressure:"min"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",disabled:u===s,onClick:function(){function S(){return d("pressure",{pressure:"reset"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"plus",disabled:u===p,onClick:function(){function S(){return d("pressure",{pressure:"max"})}return S}()})]})]})})]})})}return v}()},70069:function(b,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(78091),f=n.PortableScrubber=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.filter_types||[],u=c.target_rate,s=c.default_rate,h=c.min_rate,p=c.max_rate;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:405,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,i.PortableBasicInfo),(0,e.createComponentVNode)(2,r.Section,{title:"Scrubber",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Volume Rate",children:(0,e.createComponentVNode)(2,r.NumberInput,{value:u,unit:"L/s",width:"75px",minValue:h,maxValue:p,step:10,onChange:function(){function S(T,y){return d("rate",{rate:y})}return S}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"minus",disabled:u===h,onClick:function(){function S(){return d("rate",{rate:"min"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",disabled:u===s,onClick:function(){function S(){return d("rate",{rate:"reset"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"plus",disabled:u===p,onClick:function(){function S(){return d("rate",{rate:"max"})}return S}()})]})]})})]})})}return v}()},31197:function(b,n,t){"use strict";n.__esModule=!0,n.ReligiousTool=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=[],v=function(V,I){if(V===3)return(0,e.createComponentVNode)(2,u);if(I)return(0,e.createComponentVNode)(2,g);if(V===1)return(0,e.createComponentVNode)(2,l);if(V===2)return(0,e.createComponentVNode)(2,E)},C=n.ReligiousTool=function(){function N(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=(0,r.useSharedState)(I,"tab",1),W=F[0],$=F[1],z=w.sects,k=w.encyclopedia;return k.ASPECTS.map(function(M){return f[M.name]=M.color}),(0,e.createComponentVNode)(2,i.Window,{width:1e3,height:700,children:(0,e.createComponentVNode)(2,i.Window.Content,{fontSize:"14px",children:[(0,e.createComponentVNode)(2,o.Tabs,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{direction:"raw",width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===1,onClick:function(){function M(){return $(1)}return M}(),children:["Religion ",(0,e.createComponentVNode)(2,o.Icon,{name:"place-of-worship"})]})}),!z&&(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===2,onClick:function(){function M(){return $(2)}return M}(),children:["Rites ",(0,e.createComponentVNode)(2,o.Icon,{name:"pray"})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===3,onClick:function(){function M(){return $(3)}return M}(),children:["Encyclopedia ",(0,e.createComponentVNode)(2,o.Icon,{name:"book-open"})]})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v(W,z)})]})})}return N}(),m=function(V,I){var O=null;return I.length?O=I.map(function(x){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.toTitleCase)(x)}),2,null,x)}):O=(0,e.createComponentVNode)(2,o.Box,{color:"gray",children:"Nothing."}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:V,fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",ml:I.length?3:0,children:(0,e.createVNode)(1,"ui",null,O,0)})})})},l=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.name,W=w.deities,$=w.favor,z=w.piety,k=w.max_favor,M=w.passive_favor_gain,D=w.aspects,A=w.techs,P=w.god_spells,U=w.holy_reagents,K=w.faith_reactions;return(0,e.createComponentVNode)(2,o.Section,{title:F,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{children:W}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Stack,{mt:2,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:"Resources",fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",ml:3,children:(0,e.createVNode)(1,"ui",null,[(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"yellow",children:["Favor: ",$," / ",k,(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" "),(0,e.createTextVNode)("(+"),M,(0,e.createTextVNode)(")")],0,{style:{color:"gray","font-size":"8pt"}})]}),2),(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"pink",children:["Piety: ",z]}),2)],4)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:"Aspects",fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",children:d("",D)})})}),m("Techs",A)]}),(0,e.createComponentVNode)(2,o.Stack,{children:[m("God Spells",P),m("Holy Reagents",U),m("Faith Reactions",K)]})]})]})},d=function(V,I,O){return O===void 0&&(O=!0),I?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:[(0,e.createVNode)(1,"ui",null,Object.keys(I).map(function(x){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:f[x],inline:!0,children:[x," = ",I[x]]}),2,null,x)}),0),O?(0,e.createVNode)(1,"br"):""]})]}):null},c=function(V,I,O){return O===void 0&&(O=!0),!V&&!I?null:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"Costs:"}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,[!!V&&(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"yellow",children:[V," favor"]}),2),!!I&&(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"pink",children:[I," piety"]}),2)],0)}),O?(0,e.createVNode)(1,"br"):""]})},g=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.sects,W=w.holds_religious_tool;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:51,scrollable:!0,title:"Sect Select",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:F.map(function($){return(0,e.createComponentVNode)(2,o.Collapsible,{title:(0,e.createVNode)(1,"b",null,$.name,0),color:"transparent",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.BlockQuote,{children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:$.desc}),(0,e.createComponentVNode)(2,o.Box,{children:[$.aspect_preset||$.aspects_count?(0,e.createVNode)(1,"br"):"",d("Aspects:",$.aspect_preset),$.aspects_count&&(0,e.createComponentVNode)(2,o.Box,{children:["You can choose ",$.aspects_count," aspects."]})]})]})}),(0,e.createComponentVNode)(2,o.Button,{mt:2,textAlign:"center",icon:"plus",fluid:!0,disabled:!W,onClick:function(){function z(){return x("sect_select",{path:$.path})}return z}(),children:[$.aspects_count?"Create":"Select"," ",$.name]})]},$.name)},$.name)})})})},u=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=(0,r.useSharedState)(I,"cat",""),W=F[0],$=F[1],z=w.encyclopedia;return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Tabs,{vertical:1,children:Object.keys(z).map(function(k){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===k,onClick:function(){function M(){return $(k)}return M}(),children:(0,a.toTitleCase)(k)},k)})}),(0,e.createComponentVNode)(2,o.Section,{height:51,fill:!0,scrollable:!0,width:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:[W==="RITES"&&(0,e.createComponentVNode)(2,s),W==="SECTS"&&(0,e.createComponentVNode)(2,h),W==="ASPECTS"&&(0,e.createComponentVNode)(2,p),W==="GOD SPELLS"&&(0,e.createComponentVNode)(2,S),W==="HOLY REAGENTS"&&(0,e.createComponentVNode)(2,T),W==="FAITH REACTIONS"&&(0,e.createComponentVNode)(2,y)]})})]})},s=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.RITES,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc.replace(/<[/]?i>/g,"")}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"b",null,"Length:",16)," ",A.ritual_length/10," seconds."]}),(0,e.createComponentVNode)(2,o.Box,{color:A.can_talismaned?"green":"red",children:["Can",A.can_talismaned?"":"'t"," be talismaned."]}),A.needed_aspects?(0,e.createVNode)(1,"br"):"",d("Needed Aspects:",A.needed_aspects,!1),(!!A.favor_cost||!!A.piety_cost)&&(0,e.createVNode)(1,"br"),c(A.favor_cost,A.piety_cost,!1),(0,e.createComponentVNode)(2,o.Box,{children:!!A.tips.length&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:[" ",(0,e.createVNode)(1,"br"),"Tips:"]}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,A.tips.map(function(P){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:P.replace(/<[/]?i>/g,"")}),2,null,P)}),0)})]})})]})},A.name)})]})},h=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.SECTS,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc}),(0,e.createVNode)(1,"br"),d("Aspect Preset:",A.aspect_preset,!1),A.aspects_count&&(0,e.createComponentVNode)(2,o.Box,{children:["You can choose ",A.aspects_count," aspects."]})]})},A.name)})]})},p=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.ASPECTS,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{color:f[A.name],title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc}),A.god_desc&&(0,e.createComponentVNode)(2,o.Box,{children:[" ",(0,e.createVNode)(1,"br"),A.god_desc]})]})},A.name)})]})},S=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["GOD SPELLS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[d("Needed Aspects:",A.needed_aspects),c(A.favor_cost),(0,e.createComponentVNode)(2,o.Box,{children:["Cooldown: ",A.charge_max/10," seconds"]})]})},A.name)})]})},T=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["HOLY REAGENTS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:d("Needed Aspects:",A.needed_aspects,!1)})},A.name)})]})},y=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["FAITH REACTIONS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.convertable_id+" to "+A.result_id}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:(0,a.capitalize)(A.convertable_id)+" to "+(0,a.capitalize)(A.result_id),children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[d("Needed Aspects:",A.needed_aspects,!1),A.favor_cost?(0,e.createVNode)(1,"br"):"",c(A.favor_cost,0,!1)]})},(0,a.capitalize)(A.convertable_id)+" to "+(0,a.capitalize)(A.result_id))})]})},E=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.rites,W=w.favor,$=w.piety,z=w.can_talismaning,k=w.holds_religious_tool,M=(0,r.useSharedState)(I,"searchText",""),D=M[0],A=M[1],P=(0,a.createSearch)(D,function(K){return K.name}),U=D.length>0&&F.filter(P)||F;return(0,e.createComponentVNode)(2,o.Section,{height:52,fill:!0,scrollable:!0,width:"100%",children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function K(G,X){return A(X)}return K}(),mb:1}),(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mt:2,children:U.map(function(K){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:K.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{fontColor:"white",disabled:!k||W0?" "+K.piety_cost+" piety":""),disabled:!z||!K.can_talismaned||W0?" and "+K.piety_cost+" piety":"","."]}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:K.desc}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{children:["Power: ",K.power]}),(0,e.createComponentVNode)(2,o.Box,{children:!!K.tips.length&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:[" ",(0,e.createVNode)(1,"br"),"Tips:"]}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,K.tips.map(function(G){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:G.replace(/<[/]?i>/g,"")}),2,null,G)}),0)})]})})]})]})},K.name)})})]})}},54431:function(b,n,t){"use strict";n.__esModule=!0,n.Safe=void 0;var e=t(89005),a=t(59626),r=t(72253),o=t(36036),i=t(98595),f=n.Safe=function(){function l(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.dial,p=s.open;return(0,e.createComponentVNode)(2,i.Window,{width:625,height:760,theme:"ntos",children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving-hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving-hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe__engraving-arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),p?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe__dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*h+"deg)"}})]}),!p&&(0,e.createComponentVNode)(2,m)]})})}return l}(),v=function(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.dial,p=s.open,S=s.locked,T=function(E,N){return(0,e.createComponentVNode)(2,o.Button,{disabled:p||N&&!S,icon:"arrow-"+(N?"right":"left"),content:(N?"Right":"Left")+" "+E,iconPosition:N?"right":"left",onClick:function(){function V(){return u(N?"turnleft":"turnright",{num:E})}return V}()})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:S,icon:p?"lock":"lock-open",content:p?"Close":"Open",mb:"0.5rem",onClick:function(){function y(){return u("open")}return y}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[T(50),T(10),T(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer-right",position:"absolute",right:"5px",children:[T(1,!0),T(10,!0),T(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer-number",children:h})]})},C=function(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe__contents",overflow:"auto",children:h.map(function(p,S){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function T(){return u("retrieve",{index:S+1})}return T}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:p.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),p.name]}),(0,e.createVNode)(1,"br")],4,p)})})},m=function(d,c){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe__help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},98984:function(b,n,t){"use strict";n.__esModule=!0,n.SamplerPipe=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.SamplerPipe=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.gases,g=d.nodeName,u=d.locked;return(0,e.createComponentVNode)(2,o.Window,{title:"Atmospherics Alet System",width:300,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{title:"Node name",children:(0,e.createComponentVNode)(2,r.Input,{disabled:u,fluid:!0,value:g,onChange:function(){function s(h,p){return l("setName",{name:p})}return s}()})}),(0,e.createComponentVNode)(2,r.Section,{title:"Gases",children:c.map(function(s){return(0,e.createComponentVNode)(2,r.Section,{title:s.name,children:[(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:"Lower"}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.NumberInput,{disabled:u,width:5,minValue:0,maxValue:1,step:.01,value:s.threshold.min,onChange:function(){function h(p,S){return l("setBound",{id:s.id,bound:"min",value:S})}return h}()})})]}),(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:"Upper"}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.NumberInput,{disabled:u,width:5,minValue:0,maxValue:1,step:.01,value:s.threshold.max,onChange:function(){function h(p,S){return l("setBound",{id:s.id,bound:"max",value:S})}return h}()})})]})]},s.id)})})]})})}return f}()},23278:function(b,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=function(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=c.locked,s=c.l_setshort,h=c.code,p=c.emagged;return(0,e.createComponentVNode)(2,r.Box,{width:"185px",children:(0,e.createComponentVNode)(2,r.Grid,{width:"1px",children:g.map(function(S){return(0,e.createComponentVNode)(2,r.Grid.Column,{children:S.map(function(T){return(0,e.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,mb:"6px",content:T,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!p||!!s&&1||T!=="R"&&!u||h==="ERROR"&&T!=="R"&&1,onClick:function(){function y(){return d("type",{digit:T})}return y}()},T)})},S[0])})})})},f=n.SecureSafe=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.code,u=c.l_setshort,s=c.l_set,h=c.emagged,p=c.locked,S=!(s||u);return(0,e.createComponentVNode)(2,o.Window,{width:250,height:380,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Box,{m:"6px",children:[S&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!h&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.createComponentVNode)(2,r.Section,{height:"60px",children:(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",position:"center",fontSize:"35px",children:g&&g||(0,e.createComponentVNode)(2,r.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,e.createComponentVNode)(2,r.Flex,{ml:"3px",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,r.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}return v}()},32163:function(b,n,t){"use strict";n.__esModule=!0,n.SkillsConsole=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.SkillsConsole=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.skill_list,g=d.IQ,u=d.MDI,s=d.skill_min_value,h=d.skill_max_value,p=d.compatible_species,S=d.inserted_cartridge,T=d.cartridge_name,y=d.cartridge_unpacked,E=d.connected_table,N=d.cartridge_points,V=d.connected_patient,I=d.free_points,O=d.can_inject,x=d.power_usage,w=d.power_max,F=d.power_current;return(0,e.createComponentVNode)(2,o.Window,{resizable:!0,width:600,height:675,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,r.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Section,{title:"Power info",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Active power usage",children:[x/1e3," kW"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available power in area",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:w!=="No data"?F/w:"No data"})})]})})}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{width:"40%",mr:1,children:(0,e.createComponentVNode)(2,r.Section,{title:"Patient status",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[!E&&(0,e.createComponentVNode)(2,r.Box,{children:"CMF manipulion table is not connected"}),!V&&(0,e.createComponentVNode)(2,r.Box,{children:"No patient detected"}),E&&V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"IQ",children:g}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"MDI",children:u})],4)]})})}),(0,e.createComponentVNode)(2,r.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,r.Section,{title:"Cartridge information",children:[!S&&(0,e.createComponentVNode)(2,r.Box,{children:"No cartridge inserted"}),S===1&&(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Installed cartridge",children:[T,!y&&(0,e.createComponentVNode)(2,r.Box,{as:"span",m:5,children:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject cartridge",onClick:function(){function W(){l("eject")}return W}(),style:{marginLeft:20}})})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Compatible species",children:p.join(", ")}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available USP",children:[y===0&&N,y===1&&I]})]})]})})]})}),y===0&&S===1&&(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,r.Button,{onClick:function(){function W(){l("unpack")}return W}(),fluid:!0,color:"danger",tooltip:"This action will destroy the cartridge and begin the CMF manipulation procedure.",children:"Unpack cartridge"})}),y===1&&S===1&&(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Section,{title:"CMF manipulation",children:[Object.keys(c).map(function(W){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:W,children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{onChange:function(){function $(z,k){c[W]=k,l("change_skill",c)}return $}(),step:1,value:c[W],maxValue:h,stepPixelSize:50,minValue:s})})})},W)}),(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,r.Button,{onClick:function(){function W(){l("inject")}return W}(),fluid:!0,disabled:O===0,color:"green",children:"Inject implant"}),(0,e.createComponentVNode)(2,r.Button.Confirm,{onClick:function(){function W(){l("abort")}return W}(),fluid:!0,color:"danger",confirmContent:"Confirm ",children:"Abort"})]})]})})]})})})}return f}()},86162:function(b,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(49968),i=t(98595),f=1e3,v=n.Smes=function(){function C(m,l){var d=(0,a.useBackend)(l),c=d.act,g=d.data,u=g.capacityPercent,s=g.charge,h=g.inputAttempt,p=g.inputting,S=g.inputLevel,T=g.inputLevelMax,y=g.inputAvailable,E=g.outputAttempt,N=g.outputting,V=g.outputLevel,I=g.outputLevelMax,O=g.outputUsed,x=u>=100&&"good"||p&&"average"||"bad",w=N&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,i.Window,{width:340,height:350,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,r.ProgressBar,{fractionDigits:1,value:u*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,r.Section,{title:"Input",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){function F(){return c("tryinput")}return F}(),children:h?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,r.Box,{color:x,children:u>=100&&"Fully Charged"||p&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:S===0,onClick:function(){function F(){return c("input",{target:"min"})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"backward",disabled:S===0,onClick:function(){function F(){return c("input",{adjust:-1e4})}return F}()})]}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{value:S/f,fillValue:y/f,minValue:0,maxValue:T/f,step:5,stepPixelSize:4,format:function(){function F(W){return(0,o.formatPower)(W*f,1)}return F}(),onDrag:function(){function F(W,$){return c("input",{target:$*f})}return F}()})}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"forward",disabled:S===T,onClick:function(){function F(){return c("input",{adjust:1e4})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:S===T,onClick:function(){function F(){return c("input",{target:"max"})}return F}()})]})]})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(y)})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Output",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:E?"power-off":"times",selected:E,onClick:function(){function F(){return c("tryoutput")}return F}(),children:E?"On":"Off"}),children:(0,e.createComponentVNode)(2,r.Box,{color:w,children:N?"Sending":s>0?"Not Sending":"No Charge"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:V===0,onClick:function(){function F(){return c("output",{target:"min"})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"backward",disabled:V===0,onClick:function(){function F(){return c("output",{adjust:-1e4})}return F}()})]}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{value:V/f,minValue:0,maxValue:I/f,step:5,stepPixelSize:4,format:function(){function F(W){return(0,o.formatPower)(W*f,1)}return F}(),onDrag:function(){function F(W,$){return c("output",{target:$*f})}return F}()})}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"forward",disabled:V===I,onClick:function(){function F(){return c("output",{adjust:1e4})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:V===I,onClick:function(){function F(){return c("output",{target:"max"})}return F}()})]})]})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(O)})]})})]})})}return C}()},38096:function(b,n,t){"use strict";n.__esModule=!0,n.SpawnersMenu=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(49968),v=n.SpawnersMenu=function(){function C(m,l){var d=(0,r.useBackend)(l),c=d.act,g=d.data,u=g.spawners;return(0,e.createComponentVNode)(2,i.Window,{title:"\u041C\u0435\u043D\u044E \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0445 \u0440\u043E\u043B\u0435\u0439",width:700,height:525,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[!u.length&&(0,e.createComponentVNode)(2,o.Flex.Item,{fontSize:"14px",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{children:"\u0420\u043E\u043B\u0435\u0439 \u043D\u0435\u0442, \u043D\u043E \u043D\u0435 \u043F\u0435\u0447\u0430\u043B\u044C\u0441\u044F, \u043E\u043D\u0438 \u0441\u043A\u043E\u0440\u043E \u0431\u0443\u0434\u0443\u0442!"})}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:(0,a.toTitleCase)(s.name),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C\u0441\u044F",onClick:function(){function h(){return c("jump",{ref:s.ref})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:s.register_only?s.checked?"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C":"\u0417\u0430\u044F\u0432\u0438\u0442\u044C":"\u041F\u043E\u044F\u0432\u0438\u0442\u044C\u0441\u044F",selected:s.checked,blocked:s.blocked,onClick:function(){function h(){return c("spawn",{ref:s.ref})}return h}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[s.time_left&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:s.time_type===1?"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F":"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E",color:s.time_type===1?"green":"red",children:(0,f.formatTime)(s.time_left)}),!!s.register_only&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u041A\u0430\u043D\u0434\u0438\u0434\u0430\u0442\u043E\u0432",children:s.registered_candidates}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u041F\u043E\u0437\u0438\u0446\u0438\u0439 \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u043E",children:s.positions}),s.playing>0&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u0418\u0433\u0440\u0430\u0435\u0442",children:s.playing}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:s.short_desc}),s.important_warning&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u0430\u0436\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",children:s.important_warning}),s.wiki_ref&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u0438\u043A\u0438",children:(0,e.createVNode)(1,"a",null,s.wiki_ref,0,{href:"{spawner.wiki_ref}",target:"_blank"})})]})}),(0,e.createVNode)(1,"br")]},s.ref)})]})})})}return C}()},85444:function(b,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var e=t(89005),a=t(87341),r=t(72253),o=t(36036),i=t(98595),f=t(9394),v=n.Stack=function(){function c(g,u){var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=p.amount,T=p.recipes;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:720,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Amount: "+S,children:(0,e.createComponentVNode)(2,C,{recipes:T})})})})}return c}(),C=function(g,u){var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=g.recipes,T=Object.keys(S).sort();return T.map(function(y,E){var N=S[y];return N.ref===void 0?(0,e.createComponentVNode)(2,o.Collapsible,{ml:1,mb:-.7,color:"label",title:y,children:(0,e.createComponentVNode)(2,o.Box,{ml:1,children:(0,e.createComponentVNode)(2,C,{recipes:N})})},E):(0,e.createComponentVNode)(2,d,{title:y,recipe:N},E)})},m=function(g,u){return g.req_amount>u?0:Math.floor(u/g.req_amount)},l=function(g,u){for(var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=g.recipe,T=g.maxMultiplier,y=Math.min(T,Math.floor(S.max_res_amount/S.res_amount)),E=[5,10,25],N=[],V=function(){var w=O[I];y>=w&&N.push((0,e.createComponentVNode)(2,o.Button,{content:w*S.res_amount+"x",onClick:function(){function F(){return h("make",{ref:S.ref,multiplier:w})}return F}()}))},I=0,O=E;I1?"s":""),O+=")",E>1&&(O=E+"x "+O);var x=m(T,S);return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:!x,icon:"wrench",content:O,onClick:function(){function w(){return h("make",{ref:T.ref,multiplier:1})}return w}()})}),N>1&&x>1&&(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,l,{recipe:T,maxMultiplier:x})})]})})})}},1754:function(b,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Tank=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,r.ProgressBar,{value:d.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure Regulator",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:d.ReleasePressure===d.minReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"min"})}return c}()}),(0,e.createComponentVNode)(2,r.NumberInput,{animated:!0,value:parseFloat(d.releasePressure),width:"65px",unit:"kPa",minValue:d.minReleasePressure,maxValue:d.maxReleasePressure,onChange:function(){function c(g,u){return l("pressure",{pressure:u})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:d.ReleasePressure===d.maxReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"max"})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"undo",content:"",disabled:d.ReleasePressure===d.defaultReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"reset"})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:d.connected?"toggle-on":"toggle-off",content:"",selected:d.connected?"selected":null,onClick:function(){function c(){return l("internal")}return c}()})]})]})})})})}return f}()},53752:function(b,n,t){"use strict";n.__esModule=!0,n.Vote=void 0;var e=t(89005),a=t(72253),r=t(14596),o=t(36036),i=t(98595),f=n.Vote=function(){function d(c,g){var u=(0,a.useBackend)(g),s=u.data,h=s.isAdmin,p=s.currentPoll,S=s.polls,T=Math.min(730,90+(!p||h?45+26*S.filter(function(y){return!y.adminOnly||!!h}).length:0)+(p?135+22*p.choices.length:23));return(0,e.createComponentVNode)(2,i.Window,{width:450,height:T,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(!p||!!h)&&(0,e.createComponentVNode)(2,m),!!p&&(0,e.createComponentVNode)(2,l)]})]})})}return d}(),v=function(c,g){var u=(0,a.useBackend)(g),s=u.data,h=s.currentPoll,p=(0,a.useLocalState)(g,"infoModalOpen",!1),S=p[0],T=p[1];return S?h?(0,e.createComponentVNode)(2,o.Modal,{children:["\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u043E\u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u0442\u044C"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canVoteMultiple?"\u0437\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432":"\u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043E\u0434\u0438\u043D \u0432\u0430\u0440\u0438\u0430\u043D\u0442"}),(0,e.createVNode)(1,"br"),"\u0412\u044B"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canRevote?"\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C":"\u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C"})," ","\u0441\u0432\u043E\u0439 \u0433\u043E\u043B\u043E\u0441",(0,e.createVNode)(1,"br"),"\u0412\u044B"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canUnvote?"\u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C":"\u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"})," ","\u0441\u0432\u043E\u0439 \u0433\u043E\u043B\u043E\u0441",(0,e.createVNode)(1,"br"),h.minimumWinPercentage?(0,e.createFragment)([(0,e.createTextVNode)("\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043D\u0430\u0431\u0440\u0430\u0442\u044C \u043C\u0438\u043D\u0438\u043C\u0443\u043C"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:[h.minimumWinPercentage*100,"%"]}),(0,e.createTextVNode)(", \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043F\u043E\u0431\u0435\u0434\u0438\u043B")],0):"",h.description&&(0,e.createFragment)([(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,o.Box,{dangerouslySetInnerHTML:{__html:(0,r.sanitizeText)(h.description)}})],4),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,align:"center",onClick:function(){function y(){return T(!1)}return y}(),children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"})]}):(T(!1),null):null},C=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.currentPoll,S=(0,a.useLocalState)(g,"infoModalOpen",!1),T=S[0],y=S[1],E=p==null?void 0:p.choices.some(function(N){return N.selected});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!!p&&p.choices.length!==0,title:p?"\u0413\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435: "+p.poll.name:"\u0413\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435",buttons:p?(0,e.createComponentVNode)(2,o.Button,{icon:"info",color:"transparent",disabled:!p,onClick:function(){function N(){return y(!0)}return N}()}):void 0,children:p&&p.choices.length!==0?(0,e.createFragment)([p.showWarning?(0,e.createComponentVNode)(2,o.NoticeBox,{children:p.poll.message}):"",!!p.question&&(0,e.createComponentVNode)(2,o.Box,{italic:!0,children:p.question}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack,{fill:!0,justify:"space-around",children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B"}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"\u0413\u043E\u043B\u043E\u0441\u0430"})]}),(0,e.createVNode)(1,"br"),p.choices.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Box,{height:"22px",children:[(0,e.createComponentVNode)(2,o.Button,{maxWidth:"260px",ellipsis:!0,disabled:!p.canRevote&&E,selected:N.selected,onClick:function(){function V(){return s("putVote",{choiceRef:N.ref})}return V}(),children:N.name.replace(/^\w/,function(V){return V.toUpperCase()})}),!!N.selected&&(0,e.createComponentVNode)(2,o.Icon,{name:"vote-yea",color:"green",ml:1,verticalAlign:"super"})]}),(0,e.createComponentVNode)(2,o.Box,{mr:15,children:N.votes})]},N.ref)})]})],0):(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,mb:"0",children:p?"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432!":"\u041D\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u044F!"})})})},m=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.isAdmin,S=h.polls;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041D\u0430\u0447\u0430\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,justify:"space-between",children:S?S.map(function(T){return(!T.adminOnly||!!p)&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{horizontal:!0,children:[!!p&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{width:9.5,textAlign:"center",onClick:function(){function y(){return s("toggleAdminOnly",{pollRef:T.type})}return y}(),children:T.adminOnly?"\u0422\u043E\u043B\u044C\u043A\u043E \u0430\u0434\u043C\u0438\u043D\u044B":"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043E \u0432\u0441\u0435\u043C"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!T.canStart&&!p||T.forceBlocked,color:p?T.canStart?void 0:"red":void 0,tooltip:T.message,content:T.name,onClick:function(){function y(){return s("callVote",{pollRef:T.type})}return y}()})})]})},T.name)}):(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,children:"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0439!"})})})})},l=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.currentPoll,S=h.isAdmin;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C \u0432\u0440\u0435\u043C\u0435\u043D\u0438: ",(p==null?void 0:p.timeRemaining)||0,"\u0441"]}),!!S&&!!p&&(0,e.createComponentVNode)(2,o.Button,{color:"red",disabled:!S,onClick:function(){function T(){return s("cancelVote")}return T}(),children:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435"})]})})})}},30138:function(b,n,t){"use strict";n.__esModule=!0,n.Wires=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Wires=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.wires||[],g=d.status||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:45+c.length*25+(g.length>0?35:0)+g.length*12,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:c.map(function(u){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{className:"candystripe",label:u.label?u.label:"\u041F\u0440\u043E\u0432\u043E\u0434\u0430",labelColor:u.color,color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Button,{content:u.cut?"\u0421\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C":"\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u0442\u044C",onClick:function(){function s(){return l("cut",{wire:u.wire})}return s}()}),(0,e.createComponentVNode)(2,r.Button,{content:"\u041F\u0443\u043B\u044C\u0441",onClick:function(){function s(){return l("pulse",{wire:u.wire})}return s}()}),(0,e.createComponentVNode)(2,r.Button,{content:u.attached?"\u041E\u0442\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C":"\u041F\u0440\u0438\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C",onClick:function(){function s(){return l("attach",{wire:u.wire})}return s}()})],4)},u.color)})})}),!!g.length&&(0,e.createComponentVNode)(2,r.Section,{children:g.map(function(u){return typeof u=="string"?(0,e.createComponentVNode)(2,r.Box,{children:u},u):(0,e.createComponentVNode)(2,r.Button,{content:u.label,onClick:function(){function s(){return l(u.act,u.act_params?u.act_params:void 0)}return s}()},u)})})]})})}return f}()},49148:function(b,n,t){"use strict";n.__esModule=!0,n.AccessList=void 0;var e=t(89005),a=t(88510),r=t(72253),o=t(36036);function i(l,d){var c=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(c)return(c=c.call(l)).next.bind(c);if(Array.isArray(l)||(c=f(l))||d&&l&&typeof l.length=="number"){c&&(l=c);var g=0;return function(){return g>=l.length?{done:!0}:{done:!1,value:l[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(l,d){if(l){if(typeof l=="string")return v(l,d);var c={}.toString.call(l).slice(8,-1);return c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set"?Array.from(l):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?v(l,d):void 0}}function v(l,d){(d==null||d>l.length)&&(d=l.length);for(var c=0,g=Array(d);c0&&!O.includes(U.ref)&&!V.includes(U.ref),checked:V.includes(U.ref),onClick:function(){function K(){return x(U.ref)}return K}()},U.desc)})]})]})})}return l}()},195:function(b,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.InterfaceLockNoticeBox=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=f.siliconUser,c=d===void 0?l.siliconUser:d,g=f.locked,u=g===void 0?l.locked:g,s=f.onLockStatusChange,h=s===void 0?function(){return m("lock")}:s,p=f.accessText,S=p===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":p;return c?(0,e.createComponentVNode)(2,r.NoticeBox,{color:"grey",children:(0,e.createComponentVNode)(2,r.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:"\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441:"}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,r.Button,{m:0,color:u?"red":"green",icon:u?"lock":"unlock",content:u?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D",onClick:function(){function T(){h&&h(!u)}return T}()})})]})}):(0,e.createComponentVNode)(2,r.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",S," \u0434\u043B\u044F ",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438":"\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438","."]})}return i}()},190:function(b,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.MiningUser=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=f.insertIdText,c=l.has_id,g=l.id;return(0,e.createComponentVNode)(2,r.NoticeBox,{success:c,children:c?(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",g.name,".",(0,e.createVNode)(1,"br"),"You have ",g.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function u(){return m("logoff")}return u}()}),(0,e.createComponentVNode)(2,r.Box,{style:{clear:"both"}})],4):d})}return i}()},78091:function(b,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.PortableBasicInfo=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=l.connected,c=l.holding,g=l.on,u=l.pressure,s=l.power_draw,h=l.cell_charge,p=l.cell_maxcharge,S=h/p;return(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:g?"power-off":"times",content:g?"On":"Off",selected:g,onClick:function(){function T(){return m("power")}return T}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:u})," kPa"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Port",color:d?"good":"average",children:d?"Connected":"Not Connected"})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Cell",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:s})," W"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Charge",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{bad:[-1/0,.1],average:[.1,.6],good:[.6,1/0]},value:S})})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject",disabled:!c,onClick:function(){function T(){return m("eject")}return T}()}),children:c?(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Label",children:c.name}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:c.pressure})," kPa"]})]}):(0,e.createComponentVNode)(2,r.Box,{color:"average",children:"No holding tank"})})],4)}return i}()},17617:function(b,n,t){"use strict";n.__esModule=!0,n.Layout=void 0;var e=t(89005),a=t(35840),r=t(55937),o=t(24826),i=["className","theme","children"],f=["className","scrollable","children"];/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT