text: "use strict"
  define("controller/app",["exports","controller/resolver","ember-load-initializers","controller/config/environment"],(function(e,t,n,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
  return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var u=function(e){function n(){var e,o;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)
  for(var a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s]
  return(o=i(this,(e=l(n)).call.apply(e,[this].concat(u)))).modulePrefix=r.default.modulePrefix,o.podModulePrefix=r.default.podModulePrefix,o.Resolver=t.default,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
  e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,Ember.Application),n}()
  e.default=u,(0,n.default)(u,r.default.modulePrefix)})),define("controller/component-managers/glimmer",["exports","@glimmer/component/-private/ember-component-manager"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("controller/components/click-and-drag",["exports","@glimmer/component","lodash.throttle","controller/enums/input","controller/utils/math"],(function(e,t,n,r,o){var i,l
  function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n]
  r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
  return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var f,d,b,y,m,h,v=Ember.HTMLBars.template({id:"B4XRxnqx",block:'{"symbols":["@show","@color"],"statements":[[7,"div",false],[12,"class",[29,["click-and-drag ",[28,"unless",[[23,1,[]],"out-of-view"],null]]]],[3,"did-insert",[[23,0,["setup"]]]],[8],[0,"\\n  "],[7,"svg",true],[10,"width","100%"],[10,"height","100%"],[10,"id","swipe-area"],[10,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[8],[0,"\\n    "],[7,"line",true],[10,"stroke-dasharray","5, 5"],[10,"id","svg-line"],[10,"x1","0"],[10,"y1","0"],[10,"x2","0"],[10,"y2","0"],[10,"stroke","#FFFFFF"],[10,"stroke-width","2"],[8],[9],[0,"\\n    "],[7,"circle",true],[10,"id","svg-finger"],[10,"cx","0"],[10,"cy","0"],[10,"r","0"],[10,"stroke","#FFFFFF"],[10,"stroke-width","2"],[11,"fill",[23,2,[]]],[8],[9],[0,"\\n  "],[9],[0,"\\n"],[9]],"hasEval":false}',meta:{moduleName:"controller/components/click-and-drag.hbs"}}),g=200,w=(l=function(e){function t(){var e,r;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t)
  for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l]
  return(r=s(this,(e=c(t)).call.apply(e,[this].concat(i)))).swipeAnalog=void 0,r.circle=void 0,r.line=void 0,r.aiming=!1,r.maxX=0,r.maxY=0,r.fingerRadius=15,r.minSwipeDistance=20,r.throttledSendInput=(0,n.default)((function(e,t){r.sendInput(e,t)}),g,{trailing:!1}),r}var i,l,a
  return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
  e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),i=t,(l=[{key:"setup",value:function(e){var t=this
  this.line=e.querySelector("svg line"),this.circle=e.querySelector("svg circle")
  var n=window.getComputedStyle(e.querySelector("svg"))
  this.maxX=parseInt(n.width.replace("px","")),this.maxY=parseInt(n.height.replace("px","")),this.swipeAnalog=new SwipeAnalog(e,{touchstart:function(){return t.swipeAreaTouchStart()},touchmove:function(e){return t.swipeAreaTouchMove(e)},touchend:function(e){return t.swipeAreaTouchEnd(e)},min_swipe_distance:this.minSwipeDistance})}},{key:"sendInput",value:function(e,t){var n,r
  t&&t.distance>=this.minSwipeDistance&&this.args.onInput({t:e,d:null!==(n=t.distance)&&void 0!==n?n:0,a:null!==(r=t.angle)&&void 0!==r?r:0})}},{key:"swipeAreaTouchStart",value:function(){var e,t,n,r,i,l,a
  !this.aiming&&this.args.show&&(this.aiming=!0,null===(e=this.circle)||void 0===e||e.setAttribute("cx",(0,o.clamp)(this.swipeAnalog.start_position.x,0,this.maxX).toString()),null===(t=this.circle)||void 0===t||t.setAttribute("cy",(0,o.clamp)(this.swipeAnalog.start_position.y,0,this.maxY).toString()),null===(n=this.circle)||void 0===n||n.setAttribute("r",this.fingerRadius.toString()),null===(r=this.line)||void 0===r||r.setAttribute("x1",(0,o.clamp)(this.swipeAnalog.start_position.x,0,this.maxX).toString()),null===(i=this.line)||void 0===i||i.setAttribute("y1",(0,o.clamp)(this.swipeAnalog.start_position.y,0,this.maxY).toString()),null===(l=this.line)||void 0===l||l.setAttribute("x2",(0,o.clamp)(this.swipeAnalog.start_position.x,0,this.maxX).toString()),null===(a=this.line)||void 0===a||a.setAttribute("y2",(0,o.clamp)(this.swipeAnalog.start_position.y,0,this.maxY).toString()))}},{key:"swipeAreaTouchMove",value:function(e){var t,n
  this.aiming&&this.args.show&&(null===(t=this.line)||void 0===t||t.setAttribute("x1",(0,o.clamp)(this.swipeAnalog.end_position.x,0,this.maxX).toString()),null===(n=this.line)||void 0===n||n.setAttribute("y1",(0,o.clamp)(this.swipeAnalog.end_position.y,0,this.maxY).toString()),this.throttledSendInput(r.ClickAndDragInputType.Move,e))}},{key:"swipeAreaTouchEnd",value:function(e){var t,n,i,l,a
  this.aiming&&this.args.show&&(null===(t=this.circle)||void 0===t||t.setAttribute("cx","0"),null===(n=this.circle)||void 0===n||n.setAttribute("cy","0"),null===(i=this.circle)||void 0===i||i.setAttribute("r","0"),null===(l=this.line)||void 0===l||l.setAttribute("x2",(0,o.clamp)(this.swipeAnalog.end_position.x,0,this.maxX).toString()),null===(a=this.line)||void 0===a||a.setAttribute("y2",(0,o.clamp)(this.swipeAnalog.end_position.y,0,this.maxY).toString()),this.sendInput(r.ClickAndDragInputType.End,e),this.aiming=!1)}}])&&u(i.prototype,l),a&&u(i,a),t}(t.default),f=(i=l).prototype,d="setup",b=[Ember._action],y=Object.getOwnPropertyDescriptor(i.prototype,"setup"),m=i.prototype,h={},Object.keys(y).forEach((function(e){h[e]=y[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),h=b.slice().reverse().reduce((function(e,t){return t(f,d,e)||e}),h),m&&void 0!==h.initializer&&(h.value=h.initializer?h.initializer.call(m):void 0,h.initializer=void 0),void 0===h.initializer&&(Object.defineProperty(f,d,h),h=null),i)
  e.default=w,Ember._setComponentTemplate(v,w)})),define("controller/components/d-pad",["exports","@glimmer/component"],(function(e,t){var n,r,o,i,l,a,u
  function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n]
  r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
  return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n,r,o){var i={}
  return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var m=Ember.HTMLBars.template({id:"eXbuycGC",block:'{"symbols":["@show"],"statements":[[7,"div",true],[11,"class",[29,["direction-pad ",[28,"unless",[[23,1,[]],"out-of-view"],null]]]],[8],[0,"\\n  "],[7,"svg",true],[10,"version","1.1"],[10,"viewBox","0 0 90 90"],[10,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[8],[0,"\\n    "],[7,"g",false],[12,"id","up"],[12,"class",[28,"if",[[23,0,["button0Pressed"]],"pressed"],null]],[3,"on",["touchstart",[28,"fn",[[23,0,["buttonPress"]],0,true],null]]],[3,"on",["touchend",[28,"fn",[[23,0,["buttonPress"]],0,false],null]]],[8],[0,"\\n      "],[7,"rect",true],[10,"x","30"],[10,"width","30"],[10,"height","30"],[10,"style",""],[8],[9],[0,"\\n      "],[7,"path",true],[10,"d","m54.682 23.385h-19.365l9.6825-16.771z"],[10,"style",""],[8],[9],[0,"\\n    "],[9],[0,"\\n    "],[7,"g",false],[12,"id","down"],[12,"class",[28,"if",[[23,0,["button2Pressed"]],"pressed"],null]],[3,"on",["touchstart",[28,"fn",[[23,0,["buttonPress"]],2,true],null]]],[3,"on",["touchend",[28,"fn",[[23,0,["buttonPress"]],2,false],null]]],[8],[0,"\\n      "],[7,"rect",true],[10,"transform","scale(-1)"],[10,"x","-60"],[10,"y","-90"],[10,"width","30"],[10,"height","30"],[8],[9],[0,"\\n      "],[7,"path",true],[10,"transform","scale(-1)"],[10,"d","m-35.318-66.615h-19.365l9.6825-16.771z"],[8],[9],[0,"\\n    "],[9],[0,"\\n    "],[7,"g",false],[12,"id","left"],[12,"class",[28,"if",[[23,0,["button3Pressed"]],"pressed"],null]],[3,"on",["touchstart",[28,"fn",[[23,0,["buttonPress"]],3,true],null]]],[3,"on",["touchend",[28,"fn",[[23,0,["buttonPress"]],3,false],null]]],[8],[0,"\\n      "],[7,"rect",true],[10,"transform","rotate(-90)"],[10,"x","-60"],[10,"y","-1.4921e-6"],[10,"width","30"],[10,"height","30"],[8],[9],[0,"\\n      "],[7,"path",true],[10,"transform","rotate(-90 12.5 7.5)"],[10,"d","m-15.318 18.385h-19.365l9.6825-16.771z"],[8],[9],[0,"\\n    "],[9],[0,"\\n    "],[7,"g",false],[12,"id","right"],[12,"class",[28,"if",[[23,0,["button1Pressed"]],"pressed"],null]],[3,"on",["touchstart",[28,"fn",[[23,0,["buttonPress"]],1,true],null]]],[3,"on",["touchend",[28,"fn",[[23,0,["buttonPress"]],1,false],null]]],[8],[0,"\\n      "],[7,"rect",true],[10,"transform","rotate(90)"],[10,"x","30"],[10,"y","-90"],[10,"width","30"],[10,"height","30"],[8],[9],[0,"\\n      "],[7,"path",true],[10,"transform","rotate(90 71.693 1.6926)"],[10,"d","m124.68 6.7705-19.365-1e-7 9.6825-16.771z"],[8],[9],[0,"\\n    "],[9],[0,"\\n    "],[7,"g",false],[12,"id","center"],[12,"class",[28,"if",[[23,0,["button4Pressed"]],"pressed"],null]],[3,"on",["touchstart",[28,"fn",[[23,0,["buttonPress"]],4,true],null]]],[3,"on",["touchend",[28,"fn",[[23,0,["buttonPress"]],4,false],null]]],[8],[0,"\\n      "],[7,"rect",true],[10,"x","30"],[10,"y","30"],[10,"width","30"],[10,"height","30"],[8],[9],[0,"\\n      "],[7,"circle",true],[10,"cx","45"],[10,"cy","45"],[10,"r","10"],[8],[9],[0,"\\n    "],[9],[0,"\\n  "],[9],[0,"\\n"],[9]],"hasEval":false}',meta:{moduleName:"controller/components/d-pad.hbs"}}),h=(u=function(e){function t(){var e,n;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t)
  for(var u=arguments.length,p=new Array(u),b=0;b<u;b++)p[b]=arguments[b]
  return c(n=function(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(p))),"button0Pressed",r,d(n)),c(n,"button1Pressed",o,d(n)),c(n,"button2Pressed",i,d(n)),c(n,"button3Pressed",l,d(n)),c(n,"button4Pressed",a,d(n)),n}var n,u,y
  return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
  e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(u=[{key:"buttonPress",value:function(e,t){switch(e){case 0:this.button0Pressed=t
  break
  case 1:this.button1Pressed=t
  break
  case 2:this.button2Pressed=t
  break
  case 3:this.button3Pressed=t
  break
  case 4:this.button4Pressed=t}this.args.onPress(e,t)}}])&&p(n.prototype,u),y&&p(n,y),t}(t.default),r=y((n=u).prototype,"button0Pressed",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o=y(n.prototype,"button1Pressed",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i=y(n.prototype,"button2Pressed",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l=y(n.prototype,"button3Pressed",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=y(n.prototype,"button4Pressed",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y(n.prototype,"buttonPress",[Ember._action],Object.getOwnPropertyDescriptor(n.prototype,"buttonPress"),n.prototype),n)
  e.default=h,Ember._setComponentTemplate(m,h)})),define("controller/components/help-button",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var t=Ember.HTMLBars.template({id:"3ELncJsJ",block:'{"symbols":["@show","@onPress","@bgColor","@color"],"statements":[[7,"div",false],[12,"id","help-button"],[12,"class",[28,"unless",[[23,1,[]],"out-of-view"],null]],[3,"on",["touchstart",[23,2,[]]]],[8],[0,"\\n  "],[7,"svg",true],[10,"id","help-icon"],[10,"viewBox","0 0 100 100"],[10,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[11,"fill",[23,3,[]]],[8],[0,"\\n    "],[7,"circle",true],[10,"r","40"],[10,"cx","53"],[10,"cy","53"],[10,"fill","#000000"],[10,"opacity","0.4"],[8],[9],[0,"\\n    "],[7,"circle",true],[10,"r","40"],[10,"cx","50"],[10,"cy","50"],[8],[9],[0,"\\n    "],[7,"text",true],[10,"x","50"],[10,"y","62.5"],[10,"font-size","35"],[10,"text-anchor","middle"],[11,"fill",[23,4,[]]],[8],[0,"?"],[9],[0,"\\n  "],[9],[0,"\\n"],[9]],"hasEval":false}',meta:{moduleName:"controller/components/help-button.hbs"}}),n=Ember._setComponentTemplate(t,Ember._templateOnlyComponent())
  e.default=n})),define("controller/components/help-modal",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var t=Ember.HTMLBars.template({id:"InT2w+T3",block:'{"symbols":["@show","@bgColor","@color","@onClose"],"statements":[[7,"div",true],[11,"class",[29,["modal ",[28,"unless",[[23,1,[]],"out-of-view"],null]]]],[10,"id","help-modal"],[11,"style",[23,2,[]]],[8],[0,"\\n  "],[7,"div",true],[10,"class","modal-content"],[11,"style",[23,3,[]]],[8],[0,"\\n    "],[7,"div",false],[12,"class","modal-close"],[3,"on",["touchstart",[23,4,[]]]],[8],[0,"×"],[9],[0,"\\n    "],[7,"h3",true],[10,"class","modal-title"],[8],[0,"Help"],[9],[0,"\\n    "],[7,"p",true],[10,"class","modal-description"],[8],[0,"Game description here"],[9],[0,"\\n  "],[9],[0,"\\n"],[9]],"hasEval":false}',meta:{moduleName:"controller/components/help-modal.hbs"}}),n=Ember._setComponentTemplate(t,Ember._templateOnlyComponent())
  e.default=n})),define("controller/components/keyboard",["exports","@glimmer/component"],(function(e,t){var n,r,o
  function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n]
  r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
  return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t,n,r,o){var i={}
  return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var p=Ember.HTMLBars.template({id:"nzgKKurB",block:'{"symbols":["@show"],"statements":[[7,"div",true],[10,"class","airconsole_keyboard_component"],[8],[0,"\\n  "],[7,"div",false],[12,"id","airconsole_keyboard_display"],[12,"class",[28,"unless",[[23,1,[]],"out-of-view"],null]],[3,"did-insert",[[23,0,["setup"]]]],[8],[9],[0,"\\n  "],[7,"div",true],[10,"id","airconsole_keyboard"],[8],[9],[0,"\\n"],[9]],"hasEval":false}',meta:{moduleName:"controller/components/keyboard.hbs"}}),f=(o=function(e){function t(){var e,n,o,l,s,c;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t)
  for(var p=arguments.length,f=new Array(p),d=0;d<p;d++)f[d]=arguments[d]
  return n=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?u(e):t}(this,(e=a(t)).call.apply(e,[this].concat(f))),o=n,l="state",s=r,c=u(n),s&&Object.defineProperty(o,l,{enumerable:s.enumerable,configurable:s.configurable,writable:s.writable,value:s.initializer?s.initializer.call(c):void 0}),n.keyboard=void 0,n}var n,o,c
  return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
  e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,(o=[{key:"setup",value:function(e){var t=new AirConsoleKeyboard("airconsole_keyboard")
  this.args.setup(t,"airconsole_keyboard_display",e)}}])&&l(n.prototype,o),c&&l(n,c),t}(t.default),r=c((n=o).prototype,"state",[Ember.inject.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c(n.prototype,"setup",[Ember._action],Object.getOwnPropertyDescriptor(n.prototype,"setup"),n.prototype),n)
  e.default=f,Ember._setComponentTemplate(p,f)})),define("controller/components/list-select",["exports","@glimmer/component"],(function(e,t){var n,r,o
  function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n]
  r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
  return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t,n,r,o){var i={}
  return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var p=Ember.HTMLBars.template({id:"rauWnbZJ",block:'{"symbols":["item","index","@show","@data"],"statements":[[7,"div",true],[11,"class",[29,["list-select ",[28,"unless",[[23,3,[]],"out-of-view"],null]]]],[8],[0,"\\n  "],[7,"h3",true],[8],[0,"Select one:"],[9],[0,"\\n  "],[7,"ul",true],[8],[0,"\\n"],[4,"each",[[23,4,[]]],null,{"statements":[[0,"      "],[7,"li",false],[12,"class",[28,"if",[[28,"eq",[[23,2,[]],[23,0,["selectedIndex"]]],null],"selected"],null]],[3,"on",["touchstart",[28,"fn",[[23,0,["select"]],[23,2,[]]],null]]],[8],[0,"\\n        "],[1,[23,1,[]],false],[0,"\\n      "],[9],[0,"\\n"]],"parameters":[1,2]},null],[0,"  "],[9],[0,"\\n  "],[7,"button",false],[12,"disabled",[23,0,["disabled"]]],[3,"on",["touchstart",[23,0,["submit"]]]],[8],[0,"\\n    Submit\\n  "],[9],[0,"\\n"],[9]],"hasEval":false}',meta:{moduleName:"controller/components/list-select.hbs"}}),f=(o=function(e){function t(){var e,n,o,l,s,c;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t)
  for(var p=arguments.length,f=new Array(p),d=0;d<p;d++)f[d]=arguments[d]
  return n=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?u(e):t}(this,(e=a(t)).call.apply(e,[this].concat(f))),o=n,l="selectedIndex",s=r,c=u(n),s&&Object.defineProperty(o,l,{enumerable:s.enumerable,configurable:s.configurable,writable:s.writable,value:s.initializer?s.initializer.call(c):void 0}),n}var n,o,c
  return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
  e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,(o=[{key:"select",value:function(e){this.selectedIndex=e,this.args.onSelect(this.selectedIndex,!1)}},{key:"submit",value:function(){this.disabled||this.args.onSelect(this.selectedIndex,!0)}},{key:"disabled",get:function(){return null===this.selectedIndex||void 0===this.selectedIndex}}])&&l(n.prototype,o),c&&l(n,c),t}(t.default),r=c((n=o).prototype,"selectedIndex",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c(n.prototype,"select",[Ember._action],Object.getOwnPropertyDescriptor(n.prototype,"select"),n.prototype),c(n.prototype,"submit",[Ember._action],Object.getOwnPropertyDescriptor(n.prototype,"submit"),n.prototype),n)
  e.default=f,Ember._setComponentTemplate(p,f)})),define("controller/components/press-anywhere-button",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var t=Ember.HTMLBars.template({id:"4mKSEumL",block:'{"symbols":["@show","@onPress"],"statements":[[7,"div",false],[12,"id","press-anywhere-button"],[12,"class",[28,"unless",[[23,1,[]],"out-of-view"],null]],[3,"on",["touchstart",[23,2,[]]]],[8],[9]],"hasEval":false}',meta:{moduleName:"controller/components/press-anywhere-button.hbs"}}),n=Ember._setComponentTemplate(t,Ember._templateOnlyComponent())
  e.default=n})),define("controller/components/sound-button",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var t=Ember.HTMLBars.template({id:"FlUgXGvZ",block:'{"symbols":["@show","@onPress","@color"],"statements":[[7,"div",false],[12,"id","sound-button"],[12,"class",[28,"unless",[[23,1,[]],"out-of-view"],null]],[3,"on",["touchstart",[23,2,[]]]],[8],[0,"\\n  "],[7,"svg",true],[10,"id","my-sound-color"],[10,"viewBox","0 0 100 100"],[10,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[11,"fill",[23,3,[]]],[8],[0,"\\n    "],[7,"circle",true],[10,"r","40"],[10,"cx","53"],[10,"cy","53"],[10,"fill","#000000"],[10,"opacity","0.4"],[8],[9],[0,"\\n    "],[7,"circle",true],[10,"r","40"],[10,"cx","50"],[10,"cy","50"],[8],[9],[0,"\\n  "],[9],[0,"\\n"],[9]],"hasEval":false}',meta:{moduleName:"controller/components/sound-button.hbs"}}),n=Ember._setComponentTemplate(t,Ember._templateOnlyComponent())
  e.default=n})),define("controller/config/environment.d",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var t=config
  e.default=t})),define("controller/controllers/application",["exports","controller/utils/controller-to-screen-messages","controller/enums/input"],(function(e,t,n){var r,o,i
  function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n]
  r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
  return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t,n,r,o){var i={}
  return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var d=(o=f((r=function(e){function r(){var e
  return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),a(e=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?c(e):t}(this,s(r).apply(this,arguments)),"airconsole",o,c(e)),a(e,"state",i,c(e)),e.airconsole,e}var f,d,b
  return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
  e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(r,Ember.Controller),f=r,(d=[{key:"pressAnywhere",value:function(){this.airconsole.sendMessageToScreen(t.pressAnywhere)}},{key:"pressSoundButton",value:function(){this.airconsole.sendMessageToScreen(t.makeSound)}},{key:"openCloseHelp",value:function(e){this.airconsole.sendMessageToScreen((0,t.openCloseHelp)(e))}},{key:"dpadPress",value:function(e,r){this.airconsole.sendMessageToScreen((0,t.input)(n.InputType.Dpad,{d:r,dr:e}))}},{key:"listItemSelected",value:function(e,r){this.airconsole.sendMessageToScreen((0,t.input)(n.InputType.ListSelect,{i:e,f:r}))}},{key:"clickAndDragInput",value:function(e){this.airconsole.sendMessageToScreen((0,t.input)(n.InputType.ClickAndDrag,e))}}])&&u(f.prototype,d),b&&u(f,b),r}()).prototype,"airconsole",[Ember.inject.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=f(r.prototype,"state",[Ember.inject.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(r.prototype,"pressAnywhere",[Ember._action],Object.getOwnPropertyDescriptor(r.prototype,"pressAnywhere"),r.prototype),f(r.prototype,"pressSoundButton",[Ember._action],Object.getOwnPropertyDescriptor(r.prototype,"pressSoundButton"),r.prototype),f(r.prototype,"openCloseHelp",[Ember._action],Object.getOwnPropertyDescriptor(r.prototype,"openCloseHelp"),r.prototype),f(r.prototype,"dpadPress",[Ember._action],Object.getOwnPropertyDescriptor(r.prototype,"dpadPress"),r.prototype),f(r.prototype,"listItemSelected",[Ember._action],Object.getOwnPropertyDescriptor(r.prototype,"listItemSelected"),r.prototype),f(r.prototype,"clickAndDragInput",[Ember._action],Object.getOwnPropertyDescriptor(r.prototype,"clickAndDragInput"),r.prototype),r)
  e.default=d})),define("controller/enums/actions",["exports"],(function(e){var t,n
  Object.defineProperty(e,"__esModule",{value:!0}),e.ScreenToControllerActions=e.ControllerToScreenActions=void 0,e.ControllerToScreenActions=t,function(e){e[e.PressAnywhere=0]="PressAnywhere",e[e.MakeSound=1]="MakeSound",e[e.OpenCloseHelp=2]="OpenCloseHelp",e[e.Input=3]="Input"}(t||(e.ControllerToScreenActions=t={})),e.ScreenToControllerActions=n,function(e){e[e.UpdateState=0]="UpdateState",e[e.UpdateColor=1]="UpdateColor",e[e.UpdateMessage=2]="UpdateMessage",e[e.UpdateButtons=3]="UpdateButtons",e[e.UpdateInput=4]="UpdateInput"}(n||(e.ScreenToControllerActions=n={}))})),define("controller/enums/game-state",["exports"],(function(e){var t
  Object.defineProperty(e,"__esModule",{value:!0}),e.GameState=void 0,e.GameState=t,function(e){e[e.STATE_LOADING=0]="STATE_LOADING",e[e.STATE_SPECTATING=1]="STATE_SPECTATING",e[e.STATE_HELP=2]="STATE_HELP",e[e.STATE_READY=3]="STATE_READY",e[e.STATE_PRESS_ANYWHERE=4]="STATE_PRESS_ANYWHERE"}(t||(e.GameState=t={}))})),define("controller/enums/input",["exports"],(function(e){var t,n
  Object.defineProperty(e,"__esModule",{value:!0}),e.ClickAndDragInputType=e.InputType=void 0,e.InputType=t,function(e){e[e.Clear=-1]="Clear",e[e.Keyboard=0]="Keyboard",e[e.Dpad=1]="Dpad",e[e.ClickAndDrag=2]="ClickAndDrag",e[e.ListSelect=3]="ListSelect",e[e.Button=4]="Button",e[e.MultiButton=5]="MultiButton",e[e.TextDisplay=6]="TextDisplay",e[e.BottomButtonBar=7]="BottomButtonBar",e[e.TextDisplayWithButtonButtonBar=8]="TextDisplayWithButtonButtonBar"}(t||(e.InputType=t={})),e.ClickAndDragInputType=n,function(e){e[e.Move=0]="Move",e[e.End=1]="End"}(n||(e.ClickAndDragInputType=n={}))})),define("controller/helpers/and",["exports","ember-truth-helpers/helpers/and"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"and",{enumerable:!0,get:function(){return t.and}})})),define("controller/helpers/app-version",["exports","controller/config/environment","ember-cli-app-version/utils/regexp"],(function(e,t,n){function r(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.default.APP.version,i=r.versionOnly||r.hideSha,l=r.shaOnly||r.hideVersion,a=null
  return i&&(r.showExtended&&(a=o.match(n.versionExtendedRegExp)),a||(a=o.match(n.versionRegExp))),l&&(a=o.match(n.shaRegExp)),a?a[0]:o}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=r,e.default=void 0
  var o=Ember.Helper.helper(r)
  e.default=o})),define("controller/helpers/eq",["exports","ember-truth-helpers/helpers/equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"equal",{enumerable:!0,get:function(){return t.equal}})})),define("controller/helpers/gt",["exports","ember-truth-helpers/helpers/gt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return t.gt}})})),define("controller/helpers/gte",["exports","ember-truth-helpers/helpers/gte"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return t.gte}})})),define("controller/helpers/is-array",["exports","ember-truth-helpers/helpers/is-array"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return t.isArray}})})),define("controller/helpers/is-empty",["exports","ember-truth-helpers/helpers/is-empty"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("controller/helpers/is-equal",["exports","ember-truth-helpers/helpers/is-equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return t.isEqual}})})),define("controller/helpers/lt",["exports","ember-truth-helpers/helpers/lt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t.lt}})})),define("controller/helpers/lte",["exports","ember-truth-helpers/helpers/lte"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return t.lte}})})),define("controller/helpers/not-eq",["exports","ember-truth-helpers/helpers/not-equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"notEq",{enumerable:!0,get:function(){return t.notEq}})})),define("controller/helpers/not",["exports","ember-truth-helpers/helpers/not"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return t.not}})})),define("controller/helpers/or",["exports","ember-truth-helpers/helpers/or"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return t.or}})})),define("controller/helpers/xor",["exports","ember-truth-helpers/helpers/xor"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"xor",{enumerable:!0,get:function(){return t.xor}})})),define("controller/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","controller/config/environment"],(function(e,t,n){var r,o
  Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n.default.APP&&(r=n.default.APP.name,o=n.default.APP.version)
  var i={name:"App Version",initialize:(0,t.default)(r,o)}
  e.default=i}))
  define("controller/initializers/container-debug-adapter",["exports","ember-resolver/resolvers/classic/container-debug-adapter"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var n={name:"container-debug-adapter",initialize:function(){var e=arguments[1]||arguments[0]
  e.register("container-debug-adapter:main",t.default),e.inject("container-debug-adapter:main","namespace","application:main")}}
  e.default=n})),define("controller/initializers/export-application-global",["exports","controller/config/environment"],(function(e,t){function n(){var e=arguments[1]||arguments[0]
  if(!1!==t.default.exportApplicationGlobal){var n
  if("undefined"!=typeof window)n=window
  else if("undefined"!=typeof global)n=global
  else{if("undefined"==typeof self)return
  n=self}var r,o=t.default.exportApplicationGlobal
  r="string"==typeof o?o:Ember.String.classify(t.default.modulePrefix),n[r]||(n[r]=e,e.reopen({willDestroy:function(){this._super.apply(this,arguments),delete n[r]}}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.initialize=n,e.default=void 0
  var r={name:"export-application-global",initialize:n}
  e.default=r})),define("controller/modifiers/did-insert",["exports","@ember/render-modifiers/modifiers/did-insert"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("controller/modifiers/did-update",["exports","@ember/render-modifiers/modifiers/did-update"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("controller/modifiers/will-destroy",["exports","@ember/render-modifiers/modifiers/will-destroy"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("controller/resolver",["exports","ember-resolver"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var n=t.default
  e.default=n})),define("controller/router",["exports","controller/config/environment"],(function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
  return e}(e):t}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var l=function(e){function n(){var e,i;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n)
  for(var l=arguments.length,a=new Array(l),u=0;u<l;u++)a[u]=arguments[u]
  return(i=r(this,(e=o(n)).call.apply(e,[this].concat(a)))).location=t.default.locationType,i.rootURL=t.default.rootURL,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
  e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,Ember.Router),n}()
  e.default=l,l.map((function(){}))})),define("controller/services/airconsole",["exports","controller/enums/input","controller/utils/controller-to-screen-messages"],(function(e,t,n){var r,o
  function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n]
  r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
  return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t,n,r,o){var i={}
  return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var p=(o=c((r=function(e){function r(){var e,t,n,l,s
  return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),e=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?u(e):t}(this,a(r).apply(this,arguments)),t=e,n="state",l=o,s=u(e),l&&Object.defineProperty(t,n,{enumerable:l.enumerable,configurable:l.configurable,writable:l.writable,value:l.initializer?l.initializer.call(s):void 0}),e.airconsole=void 0,e.keyboard=void 0,e.keyboardDisplay=void 0,e.airconsole=new AirConsole,e.airconsole.onMessage=e.airconsole_onMessage.bind(u(e)),e.airconsole.onCustomDeviceStateChange=e.airconsole_onCustomDeviceStateChange.bind(u(e)),e}var c,p,f
  return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
  e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(r,Ember.Service),c=r,(p=[{key:"airconsole_onMessage",value:function(e,t){e===AirConsole.SCREEN&&(0===t.a&&this.airconsole.setCustomDeviceStateProperty("state",t.s),this.state.handleMessage(t))}},{key:"airconsole_onCustomDeviceStateChange",value:function(e,t){e===AirConsole.SCREEN&&this.state.handleCustomDeviceStateChange(t)}},{key:"sendMessageToScreen",value:function(e){this.airconsole.message(AirConsole.SCREEN,e)}},{key:"setupAirconsoleKeyboard",value:function(e,r,o){var i=this
  this.keyboard=e,this.keyboardDisplay=o,e.bind(r,{onHide:function(e,r){i.sendMessageToScreen((0,n.input)(t.InputType.Keyboard,{s:r,f:!0}))},onChange:function(e,r){i.sendMessageToScreen((0,n.input)(t.InputType.Keyboard,{s:r,f:!1}))}})}},{key:"showKeyboard",value:function(){null==this||this.keyboardDisplay.click()}},{key:"hideKeyboard",value:function(){null==this||this.keyboard.hide()}}])&&l(c.prototype,p),f&&l(c,f),r}()).prototype,"state",[Ember.inject.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c(r.prototype,"setupAirconsoleKeyboard",[Ember._action],Object.getOwnPropertyDescriptor(r.prototype,"setupAirconsoleKeyboard"),r.prototype),c(r.prototype,"showKeyboard",[Ember._action],Object.getOwnPropertyDescriptor(r.prototype,"showKeyboard"),r.prototype),c(r.prototype,"hideKeyboard",[Ember._action],Object.getOwnPropertyDescriptor(r.prototype,"hideKeyboard"),r.prototype),r)
  e.default=p})),define("controller/services/state",["exports","controller/utils/color","controller/enums/input","controller/enums/actions","controller/enums/game-state"],(function(e,t,n,r,o){var i,l,a,u,s,c,p,f,d,b,y,m,h,v
  function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n]
  r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
  return e}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e,t,n,r,o){var i={}
  return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var E=(l=j((i=function(e){function i(){var e,t;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,i)
  for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o]
  return w(t=function(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?P(e):t}(this,(e=O(i)).call.apply(e,[this].concat(r))),"title",l,P(t)),w(t,"message",a,P(t)),w(t,"gameState",u,P(t)),w(t,"canJoin",s,P(t)),w(t,"loading",c,P(t)),w(t,"inputOpen",p,P(t)),w(t,"inputType",f,P(t)),w(t,"canShowHelpButton",d,P(t)),w(t,"canShowSoundButton",b,P(t)),w(t,"myColor",y,P(t)),w(t,"backgroundColor",m,P(t)),w(t,"listData",h,P(t)),w(t,"airconsole",v,P(t)),t}var j,E,k
  return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
  e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(i,Ember.Service),j=i,(E=[{key:"handleMessage",value:function(e){var o,i,l,a,u,s,c,p,f,d,b
  switch(e.a){case r.ScreenToControllerActions.UpdateState:this.gameState=null!==(o=e.s)&&void 0!==o?o:0
  break
  case r.ScreenToControllerActions.UpdateColor:this.myColor=(0,t.rgbToCSS)(null!==(i=e.r)&&void 0!==i?i:0,null!==(l=e.g)&&void 0!==l?l:0,null!==(a=e.b)&&void 0!==a?a:0),this.backgroundColor=(0,t.rgbToCSS)(null!==(u=e.bgr)&&void 0!==u?u:0,null!==(s=e.bgg)&&void 0!==s?s:0,null!==(c=e.bgb)&&void 0!==c?c:0)
  break
  case r.ScreenToControllerActions.UpdateMessage:this.message=null!==(p=e.m)&&void 0!==p?p:""
  break
  case r.ScreenToControllerActions.UpdateButtons:this.canShowHelpButton=null!==(f=e.h)&&void 0!==f&&f,this.canShowSoundButton=null!==(d=e.so)&&void 0!==d&&d
  break
  case r.ScreenToControllerActions.UpdateInput:if(e.i===n.InputType.Clear)this.inputOpen=!1,this.inputType=e.i,this.airconsole.hideKeyboard()
  else if(void 0!==e.i)switch(this.inputOpen=!0,this.inputType=e.i,e.i){case n.InputType.Keyboard:this.airconsole.showKeyboard()
  break
  case n.InputType.ListSelect:this.listData=e.d}break
  default:(b=console).log.apply(b,["unknown action, maybe you should implement it?",e.a].concat(Array.prototype.slice.call(arguments)))}}},{key:"handleCustomDeviceStateChange",value:function(e){e.hasOwnProperty("loaded")&&(this.loading=!e.loaded),e.hasOwnProperty("canJoin")&&(this.canJoin=e.canJoin)}},{key:"showTitle",get:function(){return this.gameState===o.GameState.STATE_LOADING||this.gameState===o.GameState.STATE_SPECTATING}},{key:"showHelpModal",get:function(){return this.gameState===o.GameState.STATE_HELP}},{key:"showHelpButton",get:function(){return!this.showHelpModal&&!this.inputOpen&&this.canShowHelpButton}},{key:"showSoundButton",get:function(){return!this.showHelpModal&&!this.inputOpen&&this.canShowSoundButton}},{key:"showPressAnywhere",get:function(){return this.gameState===o.GameState.STATE_PRESS_ANYWHERE}},{key:"showKeyboard",get:function(){return this.inputOpen&&this.inputType===n.InputType.Keyboard}},{key:"showDPad",get:function(){return this.inputOpen&&this.inputType===n.InputType.Dpad}},{key:"showClickAndDrag",get:function(){return this.inputOpen&&this.inputType===n.InputType.ClickAndDrag}},{key:"showListSelect",get:function(){return this.inputOpen&&this.inputType===n.InputType.ListSelect}},{key:"myColorStyle",get:function(){return Ember.String.htmlSafe("color:".concat(this.myColor))}},{key:"myBackgroundStyle",get:function(){return Ember.String.htmlSafe("background:".concat(this.myColor))}},{key:"bgColorStyle",get:function(){return Ember.String.htmlSafe("color:".concat(this.backgroundColor))}},{key:"bgBackgroundStyle",get:function(){return Ember.String.htmlSafe("background:".concat(this.backgroundColor))}}])&&_(j.prototype,E),k&&_(j,k),i}()).prototype,"title",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Airconsole Unity Template"}}),a=j(i.prototype,"message",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Loading..."}}),u=j(i.prototype,"gameState",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return o.GameState.STATE_LOADING}}),s=j(i.prototype,"canJoin",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=j(i.prototype,"loading",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),p=j(i.prototype,"inputOpen",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=j(i.prototype,"inputType",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return n.InputType.Clear}}),d=j(i.prototype,"canShowHelpButton",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=j(i.prototype,"canShowSoundButton",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=j(i.prototype,"myColor",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"#FFFFFF"}}),m=j(i.prototype,"backgroundColor",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"#000000"}}),h=j(i.prototype,"listData",[Ember._tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=j(i.prototype,"airconsole",[Ember.inject.service],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)
  e.default=E})),define("controller/templates/application",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
  var t=Ember.HTMLBars.template({id:"QxzJBuhu",block:'{"symbols":[],"statements":[[7,"div",true],[10,"id","airconsole-controller-app"],[8],[0,"\\n  "],[7,"h1",true],[11,"class",[29,["title ",[28,"unless",[[23,0,["state","showTitle"]],"out-of-view"],null]]]],[11,"style",[23,0,["state","myColorStyle"]]],[8],[0,"\\n    "],[1,[23,0,["state","title"]],false],[0,"\\n  "],[9],[0,"\\n\\n  "],[7,"p",true],[11,"class",[29,["message ",[28,"unless",[[23,0,["state","message"]],"out-of-view"],null]]]],[11,"style",[23,0,["state","myColorStyle"]]],[8],[0,"\\n    "],[1,[23,0,["state","message"]],false],[0,"\\n  "],[9],[0,"\\n\\n  "],[5,"sound-button",[],[["@show","@color","@onPress"],[[23,0,["state","showSoundButton"]],[23,0,["state","myColor"]],[23,0,["pressSoundButton"]]]]],[0,"\\n\\n  "],[5,"help-button",[],[["@show","@color","@bgColor","@onPress"],[[23,0,["state","showHelpButton"]],[23,0,["state","backgroundColor"]],[23,0,["state","myColor"]],[28,"fn",[[23,0,["openCloseHelp"]],true],null]]]],[0,"\\n\\n  "],[5,"press-anywhere-button",[],[["@show","@onPress"],[[23,0,["state","showPressAnywhere"]],[23,0,["pressAnywhere"]]]]],[0,"\\n\\n  "],[5,"help-modal",[],[["@show","@bgColor","@color","@onClose"],[[23,0,["state","showHelpModal"]],[23,0,["state","myBackgroundStyle"]],[23,0,["state","myColorStyle"]],[28,"fn",[[23,0,["openCloseHelp"]],false],null]]]],[0,"\\n\\n  "],[5,"keyboard",[],[["@show","@setup"],[[23,0,["state","showKeyboard"]],[23,0,["airconsole","setupAirconsoleKeyboard"]]]]],[0,"\\n\\n  "],[5,"d-pad",[],[["@show","@onPress"],[[23,0,["state","showDPad"]],[23,0,["dpadPress"]]]]],[0,"\\n\\n  "],[5,"click-and-drag",[],[["@show","@color","@onInput"],[[23,0,["state","showClickAndDrag"]],[23,0,["state","myColor"]],[23,0,["clickAndDragInput"]]]]],[0,"\\n\\n  "],[5,"list-select",[],[["@show","@data","@onSelect"],[[23,0,["state","showListSelect"]],[23,0,["state","listData"]],[23,0,["listItemSelected"]]]]],[0,"\\n"],[9]],"hasEval":false}',meta:{moduleName:"controller/templates/application.hbs"}})
  e.default=t})),define("controller/utils/color",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.rgbToCSS=function(e,t,n){return"rgba("+e+","+t+","+n+",1)"}})),define("controller/utils/controller-to-screen-messages",["exports","controller/enums/actions"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.input=e.openCloseHelp=e.makeSound=e.pressAnywhere=void 0
  var n={a:t.ControllerToScreenActions.PressAnywhere}
  e.pressAnywhere=n
  var r={a:t.ControllerToScreenActions.MakeSound}
  e.makeSound=r
  e.openCloseHelp=function(e){return{a:t.ControllerToScreenActions.OpenCloseHelp,o:e}}
  e.input=function(e,n){return{a:t.ControllerToScreenActions.Input,i:e,d:n}}})),define("controller/utils/math",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.clamp=function(e,t,n){return Math.min(Math.max(e,t),n)}})),define("controller/config/environment",[],(function(){try{var e="controller/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))}
  return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("controller/app").default.create({name:"controller",version:"0.0.0+a257adc4"})
  