mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
17 lines
1.1 MiB
17 lines
1.1 MiB
(function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)})({0:function(e,t,n){e.exports=n("56d7")},"00b4":function(e,t,n){"use strict";n("ac1f");var i=n("23e7"),r=n("861d"),s=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),a=/./.test;i({target:"RegExp",proto:!0,forced:!s},{test:function(e){if("function"!==typeof this.exec)return a.call(this,e);var t=this.exec(e);if(null!==t&&!r(t))throw new Error("RegExp exec method returned something other than an Object or null");return!!t}})},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),s={};s[r]="z",e.exports="[object z]"===String(s)},"00fd":function(e,t,n){var i=n("9e69"),r=Object.prototype,s=r.hasOwnProperty,a=r.toString,o=i?i.toStringTag:void 0;function c(e){var t=s.call(e,o),n=e[o];try{e[o]=void 0;var i=!0}catch(c){}var r=a.call(e);return i&&(t?e[o]=n:delete e[o]),r}e.exports=c},"019f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-group",[n("vui-group-item",{attrs:{label:"Hard drive:"}},[n("vui-progress",{staticClass:"vui-progress",class:{good:!e.lowHardDrive,average:e.lowHardDrive},attrs:{max:e.s.disk_size,value:e.s.disk_used}},[e._v(e._s(e.s.disk_used)+" GQ / "+e._s(e.s.disk_size)+" GQ")])],1)],1),e.s.queue_size?[n("h2",[e._v("Queue")]),n("table",{staticClass:"queue-list"},[e._m(0),e._l(e.queue,(function(t){return n("tr",{key:t.filename},[n("td",{staticClass:"name"},[e._v(e._s(t.filename))]),n("td",[n("vui-progress",{staticClass:"vui-progress",attrs:{max:t.size,value:t.progress}},[e._v(e._s(t.progress.toFixed(2))+" GQ / "+e._s(t.size)+" GQ")])],1),n("td",{staticClass:"action"},[n("vui-button",{attrs:{params:{cancel:t.filename}}},[e._v("Cancel")])],1)])}))],2)]:e._e(),n("h2",[e._v("Available Programs")]),n("vui-input-search",{staticStyle:{float:"right"},attrs:{input:e.unrestrictedPrograms,keys:["name","filename","desc"],autofocus:""},model:{value:e.search_results,callback:function(t){e.search_results=t},expression:"search_results"}}),n("vui-group",[e._l(e.search_results,(function(t){return[n("vui-group-item",{key:t.filename,attrs:{label:"Program name:"}},[n("b",[e._v(e._s(t.name))])]),n("vui-group-item",{key:t.filename,attrs:{label:"File name:"}},[e._v(e._s(t.filename)+" ("+e._s(t.size)+" GQ)")]),n("vui-group-item",{key:t.filename,attrs:{label:"Description:"}},[e._v(e._s(t.desc))]),n("vui-group-item",{key:t.filename,attrs:{label:"File controls:"}},[n("vui-button",{class:{danger:!e.canDownload(t)},attrs:{params:{download:t.filename}}},[e._v("Download")])],1),n("td",{key:t.filename,attrs:{colspan:"2"}},[n("hr")])]}))],2)],2)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[e._v("Name")]),n("th",[e._v("Progress")]),n("th",[e._v("Action")])])}];n("a4d3"),n("e01a"),n("d28b"),n("4de4"),n("a630"),n("e260"),n("d81d"),n("fb6a"),n("b0c0"),n("4fad"),n("d3b7"),n("25f0"),n("3ca3"),n("ddb0");function s(e,t){return u(e)||l(e,t)||o(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(i=(a=o.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){r=!0,s=c}finally{try{i||null==o["return"]||o["return"]()}finally{if(r)throw s}}return n}}function u(e){if(Array.isArray(e))return e}var d={data:function(){return{search_results:[],s:this.$root.$data.state}},computed:{unrestrictedPrograms:function(){var e=this,t=Object.entries(this.s.available).filter((function(t){var n=s(t,2),i=n[0],r=n[1];return!(i in e.s.installed)&&!r.rest&&!(i in e.s.queue)})).sort((function(e,t){var n=s(e,2),i=n[1],r=s(t,2),a=r[1];return i.size-a.size})).map((function(e){var t=s(e,2),n=t[0],i=t[1];return i["filename"]=n,i}));return t},lowHardDrive:function(){return this.s.disk_used/this.s.disk_size>.8},queue:function(){var e=this;return Object.entries(this.s.queue).map((function(t){var n=s(t,2),i=n[0],r=n[1],a=e.s.available[i];return a.progress=r,a.filename=i,a}))}},methods:{canDownload:function(e){return!(e.size+this.s.queue_size+this.s.disk_used>this.s.disk_size)}}},h=d,f=(n("8b1f"),n("2877")),p=Object(f["a"])(h,i,r,!1,null,"f45f2cac",null);t["default"]=p.exports},"025e":function(e,t,n){"use strict";n.d(t,"b",(function(){return h}));n("99af"),n("c975"),n("a15b"),n("13d5"),n("fb6a"),n("cca6"),n("d3b7"),n("ac1f"),n("25f0"),n("1276");var i=n("c0d6"),r=function(){return Math.random().toString(36).substring(13)};function s(e,t){var n=[];for(var i in t)if(Array.isArray(t[i]))for(var r in t[i])n.push(encodeURIComponent(i)+"="+encodeURIComponent(r));else n.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));var s=e+"?"+n.join("&");if(s.indexOf("byond://")>=0)window.location.href=s;else{var a=new XMLHttpRequest;a.open("GET",s,!0),a.send()}}function a(e,t,n){var i="__bycallback"+r();window[i]=n,s(e,Object.assign({},t,{callback:i}))}function o(e){s("",e)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={src:i["a"].state.uiref,vueuihrefjson:JSON.stringify(e)};t&&(n["vueuistateupdate"]=i["a"].getStatePushDataString()),o(n)}function l(e,t){return t.split(".").reduce((function(e,t){return e[t]}),e)}var u=36e3,d=600;function h(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t?i["a"].state.roundstart_hour:0,r=Math.floor((e/u+n)%24),s=Math.floor(e%u/d);return"".concat(("0"+r).slice(-2),":").concat(("0"+s).slice(-2))}t["a"]={sendRaw:s,sendRawWithCallback:a,sendToTopicRaw:o,sendToTopic:c,dotNotationRead:l,worldtime2text:h}},"0261":function(e,t,n){var i=n("23e7"),r=n("d039"),s=n("8eb5"),a=Math.abs,o=Math.exp,c=Math.E,l=r((function(){return-2e-17!=Math.sinh(-2e-17)}));i({target:"Math",stat:!0,forced:l},{sinh:function(e){return a(e=+e)<1?(s(e)-s(-e))/2:(o(e-1)-o(-e-1))*(c/2)}})},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"0481":function(e,t,n){"use strict";var i=n("23e7"),r=n("a2bf"),s=n("7b0b"),a=n("50c4"),o=n("a691"),c=n("65f0");i({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=s(this),n=a(t.length),i=c(t,0);return i.length=r(i,t,t,n,0,void 0===e?1:o(e)),i}})},"04d3":function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("blink")},{blink:function(){return r(this,"blink","","")}})},"050e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Jammer Level:")]),n("div",[n("vui-button",{class:{selected:1==e.active},attrs:{params:{set_active:1}}},[e._v("Block All")])],1),n("div",[n("vui-button",{class:{selected:2==e.active},attrs:{params:{set_active:2}}},[e._v("Block Synthetics")])],1),n("div",[n("vui-button",{class:{selected:-1==e.active},attrs:{params:{set_active:-1}}},[e._v("Block Nothing")])],1)])},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"0519":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticStyle:{clear:"both",margin:"auto",width:"20em"}},[e._l([5,10,20,30,40],(function(t){return n("vui-button",{key:e.amount-e.button-t,class:{selected:e.state.amount==t},attrs:{icon:"cog",params:{amount:t}}},[e._v(e._s(t))])})),n("br"),n("br"),n("div",{staticStyle:{"text-align":"center"}},[n("vui-input-numeric",{attrs:{width:"2.5em","button-count":2,min:1,max:e.state.beakerMaxVolume||120},on:{input:function(t){return e.$toTopic({amount:e.state.amount})}},model:{value:e.state.amount,callback:function(t){e.$set(e.state,"amount",t)},expression:"state.amount"}})],1)],2),n("div",{staticStyle:{clear:"both"}}),n("div",{staticStyle:{float:"left",width:"100%"}},[e.state.chemicals.length?n("div",e._l(e.state.chemicals,(function(t){return n("vui-button",{key:t-e.btn,staticClass:"fixedLeftWide",attrs:{icon:"arrow-alt-circle-down",params:{dispense:t.label}}},[e._v(e._s(t.label)+" ("+e._s(t.amount)+")")])})),1):n("span",{staticClass:"bad"},[e._v("No cartridges installed!")])]),n("div",{staticStyle:{clear:"both"}}),n("vui-button",{class:e.state.isBeakerLoaded&&e.disabled,staticStyle:{float:"right"},attrs:{icon:"eject",params:{ejectBeaker:1}}},[e._v("Eject "+e._s(e.state.glass?"Glass":"Beaker"))]),n("div",{staticClass:"statusDisplay",staticStyle:{clear:"both","min-height":"180px"}},[e.state.isBeakerLoaded?n("div",[n("b",[e._v("Volume: "+e._s(e.state.beakerCurrentVolume)+" / "+e._s(e.state.beakerMaxVolume))]),n("br"),e.state.beakerContents.length?n("div",e._l(e.state.beakerContents,(function(t){return n("span",{key:t-e.amt,staticClass:"highlight"},[e._v(e._s(e.u(t.volume))+" of "+e._s(t.name)),n("br")])})),0):n("span",{staticClass:"bad"},[e._v(e._s(e.state.glass?"Glass":"Beaker")+" is empty.")])]):n("div",[n("span",{staticClass:"average"},[n("i",[e._v("No "+e._s(e.state.glass?"glass":"beaker")+" loaded.")])])])])],1)},r=[],s={data:function(){return this.$root.$data},methods:{u:function(e){return"".concat(e,1==e?" unit":" units")}}},a=s,o=(n("eb66"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"d73f47c0",null);t["default"]=c.exports},"0538":function(e,t,n){"use strict";var i=n("1c0b"),r=n("861d"),s=[].slice,a={},o=function(e,t,n){if(!(t in a)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";a[t]=Function("C,a","return new C("+i.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=s.call(arguments,1),a=function(){var i=n.concat(s.call(arguments));return this instanceof a?o(t,i.length,i):t.apply(e,i)};return r(t.prototype)&&(a.prototype=t.prototype),a}},"0566":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.new_own_tag,expression:"new_own_tag"}],attrs:{placeholder:e.own_tag},domProps:{value:e.new_own_tag},on:{input:function(t){t.target.composing||(e.new_own_tag=t.target.value)}}}),n("vui-button",{attrs:{params:{tag:e.new_own_tag}}},[e._v("Set GPS Tag")]),n("br"),n("input",{directives:[{name:"model",rawName:"v-model",value:e.add_track_tag,expression:"add_track_tag"}],domProps:{value:e.add_track_tag},on:{input:function(t){t.target.composing||(e.add_track_tag=t.target.value)}}}),n("vui-button",{attrs:{params:{add_tag:e.add_track_tag}}},[e._v("Track New Tag")]),n("br"),n("vui-button",{attrs:{params:{add_all:1}}},[e._v("Track All")]),n("vui-button",{attrs:{params:{clear_all:1}}},[e._v("Untrack All")]),n("hr"),n("table",[e._m(0),e._l(e.tracking_list,(function(t){return n("tr",{key:t.tag},[n("td",[e._v(" "+e._s(t.tag)+" ")]),n("td",[e._v(" "+e._s(t.pos_x)+", "+e._s(t.pos_y)+", "+e._s(t.pos_z)+" ")]),n("td",[e._v(" "+e._s(t.area)+" ")]),t.tag!=e.own_tag?n("td",[n("vui-button",{attrs:{params:{remove_tag:t.tag}}},[e._v("Untrack")])],1):n("td"),t.tag!=e.own_tag?n("td",[n("vui-button",{class:{selected:e.compass_list&&e.compass_list.includes(t.tag)},attrs:{params:{compass:t.tag}}},[e._v("Compass")])],1):n("td")])}))],2)],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[e._v("GPS Tag")]),n("th",[e._v("Location")]),n("th",[e._v("Area")]),n("th",[e._v("Remove")]),n("th",[e._v("C-Track")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,s={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==s.call(e)?o(e):r(i(e))}},"05b6":function(e,t,n){},"061c":function(e,t,n){(function(){var e="ace",t=function(){return this}();if(t||"undefined"==typeof window||(t=window),e||"undefined"===typeof acequirejs){var n=function(e,t,i){"string"===typeof e?(2==arguments.length&&(i=t),n.modules[e]||(n.payloads[e]=i,n.modules[e]=null)):n.original?n.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};n.modules={},n.payloads={};var i=function(e,t,n){if("string"===typeof t){var i=a(e,t);if(void 0!=i)return n&&n(),i}else if("[object Array]"===Object.prototype.toString.call(t)){for(var s=[],o=0,c=t.length;o<c;++o){var l=a(e,t[o]);if(void 0==l&&r.original)return;s.push(l)}return n&&n.apply(null,s)||!0}},r=function(e,t){var n=i("",e,t);return void 0==n&&r.original?r.original.apply(this,arguments):n},s=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return s(e,n[0])+"!"+s(e,n[1])}if("."==t.charAt(0)){var i=e.split("/").slice(0,-1).join("/");t=i+"/"+t;while(-1!==t.indexOf(".")&&r!=t){var r=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return t},a=function(e,t){t=s(e,t);var r=n.modules[t];if(!r){if(r=n.payloads[t],"function"===typeof r){var a={},o={id:t,uri:"",exports:a,packaged:!0},c=function(e,n){return i(t,e,n)},l=r(c,a,o);a=l||o.exports,n.modules[t]=a,delete n.payloads[t]}r=n.modules[t]=a||r}return r};o(e)}function o(e){var i=t;e&&(t[e]||(t[e]={}),i=t[e]),i.define&&i.define.packaged||(n.original=i.define,i.define=n,i.define.packaged=!0),i.acequire&&i.acequire.packaged||(r.original=i.acequire,i.acequire=r,i.acequire.packaged=!0)}})(),ace.define("ace/lib/regexp",["require","exports","module"],(function(e,t,n){"use strict";var i={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},r=void 0===i.exec.call(/()??/,"")[1],s=function(){var e=/^/g;return i.test.call(e,""),!e.lastIndex}();function a(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function o(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var i=n||0;i<e.length;i++)if(e[i]===t)return i;return-1}s&&r||(RegExp.prototype.exec=function(e){var t,n,c=i.exec.apply(this,arguments);if("string"==typeof e&&c){if(!r&&c.length>1&&o(c,"")>-1&&(n=RegExp(this.source,i.replace.call(a(this),"g","")),i.replace.call(e.slice(c.index),n,(function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(c[e]=void 0)}))),this._xregexp&&this._xregexp.captureNames)for(var l=1;l<c.length;l++)t=this._xregexp.captureNames[l-1],t&&(c[t]=c[l]);!s&&this.global&&!c[0].length&&this.lastIndex>c.index&&this.lastIndex--}return c},s||(RegExp.prototype.test=function(e){var t=i.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function i(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=h.call(arguments,1),r=function(){if(this instanceof r){var i=t.apply(this,n.concat(h.call(arguments)));return Object(i)===i?i:this}return t.apply(e,n.concat(h.call(arguments)))};return t.prototype&&(i.prototype=t.prototype,r.prototype=new i,i.prototype=null),r});var r,s,a,o,c,l=Function.prototype.call,u=Array.prototype,d=Object.prototype,h=u.slice,f=l.bind(d.toString),p=l.bind(d.hasOwnProperty);if((c=p(d,"__defineGetter__"))&&(r=l.bind(d.__defineGetter__),s=l.bind(d.__defineSetter__),a=l.bind(d.__lookupGetter__),o=l.bind(d.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var g=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?g.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(h.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):void 0==e?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var i=this.slice(e,e+t),r=h.call(arguments,2),s=r.length;if(e===n)s&&this.push.apply(this,r);else{var a=Math.min(t,n-e),o=e+a,c=o+s-a,l=n-o,u=n-a;if(c<o)for(var d=0;d<l;++d)this[c+d]=this[o+d];else if(c>o)for(d=l;d--;)this[c+d]=this[o+d];if(s&&e===u)this.length=u,this.push.apply(this,r);else for(this.length=u+s,d=0;d<s;++d)this[e+d]=r[d]}return i};Array.isArray||(Array.isArray=function(e){return"[object Array]"==f(e)});var m,v=Object("a"),b="a"!=v[0]||!(0 in v);if(Array.prototype.forEach||(Array.prototype.forEach=function(e){var t=O(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=arguments[1],r=-1,s=n.length>>>0;if("[object Function]"!=f(e))throw new TypeError;while(++r<s)r in n&&e.call(i,n[r],r,t)}),Array.prototype.map||(Array.prototype.map=function(e){var t=O(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0,r=Array(i),s=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var a=0;a<i;a++)a in n&&(r[a]=e.call(s,n[a],a,t));return r}),Array.prototype.filter||(Array.prototype.filter=function(e){var t,n=O(this),i=b&&"[object String]"==f(this)?this.split(""):n,r=i.length>>>0,s=[],a=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var o=0;o<r;o++)o in i&&(t=i[o],e.call(a,t,o,n)&&s.push(t));return s}),Array.prototype.every||(Array.prototype.every=function(e){var t=O(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0,r=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var s=0;s<i;s++)if(s in n&&!e.call(r,n[s],s,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){var t=O(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0,r=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var s=0;s<i;s++)if(s in n&&e.call(r,n[s],s,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){var t=O(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0;if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var r,s=0;if(arguments.length>=2)r=arguments[1];else do{if(s in n){r=n[s++];break}if(++s>=i)throw new TypeError("reduce of empty array with no initial value")}while(1);for(;s<i;s++)s in n&&(r=e.call(void 0,r,n[s],s,t));return r}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){var t=O(this),n=b&&"[object String]"==f(this)?this.split(""):t,i=n.length>>>0;if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");if(!i&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var r,s=i-1;if(arguments.length>=2)r=arguments[1];else do{if(s in n){r=n[s--];break}if(--s<0)throw new TypeError("reduceRight of empty array with no initial value")}while(1);do{s in this&&(r=e.call(void 0,r,n[s],s,t))}while(s--);return r}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=b&&"[object String]"==f(this)?this.split(""):O(this),n=t.length>>>0;if(!n)return-1;var i=0;for(arguments.length>1&&(i=R(arguments[1])),i=i>=0?i:Math.max(0,n+i);i<n;i++)if(i in t&&t[i]===e)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){var t=b&&"[object String]"==f(this)?this.split(""):O(this),n=t.length>>>0;if(!n)return-1;var i=n-1;for(arguments.length>1&&(i=Math.min(i,R(arguments[1]))),i=i>=0?i:n-Math.abs(i);i>=0;i--)if(i in t&&e===t[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:d)}),!Object.getOwnPropertyDescriptor){var y="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError(y+e);if(p(e,t)){var n;if(n={enumerable:!0,configurable:!0},c){var i=e.__proto__;e.__proto__=d;var r=a(e,t),s=o(e,t);if(e.__proto__=i,r||s)return r&&(n.get=r),s&&(n.set=s),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(m=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=m();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var i=function(){};i.prototype=e,n=new i,n.__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});function w(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){}}if(Object.defineProperty){var _=w({}),x="undefined"==typeof document||w(document.createElement("div"));if(!_||!x)var k=Object.defineProperty}if(!Object.defineProperty||k){var A="Property description must be an object: ",C="Object.defineProperty called on non-object: ",E="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError(C+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError(A+n);if(k)try{return k.call(Object,e,t,n)}catch(l){}if(p(n,"value"))if(c&&(a(e,t)||o(e,t))){var i=e.__proto__;e.__proto__=d,delete e[t],e[t]=n.value,e.__proto__=i}else e[t]=n.value;else{if(!c)throw new TypeError(E);p(n,"get")&&r(e,t,n.get),p(n,"set")&&s(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)p(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(M){Object.freeze=function(e){return function(t){return"function"==typeof t?t:e(t)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;var t="";while(p(e,t))t+="?";e[t]=!0;var n=p(e,t);return delete e[t],n}),!Object.keys){var S=!0,F=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],$=F.length;for(var T in{toString:null})S=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)p(e,n)&&t.push(n);if(S)for(var i=0,r=$;i<r;i++){var s=F[i];p(e,s)&&t.push(s)}return t}}Date.now||(Date.now=function(){return(new Date).getTime()});var L="\t\n\v\f\r \u2028\u2029\ufeff";if(!String.prototype.trim||L.trim()){L="["+L+"]";var D=new RegExp("^"+L+L+"*"),B=new RegExp(L+L+"*$");String.prototype.trim=function(){return String(this).replace(D,"").replace(B,"")}}function R(e){return e=+e,e!==e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}var O=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(e,t,n){"use strict";e("./regexp"),e("./es5-shim")})),ace.define("ace/lib/dom",["require","exports","module"],(function(e,t,n){"use strict";var i="http://www.w3.org/1999/xhtml";t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||i,e):document.createElement(e)},t.hasCssClass=function(e,t){var n=(e.className+"").split(/\s+/g);return-1!==n.indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){var n=e.className.split(/\s+/g);while(1){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){var n=e.className.split(/\s+/g),i=!0;while(1){var r=n.indexOf(t);if(-1==r)break;i=!1,n.splice(r,1)}return i&&n.push(t),e.className=n.join(" "),i},t.setCssClass=function(e,n,i){i?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,i=0;if(t=t||document,t.createStyleSheet&&(n=t.styleSheets)){while(i<n.length)if(n[i++].owningElement.id===e)return!0}else if(n=t.getElementsByTagName("style"))while(i<n.length)if(n[i++].id===e)return!0;return!1},t.importCssString=function(e,n,i){if(i=i||document,n&&t.hasCssString(n,i))return null;var r;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */"),i.createStyleSheet?(r=i.createStyleSheet(),r.cssText=e,n&&(r.owningElement.id=n)):(r=t.createElement("style"),r.appendChild(i.createTextNode(e)),n&&(r.id=n),t.getDocumentHead(i).appendChild(r))},t.importCssStylsheet=function(e,n){if(n.createStyleSheet)n.createStyleSheet(e);else{var i=t.createElement("link");i.rel="stylesheet",i.href=e,t.getDocumentHead(n).appendChild(i)}},t.getInnerWidth=function(e){return parseInt(t.computedStyle(e,"paddingLeft"),10)+parseInt(t.computedStyle(e,"paddingRight"),10)+e.clientWidth},t.getInnerHeight=function(e){return parseInt(t.computedStyle(e,"paddingTop"),10)+parseInt(t.computedStyle(e,"paddingBottom"),10)+e.clientHeight},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var i=t.createElement("ace_outer"),r=i.style;r.position="absolute",r.left="-10000px",r.overflow="hidden",r.width="200px",r.minWidth="0px",r.height="150px",r.display="block",i.appendChild(n);var s=e.documentElement;s.appendChild(i);var a=n.offsetWidth;r.overflow="scroll";var o=n.offsetWidth;return a==o&&(o=i.clientWidth),s.removeChild(i),a-o},"undefined"!=typeof document?(void 0!==window.pageYOffset?(t.getPageScrollTop=function(){return window.pageYOffset},t.getPageScrollLeft=function(){return window.pageXOffset}):(t.getPageScrollTop=function(){return document.body.scrollTop},t.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?t.computedStyle=function(e,t){return t?(window.getComputedStyle(e,"")||{})[t]||"":window.getComputedStyle(e,"")||{}}:t.computedStyle=function(e,t){return t?e.currentStyle[t]:e.currentStyle},t.setInnerHtml=function(e,t){var n=e.cloneNode(!1);return n.innerHTML=t,e.parentNode.replaceChild(n,e),n},"textContent"in document.documentElement?(t.setInnerText=function(e,t){e.textContent=t},t.getInnerText=function(e){return e.textContent}):(t.setInnerText=function(e,t){e.innerText=t},t.getInnerText=function(e){return e.innerText}),t.getParentWindow=function(e){return e.defaultView||e.parentWindow}):t.importCssString=function(){}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],(function(e,t,n){"use strict";e("./fixoldbrowsers");var i=e("./oop"),r=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(t,r),t.keyCodeToString=function(e){var t=r[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},"object"==typeof navigator){var i=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),r=navigator.userAgent;t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==navigator.appName||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((r.match(/rv:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isAIR=r.indexOf("AdobeAIR")>=0,t.isIPad=r.indexOf("iPad")>=0,t.isChromeOS=r.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0)}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("./keys"),r=e("./useragent"),s=null,a=0;t.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var i=function(){n.call(e,window.event)};n._wrapper=i,e.attachEvent("on"+t,i)}},t.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},t.capture=function(e,n,i){function r(e){n&&n(e),i&&i(e),t.removeListener(document,"mousemove",n,!0),t.removeListener(document,"mouseup",r,!0),t.removeListener(document,"dragstart",r,!0)}return t.addListener(document,"mousemove",n,!0),t.addListener(document,"mouseup",r,!0),t.addListener(document,"dragstart",r,!0),r},t.addTouchMoveListener=function(e,n){var i,r;t.addListener(e,"touchstart",(function(e){var t=e.touches,n=t[0];i=n.clientX,r=n.clientY})),t.addListener(e,"touchmove",(function(e){var t=e.touches;if(!(t.length>1)){var s=t[0];e.wheelX=i-s.clientX,e.wheelY=r-s.clientY,i=s.clientX,r=s.clientY,n(e)}}))},t.addMouseWheelListener=function(e,n){"onmousewheel"in e?t.addListener(e,"mousewheel",(function(e){var t=8;void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/t,e.wheelY=-e.wheelDeltaY/t):(e.wheelX=0,e.wheelY=-e.wheelDelta/t),n(e)})):"onwheel"in e?t.addListener(e,"wheel",(function(e){var t=.35;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=e.deltaX*t||0,e.wheelY=e.deltaY*t||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0);break}n(e)})):t.addListener(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)}))},t.addMultiMouseDownListener=function(e,n,i,s){var a,o,c,l=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};function d(e){if(0!==t.getButton(e)?l=0:e.detail>1?(l++,l>4&&(l=1)):l=1,r.isIE){var d=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-o)>5;c&&!d||(l=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),1==l&&(a=e.clientX,o=e.clientY)}if(e._clicks=l,i[s]("mousedown",e),l>4)l=0;else if(l>1)return i[s](u[l],e)}function h(e){l=2,c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),i[s]("mousedown",e),i[s](u[l],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){t.addListener(e,"mousedown",d),r.isOldIE&&t.addListener(e,"dblclick",h)}))};var o=r.isMac&&r.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function c(e,t,n){var c=o(t);if(!r.isMac&&s){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(c|=8),s.altGr){if(3==(3&c))return;s.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==s[n]&&(a=t.timeStamp);else if(18===n&&3===c&&2===l){var u=t.timeStamp-a;u<50&&(s.altGr=!0)}}}if(n in i.MODIFIER_KEYS&&(n=-1),8&c&&n>=91&&n<=93&&(n=-1),!c&&13===n){l="location"in t?t.location:t.keyLocation;if(3===l&&(e(t,c,-n),t.defaultPrevented))return}if(r.isChromeOS&&8&c){if(e(t,c,n),t.defaultPrevented)return;c&=-9}return!!(c||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,c,n)}function l(){s=Object.create(null)}if(t.getModifierString=function(e){return i.KEY_MODS[o(e)]},t.addCommandKeyListener=function(e,n){var i=t.addListener;if(r.isOldGecko||r.isOpera&&!("KeyboardEvent"in window)){var a=null;i(e,"keydown",(function(e){a=e.keyCode})),i(e,"keypress",(function(e){return c(n,e,a)}))}else{var o=null;i(e,"keydown",(function(e){s[e.keyCode]=(s[e.keyCode]||0)+1;var t=c(n,e,e.keyCode);return o=e.defaultPrevented,t})),i(e,"keypress",(function(e){o&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),o=null)})),i(e,"keyup",(function(e){s[e.keyCode]=null})),s||(l(),i(window,"focus",l))}},"object"==typeof window&&window.postMessage&&!r.isOldIE){var u=1;t.nextTick=function(e,n){n=n||window;var i="zero-timeout-message-"+u;t.addListener(n,"message",(function r(s){s.data==i&&(t.stopPropagation(s),t.removeListener(n,"message",r),e())})),n.postMessage(i,"*")}}t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){var n="";while(t>0)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var i=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(r,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!==typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n[i]=e(t[i]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var i in n={},t)n[i]=e(t[i]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},i=function(e){return i.cancel(),t=setTimeout(n,e||0),i};return i.schedule=i,i.call=function(){return this.cancel(),e(),i},i.cancel=function(){return clearTimeout(t),t=null,i},i.isPending=function(){return t},i},t.delayedCall=function(e,t){var n=null,i=function(){n=null,e()},r=function(e){null==n&&(n=setTimeout(i,e||t))};return r.delay=function(e){n&&clearTimeout(n),n=setTimeout(i,e||t)},r.schedule=r,r.call=function(){this.cancel(),e()},r.cancel=function(){n&&clearTimeout(n),n=null},r.isPending=function(){return n},r}})),ace.define("ace/keyboard/textinput_ios",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/lib/keys"],(function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),s=e("../lib/dom"),a=e("../lib/lang"),o=e("../lib/keys"),c=o.KEY_MODS,l=r.isChrome<18,u=r.isIE,d=function(e,t){var n=s.createElement("textarea");n.className=r.isIOS?"ace_text-input ace_text-input-ios":"ace_text-input",r.isTouchPad&&n.setAttribute("x-palm-disable-auto-cap",!0),n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var d="\n aaaa a\n",h=!1,f=!1,p=!1,g=!1,m="",v=!0;try{var b=document.activeElement===n}catch(U){}i.addListener(n,"blur",(function(e){t.onBlur(e),b=!1})),i.addListener(n,"focus",(function(e){b=!0,t.onFocus(e),_()})),this.focus=function(){if(m)return n.focus();n.style.position="fixed",n.focus()},this.blur=function(){n.blur()},this.isFocused=function(){return b};var y=a.delayedCall((function(){b&&_(v)})),w=a.delayedCall((function(){g||(n.value=d,b&&_())}));function _(e){if(!g){if(g=!0,C)t=0,i=e?0:n.value.length-1;else var t=4,i=5;try{n.setSelectionRange(t,i)}catch(U){}g=!1}}function x(){g||(n.value=d,r.isWebKit&&w.schedule())}r.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=v&&(v=!v,y.schedule())})),x(),b&&t.onFocus();var k=function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length},A=function(e){k(n)?(t.selectAll(),_()):C&&_(t.selection.isEmpty())},C=null;this.setInputHandler=function(e){C=e},this.getInputHandler=function(){return C};var E=!1,S=function(e){4===n.selectionStart&&5===n.selectionEnd||(C&&(e=C(e),C=null),p?(_(),e&&t.onPaste(e),p=!1):e==d.substr(0)&&4===n.selectionStart?E?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):h||(e.substring(0,9)==d&&e.length>d.length?e=e.substr(9):e.substr(0,4)==d.substr(0,4)?e=e.substr(4,e.length-d.length+1):e.charAt(e.length-1)==d.charAt(0)&&(e=e.slice(0,-1)),e==d.charAt(0)||e.charAt(e.length-1)==d.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),h&&(h=!1),E&&(E=!1))},F=function(e){if(!g){var t=n.value;S(t),x()}},$=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!l){var r=u||n?"Text":"text/plain";try{return t?!1!==i.setData(r,t):i.getData(r)}catch(e){if(!n)return $(e,t,!0)}}},T=function(e,s){var a=t.getCopyText();if(!a)return i.preventDefault(e);$(e,a)?(r.isIOS&&(f=s,n.value="\n aa"+a+"a a\n",n.setSelectionRange(4,4+a.length),h={value:a}),s?t.onCut():t.onCopy(),r.isIOS||i.preventDefault(e)):(h=!0,n.value=a,n.select(),setTimeout((function(){h=!1,x(),_(),s?t.onCut():t.onCopy()})))},L=function(e){T(e,!0)},D=function(e){T(e,!1)},B=function(e){var s=$(e);"string"==typeof s?(s&&t.onPaste(s,e),r.isIE&&setTimeout(_),i.preventDefault(e)):(n.value="",p=!0)};i.addCommandKeyListener(n,t.onCommandKey.bind(t)),i.addListener(n,"select",A),i.addListener(n,"input",F),i.addListener(n,"cut",L),i.addListener(n,"copy",D),i.addListener(n,"paste",B);var R,O=function(e){g||!t.onCompositionStart||t.$readOnly||(g={},g.canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(M,0),t.on("mousedown",j),g.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())},M=function(){if(g&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\x01/g,"");if(g.lastValue!==e&&(t.onCompositionUpdate(e),g.lastValue&&t.undo(),g.canUndo&&(g.lastValue=e),g.lastValue)){var i=t.selection.getRange();t.insert(g.lastValue),t.session.markUndoGroup(),g.range=t.selection.getRange(),t.selection.setRange(i),t.selection.clearSelection()}}},j=function(e){if(t.onCompositionEnd&&!t.$readOnly){var i=g;g=!1;var s=setTimeout((function(){s=null;var e=n.value.replace(/\x01/g,"");g||(e==i.lastValue?x():!i.lastValue&&e&&(x(),S(e)))}));C=function(e){return s&&clearTimeout(s),e=e.replace(/\x01/g,""),e==i.lastValue?"":(i.lastValue&&s&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",j),"compositionend"==e.type&&i.range&&t.selection.setRange(i.range);var a=!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603;a&&F()}},I=a.delayedCall(M,50);function P(){clearTimeout(R),R=setTimeout((function(){m&&(n.style.cssText=m,m=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}i.addListener(n,"compositionstart",O),r.isGecko?i.addListener(n,"text",(function(){I.schedule()})):(i.addListener(n,"keyup",(function(){I.schedule()})),i.addListener(n,"keydown",(function(){I.schedule()}))),i.addListener(n,"compositionend",j),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){E=!0,_(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,a){m||(m=n.style.cssText),n.style.cssText=(a?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var o=t.container.getBoundingClientRect(),c=s.computedStyle(t.container),l=o.top+(parseInt(c.borderTopWidth)||0),u=o.left+(parseInt(o.borderLeftWidth)||0),d=o.bottom-l-n.clientHeight-2,h=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,d)+"px"};h(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(R),r.isWin&&i.capture(t.container,h,P))},this.onContextMenuClose=P;var N=function(e){t.textInput.onContextMenu(e),P()};if(i.addListener(n,"mouseup",N),i.addListener(n,"mousedown",(function(e){e.preventDefault(),P()})),i.addListener(t.renderer.scroller,"contextmenu",N),i.addListener(n,"contextmenu",N),r.isIOS){var W=null,H=!1;e.addEventListener("keydown",(function(e){W&&clearTimeout(W),H=!0})),e.addEventListener("keyup",(function(e){W=setTimeout((function(){H=!1}),100)}));var V=function(e){if(document.activeElement===n&&!H){if(f)return setTimeout((function(){f=!1}),100);var i=n.selectionStart,r=n.selectionEnd;if(n.setSelectionRange(4,5),i==r)switch(i){case 0:t.onCommandKey(null,0,o.up);break;case 1:t.onCommandKey(null,0,o.home);break;case 2:t.onCommandKey(null,c.option,o.left);break;case 4:t.onCommandKey(null,0,o.left);break;case 5:t.onCommandKey(null,0,o.right);break;case 7:t.onCommandKey(null,c.option,o.right);break;case 8:t.onCommandKey(null,0,o.end);break;case 9:t.onCommandKey(null,0,o.down);break}else{switch(r){case 6:t.onCommandKey(null,c.shift,o.right);break;case 7:t.onCommandKey(null,c.shift|c.option,o.right);break;case 8:t.onCommandKey(null,c.shift,o.end);break;case 9:t.onCommandKey(null,c.shift,o.down);break}switch(i){case 0:t.onCommandKey(null,c.shift,o.up);break;case 1:t.onCommandKey(null,c.shift,o.home);break;case 2:t.onCommandKey(null,c.shift|c.option,o.left);break;case 3:t.onCommandKey(null,c.shift,o.left);break}}}};document.addEventListener("selectionchange",V),t.on("destroy",(function(){document.removeEventListener("selectionchange",V)}))}};t.TextInput=d})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],(function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),s=e("../lib/dom"),a=e("../lib/lang"),o=r.isChrome<18,c=r.isIE,l=e("./textinput_ios").TextInput,u=function(e,t){if(r.isIOS)return l.call(this,e,t);var n=s.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var u="\u2028\u2028",d=!1,h=!1,f=!1,p="",g=!0;try{var m=document.activeElement===n}catch(P){}i.addListener(n,"blur",(function(e){t.onBlur(e),m=!1})),i.addListener(n,"focus",(function(e){m=!0,t.onFocus(e),y()})),this.focus=function(){if(p)return n.focus();var e=n.style.top;n.style.position="fixed",n.style.top="0px",n.focus(),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return m};var v=a.delayedCall((function(){m&&y(g)})),b=a.delayedCall((function(){f||(n.value=u,m&&y())}));function y(e){if(!f){if(f=!0,k)var t=0,i=e?0:n.value.length-1;else t=e?2:1,i=2;try{n.setSelectionRange(t,i)}catch(P){}f=!1}}function w(){f||(n.value=u,r.isWebKit&&b.schedule())}r.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=g&&(g=!g,v.schedule())})),w(),m&&t.onFocus();var _=function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length},x=function(e){d?d=!1:_(n)?(t.selectAll(),y()):k&&y(t.selection.isEmpty())},k=null;this.setInputHandler=function(e){k=e},this.getInputHandler=function(){return k};var A=!1,C=function(e){k&&(e=k(e),k=null),h?(y(),e&&t.onPaste(e),h=!1):e==u.charAt(0)?A?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):(e.substring(0,2)==u?e=e.substr(2):e.charAt(0)==u.charAt(0)?e=e.substr(1):e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),A&&(A=!1)},E=function(e){if(!f){var t=n.value;C(t),w()}},S=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!o){var r=c||n?"Text":"text/plain";try{return t?!1!==i.setData(r,t):i.getData(r)}catch(e){if(!n)return S(e,t,!0)}}},F=function(e,r){var s=t.getCopyText();if(!s)return i.preventDefault(e);S(e,s)?(r?t.onCut():t.onCopy(),i.preventDefault(e)):(d=!0,n.value=s,n.select(),setTimeout((function(){d=!1,w(),y(),r?t.onCut():t.onCopy()})))},$=function(e){F(e,!0)},T=function(e){F(e,!1)},L=function(e){var s=S(e);"string"==typeof s?(s&&t.onPaste(s,e),r.isIE&&setTimeout(y),i.preventDefault(e)):(n.value="",h=!0)};i.addCommandKeyListener(n,t.onCommandKey.bind(t)),i.addListener(n,"select",x),i.addListener(n,"input",E),i.addListener(n,"cut",$),i.addListener(n,"copy",T),i.addListener(n,"paste",L),"oncut"in n&&"oncopy"in n&&"onpaste"in n||i.addListener(e,"keydown",(function(e){if((!r.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:T(e);break;case 86:L(e);break;case 88:$(e);break}}));var D,B=function(e){f||!t.onCompositionStart||t.$readOnly||(f={},f.canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(R,0),t.on("mousedown",O),f.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())},R=function(){if(f&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\u2028/g,"");if(f.lastValue!==e&&(t.onCompositionUpdate(e),f.lastValue&&t.undo(),f.canUndo&&(f.lastValue=e),f.lastValue)){var i=t.selection.getRange();t.insert(f.lastValue),t.session.markUndoGroup(),f.range=t.selection.getRange(),t.selection.setRange(i),t.selection.clearSelection()}}},O=function(e){if(t.onCompositionEnd&&!t.$readOnly){var i=f;f=!1;var s=setTimeout((function(){s=null;var e=n.value.replace(/\u2028/g,"");f||(e==i.lastValue?w():!i.lastValue&&e&&(w(),C(e)))}));k=function(e){return s&&clearTimeout(s),e=e.replace(/\u2028/g,""),e==i.lastValue?"":(i.lastValue&&s&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",O),"compositionend"==e.type&&i.range&&t.selection.setRange(i.range);var a=!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603;a&&E()}},M=a.delayedCall(R,50);function j(){clearTimeout(D),D=setTimeout((function(){p&&(n.style.cssText=p,p=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}i.addListener(n,"compositionstart",B),r.isGecko?i.addListener(n,"text",(function(){M.schedule()})):(i.addListener(n,"keyup",(function(){M.schedule()})),i.addListener(n,"keydown",(function(){M.schedule()}))),i.addListener(n,"compositionend",O),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){A=!0,y(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,a){p||(p=n.style.cssText),n.style.cssText=(a?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var o=t.container.getBoundingClientRect(),c=s.computedStyle(t.container),l=o.top+(parseInt(c.borderTopWidth)||0),u=o.left+(parseInt(o.borderLeftWidth)||0),d=o.bottom-l-n.clientHeight-2,h=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,d)+"px"};h(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(D),r.isWin&&i.capture(t.container,h,j))},this.onContextMenuClose=j;var I=function(e){t.textInput.onContextMenu(e),j()};i.addListener(n,"mouseup",I),i.addListener(n,"mousedown",(function(e){e.preventDefault(),j()})),i.addListener(t.renderer.scroller,"contextmenu",I),i.addListener(n,"contextmenu",I)};t.TextInput=u})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";e("../lib/dom"),e("../lib/event");var i=e("../lib/useragent"),r=0,s=250;function a(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function o(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}function c(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var r=this.editor,s=e.getButton();if(0!==s){var a=r.getSelectionRange(),o=a.isEmpty();return r.$blockScrolling++,(o||1==s)&&r.selection.moveToPosition(n),r.$blockScrolling--,void(2==s&&(r.textInput.onContextMenu(e.domEvent),i.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||r.isFocused()||(r.focus(),!this.$focusTimout||this.$clickSelection||r.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;n.$blockScrolling++,this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"),n.$blockScrolling--},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var r=c(this.$clickSelection,n);n=r.cursor,e=r.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),r=n.selection[e](i.row,i.column);if(n.$blockScrolling++,this.$clickSelection){var s=this.$clickSelection.comparePoint(r.start),a=this.$clickSelection.comparePoint(r.end);if(-1==s&&a<=0)t=this.$clickSelection.end,r.end.row==i.row&&r.end.column==i.column||(i=r.start);else if(1==a&&s>=0)t=this.$clickSelection.start,r.start.row==i.row&&r.start.column==i.column||(i=r.end);else if(-1==s&&1==a)i=r.end,t=r.start;else{var o=c(this.$clickSelection,i);i=o.cursor,t=o.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.$blockScrolling--,n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>r||t-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session,r=i.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,r=i-n.t,a=e.wheelX/r,o=e.wheelY/r;r<s&&(a=(a+n.vx)/2,o=(o+n.vy)/2);var c=Math.abs(a/o),l=!1;if(c>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),c<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=i;else if(i-n.allowed<s){var u=Math.abs(a)<=1.1*Math.abs(n.vx)&&Math.abs(o)<=1.1*Math.abs(n.vy);u?(l=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=a,n.vy=o,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){this.editor._emit("mousewheel",e)}}).call(a.prototype),t.DefaultHandlers=a})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom");function r(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){i.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(r.prototype),t.Tooltip=r})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/oop"),s=e("../lib/event"),a=e("../tooltip").Tooltip;function o(e){var t,n,r,a=e.editor,o=a.renderer.$gutterLayer,l=new c(a.container);function u(){var t=n.getDocumentPosition().row,i=o.$annotations[t];if(!i)return d();var s=a.session.getLength();if(t==s){var c=a.renderer.pixelToScreenCoordinates(0,n.y).row,u=n.$pos;if(c>a.session.documentToScreenRow(u.row,u.column))return d()}if(r!=i)if(r=i.text.join("<br/>"),l.setHtml(r),l.show(),a._signal("showGutterTooltip",l),a.on("mousewheel",d),e.$tooltipFollowsMouse)h(n);else{var f=n.domEvent.target,p=f.getBoundingClientRect(),g=l.getElement().style;g.left=p.right+"px",g.top=p.bottom+"px"}}function d(){t&&(t=clearTimeout(t)),r&&(l.hide(),r=null,a._signal("hideGutterTooltip",l),a.removeEventListener("mousewheel",d))}function h(e){l.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(a.isFocused()&&0==t.getButton()){var n=o.getRegion(t);if("foldWidgets"!=n){var i=t.getDocumentPosition().row,r=a.session.selection;if(t.getShiftKey())r.selectTo(i,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(i)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}})),e.editor.setDefaultHandler("guttermousemove",(function(s){var a=s.domEvent.target||s.domEvent.srcElement;if(i.hasCssClass(a,"ace_fold-widget"))return d();r&&e.$tooltipFollowsMouse&&h(s),n=s,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?u():d()}),50))})),s.addListener(a.renderer.$gutter,"mouseout",(function(e){n=null,r&&!t&&(t=setTimeout((function(){t=null,d()}),50))})),a.on("changeSession",d)}function c(e){a.call(this,e)}r.inherits(c,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),s=this.getHeight();e+=15,t+=15,e+r>n&&(e-=e+r-n),t+s>i&&(t-=20+s),a.prototype.setPosition.call(this,e,t)}}.call(c.prototype),t.GutterHandler=o})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),s=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(s.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/event"),s=e("../lib/useragent"),a=200,o=200,c=5;function l(e){var t=e.editor,n=i.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",s.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var l=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];l.forEach((function(t){e[t]=this[t]}),this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var d,h,f,p,g,m,v,b,y,w,_,x=t.container,k=0;function A(e,n){var i=Date.now(),r=!n||e.row!=n.row,s=!n||e.column!=n.column;if(!w||r||s)t.$blockScrolling+=1,t.moveCursorToPosition(e),t.$blockScrolling-=1,w=i,_={x:h,y:f};else{var a=u(_.x,_.y,h,f);a>c?w=null:i-w>=o&&(t.renderer.scrollCursorIntoView(),w=null)}}function C(e,n){var i=Date.now(),r=t.renderer.layerConfig.lineHeight,s=t.renderer.layerConfig.characterWidth,o=t.renderer.scroller.getBoundingClientRect(),c={x:{left:h-o.left,right:o.right-h},y:{top:f-o.top,bottom:o.bottom-f}},l=Math.min(c.x.left,c.x.right),u=Math.min(c.y.top,c.y.bottom),d={row:e.row,column:e.column};l/s<=2&&(d.column+=c.x.left<c.x.right?-3:2),u/r<=1&&(d.row+=c.y.top<c.y.bottom?-1:1);var p=e.row!=d.row,g=e.column!=d.column,m=!n||e.row!=n.row;p||g&&!m?y?i-y>=a&&t.renderer.scrollCursorIntoView(d):y=i:y=null}function E(){var e=m;m=t.renderer.screenToTextCoordinates(h,f),A(m,e),C(m,e)}function S(){g=t.selection.toOrientedRange(),d=t.session.addMarker(g,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(p),E(),p=setInterval(E,20),k=0,r.addListener(document,"mousemove",T)}function F(){clearInterval(p),t.session.removeMarker(d),d=null,t.$blockScrolling+=1,t.selection.fromOrientedRange(g),t.$blockScrolling-=1,t.isFocused()&&!b&&t.renderer.$cursorLayer.setBlinking(!t.getReadOnly()),g=null,m=null,k=0,y=null,w=null,r.removeListener(document,"mousemove",T)}this.onDragStart=function(e){if(this.cancelDrag||!x.draggable){var i=this;return setTimeout((function(){i.startSelect(),i.captureMouse(e)}),0),e.preventDefault()}g=t.getSelectionRange();var r=e.dataTransfer;r.effectAllowed=t.getReadOnly()?"copy":"copyMove",s.isOpera&&(t.container.appendChild(n),n.scrollTop=0),r.setDragImage&&r.setDragImage(n,0,0),s.isOpera&&t.container.removeChild(n),r.clearData(),r.setData("Text",t.session.getTextRange()),b=!0,this.setState("drag")},this.onDragEnd=function(e){if(x.draggable=!1,b=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;v||"move"!=n||t.session.remove(t.getSelectionRange()),t.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&L(e.dataTransfer))return h=e.clientX,f=e.clientY,d||S(),k++,e.dataTransfer.dropEffect=v=D(e),r.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&L(e.dataTransfer))return h=e.clientX,f=e.clientY,d||(S(),k++),null!==$&&($=null),e.dataTransfer.dropEffect=v=D(e),r.preventDefault(e)},this.onDragLeave=function(e){if(k--,k<=0&&d)return F(),v=null,r.preventDefault(e)},this.onDrop=function(e){if(m){var n=e.dataTransfer;if(b)switch(v){case"move":g=g.contains(m.row,m.column)?{start:m,end:m}:t.moveText(g,m);break;case"copy":g=t.moveText(g,m,!0);break}else{var i=n.getData("Text");g={start:m,end:t.session.insert(m,i)},t.focus(),v=null}return F(),r.preventDefault(e)}},r.addListener(x,"dragstart",this.onDragStart.bind(e)),r.addListener(x,"dragend",this.onDragEnd.bind(e)),r.addListener(x,"dragenter",this.onDragEnter.bind(e)),r.addListener(x,"dragover",this.onDragOver.bind(e)),r.addListener(x,"dragleave",this.onDragLeave.bind(e)),r.addListener(x,"drop",this.onDrop.bind(e));var $=null;function T(){null==$&&($=setTimeout((function(){null!=$&&d&&F()}),20))}function L(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function D(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],i=s.isMac?e.altKey:e.ctrlKey,r="uninitialized";try{r=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var a="none";return i&&t.indexOf(r)>=0?a="copy":n.indexOf(r)>=0?a="move":t.indexOf(r)>=0&&(a="copy"),a}}function u(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var n=s.isWin?"default":"move";e.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(s.isIE&&"dragReady"==this.state){var n=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if("dragWait"===this.state){n=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton(),r=e.domEvent.detail||1;if(1===r&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var a=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in a&&(a.unselectable="on"),t.getDragDelay()){if(s.isWebKit){this.cancelDrag=!0;var o=t.container;o.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(l.prototype),t.DragdropHandler=l})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=i.getDocumentHead(),r=document.createElement("script");r.src=e,n.appendChild(r),r.onload=r.onreadystatechange=function(e,n){!n&&r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(r=r.onload=r.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var i={},r=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var a=0;a<n.length;a++)if(n[a](t,this),t.propagationStopped)break;return i&&!t.defaultPrevented?i(t,this):void 0}},i._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var i=0;i<n.length;i++)n[i](t,this)}},i.once=function(e,t){var n=this;t&&this.addEventListener(e,(function i(){n.removeEventListener(e,i),t.apply(null,arguments)}))},i.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var i=n[e],r=n._disabled_[e];r||(n._disabled_[e]=r=[]),r.push(i);var s=r.indexOf(t);-1!=s&&r.splice(s,1)}n[e]=t},i.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var i=n._disabled_[e];if(n[e]==t){n[e];i&&this.setDefaultHandler(e,i.pop())}else if(i){var r=i.indexOf(t);-1!=r&&i.splice(r,1)}}},i.on=i.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];return i||(i=this._eventRegistry[e]=[]),-1==i.indexOf(t)&&i[n?"unshift":"push"](t),t},i.off=i.removeListener=i.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}},i.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=i})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var i=e("./oop"),r=e("./event_emitter").EventEmitter,s={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};return e?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return a('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:a('misspelled option "'+e+'"')}};function a(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function o(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}var c=function(){this.$defaultOptions={}};(function(){i.implement(this,r),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var i=n[t];"string"==typeof i&&(i={forwardTo:i}),i.name||(i.name=t),e.$options[i.name]=i,"initialValue"in i&&(e["$"+i.name]=i.initialValue)})),i.implement(e,s),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){var i=this.$defaultOptions[e]||(this.$defaultOptions[e]={});i[t]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,n):i[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=a,this.reportError=o}).call(c.prototype),t.AppConfig=c})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(e,t,i){var r=e("./lib/lang"),s=(e("./lib/oop"),e("./lib/net")),a=e("./lib/app_config").AppConfig;i.exports=t=new a;var o=function(){return this||"undefined"!=typeof window&&window}(),c={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};function l(r){if(o&&o.document){c.packaged=r||e.packaged||i.packaged||o.define&&n("07d6").packaged;for(var s={},a="",l=document.currentScript||document._currentScript,d=l&&l.ownerDocument||document,h=d.getElementsByTagName("script"),f=0;f<h.length;f++){var p=h[f],g=p.src||p.getAttribute("src");if(g){for(var m=p.attributes,v=0,b=m.length;v<b;v++){var y=m[v];0===y.name.indexOf("data-ace-")&&(s[u(y.name.replace(/^data-ace-/,""))]=y.value)}var w=g.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);w&&(a=w[1])}}for(var _ in a&&(s.base=s.base||a,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base,s)"undefined"!==typeof s[_]&&t.set(_,s[_])}}function u(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}t.get=function(e){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return c[e]},t.set=function(e,t){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);c[e]=t},t.all=function(){return r.copyObject(c)},t.moduleUrl=function(e,t){if(c.$moduleUrls[e])return c.$moduleUrls[e];var n=e.split("/");t=t||n[n.length-2]||"";var i="snippets"==t?"/":"-",r=n[n.length-1];if("worker"==t&&"-"==i){var s=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");r=r.replace(s,"")}(!r||r==t)&&n.length>1&&(r=n[n.length-2]);var a=c[t+"Path"];return null==a?a=c.basePath:"/"==i&&(t=i=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+i+r+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,i){var r,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{r=e(n)}catch(c){}if(r&&!t.$loading[n])return i&&i(r);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(i),!(t.$loading[n].length>1)){var o=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var i=t.$loading[n];t.$loading[n]=null,i.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return o();s.loadScript(t.moduleUrl(n,a),o)}},l(!0),t.init=l})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/event"),r=e("../lib/useragent"),s=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,o=e("./mouse_event").MouseEvent,c=e("./dragdrop_handler").DragdropHandler,l=e("../config"),u=function(e){var t=this;this.editor=e,new s(this),new a(this),new c(this);var n=function(t){var n=!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement());n&&window.focus(),e.focus()},o=e.renderer.getMouseEventTarget();i.addListener(o,"click",this.onMouseEvent.bind(this,"click")),i.addListener(o,"mousemove",this.onMouseMove.bind(this,"mousemove")),i.addMultiMouseDownListener([o,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),i.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel")),i.addTouchMoveListener(e.container,this.onTouchMove.bind(this,"touchmove"));var l=e.renderer.$gutter;i.addListener(l,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),i.addListener(l,"click",this.onMouseEvent.bind(this,"gutterclick")),i.addListener(l,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),i.addListener(l,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),i.addListener(o,"mousedown",n),i.addListener(l,"mousedown",n),r.isIE&&e.renderer.scrollBarV&&(i.addListener(e.renderer.scrollBarV.element,"mousedown",n),i.addListener(e.renderer.scrollBarH.element,"mousedown",n)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var i=e.renderer.screenToTextCoordinates(n.x,n.y),r=e.session.selection.getRange(),s=e.renderer;!r.isEmpty()&&r.insideStart(i.row,i.column)?s.setCursorStyle("default"):s.setCursorStyle("")}}))};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new o(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new o(t,this.editor))},this.onMouseWheel=function(e,t){var n=new o(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.onTouchMove=function(e,t){var n=new o(t,this.editor);n.speed=1,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor.renderer;n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=null);var s=this,a=function(e){if(e){if(r.isWebKit&&!e.which&&s.releaseMouse)return s.releaseMouse();s.x=e.clientX,s.y=e.clientY,t&&t(e),s.mouseEvent=new o(e,s.editor),s.$mouseMoved=!0}},c=function(e){clearInterval(u),l(),s[s.state+"End"]&&s[s.state+"End"](e),s.state="",null==n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=!0,n.$moveTextAreaToCursor()),s.isMousePressed=!1,s.$onCaptureMouseMove=s.releaseMouse=null,e&&s.onMouseEvent("mouseup",e)},l=function(){s[s.state]&&s[s.state](),s.$mouseMoved=!1};if(r.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){c(e)}));s.$onCaptureMouseMove=a,s.releaseMouse=i.capture(this.editor.container,a,c);var u=setInterval(l,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&i.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)}}).call(u.prototype),l.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:r.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u})),ace.define("ace/mouse/fold_handler",["require","exports","module"],(function(e,t,n){"use strict";function i(e){e.on("click",(function(t){var n=t.getDocumentPosition(),i=e.session,r=i.getFoldAt(n.row,n.column,1);r&&(t.getAccelKey()?i.removeFold(r):i.expandFold(r),t.stop())})),e.on("gutterclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var i=t.getDocumentPosition().row,r=e.session;r.foldWidgets&&r.foldWidgets[i]&&e.session.onFoldWidgetClick(i,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var i=t.getDocumentPosition().row,r=e.session,s=r.getParentFoldRangeData(i,!0),a=s.range||s.firstRange;if(a){i=a.start.row;var o=r.getFoldAt(i,r.getLine(i).length,1);o?r.removeFold(o):(r.addFold("...",a),e.renderer.scrollCursorIntoView({row:a.start.row,column:0}))}t.stop()}}))}t.FoldHandler=i})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var i=e("../lib/keys"),r=e("../lib/event"),s=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){while(t[t.length-1]&&t[t.length-1]!=this.$defaultHandler)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),void 0==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var s,a=!1,o=this.$editor.commands,c=this.$handlers.length;c--;)if(s=this.$handlers[c].handleKeyboard(this.$data,e,t,n,i),s&&s.command&&(a="null"==s.command||o.exec(s.command,this.$editor,s.args,i),a&&i&&-1!=e&&1!=s.passEvent&&1!=s.command.passEvent&&r.stopEvent(i),a))break;return a||-1!=e||(s={command:"insertstring"},a=o.exec("insertstring",this.$editor,t)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",s),a},this.onCommandKey=function(e,t,n){var r=i.keyCodeToString(n);this.$callKeyboardHandlers(t,r,n,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)}}).call(s.prototype),t.KeyBinding=s})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var i=0,r=0,s=!1,a=!1,o=!1,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,d=1,h=0,f=1,p=2,g=3,m=4,v=5,b=6,y=7,w=8,_=9,x=10,k=11,A=12,C=13,E=14,S=15,F=16,$=17,T=18,L=[T,T,T,T,T,T,T,T,T,b,v,b,w,v,T,T,T,T,T,T,T,T,T,T,T,T,T,T,v,v,v,b,w,m,m,k,k,k,m,m,m,m,m,x,_,x,_,_,p,p,p,p,p,p,p,p,p,p,_,m,m,m,m,m,m,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,m,m,m,m,m,m,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,h,m,m,m,m,T,T,T,T,T,T,v,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,_,m,k,k,k,k,m,m,m,m,h,m,m,T,m,m,k,k,p,p,m,h,m,m,m,p,h,m,m,m,m,m],D=[w,w,w,w,w,w,w,w,w,w,w,T,T,T,h,f,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,w,v,C,E,S,F,$,_,k,k,k,k,k,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,_,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,w];function B(e,t,n,u){var d=i?l:c,h=null,f=null,p=null,g=0,m=null,y=null,_=-1,x=null,k=null,A=[];if(!u)for(x=0,u=[];x<n;x++)u[x]=M(e[x]);for(r=i,s=!1,!1,a=!1,o=!1,k=0;k<n;k++){if(h=g,A[k]=f=O(e,u,A,k),g=d[h][f],m=240&g,g&=15,t[k]=p=d[g][5],m>0)if(16==m){for(x=_;x<k;x++)t[x]=1;_=-1}else _=-1;if(y=d[g][6],y)-1==_&&(_=k);else if(_>-1){for(x=_;x<k;x++)t[x]=p;_=-1}u[k]==v&&(t[k]=0),r|=p}if(o)for(x=0;x<n;x++)if(u[x]==b){t[x]=i;for(var C=x-1;C>=0;C--){if(u[C]!=w)break;t[C]=i}}}function R(e,t,n){if(!(r<e))if(1!=e||i!=d||a){var s,o,c,l,u=n.length,h=0;while(h<u){if(t[h]>=e){s=h+1;while(s<u&&t[s]>=e)s++;for(o=h,c=s-1;o<c;o++,c--)l=n[o],n[o]=n[c],n[c]=l;h=s}h++}}else n.reverse()}function O(e,t,n,r){var c,l,u,d,L=t[r];switch(L){case h:case f:s=!1;case m:case g:return L;case p:return s?g:p;case y:return s=!0,!0,f;case w:return m;case _:return r<1||r+1>=t.length||(c=n[r-1])!=p&&c!=g||(l=t[r+1])!=p&&l!=g?m:(s&&(l=g),l==c?l:m);case x:return c=r>0?n[r-1]:v,c==p&&r+1<t.length&&t[r+1]==p?p:m;case k:if(r>0&&n[r-1]==p)return p;if(s)return m;d=r+1,u=t.length;while(d<u&&t[d]==k)d++;return d<u&&t[d]==p?p:m;case A:u=t.length,d=r+1;while(d<u&&t[d]==A)d++;if(d<u){var D=e[r],B=D>=1425&&D<=2303||64286==D;if(c=t[d],B&&(c==f||c==y))return f}return r<1||(c=t[r-1])==v?m:n[r-1];case v:return s=!1,a=!0,i;case b:return o=!0,m;case C:case E:case F:case $:case S:s=!1;case T:return m}}function M(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?h:L[t]:5==n?/[\u0591-\u05f4]/.test(e)?f:h:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?A:/[\u0660-\u0669\u066b-\u066c]/.test(e)?g:1642==t?k:/[\u06f0-\u06f9]/.test(e)?p:y:32==n&&t<=8287?D[255&t]:254==n&&t>=65136?y:m}t.L=h,t.R=f,t.EN=p,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.DOT="·",t.doBidiReorder=function(e,n,r){if(e.length<2)return{};var s=e.split(""),a=new Array(s.length),o=new Array(s.length),c=[];i=r?d:u,B(s,c,s.length,n);for(var l=0;l<a.length;a[l]=l,l++);R(2,c,a),R(1,c,a);for(l=0;l<a.length-1;l++)n[l]===g?c[l]=t.AN:c[l]===f&&(n[l]>y&&n[l]<C||n[l]===m||n[l]===T)?c[l]=t.ON_R:l>0&&"ل"===s[l-1]&&/\u0622|\u0623|\u0625|\u0627/.test(s[l])&&(c[l-1]=c[l]=t.R_H,l++);s[s.length-1]===t.DOT&&(c[s.length-1]=t.B);for(l=0;l<a.length;l++)o[l]=c[a[l]];return{logicalFromVisual:a,bidiLevels:o}},t.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=M(e.charAt(i)),n||t[i]!=f&&t[i]!=y||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("./lib/bidiutil"),r=e("./lib/lang"),s=e("./lib/useragent"),a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=i,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.line="",this.wrapIndent=0,this.isLastRow=!1,this.EOF="¶",this.seenBidi=!1};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&a.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n,i=this.session.$getRowCacheIndex(t,this.currentRow);while(this.currentRow-e>0){if(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1),n!==i)break;i=n,e++}}return e},this.updateRowLine=function(e,t){if(void 0===e&&(e=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=e===this.session.getLength()-1,this.line=this.session.getLine(e),this.session.$useWrapMode){var n=this.session.$wrapData[e];n&&(void 0===t&&(t=this.getSplitIndex()),t>0&&n.length?(this.wrapIndent=n.indent,this.line=t<n.length?this.line.substring(n[t-1],n[n.length-1]):this.line.substring(n[n.length-1])):this.line=this.line.substring(0,n[t]))}var s,a=this.session,o=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||a.isFullWidth(e.charCodeAt(0))?(s="\t"===e?a.getScreenTabSize(t+o):2,o+=s-1,r.stringRepeat(i.DOT,s)):e}))},this.updateBidiMap=function(){var e=[],t=this.isLastRow?this.EOF:this.EOL,n=this.line+(this.showInvisibles?t:i.DOT);i.hasBidiCharacters(n,e)?this.bidiMap=i.doBidiReorder(n,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.seenBidi&&this.characterWidth!==e.$characterSize.width){var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[i.L]=this.charWidths[i.EN]=this.charWidths[i.ON_R]=t,this.charWidths[i.R]=this.charWidths[i.AN]=n,this.charWidths[i.R_H]=s.isChrome?n:.45*n,this.charWidths[i.B]=0,this.currentRow=null}},this.getShowInvisibles=function(){return this.showInvisibles},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setTextDir=function(e){this.isRtlDir=e},this.getPosLeft=function(e){e-=this.wrapIndent;var t=i.getVisualFromLogicalIdx(e>0?e-1:0,this.bidiMap),n=this.bidiMap.bidiLevels,r=0;0===e&&n[t]%2!==0&&t++;for(var s=0;s<t;s++)r+=this.charWidths[n[s]];return 0!==e&&n[t]%2===0&&(r+=this.charWidths[n[t]]),this.wrapIndent&&(r+=this.wrapIndent*this.charWidths[i.L]),r},this.getSelections=function(e,t){for(var n,r,s=this.bidiMap,a=s.bidiLevels,o=this.wrapIndent*this.charWidths[i.L],c=[],l=Math.min(e,t)-this.wrapIndent,u=Math.max(e,t)-this.wrapIndent,d=!1,h=!1,f=0,p=0;p<a.length;p++)r=s.logicalFromVisual[p],n=a[p],d=r>=l&&r<u,d&&!h?f=o:!d&&h&&c.push({left:f,width:o-f}),o+=this.charWidths[n],h=d;return d&&p===a.length&&c.push({left:f,width:o-f}),c},this.offsetToCol=function(e){var t=0,n=(e=Math.max(e,0),0),r=0,s=this.bidiMap.bidiLevels,a=this.charWidths[s[r]];this.wrapIndent&&(e-=this.wrapIndent*this.charWidths[i.L]);while(e>n+a/2){if(n+=a,r===s.length-1){a=0;break}a=this.charWidths[s[++r]]}return r>0&&s[r-1]%2!==0&&s[r]%2===0?(e<n&&r--,t=this.bidiMap.logicalFromVisual[r]):r>0&&s[r-1]%2===0&&s[r]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===s.length-1&&0===a&&s[r-1]%2===0||!this.isRtlDir&&0===r&&s[r]%2!==0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&s[r-1]%2!==0&&0!==a&&r--,t=this.bidiMap.logicalFromVisual[r]),t+this.wrapIndent}}).call(o.prototype),t.BidiHandler=o})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var i=function(e,t){return e.row-t.row||e.column-t.column},r=function(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,i=e.start;return t=this.compare(n.row,n.column),1==t?(t=this.compare(i.row,i.column),1==t?2:0==t?1:0):-1==t?-2:(t=this.compare(i.row,i.column),-1==t?-1:1==t?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var i={row:t+1,column:0};else if(this.start.row<e)i={row:e,column:0};return r.fromPoints(i||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var i={row:e,column:t};else var s={row:e,column:t};return r.fromPoints(i||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new r(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(r.prototype),r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=i,r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/lang"),s=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,o=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var t=this;this.lead.on("change",(function(e){t._emit("changeCursor"),t.$isEmpty||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.selectionAnchor.on("change",(function(){t.$isEmpty||t._emit("changeSelection")}))};(function(){i.implement(this,s),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.anchor.setPosition(e,t),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(e){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+e);else{var t=this.getSelectionAnchor(),n=this.getSelectionLead(),i=this.isBackwards();i&&0===t.column||this.setSelectionAnchor(t.row,t.column+e),(i||0!==n.column)&&this.$moveSelection((function(){this.moveCursorTo(n.row,n.column+e)}))}},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if("undefined"==typeof t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,i="number"==typeof e?e:this.lead.row,r=this.session.getFoldLine(i);return r?(i=r.start.row,n=r.end.row):n=i,!0===t?new a(i,0,n,this.session.getLine(n).length):new a(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,r=e.column+t;return n<0&&(i=e.column-t,r=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,r).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(n,0),r=this.session.getDisplayLine(e,null,i.row,i.column),s=r.match(/^\s*/);s[0].length==t||this.session.$useEmacsStyleLineStart||(i.column+=s[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var i=n.search(/\s+$/);i>0&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var r=this.session.getFoldAt(e,t,1);if(r)this.moveCursorTo(r.end.row,r.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var i=this.session.getFoldStringAt(t,n,-1);null==i&&(i=this.doc.getLine(t).substring(0,n));var s=r.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(s)&&(n-=this.session.nonTokenRe.lastIndex,s=s.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(s)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{while((t=e[n])&&i.test(t))n++;if(n<1){r.lastIndex=0;while((t=e[n])&&!r.test(t))if(r.lastIndex=0,n++,i.test(t)){if(n>2){n--;break}while((t=e[n])&&i.test(t))n++;if(n>2)break}}}return r.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),r=this.session.getFoldAt(e,t,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(t==n.length){var s=this.doc.getLength();do{e++,i=this.doc.getLine(e)}while(e<s&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),t=0}var a=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+a)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var i=this.session.getLine(t).substring(0,n);if(0===n){do{t--,i=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(i));n=i.length,/\s+$/.test(i)||(i="")}var s=r.stringReverse(i),a=this.$shortWordEndIndex(s);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column);var r=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&r.row===this.lead.row&&r.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[r.row]&&(r.row>0||e>0)&&r.row++,this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var r=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(r.charAt(t))&&r.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(i){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else{e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(o.prototype),t.Selection=o})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var i=e("./config"),r=2e3,s=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],r=0,s=this.matchMappings[t]={defaultToken:"text"},a="g",o=[],c=0;c<n.length;c++){var l=n[c];if(l.defaultToken&&(s.defaultToken=l.defaultToken),l.caseInsensitive&&(a="gi"),null!=l.regex){l.regex instanceof RegExp&&(l.regex=l.regex.toString().slice(1,-1));var u=l.regex,d=new RegExp("(?:("+u+")|(.))").exec("a").length-2;Array.isArray(l.token)?1==l.token.length||1==d?l.token=l.token[0]:d-1!=l.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:l,groupCount:d-1}),l.token=l.token[0]):(l.tokenArray=l.token,l.token=null,l.onMatch=this.$arrayTokens):"function"!=typeof l.token||l.onMatch||(l.onMatch=d>1?this.$applyToken:l.token),d>1&&(/\\\d/.test(l.regex)?u=l.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+r+1)})):(d=1,u=this.removeCapturingGroups(l.regex)),l.splitRegex||"string"==typeof l.token||o.push(l)),s[r]=c,r+=d,i.push(u),l.onMatch||(l.onMatch=null)}}i.length||(s[0]=0,i.push("$")),o.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){r=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"===typeof n)return[{type:n,value:e}];for(var i=[],r=0,s=n.length;r<s;r++)t[r]&&(i[i.length]={type:n[r],value:t[r]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,r=0,s=i.length;r<s;r++)t[r+1]&&(n[n.length]={type:i[r],value:t[r+1]});return n},this.removeCapturingGroups=function(e){var t=e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,(function(e,t){return t?"(?:":e}));return t},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,i=!1,r={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,s,a,o,c){return i?i="]"!=o:o?i=!0:a?(n==r.stack&&(r.end=c+1,r.stack=-1),n--):s&&(n++,1!=s.length&&(r.stack=n,r.start=c)),e})),null!=r.end&&/^\)*$/.test(e.substr(r.end))&&(e=e.substring(0,r.start)+e.substr(r.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);t=n[0],"#tmp"===t&&(n.shift(),t=n.shift())}else n=[];var i=t||"start",s=this.states[i];s||(i="start",s=this.states[i]);var a=this.matchMappings[i],o=this.regExps[i];o.lastIndex=0;var c,l=[],u=0,d=0,h={type:null,value:""};while(c=o.exec(e)){var f=a.defaultToken,p=null,g=c[0],m=o.lastIndex;if(m-g.length>u){var v=e.substring(u,m-g.length);h.type==f?h.value+=v:(h.type&&l.push(h),h={type:f,value:v})}for(var b=0;b<c.length-2;b++)if(void 0!==c[b+1]){p=s[a[b]],f=p.onMatch?p.onMatch(g,i,n,e):p.token,p.next&&(i="string"==typeof p.next?p.next:p.next(i,n),s=this.states[i],s||(this.reportError("state doesn't exist",i),i="start",s=this.states[i]),a=this.matchMappings[i],u=m,o=this.regExps[i],o.lastIndex=m),p.consumeLineEnd&&(u=m);break}if(g)if("string"===typeof f)p&&!1===p.merge||h.type!==f?(h.type&&l.push(h),h={type:f,value:g}):h.value+=g;else if(f){h.type&&l.push(h),h={type:null,value:""};for(b=0;b<f.length;b++)l.push(f[b])}if(u==e.length)break;if(u=m,d++>r){d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});while(u<e.length)h.type&&l.push(h),h={value:e.substring(u,u+=2e3),type:"overflow"};i="start",n=[];break}}return h.type&&l.push(h),n.length>1&&n[0]!==i&&n.unshift("#tmp",i),{tokens:l,state:n.length?n:i}},this.reportError=i.reportError}).call(s.prototype),t.Tokenizer=s})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var i=e("../lib/lang"),r=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],r=0;r<i.length;r++){var s=i[r];(s.next||s.onMatch)&&("string"==typeof s.next&&0!==s.next.indexOf(t)&&(s.next=t+s.next),s.nextState&&0!==s.nextState.indexOf(t)&&(s.nextState=t+s.nextState))}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,r,s){var a="function"==typeof e?(new e).getRules():e;if(r)for(var o=0;o<r.length;o++)r[o]=t+r[o];else for(var c in r=[],a)r.push(t+c);if(this.addRules(a,t),n){var l=Array.prototype[s?"push":"unshift"];for(o=0;o<r.length;o++)l.apply(this.$rules[r[o]],i.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,i=this.$rules;function r(s){var a=i[s];a.processed=!0;for(var o=0;o<a.length;o++){var c=a[o],l=null;Array.isArray(c)&&(l=c,c={}),!c.regex&&c.start&&(c.regex=c.start,c.next||(c.next=[]),c.next.push({defaultToken:c.token},{token:c.token+".end",regex:c.end||c.start,next:"pop"}),c.token=c.token+".start",c.push=!0);var u=c.next||c.push;if(u&&Array.isArray(u)){var d=c.stateName;d||(d=c.token,"string"!=typeof d&&(d=d[0]||""),i[d]&&(d+=n++)),i[d]=u,c.next=d,r(d)}else"pop"==u&&(c.next=t);if(c.push&&(c.nextState=c.next||c.push,c.next=e,delete c.push),c.rules)for(var h in c.rules)i[h]?i[h].push&&i[h].push.apply(i[h],c.rules[h]):i[h]=c.rules[h];var f="string"==typeof c?c:c.include;if(f&&(l=Array.isArray(f)?f.map((function(e){return i[e]})):i[f]),l){var p=[o,1].concat(l);c.noEscape&&(p=p.filter((function(e){return!e.next}))),a.splice.apply(a,p),o--}c.keywordMap&&(c.token=this.createKeywordMapper(c.keywordMap,c.defaultToken||"text",c.caseInsensitive),delete c.defaultToken)}}Object.keys(i).forEach(r,this)},this.createKeywordMapper=function(e,t,n,i){var r=Object.create(null);return Object.keys(e).forEach((function(t){var s=e[t];n&&(s=s.toLowerCase());for(var a=s.split(i||"|"),o=a.length;o--;)r[a[o]]=t})),Object.getPrototypeOf(r)&&(r.__proto__=null),this.$keywordList=Object.keys(r),e=null,n?function(e){return r[e.toLowerCase()]||t}:function(e){return r[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(r.prototype),t.TextHighlightRules=r})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var i=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"===typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(i.prototype),t.Behaviour=i})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range,r=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,n);this.$tokenIndex=i?i.index:-1};(function(){this.stepBackward=function(){this.$tokenIndex-=1;while(this.$tokenIndex<0){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;this.$tokenIndex+=1;while(this.$tokenIndex>=this.$rowTokens.length){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;n=0;while(t>0)t-=1,n+=e[t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new i(this.$row,t,this.$row,t+e.value.length)}}).call(r.prototype),t.TokenIterator=r})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var i,r=e("../../lib/oop"),s=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,o=e("../../lib/lang"),c=["text","paren.rparen","punctuation.operator"],l=["text","paren.rparen","punctuation.operator","comment"],u={},d={'"':'"',"'":"'"},h=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return i=u[t];i=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(e,t,n,i){var r=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,r,e.end.column+(r?0:1)]}},p=function(e){this.add("braces","insertion",(function(t,n,r,s,a){var c=r.getCursorPosition(),l=s.doc.getLine(c.row);if("{"==a){h(r);var u=r.getSelectionRange(),d=s.doc.getTextRange(u);if(""!==d&&"{"!==d&&r.getWrapBehavioursEnabled())return f(u,d,"{","}");if(p.isSaneInsertion(r,s))return/[\]\}\)]/.test(l[c.column])||r.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(r,s,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(r,s,"{"),{text:"{",selection:[1,1]})}else if("}"==a){h(r);var g=l.substring(c.column,c.column+1);if("}"==g){var m=s.$findOpeningBracket("}",{column:c.column+1,row:c.row});if(null!==m&&p.isAutoInsertedClosing(c,l,a))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else{if("\n"==a||"\r\n"==a){h(r);var v="";p.isMaybeInsertedClosing(c,l)&&(v=o.stringRepeat("}",i.maybeInsertedBrackets),p.clearMaybeInsertedClosing());g=l.substring(c.column,c.column+1);if("}"===g){var b=s.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!b)return null;var y=this.$getIndent(s.getLine(b.row))}else{if(!v)return void p.clearMaybeInsertedClosing();y=this.$getIndent(l)}var w=y+s.getTabString();return{text:"\n"+w+"\n"+y+v,selection:[1,w.length,1,w.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,r,s){var a=r.doc.getTextRange(s);if(!s.isMultiLine()&&"{"==a){h(n);var o=r.doc.getLine(s.start.row),c=o.substring(s.end.column,s.end.column+1);if("}"==c)return s.end.column++,s;i.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,i,r){if("("==r){h(n);var s=n.getSelectionRange(),a=i.doc.getTextRange(s);if(""!==a&&n.getWrapBehavioursEnabled())return f(s,a,"(",")");if(p.isSaneInsertion(n,i))return p.recordAutoInsert(n,i,")"),{text:"()",selection:[1,1]}}else if(")"==r){h(n);var o=n.getCursorPosition(),c=i.doc.getLine(o.row),l=c.substring(o.column,o.column+1);if(")"==l){var u=i.$findOpeningBracket(")",{column:o.column+1,row:o.row});if(null!==u&&p.isAutoInsertedClosing(o,c,r))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("parens","deletion",(function(e,t,n,i,r){var s=i.doc.getTextRange(r);if(!r.isMultiLine()&&"("==s){h(n);var a=i.doc.getLine(r.start.row),o=a.substring(r.start.column+1,r.start.column+2);if(")"==o)return r.end.column++,r}})),this.add("brackets","insertion",(function(e,t,n,i,r){if("["==r){h(n);var s=n.getSelectionRange(),a=i.doc.getTextRange(s);if(""!==a&&n.getWrapBehavioursEnabled())return f(s,a,"[","]");if(p.isSaneInsertion(n,i))return p.recordAutoInsert(n,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==r){h(n);var o=n.getCursorPosition(),c=i.doc.getLine(o.row),l=c.substring(o.column,o.column+1);if("]"==l){var u=i.$findOpeningBracket("]",{column:o.column+1,row:o.row});if(null!==u&&p.isAutoInsertedClosing(o,c,r))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("brackets","deletion",(function(e,t,n,i,r){var s=i.doc.getTextRange(r);if(!r.isMultiLine()&&"["==s){h(n);var a=i.doc.getLine(r.start.row),o=a.substring(r.start.column+1,r.start.column+2);if("]"==o)return r.end.column++,r}})),this.add("string_dquotes","insertion",(function(e,t,n,i,r){var s=i.$mode.$quotes||d;if(1==r.length&&s[r]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(r))return;h(n);var a=r,o=n.getSelectionRange(),c=i.doc.getTextRange(o);if(!(""===c||1==c.length&&s[c])&&n.getWrapBehavioursEnabled())return f(o,c,a,a);if(!c){var l=n.getCursorPosition(),u=i.doc.getLine(l.row),p=u.substring(l.column-1,l.column),g=u.substring(l.column,l.column+1),m=i.getTokenAt(l.row,l.column),v=i.getTokenAt(l.row,l.column+1);if("\\"==p&&m&&/escape/.test(m.type))return null;var b,y=m&&/string|escape/.test(m.type),w=!v||/string|escape/.test(v.type);if(g==a)b=y!==w,b&&/string\.end/.test(v.type)&&(b=!1);else{if(y&&!w)return null;if(y&&w)return null;var _=i.$mode.tokenRe;_.lastIndex=0;var x=_.test(p);_.lastIndex=0;var k=_.test(p);if(x||k)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;b=!0}return{text:b?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,i,r){var s=i.doc.getTextRange(r);if(!r.isMultiLine()&&('"'==s||"'"==s)){h(n);var a=i.doc.getLine(r.start.row),o=a.substring(r.start.column+1,r.start.column+2);if(o==s)return r.end.column++,r}}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new a(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",c)){var r=new a(t,n.row,n.column+1);if(!this.$matchTokenType(r.getCurrentToken()||"text",c))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",l)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var r=e.getCursorPosition(),s=t.doc.getLine(r.row);this.isAutoInsertedClosing(r,s,i.autoInsertedLineEnd[0])||(i.autoInsertedBrackets=0),i.autoInsertedRow=r.row,i.autoInsertedLineEnd=n+s.substr(r.column),i.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var r=e.getCursorPosition(),s=t.doc.getLine(r.row);this.isMaybeInsertedClosing(r,s)||(i.maybeInsertedBrackets=0),i.maybeInsertedRow=r.row,i.maybeInsertedLineStart=s.substr(0,r.column)+n,i.maybeInsertedLineEnd=s.substr(r.column),i.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return i.autoInsertedBrackets>0&&e.row===i.autoInsertedRow&&n===i.autoInsertedLineEnd[0]&&t.substr(e.column)===i.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return i.maybeInsertedBrackets>0&&e.row===i.maybeInsertedRow&&t.substr(e.column)===i.maybeInsertedLineEnd&&t.substr(0,e.column)==i.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){i.autoInsertedLineEnd=i.autoInsertedLineEnd.substr(1),i.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){i&&(i.maybeInsertedBrackets=0,i.maybeInsertedRow=-1)},r.inherits(p,s),t.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";function i(e){var n=/\w{4}/g;for(var i in e)t.packages[i]=e[i].replace(n,"\\u$&")}t.packages={},i({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})})),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../tokenizer").Tokenizer,r=e("./text_highlight_rules").TextHighlightRules,s=e("./behaviour/cstyle").CstyleBehaviour,a=e("../unicode"),o=e("../lib/lang"),c=e("../token_iterator").TokenIterator,l=e("../range").Range,u=function(){this.HighlightRules=r};(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,i){var r=t.doc,s=!0,a=!0,c=1/0,l=t.getTabSize(),u=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))g=this.lineCommentStart.map(o.escapeRegExp).join("|"),f=this.lineCommentStart[0];else g=o.escapeRegExp(this.lineCommentStart),f=this.lineCommentStart;g=new RegExp("^(\\s*)(?:"+g+") ?"),u=t.getUseSoftTabs();b=function(e,t){var n=e.match(g);if(n){var i=n[1].length,s=n[0].length;h(e,i,s)||" "!=n[0][s-1]||s--,r.removeInLine(t,i,s)}};var d=f+" ",h=(v=function(e,t){s&&!/\S/.test(e)||(h(e,c,c)?r.insertInLine({row:t,column:c},d):r.insertInLine({row:t,column:c},f))},y=function(e,t){return g.test(e)},function(e,t,n){var i=0;while(t--&&" "==e.charAt(t))i++;if(i%l!=0)return!1;i=0;while(" "==e.charAt(n++))i++;return l>2?i%l!=l-1:i%l==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,p=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+o.escapeRegExp(f)+")"),m=new RegExp("(?:"+o.escapeRegExp(p)+")\\s*$"),v=function(e,t){y(e,t)||s&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},p),r.insertInLine({row:t,column:c},f))},b=function(e,t){var n;(n=e.match(m))&&r.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&r.removeInLine(t,n[1].length,n[0].length)},y=function(e,n){if(g.test(e))return!0;for(var i=t.getTokens(n),r=0;r<i.length;r++)if("comment"===i[r].type)return!0}}function w(e){for(var t=n;t<=i;t++)e(r.getLine(t),t)}var _=1/0;w((function(e,t){var n=e.search(/\S/);-1!==n?(n<c&&(c=n),a&&!y(e,t)&&(a=!1)):_>e.length&&(_=e.length)})),c==1/0&&(c=_,s=!1,a=!1),u&&c%l!=0&&(c=Math.floor(c/l)*l),w(a?b:v)},this.toggleBlockComment=function(e,t,n,i){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var s,a,o=new c(t,i.row,i.column),u=o.getCurrentToken(),d=(t.selection,t.selection.toOrientedRange());if(u&&/comment/.test(u.type)){var h,f;while(u&&/comment/.test(u.type)){var p=u.value.indexOf(r.start);if(-1!=p){var g=o.getCurrentTokenRow(),m=o.getCurrentTokenColumn()+p;h=new l(g,m,g,m+r.start.length);break}u=o.stepBackward()}o=new c(t,i.row,i.column),u=o.getCurrentToken();while(u&&/comment/.test(u.type)){p=u.value.indexOf(r.end);if(-1!=p){g=o.getCurrentTokenRow(),m=o.getCurrentTokenColumn()+p;f=new l(g,m,g,m+r.end.length);break}u=o.stepForward()}f&&t.remove(f),h&&(t.remove(h),s=h.start.row,a=-r.start.length)}else a=r.start.length,s=n.start.row,t.insert(n.end,r.end),t.insert(n.start,r.start);d.start.row==s&&(d.start.column+=a),d.end.row==s&&(d.end.column+=a),t.selection.fromOrientedRange(d)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)e[t]&&(this.$embeds.push(t),this.$modes[t]=new e[t]);var n=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<n.length;t++)(function(e){var i=n[t],r=e[i];e[n[t]]=function(){return this.$delegator(i,arguments,r)}})(this)},this.$delegator=function(e,t,n){var i=t[0];"string"!=typeof i&&(i=i[0]);for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var s=i.split(this.$embeds[r]);if(!s[0]&&s[1]){t[0]=s[1];var a=this.$modes[this.$embeds[r]];return a[e].apply(a,t)}}var o=n.apply(this,t);return n?o:void 0},this.transformAction=function(e,t,n,i,r){if(this.$behaviour){var s=this.$behaviour.getBehaviours();for(var a in s)if(s[a][t]){var o=s[a][t].apply(this,arguments);if(o)return o}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var r=t[i],s=0,a=r.length;s<a;s++)if("string"===typeof r[s].token)/keyword|support|storage/.test(r[s].token)&&n.push(r[s].regex);else if("object"===typeof r[s].token)for(var o=0,c=r[s].token.length;o<c;o++)if(/keyword|support|storage/.test(r[s].token[o])){i=r[s].regex.match(/\(.+?\)/g)[o];n.push(i.substr(1,i.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,i){var r=this.$keywordList||this.$createKeywordList();return r.map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(u.prototype),t.Mode=u})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var i=t.start.row,r=t.start.column,s=e[i]||"";switch(t.action){case"insert":var a=t.lines;if(1===a.length)e[i]=s.substring(0,r)+t.lines[0]+s.substring(r);else{var o=[i,1].concat(t.lines);e.splice.apply(e,o),e[i]=s.substring(0,r)+e[i],e[i+t.lines.length-1]+=s.substring(r)}break;case"remove":var c=t.end.column,l=t.end.row;i===l?e[i]=s.substring(0,r)+s.substring(c):e.splice(i,l-i+1,s.substring(0,r)+e[l].substring(c));break}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"undefined"==typeof n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var i=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}function t(t,n,i){var r="insert"==t.action,s=(r?1:-1)*(t.end.row-t.start.row),a=(r?1:-1)*(t.end.column-t.start.column),o=t.start,c=r?o:t.end;return e(n,o,i)?{row:n.row,column:n.column}:e(c,n,!i)?{row:n.row+s,column:n.column+(n.row==c.row?a:0)}:{row:o.row,column:o.column}}i.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if((e.start.row!=e.end.row||e.start.row==this.row)&&!(e.start.row>this.row)){var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var r={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:r,value:i})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(s.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./apply_delta").applyDelta,s=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,o=e("./anchor").Anchor,c=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){i.implement(this,s),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new o(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var i=this.getLine(e);return void 0==t&&(t=i.length),t=Math.min(Math.max(t,0),i.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),i={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var i=this.clippedPos(e,t),r=this.clippedPos(e,n);return this.applyDelta({start:i,end:r,action:"remove",lines:this.getLinesForRange({start:i,end:r})},!0),this.clonePos(i)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,i=t<this.getLength()-1,r=n?e-1:e,s=n?this.getLine(r).length:0,o=i?t+1:t,c=i?0:this.getLine(o).length,l=new a(r,s,o,c),u=this.$lines.slice(e,t+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),u},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),n=t?this.insert(e.start,t):e.start,n);var n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),r(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,i=n.length,r=e.start.row,s=e.start.column,a=0,o=0;do{a=o,o+=t-1;var c=n.slice(a,o);if(o>i){e.lines=c,e.start.row=r+a,e.start.column=s;break}c.push(""),this.applyDelta({start:this.pos(r+a,s),end:this.pos(r+o,s=0),action:e.action,lines:c},!0)}while(1)},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,r=t||0,s=n.length;r<s;r++)if(e-=n[r].length+i,e<0)return{row:r,column:e+n[r].length+i};return{row:s-1,column:n[s-1].length}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,r=0,s=Math.min(e.row,n.length),a=t||0;a<s;++a)r+=n[a].length+i;return r+e.column}}).call(c.prototype),t.Document=c})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){var e=new Date,t=n.currentLine,i=-1,r=n.doc,s=t;while(n.lines[t])t++;var a=r.getLength(),o=0;n.running=!1;while(t<a){n.$tokenizeRow(t),i=t;do{t++}while(n.lines[t]);if(o++,o%5===0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==i&&(i=t),s<=i&&n.fireUpdateEvent(s,i)}}};(function(){i.implement(this,r),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],i=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!==i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens}}).call(s.prototype),t.BackgroundTokenizer=s})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),r=(e("./lib/oop"),e("./range").Range),s=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,s){if(this.regExp)for(var a=s.firstRow,o=s.lastRow,c=a;c<=o;c++){var l=this.cache[c];null==l&&(l=i.getMatchOffsets(n.getLine(c),this.regExp),l.length>this.MAX_RANGES&&(l=l.slice(0,this.MAX_RANGES)),l=l.map((function(e){return new r(c,e.offset,c,e.offset+e.length)})),this.cache[c]=l.length?l:"");for(var u=l.length;u--;)t.drawSingleLineMarker(e,l[u].toScreenRange(n),this.clazz,s)}}}).call(s.prototype),t.SearchHighlight=s})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range;function r(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,r,s,a=0,o=this.folds,c=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<o.length;l++){if(i=o[l],r=i.range.compareStart(t,n),-1==r)return void e(null,t,n,a,c);if(s=e(null,i.start.row,i.start.column,a,c),s=!s&&e(i.placeholder,i.start.row,i.start.column,a),s||0===r)return;c=!i.sameRow,a=i.end.column}e(null,t,n,a,c)},this.getNextFoldTo=function(e,t){for(var n,i,r=0;r<this.folds.length;r++){if(n=this.folds[r],i=n.range.compareEnd(e,t),-1==i)return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var i,r,s=this.getNextFoldTo(e,t);if(s)if(i=s.fold,"inside"==s.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){r=this.folds;var a=r.indexOf(i);for(0===a&&(this.start.column+=n),a;a<r.length;a++){if(i=r[a],i.start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var i=n.fold,s=this.folds,a=this.foldData,o=s.indexOf(i),c=s[o-1];this.end.row=c.end.row,this.end.column=c.end.column,s=s.splice(o,s.length-o);var l=new r(a,s);return a.splice(a.indexOf(this)+1,0,l),l},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if(e-=i.start.column-t,e<0)return{row:i.start.row,column:i.start.column+e};if(e-=i.placeholder.length,e<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(r.prototype),t.FoldLine=r})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("./range").Range,r=i.comparePoints,s=function(){this.ranges=[]};(function(){this.comparePoints=r,this.pointIndex=function(e,t,n){for(var i=this.ranges,s=n||0;s<i.length;s++){var a=i[s],o=r(e,a.end);if(!(o>0)){var c=r(e,a.start);return 0===o?t&&0!==c?-s-2:s:c>0||0===c&&!t?s:-s-1}}return-s-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){var e=[],t=this.ranges;t=t.sort((function(e,t){return r(e.start,t.start)}));for(var n,i=t[0],s=1;s<t.length;s++){n=i,i=t[s];var a=r(n.end,i.start);a<0||(0!=a||n.isEmpty()||i.isEmpty())&&(r(n.end,i.end)<0&&(n.end.row=i.end.row,n.end.column=i.end.column),t.splice(s,1),e.push(i),i=n,s--)}return this.ranges=t,e},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var r=this.pointIndex({row:t,column:0},i);r<0&&(r=-r-1);for(var s=[],a=i;a<r;a++)s.push(n[a]);return s},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){if("insert"==e.action)var t=e.start,n=e.end;else n=e.start,t=e.end;for(var i=t.row,r=n.row,s=r-i,a=-t.column+n.column,o=this.ranges,c=0,l=o.length;c<l;c++){var u=o[c];if(!(u.end.row<i)){if(u.start.row>i)break;if(u.start.row==i&&u.start.column>=t.column&&(u.start.column==t.column&&this.$insertRight||(u.start.column+=a,u.start.row+=s)),u.end.row==i&&u.end.column>=t.column){if(u.end.column==t.column&&this.$insertRight)continue;u.end.column==t.column&&a>0&&c<l-1&&u.end.column>u.start.column&&u.end.column==o[c+1].start.column&&(u.end.column-=a),u.end.column+=a,u.end.row+=s}}}if(0!=s&&c<l)for(;c<l;c++){u=o[c];u.start.row+=s,u.end.row+=s}}}).call(s.prototype),t.RangeList=s})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";e("../range").Range;var i=e("../range_list").RangeList,r=e("../lib/oop"),s=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function a(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function o(e,t){a(e.start,t),a(e.end,t)}function c(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}function l(e,t){c(e.start,t),c(e.end,t)}r.inherits(s,i),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new s(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){if(!this.range.containsRange(e))throw new Error("A fold can't intersect already existing fold"+e.range+this.range);o(e,this.start);for(var t=e.start.row,n=e.start.column,i=0,r=-1;i<this.subFolds.length;i++)if(r=this.subFolds[i].range.compare(t,n),1!=r)break;var s=this.subFolds[i];if(0==r)return s.addSubFold(e);t=e.range.end.row,n=e.range.end.column;var a=i;for(r=-1;a<this.subFolds.length;a++)if(r=this.subFolds[a].range.compare(t,n),1!=r)break;this.subFolds[a];if(0==r)throw new Error("A fold can't intersect already existing fold"+e.range+this.range);this.subFolds.splice(i,a-i,e);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return l(e,this.start)}}.call(s.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var i=e("../range").Range,r=e("./fold_line").FoldLine,s=e("./fold").Fold,a=e("../token_iterator").TokenIterator;function o(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var r=i.folds,s=0;s<r.length;s++){var a=r[s];if(a.range.contains(e,t)){if(1==n&&a.range.isEnd(e,t))continue;if(-1==n&&a.range.isStart(e,t))continue;return a}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,r=[];t.column+=1,n.column-=1;for(var s=0;s<i.length;s++){var a=i[s].range.compareRange(e);if(2!=a){if(-2==a)break;for(var o=i[s].folds,c=0;c<o.length;c++){var l=o[c];if(a=l.range.compareRange(e),-2==a)break;if(2!=a){if(42==a)break;r.push(l)}}}}return t.column-=1,n.column+=1,r},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(i=i||this.getFoldLine(e),!i)return null;for(var r,s,a={end:{column:0}},o=0;o<i.folds.length;o++){s=i.folds[o];var c=s.range.compareEnd(e,t);if(-1==c){r=this.getLine(s.start.row).substring(a.end.column,s.start.column);break}if(0===c)return null;a=s}return r||(r=this.getLine(s.start.row).substring(a.end.column)),-1==n?r.substring(0,t-a.end.column):1==n?r.substring(t-a.end.column):r},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0),i;i<n.length;i++){var r=n[i];if(r.start.row<=e&&r.end.row>=e)return r;if(r.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0),i;i<n.length;i++){var r=n[i];if(r.end.row>=e)return r}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,r=0;r<n.length;r++){var s=n[r],a=s.end.row,o=s.start.row;if(a>=t){o<t&&(o>=e?i-=t-o:i=0);break}a>=e&&(i-=o>=e?a-o:a-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,i=this.$foldData,a=!1;e instanceof s?n=e:(n=new s(t,e),n.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(n.range);var o=n.start.row,c=n.start.column,l=n.end.row,u=n.end.column;if(!(o<l||o==l&&c<=u-2))throw new Error("The range has to be at least 2 characters width");var d=this.getFoldAt(o,c,1),h=this.getFoldAt(l,u,-1);if(d&&h==d)return d.addSubFold(n);d&&!d.range.isStart(o,c)&&this.removeFold(d),h&&!h.range.isEnd(l,u)&&this.removeFold(h);var f=this.getFoldsInRange(n.range);f.length>0&&(this.removeFolds(f),f.forEach((function(e){n.addSubFold(e)})));for(var p=0;p<i.length;p++){var g=i[p];if(l==g.start.row){g.addFold(n),a=!0;break}if(o==g.end.row){if(g.addFold(n),a=!0,!n.sameRow){var m=i[p+1];if(m&&m.start.row==l){g.merge(m);break}}break}if(l<=g.start.row)break}return a||(g=this.$addFoldLine(new r(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,r=this.$foldData,s=t.folds;if(1==s.length)r.splice(r.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))s.pop(),t.end.row=s[s.length-1].end.row,t.end.column=s[s.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))s.shift(),t.start.row=s[0].start.row,t.start.column=s[0].start.column;else if(e.sameRow)s.splice(s.indexOf(e),1);else{var a=t.split(e.start.row,e.start.column);s=a.folds,s.shift(),a.start.row=s[0].start.row,a.start.column=s[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,r;if(null==e?(n=new i(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new i(e,0,e,this.getLine(e).length):"row"in e?i.fromPoints(e,e):e,r=this.getFoldsInRangeList(n),t)this.removeFolds(r);else{var s=r;while(s.length)this.expandFolds(s),s=this.getFoldsInRangeList(n)}if(r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,i,r){null==i&&(i=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var s=this.doc,a="";return e.walk((function(e,t,n,o){if(!(t<i)){if(t==i){if(n<r)return;o=Math.max(r,o)}a+=null!=e?e:s.getLine(t).substring(o,n)}}),t,n),a},this.getDisplayLine=function(e,t,n,i){var r,s=this.getFoldLine(e);return s?this.getFoldDisplayLine(s,e,t,n,i):(r=this.doc.getLine(e),r.substring(i||0,t||r.length))},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new r(e,n)})),e},this.toggleFold=function(e){var t,n,i=this.selection,r=i.getRange();if(r.isEmpty()){var s=r.start;if(t=this.getFoldAt(s.row,s.column),t)return void this.expandFold(t);(n=this.findMatchingBracket(s))?1==r.comparePoint(n)?r.end=n:(r.start=n,r.start.column++,r.end.column--):(n=this.findMatchingBracket({row:s.row,column:s.column+1}))?(1==r.comparePoint(n)?r.end=n:r.start=n,r.start.column++):r=this.getCommentFoldRange(s.row,s.column)||r}else{var a=this.getFoldsInRange(r);if(e&&a.length)return void this.expandFolds(a);1==a.length&&(t=a[0])}if(t||(t=this.getFoldAt(r.start.row,r.start.column)),t&&t.range.toString()==r.toString())this.expandFold(t);else{var o="...";if(!r.isMultiLine()){if(o=this.getTextRange(r),o.length<4)return;o=o.trim().substring(0,2)+".."}this.addFold(o,r)}},this.getCommentFoldRange=function(e,t,n){var r=new a(this,e,t),s=r.getCurrentToken(),o=s.type;if(s&&/^comment|string/.test(o)){o=o.match(/comment|string/)[0],"comment"==o&&(o+="|doc-start");var c=new RegExp(o),l=new i;if(1!=n){do{s=r.stepBackward()}while(s&&c.test(s.type));r.stepForward()}if(l.start.row=r.getCurrentTokenRow(),l.start.column=r.getCurrentTokenColumn()+2,r=new a(this,e,t),-1!=n){var u=-1;do{if(s=r.stepForward(),-1==u){var d=this.getState(r.$row);c.test(d)||(u=r.$row)}else if(r.$row>u)break}while(s&&c.test(s.type));s=r.stepBackward()}else s=r.getCurrentToken();return l.end.row=r.getCurrentTokenRow(),l.end.column=r.getCurrentTokenColumn()+s.value.length-2,l}},this.foldAll=function(e,t,n){void 0==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength(),e=e||0;for(var r=e;r<t;r++)if(null==i[r]&&(i[r]=this.getFoldWidget(r)),"start"==i[r]){var s=this.getFoldWidgetRange(r);if(s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e){r=s.end.row;try{var a=this.addFold("...",s);a&&(a.collapseChildren=n)}catch(o){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};var i,r=e-1;while(r>=0){var s=n[r];if(null==s&&(s=n[r]=this.getFoldWidget(r)),"start"==s){var a=this.getFoldWidgetRange(r);if(i||(i=a),a&&a.end.row>=e)break}r--}return{range:-1!==r&&a,firstRange:i}},this.onFoldWidgetClick=function(e,t){t=t.domEvent;var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey},i=this.$toggleFoldWidget(e,n);if(!i){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),r="end"===n?-1:1,s=this.getFoldAt(e,-1===r?0:i.length,r);if(s)return t.children||t.all?this.removeFold(s):this.expandFold(s),s;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(s=this.getFoldAt(a.start.row,a.start.column,1),s&&a.isEqual(s.range)))return this.removeFold(s),s;if(t.siblings){var o=this.getParentFoldRangeData(e);if(o.range)var c=o.range.start.row+1,l=o.range.end.row;this.foldAll(c,l,t.all?1e4:0)}else t.children?(l=a?a.end.row:this.getLength(),this.foldAll(e+1,l,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var i=this.getParentFoldRangeData(t,!0);if(n=i.range||i.firstRange,n){t=n.start.row;var r=this.getFoldAt(t,this.getLine(t).length,1);r?this.removeFold(r):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}t.Folding=o})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../token_iterator").TokenIterator,r=e("../range").Range;function s(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,s=n.charAt(e.column-1),a=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(a||(s=n.charAt(e.column),e={row:e.row,column:e.column+1},a=s&&s.match(/([\(\[\{])|([\)\]\}])/),i=!1),!a)return null;if(a[1]){var o=this.$findClosingBracket(a[1],e);if(!o)return null;t=r.fromPoints(e,o),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{o=this.$findOpeningBracket(a[2],e);if(!o)return null;t=r.fromPoints(o,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,n){var r=this.$brackets[e],s=1,a=new i(this,t.row,t.column),o=a.getCurrentToken();if(o||(o=a.stepForward()),o){n||(n=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));var c=t.column-a.getCurrentTokenColumn()-2,l=o.value;while(1){while(c>=0){var u=l.charAt(c);if(u==r){if(s-=1,0==s)return{row:a.getCurrentTokenRow(),column:c+a.getCurrentTokenColumn()}}else u==e&&(s+=1);c-=1}do{o=a.stepBackward()}while(o&&!n.test(o.type));if(null==o)break;l=o.value,c=l.length-1}return null}},this.$findClosingBracket=function(e,t,n){var r=this.$brackets[e],s=1,a=new i(this,t.row,t.column),o=a.getCurrentToken();if(o||(o=a.stepForward()),o){n||(n=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));var c=t.column-a.getCurrentTokenColumn();while(1){var l=o.value,u=l.length;while(c<u){var d=l.charAt(c);if(d==r){if(s-=1,0==s)return{row:a.getCurrentTokenRow(),column:c+a.getCurrentTokenColumn()}}else d==e&&(s+=1);c+=1}do{o=a.stepForward()}while(o&&!n.test(o.type));if(null==o)break;c=0}return null}}}t.BracketMatch=s})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/lang"),s=e("./bidihandler").BidiHandler,a=e("./config"),o=e("./lib/event_emitter").EventEmitter,c=e("./selection").Selection,l=e("./mode/text").Mode,u=e("./range").Range,d=e("./document").Document,h=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,p=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++p.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new d(e)),this.$bidiHandler=new s(this),this.setDocument(e),this.selection=new c(this),a.resetOptions(this),this.setMode(t),a._signal("session",this)};p.$uid=0,function(){i.implement(this,o),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){var n=0,i=e.length-1;while(n<=i){var r=n+i>>1,s=e[r];if(t>s)n=r+1;else{if(!(t<s))return r;i=r-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);this.$fromUndo||!this.$undoManager||e.ignore||(this.$deltasDoc.push(e),t&&0!=t.length&&this.$deltasFold.push({action:"removeFolds",folds:t}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,i=this.bgTokenizer.getTokens(e),r=0;if(null==t){var s=i.length-1;r=this.getLine(e).length}else for(s=0;s<i.length;s++)if(r+=i[s].value.length,r>=t)break;return n=i[s],n?(n.index=s,n.start=r-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),t.$deltas.length>0&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,i){var r=this.$markerId++,s={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:r};return i?(this.$frontMarkers[r]=s,this._signal("changeFrontMarker")):(this.$backMarkers[r]=s,this._signal("changeBackMarker")),r},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;t&&(delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new f(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,i){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var r=new u(e,0,t,1/0);return r.id=this.addMarker(r,n,"fullLine",i),r},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),i=!1;if(t>0&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var r=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))r=/\s/;else r=this.nonTokenRe;var s=t;if(s>0){do{s--}while(s>=0&&n.charAt(s).match(r));s++}var a=t;while(a<n.length&&n.charAt(a).match(r))a++;return new u(e,s,e,a)},this.getAWordRange=function(e,t){var n=this.getWordRange(e,t),i=this.getLine(n.end.row);while(i.charAt(n.end.column).match(/[ \t]/))n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"===typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,a.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[i]=e,e.$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var n=e.getTokenizer();if(void 0!==n.addEventListener){var i=this.onReloadTokenizer.bind(this);n.addEventListener("update",i)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=new h(n);var r=this;this.bgTokenizer.addEventListener("update",(function(e){r._signal("tokenizerUpdate",e)}))}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){a.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,r=0,s=this.$foldData[r],a=s?s.start.row:1/0,o=t.length,c=0;c<o;c++){if(c>a){if(c=s.end.row+1,c>=o)break;s=this.$foldData[r++],a=s?s.start.row:1/0}null==n[c]&&(n[c]=this.$getStringScreenWidth(t[c])[0]),n[c]>i&&(i=n[c])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,i=e.length-1;-1!=i;i--){var r=e[i];"doc"==r.group?(this.doc.revertDeltas(r.deltas),n=this.$getUndoSelection(r.deltas,!0,n)):r.deltas.forEach((function(e){this.addFolds(e.folds)}),this)}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,i=0;i<e.length;i++){var r=e[i];"doc"==r.group&&(this.doc.applyDeltas(r.deltas),n=this.$getUndoSelection(r.deltas,!1,n))}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,n){function i(e){return t?"insert"!==e.action:"insert"===e.action}var r,s,a=e[0];i(a)?r=u.fromPoints(a.start,a.end):r=u.fromPoints(a.start,a.start);for(var o=1;o<e.length;o++)a=e[o],i(a)?(s=a.start,-1==r.compare(s.row,s.column)&&r.setStart(s),s=a.end,1==r.compare(s.row,s.column)&&r.setEnd(s),!0):(s=a.start,-1==r.compare(s.row,s.column)&&(r=u.fromPoints(a.start,a.start)),!1);if(null!=n){0===u.comparePoints(n.start,r.start)&&(n.start.column+=r.end.column-r.start.column,n.end.column+=r.end.column-r.start.column);var c=n.compareRange(r);1==c?r.setStart(n.start):-1==c&&r.setEnd(n.end)}return r},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var i=this.getTextRange(e),r=this.getFoldsInRange(e),s=u.fromPoints(t,t);if(!n){this.remove(e);var a=e.start.row-e.end.row,o=a?-e.end.column:e.start.column-e.end.column;o&&(s.start.row==e.end.row&&s.start.column>e.end.column&&(s.start.column+=o),s.end.row==e.end.row&&s.end.column>e.end.column&&(s.end.column+=o)),a&&s.start.row>=e.end.row&&(s.start.row+=a,s.end.row+=a)}if(s.end=this.insert(s.start,i),r.length){var c=e.start,l=s.start;a=l.row-c.row,o=l.column-c.column;this.addFolds(r.map((function(e){return e=e.clone(),e.start.row==c.row&&(e.start.column+=o),e.end.row==c.row&&(e.end.column+=o),e.start.row+=a,e.end.row+=a,e})))}return s},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),i=this.getTabSize(),r=t.start.row;r<=t.end.row;++r){var s=this.getLine(r);n.start.row=r,n.end.row=r;for(var a=0;a<i;++a)if(" "!=s.charAt(a))break;a<i&&"\t"==s.charAt(a)?(n.start.column=a,n.end.column=a+1):(n.start.column=0,n.end.column=a),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){var i=this.getRowFoldStart(e+n);if(i<0)return 0;var r=i-e}else if(n>0){i=this.getRowFoldEnd(t+n);if(i>this.doc.getLength()-1)return 0;r=i-t}else{e=this.$clipRowToDocument(e),t=this.$clipRowToDocument(t);r=t-e+1}var s=new u(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(s).map((function(e){return e=e.clone(),e.start.row+=r,e.end.row+=r,e})),o=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,o),a.length&&this.addFolds(a),r},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&i>1&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,r=e.end,s=i.row,a=r.row,o=a-s,c=null;if(this.$updating=!0,0!=o)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(s,o);var l=this.$foldData;c=this.getFoldsInRange(e),this.removeFolds(c);var u=this.getFoldLine(r.row),d=0;if(u){u.addRemoveChars(r.row,r.column,i.column-r.column),u.shiftRow(-o);var h=this.getFoldLine(s);h&&h!==u&&(h.merge(u),u=h),d=l.indexOf(u)+1}for(d;d<l.length;d++){u=l[d];u.start.row>=r.row&&u.shiftRow(-o)}a=s}else{var f=Array(o);f.unshift(s,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,f);l=this.$foldData,u=this.getFoldLine(s),d=0;if(u){var g=u.range.compareInside(i.row,i.column);0==g?(u=u.split(i.row,i.column),u&&(u.shiftRow(o),u.addRemoveChars(a,0,r.column-i.column))):-1==g&&(u.addRemoveChars(s,0,r.column-i.column),u.shiftRow(o)),d=l.indexOf(u)+1}for(d;d<l.length;d++){u=l[d];u.start.row>=s&&u.shiftRow(o)}}else{o=Math.abs(e.start.column-e.end.column),"remove"===n&&(c=this.getFoldsInRange(e),this.removeFolds(c),o=-o);u=this.getFoldLine(s);u&&u.addRemoveChars(s,i.column,o)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(s,a):this.$updateRowLengthCache(s,a),c},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var i,r,a=this.doc.getAllLines(),o=this.getTabSize(),c=this.$wrapData,l=this.$wrapLimit,u=e;t=Math.min(t,a.length-1);while(u<=t)r=this.getFoldLine(u,r),r?(i=[],r.walk(function(e,t,r,o){var c;if(null!=e){c=this.$getDisplayTokens(e,i.length),c[0]=n;for(var l=1;l<c.length;l++)c[l]=s}else c=this.$getDisplayTokens(a[t].substring(o,r),i.length);i=i.concat(c)}.bind(this),r.end.row,a[r.end.row].length+1),c[r.start.row]=this.$computeWrapSplits(i,l,o),u=r.end.row+1):(i=this.$getDisplayTokens(a[u]),c[u]=this.$computeWrapSplits(i,l,o),u++)};var e=1,t=2,n=3,s=4,c=9,d=10,p=11,g=12;function m(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(e,i,r){if(0==e.length)return[];var a=[],o=e.length,l=0,u=0,h=this.$wrapAsCode,f=this.$indentedSoftWrap,m=i<=Math.max(2*r,8)||!1===f?0:Math.floor(i/2);function v(){var t=0;if(0===m)return t;if(f)for(var n=0;n<e.length;n++){var i=e[n];if(i==d)t+=1;else{if(i!=p){if(i==g)continue;break}t+=r}}return h&&!1!==f&&(t+=r),Math.min(t,m)}function b(t){var n=e.slice(l,t),i=n.length;n.join("").replace(/12/g,(function(){i-=1})).replace(/2/g,(function(){i-=1})),a.length||(y=v(),a.indent=y),u+=i,a.push(u),l=t}var y=0;while(o-l>i-y){var w=l+i-y;if(e[w-1]>=d&&e[w]>=d)b(w);else if(e[w]!=n&&e[w]!=s){var _=Math.max(w-(i-(i>>2)),l-1);while(w>_&&e[w]<n)w--;if(h){while(w>_&&e[w]<n)w--;while(w>_&&e[w]==c)w--}else while(w>_&&e[w]<d)w--;w>_?b(++w):(w=l+i,e[w]==t&&w--,b(w-y))}else{for(w;w!=l-1;w--)if(e[w]==n)break;if(w>l){b(w);continue}for(w=l+i,w;w<e.length;w++)if(e[w]!=s)break;if(w==e.length)break;b(w)}}return a},this.$getDisplayTokens=function(n,i){var r,s=[];i=i||0;for(var a=0;a<n.length;a++){var o=n.charCodeAt(a);if(9==o){r=this.getScreenTabSize(s.length+i),s.push(p);for(var l=1;l<r;l++)s.push(g)}else 32==o?s.push(d):o>39&&o<48||o>57&&o<64?s.push(c):o>=4352&&m(o)?s.push(e,t):s.push(e)}return s},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var i,r;for(null==t&&(t=1/0),n=n||0,r=0;r<e.length;r++)if(i=e.charCodeAt(r),9==i?n+=this.getScreenTabSize(n):i>=4352&&m(i)?n+=2:n+=1,n>t)break;return[n,r]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-e%this.$tabSize},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var i,r,s=0,a=0,o=0,c=0,l=this.$screenRowCache,u=this.$getRowCacheIndex(l,e),d=l.length;if(d&&u>=0){o=l[u],s=this.$docRowCache[u];var h=e>l[d-1]}else h=!d;var f=this.getLength()-1,p=this.getNextFoldLine(s),g=p?p.start.row:1/0;while(o<=e){if(c=this.getRowLength(s),o+c>e||s>=f)break;o+=c,s++,s>g&&(s=p.end.row+1,p=this.getNextFoldLine(s,p),g=p?p.start.row:1/0),h&&(this.$docRowCache.push(s),this.$screenRowCache.push(o))}if(p&&p.start.row<=s)i=this.getFoldDisplayLine(p),s=p.start.row;else{if(o+c<=e||s>f)return{row:f,column:this.getLine(f).length};i=this.getLine(s),p=null}var m=0,v=Math.floor(e-o);if(this.$useWrapMode){var b=this.$wrapData[s];b&&(r=b[v],v>0&&b.length&&(m=b.indent,a=b[v-1]||b[b.length-1],i=i.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(o+v,s,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(i,t-m)[1],this.$useWrapMode&&a>=r&&(a=r-1),p?p.idxToPosition(a):{row:s,column:a}},this.documentToScreenPosition=function(e,t){if("undefined"===typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i=0,r=null,s=null;s=this.getFoldAt(e,t,1),s&&(e=s.start.row,t=s.start.column);var a,o=0,c=this.$docRowCache,l=this.$getRowCacheIndex(c,e),u=c.length;if(u&&l>=0){o=c[l],i=this.$screenRowCache[l];var d=e>c[u-1]}else d=!u;var h=this.getNextFoldLine(o),f=h?h.start.row:1/0;while(o<e){if(o>=f){if(a=h.end.row+1,a>e)break;h=this.getNextFoldLine(a,h),f=h?h.start.row:1/0}else a=o+1;i+=this.getRowLength(o),o=a,d&&(this.$docRowCache.push(o),this.$screenRowCache.push(i))}var p="";h&&o>=f?(p=this.getFoldDisplayLine(h,e,t),r=h.start.row):(p=this.getLine(e).substring(0,t),r=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[r];if(m){var v=0;while(p.length>=m[v])i++,v++;p=p.substring(m[v-1]||0,p.length),g=v>0?m.indent:0}}return{row:i,column:g+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode){var n=this.$wrapData.length,i=0,r=(o=0,t=this.$foldData[o++],t?t.start.row:1/0);while(i<n){var s=this.$wrapData[i];e+=s?s.length+1:1,i++,i>r&&(i=t.end.row+1,t=this.$foldData[o++],r=t?t.start.row:1/0)}}else{e=this.getLength();for(var a=this.$foldData,o=0;o<a.length;o++)t=a[o],e-=t.end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,i){if(0===n)return[0,0];var r,s;for(n||(n=1/0),i=i||0,s=0;s<t.length;s++)if(r=t.charAt(s),i+="\t"===r?this.getScreenTabSize(i):e.getCharacterWidth(r),i>n)break;return[i,s]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=m}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),a.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){e="auto"==e?"text"!=this.$mode.type:"text"!=e,e!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var i=e("./lib/lang"),r=e("./lib/oop"),s=e("./range").Range,a=function(){this.$options={}};function o(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(function(){this.set=function(e){return r.mixin(this.$options,e),this},this.getOptions=function(){return i.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var i=null;return n.forEach((function(e,n,r,a){return i=new s(e,n,r,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&i.isEqual(t.start))||(i=null,!1)})),i},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,r=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],o=t.re;if(t.$isMultiLine){var c,l=o.length,u=r.length-l;e:for(var d=o.offset||0;d<=u;d++){for(var h=0;h<l;h++)if(-1==r[d+h].search(o[h]))continue e;var f=r[d],p=r[d+l-1],g=f.length-f.match(o[0])[0].length,m=p.match(o[l-1])[0].length;c&&c.end.row===d&&c.end.column>g||(a.push(c=new s(d,g,d+l-1,m)),l>2&&(d=d+l-2))}}else for(var v=0;v<r.length;v++){var b=i.getMatchOffsets(r[v],o);for(h=0;h<b.length;h++){var y=b[h];a.push(new s(v,y.offset,v,y.offset+y.length))}}if(n){var w=n.start.column,_=n.start.column;v=0,h=a.length-1;while(v<h&&a[v].start.column<w&&a[v].start.row==n.start.row)v++;while(v<h&&a[h].end.column>_&&a[h].end.row==n.end.row)h--;for(a=a.slice(v,h+1),v=0,h=a.length;v<h;v++)a[v].start.row+=n.start.row,a[v].end.row+=n.start.row}return a},this.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var r=i.exec(e);if(!r||r[0].length!=e.length)return null;if(t=e.replace(i,t),n.preserveCase){t=t.split("");for(var s=Math.min(e.length,e.length);s--;){var a=e[s];a&&a.toLowerCase()!=a?t[s]=t[s].toUpperCase():t[s]=t[s].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=i.escapeRegExp(n)),e.wholeWord&&(n=o(n,e));var r=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,r);try{var s=new RegExp(n,r)}catch(a){s=!1}return e.re=s},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],r=0;r<n.length;r++)try{i.push(new RegExp(n[r],t))}catch(s){return!1}return i},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var i=1==t.backwards,r=0!=t.skipCurrent,s=t.range,a=t.start;a||(a=s?s[i?"end":"start"]:e.selection.getRange()),a.start&&(a=a[r!=i?"end":"start"]);var o=s?s.start.row:0,c=s?s.end.row:e.getLength()-1;if(i)var l=function(e){var n=a.row;if(!d(n,a.column,e)){for(n--;n>=o;n--)if(d(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=c,o=a.row;n>=o;n--)if(d(n,Number.MAX_VALUE,e))return}};else l=function(e){var n=a.row;if(!d(n,a.column,e)){for(n+=1;n<=c;n++)if(d(n,0,e))return;if(0!=t.wrap)for(n=o,c=a.row;n<=c;n++)if(d(n,0,e))return}};if(t.$isMultiLine)var u=n.length,d=function(t,r,s){var a=i?t-u+1:t;if(!(a<0)){var o=e.getLine(a),c=o.search(n[0]);if(!(!i&&c<r||-1===c)){for(var l=1;l<u;l++)if(o=e.getLine(a+l),-1==o.search(n[l]))return;var d=o.match(n[u-1])[0].length;if(!(i&&d>r))return!!s(a,c,a+u-1,d)||void 0}}};else if(i)d=function(t,i,r){var s,a=e.getLine(t),o=[],c=0;n.lastIndex=0;while(s=n.exec(a)){var l=s[0].length;if(c=s.index,!l){if(c>=a.length)break;n.lastIndex=c+=1}if(s.index+l>i)break;o.push(s.index,l)}for(var u=o.length-1;u>=0;u-=2){var d=o[u-1];l=o[u];if(r(t,d,t,d+l))return!0}};else d=function(t,i,r){var s,a=e.getLine(t),o=i;n.lastIndex=i;while(s=n.exec(a)){var c=s[0].length;if(o=s.index,r(t,o,t,o+c))return!0;if(!c&&(n.lastIndex=o+=1,o>=a.length))return!1}};return{forEach:l}}}).call(a.prototype),t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/keys"),r=e("../lib/useragent"),s=i.KEY_MODS;function a(e,t){this.platform=t||(r.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function o(e,t){a.call(this,e,t),this.$singleCommand=!1}o.prototype=a.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"===typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var r in i){var s=i[r];if(s==e)delete i[r];else if(Array.isArray(s)){var a=s.indexOf(e);-1!=a&&(s.splice(a,1),1==s.length&&(i[r]=s[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(void 0==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var i="";if(-1!=e.indexOf(" ")){var r=e.split(/\s+/);e=r.pop(),r.forEach((function(e){var t=this.parseKeys(e),n=s[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")}),this),i+=" "}var a=this.parseKeys(e),o=s[a.hashId]+a.key;this._addCommandToBinding(i+o,t,n)}),this)},this._addCommandToBinding=function(t,n,i){var r,s=this.commandKeyBinding;if(n)if(!s[t]||this.$singleCommand)s[t]=n;else{Array.isArray(s[t])?-1!=(r=s[t].indexOf(n))&&s[t].splice(r,1):s[t]=[s[t]],"number"!=typeof i&&(i=e(n));var a=s[t];for(r=0;r<a.length;r++){var o=a[r],c=e(o);if(c>i)break}a.splice(r,0,n)}else delete s[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"===typeof n)return this.bindKey(n,t);"function"===typeof n&&(n={exec:n}),"object"===typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),r=i[n];if(i.FUNCTION_KEYS[r])n=i.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var s=0,a=t.length;a--;){var o=i.KEY_MODS[t[a]];if(null==o)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;s|=o}return{key:n,hashId:s}},this.findKeyCommand=function(e,t){var n=s[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var r=s[t]+n,a=this.commandKeyBinding[r];return e.$keyChain&&(e.$keyChain+=" "+r,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||i>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-r.length-1)),{command:a}):(e.$keyChain=e.$keyChain||r,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=o})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../keyboard/hash_handler").MultiHashHandler,s=e("../lib/event_emitter").EventEmitter,a=function(e,t){r.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};i.inherits(a,r),function(){i.implement(this,s),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"===typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(e.isAvailable&&!e.isAvailable(t))return!1;var r={editor:t,command:e,args:n};return r.returnValue=this._emit("exec",r),this._signal("afterExec",r),!1!==r.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(a.prototype),t.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var i=e("../lib/lang"),r=e("../config"),s=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){r.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(e){r.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){r.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:a("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){r.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:a("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:a("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){r.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(i.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),r=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,o=e.session.doc.getTextRange(e.selection.getRange()),c=o.replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),u=n.row+1;u<=r.row+1;u++){var d=i.stringTrimLeft(i.stringTrimRight(e.session.doc.getLine(u)));0!==d.length&&(d=" "+d),l+=d}r.row+1<e.session.doc.getLength()-1&&(l+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new s(n.row,0,r.row+2,0),l),c>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+c)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,r=[];i.length<1&&(i=[e.selection.getRange()]);for(var a=0;a<i.length;a++)a==i.length-1&&(i[a].end.row===t&&i[a].end.column===n||r.push(new s(i[a].end.row,i[a].end.column,t,n))),0===a?0===i[a].start.row&&0===i[a].start.column||r.push(new s(0,0,i[a].start.row,i[a].start.column)):r.push(new s(i[a-1].end.row,i[a-1].end.column,i[a].start.row,i[a].start.column));e.exitMultiSelectMode(),e.clearSelection();for(a=0;a<r.length;a++)e.selection.addRange(r[a],!1)},readOnly:!0,scrollIntoView:"none"}]})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/oop"),r=e("./lib/dom"),s=e("./lib/lang"),a=e("./lib/useragent"),o=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,l=e("./mouse/fold_handler").FoldHandler,u=e("./keyboard/keybinding").KeyBinding,d=e("./edit_session").EditSession,h=e("./search").Search,f=e("./range").Range,p=e("./lib/event_emitter").EventEmitter,g=e("./commands/command_manager").CommandManager,m=e("./commands/default_commands").commands,v=e("./config"),b=e("./token_iterator").TokenIterator,y=function(e,t){var n=e.getContainerElement();this.container=n,this.renderer=e,this.id="editor"+ ++y.$uid,this.commands=new g(a.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new o(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new l(this)),this.keyBinding=new u(this),this.$blockScrolling=0,this.$search=(new h).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||new d("")),v.resetOptions(this),v._signal("editor",this)};y.$uid=0,function(){i.implement(this,p),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var t=this.curOp.command;t.name&&this.$blockScrolling>0&&this.$blockScrolling--;var n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),r=this.renderer.layerConfig;(i.start.row>=r.lastRow||i.end.row<=r.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var r=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"===typeof e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(i){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(i&&i.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var i=new f(n.row,n.column,n.row,n.column+1);else if(t.$mode.getMatching)i=t.$mode.getMatching(e.session);i&&(t.$bracketHighlight=t.addMarker(i,"ace_bracket","text"))}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),i=new b(e.session,n.row,n.column),r=i.getCurrentToken();if(!r||!/\b(?:tag-open|tag-name)/.test(r.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==r.type.indexOf("tag-open")||(r=i.stepForward(),r)){var s=r.value,a=0,o=i.stepBackward();if("<"==o.value)do{o=r,r=i.stepForward(),r&&r.value===s&&-1!==r.type.indexOf("tag-name")&&("<"===o.value?a++:"</"===o.value&&a--)}while(r&&a>=0);else{do{r=o,o=i.stepBackward(),r&&r.value===s&&-1!==r.type.indexOf("tag-name")&&("<"===o.value?a++:"</"===o.value&&a--)}while(o&&a<=0);i.stepForward()}if(!r)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);var c=i.getCurrentTokenRow(),l=i.getCurrentTokenColumn(),u=new f(c,l,c,l+r.value.length),d=t.$backMarkers[t.$tagHighlight];t.$tagHighlight&&void 0!=d&&0!==u.compareRange(d.range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),u&&!t.$tagHighlight&&(t.$tagHighlight=t.addMarker(u,"ace_bracket","text"))}}}),50)}},this.focus=function(){var e=this;setTimeout((function(){e.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(v.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new f(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),i=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",i)}var r=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(r),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column-1,i=t.end.column+1,r=e.getLine(t.start.row),s=r.length,a=r.substring(Math.max(n,0),Math.min(i,s));if(!(n>=0&&/^[\w\d]/.test(a)||i<=s&&/[\w\d]$/.test(a))&&(a=r.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(a))){var o=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:a});return o}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var n=t.split(/\r\n|\r|\n/),i=this.selection.rangeList.ranges;if(n.length>i.length||n.length<2||!n[1])return this.commands.exec("insertstring",this,t);for(var r=i.length;r--;){var s=i[r];s.isEmpty()||this.session.remove(s),this.session.insert(s.start,n[r])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,i=n.getMode(),r=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var s=i.transformAction(n.getState(r.row),"insertion",this,n,e);s&&(e!==s.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=s.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){a=new f.fromPoints(r,r);a.end.column+=e.length,this.session.remove(a)}}else{var a=this.getSelectionRange();r=this.session.remove(a),this.clearSelection()}if("\n"==e||"\r\n"==e){var o=n.getLine(r.row);if(r.column>o.search(/\S|$/)){var c=o.substr(r.column).search(/\S|$/);n.doc.removeInLine(r.row,r.column,r.column+c)}}this.clearSelection();var l=r.column,u=n.getState(r.row),d=(o=n.getLine(r.row),i.checkOutdent(u,o,e));n.insert(r,e);if(s&&s.selection&&(2==s.selection.length?this.selection.setSelectionRange(new f(r.row,l+s.selection[0],r.row,l+s.selection[1])):this.selection.setSelectionRange(new f(r.row+s.selection[0],s.selection[1],r.row+s.selection[2],s.selection[3]))),n.getDocument().isNewLine(e)){var h=i.getNextLineIndent(u,o.slice(0,r.column),n.getTabString());n.insert({row:r.row+1,column:0},h)}d&&i.autoOutdent(u,n,r.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),r=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var s=n.getTextRange(t);if("\n"==s[s.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}r&&(t=r)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,r=this.session.getLine(e.row);t<r.length?(n=r.charAt(t)+r.charAt(t-1),i=new f(e.row,t-1,e.row,t+1)):(n=r.charAt(t-1)+r.charAt(t-2),i=new f(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){u=this.$getSelectedRows();return void e.indentRows(u.first,u.last,"\t")}}var i=e.getLine(t.start.row),r=t.start,a=e.getTabSize(),o=e.documentToScreenColumn(r.row,r.column);if(this.session.getUseSoftTabs())var c=a-o%a,l=s.stringRepeat(" ",c);else{c=o%a;while(" "==i[t.start.column-1]&&c)t.start.column--,c--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}var u=this.$getSelectedRows();e.indentRows(u.first,u.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var r=new f(0,0,0,0);for(i=e.first;i<=e.last;i++){var s=t.getLine(i);r.start.row=i,r.end.row=i,r.end.column=s.length,t.replace(r,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var i=this.session.getLine(e);while(n.lastIndex<t){var r=n.exec(i);if(r.index<=t&&r.index+r[0].length>=t){var s={value:r[0],start:r.index,end:r.index+r[0].length};return s}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new f(t,n-1,t,n),r=this.session.getTextRange(i);if(!isNaN(parseFloat(r))&&isFinite(r)){var s=this.getNumberAt(t,n);if(s){var a=s.value.indexOf(".")>=0?s.start+s.value.indexOf(".")+1:s.end,o=s.start+s.value.length-a,c=parseFloat(s.value);c*=Math.pow(10,o),a!==s.end&&n<a?e*=Math.pow(10,s.end-n-1):e*=Math.pow(10,s.end-n),c+=e,c/=Math.pow(10,o);var l=c.toFixed(o),u=new f(t,s.start,t,s.end);this.session.replace(u,l),this.moveCursorTo(t,Math.max(s.start+1,n+l.length-s.value.length))}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),i=e.isBackwards();if(n.isEmpty()){var r=n.start.row;t.duplicateLines(r,r)}else{var s=i?n.start:n.end,a=t.insert(s,t.getTextRange(n),!1);n.start=s,n.end=a,e.setSelectionRange(n,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,i,r=this.selection;if(!r.inMultiSelectMode||this.inVirtualSelectionMode){var s=r.toOrientedRange();n=this.$getSelectedRows(s),i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),s.moveBy(i,0),r.fromOrientedRange(s)}else{var a=r.rangeList.ranges;r.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var o=0,c=0,l=a.length,u=0;u<l;u++){var d=u;a[u].moveBy(o,0),n=this.$getSelectedRows(a[u]);var h=n.first,f=n.last;while(++u<l){c&&a[u].moveBy(c,0);var p=this.$getSelectedRows(a[u]);if(t&&p.first!=f)break;if(!t&&p.first>f+1)break;f=p.last}u--,o=this.session.$moveLines(h,f,t?0:e),t&&-1==e&&(d=u+1);while(d<=u)a[d].moveBy(o,0),d++;t||(o=0),c+=o}r.fromOrientedRange(r.ranges[0]),r.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,r=e*Math.floor(i.height/i.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(r,0)})):!1===t&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection()),this.$blockScrolling--;var s=n.scrollTop;n.scrollBy(0,r*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(s)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new b(this.session,n.row,n.column),r=i.getCurrentToken(),s=r||i.stepForward();if(s){var a,o,c=!1,l={},u=n.column-s.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;u<s.value.length&&!c;u++)if(d[s.value[u]])switch(o=d[s.value[u]]+"."+s.type.replace("rparen","lparen"),isNaN(l[o])&&(l[o]=0),s.value[u]){case"(":case"[":case"{":l[o]++;break;case")":case"]":case"}":l[o]--,-1===l[o]&&(a="bracket",c=!0);break}}else s&&-1!==s.type.indexOf("tag-name")&&(isNaN(l[s.value])&&(l[s.value]=0),"<"===r.value?l[s.value]++:"</"===r.value&&l[s.value]--,-1===l[s.value]&&(a="tag",c=!0));c||(r=s,s=i.stepForward(),u=0)}while(s&&!c);if(a){var h,p;if("bracket"===a)h=this.session.getBracketRange(n),h||(h=new f(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1),p=h.start,(t||p.row===n.row&&Math.abs(p.column-n.column)<2)&&(h=this.session.getBracketRange(p)));else if("tag"===a){if(!s||-1===s.type.indexOf("tag-name"))return;var g=s.value;if(h=new f(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2),0===h.compare(n.row,n.column)){c=!1;do{s=r,r=i.stepBackward(),r&&(-1!==r.type.indexOf("tag-close")&&h.setEnd(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+1),s.value===g&&-1!==s.type.indexOf("tag-name")&&("<"===r.value?l[g]++:"</"===r.value&&l[g]--,0===l[g]&&(c=!0)))}while(r&&!c)}s&&s.type.indexOf("tag-name")&&(p=h.start,p.row==n.row&&Math.abs(p.column-n.column)<2&&(p=h.end))}p=h&&h.cursor||p,p&&(e?h&&t?this.selection.setRange(h):h&&h.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(p.row,p.column):this.selection.moveTo(p.row,p.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.$blockScrolling-=1,this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorLeft()}else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorRight()}else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n?(this.$tryReplace(n,e)&&(i=1),null!==n&&(this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),i):i},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;this.$blockScrolling+=1;var r=this.getSelectionRange();this.selection.moveTo(0,0);for(var s=n.length-1;s>=0;--s)this.$tryReplace(n[s],e)&&i++;return this.selection.setSelectionRange(r),this.$blockScrolling-=1,i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return t=this.$search.replace(n,t),null!==t?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&i.mixin(t,e);var r=this.selection.getRange();null==t.needle&&(e=this.session.getTextRange(r)||this.$search.$options.needle,e||(r=this.session.getWordRange(r.start.row,r.start.column),e=this.session.getTextRange(r)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:r});var s=this.$search.find(this.session);return t.preventScroll?s:s?(this.revealRange(s,n),s):(t.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var r=this.$scrollAnchor;r.style.cssText="position:absolute",this.container.insertBefore(r,this.container.firstChild);var s=this.on("changeSelection",(function(){i=!0})),a=this.renderer.on("beforeRender",(function(){i&&(t=n.renderer.container.getBoundingClientRect())})),o=this.renderer.on("afterRender",(function(){if(i&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,s=e.$cursorLayer.$pixelPos,a=e.layerConfig,o=s.top-a.offset;i=s.top>=0&&o+t.top<0||!(s.top<a.height&&s.top+t.top+a.lineHeight>window.innerHeight)&&null,null!=i&&(r.style.top=o+"px",r.style.left=s.left+"px",r.style.height=a.lineHeight+"px",r.scrollIntoView(i)),i=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",s),this.renderer.off("afterRender",o),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,r.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))}}.call(y.prototype),v.defineOptions(y.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=y})),ace.define("ace/undomanager",["require","exports","module"],(function(e,t,n){"use strict";var i=function(){this.reset()};(function(){function e(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function t(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function n(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++){for(var r=e[i],s={group:r.group,deltas:new Array(r.length)},a=0;a<r.deltas.length;a++){var o=r.deltas[a];s.deltas[a]=t(o)}n[i]=s}return n}this.execute=function(e){var t=e.args[0];this.$doc=e.args[1],e.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(e){var t=this.$undoStack.pop(),n=null;return t&&(n=this.$doc.undoChanges(t,e),this.$redoStack.push(t),this.dirtyCounter--),n},this.redo=function(e){var t=this.$redoStack.pop(),n=null;return t&&(n=this.$doc.redoChanges(this.$deserializeDeltas(t),e),this.$undoStack.push(t),this.dirtyCounter++),n},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(t){return n(t,e)},this.$deserializeDeltas=function(e){return n(e,t)}}).call(i.prototype),t.UndoManager=i})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/dom"),r=e("../lib/oop"),s=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){r.implement(this,a),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,r=this.$annotations[i];r||(r=this.$annotations[i]={text:[]});var a=n.text;a=a?s.escapeHTML(a):n.html||"",-1===r.text.indexOf(a)&&r.text.push(a);var o=n.type;"error"==o?r.className=" ace_error":"warning"==o&&" ace_error"!=r.className?r.className=" ace_warning":"info"!=o||r.className||(r.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var i=new Array(n+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(e){var t=this.session,n=e.firstRow,r=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),s=t.getNextFoldLine(n),a=s?s.start.row:1/0,o=this.$showFoldWidgets&&t.foldWidgets,c=t.$breakpoints,l=t.$decorations,u=t.$firstLineNumber,d=0,h=t.gutterRenderer||this.$renderer,f=null,p=-1,g=n;while(1){if(g>a&&(g=s.end.row+1,s=t.getNextFoldLine(g,s),a=s?s.start.row:1/0),g>r){while(this.$cells.length>p+1)f=this.$cells.pop(),this.element.removeChild(f.element);break}f=this.$cells[++p],f||(f={element:null,textNode:null,foldWidget:null},f.element=i.createElement("div"),f.textNode=document.createTextNode(""),f.element.appendChild(f.textNode),this.element.appendChild(f.element),this.$cells[p]=f);var m="ace_gutter-cell ";c[g]&&(m+=c[g]),l[g]&&(m+=l[g]),this.$annotations[g]&&(m+=this.$annotations[g].className),f.element.className!=m&&(f.element.className=m);var v=t.getRowLength(g)*e.lineHeight+"px";if(v!=f.element.style.height&&(f.element.style.height=v),o){var b=o[g];null==b&&(b=o[g]=t.getFoldWidget(g))}if(b){f.foldWidget||(f.foldWidget=i.createElement("span"),f.element.appendChild(f.foldWidget));m="ace_fold-widget ace_"+b;"start"==b&&g==a&&g<s.end.row?m+=" ace_closed":m+=" ace_open",f.foldWidget.className!=m&&(f.foldWidget.className=m);v=e.lineHeight+"px";f.foldWidget.style.height!=v&&(f.foldWidget.style.height=v)}else f.foldWidget&&(f.element.removeChild(f.foldWidget),f.foldWidget=null);var y=d=h?h.getText(t,g):g+u;y!==f.textNode.data&&(f.textNode.data=y),g++}this.element.style.height=e.minHeight+"px",(this.$fixedWidth||t.$useWrapMode)&&(d=t.getLength()+u);var w=h?h.getWidth(t,d,e):d.toString().length*e.characterWidth,_=this.$padding||this.$computePadding();w+=_.left+_.right,w===this.gutterWidth||isNaN(w)||(this.gutterWidth=w,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",w))},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?i.addCssClass(this.element,"ace_folding-enabled"):i.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=i.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(e.paddingLeft)+1||0,this.$padding.right=parseInt(e.paddingRight)||0,this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(o.prototype),t.Gutter=o})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../range").Range,r=e("../lib/dom"),s=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function e(e,t,n,i){return(e?1:0)|(t?2:0)|(n?4:0)|(i?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e){this.config=e;var t=[];for(var n in this.markers){var i=this.markers[n];if(i.range){var r=i.range.clipRows(e.firstRow,e.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),i.renderer){var s=this.$getTop(r.start.row,e),a=this.$padding+(this.session.$bidiHandler.isBidiRow(r.start.row)?this.session.$bidiHandler.getPosLeft(r.start.column):r.start.column*e.characterWidth);i.renderer(t,r,a,s,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,r,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,r,i.clazz,e):r.isMultiLine()?"text"==i.type?this.drawTextMarker(t,r,i.clazz,e):this.drawMultiLineMarker(t,r,i.clazz,e):this.session.$bidiHandler.isBidiRow(r.start.row)?this.drawBidiSingleLineMarker(t,r,i.clazz+" ace_start ace_br15",e):this.drawSingleLineMarker(t,r,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(t,n,r,s,a){for(var o=this.session,c=n.start.row,l=n.end.row,u=c,d=0,h=0,f=o.getScreenLastRowColumn(u),p=null,g=new i(u,n.start.column,u,h);u<=l;u++)g.start.row=g.end.row=u,g.start.column=u==c?n.start.column:o.getRowWrapIndent(u),g.end.column=f,d=h,h=f,f=u+1<l?o.getScreenLastRowColumn(u+1):u==l?0:n.end.column,p=r+(u==c?" ace_start":"")+" ace_br"+e(u==c||u==c+1&&n.start.column,d<h,h>f,u==l),this.session.$bidiHandler.isBidiRow(u)?this.drawBidiSingleLineMarker(t,g,p,s,u==l?0:1,a):this.drawSingleLineMarker(t,g,p,s,u==l?0:1,a)},this.drawMultiLineMarker=function(e,t,n,i,r){var s,a,o,c=this.$padding;if(r=r||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var l=t.clone();l.end.row=l.start.row,l.end.column=this.session.getLine(l.start.row).length,this.drawBidiSingleLineMarker(e,l,n+" ace_br1 ace_start",i,null,r)}else s=i.lineHeight,a=this.$getTop(t.start.row,i),o=c+t.start.column*i.characterWidth,e.push("<div class='",n," ace_br1 ace_start' style='","height:",s,"px;","right:0;","top:",a,"px;","left:",o,"px;",r,"'></div>");if(this.session.$bidiHandler.isBidiRow(t.end.row)){l=t.clone();l.start.row=l.end.row,l.start.column=0,this.drawBidiSingleLineMarker(e,l,n+" ace_br12",i,null,r)}else{var u=t.end.column*i.characterWidth;s=i.lineHeight,a=this.$getTop(t.end.row,i),e.push("<div class='",n," ace_br12' style='","height:",s,"px;","width:",u,"px;","top:",a,"px;","left:",c,"px;",r,"'></div>")}if(s=(t.end.row-t.start.row-1)*i.lineHeight,!(s<=0)){a=this.$getTop(t.start.row+1,i);var d=(t.start.column?1:0)|(t.end.column?0:8);e.push("<div class='",n,d?" ace_br"+d:"","' style='","height:",s,"px;","right:0;","top:",a,"px;","left:",c,"px;",r,"'></div>")}},this.drawSingleLineMarker=function(e,t,n,i,r,s){var a=i.lineHeight,o=(t.end.column+(r||0)-t.start.column)*i.characterWidth,c=this.$getTop(t.start.row,i),l=this.$padding+t.start.column*i.characterWidth;e.push("<div class='",n,"' style='","height:",a,"px;","width:",o,"px;","top:",c,"px;","left:",l,"px;",s||"","'></div>")},this.drawBidiSingleLineMarker=function(e,t,n,i,r,s){var a=i.lineHeight,o=this.$getTop(t.start.row,i),c=this.$padding,l=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);l.forEach((function(t){e.push("<div class='",n,"' style='","height:",a,"px;","width:",t.width+(r||0),"px;","top:",o,"px;","left:",c+t.left,"px;",s||"","'></div>")}))},this.drawFullLineMarker=function(e,t,n,i,r){var s=this.$getTop(t.start.row,i),a=i.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,i)-s),e.push("<div class='",n,"' style='","height:",a,"px;","top:",s,"px;","left:0;right:0;",r||"","'></div>")},this.drawScreenLineMarker=function(e,t,n,i,r){var s=this.$getTop(t.start.row,i),a=i.lineHeight;e.push("<div class='",n,"' style='","height:",a,"px;","top:",s,"px;","left:0;right:0;",r||"","'></div>")}}).call(s.prototype),t.Marker=s})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../lib/dom"),s=e("../lib/lang"),a=(e("../lib/useragent"),e("../lib/event_emitter").EventEmitter),o=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){i.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)this.showInvisibles?t.push("<span class='ace_invisible ace_invisible_tab'>"+s.stringRepeat(this.TAB_CHAR,n)+"</span>"):t.push(s.stringRepeat(" ",n));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var i="ace_indent-guide",r="",a="";if(this.showInvisibles){i+=" ace_invisible",r=" ace_invisible_space",a=" ace_invisible_tab";var o=s.stringRepeat(this.SPACE_CHAR,this.tabSize),c=s.stringRepeat(this.TAB_CHAR,this.tabSize)}else o=s.stringRepeat(" ",this.tabSize),c=o;this.$tabStrings[" "]="<span class='"+i+r+"'>"+o+"</span>",this.$tabStrings["\t"]="<span class='"+i+a+"'>"+c+"</span>"}},this.updateLines=function(e,t,n){this.config.lastRow==e.lastRow&&this.config.firstRow==e.firstRow||this.scrollLines(e),this.config=e;for(var i=Math.max(t,e.firstRow),r=Math.min(n,e.lastRow),s=this.element.childNodes,a=0,o=e.firstRow;o<i;o++){var c=this.session.getFoldLine(o);if(c){if(c.containsRow(i)){i=c.start.row;break}o=c.end.row}a++}o=i,c=this.session.getNextFoldLine(o);var l=c?c.start.row:1/0;while(1){if(o>l&&(o=c.end.row+1,c=this.session.getNextFoldLine(o,c),l=c?c.start.row:1/0),o>r)break;var u=s[a++];if(u){var d=[];this.$renderLine(d,o,!this.$useLineGroups(),o==l&&c),u.style.height=e.lineHeight*this.session.getRowLength(o)+"px",u.innerHTML=d.join("")}o++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);var n=this.element;if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)n.removeChild(n.firstChild);if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)n.removeChild(n.lastChild);if(e.firstRow<t.firstRow){var r=this.$renderLinesFragment(e,e.firstRow,t.firstRow-1);n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r)}if(e.lastRow>t.lastRow){r=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);n.appendChild(r)}},this.$renderLinesFragment=function(e,t,n){var i=this.element.ownerDocument.createDocumentFragment(),s=t,a=this.session.getNextFoldLine(s),o=a?a.start.row:1/0;while(1){if(s>o&&(s=a.end.row+1,a=this.session.getNextFoldLine(s,a),o=a?a.start.row:1/0),s>n)break;var c=r.createElement("div"),l=[];if(this.$renderLine(l,s,!1,s==o&&a),c.innerHTML=l.join(""),this.$useLineGroups())c.className="ace_line_group",i.appendChild(c),c.style.height=e.lineHeight*this.session.getRowLength(s)+"px";else while(c.firstChild)i.appendChild(c.firstChild);s++}return i},this.update=function(e){this.config=e;var t=[],n=e.firstRow,i=e.lastRow,r=n,s=this.session.getNextFoldLine(r),a=s?s.start.row:1/0;while(1){if(r>a&&(r=s.end.row+1,s=this.session.getNextFoldLine(r,s),a=s?s.start.row:1/0),r>i)break;this.$useLineGroups()&&t.push("<div class='ace_line_group' style='height:",e.lineHeight*this.session.getRowLength(r),"px'>"),this.$renderLine(t,r,!1,r==a&&s),this.$useLineGroups()&&t.push("</div>"),r++}this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){var r=this,a=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o=function(e,n,i,a,o){if(n)return r.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+s.stringRepeat(r.SPACE_CHAR,e.length)+"</span>":e;if("&"==e)return"&";if("<"==e)return"<";if(">"==e)return">";if("\t"==e){var c=r.session.getScreenTabSize(t+a);return t+=c-1,r.$tabStrings[c]}if(" "==e){var l=r.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",u=r.showInvisibles?r.SPACE_CHAR:"";return t+=1,"<span class='"+l+"' style='width:"+2*r.config.characterWidth+"px'>"+u+"</span>"}return i?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+r.SPACE_CHAR+"</span>":(t+=1,"<span class='ace_cjk' style='width:"+2*r.config.characterWidth+"px'>"+e+"</span>")},c=i.replace(a,o);if(this.$textToken[n.type])e.push(c);else{var l="ace_"+n.type.replace(/\./g," ace_"),u="";"fold"==n.type&&(u=" style='width:"+n.value.length*this.config.characterWidth+"px;' "),e.push("<span class='",l,"'",u,">",c,"</span>")}return t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);return i<=0||i>=n?t:" "==t[0]?(i-=i%this.tabSize,e.push(s.stringRepeat(this.$tabStrings[" "],i/this.tabSize)),t.substr(i)):"\t"==t[0]?(e.push(s.stringRepeat(this.$tabStrings["\t"],i)),t.substr(i)):t},this.$renderWrappedLine=function(e,t,n,i){for(var r=0,a=0,o=n[0],c=0,l=0;l<t.length;l++){var u=t[l],d=u.value;if(0==l&&this.displayIndentGuides){if(r=d.length,d=this.renderIndentGuide(e,d,o),!d)continue;r-=d.length}if(r+d.length<o)c=this.$renderToken(e,c,u,d),r+=d.length;else{while(r+d.length>=o)c=this.$renderToken(e,c,u,d.substring(0,o-r)),d=d.substring(o-r),r=o,i||e.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),e.push(s.stringRepeat(" ",n.indent)),a++,c=0,o=n[a]||Number.MAX_VALUE;0!=d.length&&(r+=d.length,c=this.$renderToken(e,c,u,d))}}},this.$renderSimpleLine=function(e,t){var n=0,i=t[0],r=i.value;this.displayIndentGuides&&(r=this.renderIndentGuide(e,r)),r&&(n=this.$renderToken(e,n,i,r));for(var s=1;s<t.length;s++)i=t[s],r=i.value,n=this.$renderToken(e,n,i,r)},this.$renderLine=function(e,t,n,i){if(i||0==i||(i=this.session.getFoldLine(t)),i)var r=this.$getFoldLineTokens(t,i);else r=this.session.getTokens(t);if(n||e.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(t)),"px'>"),r.length){var s=this.session.getRowSplitData(t);s&&s.length?this.$renderWrappedLine(e,r,s,n):this.$renderSimpleLine(e,r)}this.showInvisibles&&(i&&(t=i.end.row),e.push("<span class='ace_invisible ace_invisible_eol'>",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),n||e.push("</div>")},this.$getFoldLineTokens=function(e,t){var n=this.session,i=[];function r(e,t,n){var r=0,s=0;while(s+e[r].value.length<t)if(s+=e[r].value.length,r++,r==e.length)return;if(s!=t){var a=e[r].value.substring(t-s);a.length>n-t&&(a=a.substring(0,n-t)),i.push({type:e[r].type,value:a}),s=t+a.length,r+=1}while(s<n&&r<e.length){a=e[r].value;a.length+s>n?i.push({type:e[r].type,value:a.substring(0,n-s)}):i.push(e[r]),s+=a.length,r+=1}}var s=n.getTokens(e);return t.walk((function(e,t,a,o,c){null!=e?i.push({type:"fold",value:e}):(c&&(s=n.getTokens(t)),s.length&&r(s,o,a))}),t.end.row,this.session.getLine(t.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(o.prototype),t.Text=o})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var i,r=e("../lib/dom"),s=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===i&&(i=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(i?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||i||(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),i=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),r=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:i,top:r}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var r=t.length;n<r;n++){var s=this.getPixelPosition(t[n].cursor,!0);if(!((s.top>e.height+e.offset||s.top<0)&&n>1)){var a=(this.cursors[i++]||this.addCursor()).style;this.drawCursor?this.drawCursor(a,s,e,t[n],this.session):(a.left=s.left+"px",a.top=s.top+"px",a.width=e.characterWidth+"px",a.height=e.lineHeight+"px")}}while(this.cursors.length>i)this.removeCursor();var o=this.session.getOverwrite();this.$setOverwrite(o),this.$pixelPos=s,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(s.prototype),t.Cursor=s})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/dom"),s=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,o=32768,c=function(e){this.element=r.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=r.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)};(function(){i.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(c.prototype);var l=function(e,t){c.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=r.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};i.inherits(l,c),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>o?(this.coeff=o/e,e=o):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var u=function(e,t){c.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};i.inherits(u,c),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(u.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=u,t.VScrollBar=l,t.HScrollBar=u})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var i=e("./lib/event"),r=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;i.nextFrame((function(){var e;t.pending=!1;while(e=t.changes)t.changes=0,t.onRender(e)}),this.window)}}}).call(r.prototype),t.RenderLoop=r})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var i=e("../lib/oop"),r=e("../lib/dom"),s=e("../lib/lang"),a=e("../lib/useragent"),o=e("../lib/event_emitter").EventEmitter,c=0,l=t.FontMetrics=function(e){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),c||this.$testFractionalRect(),this.$measureNode.innerHTML=s.stringRepeat("X",c),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){i.implement(this,o),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=r.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;c=t>0&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval((function(){e.checkForSizeChanges()}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===c){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(n){e={width:0,height:0}}var t={height:e.height,width:e.width/c}}else t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){this.$main.innerHTML=s.stringRepeat(e,c);var t=this.$main.getBoundingClientRect();return t.width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(l.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/dom"),s=e("./config"),a=e("./lib/useragent"),o=e("./layer/gutter").Gutter,c=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,f=e("./renderloop").RenderLoop,p=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter,m='.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}';r.importCssString(m,"ace_editor.css");var v=function(e,t){var n=this;this.container=e||r.createElement("div"),this.$keepTextAreaAtCursor=!a.isOldIE,r.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new o(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content);var i=this.$textLayer=new l(this.content);this.canvas=i.element,this.$markerFront=new c(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,i.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var r=this.container;i||(i=r.clientHeight||r.scrollHeight),n||(n=r.clientWidth||r.scrollWidth);var s=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(s|this.$changes,!0):this.$loop.schedule(s|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var r=0,s=this.$size,a={width:s.width,height:s.height,scrollerHeight:s.scrollerHeight,scrollerWidth:s.scrollerWidth};return i&&(e||s.height!=i)&&(s.height=i,r|=this.CHANGE_SIZE,s.scrollerHeight=s.height,this.$horizScroll&&(s.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||s.width!=n)&&(r|=this.CHANGE_SIZE,s.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",s.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)),s.$dirty=!n||!i,r&&this._signal("resize",a),r},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var n=this.session.selection.getCursor();n.column=0,e=this.$cursorLayer.getPixelPosition(n,!0),t*=this.session.getRowLength(n.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=r.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,n=this.$cursorLayer.$pixelPos.left;t-=e.offset;var i=this.textarea.style,r=this.lineHeight;if(t<0||t>e.height-r)i.top=i.left="0";else{var s=this.characterWidth;if(this.$composition){var a=this.textarea.value.replace(/^\x01+/,"");s*=this.session.$getStringScreenWidth(a)[0]+2,r+=2}n-=this.scrollLeft,n>this.$size.scrollerWidth-s&&(n=this.$size.scrollerWidth-s),n+=this.gutterWidth,i.height=r+"px",i.width=s+"px",i.left=Math.min(n,this.$size.scrollerWidth-s)+"px",i.top=Math.min(t,this.$size.height-r)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var r=this.scrollMargin;r.top=0|e,r.bottom=0|t,r.right=0|i,r.left=0|n,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;i>0&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-n.offset+"px",this.content.style.marginTop=-n.offset+"px",this.content.style.width=n.width+2*this.$padding+"px",this.content.style.height=n.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength(),r=i*this.lineHeight,s=this.$getLongestLine(),a=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-s-2*this.$padding<0),o=this.$horizScroll!==a;o&&(this.$horizScroll=a,this.scrollBarH.setVisible(a));var c=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=this.scrollTop%this.lineHeight,u=t.scrollerHeight+this.lineHeight,d=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=d;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,r-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,s+2*this.$padding-t.scrollerWidth+h.right)));var f=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+d<0||this.scrollTop>h.top),p=c!==f;p&&(this.$vScroll=f,this.scrollBarV.setVisible(f));var g,m,v=Math.ceil(u/this.lineHeight)-1,b=Math.max(0,Math.round((this.scrollTop-l)/this.lineHeight)),y=b+v,w=this.lineHeight;b=e.screenToDocumentRow(b,0);var _=e.getFoldLine(b);_&&(b=_.start.row),g=e.documentToScreenRow(b,0),m=e.getRowLength(b)*w,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),u=t.scrollerHeight+e.getRowLength(y)*w+m,l=this.scrollTop-g*w;var x=0;return this.layerConfig.width!=s&&(x=this.CHANGE_H_SCROLL),(o||p)&&(x=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),p&&(s=this.$getLongestLine())),this.layerConfig={width:s,padding:this.$padding,firstRow:b,firstRowScreen:g,lastRow:y,lineHeight:w,characterWidth:this.characterWidth,minHeight:u,maxHeight:r,offset:l,gutterOffset:w?Math.max(0,Math.ceil((l+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},x},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),r=i.left,s=i.top,a=n&&n.top||0,o=n&&n.bottom||0,c=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;c+a>s?(t&&c+a>s+this.lineHeight&&(s-=t*this.$size.scrollerHeight),0===s&&(s=-this.scrollMargin.top),this.session.setScrollTop(s)):c+this.$size.scrollerHeight-o<s+this.lineHeight&&(t&&c+this.$size.scrollerHeight-o<s-this.lineHeight&&(s+=t*this.$size.scrollerHeight),this.session.setScrollTop(s+this.lineHeight-this.$size.scrollerHeight));var l=this.scrollLeft;l>r?(r<this.$padding+2*this.layerConfig.characterWidth&&(r=-this.scrollMargin.left),this.session.setScrollLeft(r)):l+this.$size.scrollerWidth<r+this.characterWidth?this.session.setScrollLeft(Math.round(r+this.characterWidth-this.$size.scrollerWidth)):l<=this.$padding&&r-l<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,r=n.top-i*(t||0);return this.session.setScrollTop(r),r},this.STEPS=8,this.$calcSteps=function(e,t){var n=0,i=this.STEPS,r=[],s=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<i;++n)r.push(s(n/this.STEPS,e,t-e));return r},this.scrollToLine=function(e,t,n,i){var r=this.$cursorLayer.getPixelPosition({row:e,column:0}),s=r.top;t&&(s-=this.$size.scrollerHeight/2);var a=this.scrollTop;this.session.setScrollTop(s),!1!==n&&this.animateScrolling(a,i)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=n){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(e=r[0],e==n))return}var s=i.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:s},clearInterval(this.$timer),i.session.setScrollTop(s.shift()),i.session.$scrollTop=n,this.$timer=setInterval((function(){s.length?(i.session.setScrollTop(s.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):(i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=i/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=Math.round(r);return{row:s,column:a,side:r-a>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=e+this.scrollLeft-n.left-this.$padding,r=Math.round(i/this.characterWidth),s=(t+this.scrollTop-n.top)/this.lineHeight;return this.session.screenToDocumentPosition(s,Math.max(r,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),r=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),s=i.row*this.lineHeight;return{pageX:n.left+r-this.scrollLeft,pageY:n.top+s-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(r.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)a(e);else{var i=e||this.$options.theme.initialValue;s.loadModule(["theme",i],a)}function a(i){if(n.$themeId!=e)return t&&t();if(!i||!i.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.importCssString(i.cssText,i.cssClass,n.container.ownerDocument),n.theme&&r.removeCssClass(n.container,n.theme.cssClass);var s="padding"in i?i.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&s!=n.$padding&&n.setPadding(s),n.$theme=i.cssClass,n.theme=i,r.addCssClass(n.container,i.cssClass),r.setCssClass(n.container,"ace_dark",i.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:i}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){r.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){r.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(v.prototype),s.defineOptions(v.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=r.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=v})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("../lib/net"),s=e("../lib/event_emitter").EventEmitter,a=e("../config");function o(e,t){var n=t.src;r.qualifyURL(e);try{return new Blob([n],{type:"application/javascript"})}catch(a){var i=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,s=new i;return s.append(n),s.getBlob("application/javascript")}}function c(e,t){var n=o(e,t),i=window.URL||window.webkitURL,r=i.createObjectURL(n);return new Worker(r)}var l=function(t,n,i,r,s){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),a.get("packaged")||!e.toUrl)r=r||a.moduleUrl(n.id,"worker");else{var o=this.$normalizePath;r=r||o(e.toUrl("ace/worker/worker.js",null,"_"));var l={};t.forEach((function(t){l[t]=o(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}this.$worker=c(r,n),s&&this.send("importScripts",s),this.$worker.postMessage({init:!0,tlns:l,module:n.id,classname:i}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,s),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return r.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);var u=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var i=null,r=!1,o=Object.create(s),c=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){c.messageBuffer.push(e),i&&(r?setTimeout(l):l())},this.setEmitSync=function(e){r=e};var l=function(){var e=c.messageBuffer.shift();e.command?i[e.command].apply(i,e.args):e.event&&o._signal(e.event,e.data)};o.postMessage=function(e){c.onMessage({data:e})},o.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},o.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],(function(e){i=new e[n](o);while(c.messageBuffer.length)l()}))};u.prototype=l.prototype,t.UIWorkerClient=u,t.WorkerClient=l,t.createWorker=c})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var i=e("./range").Range,r=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop"),a=function(e,t,n,i,r,s){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=r,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var o=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=o.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){s.implement(this,r),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=n.addMarker(new i(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=t.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),e.others.push(i)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new i(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,r=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;if(this.updateAnchors(e),r&&(this.length+=n),r&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var o=this.others[a],c={row:o.row,column:o.column+s};this.doc.insertMergedLines(c,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){o=this.others[a],c={row:o.row,column:o.column+s};this.doc.remove(new i(c.row,c.column,c.row,c.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,r){t.removeMarker(n.markerId),n.markerId=t.addMarker(new i(n.row,n.column,n.row,n.column+e.length),r,null,!1)};n(this.pos,this.mainClass);for(var r=this.others.length;r--;)n(this.others[r],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(a.prototype),t.PlaceHolder=a})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var i=e("../lib/event"),r=e("../lib/useragent");function s(e,t){return e.row==t.row&&e.column==t.column}function a(e){var t=e.domEvent,n=t.altKey,a=t.shiftKey,o=t.ctrlKey,c=e.getAccelKey(),l=e.getButton();if(o&&r.isMac&&(l=t.button),e.editor.inMultiSelectMode&&2==l)e.editor.textInput.onContextMenu(e.domEvent);else if(o||n||c){if(0===l){var u,d=e.editor,h=d.selection,f=d.inMultiSelectMode,p=e.getDocumentPosition(),g=h.getCursor(),m=e.inSelection()||h.isEmpty()&&s(p,g),v=e.x,b=e.y,y=function(e){v=e.clientX,b=e.clientY},w=d.session,_=d.renderer.pixelToScreenCoordinates(v,b),x=_;if(d.$mouseHandler.$enableJumpToDef)o&&n||c&&n?u=a?"block":"add":n&&d.$blockSelectEnabled&&(u="block");else if(c&&!n){if(u="add",!f&&a)return}else n&&d.$blockSelectEnabled&&(u="block");if(u&&r.isMac&&t.ctrlKey&&d.$mouseHandler.cancelContextMenu(),"add"==u){if(!f&&m)return;if(!f){var k=h.toOrientedRange();d.addSelectionMarker(k)}var A=h.rangeList.rangeAtPoint(p);d.$blockScrolling++,d.inVirtualSelectionMode=!0,a&&(A=null,k=h.ranges[0]||k,d.removeSelectionMarker(k)),d.once("mouseup",(function(){var e=h.toOrientedRange();A&&e.isEmpty()&&s(A.cursor,e.cursor)?h.substractPoint(e.cursor):(a?h.substractPoint(k.cursor):k&&(d.removeSelectionMarker(k),h.addRange(k)),h.addRange(e)),d.$blockScrolling--,d.inVirtualSelectionMode=!1}))}else if("block"==u){var C;e.stop(),d.inVirtualSelectionMode=!0;var E=[],S=function(){var e=d.renderer.pixelToScreenCoordinates(v,b),t=w.screenToDocumentPosition(e.row,e.column,e.offsetX);s(x,e)&&s(t,h.lead)||(x=e,d.$blockScrolling++,d.selection.moveToPosition(t),d.renderer.scrollCursorIntoView(),d.removeSelectionMarkers(E),E=h.rectangularRangeBlock(x,_),d.$mouseHandler.$clickSelection&&1==E.length&&E[0].isEmpty()&&(E[0]=d.$mouseHandler.$clickSelection.clone()),E.forEach(d.addSelectionMarker,d),d.updateSelectionMarkers(),d.$blockScrolling--)};d.$blockScrolling++,f&&!c?h.toSingleRange():!f&&c&&(C=h.toOrientedRange(),d.addSelectionMarker(C)),a?_=w.documentToScreenPosition(h.lead):h.moveToPosition(p),d.$blockScrolling--,x={row:-1,column:-1};var F=function(e){clearInterval(T),d.removeSelectionMarkers(E),E.length||(E=[h.toOrientedRange()]),d.$blockScrolling++,C&&(d.removeSelectionMarker(C),h.toSingleRange(C));for(var t=0;t<E.length;t++)h.addRange(E[t]);d.inVirtualSelectionMode=!1,d.$mouseHandler.$clickSelection=null,d.$blockScrolling--},$=S;i.capture(d.container,y,F);var T=setInterval((function(){$()}),20);return e.preventDefault()}}}else 0===l&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}t.onMouseDown=a})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var i=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new i(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var i=e("./range_list").RangeList,r=e("./range").Range,s=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,o=e("./lib/event"),c=e("./lib/lang"),l=e("./commands/multi_select_commands");t.commands=l.defaultCommands.concat(l.multiSelectCommands);var u=e("./search").Search,d=new u;function h(e,t,n){return d.$options.wrap=!0,d.$options.needle=t,d.$options.backwards=-1==n,d.find(e)}var f=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var i=this.isBackwards(),s=n.start.row,a=n.end.row;if(s==a){if(i)var o=n.end,c=n.start;else o=n.start,c=n.end;return this.addRange(r.fromPoints(c,c)),void this.addRange(r.fromPoints(o,o))}var l=[],u=this.getLineRange(s,!0);u.start.column=n.start.column,l.push(u);for(var d=s+1;d<a;d++)l.push(this.getLineRange(d,!0));u=this.getLineRange(a,!0),u.end.column=n.end.column,l.push(u),l.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.selectionLead),s=this.session.documentToScreenPosition(this.selectionAnchor),a=this.rectangularRangeBlock(i,s);a.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],s=e.column<t.column;if(s)var a=e.column,o=t.column,c=e.offsetX,l=t.offsetX;else a=t.column,o=e.column,c=t.offsetX,l=e.offsetX;var u=e.row<t.row;if(u)var d=e.row,h=t.row;else d=t.row,h=e.row;a<0&&(a=0),d<0&&(d=0),d==h&&(n=!0);for(var f=d;f<=h;f++){var p=r.fromPoints(this.session.screenToDocumentPosition(f,a,c),this.session.screenToDocumentPosition(f,o,l));if(p.isEmpty()){if(m&&g(p.end,m))break;var m=p.end}p.cursor=s?p.start:p.end,i.push(p)}if(u&&i.reverse(),!n){var v=i.length-1;while(i[v].isEmpty()&&v>0)v--;if(v>0){var b=0;while(i[b].isEmpty())b++}for(var y=v;y>=b;y--)i[y].isEmpty()&&i.splice(y,1)}return i}}.call(s.prototype);var p=e("./editor").Editor;function g(e,t){return e.row==t.row&&e.column==t.column}function m(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(l.defaultCommands),v(e))}function v(e){var t=e.textInput.getElement(),n=!1;function i(t){n&&(e.renderer.setMouseCursor(""),n=!1)}o.addListener(t,"keydown",(function(t){var r=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&r?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&i()})),o.addListener(t,"keyup",i),o.addListener(t,"blur",i)}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var r=t.indexOf(i);-1!=r&&t.splice(r,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,r=n&&n.keepOrder,a=1==n||n&&n.$byLines,o=this.session,c=this.selection,l=c.rangeList,u=(r?c:l).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=c._eventRegistry;c._eventRegistry={};var h=new s(o);this.inVirtualSelectionMode=!0;for(var f=u.length;f--;){if(a)while(f>0&&u[f].start.row==u[f-1].end.row)f--;h.fromOrientedRange(u[f]),h.index=f,this.selection=o.selection=h;var p=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===p||(i=p),h.toOrientedRange(u[f])}h.detach(),this.selection=o.selection=c,this.inVirtualSelectionMode=!1,c._eventRegistry=d,c.mergeOverlappingRanges();var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var r=this.session.getDocument().getNewLineCharacter();e=n.join(r),e.length==(n.length-1)*r.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row==t.row&&this.session.$clipPositionToDocument(i.row,i.column).column==t.column||this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(e,t,n){if(t=t||{},t.needle=e||t.needle,void 0==t.needle){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var r=this.$search.findAll(this.session);if(!r.length)return 0;this.$blockScrolling+=1;var s=this.multiSelect;n||s.toSingleRange(r[0]);for(var a=r.length;a--;)s.addRange(r[a],!0);return i&&s.rangeList.rangeAtPoint(i.start)&&s.addRange(i,!0),this.$blockScrolling-=1,r.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,s=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(s.column=this.selection.$desiredColumn);var a=this.session.screenToDocumentPosition(s.row+e,s.column);if(n.isEmpty())c=a;else var o=this.session.documentToScreenPosition(i?n.end:n.start),c=this.session.screenToDocumentPosition(o.row+e,o.column);if(i){var l=r.fromPoints(a,c);l.cursor=l.start}else{l=r.fromPoints(c,a);l.cursor=l.end}if(l.desiredColumn=s.column,this.selection.inMultiSelectMode){if(t)var u=n.cursor}else this.selection.addRange(n);this.selection.addRange(l),u&&this.selection.substractPoint(u)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,r=i.length;r--;){var s=i[r];if(s.isEmpty()){var a=t.getWordRange(s.start.row,s.start.column);s.start.row=a.start.row,s.start.column=a.start.column,s.end.row=a.end.row,s.end.column=a.end.column}}n.mergeOverlappingRanges();var o=[];for(r=i.length;r--;){s=i[r];o.unshift(t.getTextRange(s))}e<0?o.unshift(o.pop()):o.push(o.shift());for(r=i.length;r--;){s=i[r],a=s.clone();t.replace(s,o[r]),s.start.row=a.start.row,s.start.column=a.start.column}},this.selectMore=function(e,t,n){var i=this.session,r=i.multiSelect,s=r.toOrientedRange();if(!s.isEmpty()||(s=i.getWordRange(s.start.row,s.start.column),s.cursor=-1==e?s.start:s.end,this.multiSelect.addRange(s),!n)){var a=i.getTextRange(s),o=h(i,a,e);o&&(o.cursor=-1==e?o.start:o.end,this.$blockScrolling+=1,this.session.unfold(o),this.multiSelect.addRange(o),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(s.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,i=-1,s=n.filter((function(e){if(e.cursor.row==i)return!0;i=e.cursor.row}));if(n.length&&s.length!=n.length-1){s.forEach((function(e){t.substractPoint(e.cursor)}));var a=0,o=1/0,l=n.map((function(t){var n=t.cursor,i=e.getLine(n.row),r=i.substr(n.column).search(/\S/g);return-1==r&&(r=0),n.column>a&&(a=n.column),r<o&&(o=r),r}));n.forEach((function(t,n){var i=t.cursor,s=a-i.column,u=l[n]-o;s>u?e.insert(i,c.stringRepeat(" ",s-u)):e.remove(new r(i.row,i.column,i.row,i.column-s+u)),t.start.column=t.end.column=a,t.start.row=t.end.row=i.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),d=u.start.row,h=u.end.row,f=d==h;if(f){var p,g=this.session.getLength();do{p=this.session.getLine(h)}while(/[=:]/.test(p)&&++h<g);do{p=this.session.getLine(d)}while(/[=:]/.test(p)&&--d>0);d<0&&(d=0),h>=g&&(h=g-1)}var m=this.session.removeFullLines(d,h);m=this.$reAlignText(m,f),this.session.insert({row:d,column:0},m.join("\n")+"\n"),f||(u.start.column=0,u.end.column=m[m.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,i,r,s=!0,a=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,i=t[2].length,r=t[3].length,t):(n+i+r!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(s=!1),n>t[1].length&&(n=t[1].length),i<t[2].length&&(i=t[2].length),r>t[3].length&&(r=t[3].length),t):[e]})).map(t?l:s?a?u:l:d);function o(e){return c.stringRepeat(" ",e)}function l(e){return e[2]?o(n)+e[2]+o(i-e[2].length+r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function u(e){return e[2]?o(n+i-e[2].length)+e[2]+o(r," ")+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function d(e){return e[2]?o(n)+e[2]+o(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=m,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){m(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../../range").Range,r=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var r=/\S/,s=e.getLine(t),a=s.search(r);if(-1!=a){var o=n||s.length,c=e.getLength(),l=t,u=t;while(++t<c){var d=e.getLine(t).search(r);if(-1!=d){if(d<=a)break;u=t}}if(u>l){var h=e.getLine(u).length;return new i(l,o,u,h)}}},this.openingBracketBlock=function(e,t,n,r,s){var a={row:n,column:r+1},o=e.$findClosingBracket(t,a,s);if(o){var c=e.foldWidgets[o.row];return null==c&&(c=e.getFoldWidget(o.row)),"start"==c&&o.row>a.row&&(o.row--,o.column=e.getLine(o.row).length),i.fromPoints(a,o)}},this.closingBracketBlock=function(e,t,n,r,s){var a={row:n,column:r},o=e.$findOpeningBracket(t,a);if(o)return o.column++,a.column--,i.fromPoints(o,a)}}).call(r.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var i=e("../lib/dom");i.importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";e("./lib/oop");var i=e("./lib/dom");e("./range").Range;function r(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,r=i.start.row,s=i.end.row,a="add"==e.action,o=r+1;o<s;o++)n[o]&&(n[o].hidden=a);n[s]&&(a?n[r]?n[s].hidden=a:n[r]=n[s]:(n[r]==n[s]&&(n[r]=void 0),n[s].hidden=a))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,i=e.end.row-n;if(0===i);else if("remove"==e.action){var r=t.splice(n+1,i);r.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var s=new Array(i);s.unshift(n,0),t.splice.apply(t,s),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e){t=!1,e.row=n;while(e.$oldWidget)e.$oldWidget.row=n,e=e.$oldWidget}})),t&&(this.session.lineWidgets=null)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e.session=this.session;var n=this.editor.renderer;e.html&&!e.el&&(e.el=i.createElement("div"),e.el.innerHTML=e.html),e.el&&(i.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,n.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/n.layerConfig.lineHeight);var r=this.session.getFoldAt(e.row,0);if(e.$fold=r,r){var s=this.session.lineWidgets;e.row!=r.end.row||s[r.start.row]?e.hidden=!0:s[r.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else while(t){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){var t=this.session.lineWidgets,n=t&&t[e],i=[];while(n)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var r=1/0,s=0;s<n.length;s++){var a=n[s];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,t.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/i.characterWidth));var o=a.h/i.lineHeight;a.coverLine&&(o-=this.session.getRowLineCount(a.row),o<0&&(o=0)),a.rowCount!=o&&(a.rowCount=o,a.row<r&&(r=a.row))}}r!=1/0&&(this.session._emit("changeFold",{data:{start:{row:r}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){var r=Math.min(this.firstRow,n.firstRow),s=Math.max(this.lastRow,n.lastRow,i.length);while(r>0&&!i[r])r--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=r;a<=s;a++){var o=i[a];if(o&&o.el)if(o.hidden)o.el.style.top=-100-(o.pixelHeight||0)+"px";else{o._inDocument||(o._inDocument=!0,t.container.appendChild(o.el));var c=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;o.coverLine||(c+=n.lineHeight*this.session.getRowLineCount(o.row)),o.el.style.top=c-n.offset+"px";var l=o.coverGutter?0:t.gutterWidth;o.fixedWidth||(l-=t.scrollLeft),o.el.style.left=l+"px",o.fullWidth&&o.screenWidth&&(o.el.style.minWidth=n.width+2*n.padding+"px"),o.fixedWidth?o.el.style.right=t.scrollBar.getWidth()+"px":o.el.style.right=""}}}}}).call(r.prototype),t.LineWidgets=r})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var i=e("../line_widgets").LineWidgets,r=e("../lib/dom"),s=e("../range").Range;function a(e,t,n){var i=0,r=e.length-1;while(i<=r){var s=i+r>>1,a=n(t,e[s]);if(a>0)i=s+1;else{if(!(a<0))return s;r=s-1}}return-(i+1)}function o(e,t,n){var i=e.getAnnotations().sort(s.comparePoints);if(i.length){var r=a(i,{row:t,column:-1},s.comparePoints);r<0&&(r=-r-1),r>=i.length?r=n>0?0:i.length-1:0===r&&n<0&&(r=i.length-1);var o=i[r];if(o&&n){if(o.row===t){do{o=i[r+=n]}while(o&&o.row===t);if(!o)return i.slice()}var c=[];t=o.row;do{c[n<0?"unshift":"push"](o),o=i[r+=n]}while(o&&o.row==t);return c.length&&c}}}t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new i(n),n.widgetManager.attach(e));var s=e.getCursorPosition(),a=s.row,c=n.widgetManager.getWidgetsAtRow(a).filter((function(e){return"errorMarker"==e.type}))[0];c?c.destroy():a-=t;var l,u=o(n,a,t);if(u){var d=u[0];s.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,s.row=d.row,l=e.renderer.$gutterLayer.$annotations[s.row]}else{if(c)return;l={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(s.row),e.selection.moveToPosition(s);var h={row:s.row,fixedWidth:!0,coverGutter:!0,el:r.createElement("div"),type:"errorMarker"},f=h.el.appendChild(r.createElement("div")),p=h.el.appendChild(r.createElement("div"));p.className="error_widget_arrow "+l.className;var g=e.renderer.$cursorLayer.getPixelPosition(s).left;p.style.left=g+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",f.className="error_widget "+l.className,f.innerHTML=l.text.join("<br>"),f.appendChild(r.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},r.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,i){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/dom"),s=e("./lib/event"),a=e("./editor").Editor,o=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,t.define=n("07d6"),t.edit=function(e){if("string"==typeof e){var n=e;if(e=document.getElementById(n),!e)throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof a)return e.env.editor;var i="";if(e&&/input|textarea/i.test(e.tagName)){var o=e;i=o.value,e=r.createElement("pre"),o.parentNode.replaceChild(e,o)}else e&&(i=r.getInnerText(e),e.innerHTML="");var c=t.createEditSession(i),u=new a(new l(e));u.setSession(c);var d={document:c,editor:u,onResize:u.resize.bind(u,null)};return o&&(d.textarea=o),s.addListener(window,"resize",d.onResize),u.on("destroy",(function(){s.removeListener(window,"resize",d.onResize),d.editor.container.env=null})),u.container.env=u.env=d,u},t.createEditSession=function(e,t){var n=new o(e,t);return n.setUndoManager(new c),n},t.EditSession=o,t.UndoManager=c,t.version="1.2.9"})),function(){ace.acequire(["ace/ace"],(function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}))}(),e.exports=window.ace.acequire("ace/ace")},"0687":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ores"},[n("h3",[e._v("Selected Ores:")]),e._l(e.ore_names,(function(t){return n("div",{key:t},[n("vui-button",{class:{selected:e.selected_ores.includes(t)},attrs:{params:{chosen_ore:t}}},[e._v(e._s(t))])],1)}))],2)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=(n("3315"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"5716889f",null);t["default"]=c.exports},"068f":function(e,t,n){"use strict";n("e16d")},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),s=n("5c6c"),a=n("fc6a"),o=n("c04e"),c=n("5135"),l=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=o(t,!0),l)try{return u(e,t)}catch(n){}if(c(e,t))return s(!r.f.call(e,t),e[t])}},"07ac":function(e,t,n){var i=n("23e7"),r=n("6f53").values;i({target:"Object",stat:!0},{values:function(e){return r(e)}})},"07c3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("i",[e._v("Welcome to the NanoTrasen™ computer configuration utility. Please consult your system administrator if you have any questions about your device.")]),n("hr"),n("h2",[e._v("Power Supply")]),n("vui-item",{attrs:{label:"Battery Status:"}},[e.battery?n("span",[e._v("Active")]):n("span",[e._v("Not Available")])]),e.battery?n("vui-item",{attrs:{label:"Battery Rating:"}},[e._v(e._s(e.battery.rating)+" Wh")]):e._e(),e.battery?n("vui-item",{attrs:{label:"Battery Charge:"}},[n("vui-progress",{attrs:{value:e.battery.percent}},[e._v(e._s(e.battery.percent)+"%")])],1):e._e(),n("vui-item",{attrs:{label:"Power Usage:"}},[e._v(e._s(e.power_usage)+" W")]),n("h2",[e._v("File System")]),e.battery?n("vui-item",{attrs:{label:"Used Capacity:"}},[n("vui-progress",{attrs:{value:e.disk_used,min:"0",max:e.disk_size}},[e._v(e._s(e.disk_used)+" GQ / "+e._s(e.disk_size)+" GQ")])],1):e._e(),n("h2",[e._v("Misc. Settings")]),n("vui-item",{attrs:{label:"Registered ID:"}},[n("vui-button",{attrs:{params:{PC_register:1},disabled:!e.card_slot}},[e._v(e._s(e.registered?e.registered:"Unregistered"))])],1),null!==e.brightness?n("vui-item",{attrs:{label:"Brightness:"}},[n("vui-input-slider",{attrs:{min:0,max:10},model:{value:e.brightness,callback:function(t){e.brightness=t},expression:"brightness"}})],1):e._e(),n("vui-item",{attrs:{label:"Audible Message Output Range:"}},[n("vui-input-slider",{attrs:{min:0,max:e.max_message_range},model:{value:e.message_range,callback:function(t){e.message_range=t},expression:"message_range"}})],1),n("h2",[e._v("Computer Components")]),e._l(e.hardware,(function(t,i){return n("div",{key:i},[n("h3",[e._v(e._s(i))]),n("vui-item",{attrs:{label:"State:"}},[t.enabled?n("span",[e._v("Enabled")]):n("span",[e._v("Disabled")])]),t.power_usage>0?n("vui-item",{attrs:{label:"Power Usage:"}},[e._v(e._s(t.power_usage)+" W")]):e._e(),t.critical?e._e():n("vui-item",{attrs:{label:"Toggle Component:"}},[n("vui-button",{attrs:{params:{PC_enable_component:i},disabled:!!t.enabled}},[e._v("ON")]),n("vui-button",{attrs:{params:{PC_disable_component:i},disabled:!t.enabled}},[e._v("OFF")])],1)],1)})),n("i",[e._v("ntOS v2.1.0 -- © NanoTrasen 2457 - 2462")])],2)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"07d6":function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"08c0":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h2",[e._v("Engine Status:")]),e.is_on?n("div",[e._v(" The engine is currently running. "),n("vui-button",{attrs:{params:{toggle_engine:1}}},[e._v("Stop")])],1):n("div",[e._v(" The engine is off. "),n("vui-button",{attrs:{disabled:!e.has_key||!e.has_cell,params:{toggle_engine:1}}},[e._v("Start")])],1),e.has_key?n("div",[e._v(" There is a key inserted into the ignition. "),n("vui-button",{attrs:{params:{key:1}}},[e._v("Remove Key")])],1):n("div",[e._v(" There is no key in the ignition. ")]),e.has_cell?n("div",[e._v(" Cell Charge: "),n("vui-progress",{class:{good:e.cell_charge>=.8*e.cell_max_charge,bad:e.cell_charge<=.4*e.cell_max_charge,average:e.cell_charge<.8*e.cell_max_charge&&e.cell_charge>.4*e.cell_max_charge},attrs:{value:e.cell_charge,max:e.cell_max_charge,min:0}},[e._v(e._s(e.cell_charge)+"J")]),e._v(" "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("The cell can be removed by using a screwdriver to open the maintenance panel, then using a crowbar to shimmy it out.")])],1):n("div",[e._v(" There is no cell installed. "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("The cell can be installed by using a screwdriver to open the maintenance panel, then clicking on the engine with a compatible power cell.")])],1),e.is_towing?n("div",[e._v(" This engine is currently towing the "+e._s(e.tow)+". "),n("vui-button",{attrs:{params:{unlatch:1}}},[e._v("Unlatch")])],1):n("div",[e._v(" This engine isn't towing anything currently. "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("You can latch vehicles together by dragging from the vehicle you want to be the anchor point, to the trolley you wish to latch.")])],1)])},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"08cc":function(e,t,n){"use strict";n("b225")},"09cd":function(e,t,n){"use strict";n("bfa1")},"0ac8":function(e,t,n){var i=n("23e7"),r=n("8eb5");i({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},"0b25":function(e,t,n){var i=n("a691"),r=n("50c4");e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw RangeError("Wrong length or index");return n}},"0bc7":function(e,t,n){"use strict";n("6759")},"0c47":function(e,t,n){var i=n("da84"),r=n("d44e");r(i.JSON,"JSON",!0)},"0ccb":function(e,t,n){var i=n("50c4"),r=n("1148"),s=n("1d80"),a=Math.ceil,o=function(e){return function(t,n,o){var c,l,u=String(s(t)),d=u.length,h=void 0===o?" ":String(o),f=i(n);return f<=d||""==h?u:(c=f-d,l=r.call(h,a(c/h.length)),l.length>c&&(l=l.slice(0,c)),e?u+l:l+u)}};e.exports={start:o(!1),end:o(!0)}},"0cec":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Patient Vitals:")]),e.has_occupant?[n("vui-group",[n("vui-group-item",{attrs:{label:"Status:"}},[n("span",{style:{color:e.consciousnessLabel(e.stat)}},[e._v(e._s(e.consciousnessText(e.stat)))])]),n("vui-group-item",{attrs:{label:"Brain Activity:"}},[n("vui-progress",{class:e.progressClass(e.brain_activity),attrs:{value:e.brain_activity}},[e._v(e._s(e.brain_activity)+"%")])],1),n("vui-group-item",{style:{color:e.getPressureClass(e.blood_pressure_level)},attrs:{label:"BP:"}},[e._v(e._s(e.blood_pressure))]),n("vui-group-item",{attrs:{label:"Blood Oxygenation:"}},[n("vui-progress",{class:e.progressClass(e.brain_activity),attrs:{value:Math.round(e.blood_o2)}},[e._v(e._s(Math.round(e.blood_o2))+"%")])],1),n("vui-group-item",{attrs:{label:"Blood Volume:"}},[n("vui-progress",{class:e.progressClass(e.brain_activity),attrs:{value:Math.round(e.blood_volume)}},[e._v(e._s(Math.round(e.blood_volume))+"%")])],1)],1)]:[n("span",{staticClass:"bad"},[e._v("No patient detected.")])]],2)},r=[],s={data:function(){return this.$root.$data.state},methods:{consciousnessLabel:function(e){switch(e){case 0:return"LimeGreen";case 1:return"OrangeRed";case 2:return"Crimson"}},consciousnessText:function(e){switch(e){case 0:return"Conscious";case 1:return"Unconscious";case 2:return"DEAD"}},progressClass:function(e){return e<=50?"bad":e<=90?"average":"good"},getPressureClass:function(e){switch(e){case 1:return"Crimson";case 2:return"LimeGreen";case 3:return"LawnGreen";case 4:return"Crimson";default:return"LightSkyBlue"}}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),s=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},"0d03":function(e,t,n){var i=n("6eeb"),r=Date.prototype,s="Invalid Date",a="toString",o=r[a],c=r.getTime;new Date(NaN)+""!=s&&i(r,a,(function(){var e=c.call(this);return e===e?o.call(this):s}))},"0d3b":function(e,t,n){var i=n("d039"),r=n("b622"),s=n("c430"),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),s&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0ea6":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.passcode,expression:"passcode"}],attrs:{placeholder:"Enter passcode...",autofocus:""},domProps:{value:e.passcode},on:{input:function(t){t.target.composing||(e.passcode=t.target.value)}}}),n("vui-button",{attrs:{params:{set_passcode:e.passcode}}},[e._v("Set")]),n("vui-button",{attrs:{params:{lock:1}}},[e._v("Lock")])],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"0ec3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"tooltip label"},[e._t("label",[e._v(e._s(e.label))]),n("div",{staticClass:"tooltip content"},[e._t("default")],2)],2)},r=[],s={props:{label:{type:String,default:""}}},a=s,o=(n("09cd"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"4ea2a2b3",null);t["default"]=c.exports},"0eec":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{ref:"input",style:{width:e.width},attrs:{type:"range",min:e.min,max:e.max},domProps:{value:e.val},on:{change:function(t){return e.onFieldUpdate(t.target)}}})])},r=[],s=(n("a9e3"),n("8a79"),n("c0d6")),a={props:{value:{type:Number,default:0},min:{type:Number,default:0},max:{type:Number,default:100},pushState:{type:Boolean,default:!0},width:{type:String,default:"10em"},decimalPlaces:{type:Number,default:0}},data:function(){return{val:this.value}},methods:{onFieldUpdate:function(e){var t=this.val,n=Number(e.value);isNaN(n)&&(n=this.val),console.log(n,e.value,this.value,this.val),this.UpdateValue(n),t!=this.val||e.value.endsWith(".")||(this.$refs.input.value=this.val)},onUpdatedValue:function(e){var t=this.value;e&&(t+=e),this.UpdateValue(t)},UpdateValue:function(e){e=+(Math.round(e+"e+"+this.decimalPlaces)+"e-"+this.decimalPlaces),e>this.max&&(e=this.max),e<this.min&&(e=this.min),this.val=e,this.$emit("input",e),this.pushState&&s["a"].pushState()}},watch:{value:function(){this.val=this.value}}},o=a,c=(n("44fc"),n("2877")),l=Object(c["a"])(o,i,r,!1,null,"1c07adff",null);t["default"]=l.exports},1062:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.invalid?n("div",{staticClass:"center"},[e.nocons?n("span",{staticClass:"red"},[e._v("Error: No scanner bed detected!")]):e.occupied?e.ipc?n("span",{staticClass:"red"},[e._v("Error: Object in scanner bed interfering with sensor array.")]):e.noscan?n("span",{staticClass:"red"},[e._v("Error: No diagnostics profile installed for this species.")]):n("span",{staticClass:"red"},[e._v("Error: Unknown error.")]):n("span",{staticClass:"red"},[e._v("No occupant detected.")])]):n("table",{staticClass:"bodyscanner"},[n("div",{staticClass:"row"},[n("div",{staticClass:"column"},[n("h3",[e._v("Patient Status")]),n("hr"),n("vui-group",[n("vui-group-item",{attrs:{label:"Name:"}},[e._v(e._s(e.name))]),n("vui-group-item",{attrs:{label:"Status:"}},[n("span",{style:{color:e.consciousnessLabel(e.stat)}},[e._v(e._s(e.consciousnessText(e.stat)))])]),n("vui-group-item",{attrs:{label:"Species:"}},[e._v(e._s(e.species))]),n("vui-group-item",{attrs:{label:"Brain Activity:"}},[n("vui-progress",{class:e.progressClass(e.brain_activity),attrs:{value:e.brain_activity}},[e._v(e._s(e.brain_activity)+"%")])],1),e.stat<2?[n("vui-group-item",{attrs:{label:"Physical Trauma:"}},[n("span",{style:{color:e.damageLabel(e.bruteLoss)}},[e._v(e._s(e.bruteLoss))])]),n("vui-group-item",{attrs:{label:"Oxygen Deprivation:"}},[n("span",{style:{color:e.damageLabel(e.oxyLoss)}},[e._v(e._s(e.oxyLoss))])]),n("vui-group-item",{attrs:{label:"Organ Failure:"}},[n("span",{style:{color:e.damageLabel(e.toxLoss)}},[e._v(e._s(e.toxLoss))])]),n("vui-group-item",{attrs:{label:"Burn Severity:"}},[n("span",{style:{color:e.damageLabel(e.fireLoss)}},[e._v(e._s(e.fireLoss))])])]:e._e()],2),n("hr"),n("vui-group",[n("vui-group-item",{attrs:{label:"Radiation Level:"}},[e._v(e._s(Math.round(e.rads)))]),n("vui-group-item",{attrs:{label:"Genetic Damage:"}},[e._v(e._s(e.cloneLoss))]),n("vui-group-item",{attrs:{label:"Est. Paralysis Level:"}},[e._v(e._s(e.paralysis)),e.paralysis?n("span",[e._v(" (~"+e._s(Math.round(e.paralysis/4))+" Seconds Left)")]):e._e()]),n("vui-group-item",{attrs:{label:"Body Temperature:"}},[e._v(e._s(e.bodytemp)+" K (~ "+e._s(Math.round(e.bodytemp-273.15))+" C)")])],1),n("hr"),n("h3",[e._v("Blood Status")]),n("hr"),n("vui-group",[n("vui-group-item",{style:{color:e.getPressureClass(e.blood_pressure_level)},attrs:{label:"BP:"}},[e._v(" "+e._s(e.blood_pressure)+" ")]),n("vui-group-item",{attrs:{label:"Blood Oxygenation:"}},[n("vui-progress",{class:e.progressClass(e.brain_activity),attrs:{value:Math.round(e.blood_o2)}},[e._v(e._s(Math.round(e.blood_o2))+"%")])],1),n("vui-group-item",{attrs:{label:"Blood Volume:"}},[n("vui-progress",{class:e.progressClass(e.brain_activity),attrs:{value:Math.round(e.blood_volume)}},[e._v(e._s(Math.round(e.blood_volume))+"%")])],1),Math.round(e.norepiAmt)?n("vui-group-item",{attrs:{label:"Inaprovaline:"}},[e._v(" "+e._s(Math.round(e.norepiAmt))+" unit(s)")]):e._e(),Math.round(e.soporAmt)?n("vui-group-item",{attrs:{label:"Soporific:"}},[e._v(" "+e._s(Math.round(e.soporAmt))+" unit(s)")]):e._e(),Math.round(e.bicardAmt)?n("vui-group-item",{attrs:{label:"Bicaridine:"}},[e._v(" "+e._s(Math.round(e.bicardAmt))+" unit(s)")]):e._e(),Math.round(e.dermAmt)?n("vui-group-item",{attrs:{label:"Dermaline:"}},[e._v(" "+e._s(Math.round(e.dermAmt))+" unit(s)")]):e._e(),Math.round(e.dexAmt)?n("vui-group-item",{attrs:{label:"Dexalin:"}},[e._v(" "+e._s(Math.round(e.dexAmt))+" unit(s)")]):e._e(),Math.round(e.thetaAmt)?n("vui-group-item",{attrs:{label:"Thetamycin:"}},[e._v(" "+e._s(Math.round(e.thetaAmt))+" unit(s)")]):e._e(),Math.round(e.otherAmt)?n("vui-group-item",{attrs:{label:"Other:"}},[e._v(" "+e._s(Math.round(e.otherAmt))+" unit(s)")]):e._e()],1)],1),n("div",{staticClass:"column"},[e.hasmissing?e._l(e.missingparts,(function(t){return n("div",{key:t.name},[n("vui-group-item",[e._v(" "+e._s(t)+" ")])],1)})):e._e(),n("h3",[e._v("Internal Organ Status")]),n("hr"),n("table",{staticClass:"injury"},[e.hasinternalinjury?[e._m(0)]:[e._m(1)],e._l(e.organs,(function(t){return n("tr",{key:t.name},["None"!=t.damage||t.hasWounds?[n("td",[e._v(" "+e._s(t.name)+" ")]),n("td",[n("span",{style:{color:e.damageLabel(t.damage)}},[e._v(" "+e._s(t.damage))])]),n("td",e._l(t.wounds,(function(t){return n("div",{key:t.name,staticStyle:{color:"Tomato"}},[e._v(" "+e._s(t)+" ")])})),0),n("td",[e._v(" "+e._s(t.location)+" ")])]:e._e()],2)}))],2),n("hr"),n("h3",[e._v("External Bodypart Status")]),n("hr"),n("table",{staticClass:"injury"},[e.hasexternalinjury?[e._m(2)]:[e._m(3)],e._l(e.bodyparts,(function(t){return n("tr",{key:t.name},["None"!=t.bruteDmg||"None"!=t.burnDmg||t.hasWounds?[n("td",[e._v(" "+e._s(t.name)+" ")]),n("td",[n("span",{style:{color:e.damageLabel(t.bruteDmg)}},[e._v(" "+e._s(t.bruteDmg)+" ")]),e._v(" / "),n("span",{style:{color:e.damageLabel(t.burnDmg)}},[e._v(" "+e._s(t.burnDmg)+" ")])]),n("td",e._l(t.wounds,(function(t){return n("div",{key:t.name,staticStyle:{color:"Tomato"}},[e._v(" "+e._s(t)+" ")])})),0)]:e._e()],2)}))],2)],2),n("h3",[e._v("Actions")]),n("vui-button",{staticClass:"center",attrs:{params:{print:1}}},[e._v("Print Report")]),n("vui-button",{staticClass:"center",attrs:{params:{eject:1}}},[e._v("Eject Occupant")])],1)])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[e._v("Organ")]),n("th",[e._v("Trauma")]),n("th",[e._v("Wounds")]),n("th",[e._v("Location")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[n("span",{staticStyle:{color:"LimeGreen"}},[e._v("The occupant has no internal injuries.")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[e._v("Organ")]),n("th",[e._v("Physical / Burn Trauma")]),n("th",[e._v("Wounds")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[n("span",{staticStyle:{color:"LimeGreen"}},[e._v("The occupant has no external injuries.")])])])}],s=(n("99af"),n("d3b7"),n("25f0"),{data:function(){return this.$root.$data.state},methods:{consciousnessLabel:function(e){switch(e){case 0:return"LimeGreen";case 1:return"OrangeRed";case 2:return"Crimson"}},consciousnessText:function(e){switch(e){case 0:return"Conscious";case 1:return"Unconscious";case 2:return"DEAD"}},progressClass:function(e){return e<=50?"bad":e<=90?"average":"good"},brainText:function(e){switch(e){case 0:return"None, patient is braindead";case-1:return"ERROR - Nonstandard biology";default:return e.toString().concat("%")}},damageLabel:function(e){return"Fatal"==e||e<10||"Critical"==e||e<20?"Crimson":"Severe"==e||e<40?"OrangeRed":"Significant"==e||e<60?"Tomato":"Moderate"==e||e<80?"Orange":"Minor"==e||e<100?"LawnGreen":"LimeGreen"},getPressureClass:function(e){switch(e){case 1:return"Crimson";case 2:return"LimeGreen";case 3:return"LawnGreen";case 4:return"Crimson";default:return"LightSkyBlue"}}}}),a=s,o=(n("8795"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"60459196",null);t["default"]=c.exports},"10d1":function(e,t,n){"use strict";var i,r=n("da84"),s=n("e2cc"),a=n("f183"),o=n("6d61"),c=n("acac"),l=n("861d"),u=n("69f3").enforce,d=n("7f9a"),h=!r.ActiveXObject&&"ActiveXObject"in r,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=o("WeakMap",p,c);if(d&&h){i=c.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var m=g.prototype,v=m["delete"],b=m.has,y=m.get,w=m.set;s(m,{delete:function(e){if(l(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new i),v.call(this,e)||t.frozen["delete"](e)}return v.call(this,e)},has:function(e){if(l(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new i),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(l(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new i),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!f(e)){var n=u(this);n.frozen||(n.frozen=new i),b.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},"10d4":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-item",{attrs:{label:"Turret Status:",balance:.4}},[n("vui-button",{class:{red:e.settings.enabled},attrs:{params:{command:"enable",value:1,turret_ref:e.tref}}},[e._v("Enabled")]),n("vui-button",{class:{selected:!e.settings.enabled},attrs:{params:{command:"enable",value:0,turret_ref:e.tref}}},[e._v("Disabled")])],1),e.settings.is_lethal?n("vui-item",{attrs:{label:"Lethal Mode:",balance:.4}},[n("vui-button",{class:{red:e.settings.lethal&&e.settings.can_switch},attrs:{disabled:!e.settings.can_switch,params:{command:"lethal",value:1,turret_ref:e.tref}}},[e._v("On")]),n("vui-button",{class:{selected:!e.settings.lethal&&e.settings.can_switch},attrs:{disabled:!e.settings.can_switch,params:{command:"lethal",value:0,turret_ref:e.tref}}},[e._v("Off")])],1):e._e(),e._l(e.settings.settings,(function(t,i){return n("vui-item",{key:t.id,attrs:{label:t.category,balance:.4}},[n("vui-button",{class:{selected:t.value},attrs:{params:{command:i,value:1,turret_ref:e.tref}}},[e._v("On")]),n("vui-button",{class:{selected:!t.value},attrs:{params:{command:i,value:0,turret_ref:e.tref}}},[e._v("Off")])],1)}))],2)},r=[],s={props:{settings:{type:Object,default:function(){}},tref:{type:String,default:"this"}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"112d":function(e,t,n){"use strict";n("c781")},1148:function(e,t,n){"use strict";var i=n("a691"),r=n("1d80");e.exports="".repeat||function(e){var t=String(r(this)),n="",s=i(e);if(s<0||s==1/0)throw RangeError("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},"11f5":function(e,t,n){"use strict";n("5d50")},1253:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"displayBar"},[n("div",{staticClass:"displayBarFill",style:{width:e.percentage+"%"}},[n("span",[e._t("default")],2)])])},r=[],s=(n("a9e3"),{props:{value:{type:Number,default:50},max:{type:Number,default:100},min:{type:Number,default:0}},computed:{percentage:function(){return(Math.min(this.max,Math.max(this.value,this.min))-this.min)/(this.max-this.min)*100}}}),a=s,o=(n("112d"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"041d7f1a",null);t["default"]=c.exports},"126d":function(e,t,n){var i=n("6da8"),r=n("aaec"),s=n("d094");function a(e){return r(e)?s(e):i(e)}e.exports=a},1276:function(e,t,n){"use strict";var i=n("d784"),r=n("44e7"),s=n("825a"),a=n("1d80"),o=n("4840"),c=n("8aa5"),l=n("50c4"),u=n("14c3"),d=n("9263"),h=n("d039"),f=[].push,p=Math.min,g=4294967295,m=!h((function(){return!RegExp(g,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),s=void 0===n?g:n>>>0;if(0===s)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,s);var o,c,l,u=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,h+"g");while(o=d.call(m,i)){if(c=m.lastIndex,c>p&&(u.push(i.slice(p,o.index)),o.length>1&&o.index<i.length&&f.apply(u,o.slice(1)),l=o[0].length,p=c,u.length>=s))break;m.lastIndex===o.index&&m.lastIndex++}return p===i.length?!l&&m.test("")||u.push(""):u.push(i.slice(p)),u.length>s?u.slice(0,s):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),s=void 0==t?void 0:t[e];return void 0!==s?s.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var d=s(e),h=String(this),f=o(d,RegExp),v=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(m?"y":"g"),y=new f(m?d:"^(?:"+d.source+")",b),w=void 0===r?g:r>>>0;if(0===w)return[];if(0===h.length)return null===u(y,h)?[h]:[];var _=0,x=0,k=[];while(x<h.length){y.lastIndex=m?x:0;var A,C=u(y,m?h:h.slice(x));if(null===C||(A=p(l(y.lastIndex+(m?0:x)),h.length))===_)x=c(h,x,v);else{if(k.push(h.slice(_,x)),k.length===w)return k;for(var E=1;E<=C.length-1;E++)if(k.push(C[E]),k.length===w)return k;x=_=A}}return k.push(h.slice(_)),k}]}),!m)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"12a8":function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),s=n("eb1d"),a=n("7b0b"),o=n("1c0b"),c=n("9bf2");r&&i({target:"Object",proto:!0,forced:s},{__defineGetter__:function(e,t){c.f(a(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},"12fa":function(e,t,n){"use strict";n("93f8")},"130f":function(e,t,n){var i=n("23e7"),r=n("da84"),s=n("2cf4"),a=!r.setImmediate||!r.clearImmediate;i({global:!0,bind:!0,enumerable:!0,forced:a},{setImmediate:s.set,clearImmediate:s.clear})},1310:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},"131a":function(e,t,n){var i=n("23e7"),r=n("d2bb");i({target:"Object",stat:!0},{setPrototypeOf:r})},1393:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("big")},{big:function(){return r(this,"big","","")}})},"13c9":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.services.length?n("h2",[e._v("Programs")]):e._e(),n("i",[e._v("No program loaded. Please select program from list below.")]),e._l(e.displayed_programs,(function(t){return n("div",{key:t.filename},[n("vui-button",{attrs:{params:{PC_runprogram:t.filename}}},[e._v(e._s(t.desc))]),t.running?n("vui-button",{staticClass:"danger",attrs:{icon:"window-close","icon-only":"",params:{PC_killprogram:t.filename}}}):e._e()],1)})),e.services.length?n("h2",[e._v("Services")]):e._e(),e._l(e.services,(function(t){return n("div",{key:t.filename},[n("vui-button",{class:{on:t.service.enabled},attrs:{params:{PC_toggleservice:t.filename}}},[e._v(e._s(t.desc))]),t.service.enabled?n("vui-button",{staticClass:"danger",attrs:{icon:"window-close","icon-only":"",params:{PC_toggleservice:t.filename}}}):e._e()],1)}))],2)},r=[];n("a4d3"),n("e01a"),n("d28b"),n("4de4"),n("a630"),n("e260"),n("d81d"),n("fb6a"),n("b0c0"),n("4fad"),n("d3b7"),n("25f0"),n("3ca3"),n("ddb0");function s(e,t){return u(e)||l(e,t)||o(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(i=(a=o.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){r=!0,s=c}finally{try{i||null==o["return"]||o["return"]()}finally{if(r)throw s}}return n}}function u(e){if(Array.isArray(e))return e}var d={data:function(){return this.$root.$data.state},computed:{services:function(){var e=Object.entries(this.programs).filter((function(e){var t=s(e,2),n=t[1];return 2&n.type})).map((function(e){var t=s(e,2),n=t[0],i=t[1];return i.filename=n,i}));return e},displayed_programs:function(){var e=Object.entries(this.programs).filter((function(e){var t=s(e,2),n=t[1];return 1&n.type})).map((function(e){var t=s(e,2),n=t[0],i=t[1];return i.filename=n,i}));return e}}},h=d,f=n("2877"),p=Object(f["a"])(h,i,r,!1,null,null,null);t["default"]=p.exports},"13d5":function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").left,s=n("a640"),a=n("ae40"),o=n("2d00"),c=n("605d"),l=s("reduce"),u=a("reduce",{1:0}),d=!c&&o>79&&o<83;i({target:"Array",proto:!0,forced:!l||!u||d},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"143c":function(e,t,n){var i=n("74e8");i("Int32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"145e":function(e,t,n){"use strict";var i=n("7b0b"),r=n("23cb"),s=n("50c4"),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=i(this),o=s(n.length),c=r(e,o),l=r(t,o),u=arguments.length>2?arguments[2]:void 0,d=a((void 0===u?o:r(u,o))-l,o-c),h=1;l<c&&c<l+d&&(h=-1,l+=d-1,c+=d-1);while(d-- >0)l in n?n[c]=n[l]:delete n[c],c+=h,l+=h;return n}},"14c3":function(e,t,n){var i=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var s=n.call(e,t);if("object"!==typeof s)throw TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"14d4":function(e,t){ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-monokai",t.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}";var i=e("../lib/dom");i.importCssString(t.cssText,t.cssClass)}))},1503:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.spawnpoint,expression:"!spawnpoint"}],staticClass:"tagselector"},e._l(e.tags,(function(t,i){return n("vui-button",{key:i,class:{selected:e.current_tag==i},on:{click:function(t){e.current_tag=i}}},[e._v(e._s(i)+" ("+e._s(t)+")")])})),1),n("hr",{directives:[{name:"show",rawName:"v-show",value:!e.spawnpoint,expression:"!spawnpoint"}]}),n("table",[e._m(0),e._l(e.spawners,(function(t,i){return n("tr",{directives:[{name:"show",rawName:"v-show",value:e.showEntry(t),expression:"showEntry(data)"}],key:i},[n("td",[e._v(e._s(t.name))]),n("td",[e._v(e._s(t.desc))]),t.max_count>0?n("td",[e._v(e._s(t.max_count-t.count)+" / "+e._s(t.max_count))]):t.spawnatoms>0?n("td",[e._v(e._s(t.spawnatoms))]):n("td",[e._v("∞")]),n("td",{staticClass:"action"},[n("vui-button",{attrs:{disabled:0!==t.cant_spawn,params:{spawn:i,spawnpoint:e.spawnpoint},icon:"star"}},[e._v("Spawn")]),1==t.can_edit?n("vui-button",{attrs:{disabled:1==t.enabled,params:{enable:i}}},[e._v("Enable")]):e._e(),1==t.can_edit?n("vui-button",{attrs:{disabled:0==t.enabled,params:{disable:i}}},[e._v("Disable")]):e._e()],1)])}))],2)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[e._v("Name")]),n("th",[e._v("Description")]),n("th",[e._v("Available Slots")]),n("th",{staticClass:"action"},[e._v("Actions")])])}],s=(n("4de4"),n("5db7"),n("4160"),n("c975"),n("73d9"),n("07ac"),n("159b"),{data:function(){return this.$root.$data.state},computed:{tags:function(){var e=Object.values(this.spawners).flatMap((function(e){return e.tags})),t={All:Object.values(this.spawners).length};return e.filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){t[n]=e.filter((function(e){return e==n})).length})),t}},methods:{showEntry:function(e){return this.spawnpoint?!!Object.prototype.hasOwnProperty.apply(e,["spawnpoints"])&&(e.spawnpoints&&!e.spawnpoints.indexOf(this.spawnpoint)):!e.tags.indexOf(this.current_tag)||"All"==this.current_tag}}}),a=s,o=(n("068f"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"70766bea",null);t["default"]=c.exports},"159b":function(e,t,n){var i=n("da84"),r=n("fdbc"),s=n("17c2"),a=n("9112");for(var o in r){var c=i[o],l=c&&c.prototype;if(l&&l.forEach!==s)try{a(l,"forEach",s)}catch(u){l.forEach=s}}},1650:function(e,t,n){},"170b":function(e,t,n){"use strict";var i=n("ebb5"),r=n("50c4"),s=n("23cb"),a=n("4840"),o=i.aTypedArray,c=i.exportTypedArrayMethod;c("subarray",(function(e,t){var n=o(this),i=n.length,c=s(e,i);return new(a(n,n.constructor))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,r((void 0===t?i:s(t,i))-c))}))},1715:function(e,t,n){n("159b"),n("ddb0"),n("130f"),n("9f96"),n("4795"),n("2b3d"),n("bf19"),n("9861");var i=n("428f");e.exports=i},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),s=n("ae40"),a=r("forEach"),o=s("forEach");e.exports=a&&o?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var i=n("f8cd");e.exports=function(e,t){var n=i(e);if(n%t)throw RangeError("Wrong offset");return n}},"18a5":function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("anchor")},{anchor:function(e){return r(this,"a","name",e)}})},1913:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("fontsize")},{fontsize:function(e){return r(this,"font","size",e)}})},1953:function(e,t,n){"use strict";n("ccdf")},"197b":function(e,t,n){var i=n("746f");i("species")},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19fa":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("vui-button",{staticClass:"fixedLeft",attrs:{icon:"cog",params:{close:1}}},[e._v("Close")])],1),n("div",[n("h2",[e._v("Storage")]),e.secure?n("span",{staticClass:"notice"},[e._v(" "+e._s(-1==e.locked?"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($...":"Secure Access: Please have your identification ready.")+" ")]):e._e()]),e.contents?e._l(e.contents,(function(t){return n("div",{key:t.vend},[n("div",[n("span",{staticClass:"highlight"},[e._v(e._s(t.display_name)+" ("+e._s(t.quantity)+" available)")])]),n("div",{staticStyle:{float:"left"}},[e._v("Vend: ")]),n("vui-button",{staticClass:"statusValue",attrs:{params:{vendItem:t.vend,amount:1},icon:"arrow-alt-circle-down"}},[e._v("x1")]),t.quantity>=5?n("vui-button",{staticClass:"statusValue",attrs:{params:{vendItem:t.vend,amount:5},icon:"arrow-alt-circle-down"}},[e._v("x5")]):e._e(),t.quantity>=10?n("vui-button",{staticClass:"statusValue",attrs:{params:{vendItem:t.vend,amount:10},icon:"arrow-alt-circle-down"}},[e._v("x10")]):e._e(),t.quantity>=25?n("vui-button",{staticClass:"statusValue",attrs:{params:{vendItem:t.vend,amount:25},icon:"arrow-alt-circle-down"}},[e._v("x25")]):e._e(),t.quantity>1?n("vui-button",{staticClass:"statusValue",attrs:{params:{vendItem:t.vend,amount:t.quantity},icon:"arrow-alt-circle-down"}},[e._v("All")]):e._e()],1)})):n("div",{staticClass:"average"},[e._v(" No products loaded. ")])],2)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1bf2":function(e,t,n){var i=n("23e7"),r=n("56ef");i({target:"Reflect",stat:!0},{ownKeys:r})},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),s=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){s=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!s)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},"1ccb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v(" Selected Products:")]),e._l(e.items,(function(t,i){return n("div",{key:i},[e.buying[i]&&e.buying[i]>=0?n("span",[e._v(" "+e._s(e.buying[i])+"x "+e._s(i)+": at "+e._s(t*e.buying[i])+" Credits ")]):e._e()])})),n("h3",[e._v(" Total: "+e._s(e.sum))]),n("h3",[e._v("Please swipe your ID to pay.")]),n("vui-button",{attrs:{params:{return:1},width:"3em"}},[e._v("Return to order menu")])],2)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},"1d1c":function(e,t,n){var i=n("23e7"),r=n("83ab"),s=n("37e8");i({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperties:s})},"1d73":function(e,t,n){},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dbb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[null==e.password?n("vui-button",{on:{click:e.join}},[e._v(e._s(e.ch.title))]):[n("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{type:"text"},domProps:{value:e.password},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.join_with(t)},input:function(t){t.target.composing||(e.password=t.target.value)}}}),n("vui-button",{attrs:{params:{join:{target:e.re,password:e.password}}}},[e._v("Join "+e._s(e.ch.title))])]],2)},r=[],s={data:function(){return{password:null}},methods:{join:function(){this.ch.password?this.password="":this.$toTopic({join:{target:this.re}})},join_with:function(){this.$toTopic({join:{target:this.re,password:this.password}})}},props:{ch:{type:Object,default:function(){return{}}},re:{type:String,default:""}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),s=n("2d00"),a=r("species");e.exports=function(e){return s>=51||!i((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e25":function(e,t,n){"use strict";var i=n("23e7"),r=n("58a8").end,s=n("c8d2"),a=s("trimEnd"),o=a?function(){return r(this)}:"".trimEnd;i({target:"String",proto:!0,forced:a},{trimEnd:o,trimRight:o})},"1ec1":function(e,t){var n=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:n(1+e)}},"1ee6":function(e,t,n){},"1f5a":function(e,t,n){},"1fe2":function(e,t,n){"use strict";var i=n("6d61"),r=n("acac");i("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"203b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.active?n("div",[n("view-records-general",{attrs:{"hide-advanced":""}},[n("vui-group-item",{attrs:{label:"Blood type:"}},[n("view-records-field",{attrs:{editable:(2&e.editable)>0,path:"active.medical.blood_type"}},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.$root.$data.state,"editingvalue",t.target.multiple?n:n[0])}}},e._l(e.choices.medical.blood_type,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v(e._s(t))])})),0)])],1),n("vui-group-item",{attrs:{label:"DNA:"}},[n("view-records-field",{attrs:{editable:(2&e.editable)>0,path:"active.medical.blood_dna"}})],1),n("vui-group-item",{attrs:{label:"Disabilities:"}},[n("view-records-field",{attrs:{editable:(2&e.editable)>0,path:"active.medical.disabilities"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],domProps:{value:e.$root.$data.state.editingvalue},on:{input:function(t){t.target.composing||e.$set(e.$root.$data.state,"editingvalue",t.target.value)}}})])],1),n("vui-group-item",{attrs:{label:"Allergies:"}},[n("view-records-field",{attrs:{editable:(2&e.editable)>0,path:"active.medical.allergies"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],domProps:{value:e.$root.$data.state.editingvalue},on:{input:function(t){t.target.composing||e.$set(e.$root.$data.state,"editingvalue",t.target.value)}}})])],1),n("vui-group-item",{attrs:{label:"Diseases:"}},[n("view-records-field",{attrs:{editable:(2&e.editable)>0,path:"active.medical.diseases"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],domProps:{value:e.$root.$data.state.editingvalue},on:{input:function(t){t.target.composing||e.$set(e.$root.$data.state,"editingvalue",t.target.value)}}})])],1),n("vui-group-item",{attrs:{label:"Comments:"}},[e._l(e.active.medical.comments,(function(t){return n("div",{key:t},[e._v(e._s(t)+" "),(2&e.editable)>0?n("vui-button",{staticClass:"danger",attrs:{params:{removefromrecord:{value:t,key:["active","medical","comments"]}},icon:"trash-alt"}}):e._e()],1)})),0==e.active.medical.comments.length?n("div",[e._v("There are no comments.")]):e._e(),(2&e.editable)>0?n("view-records-field",{attrs:{"edit-button":"Add"},on:{save:function(t){return e.add("active.medical.comments",t)}}}):e._e()],2),n("vui-group-item",{attrs:{label:"Notes:"}},[n("view-records-field",{attrs:{editable:(2&e.editable)>0,path:"active.medical.notes"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],domProps:{value:e.$root.$data.state.editingvalue},on:{input:function(t){t.target.composing||e.$set(e.$root.$data.state,"editingvalue",t.target.value)}}})])],1)],1)],1):e._e()},r=[],s=(n("ac1f"),n("1276"),{data:function(){return this.$root.$data.state},methods:{add:function(e,t){this.$toTopic({addtorecord:{value:t,key:e.split(".")}})}}}),a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"207c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-group",[n("vui-group-item",{attrs:{label:"Microphone:"}},[n("vui-button",{class:{selected:e.listening},attrs:{params:{talk:1,nowindow:1}}},[e._v("On")]),n("vui-button",{class:{selected:!e.listening},attrs:{params:{talk:1,nowindow:1}}},[e._v("Off")])],1),n("vui-group-item",{attrs:{label:"Frequency:"}},[n("vui-button",{attrs:{params:{freq:-10,nowindow:1}}},[e._v("--")]),n("vui-button",{attrs:{params:{freq:-2,nowindow:1}}},[e._v("-")]),n("span",[e._v(e._s(e.frequency))]),n("vui-button",{attrs:{params:{freq:2,nowindow:1}}},[e._v("+")]),n("vui-button",{attrs:{params:{freq:10,nowindow:1}}},[e._v("++")])],1),n("vui-item",{attrs:{label:"Range:"}},[n("vui-input-slider",{attrs:{min:0,max:4},model:{value:e.radio_range,callback:function(t){e.radio_range=t},expression:"radio_range"}})],1),n("hr"),e._l(e.channels,(function(t){return n("vui-group-item",{key:t.name,attrs:{label:t.name}},[n("vui-button",{class:{selected:t.listening},attrs:{params:{ch_name:t.name,listen:1,nowindow:1}}},[e._v("On")]),n("vui-button",{class:{selected:!t.listening},attrs:{params:{ch_name:t.name,listen:1,nowindow:1}}},[e._v("Off")])],1)}))],2)],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},2099:function(e,t){ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,o=e("./anchor").Anchor,c=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,u=a.comparePoints,d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){i.implement(this,r),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return d.$tokenizer=new l({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length||-1!="`$\\".indexOf(i)?e=i:n.inFormatString&&("n"==i||"t"==i?e="\n":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:i>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,i){var r=e(t.substr(1),n,i);return i.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var i=n[0];return i.fmtString=e,e=this.splitRegex.exec(e),i.guard=e[1],i.fmt=e[2],i.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),d.prototype.getTokenizer=function(){return d.$tokenizer},d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var i=e.session;switch(t){case"CURRENT_WORD":var r=i.getWordRange();case"SELECTION":case"SELECTED_TEXT":return i.getTextRange(r);case"CURRENT_LINE":return i.getLine(e.getCursorPosition().row);case"PREV_LINE":return i.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return i.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return i.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(e,t,n){var i=t.flag||"",r=t.guard;r=new RegExp(r,i.replace(/[^gi]/,""));var s=this.tokenizeTmSnippet(t.fmt,"formatString"),a=this,o=e.replace(r,(function(){a.variables.__=arguments;for(var e=a.resolveVariables(s,n),t="E",i=0;i<e.length;i++){var r=e[i];if("object"==typeof r)if(e[i]="",r.changeCase&&r.local){var o=e[i+1];o&&"string"==typeof o&&("u"==r.changeCase?e[i]=o[0].toUpperCase():e[i]=o[0].toLowerCase(),e[i+1]=o.substr(1))}else r.changeCase&&(t=r.changeCase);else"U"==t?e[i]=r.toUpperCase():"L"==t&&(e[i]=r.toLowerCase())}return e.join("")}));return this.variables.__=null,o},this.resolveVariables=function(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];if("string"==typeof r)n.push(r);else{if("object"!=typeof r)continue;if(r.skip)a(r);else{if(r.processed<i)continue;if(r.text){var s=this.getVariableValue(t,r.text);s&&r.fmtString&&(s=this.tmStrFormat(s,r)),r.processed=i,null==r.expectIf?s&&(n.push(s),a(r)):s?r.skip=r.elseBranch:a(r)}else(null!=r.tabstopId||null!=r.changeCase)&&n.push(r)}}}function a(t){var n=e.indexOf(t,i+1);-1!=n&&(i=n)}return n},this.insertSnippetForSelection=function(e,t){var n=e.getCursorPosition(),i=e.session.getLine(n.row),r=e.session.getTabString(),s=i.match(/^\s*/)[0];n.column<s.length&&(s=s.slice(0,n.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=this.resolveVariables(a,e),a=a.map((function(e){return"\n"==e?e+s:"string"==typeof e?e.replace(/\t/g,r):e}));var o=[];a.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,i=o[n];if(i||(i=o[n]=[],i.index=n,i.value=""),-1===i.indexOf(e)){i.push(e);var r=a.indexOf(e,t+1);if(-1!==r){var s=a.slice(t+1,r),c=s.some((function(e){return"object"===typeof e}));c&&!i.value?i.value=s:!s.length||i.value&&"string"===typeof i.value||(i.value=s.join(""))}}}})),o.forEach((function(e){e.length=0}));var c={};function l(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if("object"==typeof i){if(c[i.tabstopId])continue;var r=e.lastIndexOf(i,n-1);i=t[r]||{tabstopId:i.tabstopId}}t[n]=i}return t}for(var u=0;u<a.length;u++){var d=a[u];if("object"==typeof d){var f=d.tabstopId,p=a.indexOf(d,u+1);if(c[f])c[f]===d&&(c[f]=null);else{var g=o[f],m="string"==typeof g.value?[g.value]:l(g.value);m.unshift(u+1,Math.max(0,p-u)),m.push(d),c[f]=d,a.splice.apply(a,m),-1===g.indexOf(d)&&g.push(d)}}}var v=0,b=0,y="";a.forEach((function(e){if("string"===typeof e){var t=e.split("\n");t.length>1?(b=t[t.length-1].length,v+=t.length-1):b+=e.length,y+=e}else e.start?e.end={row:v,column:b}:e.start={row:v,column:b}}));var w=e.getSelectionRange(),_=e.session.replace(w,y),x=new h(e),k=e.inVirtualSelectionMode&&e.selection.index;x.addTabstops(o,w.start,_,k)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if(t=t.split("/").pop(),"html"===t||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),i=e.session.getState(n.row);"object"===typeof i&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?t="javascript":"css-"==i.substring(0,4)?t="css":"php-"==i.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),r=e.session.getLine(i.row),s=r.substring(0,i.column),a=r.substr(i.column),o=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=o[e];return t&&(n=this.findMatchingSnippet(t,s,a)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var r=e[i];if((!r.startRe||r.startRe.test(t))&&((!r.endRe||r.endRe.test(n))&&(r.startRe||r.endRe)))return r.matchBefore=r.startRe?r.startRe.exec(t):[""],r.matchAfter=r.endRe?r.endRe.exec(n):[""],r.replaceBefore=r.triggerRe?r.triggerRe.exec(t)[0]:"",r.replaceAfter=r.endTriggerRe?r.endTriggerRe.exec(n)[0]:"",r}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,i=this.snippetNameMap,r=this;function a(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function o(e,t,n){return e=a(e),t=a(t),n?(e=t+e,e&&"$"!=e[e.length-1]&&(e+="$")):(e+=t,e&&"^"!=e[0]&&(e="^"+e)),new RegExp(e)}function c(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],i[t]={});var a=i[t];if(e.name){var c=a[e.name];c&&r.unregister(c),a[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=o(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=o(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?c(e):Array.isArray(e)&&e.forEach(c),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,i=this.snippetNameMap;function r(e){var r=i[e.scope||t];if(r&&r[e.name]){delete r[e.name];var s=n[e.scope||t],a=s&&s.indexOf(e);a>=0&&s.splice(a,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");var t,n=[],i={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;while(t=r.exec(e)){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(c){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var s=t[2],a=t[3];if("regex"==s){var o=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=o.exec(a)[1],i.trigger=o.exec(a)[1],i.endTrigger=o.exec(a)[1],i.endGuard=o.exec(a)[1]}else"snippet"==s?(i.tabTrigger=a.match(/^\S*/)[0],i.name||(i.name=a)):i[s]=a}}return n},this.getSnippetByName=function(e,t){var n,i=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var r=i[t];return r&&(n=r[e]),!!n}),this),n}}).call(d.prototype);var h=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,i=e.end,r=n.row,s=i.row,a=s-r,o=i.column-n.column;if(t&&(a=-a,o=-o),!this.$inChange&&t){var c=this.selectedTabstop,l=c&&!c.some((function(e){return u(e.start,n)<=0&&u(e.end,i)>=0}));if(l)return this.detach()}for(var d=this.ranges,h=0;h<d.length;h++){var f=d[h];f.end.row<n.row||(t&&u(n,f.start)<0&&u(i,f.end)>0?(this.removeRange(f),h--):(f.start.row==r&&f.start.column>n.column&&(f.start.column+=o),f.end.row==r&&f.end.column>=n.column&&(f.end.column+=o),f.start.row>=r&&(f.start.row+=a),f.end.row>=r&&(f.end.row+=a),u(f.start,f.end)>0&&this.removeRange(f)))}d.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var n=this.editor.session,i=n.getTextRange(e.firstNonLinked),r=e.length;r--;){var s=e[r];if(s.linked){var a=t.snippetManager.tmStrFormat(i,s.original);n.replace(s,a)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=this.ranges.length;i--;)if(!this.ranges[i].linked){var r=this.ranges[i].contains(e.row,e.column),s=n||this.ranges[i].contains(t.row,t.column);if(r&&s)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index],t&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var i=t.length;i--;)t.hasLinkedRanges&&t[i].linked||n.addRange(t[i].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var i=a.fromPoints(n,n);g(i.start,t),g(i.end,t),e[0]=[i],e[0].index=0}var r=this.index,s=[r+1,0],o=this.ranges;e.forEach((function(e,n){for(var i=this.$openTabstops[n]||e,r=e.length;r--;){var c=e[r],l=a.fromPoints(c.start,c.end||c.start);p(l.start,t),p(l.end,t),l.original=c,l.tabstop=i,o.push(l),i!=e?i.unshift(l):i[r]=l,c.fmtString?(l.linked=!0,i.hasLinkedRanges=!0):i.firstNonLinked||(i.firstNonLinked=l)}i.firstNonLinked||(i.hasLinkedRanges=!1),i===e&&(s.push(i),this.$openTabstops[n]=i),this.addTabstopMarkers(i)}),this),s.length>2&&(this.tabstops.length&&s.push(s.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,s))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),-1!=t&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new c,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(h.prototype);var f={};f.onChange=o.prototype.onChange,f.setPosition=function(e,t){this.pos.row=e,this.pos.column=t},f.update=function(e,t,n){this.$insertRight=n,this.pos=e,this.onChange(t)};var p=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},g=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new d;var m=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(m.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var i=e("../virtual_renderer").VirtualRenderer,r=e("../editor").Editor,s=e("../range").Range,a=e("../lib/event"),o=e("../lib/lang"),c=e("../lib/dom"),l=function(e){var t=new i(e);t.$maxLines=4;var n=new r(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusWaitTimout=0,n.$highlightTagPending=!0,n},u=function(e){var t=c.createElement("div"),n=new l(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var i,r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),d.start.row=d.end.row=t.row,e.stop()}));var u=new s(-1,0,-1,1/0),d=new s(-1,0,-1,1/0);d.id=n.session.addMarker(d,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?u.id&&(n.session.removeMarker(u.id),u.id=null):u.id=n.session.addMarker(u,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(i){if(i.x!=e.x||i.y!=e.y){i=e,i.scrollTop=n.renderer.scrollTop;var t=i.getDocumentPosition().row;u.start.row!=t&&(u.id||n.setRow(t),f(t))}}else i=e})),n.renderer.on("beforeRender",(function(){if(i&&-1!=u.start.row){i.$pos=null;var e=i.getDocumentPosition().row;u.id||n.setRow(e),f(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow];i!=t.selectedNode&&(t.selectedNode&&c.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=i,i&&c.addCssClass(i,"ace_selected"))}));var h=function(){f(-1)},f=function(e,t){e!==u.start.row&&(u.start.row=u.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return u.start.row},a.addListener(n.container,"mouseout",h),n.on("hide",h),n.on("changeSelection",h),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var p=n.session.bgTokenizer;return p.$tokenizeRow=function(e){var t=n.data[e],i=[];if(!t)return i;"string"==typeof t&&(t={value:t}),t.caption||(t.caption=t.value||t.name);for(var r,s,a=-1,o=0;o<t.caption.length;o++)s=t.caption[o],r=t.matchMask&1<<o?1:0,a!==r?(i.push({type:t.className||(r?"completion-highlight":""),value:s}),a=r):i[i.length-1].value+=s;if(t.meta){var c=n.renderer.$size.scrollerWidth/n.renderer.layerConfig.characterWidth,l=t.meta;l.length+t.caption.length>c-2&&(l=l.substr(0,c-t.caption.length-3)+"…"),i.push({type:"rightAlignedText",value:l})}return i},p.$updateOnChange=r,p.start=r,n.session.$computeWidth=function(){return this.screenWidth=0},n.$blockScrolling=1/0,n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.data=[],n.setData=function(e){n.setValue(o.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return d.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),d.start.row!=e&&(n.selection.clearSelection(),d.start.row=d.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,r){var s=this.container,a=window.innerHeight,o=window.innerWidth,c=this.renderer,l=c.$maxLines*t*1.4,u=e.top+this.$borderSize,d=u>a/2&&!r;d&&u+t+l>a?(c.$maxPixelHeight=u-2*this.$borderSize,s.style.top="",s.style.bottom=a-u+"px",n.isTopdown=!1):(u+=t,c.$maxPixelHeight=a-u-.2*t,s.style.top=u+"px",s.style.bottom="",n.isTopdown=!0),s.style.display="",this.renderer.$textLayer.checkForSizeChanges();var h=e.left;h+s.offsetWidth>o&&(h=o-s.offsetWidth),s.style.left=h+"px",this._signal("show"),i=null,n.isOpen=!0},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n};c.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=u})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var i=0,r=e.length;0===r&&n();for(var s=0;s<r;s++)t(e[s],(function(e,t){i++,i===r&&n(e,t)}))};var i=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||i;for(var r=[],s=t-1;s>=0;s--){if(!n.test(e[s]))break;r.push(e[s])}return r.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||i;for(var r=[],s=t;s<e.length;s++){if(!n.test(e[s]))break;r.push(e[s])}return r},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),i=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(i,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(i,n.column)}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],(function(e,t,n){"use strict";var i=e("./keyboard/hash_handler").HashHandler,r=e("./autocomplete/popup").AcePopup,s=e("./autocomplete/util"),a=(e("./lib/event"),e("./lib/lang")),o=e("./lib/dom"),c=e("./snippets").snippetManager,l=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new i,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new r(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var i=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var r=i.layerConfig.lineHeight,s=i.$cursorLayer.getPixelPosition(this.base,!0);s.left-=this.popup.getTextLeftOffset();var a=e.container.getBoundingClientRect();s.top+=a.top-i.layerConfig.offset,s.left+=a.left-e.renderer.scrollLeft,s.left+=i.gutterWidth,this.popup.show(s,r)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),i=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),r=this.popup&&this.popup.container;t==n||t.parentNode==r||i||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){var t=this.popup.getRow(),n=this.popup.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n;break}this.popup.setRow(t)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText)for(var n,i=this.editor.selection.getAllRanges(),r=0;n=i[r];r++)n.start.column-=this.completions.filterText.length,this.editor.session.remove(n);e.snippet?c.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.detach()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),i=e.getCursorPosition(),r=s.getCompletionPrefix(e);this.base=n.doc.createAnchor(i.row,i.column-r.length),this.base.$insertRight=!0;var a=[],o=e.completers.length;return e.completers.forEach((function(c,l){c.getCompletions(e,n,i,r,(function(n,i){!n&&i&&(a=a.concat(i)),t(null,{prefix:s.getCompletionPrefix(e),matches:a,finished:0===--o})}))})),!0},this.showPopup=function(e){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(e){if(e&&this.base&&this.completions){var t=this.editor.getCursorPosition(),n=this.editor.session.getTextRange({start:this.base,end:t});if(n==this.completions.filterText)return;return this.completions.setFilter(n),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=n||this.completions.filtered[0].snippet?void this.openPopup(this.editor,n,e):this.detach():this.detach()}var i=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var r=function(){if(n.finished)return this.detach()}.bind(this),s=n.prefix,a=n&&n.matches;if(!a||!a.length)return r();if(0===s.indexOf(n.prefix)&&i==this.gatherCompletionsId){this.completions=new u(a),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(s);var o=this.completions.filtered;return o.length&&(1!=o.length||o[0].value!=s||o[0].snippet)?this.autoInsert&&1==o.length&&n.finished?this.insertMatch(o[0]):void this.openPopup(this.editor,s,e):r()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),i=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(i=e.getDocTooltip(n)),i})),i||(i=n),"string"==typeof i&&(i={docText:i}),i&&(i.docHTML||i.docText)?void this.showDocTooltip(i):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=o.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,i=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,window.innerWidth-i.right<320?(t.style.right=window.innerWidth-i.left+"px",t.style.left=""):(t.style.left=i.right+1+"px",t.style.right=""),t.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){var t=e.target;while(t&&t!=this.tooltipNode){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}}}).call(l.prototype),l.startCommand={name:"startAutocomplete",exec:function(e){e.completer||(e.completer=new l),e.completer.autoInsert=!1,e.completer.autoSelect=!0,e.completer.showPopup(e),e.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=this.filterCompletions(t,this.filterText),t=t.sort((function(e,t){return t.exactMatch-e.exactMatch||t.score-e.score}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],i=t.toUpperCase(),r=t.toLowerCase();e:for(var s,a=0;s=e[a];a++){var o=s.value||s.caption||s.snippet;if(o){var c,l,u=-1,d=0,h=0;if(this.exactMatch){if(t!==o.substr(0,t.length))continue e}else for(var f=0;f<t.length;f++){var p=o.indexOf(r[f],u+1),g=o.indexOf(i[f],u+1);if(c=p>=0&&(g<0||p<g)?p:g,c<0)continue e;l=c-u-1,l>0&&(-1===u&&(h+=10),h+=l),d|=1<<c,u=c}s.matchMask=d,s.exactMatch=h?0:1,s.score=(s.score||0)-h,n.push(s)}}return n}}).call(u.prototype),t.Autocomplete=l,t.FilteredList=u})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../range").Range,r=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function s(e,t){var n=e.getTextRange(i.fromPoints({row:0,column:0},t));return n.split(r).length-1}function a(e,t){var n=s(e,t),i=e.getValue().split(r),a=Object.create(null),o=i[n];return i.forEach((function(e,t){if(e&&e!==o){var r=Math.abs(n-t),s=i.length-r;a[e]?a[e]=Math.max(s,a[e]):a[e]=s}})),a}t.getCompletions=function(e,t,n,i,r){var s=a(t,n,i),o=Object.keys(s);r(null,o.map((function(e){return{caption:e,value:e,score:s[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var i=e("../snippets").snippetManager,r=e("../autocomplete").Autocomplete,s=e("../config"),a=e("../lib/lang"),o=e("../autocomplete/util"),c=e("../autocomplete/text_completer"),l={getCompletions:function(e,t,n,i,r){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,i,r);var s=e.session.getState(n.row),a=t.$mode.getCompletions(s,t,n,i);r(null,a)}},u={getCompletions:function(e,t,n,r,s){var a=i.snippetMap,o=[];i.getActiveScopes(e).forEach((function(e){for(var t=a[e]||[],n=t.length;n--;){var i=t[n],r=i.name||i.tabTrigger;r&&o.push({caption:r,snippet:i.content,meta:i.tabTrigger&&!i.name?i.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),s(null,o)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",a.escapeHTML(e.caption),"</b>","<hr></hr>",a.escapeHTML(e.snippet)].join(""))}},d=[u,c,l];t.setCompleters=function(e){d.length=0,e&&d.push.apply(d,e)},t.addCompleter=function(e){d.push(e)},t.textCompleter=c,t.keyWordCompleter=l,t.snippetCompleter=u;var h={name:"expandSnippet",exec:function(e){return i.expandWithTab(e)},bindKey:"Tab"},f=function(e,t){p(t.session.$mode)},p=function(e){var t=e.$id;i.files||(i.files={}),g(t),e.modes&&e.modes.forEach(p)},g=function(e){if(e&&!i.files[e]){var t=e.replace("mode","snippets");i.files[e]={},s.loadModule(t,(function(t){t&&(i.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=i.parseSnippetFile(t.snippetText)),i.register(t.snippets||[],t.scope),t.includeScopes&&(i.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){g("ace/mode/"+e)}))))}))}},m=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!o.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){var i=o.getCompletionPrefix(t);i&&!n&&(t.completer||(t.completer=new r),t.completer.autoInsert=!1,t.completer.showPopup(t))}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.addCommand(r.startCommand)):this.commands.removeCommand(r.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.on("afterExec",m)):this.commands.removeListener("afterExec",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(h),this.on("changeMode",f),f(null,this)):(this.commands.removeCommand(h),this.off("changeMode",f))},value:!1}})})),function(){ace.acequire(["ace/ext/language_tools"],(function(){}))}()},"20a6":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.passcode,expression:"passcode"}],attrs:{placeholder:"Enter passcode...",autofocus:""},domProps:{value:e.passcode},on:{input:function(t){t.target.composing||(e.passcode=t.target.value)}}}),n("vui-button",{attrs:{params:{passcode:e.passcode}}},[e._v("Submit")])],1)},r=[],s={data:function(){return{passcode:""}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"20bf":function(e,t,n){"use strict";var i=n("8aa7"),r=n("ebb5").exportTypedArrayStaticMethod,s=n("a078");r("from",s,i)},"210c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.minButton?n("vui-button",{attrs:{disabled:e.val<=e.min},on:{click:function(t){return e.onUpdatedValue(e.min+1-e.val)}}},[e._v("Min")]):e._e(),e._l(e.subButtons,(function(t){return n("vui-button",{key:"-"+t,attrs:{disabled:e.val-t<e.min},on:{click:function(n){e.onUpdatedValue(-Math.pow(10,t))}}},[e._v("-")])})),n("input",{ref:"input",style:{width:e.width},domProps:{value:e.val},on:{keypress:e.onKeyPress,input:function(t){return e.onFieldUpdate(t.target)}}}),e._l(e.addButtons,(function(t){return n("vui-button",{key:"+"+t,attrs:{disabled:e.val+t>e.max},on:{click:function(n){return e.onUpdatedValue(Math.pow(10,t))}}},[e._v("+")])})),e.maxButton?n("vui-button",{attrs:{disabled:e.val>=e.max},on:{click:function(t){return e.onUpdatedValue(e.max-e.val)}}},[e._v("Max")]):e._e()],2)},r=[],s=(n("a9e3"),n("8a79"),n("c0d6")),a={props:{value:{type:Number,default:0},minButton:{type:Boolean,default:!1},maxButton:{type:Boolean,default:!1},buttonCount:{type:Number,default:1},min:{type:Number,default:0},max:{type:Number,default:100},pushState:{type:Boolean,default:!0},width:{type:String,default:"10em"},decimalPlaces:{type:Number,default:0}},data:function(){return{val:this.value}},computed:{subButtons:function(){if(!this.buttonCount)return[];for(var e=[],t=this.buttonCount-1;t>=0;t--)e.push(t);return e},addButtons:function(){if(!this.buttonCount)return[];for(var e=[],t=0;t<this.buttonCount;t++)e.push(t);return e}},methods:{onFieldUpdate:function(e){var t=this.val,n=Number(e.value);isNaN(n)&&(n=this.val),console.log(n,e.value,this.value,this.val),this.UpdateValue(n),t!=this.val||e.value.endsWith(".")||(this.$refs.input.value=this.val)},onUpdatedValue:function(e){var t=this.value;e&&(t+=e),this.UpdateValue(t)},UpdateValue:function(e){e=+(Math.round(e+"e+"+this.decimalPlaces)+"e-"+this.decimalPlaces),e>this.max&&(e=this.max),e<this.min&&(e=this.min),this.val=e,this.$emit("input",e),this.pushState&&s["a"].pushState()},onKeyPress:function(e){this.$emit("keypress",e)}},watch:{value:function(){this.val=this.value}}},o=a,c=(n("08cc"),n("2877")),l=Object(c["a"])(o,i,r,!1,null,"8b39c97e",null);t["default"]=l.exports},"219c":function(e,t,n){"use strict";var i=n("ebb5"),r=i.aTypedArray,s=i.exportTypedArrayMethod,a=[].sort;s("sort",(function(e){return a.call(r(this),e)}))},2266:function(e,t,n){var i=n("825a"),r=n("e95a"),s=n("50c4"),a=n("0366"),o=n("35a1"),c=n("2a62"),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,h,f,p,g,m,v=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),_=a(t,v,1+b+w),x=function(e){return u&&c(u),new l(!0,e)},k=function(e){return b?(i(e),w?_(e[0],e[1],x):_(e[0],e[1])):w?_(e,x):_(e)};if(y)u=e;else{if(d=o(e),"function"!=typeof d)throw TypeError("Target is not iterable");if(r(d)){for(h=0,f=s(e.length);f>h;h++)if(p=k(e[h]),p&&p instanceof l)return p;return new l(!1)}u=d.call(e)}g=u.next;while(!(m=g.call(u)).done){try{p=k(m.value)}catch(A){throw c(u),A}if("object"==typeof p&&p&&p instanceof l)return p}return new l(!1)}},2315:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("strike")},{strike:function(){return r(this,"strike","","")}})},2351:function(e,t,n){var i=n("746f");i("split")},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,s=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):s(n,t)}},"23dc":function(e,t,n){var i=n("d44e");i(Math,"Math",!0)},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,s=n("9112"),a=n("6eeb"),o=n("ce4e"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,d,h,f,p,g=e.target,m=e.global,v=e.stat;if(u=m?i:v?i[g]||o(g,{}):(i[g]||{}).prototype,u)for(d in t){if(f=t[d],e.noTargetGet?(p=r(u,d),h=p&&p.value):h=u[d],n=l(m?d:g+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f===typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&s(f,"sham",!0),a(u,d,f,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),s=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,s)}},2480:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-button",{attrs:{params:{stop:1}}},[e._v("Stop")]),n("br"),n(e.term,{tag:"component",staticClass:"terminal"})],1)},r=[],s={props:["fg","bg"],computed:{style:function(){return{color:"#"+this.fg,"background-color":"#"+this.bg}}},template:'<span :style="style"><slot/></span>'},a={props:["to"],methods:{invoke:function(){this.$toTopic({terminal_topic:this.to})}},template:'<span style="cursor: pointer;" @click.prevent="invoke"><slot/></span>'},o={data:function(){return{s:this.$root.$data.state}},computed:{term:function(){return{components:{co:s,to:a},template:"<div>".concat(this.s.terminal,"</div>")}}}},c=o,l=(n("7a67"),n("2877")),u=Object(l["a"])(c,i,r,!1,null,"5da4d0bc",null);t["default"]=u.exports},2532:function(e,t,n){"use strict";var i=n("23e7"),r=n("5a34"),s=n("1d80"),a=n("ab13");i({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(s(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},"253b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("h3",[e._v("Auxiliary Timing Unit:")]),e.timeractive?n("vui-button",{attrs:{params:{time:1}}},[e._v("Arming")]):n("vui-button",{attrs:{params:{time:1}}},[e._v("Not Arming")])],1),n("div",[n("h3",[e._v("Time Left:")]),n("vui-button",{attrs:{params:{tp:-30}}},[e._v("--")]),n("vui-button",{attrs:{params:{tp:-1}}},[e._v("-")]),n("span",{staticClass:"value"},[e._v(e._s(e.minute)+":"+e._s(e.second))]),n("vui-button",{attrs:{params:{tp:1}}},[e._v("+")]),n("vui-button",{attrs:{params:{tp:30}}},[e._v("++")])],1),n("div",[n("h3",[e._v("Scanning:")]),e.scanning?n("vui-button",{attrs:{params:{scanning:1}}},[e._v("Armed")]):n("vui-button",{attrs:{params:{scanning:1}}},[e._v("Not Armed")]),n("span",{staticClass:"value"},[e._v("Movement sensor active when armed!")])],1),n("div",[n("h3",[e._v("Range:")]),n("vui-button",{attrs:{params:{range:-1}}},[e._v("-")]),n("span",{staticClass:"value"},[e._v(e._s(e.range))]),n("vui-button",{attrs:{params:{range:1}}},[e._v("+")])],1)])},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=(n("de06"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"10d6546a",null);t["default"]=c.exports},"256f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("vui-group",[n("vui-group-item",{attrs:{label:"UID:"}},[e._v(e._s(e.incident.id))]),n("vui-group-item",{attrs:{label:"Date:"}},[e._v(e._s(e.incident.datetime))]),n("vui-group-item",{attrs:{label:"Charges:"}},e._l(e.incident.charges,(function(t,i){return n("span",{key:i},[e._v(" "+e._s(t)),i+1<e.incident.charges.length?n("span",[e._v(", ")]):e._e()])})),0),n("vui-group-item",{attrs:{label:"Notes:"}},[e._v(e._s(e.incident.notes))])],1)},r=[],s={props:{incident:{type:Object,default:function(){}}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},2575:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Tank Status")]),n("vui-group",[n("vui-group-item",{attrs:{label:"Tank Label:"}},[e._v(" "+e._s(e.name)+" "),n("vui-button",{staticClass:"float-right",attrs:{icon:"pencil-alt",params:{relabel:1},disabled:!e.canLabel}},[e._v("Relabel")])],1),n("vui-group-item",{attrs:{label:"Tank Pressure:"}},[e._v(" "+e._s(e.tankPressure)+" kPa ")]),n("vui-group-item",{attrs:{label:"Port Status:"}},[n("span",{class:e.portConnected?e.good:e.average},[e._v(e._s(e.portConnected?"Connected":"Disconnected"))])]),n("vui-group-row",[n("h3",[e._v("Holding Tank Status")])]),e.hasHoldingTank?[n("vui-group-item",{attrs:{label:"Tank Label:"}},[e._v(" "+e._s(e.holdingTank.name)),n("vui-button",{staticClass:"float-right",attrs:{icon:"eject",params:{remove_tank:1}}},[e._v("Eject")])],1),n("vui-group-item",{attrs:{label:"Tank Pressure:"}},[e._v(" "+e._s(e.holdingTank.tankPressure)+" kPa ")])]:n("vui-group-item",[n("span",{staticClass:"average"},[n("i",[e._v("No holding tank inserted.")])])]),n("vui-group-row",[n("h3",[e._v("Release Valve Status")])]),n("vui-group-item",{attrs:{label:"Release Pressure:"}},[n("vui-progress",{staticStyle:{width:"100%"},attrs:{value:e.releasePressure,min:e.minReleasePressure,max:e.maxReleasePressure}}),n("div",{staticStyle:{clear:"both","padding-top":"4px"}},[n("vui-input-numeric",{attrs:{width:"5em","button-count":4,min:e.minReleasePressure,max:e.maxReleasePressure},on:{input:function(t){return e.$toTopic({pressure_set:e.releasePressure})}},model:{value:e.releasePressure,callback:function(t){e.releasePressure=t},expression:"releasePressure"}},[e._v(e._s(e.releasePressure)+" kPa ")])],1)],1),n("vui-group-item",{attrs:{label:"Release Valve:"}},[n("vui-button",{class:{selected:e.valveOpen},attrs:{icon:"lock-open",params:{toggle:1}}},[e._v("Open")]),n("vui-button",{class:{selected:!e.valveOpen},attrs:{icon:"lock",params:{toggle:1}}},[e._v("Close")])],1)],2)],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"25a1":function(e,t,n){"use strict";var i=n("ebb5"),r=n("d58f").right,s=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduceRight",(function(e){return r(s(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},"25eb":function(e,t,n){var i=n("23e7"),r=n("c20d");i({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},"25f0":function(e,t,n){"use strict";var i=n("6eeb"),r=n("825a"),s=n("d039"),a=n("ad6d"),o="toString",c=RegExp.prototype,l=c[o],u=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),d=l.name!=o;(u||d)&&i(RegExp.prototype,o,(function(){var e=r(this),t=String(e.source),n=e.flags,i=String(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n);return"/"+t+"/"+i}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),s=n("b622"),a=n("83ab"),o=s("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[o]&&n(t,o,{configurable:!0,get:function(){return this}})}},2653:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"clear-both"},[n("vui-img",{staticClass:"character-image",attrs:{name:"character"}}),n("p",[e._v(" Welcome, "),n("strong",[e._v(e._s(e.character_name))]),e._v("."),n("br"),e._v(" Round duration: "),n("strong",[e._v(e._s(e.round_duration))]),n("br"),e._v(" Alert level: "),n("strong",{style:{color:e.alertLevelColor}},[e._v(e._s(e.alert_level))]),n("br")])],1),n("div",{staticClass:"clear-both"},[e.shuttleStatusMessage?n("strong",[e._v(e._s(e.shuttleStatusMessage))]):e._e(),n("br"),e._v(" Choose from the following available positions: ")]),e.unique_role_available?n("div",[n("div",{staticClass:"gs-block"},[n("div",{staticClass:"dept"},[e._v("A unique role is available!")]),n("vui-button",{staticClass:"d-block m-1",attrs:{params:{ghostspawner:1},icon:"ghost"}},[e._v("Ghost Spawner Menu")])],1)]):n("div",[n("vui-button",{staticClass:"d-block",attrs:{params:{ghostspawner:1},icon:"ghost"}},[e._v("Ghost Spawner Menu")])],1),e.jobs_available>0?n("div",[e._l(e.fixedJobsList,(function(t,i){return n("div",{key:i,staticClass:"mt-2 dept-block",class:"border-dept-"+i.toLowerCase()},[n("div",{staticClass:"dept mb-1",class:"bg-dept-"+i.toLowerCase()},[e._v(" "+e._s(i)+" ")]),e._l(t,(function(t){return n("div",{key:t.title},[n("vui-button",{staticClass:"d-block mx-1",attrs:{params:{SelectedJob:t.title}}},[n("span",{class:{"fw-bold":t.head}},[e._v(e._s(t.title))]),1!=t.total_positions?n("span",[e._v(" ("+e._s(t.current_positions)),t.total_positions>1?n("span",[e._v(" / "+e._s(t.total_positions))]):e._e(),e._v(")")]):e._e()])],1)}))],2)})),n("span",{staticClass:"fs-small fst-italic"},[e._v("Numbers in brackets show current amount of active players out of all available job slots for that job.")])],2):n("div",{staticClass:"fst-italic"},[e._v(" No jobs available. ")])])},r=[];n("a4d3"),n("e01a"),n("d28b"),n("4de4"),n("a630"),n("e260"),n("fb6a"),n("b0c0"),n("4fad"),n("c1f9"),n("d3b7"),n("25f0"),n("3ca3"),n("ddb0");function s(e,t){return u(e)||l(e,t)||o(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(i=(a=o.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){r=!0,s=c}finally{try{i||null==o["return"]||o["return"]()}finally{if(r)throw s}}return n}}function u(e){if(Array.isArray(e))return e}var d={data:function(){return this.$root.$data.state},computed:{fixedJobsList:function(){return Object.fromEntries(Object.entries(this.jobs_list).filter((function(e){var t=s(e,2),n=t[1];return Object.entries(n).length>0})))},shuttleStatusMessage:function(){switch(this.shuttle_status){case"post-evac":return"The station has been evacuated.";case"evac":return"The station is currently undergoing evacuation procedures.";case"transfer":return"The station is currently undergoing crew transfer procedures."}return null},alertLevelColor:function(){switch(this.alert_level.toLowerCase()){case"green":return"inherit";case"blue":return"blue";case"yellow":return"yellow"}return"red"}}},h=d,f=(n("11f5"),n("2877")),p=Object(f["a"])(h,i,r,!1,null,"36f58934",null);t["default"]=p.exports},"26e9":function(e,t,n){"use strict";var i=n("23e7"),r=n("e8b5"),s=[].reverse,a=[1,2];i({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),s.call(this)}})},2704:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabel"},[e._v(e._s(e.label))]),n("div",{staticClass:"itemContent"},[e._t("default")],2)])},r=[],s={props:{label:{type:String,default:""}}},a=s,o=(n("b593"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"68f8b60e",null);t["default"]=c.exports},"277d":function(e,t,n){var i=n("23e7"),r=n("e8b5");i({target:"Array",stat:!0},{isArray:r})},"27cd":function(e,t,n){"use strict";n("38d6")},2877:function(e,t,n){"use strict";function i(e,t,n,i,r,s,a,o){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):r&&(c=o?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",(function(){return i}))},2954:function(e,t,n){"use strict";var i=n("ebb5"),r=n("4840"),s=n("d039"),a=i.aTypedArray,o=i.aTypedArrayConstructor,c=i.exportTypedArrayMethod,l=[].slice,u=s((function(){new Int8Array(1).slice()}));c("slice",(function(e,t){var n=l.call(a(this),e,t),i=r(this,this.constructor),s=0,c=n.length,u=new(o(i))(c);while(c>s)u[s]=n[s++];return u}),u)},"29f3":function(e,t){var n=Object.prototype,i=n.toString;function r(e){return i.call(e)}e.exports=r},"2a1b":function(e,t,n){var i=n("746f");i("match")},"2a62":function(e,t,n){var i=n("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return i(t.call(e)).value}},"2af1":function(e,t,n){var i=n("23e7"),r=n("f748");i({target:"Math",stat:!0},{sign:r})},"2b10":function(e,t){function n(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;var s=Array(r);while(++i<r)s[i]=e[i+t];return s}e.exports=n},"2b19":function(e,t,n){var i=n("23e7"),r=n("129f");i({target:"Object",stat:!0},{is:r})},"2b3d":function(e,t,n){"use strict";n("3ca3");var i,r=n("23e7"),s=n("83ab"),a=n("0d3b"),o=n("da84"),c=n("37e8"),l=n("6eeb"),u=n("19aa"),d=n("5135"),h=n("60da"),f=n("4df4"),p=n("6547").codeAt,g=n("5fb2"),m=n("d44e"),v=n("9861"),b=n("69f3"),y=o.URL,w=v.URLSearchParams,_=v.getState,x=b.set,k=b.getterFor("URL"),A=Math.floor,C=Math.pow,E="Invalid authority",S="Invalid scheme",F="Invalid host",$="Invalid port",T=/[A-Za-z]/,L=/[\d+-.A-Za-z]/,D=/\d/,B=/^(0x|0X)/,R=/^[0-7]+$/,O=/^\d+$/,M=/^[\dA-Fa-f]+$/,j=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,I=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,P=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,N=/[\u0009\u000A\u000D]/g,W=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return F;if(n=V(t.slice(1,-1)),!n)return F;e.host=n}else if(Q(e)){if(t=g(t),j.test(t))return F;if(n=H(t),null===n)return F;e.host=n}else{if(I.test(t))return F;for(n="",i=f(t),r=0;r<i.length;r++)n+=X(i[r],G);e.host=n}},H=function(e){var t,n,i,r,s,a,o,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),t=c.length,t>4)return e;for(n=[],i=0;i<t;i++){if(r=c[i],""==r)return e;if(s=10,r.length>1&&"0"==r.charAt(0)&&(s=B.test(r)?16:8,r=r.slice(8==s?1:2)),""===r)a=0;else{if(!(10==s?O:8==s?R:M).test(r))return e;a=parseInt(r,s)}n.push(a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=C(256,5-t))return null}else if(a>255)return null;for(o=n.pop(),i=0;i<n.length;i++)o+=n[i]*C(256,3-i);return o},V=function(e){var t,n,i,r,s,a,o,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,l++,u=l}while(h()){if(8==l)return;if(":"!=h()){t=n=0;while(n<4&&M.test(h()))t=16*t+parseInt(h(),16),d++,n++;if("."==h()){if(0==n)return;if(d-=n,l>6)return;i=0;while(h()){if(r=null,i>0){if(!("."==h()&&i<4))return;d++}if(!D.test(h()))return;while(D.test(h())){if(s=parseInt(h(),10),null===r)r=s;else{if(0==r)return;r=10*r+s}if(r>255)return;d++}c[l]=256*c[l]+r,i++,2!=i&&4!=i||l++}if(4!=i)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;d++,l++,u=l}}if(null!==u){a=l-u,l=7;while(0!=l&&a>0)o=c[l],c[l--]=c[u+a-1],c[u+--a]=o}else if(8!=l)return;return c},U=function(e){for(var t=null,n=1,i=null,r=0,s=0;s<8;s++)0!==e[s]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=s),++r);return r>n&&(t=i,n=r),t},z=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=A(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=U(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},G={},q=h({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),K=h({},q,{"#":1,"?":1,"{":1,"}":1}),Y=h({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=p(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(J,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&T.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ie=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},se=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ae={},oe={},ce={},le={},ue={},de={},he={},fe={},pe={},ge={},me={},ve={},be={},ye={},we={},_e={},xe={},ke={},Ae={},Ce={},Ee={},Se=function(e,t,n,r){var s,a,o,c,l=n||ae,u=0,h="",p=!1,g=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(P,"")),t=t.replace(N,""),s=f(t);while(u<=s.length){switch(a=s[u],l){case ae:if(!a||!T.test(a)){if(n)return S;l=ce;continue}h+=a.toLowerCase(),l=oe;break;case oe:if(a&&(L.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return S;h="",l=ce,u=0;continue}if(n&&(Q(e)!=d(J,h)||"file"==h&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(Q(e)&&J[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?l=ye:Q(e)&&r&&r.scheme==e.scheme?l=le:Q(e)?l=fe:"/"==s[u+1]?(l=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Ae)}break;case ce:if(!r||r.cannotBeABaseURL&&"#"!=a)return S;if(r.cannotBeABaseURL&&"#"==a){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,l=Ee;break}l="file"==r.scheme?ye:de;continue;case le:if("/"!=a||"/"!=s[u+1]){l=de;continue}l=pe,u++;break;case ue:if("/"==a){l=ge;break}l=ke;continue;case de:if(e.scheme=r.scheme,a==i)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==a||"\\"==a&&Q(e))l=he;else if("?"==a)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",l=Ce;else{if("#"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),l=ke;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=Ee}break;case he:if(!Q(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=ke;continue}l=ge}else l=pe;break;case fe:if(l=pe,"/"!=a||"/"!=h.charAt(u+1))continue;u++;break;case pe:if("/"!=a&&"\\"!=a){l=ge;continue}break;case ge:if("@"==a){p&&(h="%40"+h),p=!0,o=f(h);for(var v=0;v<o.length;v++){var b=o[v];if(":"!=b||m){var y=X(b,Y);m?e.password+=y:e.username+=y}else m=!0}h=""}else if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(p&&""==h)return E;u-=f(h).length+1,h="",l=me}else h+=a;break;case me:case ve:if(n&&"file"==e.scheme){l=_e;continue}if(":"!=a||g){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(Q(e)&&""==h)return F;if(n&&""==h&&(Z(e)||null!==e.port))return;if(c=W(e,h),c)return c;if(h="",l=xe,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),h+=a}else{if(""==h)return F;if(c=W(e,h),c)return c;if(h="",l=be,n==ve)return}break;case be:if(!D.test(a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return $;e.port=Q(e)&&w===J[e.scheme]?null:w,h=""}if(n)return;l=xe;continue}return $}h+=a;break;case ye:if(e.scheme="file","/"==a||"\\"==a)l=we;else{if(!r||"file"!=r.scheme){l=ke;continue}if(a==i)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==a)e.host=r.host,e.path=r.path.slice(),e.query="",l=Ce;else{if("#"!=a){ne(s.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),ie(e)),l=ke;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=Ee}}break;case we:if("/"==a||"\\"==a){l=_e;break}r&&"file"==r.scheme&&!ne(s.slice(u).join(""))&&(te(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=ke;continue;case _e:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(h))l=ke;else if(""==h){if(e.host="",n)return;l=xe}else{if(c=W(e,h),c)return c;if("localhost"==e.host&&(e.host=""),n)return;h="",l=xe}continue}h+=a;break;case xe:if(Q(e)){if(l=ke,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=i&&(l=ke,"/"!=a))continue}else e.fragment="",l=Ee;else e.query="",l=Ce;break;case ke:if(a==i||"/"==a||"\\"==a&&Q(e)||!n&&("?"==a||"#"==a)){if(se(h)?(ie(e),"/"==a||"\\"==a&&Q(e)||e.path.push("")):re(h)?"/"==a||"\\"==a&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==i||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",l=Ce):"#"==a&&(e.fragment="",l=Ee)}else h+=X(a,K);break;case Ae:"?"==a?(e.query="",l=Ce):"#"==a?(e.fragment="",l=Ee):a!=i&&(e.path[0]+=X(a,G));break;case Ce:n||"#"!=a?a!=i&&("'"==a&&Q(e)?e.query+="%27":e.query+="#"==a?"%23":X(a,G)):(e.fragment="",l=Ee);break;case Ee:a!=i&&(e.fragment+=X(a,q));break}u++}},Fe=function(e){var t,n,i=u(this,Fe,"URL"),r=arguments.length>1?arguments[1]:void 0,a=String(e),o=x(i,{type:"URL"});if(void 0!==r)if(r instanceof Fe)t=k(r);else if(n=Se(t={},String(r)),n)throw TypeError(n);if(n=Se(o,a,null,t),n)throw TypeError(n);var c=o.searchParams=new w,l=_(c);l.updateSearchParams(o.query),l.updateURL=function(){o.query=String(c)||null},s||(i.href=Te.call(i),i.origin=Le.call(i),i.protocol=De.call(i),i.username=Be.call(i),i.password=Re.call(i),i.host=Oe.call(i),i.hostname=Me.call(i),i.port=je.call(i),i.pathname=Ie.call(i),i.search=Pe.call(i),i.searchParams=Ne.call(i),i.hash=We.call(i))},$e=Fe.prototype,Te=function(){var e=k(this),t=e.scheme,n=e.username,i=e.password,r=e.host,s=e.port,a=e.path,o=e.query,c=e.fragment,l=t+":";return null!==r?(l+="//",Z(e)&&(l+=n+(i?":"+i:"")+"@"),l+=z(r),null!==s&&(l+=":"+s)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==o&&(l+="?"+o),null!==c&&(l+="#"+c),l},Le=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(i){return"null"}return"file"!=t&&Q(e)?t+"://"+z(e.host)+(null!==n?":"+n:""):"null"},De=function(){return k(this).scheme+":"},Be=function(){return k(this).username},Re=function(){return k(this).password},Oe=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?z(t):z(t)+":"+n},Me=function(){var e=k(this).host;return null===e?"":z(e)},je=function(){var e=k(this).port;return null===e?"":String(e)},Ie=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Pe=function(){var e=k(this).query;return e?"?"+e:""},Ne=function(){return k(this).searchParams},We=function(){var e=k(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(s&&c($e,{href:He(Te,(function(e){var t=k(this),n=String(e),i=Se(t,n);if(i)throw TypeError(i);_(t.searchParams).updateSearchParams(t.query)})),origin:He(Le),protocol:He(De,(function(e){var t=k(this);Se(t,String(e)+":",ae)})),username:He(Be,(function(e){var t=k(this),n=f(String(e));if(!ee(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=X(n[i],Y)}})),password:He(Re,(function(e){var t=k(this),n=f(String(e));if(!ee(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=X(n[i],Y)}})),host:He(Oe,(function(e){var t=k(this);t.cannotBeABaseURL||Se(t,String(e),me)})),hostname:He(Me,(function(e){var t=k(this);t.cannotBeABaseURL||Se(t,String(e),ve)})),port:He(je,(function(e){var t=k(this);ee(t)||(e=String(e),""==e?t.port=null:Se(t,e,be))})),pathname:He(Ie,(function(e){var t=k(this);t.cannotBeABaseURL||(t.path=[],Se(t,e+"",xe))})),search:He(Pe,(function(e){var t=k(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Se(t,e,Ce)),_(t.searchParams).updateSearchParams(t.query)})),searchParams:He(Ne),hash:He(We,(function(e){var t=k(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Se(t,e,Ee)):t.fragment=null}))}),l($e,"toJSON",(function(){return Te.call(this)}),{enumerable:!0}),l($e,"toString",(function(){return Te.call(this)}),{enumerable:!0}),y){var Ve=y.createObjectURL,Ue=y.revokeObjectURL;Ve&&l(Fe,"createObjectURL",(function(e){return Ve.apply(y,arguments)})),Ue&&l(Fe,"revokeObjectURL",(function(e){return Ue.apply(y,arguments)}))}m(Fe,"URL"),r({global:!0,forced:!a,sham:!s},{URL:Fe})},"2b3e":function(e,t,n){var i=n("585a"),r="object"==typeof self&&self&&self.Object===Object&&self,s=i||r||Function("return this")();e.exports=s},"2c3e":function(e,t,n){var i=n("83ab"),r=n("9f7f").UNSUPPORTED_Y,s=n("9bf2").f,a=n("69f3").get,o=RegExp.prototype;i&&r&&s(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==o){if(this instanceof RegExp)return!!a(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},"2c9a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("hr"),n("h3",[e._v("Remote Penal Mechs")]),n("hr"),n("div",[n("table",[e._m(0),e._l(e.mechs,(function(t){return n("tr",{key:t.ref},[n("td",[t.pilot?[n("vui-button",{attrs:{params:{message_pilot:t.ref}}},[e._v(e._s(t.pilot))])]:[n("span",{staticClass:"red"},[e._v("n/a")])]],2),n("td",[e._v(e._s(t.name))]),n("td",[e._v(e._s(t.location))]),n("td",[n("vui-button",{class:{selected:e.current_cam_loc==t.ref},attrs:{params:{track_mech:t.ref},disabled:!t.camera_status}},[e._v("Track")])],1),n("td",[n("vui-button",{class:{red:t.lockdown},attrs:{params:{lockdown_mech:t.ref}}},[e._v("Lockdown")])],1),n("td",[n("vui-button",{attrs:{params:{terminate:t.ref},icon:"eject"}},[e._v("Terminate")])],1)])}))],2)]),n("hr"),n("h3",[e._v("Remote Penal Cyborgs")]),n("hr"),n("table",[e._m(1),e._l(e.robots,(function(t){return n("tr",{key:t.ref},[n("td",[t.pilot?[n("vui-button",{attrs:{params:{message_pilot:t.ref}}},[e._v(e._s(t.pilot))])]:[n("span",{staticClass:"red"},[e._v("n/a")])]],2),n("td",[e._v(e._s(t.name))]),n("td",[e._v(e._s(t.location))]),n("td",[n("vui-button",{attrs:{params:{terminate:t.ref},icon:"eject"}},[e._v("Terminate")])],1)])}))],2)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[e._v("Pilot")]),n("th",[e._v("Mech Type")]),n("th",[e._v("Location")]),n("th",[e._v("Camera")]),n("th",[e._v("Lockdown")]),n("th",[e._v("End Connection")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[e._v("Pilot")]),n("th",[e._v("Robot Type")]),n("th",[e._v("Location")]),n("th",[e._v("End Connection")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=(n("3831"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"41065424",null);t["default"]=c.exports},"2ca0":function(e,t,n){"use strict";var i=n("23e7"),r=n("06cf").f,s=n("50c4"),a=n("5a34"),o=n("1d80"),c=n("ab13"),l=n("c430"),u="".startsWith,d=Math.min,h=c("startsWith"),f=!l&&!h&&!!function(){var e=r(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!f&&!h},{startsWith:function(e){var t=String(o(this));a(e);var n=s(d(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return u?u.call(t,i,n):t.slice(n,n+i.length)===i}})},"2cf4":function(e,t,n){var i,r,s,a=n("da84"),o=n("d039"),c=n("0366"),l=n("1be4"),u=n("cc12"),d=n("1cdc"),h=n("605d"),f=a.location,p=a.setImmediate,g=a.clearImmediate,m=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,w={},_="onreadystatechange",x=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},k=function(e){return function(){x(e)}},A=function(e){x(e.data)},C=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},g=function(e){delete w[e]},h?i=function(e){m.nextTick(k(e))}:b&&b.now?i=function(e){b.now(k(e))}:v&&!d?(r=new v,s=r.port2,r.port1.onmessage=A,i=c(s.postMessage,s,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&f&&"file:"!==f.protocol&&!o(C)?(i=C,a.addEventListener("message",A,!1)):i=_ in u("script")?function(e){l.appendChild(u("script"))[_]=function(){l.removeChild(this),x(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:p,clear:g}},"2d00":function(e,t,n){var i,r,s=n("da84"),a=n("342f"),o=s.process,c=o&&o.versions,l=c&&c.v8;l?(i=l.split("."),r=i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"2d26":function(e,t,n){n("5d91"),n("1715");var i=n("428f");e.exports=i},"2d39":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Station Info")]),n("span",{class:e.station_locked_in?"good":"bad"},[e._v(e._s(e.station_locked_in?"Locked In ":"Not Locked In "))]),n("span",{class:e.station_locked_in?"good":"bad"},[e._v("("+e._s(e.locked_in_name)+")")]),n("br"),n("span",[e._v("Calibration: "+e._s(e.calibration)+"%")]),e._v(" "),n("vui-button",{attrs:{params:{recalibrate:1}}},[e._v("Recalibrate")]),n("h3",[e._v("Teleporter Beacons")]),n("table",{staticClass:"table border"},[e._m(0),e._l(e.teleport_beacons,(function(t){return n("tr",{key:t.ref,staticClass:"item border"},[n("td",[e._v(e._s(t.beacon_name))]),n("td",[n("vui-button",{class:{danger:1==t.selected_beacon},attrs:{params:{beacon:t.ref,name:t.beacon_name}}},[e._v(e._s(1==t.selected_beacon?"Unset":"Lock On"))])],1)])}))],2),n("h3",[e._v("Tracking Implants")]),n("table",{staticClass:"table border"},[e._m(1),e._l(e.teleport_implants,(function(t){return n("tr",{key:t.ref,staticClass:"item border"},[n("td",[e._v(e._s(t.implant_name))]),n("td",[n("vui-button",{class:{danger:1==t.selected_implant},attrs:{params:{implant:t.ref,name:t.implant_name}}},[e._v(e._s(1==t.selected_implant?"Unset":"Lock On"))])],1)])}))],2)],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("Beacon Name")]),n("th",[e._v("Action")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("Implant Name")]),n("th",[e._v("Action")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=(n("2d4b"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"5c1e1b40",null);t["default"]=c.exports},"2d4b":function(e,t,n){"use strict";n("ce52")},"2fa9":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.active?n("div",[e.$root.$data.assets["front"]?n("div",{staticClass:"photos"},[n("vui-img",{attrs:{name:"front"}}),n("br"),n("vui-img",{attrs:{name:"side"}})],1):e._e(),n("vui-group",[n("vui-group-item",{attrs:{label:"ID:"}},[e._v(e._s(e.active.id))]),n("vui-group-item",{attrs:{label:"Name:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.name"}})],1),n("vui-group-item",{attrs:{label:"Age:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.age"}})],1),n("vui-group-item",{attrs:{label:"Sex:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.sex"}})],1),n("vui-group-item",{attrs:{label:"Rank:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.rank"}})],1),n("vui-group-item",{attrs:{label:"Physical Status:"}},[n("view-records-field",{attrs:{editable:(1&e.editable||2&e.editable)>0,path:"active.physical_status"}},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.$root.$data.state,"editingvalue",t.target.multiple?n:n[0])}}},e._l(e.choices.physical_status,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v(e._s(t))])})),0)])],1),n("vui-group-item",{attrs:{label:"Mental Status:"}},[n("view-records-field",{attrs:{editable:(1&e.editable||2&e.editable)>0,path:"active.mental_status"}},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.$root.$data.state,"editingvalue",t.target.multiple?n:n[0])}}},e._l(e.choices.mental_status,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v(e._s(t))])})),0)])],1),n("vui-group-item",{attrs:{label:"Fingerprint:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.fingerprint"}})],1),!e.hideAdvanced&&1&e.avaivabletypes?[n("vui-group-item",{attrs:{label:"Species:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.species"}})],1),n("vui-group-item",{attrs:{label:"Citizenship:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.citizenship"}})],1),n("vui-group-item",{attrs:{label:"Religion:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.religion"}})],1),n("vui-group-item",{attrs:{label:"Employer:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.employer"}})],1),n("vui-group-item",{attrs:{label:"Employment/skills summary:"}},[n("view-records-field",{attrs:{editable:(1&e.editable)>0,path:"active.notes"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],domProps:{value:e.$root.$data.state.editingvalue},on:{input:function(t){t.target.composing||e.$set(e.$root.$data.state,"editingvalue",t.target.value)}}})])],1),n("vui-group-item",{attrs:{label:"CCIA Notes:"}},[e._v(e._s(e.active.ccia_record))]),n("vui-group-item",{attrs:{label:"CCIA Actions:"}},e._l(e.active.ccia_actions,(function(t){return n("div",{key:t[0]},[n("h5",[e._v(e._s(t[0])+" "),n("i",[e._v("("+e._s(t[1])+")")])]),n("div",{domProps:{innerHTML:e._s(t[3].replace("\r\n","<br/>"))}}),n("vui-button",{attrs:{params:{_openurl:t[4]}}},[e._v("Open")])],1)})),0)]:e._e(),e._t("default")],2),n("div",{staticClass:"bottombuttons"},[n("vui-button",{attrs:{params:{setactive:"null"},"push-state":""},on:{click:function(t){e.activeview="list"}}},[e._v("Unload Record")]),e.canprint?n("vui-button",{attrs:{params:{print:"active"}}},[e._v("Print")]):e._e(),!e.hideAdvanced&&1&e.editable?n("vui-button",{staticClass:"danger",attrs:{params:{deleterecord:1},icon:"trash-alt"}},[e._v("Delete record")]):e._e()],1)],1):e._e()},r=[],s=(n("ac1f"),n("5319"),{data:function(){return this.$root.$data.state},props:{hideAdvanced:{type:Boolean,default:!1}},filters:{replace:function(e,t,n){return e.replace(t,n)}}}),a=s,o=(n("892c"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"7debbbd4",null);t["default"]=c.exports},3221:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v(" Activating Configuration Mode")]),e._m(0),n("vui-button",{attrs:{params:{return:1},width:"3em"}},[e._v("Return to order menu")])],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[e._v(" Swipe id card to enter configuration mode."),n("br")])}],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},3280:function(e,t,n){"use strict";var i=n("ebb5"),r=n("e58c"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("lastIndexOf",(function(e){return r.apply(s(this),arguments)}))},3315:function(e,t,n){"use strict";n("b959")},3410:function(e,t,n){var i=n("23e7"),r=n("d039"),s=n("7b0b"),a=n("e163"),o=n("e177"),c=r((function(){a(1)}));i({target:"Object",stat:!0,forced:c,sham:!o},{getPrototypeOf:function(e){return a(s(e))}})},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"34ac":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.editing?[e._t("default",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.gdata.state.editingvalue,expression:"gdata.state.editingvalue"}],domProps:{value:e.gdata.state.editingvalue},on:{input:function(t){t.target.composing||e.$set(e.gdata.state,"editingvalue",t.target.value)}}})]),n("vui-button",{attrs:{icon:"check"},on:{click:e.save}})]:[n("span",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.rvalue))]),e._v(" "),e.reditable||e.editButton?n("vui-button",{staticStyle:{"white-space":"pre-wrap"},attrs:{icon:"pen"},on:{click:e.beginEditing}},[e._v(e._s(e.editbtnname))]):e._e()]],2)},r=[],s=(n("ac1f"),n("5319"),n("1276"),n("025e")),a={data:function(){return{editing:!1,gdata:this.$root.$data,startEditHandler:null}},props:{value:{type:String,default:""},path:{type:String,default:null},editable:{type:Boolean,default:!1},editButton:{type:String,default:null}},computed:{reditable:function(){return!!this.path&&this.editable},rvalue:function(){return this.path?s["a"].dotNotationRead(this.gdata.state,this.path):this.value},editbtnname:function(){return this.editButton?this.editButton:""}},methods:{beginEditing:function(){var e=this;(this.reditable||this.editButton)&&(this.$root.$emit("record-field-start-editing"),this.gdata.state.editingvalue=this.rvalue,this.startEditHandler=function(){e.endEditing()},this.$root.$on("record-field-start-editing",this.startEditHandler),this.editing=!0)},endEditing:function(){(this.reditable||this.editButton)&&(this.editing=!1,this.$root.$off("record-field-start-editing",this.startEditHandler))},save:function(){(this.reditable||this.editButton)&&(this.endEditing(),this.editButton?this.$emit("save",this.gdata.state.editingvalue):this.$toTopic({editrecord:{value:this.gdata.state.editingvalue,key:this.path.split(".")}}))}},filters:{replace:function(e,t,n){return e.replace(t,n)}}},o=a,c=(n("93dc"),n("2877")),l=Object(c["a"])(o,i,r,!1,null,"19ca9807",null);t["default"]=l.exports},"35a1":function(e,t,n){var i=n("f5df"),r=n("3f8c"),s=n("b622"),a=s("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||r[i(e)]}},"35b3":function(e,t,n){var i=n("23e7");i({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},3722:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("vui-group",[n("vui-group-item",{attrs:{label:"Status:"}},[n("vui-button",{class:{selected:e.on},attrs:{params:{toggleStatus:1}}},[e._v("On")]),n("vui-button",{class:{selected:!e.on},attrs:{params:{toggleStatus:1}}},[e._v("Off")])],1),n("vui-group-item",{attrs:{label:"Power Level:"}},[n("vui-button",{class:{selected:20==e.powerSetting},attrs:{params:{setPower:20}}},[e._v("1")]),n("vui-button",{class:{selected:40==e.powerSetting},attrs:{params:{setPower:40}}},[e._v("2")]),n("vui-button",{class:{selected:60==e.powerSetting},attrs:{params:{setPower:60}}},[e._v("3")]),n("vui-button",{class:{selected:80==e.powerSetting},attrs:{params:{setPower:80}}},[e._v("4")]),n("vui-button",{class:{selected:100==e.powerSetting},attrs:{params:{setPower:100}}},[e._v("5")])],1),n("vui-group-item",{attrs:{label:"Gas Pressure:"}},[e._v(" "+e._s(e.gasPressure)+" kPa ")]),n("h3",[e._v("Gas Temperature")]),n("vui-group-item",{attrs:{label:"Current:"}},[n("vui-progress",{class:e.gasTemperatureClass,attrs:{value:e.gasTemperature,max:e.maxGasTemperature,min:e.minGasTemperature}},[e._v(" "+e._s(e.gasTemperature)+" K ")])],1),n("vui-group-item",{attrs:{label:"Target:"}},[n("vui-progress",{attrs:{value:e.targetGasTemperature,max:e.maxGasTemperature,min:e.minGasTemperature}},[e._v(" "+e._s(e.targetGasTemperature)+" K ")]),n("div",{staticStyle:{clear:"both","padding-top":"4px"}},[n("vui-button",{attrs:{disabled:e.targetGasTemperature<=e.minGasTemperature,params:{temp:-100}}},[e._v("-")]),n("vui-button",{attrs:{disabled:e.targetGasTemperature<=e.minGasTemperature,params:{temp:-10}}},[e._v("-")]),n("vui-button",{attrs:{disabled:e.targetGasTemperature<=e.minGasTemperature,params:{temp:-1}}},[e._v("-")]),n("vui-button",{attrs:{disabled:e.targetGasTemperature>=e.maxGasTemperature,params:{temp:1}}},[e._v("+")]),n("vui-button",{attrs:{disabled:e.targetGasTemperature>=e.maxGasTemperature,params:{temp:10}}},[e._v("+")]),n("vui-button",{attrs:{disabled:e.targetGasTemperature>=e.maxGasTemperature,params:{temp:100}}},[e._v("+")])],1)],1)],1)},r=[],s={data:function(){return this.$root.$data.state},computed:{gasTemperatureClass:function(){return null!=this.temperatureBadTop&&this.gasTemperature>this.temperatureBadTop||null!=this.temperatureBadBottom&&this.gasTemperature<this.temperatureBadBottom?"bad":null!=this.temperatureAvgTop&&null!=this.temperatureAvgBottom&&this.gasTemperature<this.temperatureAvgTop&&this.gasTemperature>this.temperatureAvgBottom?"average":"good"}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},3729:function(e,t,n){var i=n("9e69"),r=n("00fd"),s=n("29f3"),a="[object Null]",o="[object Undefined]",c=i?i.toStringTag:void 0;function l(e){return null==e?void 0===e?o:a:c&&c in Object(e)?r(e):s(e)}e.exports=l},"37e8":function(e,t,n){var i=n("83ab"),r=n("9bf2"),s=n("825a"),a=n("df75");e.exports=i?Object.defineProperties:function(e,t){s(e);var n,i=a(t),o=i.length,c=0;while(o>c)r.f(e,n=i[c++],t[n]);return e}},3831:function(e,t,n){"use strict";n("9e80")},3851:function(e,t,n){var i={"./header/default.vue":"f3ce","./header/handles.vue":"9aa7","./header/minimal.vue":"d657","./header/modular-computer.vue":"4709","./view/admin/damage-menu.vue":"a9fa","./view/admin/extended-list.vue":"6309","./view/admin/permissions-panel.vue":"86eb","./view/admin/player-panel.vue":"3930","./view/console/atmocontrol/injector.vue":"614c","./view/console/atmocontrol/main.vue":"86ad","./view/console/atmocontrol/supermatter.vue":"df0b","./view/console/atmocontrol/tank.vue":"508b","./view/devices/aicard.vue":"4874","./view/devices/assembly/infrared.vue":"f095","./view/devices/assembly/proximity.vue":"253b","./view/devices/assembly/signaler.vue":"4626","./view/devices/assembly/timer.vue":"b81a","./view/devices/circuit/printer.vue":"ffb3","./view/devices/gps/gps.vue":"0566","./view/devices/jammer.vue":"050e","./view/devices/multitool.vue":"b833","./view/devices/oredetector.vue":"0687","./view/devices/quikpay/confirmation.vue":"47db","./view/devices/quikpay/main.vue":"4678","./view/devices/vitalsmonitor.vue":"0cec","./view/late-choices.vue":"2653","./view/machinery/atmospherics/canister.vue":"2575","./view/machinery/atmospherics/freezer.vue":"3722","./view/machinery/atmospherics/portpump.vue":"77f3","./view/machinery/chemdisp.vue":"0519","./view/machinery/cooking/microwave.vue":"a589","./view/machinery/orderterminal/editconfirmation.vue":"3221","./view/machinery/orderterminal/orderconfirmation.vue":"1ccb","./view/machinery/orderterminal/ordering.vue":"e1e4","./view/machinery/power/apc.vue":"fafb","./view/machinery/power/portgen.vue":"5f40","./view/machinery/power/smes.vue":"58e3","./view/machinery/power/supermattercrystal.vue":"b08f","./view/machinery/shields/shield.vue":"e7e6","./view/machinery/smartfridge.vue":"19fa","./view/machinery/teleporter.vue":"2d39","./view/machinery/vending.vue":"7dc7","./view/machinery/xenoarchaeology/suspensiongenerator.vue":"75f7","./view/manifest.vue":"f264","./view/mcomputer/atmosphere.vue":"4149","./view/mcomputer/chat/channel-btn.vue":"1dbb","./view/mcomputer/chat/chat.vue":"3d8a","./view/mcomputer/chat/explore.vue":"421c","./view/mcomputer/chat/index.vue":"9b7e","./view/mcomputer/chemcodex.vue":"ec72","./view/mcomputer/command/accountdb.vue":"da1f","./view/mcomputer/command/teleporter.vue":"76a2","./view/mcomputer/janitor.vue":"e786","./view/mcomputer/medical/sensors.vue":"f309","./view/mcomputer/ntsl/edit.vue":"a3f9","./view/mcomputer/ntsl/list.vue":"6292","./view/mcomputer/ntsl/main.vue":"a7c6","./view/mcomputer/ntsl/program.vue":"2480","./view/mcomputer/pai/directives.vue":"d3c6","./view/mcomputer/pai/doorjack.vue":"3b8a","./view/mcomputer/pai/radio.vue":"207c","./view/mcomputer/security/guntracker.vue":"cb10","./view/mcomputer/security/implanttracker.vue":"ac02","./view/mcomputer/security/penalcontroller.vue":"2c9a","./view/mcomputer/signaler.vue":"db4f","./view/mcomputer/system/config.vue":"07c3","./view/mcomputer/system/downloader.vue":"019f","./view/mcomputer/system/main.vue":"13c9","./view/mcomputer/system/manager.vue":"d3c8","./view/medical/bodyscanner.vue":"1062","./view/medical/sleeper.vue":"b087","./view/misc/appearancechanger.vue":"4939","./view/misc/boardgame.vue":"ef41","./view/misc/doors.vue":"3a07","./view/misc/ghostmenu.vue":"c60e","./view/misc/ghostspawner.vue":"1503","./view/misc/holopad.vue":"b104","./view/misc/maglock-config.vue":"0ea6","./view/misc/maglock.vue":"20a6","./view/misc/pai/recruit.vue":"9324","./view/misc/voting.vue":"e31d","./view/paperwork/fax.vue":"9556","./view/paperwork/photocopier.vue":"6a01","./view/records/field.vue":"34ac","./view/records/general.vue":"2fa9","./view/records/incident.vue":"256f","./view/records/list-locked.vue":"c0f7","./view/records/list-virus.vue":"8385","./view/records/list.vue":"ac4c","./view/records/login.vue":"a8bb","./view/records/main.vue":"cf32","./view/records/medical.vue":"203b","./view/records/security.vue":"b6db","./view/records/virus.vue":"73f5","./view/turrets/control-part.vue":"10d4","./view/turrets/control.vue":"fb48","./view/vehicles/droppod.vue":"b14c","./view/vehicles/pussywagon.vue":"4d76","./view/vehicles/trainengine.vue":"08c0","./view/wanalyzer/analyzer.vue":"407e","./vui/button.vue":"5aa2","./vui/group-item.vue":"2704","./vui/group-row.vue":"74e7","./vui/group.vue":"48f3","./vui/img.vue":"810a","./vui/input/numeric.vue":"210c","./vui/input/search.vue":"419b","./vui/input/slider.vue":"0eec","./vui/item.vue":"faf6","./vui/progress.vue":"1253","./vui/tooltip.vue":"0ec3"};function r(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=s,e.exports=r,r.id="3851"},"38cf":function(e,t,n){var i=n("23e7"),r=n("1148");i({target:"String",proto:!0},{repeat:r})},"38d6":function(e,t,n){},3930:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-button",{attrs:{"unsafe-params":{src:e.s.holder_ref,check_antagonist:1}}},[e._v("Check antagonists")]),n("vui-input-search",{staticStyle:{float:"right"},attrs:{input:e.players_filtered,keys:["name","real_name","assigment","key","ip"],autofocus:"",threshold:e.threshold,"include-score":""},model:{value:e.search_results,callback:function(t){e.search_results=t},expression:"search_results"}}),n("div",{staticClass:"table"},[n("div",{staticClass:"header"},[n("div",{staticClass:"header-item"},[e._v("Name")]),n("div",{staticClass:"header-item"},[e._v("Assignment")]),n("div",{staticClass:"header-item"},[e._v("Key")]),e.s.ismod?n("div",{staticClass:"header-item"},[e._v("Age")]):e._e(),e.s.ismod?n("div",{staticClass:"header-item"},[e._v("Antag")]):e._e(),n("div",{staticClass:"header-item"},[e._v("Actions")])]),e._l(e.search_results,(function(t){return n("div",{key:t.item.ref,staticClass:"player",style:{opacity:1-t.score*e.score_multiplier}},[n("div",{staticClass:"item"},[t.item.name==t.item.real_name||"NA"==t.item.assigment?[e._v(e._s(t.item.name))]:n("vui-tooltip",{attrs:{label:t.item.name}},[e._v(e._s(t.item.real_name))])],2),n("div",{staticClass:"item"},["NA"==t.item.assigment?[e._v(e._s(t.item.real_name))]:[e._v(e._s(t.item.assigment))]],2),n("div",{staticClass:"item"},[e.s.ismod?n("vui-tooltip",{scopedSlots:e._u([{key:"label",fn:function(){return[e._v(e._s(t.item.key)),t.item.connected?e._e():n("span",[e._v(" (DC)")])]},proxy:!0}],null,!0)},[e._v(" "+e._s(t.item.ip)+" ")]):[e._v(" "+e._s(t.item.key)),t.item.connected?e._e():n("span",[e._v(" (DC)")])]],2),e.s.ismod?n("div",{staticClass:"item"},[e._v(e._s(t.item.age))]):e._e(),e.s.ismod?n("div",{staticClass:"item"},[-1==t.item.antag?n("span",[e._v("NA")]):0==t.item.antag?n("span",[e._v("No")]):e._e(),1==t.item.antag?n("span",{staticClass:"red"},[n("vui-tooltip",{attrs:{label:"ADD"}},[e._v("This antag was added by admin.")])],1):e._e(),2==t.item.antag?n("span",{staticClass:"red"},[n("vui-tooltip",{attrs:{label:"GM"}},[e._v("This antag was added by gamemode.")])],1):e._e()]):e._e(),n("div",{staticClass:"item",staticStyle:{"text-align":"right"}},[n("vui-button",{attrs:{"unsafe-params":{src:e.s.holder_ref,adminplayeropts:t.item.ref}}},[e._v("PP")]),n("vui-button",{attrs:{"unsafe-params":{src:e.s.holder_ref,priv_msg:t.item.ref}}},[e._v("PM")]),n("vui-button",{attrs:{"unsafe-params":{src:e.s.holder_ref,subtlemessage:t.item.ref}}},[e._v("SM")]),n("vui-button",{attrs:{"unsafe-params":{_src_:"vars",Vars:t.item.ref}}},[e._v("VV")]),n("vui-button",{attrs:{"unsafe-params":{src:e.s.holder_ref,mob:t.item.ref,notes:"show"}}},[e._v("N")]),n("vui-button",{attrs:{"unsafe-params":{src:e.s.holder_ref,traitor:t.item.ref}}},[e._v("TP")]),n("vui-button",{attrs:{"unsafe-params":{src:e.s.holder_ref,adminplayerobservejump:t.item.ref}}},[e._v("JMP")]),n("vui-button",{attrs:{"unsafe-params":{src:e.s.holder_ref,admin_wind_player:t.item.ref}}},[e._v("WIND")])],1)])}))],2)],1)},r=[],s=(n("4de4"),n("07ac"),{data:function(){return{search_results:[],s:this.$root.$data.state,threshold:.3}},computed:{players_filtered:function(){return Object.values(this.s.players).filter((function(e){return e}))},score_multiplier:function(){return 1/this.threshold}}}),a=s,o=(n("b3da"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"0d69deee",null);t["default"]=c.exports},"3a07":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-group",[n("vui-group-item",{attrs:{label:"Designation:"}},[e._v(" "+e._s(e.s.doorArea)+" - "+e._s(e.s.doorName)+" ")]),n("vui-group-item",{attrs:{label:"Main power:"}},[n("vui-progress",{class:{good:0==e.s.plu_main,bad:-1==e.s.plu_main,average:e.s.plu_main>0},staticStyle:{width:"12em"},attrs:{value:e.gs.wtime,min:e.s.plua_main,max:e.s.plu_main||10}},[e._v(" "+e._s(e.mainMsg)+" ")]),n("vui-button",{attrs:{disabled:0!=e.s.plu_main,params:{command:"main_power"}}},[e._v("Interrupt")])],1),n("vui-group-item",{attrs:{label:"Backup power:"}},[n("vui-progress",{class:{good:0==e.s.plu_back||0==e.s.plu_main,bad:-1==e.s.plu_back&&0!=e.s.plu_main,average:e.s.plu_back>0},staticStyle:{width:"12em"},attrs:{value:e.gs.wtime,min:e.s.plua_back,max:e.s.plu_back||10}},[e._v(" "+e._s(e.backupMsg)+" ")]),n("vui-button",{attrs:{disabled:0!=e.s.plu_back,params:{command:"backup_power"}}},[e._v("Interrupt")])],1),n("vui-group-item",{attrs:{label:"Electrified status:"}},[n("vui-progress",{class:{good:0==e.s.ele,bad:-1==e.s.ele,average:e.s.ele>0},staticStyle:{width:"12em"},attrs:{value:e.gs.wtime,min:e.s.elea,max:e.s.ele||10}},[e._v(" "+e._s(e.eleMsg)+" ")]),n("vui-button",{attrs:{disabled:0==e.s.ele,params:{command:"electrify_permanently",activate:0}}},[e._v("R")]),e.s.isAdmin||!e.s.isai?[n("vui-button",{attrs:{disabled:e.s.ele>0,params:{command:"electrify_temporary",activate:1}}},[e._v("T")]),n("vui-button",{attrs:{disabled:-1==e.s.ele,params:{command:"electrify_permanently",activate:1}}},[e._v("P")])]:e._e()],2),n("vui-group-item"),n("vui-group-item",{key:e.k,attrs:{set:e.k="bolts",label:"Bolts:"}},[n("vui-button",{class:{on:e.s[e.k]},staticStyle:{"min-width":"6em"},attrs:{disabled:!(e.s.aiCanBolt||!e.s.isai||e.s.isAdmin),params:{command:e.k,activate:0}}},[e._v("Raised")]),n("vui-button",{class:{on:!e.s[e.k]},staticStyle:{"min-width":"6em"},attrs:{disabled:!(e.s.aiCanBolt||!e.s.isai||e.s.isAdmin),params:{command:e.k,activate:1}}},[e._v("Dropped")]),e.s.boltsOverride&&e.s[e.k]?n("vui-button",{staticClass:"danger",staticStyle:{"min-width":"6em"},attrs:{params:{command:"bolts_override",activate:1}}},[e._v("Drop Now")]):e._e(),e.s.boltsOverride&&!e.s[e.k]?n("vui-button",{staticClass:"danger",staticStyle:{"min-width":"6em"},attrs:{params:{command:"bolts_override",activate:0}}},[e._v("Raise Now")]):e._e()],1),e._l(e.commands,(function(t,i){return n("vui-group-item",{key:i,attrs:{label:t.name+":"}},[n("vui-button",{class:{on:e.s[i]},staticStyle:{"min-width":"6em"},attrs:{params:{command:i,activate:t.i?1:0}}},[e._v(e._s(t.et||"Enabled"))]),n("vui-button",{class:{on:!e.s[i]&&!t.danger,danger:!e.s[i]&&t.danger},staticStyle:{"min-width":"6em"},attrs:{disabled:!(!t.a||!e.s.isai||e.s.isAdmin),params:{command:i,activate:t.i?0:1}}},[e._v(e._s(t.dt||"Disabled"))])],1)}))],2)],1)},r=[],s={data:function(){var e=this.$root.$data,t=e.state;return{gs:e,s:t,commands:{idscan:{name:"IdScan",i:!0},lights:{name:"Bolt Lights",i:!0},safeties:{name:"Safeties",et:"Nominal",dt:"Overridden",danger:!0,a:!0},timing:{name:"Timing",et:"Nominal",dt:"Overridden",danger:!0},open:{name:"Door State",et:"Opened",dt:"Closed",i:1}}}},computed:{mainMsg:function(){return this.getPowerStatusMessage(this.s.plu_main,this.gs.wtime)},backupMsg:function(){return this.getPowerStatusMessage(this.s.plu_back,this.gs.wtime)},eleMsg:function(){if(0==this.s.ele)return"Safe";if(-1==this.s.ele)return"Permanently";var e=Math.max(Math.round((this.s.ele-this.gs.wtime)/10),0);return"".concat(e,"s left")}},methods:{getPowerStatusMessage:function(e,t){if(-1==e)return"Offline";if(0==e)return"Online";var n=Math.max(Math.round((e-t)/10),0);return"Interrupted, ".concat(n,"s left")}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"3a7b":function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").findIndex,s=i.aTypedArray,a=i.exportTypedArrayMethod;a("findIndex",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},"3aaf":function(e,t,n){},"3b8a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-group",[n("vui-group-item",{attrs:{label:"Cable:"}},[e.connected?n("span",[e._v("Connected")]):e.extended?n("span",[e._v("Extended")]):n("vui-button",{attrs:{params:{extend:1}}},[e._v("Retracted")])],1),e.connected?n("vui-group-item",{attrs:{label:"Hack:"}},[e.ishacking?[n("vui-progress",{attrs:{max:1e3,value:e.progress}},[e._v(e._s(e.progress/10)+"%")]),n("vui-button",{attrs:{params:{cancel:1}}},[e._v("Cancel")])]:n("vui-button",{attrs:{params:{hack:1}}},[e._v("Start")])],2):e.aborted?n("vui-group-item",[n("div",{staticClass:"bad"},[e._v("Hack aborted!")])]):e._e()],1)],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,"2c69059a",null);t["default"]=c.exports},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c5d":function(e,t,n){"use strict";var i=n("ebb5"),r=n("50c4"),s=n("182d"),a=n("7b0b"),o=n("d039"),c=i.aTypedArray,l=i.exportTypedArrayMethod,u=o((function(){new Int8Array(1).set({})}));l("set",(function(e){c(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=this.length,i=a(e),o=r(i.length),l=0;if(o+t>n)throw RangeError("Wrong length");while(l<o)this[t+l]=i[l++]}),u)},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("69f3"),s=n("7dd0"),a="String Iterator",o=r.set,c=r.getterFor(a);s(String,"String",(function(e){o(this,{type:a,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},"3d8a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v(e._s(e.channel.title))]),n("div",[e.channel.direct?e._e():[n("vui-button",{attrs:{params:{leave:e.reference}},on:{click:function(t){return e.$emit("on-leave")}}},[e._v("Leave")])],e.channel.can_manage?[null!=e.password?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{type:"text"},domProps:{value:e.password},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.set_password(t)},input:function(t){t.target.composing||(e.password=t.target.value)}}}),n("vui-button",{on:{click:e.set_password}},[e._v("Set password")])]:e.channel.direct?e._e():n("vui-button",{on:{click:function(t){e.password=""}}},[e._v("Set password")]),null!=e.title?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.title,expression:"title"}],attrs:{type:"text"},domProps:{value:e.title},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.set_title(t)},input:function(t){t.target.composing||(e.title=t.target.value)}}}),n("vui-button",{on:{click:e.set_title}},[e._v("Change title")])]:e.channel.direct?e._e():n("vui-button",{on:{click:function(t){e.title=e.channel.title}}},[e._v("Change title")]),n("vui-button",{attrs:{params:{delete:e.reference}},on:{click:function(t){return e.$emit("on-leave")}}},[e._v("Delete channel")])]:e._e(),n("vui-button",{class:{selected:1==e.channel.focused},attrs:{params:{focus:e.reference}}},[e._v(e._s(1==e.channel.focused?"Disable Speech-To-Text":"Enable Speech-To-Text"))])],2),n("div",e._l(e.channel.users,(function(t,i){return n("div",{key:i},[e._v(" "+e._s(t)+" "),e.channel.can_manage&&!e.channel.direct?n("vui-button",{attrs:{params:{kick:{target:e.reference,user:i}}}},[e._v("Kick")]):e._e()],1)})),0),n("div",{ref:"chat",staticClass:"message-chat"},e._l(e.messages,(function(t,i){return n("div",{key:i},[e._v(e._s(t))])})),0),n("div",{staticClass:"message-container"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.send_buffer,expression:"send_buffer"}],staticClass:"message-input",attrs:{type:"text"},domProps:{value:e.send_buffer},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.send_msg(t)},input:function(t){t.target.composing||(e.send_buffer=t.target.value)}}}),n("vui-button",{staticClass:"message-send",on:{click:e.send_msg}},[e._v("Send")])],1)])},r=[],s={data:function(){return{s:this.$root.$data.state,send_buffer:"",password:null,title:null,wasAtBottom:!0}},computed:{channel:function(){return this.s.channels[this.reference]},messages:function(){return this.channel.msg}},props:{reference:{type:String,default:""}},methods:{send_msg:function(){this.$toTopic({send:{message:this.send_buffer,target:this.reference}}),this.send_buffer=""},set_password:function(){this.$toTopic({set_password:{target:this.reference,password:this.password}}),this.password=null},set_title:function(){this.$toTopic({change_title:{target:this.reference,title:this.title}}),this.title=null},scrollBottom:function(){var e=this.$refs.chat;e.scrollTop=e.scrollHeight}},mounted:function(){this.scrollBottom()},beforeUpdate:function(){var e=this.$refs.chat;this.wasAtBottom=e.scrollHeight-e.scrollTop===e.clientHeight},updated:function(){this.wasAtBottom&&this.scrollBottom()}},a=s,o=(n("425f"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"07e18e82",null);t["default"]=c.exports},"3ea3":function(e,t,n){var i=n("23e7"),r=n("f748"),s=Math.abs,a=Math.pow;i({target:"Math",stat:!0},{cbrt:function(e){return r(e=+e)*a(s(e),1/3)}})},"3ecc":function(e,t,n){"use strict";n("f940")},"3f3a":function(e,t,n){var i=n("23e7"),r=n("83ab"),s=n("825a"),a=n("c04e"),o=n("9bf2"),c=n("d039"),l=c((function(){Reflect.defineProperty(o.f({},1,{value:1}),1,{value:2})}));i({target:"Reflect",stat:!0,forced:l,sham:!r},{defineProperty:function(e,t,n){s(e);var i=a(t,!0);s(n);try{return o.f(e,i,n),!0}catch(r){return!1}}})},"3f8c":function(e,t){e.exports={}},"3fcc":function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").map,s=n("4840"),a=i.aTypedArray,o=i.aTypedArrayConstructor,c=i.exportTypedArrayMethod;c("map",(function(e){return r(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(s(e,e.constructor)))(t)}))}))},4057:function(e,t,n){var i=n("23e7"),r=Math.hypot,s=Math.abs,a=Math.sqrt,o=!!r&&r(1/0,NaN)!==1/0;i({target:"Math",stat:!0,forced:o},{hypot:function(e,t){var n,i,r=0,o=0,c=arguments.length,l=0;while(o<c)n=s(arguments[o++]),l<n?(i=l/n,r=r*i*i+1,l=n):n>0?(i=n/l,r+=i*i):r+=n;return l===1/0?1/0:l*a(r)}})},4069:function(e,t,n){var i=n("44d2");i("flat")},"407e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.has_inserted?n("div",[n("b",[e._v("Analyzing "+e._s(e.name)+" ")]),n("br"),e.$root.$data.assets["icon"]?n("div",[n("vui-img",{attrs:{name:"icon"}})],1):e._e(),1==e.item?n("div",[n("table",{staticClass:"other"},[n("tr",[n("td",[e._v(" Damage type: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.damage_type)+" ")])]),n("tr",[n("td",[e._v(" Item's estimated force-rating: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.force)+" points")])]),n("tr",[n("td",[e._v(" Item's estimated throw force-rating: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.throw_force)+" points ")])]),1==e.energy?[n("tr",[n("td",[e._v(" Item's estimated force-rating when activated: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.active_force)+" points ")])]),n("tr",[n("td",[e._v(" Item's estimated throw force-rating when activated: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.active_throw_force)+" points")])]),n("tr",[n("td",[e._v(" Base block chance is: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.base_block_chance)+"% ")])]),n("tr",[n("td",[e._v(" Base reflect chance is: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.base_reflectchance)+"% ")])]),n("tr",[n("td",[e._v(" Item's estimated shield rating: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.shield_power)+" points")])]),n("tr",[n("td",[e._v(" Can block bullets: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.can_block)+" ")])])]:e._e(),n("tr",[n("td",[e._v(" Is sharp:")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.sharp)+" ")])]),n("tr",[n("td",[e._v(" Chance to dismember: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.edge)+" ")])]),n("tr",[n("td",[e._v(" Item's estimated armor penetration rating: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.penetration)+" points")])])],2)]):e._e(),1==e.gun?n("div",{staticClass:"active_energy"},[n("table",{staticClass:"other"},[n("tr",[n("td",[e._v(" Maximum shots: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.max_shots)+" ")])]),n("tr",[n("td",[e._v(" Burst: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.burst)+" ")])]),n("tr",[n("td",[e._v(" Self recharge: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.recharge)+" ")])]),n("tr",[n("td",[e._v(" Recharge time: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.recharge_time)+" ")])]),n("tr",[n("td",[e._v(" Reliability: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.reliability)+" ")])]),n("br"),n("b",[e._v("First projectile information: ")]),n("br"),n("tr",[n("td",[e._v(" Projectile's estimated damage rating: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.damage)+" points")])]),n("tr",[n("td",[e._v(" Projectile's Damage type: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.damage_type)+" ")])]),n("tr",[n("td",[e._v(" Projectile's estimated armor penetration rating: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.armor_penetration)+" points")])]),n("tr",[n("td",[e._v(" Projectile's armor damage type: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.check_armor)+" ")])]),n("tr",[n("td",[e._v(" Projectile's shrapnel type: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.shrapnel_type)+" ")])]),n("tr",[n("td",[e._v(" Stun: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.stun)+" ")])]),e.secondary_damage?[n("br"),n("b",[e._v("Second projectile information: ")]),n("br"),n("tr",[n("td",[e._v(" Projectile's estimated damage rating: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.secondary_damage)+" points")])]),n("tr",[n("td",[e._v(" Projectile's damage type: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.secondary_damage_type)+" ")])]),n("tr",[n("td",[e._v(" Projectile's estimated armor penetration rating: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.secondary_armor_penetration)+" points")])]),n("tr",[n("td",[e._v(" Projectile's armor damage type: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.secondary_check_armor)+" ")])]),n("tr",[n("td",[e._v(" Projectile's shrapnel type: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.secondary_shrapnel_type)+" ")])]),n("tr",[n("td",[e._v(" Stun: ")]),e._v(" "),n("td",{staticClass:"right"},[e._v(" "+e._s(e.secondary_stun)+" ")])])]:e._e()],2)]):e._e(),e.gun_mods?n("div",[n("br"),n("b",[e._v("Modular gun information: ")]),n("br"),n("table",{staticClass:"modular"},[e._m(0),e._l(e.gun_mods,(function(t,i){return n("tr",{key:i},[n("td",[e._v(e._s(i))]),e._l(t,(function(i,r){return n("td",{key:r},[e._v(" "+e._s(t[r])+" ")])}))],2)}))],2)]):e._e(),n("vui-button",{attrs:{params:{print:1}}},[e._v("Print Analysis")])],1):n("div",[n("b",[e._v("No item inserted, analysis unit inactive.")])])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[e._v(" Name ")]),n("th",[e._v(" Reliability ")]),n("th",[e._v(" Damage modifier ")]),n("th",[e._v(" Fire delay modifier ")]),n("th",[e._v(" Number of shots modifier ")]),n("th",[e._v(" Burst modifier ")]),n("th",[e._v(" Accuracy modifier ")]),n("th",[e._v(" Repair tool ")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=(n("e958"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"61a5d2f6",null);t["default"]=c.exports},"408a":function(e,t,n){var i=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=i(e))throw TypeError("Incorrect invocation");return+e}},"40d9":function(e,t,n){var i=n("23e7"),r=Math.floor,s=Math.log,a=Math.LOG2E;i({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-r(s(e+.5)*a):32}})},4149:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.read?n("vui-group",[n("vui-group-item",{attrs:{label:"Pressure:"}},[e._v(" "+e._s(e.press.toFixed(1))+" ")]),n("vui-group-item",{attrs:{label:"Temperature:"}},[e._v(" "+e._s(e.temp.toFixed(1))+" K ("+e._s(e.tempC.toFixed(1))+"°C) ")]),n("vui-group-item",{attrs:{label:"Gases:"}},[e.gas.oxygen?n("span",{staticClass:"complist"},[e._v(e._s(e.gas.oxygen.toFixed(2))+" O"),n("sub",[e._v("2")])]):e._e(),e.gas.nitrogen?n("span",{staticClass:"complist"},[e._v(e._s(e.gas.nitrogen.toFixed(2))+" N")]):e._e(),e.gas.carbon_dioxide?n("span",{staticClass:"complist"},[e._v(e._s(e.gas.carbon_dioxide.toFixed(2))+" CO"),n("sub",[e._v("2"),n("sub")])]):e._e(),e.gas.phoron?n("span",{staticClass:"complist"},[e._v(e._s(e.gas.phoron.toFixed(2))+" PH")]):e._e(),e.gas.sleeping_agent?n("span",{staticClass:"complist"},[e._v(e._s(e.gas.sleeping_agent.toFixed(2))+" SA")]):e._e()])],1):n("span",{staticClass:"bad"},[e._v("Unable to obtain air reading!")])],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=(n("cbf4"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"4021d8a8",null);t["default"]=c.exports},4160:function(e,t,n){"use strict";var i=n("23e7"),r=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"419b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{directives:[{name:"model",rawName:"v-model",value:e.searchValue,expression:"searchValue"}],attrs:{type:"text",placeholder:"Search..."},domProps:{value:e.searchValue},on:{input:function(t){t.target.composing||(e.searchValue=t.target.value)}}})},r=[],s=(n("e260"),n("d81d"),n("a9e3"),n("d3b7"),n("ac1f"),n("841c"),n("ddb0"),n("ffe7")),a=n.n(s),o={data:function(){return{fuse:null,searchValue:""}},mounted:function(){this.onFieldUpdate(this.searchValue)},props:{keys:{type:Array,default:function(){return[]}},includeScore:{type:Boolean,default:!1},threshold:{type:Number,default:.6},input:{type:Array,default:function(){return[]}},value:{type:Array,default:function(){return[]}}},watch:{keys:function(){this.fuse=null},includeScore:function(){this.fuse=null},threshold:function(){this.fuse=null},input:function(){this.onFieldUpdate(this.searchValue)},searchValue:function(e){this.onFieldUpdate(e)}},methods:{onFieldUpdate:function(e){this.initFuse();var t=this.fuse.search(e);0==t.length&&(t=this.includeScore?this.input.map((function(e){return{item:e,score:0}})):this.input),this.$emit("input",t)},initFuse:function(){if(null==this.fuse){var e={shouldSort:!0,findAllMatches:!0,keys:this.keys,includeScore:this.includeScore,threshold:this.threshold};this.fuse=new a.a(this.input,e)}else this.fuse.setCollection(this.input)}}},c=o,l=n("2877"),u=Object(l["a"])(c,i,r,!1,null,null,null);t["default"]=u.exports},"421c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[null!=e.channelTitle?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.channelTitle,expression:"channelTitle"}],attrs:{type:"text"},domProps:{value:e.channelTitle},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.new_channel()},input:function(t){t.target.composing||(e.channelTitle=t.target.value)}}}),n("vui-button",{on:{click:function(t){return e.new_channel()}}},[e._v("New channel")])]:n("vui-button",{on:{click:function(t){e.channelTitle=""}}},[e._v("New channel")]),n("br"),e._l(e.displayed,(function(t){return n("view-mcomputer-chat-channel-btn",{key:t,attrs:{re:t,ch:e.s.channels[t]}})})),n("h2",[e._v("Users:")]),n("vui-input-search",{attrs:{input:e.users,keys:["user"]},model:{value:e.users_result,callback:function(t){e.users_result=t},expression:"users_result"}}),n("br"),e._l(e.users_result,(function(t){return n("div",{key:t.ref},[n("vui-button",{attrs:{params:{direct:t.ref}}},[e._v(e._s(t.user))])],1)}))],2)},r=[],s=(n("4de4"),n("d81d"),n("4fad"),n("b64b"),{data:function(){return{s:this.$root.$data.state,channelTitle:null,users_result:[]}},methods:{new_channel:function(){this.$toTopic({new_channel:this.channelTitle}),this.channelTitle=null}},computed:{displayed:function(){var e=this;return Object.keys(this.s.channels).filter((function(t){return!e.s.channels[t].can_interact}))},users:function(){return Object.entries(this.s.users).map((function(e){return{ref:e[0],user:e[1]}}))}}}),a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"425f":function(e,t,n){"use strict";n("99ee")},"428f":function(e,t,n){var i=n("da84");e.exports=i},4310:function(e,t,n){},4489:function(e,t,n){"use strict";n("a4b7")},"44ad":function(e,t,n){var i=n("d039"),r=n("c6b6"),s="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s.call(e,""):Object(e)}:Object},"44b8":function(e,t,n){},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),s=n("9bf2"),a=i("unscopables"),o=Array.prototype;void 0==o[a]&&s.f(o,a,{configurable:!0,value:r(null)}),e.exports=function(e){o[a][e]=!0}},"44de":function(e,t,n){var i=n("da84");e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var i=n("861d"),r=n("c6b6"),s=n("b622"),a=s("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},"44fc":function(e,t,n){"use strict";n("b884")},"45fc":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").some,s=n("a640"),a=n("ae40"),o=s("some"),c=a("some");i({target:"Array",proto:!0,forced:!o||!c},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},4626:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("vui-button",{attrs:{params:{send:1}}},[e._v("Send Signal")])],1),n("div",[n("h3",[e._v("Frequency:")]),n("vui-button",{attrs:{params:{freq:-10}}},[e._v("--")]),n("vui-button",{attrs:{params:{freq:-2}}},[e._v("-")]),n("span",{staticClass:"value"},[e._v(e._s(e.frequency))]),n("vui-button",{attrs:{params:{freq:2}}},[e._v("+")]),n("vui-button",{attrs:{params:{freq:10}}},[e._v("++")])],1),n("div",[n("h3",[e._v("Code:")]),n("vui-button",{attrs:{params:{code:-5}}},[e._v("--")]),n("vui-button",{attrs:{params:{code:-1}}},[e._v("-")]),n("span",{staticClass:"value"},[e._v(e._s(e.code))]),n("vui-button",{attrs:{params:{code:1}}},[e._v("+")]),n("vui-button",{attrs:{params:{code:5}}},[e._v("++")])],1)])},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=(n("c2e3"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"729622e4",null);t["default"]=c.exports},"466d":function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),s=n("50c4"),a=n("1d80"),o=n("8aa5"),c=n("14c3");i("match",1,(function(e,t,n){return[function(t){var n=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var a=r(e),l=String(this);if(!a.global)return c(a,l);var u=a.unicode;a.lastIndex=0;var d,h=[],f=0;while(null!==(d=c(a,l))){var p=String(d[0]);h[f]=p,""===p&&(a.lastIndex=o(l,s(a.lastIndex),u)),f++}return 0===f?null:h}]}))},4678:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.items,(function(t,i){return n("div",{key:i,staticStyle:{clear:"both"}},[e._v(" "+e._s(i)+": "+e._s(t)+" Credits "),n("div",{staticStyle:{float:"right"}},[n("vui-input-numeric",{attrs:{width:"2em"},model:{value:e.selection[i],callback:function(t){e.$set(e.selection,i,t)},expression:"selection[name]"}}),1==e.editmode?n("vui-button",{attrs:{params:{remove:i},width:"3em"}},[e._v("Delete")]):e._e()],1)])})),1==e.editmode?n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.tmp_name,expression:"tmp_name"}],domProps:{value:e.tmp_name},on:{input:function(t){t.target.composing||(e.tmp_name=t.target.value)}}}),n("vui-input-numeric",{attrs:{width:"3em","button-count":2},model:{value:e.tmp_price,callback:function(t){e.tmp_price=t},expression:"tmp_price"}}),n("vui-button",{attrs:{params:{add:{name:e.tmp_name,price:e.tmp_price}}}},[e._v("Add")]),n("vui-button",{attrs:{params:{accountselect:1},width:"3em"}},[e._v("Select Destination Account")])],1):e._e(),n("vui-button",{attrs:{params:{locking:1},width:"3em"}},[e._v("Toggle Lock")]),n("vui-button",{attrs:{params:{confirm:e.selection}}},[e._v("Confirm Selection")])],2)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"46c6":function(e,t,n){},4709:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header-default",[n("div",{staticClass:"maincont"},[n("b",{staticClass:"valign"},[e._v(e._s(e.time))]),e.state._PC.batteryicon&&e.state._PC.showbatteryicon?n("img",{staticClass:"valign",attrs:{src:e.state._PC.batteryicon}}):e._e(),e.state._PC.batterypercent&&e.state._PC.showbatteryicon?n("b",{staticClass:"valign"},[e._v(e._s(e.state._PC.batterypercent))]):e._e(),e.state._PC.ntneticon?n("img",{staticClass:"valign",attrs:{img:"",src:e.state._PC.ntneticon}}):e._e(),e.state._PC.apclinkicon?n("img",{staticClass:"valign",attrs:{img:"",src:e.state._PC.apclinkicon}}):e._e(),n("div",{staticStyle:{float:"right"}},[n("vui-button",{class:{selected:e.state._PC.flashlight},attrs:{params:{PC_togglelight:1},icon:"lightbulb","icon-only":""}}),e.state._PC.showexitprogram?[n("vui-button",{attrs:{params:{PC_minimize:1},icon:"window-minimize","icon-only":""}}),n("vui-button",{staticClass:"danger",attrs:{params:{PC_exit:1},icon:"window-close","icon-only":""}})]:[n("vui-button",{staticClass:"danger",attrs:{params:{PC_shutdown:1},icon:"power-off","icon-only":""}})]],2)])])},r=[],s=n("025e"),a={data:function(){return this.$root.$data},mounted:function(){this.$nextTick((function(){document.getElementById("content").classList.add("mcomputer")}))},computed:{time:function(){return Object(s["b"])(this.wtime)}}},o=a,c=(n("4ae3"),n("2877")),l=Object(c["a"])(o,i,r,!1,null,"1a3d9578",null);t["default"]=l.exports},4795:function(e,t,n){var i=n("23e7"),r=n("da84"),s=n("342f"),a=[].slice,o=/MSIE .\./.test(s),c=function(e){return function(t,n){var i=arguments.length>2,r=i?a.call(arguments,2):void 0;return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};i({global:!0,bind:!0,forced:o},{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},"47db":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v(" Selected Products:")]),e._l(e.items,(function(t,i){return n("div",{key:i},[e.selection[i]&&e.selection[i]>0?n("span",[e._v(" "+e._s(e.selection[i])+"x "+e._s(i)+": at "+e._s(t*e.selection[i])+" Credits ")]):e._e()])})),n("h3",[e._v(" Total: "+e._s(e.priceSum))]),n("h4",[e._v("Destination Account: "+e._s(e.destinationact))]),n("h3",[e._v("Please swipe your ID to pay.")]),n("vui-button",{attrs:{params:{return:1},width:"3em"}},[e._v("Return to order menu")])],2)},r=[],s=(n("13d5"),n("b64b"),{data:function(){return this.$root.$data.state},computed:{priceSum:function(){var e=this;return Object.keys(this.selection).reduce((function(t,n){return isNaN(t)?e.items[n]*e.selection[n]:t+e.items[n]*e.selection[n]}))}}}),a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),s=n("b622"),a=s("species");e.exports=function(e,t){var n,s=i(e).constructor;return void 0===s||void 0==(n=i(s)[a])?t:r(n)}},4874:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.has_ai?[n("vui-group",[n("vui-group-item",{attrs:{label:"Hardware Integrity"}},[e._v(e._s(e.hardware_integrity)+"%")]),n("vui-group-item",{attrs:{label:"Backup Capacitor"}},[e._v(e._s(e.backup_capacitor)+"%")])],1),e.has_laws?n("table",{staticClass:"borders"},[e._m(0),n("div",{staticClass:"itemLabelNarrow"},[e._v(" Laws: ")]),e._l(e.laws,(function(t){return n("tr",{key:t.index},[n("td",{attrs:{valign:"top"}},[e._v(e._s(t.index))]),n("td",[e._v(e._s(t.law))])])}))],2):n("span",{staticClass:"notice"},[e._v(" No laws found. ")]),e.operational?n("vui-group",[n("vui-group-item",{attrs:{label:"Radio Subspace Transceiver"}},[n("vui-button",{class:{selected:e.radio},attrs:{params:{radio:0}}},[e._v("Enabled")]),n("vui-button",{class:{danger:!e.radio},attrs:{params:{radio:1}}},[e._v("Disabled")])],1),n("vui-group-item",{attrs:{label:"Wireless Interface"}},[n("vui-button",{class:{selected:e.wireless},attrs:{params:{wireless:0}}},[e._v("Enabled")]),n("vui-button",{class:{danger:!e.wireless},attrs:{params:{wireless:1}}},[e._v("Disabled")])],1),e.flushing?n("vui-group-item",[n("span",{staticClass:"notice"},[e._v("AI wipe in progress...")])]):n("vui-group-item",{attrs:{label:"Wipe AI"}},[n("vui-button",{staticClass:"danger",attrs:{params:{wipe:1}}},[e._v("Wipe")])],1)],1):e._e()]:[e._v(" Stored AI: "),n("span",{staticClass:"notice"},[e._v("No AI detected.")])]],2)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("td",{staticClass:"law_index"},[e._v("Index")]),n("td",[e._v("Law")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"48f3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default")],2)},r=[],s=(n("d44d"),n("2877")),a={},o=Object(s["a"])(a,i,r,!1,null,"b2030120",null);t["default"]=o.exports},4930:function(e,t,n){var i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},4939:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.change_race?n("div",[n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabelNarrow"},[e._v(" Species: ")]),n("div",{staticClass:"itemContentWide"},e._l(e.valid_species,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.owner_species==t},attrs:{params:{race:t}}},[e._v(e._s(t))])})),1)])]):e._e(),e.change_gender?n("div",[n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabelNarrow"},[e._v(" Sex: ")]),n("div",{staticClass:"itemContentWide"},e._l(e.valid_gender,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.owner_gender==t},attrs:{params:{gender:t}}},[e._v(e._s(t))])})),1),e.valid_pronouns.length?n("div",{staticClass:"itemLabelNarrow"},[e._v(" Pronouns: ")]):e._e(),e.valid_pronouns.length?n("div",{staticClass:"itemContentWide"},e._l(e.valid_pronouns,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.owner_pronouns==t},attrs:{params:{pronouns:t}}},[e._v(e._s(t))])})),1):e._e()])]):e._e(),e.change_culture?n("div",[n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabelNarrow"},[e._v(" Cultures: ")]),n("div",{staticClass:"itemContentWide"},e._l(e.valid_cultures,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.owner_culture==t},attrs:{params:{culture:t}}},[e._v(e._s(t))])})),1),n("div",{staticClass:"itemLabelNarrow"},[e._v(" Origins: ")]),n("div",{staticClass:"itemContentWide"},e._l(e.valid_origins,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.owner_origin==t},attrs:{params:{origin:t}}},[e._v(e._s(t))])})),1),n("div",{staticClass:"itemLabelNarrow"},[e._v(" Citizenships: ")]),n("div",{staticClass:"itemContentWide"},e._l(e.valid_citizenships,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.owner_citizenship==t},attrs:{params:{citizenship:t}}},[e._v(e._s(t))])})),1),n("div",{staticClass:"itemLabelNarrow"},[e._v(" Accents: ")]),n("div",{staticClass:"itemContentWide"},e._l(e.valid_accents,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.owner_accent==t},attrs:{params:{accent:t}}},[e._v(e._s(t))])})),1)])]):e._e(),e.change_language&&e.valid_languages.length?n("div",[n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabelNarrow"},[e._v(" Languages: ")]),n("div",{staticClass:"itemContentWide"},e._l(e.valid_languages,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.ArrayContains(e.owner_languages,t)},attrs:{params:{language:t}}},[e._v(e._s(t))])})),1)])]):e._e(),e.change_eye_color||e.change_skin_tone||e.change_skin_color||e.change_hair_color||e.change_facial_hair_color?n("div",[n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabelNarrow"},[e._v(" Colors: ")]),n("div",{staticClass:"itemContentWide"},[e.change_eye_color?n("vui-button",{attrs:{params:{eye_color:1}}},[e._v("Change Eye Color")]):e._e(),e.change_skin_tone?n("vui-button",{attrs:{params:{skin_tone:1}}},[e._v("Change Skin Tone")]):e._e(),e.change_skin_preset?n("vui-button",{attrs:{params:{skin_preset:1}}},[e._v("Change Skin Preset")]):e._e(),e.change_skin_color&&!e.change_skin_preset?n("vui-button",{attrs:{params:{skin_color:1}}},[e._v("Change Skin Color")]):e._e(),e.change_hair_color?n("vui-button",{attrs:{params:{hair_color:1}}},[e._v("Change Hair Color")]):e._e(),e.change_facial_hair_color?n("vui-button",{attrs:{params:{facial_hair_color:1}}},[e._v("Change Facial Hair Color")]):e._e()],1)])]):e._e(),e.change_hair&&e.valid_hair_styles.length?n("div",[n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabelNarrow"},[e._v(" Hair Styles: ")]),n("div",{staticClass:"itemContentWide"},e._l(e.valid_hair_styles,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.owner_hair_style==t},attrs:{params:{hair:t}}},[e._v(e._s(t))])})),1)])]):e._e(),e.change_facial_hair&&e.valid_facial_hair_styles.length?n("div",[n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabelNarrow"},[e._v(" Facial Hair Styles: ")]),n("div",{staticClass:"itemContentWide"},e._l(e.valid_facial_hair_styles,(function(t){return n("vui-button",{key:t,class:{button:1,selected:e.owner_facial_hair_style==t},attrs:{params:{facial_hair:t}}},[e._v(e._s(t))])})),1)])]):e._e()])},r=[],s=(n("caad"),n("2532"),{data:function(){return this.$root.$data.state},methods:{ArrayContains:function(e,t){return!!e.includes(t)}}}),a=s,o=(n("9334"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"a04e6de6",null);t["default"]=c.exports},"498a":function(e,t,n){"use strict";var i=n("23e7"),r=n("58a8").trim,s=n("c8d2");i({target:"String",proto:!0,forced:s("trim")},{trim:function(){return r(this)}})},"4a9b":function(e,t,n){var i=n("74e8");i("Float64",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"4ae1":function(e,t,n){var i=n("23e7"),r=n("d066"),s=n("1c0b"),a=n("825a"),o=n("861d"),c=n("7c73"),l=n("0538"),u=n("d039"),d=r("Reflect","construct"),h=u((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),f=!u((function(){d((function(){}))})),p=h||f;i({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){s(e),a(t);var n=arguments.length<3?e:s(arguments[2]);if(f&&!h)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(l.apply(e,i))}var r=n.prototype,u=c(o(r)?r:Object.prototype),p=Function.apply.call(e,u,t);return o(p)?p:u}})},"4ae3":function(e,t,n){"use strict";n("6814")},"4c53":function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("sub")},{sub:function(){return r(this,"sub","","")}})},"4caa":function(e,t,n){var i=n("a919"),r=n("76dd"),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",c="\\u20d0-\\u20ff",l=a+o+c,u="["+l+"]",d=RegExp(u,"g");function h(e){return e=r(e),e&&e.replace(s,i).replace(d,"")}e.exports=h},"4cb7":function(e,t,n){},"4d63":function(e,t,n){var i=n("83ab"),r=n("da84"),s=n("94ca"),a=n("7156"),o=n("9bf2").f,c=n("241c").f,l=n("44e7"),u=n("ad6d"),d=n("9f7f"),h=n("6eeb"),f=n("d039"),p=n("69f3").set,g=n("2626"),m=n("b622"),v=m("match"),b=r.RegExp,y=b.prototype,w=/a/g,_=/a/g,x=new b(w)!==w,k=d.UNSUPPORTED_Y,A=i&&s("RegExp",!x||k||f((function(){return _[v]=!1,b(w)!=w||b(_)==_||"/a/i"!=b(w,"i")})));if(A){var C=function(e,t){var n,i=this instanceof C,r=l(e),s=void 0===t;if(!i&&r&&e.constructor===C&&s)return e;x?r&&!s&&(e=e.source):e instanceof C&&(s&&(t=u.call(e)),e=e.source),k&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var o=a(x?new b(e,t):b(e,t),i?this:y,C);return k&&n&&p(o,{sticky:n}),o},E=function(e){e in C||o(C,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},S=c(b),F=0;while(S.length>F)E(S[F++]);y.constructor=C,C.prototype=y,h(r,"RegExp",C)}g("RegExp")},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),s=n("23cb"),a=function(e){return function(t,n,a){var o,c=i(t),l=r(c.length),u=s(a,l);if(e&&n!=n){while(l>u)if(o=c[u++],o!=o)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4d76":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h2",[e._v("TRUCK STATUS")]),e.is_on?n("div",[e._v(" The engine is currently running. ")]):n("div",[e._v(" The engine is off. ")]),e.has_key?n("div",[e._v(" There is a key inserted into the ignition. "),n("vui-button",{attrs:{params:{key:1}}},[e._v("Remove Key")])],1):n("div",[e._v(" There is no key in the ignition. ")]),e.has_cell?n("div",[e._v(" Cell Charge: "),n("vui-progress",{class:{good:e.cell_charge>=.8*e.cell_max_charge,bad:e.cell_charge<=.4*e.cell_max_charge,average:e.cell_charge<.8*e.cell_max_charge&&e.cell_charge>.4*e.cell_max_charge},attrs:{value:e.cell_charge,max:e.cell_max_charge,min:0}},[e._v(e._s(e.cell_charge)+"J")]),e._v(" "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("The cell can be removed by using a screwdriver to open the maintenance panel, then using a crowbar to shimmy it out.")])],1):n("div",[e._v(" There is no cell installed. "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("The cell can be installed by using a screwdriver to open the maintenance panel, then clicking on the engine with a compatible power cell.")])],1),e.is_towing?n("div",[e._v(" This engine is currently towing the "+e._s(e.tow)+". "),n("vui-button",{attrs:{params:{unlatch:1}}},[e._v("Unlatch")]),e._m(0),e.has_proper_trolley?n("div",[e.is_hoovering?n("div",[e._v(" The trolley is currently vacuuming. "),n("vui-button",{attrs:{params:{toggle_hoover:1}}},[e._v("Toggle")])],1):n("div",[e._v(" The trolley is not vacuuming. "),n("vui-button",{attrs:{disabled:!e.is_on,params:{toggle_hoover:1}}},[e._v("Toggle")])],1),n("div",[e._v(" Vacuum Capacity Remaining: "),n("vui-progress",{class:{good:e.vacuum_capacity>=.8*e.max_vacuum_capacity,bad:e.vacuum_capacity<=.4*e.max_vacuum_capacity,average:e.vacuum_capacity<.8*e.max_vacuum_capacity&&e.vacuum_capacity>.4*e.max_vacuum_capacity},attrs:{value:e.vacuum_capacity,max:e.max_vacuum_capacity,min:0}},[e._v(e._s(e.vacuum_capacity)+" L")]),e._v(" "),n("vui-button",{attrs:{disabled:e.vacuum_capacity>=e.max_vacuum_capacity,params:{empty_hoover:1}}},[e._v("Empty")])],1),e.is_mopping?n("div",[e._v(" The trolley is currently mopping. "),n("vui-button",{attrs:{disabled:!e.is_on||!e.has_bucket||e.bucket_capacity<=0,params:{toggle_mop:1}}},[e._v("Toggle")])],1):n("div",[e._v(" The trolley is not mopping. "),n("vui-button",{attrs:{disabled:!e.is_on||!e.has_bucket,params:{toggle_mop:1}}},[e._v("Toggle")])],1),e.has_bucket?n("div",[e._v(" The trolley has a reagent container installed. "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("The trolley must have a reagent container installed to draw reagents from, such as water or space cleaner. This can be done by opening the maintenance panel on the trolley with a screwdriver and clicking on it with a bucket. Similarly, with an open panel, it can be removed by using a wrench on it.")]),n("div",[e._v(" Container Reagents Remaining: "),n("vui-progress",{class:{good:e.bucket_capacity>=.8*e.max_bucket_capacity,bad:e.bucket_capacity<=.4*e.max_bucket_capacity,average:e.bucket_capacity<.8*e.max_bucket_capacity&&e.bucket_capacity>.4*e.max_bucket_capacity},attrs:{value:e.bucket_capacity,max:e.max_bucket_capacity,min:0}},[e._v(e._s(e.bucket_capacity)+" cl")])],1)],1):n("div",[e._v(" The trolley does not have a reagent container installed. "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("The trolley must have a reagent container installed to draw reagents from, such as water or space cleaner. This can be done by opening the maintenance panel on the trolley with a screwdriver and clicking on it with a bucket. Similarly, with an open panel, it can be removed by using a wrench on it.")])],1)]):n("div",[e._v(" The wagon does not have the correct trolley installed. ")])],1):n("div",[e._v(" This engine isn't towing anything currently. "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("You can latch vehicles together by dragging from the vehicle you want to be the anchor point, to the trolley you wish to latch.")])],1)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h2",[e._v("TROLLEY STATUS")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"4d90":function(e,t,n){"use strict";var i=n("23e7"),r=n("0ccb").start,s=n("9a0c");i({target:"String",proto:!0,forced:s},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,s=n("1dde"),a=n("ae40"),o=s("filter"),c=a("filter");i({target:"Array",proto:!0,forced:!o||!c},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("0366"),r=n("7b0b"),s=n("9bdd"),a=n("e95a"),o=n("50c4"),c=n("8418"),l=n("35a1");e.exports=function(e){var t,n,u,d,h,f,p=r(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,b=void 0!==v,y=l(p),w=0;if(b&&(v=i(v,m>2?arguments[2]:void 0,2)),void 0==y||g==Array&&a(y))for(t=o(p.length),n=new g(t);t>w;w++)f=b?v(p[w],w):p[w],c(n,w,f);else for(d=y.call(p),h=d.next,n=new g;!(u=h.call(d)).done;w++)f=b?s(d,v,[u.value,w],!0):u.value,c(n,w,f);return n.length=w,n}},"4e82":function(e,t,n){"use strict";var i=n("23e7"),r=n("1c0b"),s=n("7b0b"),a=n("d039"),o=n("a640"),c=[],l=c.sort,u=a((function(){c.sort(void 0)})),d=a((function(){c.sort(null)})),h=o("sort"),f=u||!d||!h;i({target:"Array",proto:!0,forced:f},{sort:function(e){return void 0===e?l.call(s(this)):l.call(s(this),r(e))}})},"4ec9":function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");e.exports=i("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"4fad":function(e,t,n){var i=n("23e7"),r=n("6f53").entries;i({target:"Object",stat:!0},{entries:function(e){return r(e)}})},"508b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Tank Control System")]),e.state["input"]?n("div",[n("vui-item",{attrs:{balance:.65,label:"Input:"}},[e.state["input"].power?n("span",[e._v("Injecting")]):n("span",[e._v("On Hold")]),e._v(" "),n("vui-button",{attrs:{params:{in_toggle_injector:1},icon:"power-off"}},[e._v("Toggle Power")])],1),n("vui-item",{attrs:{balance:.65,label:"Flow Rate Limit:"}},[e._v(e._s(e.state["input"].rate)+" L/s")]),n("vui-item",{attrs:{balance:.65,label:"Command:"}},[n("vui-input-numeric",{attrs:{width:"3em","button-count":3,max:e.state.maxrate},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.$toTopic({in_set_flowrate:e.state["input"].setrate})}},model:{value:e.state["input"].setrate,callback:function(t){e.$set(e.state["input"],"setrate",t)},expression:"state['input'].setrate"}}),n("br"),n("vui-button",{attrs:{"push-state":"",params:{in_set_flowrate:e.state["input"].setrate}}},[e._v("Set Flow Rate")])],1)],1):n("vui-button",{attrs:{params:{in_refresh_status:1}}},[e._v("Search for input port")]),e.state["output"]?n("div",{staticStyle:{"margin-top":"2em"}},[n("vui-item",{attrs:{balance:.65,label:"Output:"}},[e.state["output"].power?n("span",[e._v("Open")]):n("span",[e._v("On Hold")]),e._v(" "),n("vui-button",{attrs:{params:{out_toggle_power:1},icon:"power-off"}},[e._v("Toggle Power")])],1),n("vui-item",{attrs:{balance:.65,label:"Max Output Pressure:"}},[e._v(e._s(e.state["output"].pressure)+" kPa")]),n("vui-item",{attrs:{balance:.65,label:"Command:"}},[n("vui-input-numeric",{attrs:{width:"5em","button-count":4,"decimal-places":2,max:e.state.maxpressure},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.$toTopic({out_set_pressure:e.state["output"].setpressure})}},model:{value:e.state["output"].setpressure,callback:function(t){e.$set(e.state["output"],"setpressure",t)},expression:"state['output'].setpressure"}}),n("br"),n("vui-button",{attrs:{"push-state":"",params:{out_set_pressure:e.state["output"].setpressure}}},[e._v("Set Pressure")])],1)],1):n("vui-button",{attrs:{params:{out_refresh_status:1}}},[e._v("Search for output port")])],1)},r=[],s={data:function(){return this.$root.$data}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"51eb":function(e,t,n){"use strict";var i=n("825a"),r=n("c04e");e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(i(this),"number"!==e)}},5319:function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),s=n("7b0b"),a=n("50c4"),o=n("a691"),c=n("1d80"),l=n("8aa5"),u=n("14c3"),d=Math.max,h=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};i("replace",2,(function(e,t,n,i){var v=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=i.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(n,i){var r=c(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!v&&b||"string"===typeof i&&-1===i.indexOf(y)){var s=n(t,e,this,i);if(s.done)return s.value}var c=r(e),f=String(this),p="function"===typeof i;p||(i=String(i));var g=c.global;if(g){var _=c.unicode;c.lastIndex=0}var x=[];while(1){var k=u(c,f);if(null===k)break;if(x.push(k),!g)break;var A=String(k[0]);""===A&&(c.lastIndex=l(f,a(c.lastIndex),_))}for(var C="",E=0,S=0;S<x.length;S++){k=x[S];for(var F=String(k[0]),$=d(h(o(k.index),f.length),0),T=[],L=1;L<k.length;L++)T.push(m(k[L]));var D=k.groups;if(p){var B=[F].concat(T,$,f);void 0!==D&&B.push(D);var R=String(i.apply(void 0,B))}else R=w(F,f,$,T,D,i);$>=E&&(C+=f.slice(E,$)+R,E=$+F.length)}return C+f.slice(E)}];function w(e,n,i,r,a,o){var c=i+e.length,l=r.length,u=g;return void 0!==a&&(a=s(a),u=p),t.call(o,u,(function(t,s){var o;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(c);case"<":o=a[s.slice(1,-1)];break;default:var u=+s;if(0===u)return t;if(u>l){var d=f(u/10);return 0===d?t:d<=l?void 0===r[d-1]?s.charAt(1):r[d-1]+s.charAt(1):t}o=r[u-1]}return void 0===o?"":o}))}}))},5327:function(e,t,n){var i=n("23e7"),r=n("1ec1"),s=Math.acosh,a=Math.log,o=Math.sqrt,c=Math.LN2,l=!s||710!=Math.floor(s(Number.MAX_VALUE))||s(1/0)!=1/0;i({target:"Math",stat:!0,forced:l},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+c:r(e-1+o(e-1)*o(e+1))}})},5377:function(e,t,n){var i=n("83ab"),r=n("9bf2"),s=n("ad6d"),a=n("9f7f").UNSUPPORTED_Y;i&&("g"!=/./g.flags||a)&&r.f(RegExp.prototype,"flags",{configurable:!0,get:s})},"542d":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),s=n("408a"),a=1..toPrecision,o=r((function(){return"1"!==a.call(1,void 0)}))||!r((function(){a.call({})}));i({target:"Number",proto:!0,forced:o},{toPrecision:function(e){return void 0===e?a.call(s(this)):a.call(s(this),e)}})},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56d7":function(e,t,n){"use strict";n.r(t),function(e){n("4160"),n("e260"),n("d3b7"),n("ac1f"),n("5319"),n("159b"),n("ddb0"),n("4795"),n("2d26");var t=n("a026"),i=n("8103"),r=n.n(i),s=n("bba4"),a=n.n(s),o=n("fe83"),c=n("c0d6"),l=(n("e008"),n("f0e0")),u=n("3851");if(u.keys().forEach((function(e){var n=u(e),i=r()(a()(e.replace(/^\.\/(.*)\.\w+$/,"$1")));t["a"].component(i,n.default||n)})),t["a"].use(o["a"]),t["a"].config.productionTip=!1,e.Vue=t["a"],e.receiveUIState=function(e){c["a"].loadState(JSON.parse(e))},document.getElementById("app")){var d=JSON.parse(document.getElementById("initialstate").innerHTML);c["a"].loadState(d),window.__wtimetimer=window.setInterval((function(){c["a"].state.wtime+=2}),200),l["a"].setWindowKey(window.document.getElementById("vueui:windowId").getAttribute("content")),l["a"].setupDrag(),new t["a"]({data:c["a"].state,template:"<div id='content' tabindex='-1'><p class='csserror'>Javascript loaded, stylesheets has failed to load. <a href='javascript:void(0)'><vui-button :params='{ vueuiforceresource: 1}'>Click here to load.</vui-button></a></p><component v-if='componentName' :is='componentName'/><component v-if='templateString' :is='{template:templateString}'/></div>",computed:{componentName:function(){return"?"!=this.$root.$data.active.charAt(0)?"view-"+this.$root.$data.active:null},templateString:function(){return"?"==this.$root.$data.active.charAt(0)?"<div>"+this.$root.$data.active.substr(1)+"</div>":null}},watch:{state:{handler:function(){c["a"].pushState()},deep:!0}},mounted:function(){this.$el.focus()}}).$mount("#app")}document.getElementById("header")&&new t["a"]({data:c["a"].state}).$mount("#header"),document.getElementById("dapp")&&new t["a"]({data:c["a"].state,template:'<div id="debug"><h2>Debug this UI with inspector by opening URL in your browser:</h2><pre>{{url}}</pre><h2>Current data of UI:</h2><pre>{{ JSON.stringify(this.$root.$data, null, \' \') }}</pre><button @click="stop()">STOP WTIME TRACKING</button></div>',methods:{stop:function(){window.clearInterval(window.__wtimetimer)}},computed:{url:function(){return window.location.href+"?ext"}}}).$mount("#dapp")}.call(this,n("c8ba"))},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),s=n("7418"),a=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=s.f;return n?t.concat(n(e)):t}},"583b":function(e,t,n){var i=n("23e7"),r=n("5e89"),s=Math.abs;i({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&s(e)<=9007199254740991}})},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("1d80"),r=n("5899"),s="["+r+"]",a=RegExp("^"+s+s+"*"),o=RegExp(s+s+"*$"),c=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(o,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},"58e3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.state.failTime?n("div",{staticClass:"notice"},[n("h3",{staticClass:"fw-bold"},[e._v("SYSTEM FAILURE")]),n("span",{staticClass:"fst-italic"},[e._v("I/O regulator malfuction detected! Waiting for system reboot...")]),n("br"),e._v(" Automatic reboot in "+e._s(e.state.failTime)+" seconds... "),n("vui-button",{attrs:{icon:"sync",params:{reboot:1}}},[e._v("Reboot Now")])],1):n("vui-group",[n("vui-group-item",{attrs:{label:"Stored Capacity:"}},[n("vui-progress",{class:e.state.charging?"good":"average",attrs:{value:e.state.storedCapacity,min:0,max:100}}),n("div",{staticClass:"statusValue"},[e._v(" "+e._s(Math.round(e.state.storedCapacity))+"% ")])],1),n("vui-group-item",{attrs:{label:"Charge status:"}},[n("div",{staticClass:"statusValue"},[1==e.state.chargeMode?n("span",[e._v(" SMES will be fully charged in "+e._s(e.timeRemaining)+" ")]):2==e.state.chargeMode?n("span",[e._v(" SMES input and output are equal ")]):n("span",[e._v(" SMES will run out of charge in "+e._s(e.timeRemaining)+" ")])])]),n("h3",[e._v("Input Management")]),n("vui-group-item",{attrs:{label:"Charge Mode:"}},[n("vui-button",{attrs:{icon:e.state.chargeAttempt?"sync":"times",params:{cmode:1}}},[e._v(e._s(e.state.chargeAttempt?"Auto":"Off"))]),e._v(" ["),n("span",{class:e.chargeClass},[e._v(e._s(e.chargeStatus))]),e._v("] ")],1),n("vui-group-item",{attrs:{label:"Input Level:"}},[n("vui-progress",{attrs:{value:e.state.chargeLevel,min:0,max:e.state.chargeMax}}),n("div",{staticStyle:{clear:"both","padding-top":"4px","text-align":"center"}},[n("vui-input-numeric",{attrs:{width:"100px","min-button":"","max-button":"","button-count":0,min:0,max:e.state.chargeMax},on:{input:function(t){return e.s({input:e.state.chargeLevel})}},model:{value:e.state.chargeLevel,callback:function(t){e.$set(e.state,"chargeLevel",t)},expression:"state.chargeLevel"}},[e._v(" "+e._s(e.state.chargeLevel)+" W ")])],1)],1),n("vui-group-item",{attrs:{label:"Input Load:"}},[n("vui-progress",{class:e.state.chargeTaken<e.state.chargeLevel?"average":"good",attrs:{value:e.state.chargeTaken,min:0,max:e.state.chargeMax}}),n("div",{staticClass:"statusValue"},[e._v(" "+e._s(e.state.chargeTaken)+" W ")])],1),n("h3",[e._v("Output Management")]),n("vui-group-item",{attrs:{label:"Output Status:"}},[n("vui-button",{attrs:{icon:e.state.outputOnline?"power-off":"times",params:{online:1}}},[e._v(e._s(e.state.outputOnline?"On":"Off")+"line")]),e._v(" ["),n("span",{class:e.outputClass},[e._v(e._s(e.outputStatus))]),e._v("] ")],1),n("vui-group-item",{attrs:{label:"Output Level:"}},[n("vui-progress",{attrs:{value:e.state.outputLevel,min:0,max:e.state.outputMax}}),n("div",{staticStyle:{clear:"both","padding-top":"4px","text-align":"center"}},[n("vui-input-numeric",{attrs:{width:"100px","min-button":"","max-button":"","button-count":0,min:0,max:e.state.outputMax},on:{input:function(t){return e.s({output:e.state.outputLevel})}},model:{value:e.state.outputLevel,callback:function(t){e.$set(e.state,"outputLevel",t)},expression:"state.outputLevel"}},[e._v(" "+e._s(e.state.outputLevel)+" W ")])],1)],1),n("vui-group-item",{attrs:{label:"Output Load:"}},[n("vui-progress",{class:e.state.outputLoad<e.state.outputLevel?"good":"average",attrs:{value:e.state.outputLoad,min:0,max:e.state.outputMax}}),n("div",{staticClass:"statusValue"},[e._v(" "+e._s(e.state.outputLoad)+" W ")])],1)],1)],1)},r=[],s=(n("4de4"),n("a15b"),n("025e")),a={data:function(){return this.$root.$data},methods:{s:function(e){s["a"].sendToTopic(e)}},computed:{chargeClass:function(){switch(this.state.chargeMode){case 2:return"good";case 1:return"average";default:return"bad"}},chargeStatus:function(){switch(this.state.chargeMode){case 2:return"Charging";case 1:return"Partially Charging";default:return"Not Charging"}},outputClass:function(){switch(this.state.outputting){case 2:return"good";case 1:return"average";default:return"bad"}},outputStatus:function(){switch(this.state.outputting){case 2:return"Outputting";case 1:return"Disconnected or No Charge";default:return"Not Outputting"}},timeRemaining:function(){var e=(this.state.time-this.wtime)/10,t=Math.round(e/3600),n=Math.round(e%3600/60),i=Math.round(e%60);return[t>=1&&"".concat(t," hours"),n>=1&&"".concat(n," minutes"),i>=1&&"".concat(i," seconds")].filter(Boolean).join(", ")}}},o=a,c=n("2877"),l=Object(c["a"])(o,i,r,!1,null,null,null);t["default"]=l.exports},"592e":function(e,t,n){},"5a34":function(e,t,n){var i=n("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5aa2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"button",attrs:{disabled:e.$root.$data.status<2||this.disabled},on:{click:function(t){return e.senddata()}}},[e.icon?n("div",{staticClass:"uiIcon16",class:["ic-"+this.icon,{"mr-1":!this.iconOnly},e.getRotateClass,e.getFlipClass]}):e._e(),n("span",[e._t("default")],2)])},r=[],s=(n("a9e3"),n("c0d6")),a=n("025e"),o={props:{icon:{type:String,default:""},rotate:{type:Number,default:0},flip:{type:String,default:""},params:{type:Object,default:null},unsafeParams:{type:Object,default:null},pushState:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1}},methods:{senddata:function(){this.$root.$data.status<2||this.disabled||(this.$emit("click"),this.unsafeParams&&a["a"].sendToTopicRaw(this.unsafeParams),this.params?a["a"].sendToTopic(this.params,this.pushState):this.pushState&&s["a"].pushState())}},computed:{getRotateClass:function(){switch(this.rotate%360){case 90:return"ic-rotate-90";case 180:return"ic-rotate-180";case 270:return"ic-rotate-270";default:return""}},getFlipClass:function(){if(this.flip)return"ic-flip-".concat(this.flip)}}},c=o,l=n("2877"),u=Object(l["a"])(c,i,r,!1,null,null,null);t["default"]=u.exports},"5ae5":function(e,t,n){},"5b81":function(e,t,n){"use strict";var i=n("23e7"),r=n("1d80"),s=n("44e7"),a=n("ad6d"),o=n("b622"),c=n("c430"),l=o("replace"),u=RegExp.prototype;i({target:"String",proto:!0},{replaceAll:function e(t,n){var i,o,d,h,f,p,g,m,v,b=r(this);if(null!=t){if(i=s(t),i&&(o=String(r("flags"in u?t.flags:a.call(t))),!~o.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(d=t[l],void 0!==d)return d.call(t,b,n);if(c&&i)return String(b).replace(t,n)}if(h=String(b),f=String(t),""===f)return e.call(h,/(?:)/g,n);if(p=h.split(f),"function"!==typeof n)return p.join(String(n));for(g=p[0],m=g.length,v=1;v<p.length;v++)g+=String(n(f,m,h)),m+=f.length+p[v].length,g+=p[v];return g}})},"5bf7":function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),s=n("eb1d"),a=n("7b0b"),o=n("c04e"),c=n("e163"),l=n("06cf").f;r&&i({target:"Object",proto:!0,forced:s},{__lookupSetter__:function(e){var t,n=a(this),i=o(e,!0);do{if(t=l(n,i))return t.set}while(n=c(n))}})},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cc6":function(e,t,n){var i=n("74e8");i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"5d41":function(e,t,n){var i=n("23e7"),r=n("861d"),s=n("825a"),a=n("5135"),o=n("06cf"),c=n("e163");function l(e,t){var n,i,u=arguments.length<3?e:arguments[2];return s(e)===u?e[t]:(n=o.f(e,t))?a(n,"value")?n.value:void 0===n.get?void 0:n.get.call(u):r(i=c(e))?l(i,t,u):void 0}i({target:"Reflect",stat:!0},{get:l})},"5d50":function(e,t,n){},"5d91":function(e,t,n){n("a4d3"),n("b636"),n("e01a"),n("dc8d"),n("efe9"),n("d28b"),n("2a1b"),n("8edd"),n("80e0"),n("6b9e"),n("197b"),n("2351"),n("8172"),n("944a"),n("81b8"),n("967a"),n("a630"),n("277d"),n("5ded"),n("99af"),n("a874"),n("a623"),n("cb29"),n("4de4"),n("7db0"),n("c740"),n("0481"),n("5db7"),n("4160"),n("caad"),n("c975"),n("a15b"),n("baa5"),n("d81d"),n("13d5"),n("f4dd"),n("26e9"),n("fb6a"),n("45fc"),n("4e82"),n("a434"),n("f785"),n("4069"),n("73d9"),n("e260"),n("c0b6"),n("b0c0"),n("b56e"),n("6c57"),n("cca6"),n("b8bf"),n("7a82"),n("1d1c"),n("4fad"),n("dca8"),n("c1f9"),n("e439"),n("dbb4"),n("7039"),n("3410"),n("2b19"),n("c906"),n("e21d"),n("e43e"),n("b64b"),n("cee8"),n("af93"),n("131a"),n("07ac"),n("d3b7"),n("12a8"),n("e71b"),n("bf96"),n("5bf7"),n("f6d6"),n("d80f"),n("f5b2"),n("8a79"),n("2532"),n("466d"),n("a1f0"),n("843c"),n("4d90"),n("38cf"),n("5319"),n("841c"),n("1276"),n("2ca0"),n("498a"),n("eee7"),n("1e25"),n("3ca3"),n("18a5"),n("1393"),n("04d3"),n("cc71"),n("c7cd"),n("9767"),n("1913"),n("c5d0"),n("9911"),n("c96a"),n("2315"),n("4c53"),n("664f"),n("5b81"),n("4d63"),n("ac1f"),n("5377"),n("2c3e"),n("00b4"),n("25f0"),n("e25e"),n("acd8"),n("a9e3"),n("35b3"),n("f00c"),n("8ba4"),n("9129"),n("583b"),n("aff5"),n("e6e1"),n("c35a"),n("25eb"),n("b680"),n("542d"),n("5327"),n("79a8"),n("9ff9"),n("3ea3"),n("40d9"),n("ff9c"),n("0ac8"),n("f664"),n("4057"),n("bc01"),n("6b93"),n("ca21"),n("90d7"),n("2af1"),n("0261"),n("7898"),n("23dc"),n("b65f"),n("6eba"),n("f4b3"),n("accc"),n("0d03"),n("efec"),n("e9c4"),n("0c47"),n("e6cf"),n("820e"),n("dbfa"),n("a79d"),n("4ec9"),n("6062"),n("10d1"),n("1fe2"),n("c19f"),n("82da"),n("ace4"),n("b420"),n("fd87"),n("5cc6"),n("8a59"),n("8b09"),n("84c3"),n("143c"),n("fb2c"),n("cfc3"),n("4a9b"),n("20bf"),n("ec97"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("a6fd"),n("4ae1"),n("3f3a"),n("ac16"),n("5d41"),n("9e4a"),n("7f78"),n("c760"),n("db96"),n("1bf2"),n("d6dd"),n("7ed3"),n("8b9a"),n("f8c9");var i=n("428f");e.exports=i},"5db7":function(e,t,n){"use strict";var i=n("23e7"),r=n("a2bf"),s=n("7b0b"),a=n("50c4"),o=n("1c0b"),c=n("65f0");i({target:"Array",proto:!0},{flatMap:function(e){var t,n=s(this),i=a(n.length);return o(e),t=c(n,0),t.length=r(t,n,n,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},"5ddf":function(e,t,n){"use strict";n("3aaf")},"5ded":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),s=n("8418"),a=r((function(){function e(){}return!(Array.of.call(e)instanceof e)}));i({target:"Array",stat:!0,forced:a},{of:function(){var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);while(t>e)s(n,e,arguments[e++]);return n.length=t,n}})},"5e89":function(e,t,n){var i=n("861d"),r=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&r(e)===e}},"5f40":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Status")]),n("vui-group",[n("vui-group-item",{attrs:{label:"Generator Status:"}},[e.active?n("span",{staticClass:"good"},[e._v("Online")]):n("span",{staticClass:"average"},[e._v("Offline")])]),n("vui-group-item",{attrs:{label:"Generator Control:"}},[e.active?n("vui-button",{attrs:{params:{action:"disable"},icon:"power-off"}},[e._v("STOP")]):n("vui-button",{attrs:{params:{action:"enable"},disabled:!!e.is_broken,icon:"power-off"}},[e._v("START")])],1)],1),n("h3",[e._v("Fuel")]),n("vui-group",[n("vui-group-item",{attrs:{label:"Fuel Type:"}},[e._v(e._s(e.fuel.fuel_type))]),n("vui-group-item",{attrs:{label:"Fuel Level:"}},[n("vui-progress",{attrs:{value:e.fuel.fuel_stored,max:e.fuel.fuel_capacity}},[e._v(e._s(Math.round(e.fuel.fuel_stored/e.fuel.fuel_capacity*100))+"%")])],1),n("vui-group-item",{class:{bad:0==e.fuel.fuel_stored,good:e.fuel.fuel_stored>0}},[e._v(e._s(e.fuel.fuel_stored)+" cm³ / "+e._s(e.fuel.fuel_capacity)+" cm³")]),e.fuel.fuel_usage>0&&e.active?n("vui-group-item",{attrs:{label:"Fuel Usage:"}},[e._v(e._s(e.fuel.fuel_usage)+" cm³/s - ("+e._s(Math.round(e.fuel.fuel_stored/e.fuel.fuel_usage))+" s remaining)")]):e._e(),n("vui-group-item",{attrs:{label:"Control:"}},[n("vui-button",{attrs:{params:{action:"eject"},disabled:!(!e.is_broken&&!e.is_ai),icon:"eject"}},[e._v("EJECT FUEL")])],1)],1),n("h3",[e._v("Output")]),n("vui-group",[n("vui-group-item",{attrs:{label:"Power Setting:"}},[n("span",{class:{bad:e.output_set>e.output_safe,good:e.output_set<=e.output_safe}},[e._v(e._s(e.output_set)+" / "+e._s(e.output_max)+" ("+e._s(e.output_watts)+" W)")])]),n("vui-group-item",{attrs:{label:"Control:"}},[n("vui-button",{attrs:{params:{action:"higher_power"},disabled:e.output_set==e.output_max}},[e._v("+")]),n("vui-button",{attrs:{params:{action:"lower_power"},disabled:e.output_set==e.output_min}},[e._v("-")])],1)],1),n("h3",[e._v("Temperature")]),n("vui-group",[n("vui-group-item",{attrs:{label:"Temperature:"}},[n("vui-progress",{class:e.getTemperatureClass(e.temperature_current),attrs:{value:e.temperature_current,min:e.temperature_min,max:1.5*e.temperature_max}},[e._v(e._s(Math.max(e.temperature_min,e.temperature_current))+"C")])],1),n("vui-group-item",{attrs:{label:"Generator Status:"}},[e.temperature_overheat>50?n("span",{staticClass:"bad"},[e._v("DANGER: CRITICAL OVERHEAT! Deactivate generator immediately!")]):e.temperature_overheat>20?n("span",{staticClass:"average"},[e._v("WARNING: Overheating!")]):e.temperature_overheat>1?n("span",{staticClass:"average"},[e._v("Temperature High")]):n("span",{staticClass:"good"},[e._v("Optimal")])])],1)],1)},r=[],s={data:function(){return this.$root.$data.state},methods:{getTemperatureClass:function(e){return e<.8*this.$root.$data.state.temperature_max?"good":e<this.$root.$data.state.temperature_max?"average":"bad"}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"5f96":function(e,t,n){"use strict";var i=n("ebb5"),r=i.aTypedArray,s=i.exportTypedArrayMethod,a=[].join;s("join",(function(e){return a.apply(r(this),arguments)}))},"5fb2":function(e,t,n){"use strict";var i=2147483647,r=36,s=1,a=26,o=38,c=700,l=72,u=128,d="-",h=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",g=r-s,m=Math.floor,v=String.fromCharCode,b=function(e){var t=[],n=0,i=e.length;while(n<i){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var s=e.charCodeAt(n++);56320==(64512&s)?t.push(((1023&r)<<10)+(1023&s)+65536):(t.push(r),n--)}else t.push(r)}return t},y=function(e){return e+22+75*(e<26)},w=function(e,t,n){var i=0;for(e=n?m(e/c):e>>1,e+=m(e/t);e>g*a>>1;i+=r)e=m(e/g);return m(i+(g+1)*e/(e+o))},_=function(e){var t=[];e=b(e);var n,o,c=e.length,h=u,f=0,g=l;for(n=0;n<e.length;n++)o=e[n],o<128&&t.push(v(o));var _=t.length,x=_;_&&t.push(d);while(x<c){var k=i;for(n=0;n<e.length;n++)o=e[n],o>=h&&o<k&&(k=o);var A=x+1;if(k-h>m((i-f)/A))throw RangeError(p);for(f+=(k-h)*A,h=k,n=0;n<e.length;n++){if(o=e[n],o<h&&++f>i)throw RangeError(p);if(o==h){for(var C=f,E=r;;E+=r){var S=E<=g?s:E>=g+a?a:E-g;if(C<S)break;var F=C-S,$=r-S;t.push(v(y(S+F%$))),C=m(F/$)}t.push(v(y(C))),g=w(f,A,x==_),f=0,++x}}++f,++h}return t.join("")};e.exports=function(e){var t,n,i=[],r=e.toLowerCase().replace(f,".").split(".");for(t=0;t<r.length;t++)n=r[t],i.push(h.test(n)?"xn--"+_(n):n);return i.join(".")}},"605d":function(e,t,n){var i=n("c6b6"),r=n("da84");e.exports="process"==i(r.process)},6062:function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");e.exports=i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"60bd":function(e,t,n){"use strict";var i=n("da84"),r=n("ebb5"),s=n("e260"),a=n("b622"),o=a("iterator"),c=i.Uint8Array,l=s.values,u=s.keys,d=s.entries,h=r.aTypedArray,f=r.exportTypedArrayMethod,p=c&&c.prototype[o],g=!!p&&("values"==p.name||void 0==p.name),m=function(){return l.call(h(this))};f("entries",(function(){return d.call(h(this))})),f("keys",(function(){return u.call(h(this))})),f("values",m,!g),f(o,m,!g)},"60da":function(e,t,n){"use strict";var i=n("83ab"),r=n("d039"),s=n("df75"),a=n("7418"),o=n("d1e7"),c=n("7b0b"),l=n("44ad"),u=Object.assign,d=Object.defineProperty;e.exports=!u||r((function(){if(i&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||s(u({},t)).join("")!=r}))?function(e,t){var n=c(e),r=arguments.length,u=1,d=a.f,h=o.f;while(r>u){var f,p=l(arguments[u++]),g=d?s(p).concat(d(p)):s(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!h.call(p,f)||(n[f]=p[f])}return n}:u},"614c":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Fuel Injection System")]),e.state["device"]?[n("vui-item",{attrs:{label:"Input:"}},[e.state.device.power?n("span",[e._v("Injecting")]):n("span",[e._v("On Hold")]),n("vui-button",{attrs:{params:{in_toggle_injector:1}}},[e._v("Toggle Power")])],1),n("vui-item",{attrs:{label:"Rate:"}},[e._v(e._s(e.state.device.rate)+" L/s")]),n("vui-item",{attrs:{label:"Automated Fuel Injection:"}},[e.state.device.automation?n("vui-button",{attrs:{params:{toggle_automation:1}}},[e._v("Engaged")]):n("vui-button",{attrs:{params:{toggle_automation:1}}},[e._v("Disengaged")])],1),n("vui-item",{attrs:{label:"Inject:"}},[e.state.device.automation?[e._v("Controls Locked Out")]:[n("vui-button",{attrs:{params:{toggle_injector:1},icon:"power-off"}},[e._v("Toggle Power")]),n("vui-button",{attrs:{params:{injection:1}}},[e._v("Inject (1 Cycle)")])]],2)]:n("vui-button",{attrs:{params:{in_refresh_status:1}}},[e._v("Search for device")])],2)},r=[],s={data:function(){return this.$root.$data}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"621a":function(e,t,n){"use strict";var i=n("da84"),r=n("83ab"),s=n("a981"),a=n("9112"),o=n("e2cc"),c=n("d039"),l=n("19aa"),u=n("a691"),d=n("50c4"),h=n("0b25"),f=n("77a7"),p=n("e163"),g=n("d2bb"),m=n("241c").f,v=n("9bf2").f,b=n("81d5"),y=n("d44e"),w=n("69f3"),_=w.get,x=w.set,k="ArrayBuffer",A="DataView",C="prototype",E="Wrong length",S="Wrong index",F=i[k],$=F,T=i[A],L=T&&T[C],D=Object.prototype,B=i.RangeError,R=f.pack,O=f.unpack,M=function(e){return[255&e]},j=function(e){return[255&e,e>>8&255]},I=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},P=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},N=function(e){return R(e,23,4)},W=function(e){return R(e,52,8)},H=function(e,t){v(e[C],t,{get:function(){return _(this)[t]}})},V=function(e,t,n,i){var r=h(n),s=_(e);if(r+t>s.byteLength)throw B(S);var a=_(s.buffer).bytes,o=r+s.byteOffset,c=a.slice(o,o+t);return i?c:c.reverse()},U=function(e,t,n,i,r,s){var a=h(n),o=_(e);if(a+t>o.byteLength)throw B(S);for(var c=_(o.buffer).bytes,l=a+o.byteOffset,u=i(+r),d=0;d<t;d++)c[l+d]=u[s?d:t-d-1]};if(s){if(!c((function(){F(1)}))||!c((function(){new F(-1)}))||c((function(){return new F,new F(1.5),new F(NaN),F.name!=k}))){$=function(e){return l(this,$),new F(h(e))};for(var z,G=$[C]=F[C],q=m(F),K=0;q.length>K;)(z=q[K++])in $||a($,z,F[z]);G.constructor=$}g&&p(L)!==D&&g(L,D);var Y=new T(new $(2)),X=L.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||o(L,{setInt8:function(e,t){X.call(this,e,t<<24>>24)},setUint8:function(e,t){X.call(this,e,t<<24>>24)}},{unsafe:!0})}else $=function(e){l(this,$,k);var t=h(e);x(this,{bytes:b.call(new Array(t),0),byteLength:t}),r||(this.byteLength=t)},T=function(e,t,n){l(this,T,A),l(e,$,A);var i=_(e).byteLength,s=u(t);if(s<0||s>i)throw B("Wrong offset");if(n=void 0===n?i-s:d(n),s+n>i)throw B(E);x(this,{buffer:e,byteLength:n,byteOffset:s}),r||(this.buffer=e,this.byteLength=n,this.byteOffset=s)},r&&(H($,"byteLength"),H(T,"buffer"),H(T,"byteLength"),H(T,"byteOffset")),o(T[C],{getInt8:function(e){return V(this,1,e)[0]<<24>>24},getUint8:function(e){return V(this,1,e)[0]},getInt16:function(e){var t=V(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=V(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return P(V(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return P(V(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return O(V(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return O(V(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){U(this,1,e,M,t)},setUint8:function(e,t){U(this,1,e,M,t)},setInt16:function(e,t){U(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){U(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){U(this,4,e,I,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){U(this,4,e,I,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){U(this,4,e,N,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){U(this,8,e,W,t,arguments.length>2?arguments[2]:void 0)}});y($,k),y(T,A),e.exports={ArrayBuffer:$,DataView:T}},6234:function(e,t,n){},6292:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-button",{directives:[{name:"show",rawName:"v-show",value:!e.creating,expression:"!creating"}],on:{click:function(t){e.creating=!0}}},[e._v("New")]),e.creating?[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newname,expression:"newname"}],attrs:{type:"text"},domProps:{value:e.newname},on:{input:function(t){t.target.composing||(e.newname=t.target.value)}}}),n("vui-button",{on:{click:function(t){return e.newFile()}}},[e._v("Create")])]:e._e(),n("h2",[e._v("Available files:")]),n("table",[e._m(0),e._l(e.s.files,(function(t){return n("tr",{key:t.name},[n("td",[e._v(e._s(t.name))]),n("td",[e._v(e._s(t.type))]),n("td",[e._v(e._s(t.size)+"GQ")]),n("td",[n("vui-button",{attrs:{params:{execute_file:t.name}}},[e._v("Execute")]),n("vui-button",{attrs:{params:{edit_file:t.name}}},[e._v("Edit")])],1)])}))],2)],2)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",[n("th",[e._v("File name")]),n("th",[e._v("File type")]),n("th",[e._v("File size (GQ)")]),n("th",[e._v("Operations")])])}],s={data:function(){return{s:this.$root.$data.state,creating:!1,newname:""}},methods:{newFile:function(){this.$toTopic({new:this.newname}),this.newname="",this.creating=!1}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},6309:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("table",e._l(e.listvar,(function(t,i){return n("ul",{key:i},[n("li",[e._v(e._s(i)+": "+e._s(t))])])})),0)])},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"63bf":function(e,t,n){},"63f9":function(e,t,n){},"649e":function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").some,s=i.aTypedArray,a=i.exportTypedArrayMethod;a("some",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},"64e5":function(e,t,n){"use strict";var i=n("d039"),r=n("0ccb").start,s=Math.abs,a=Date.prototype,o=a.getTime,c=a.toISOString;e.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=c.call(new Date(-50000000000001))}))||!i((function(){c.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+r(s(t),i?6:4,0)+"-"+r(e.getUTCMonth()+1,2,0)+"-"+r(e.getUTCDate(),2,0)+"T"+r(e.getUTCHours(),2,0)+":"+r(e.getUTCMinutes(),2,0)+":"+r(e.getUTCSeconds(),2,0)+"."+r(n,3,0)+"Z"}:c},6547:function(e,t,n){var i=n("a691"),r=n("1d80"),s=function(e){return function(t,n){var s,a,o=String(r(t)),c=i(n),l=o.length;return c<0||c>=l?e?"":void 0:(s=o.charCodeAt(c),s<55296||s>56319||c+1===l||(a=o.charCodeAt(c+1))<56320||a>57343?e?o.charAt(c):s:e?o.slice(c,c+2):a-56320+(s-55296<<10)+65536)}};e.exports={codeAt:s(!1),charAt:s(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),s=n("e2cc"),a=n("0366"),o=n("19aa"),c=n("2266"),l=n("7dd0"),u=n("2626"),d=n("83ab"),h=n("f183").fastKey,f=n("69f3"),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,i){o(e,u,t),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=i&&c(i,e[l],{that:e,AS_ENTRIES:n})})),f=g(t),m=function(e,t,n){var i,r,s=f(e),a=v(e,t);return a?a.value=n:(s.last=a={index:r=h(t,!0),key:t,value:n,previous:i=s.last,next:void 0,removed:!1},s.first||(s.first=a),i&&(i.next=a),d?s.size++:e.size++,"F"!==r&&(s.index[r]=a)),e},v=function(e,t){var n,i=f(e),r=h(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return s(u.prototype,{clear:function(){var e=this,t=f(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=f(t),i=v(t,e);if(i){var r=i.next,s=i.previous;delete n.index[i.index],i.removed=!0,s&&(s.next=r),r&&(r.previous=s),n.first==i&&(n.first=r),n.last==i&&(n.last=s),d?n.size--:t.size--}return!!i},forEach:function(e){var t,n=f(this),i=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),s(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),d&&i(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,n){var i=t+" Iterator",r=g(t),s=g(i);l(e,t,(function(e,t){p(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=s(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},"65f0":function(e,t,n){var i=n("861d"),r=n("e8b5"),s=n("b622"),a=s("species");e.exports=function(e,t){var n;return r(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"664f":function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("sup")},{sup:function(){return r(this,"sup","","")}})},6747:function(e,t){var n=Array.isArray;e.exports=n},6759:function(e,t,n){},6814:function(e,t,n){},"682e":function(e,t,n){"use strict";n("9513")},6836:function(e,t,n){},"69f3":function(e,t,n){var i,r,s,a=n("7f9a"),o=n("da84"),c=n("861d"),l=n("9112"),u=n("5135"),d=n("c6cd"),h=n("f772"),f=n("d012"),p=o.WeakMap,g=function(e){return s(e)?r(e):i(e,{})},m=function(e){return function(t){var n;if(!c(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var v=d.state||(d.state=new p),b=v.get,y=v.has,w=v.set;i=function(e,t){return t.facade=e,w.call(v,e,t),t},r=function(e){return b.call(v,e)||{}},s=function(e){return y.call(v,e)}}else{var _=h("state");f[_]=!0,i=function(e,t){return t.facade=e,l(e,_,t),t},r=function(e){return u(e,_)?e[_]:{}},s=function(e){return u(e,_)}}e.exports={set:i,get:r,has:s,enforce:g,getterFor:m}},"6a01":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.state.toner?n("span",[e._v("Current toner level: "+e._s(e.state.toner))]):e._e(),n("br"),e.state.gotitem?n("vui-button",{attrs:{params:{remove:1}}},[e._v("Remove Item")]):e._e(),n("br"),e.state.toner?[e.state.gotitem?[n("div",{staticClass:"itemLabel copylabel"},[e._v("Copies to print:")]),n("div",{staticClass:"copyBlock"},[n("vui-input-numeric",{attrs:{width:"2.5em",min:1,max:e.state.maxcopies},model:{value:e.state.copies,callback:function(t){e.$set(e.state,"copies",t)},expression:"state.copies"}}),n("br"),n("vui-button",{attrs:{"push-state":"",params:{copy:1}}},[e._v("Copy")])],1)]:[n("h3",[e._v("Please insert something to copy.")])],n("br"),e.state.isAI?n("vui-button",{attrs:{params:{aipic:1}}},[e._v("Print photo from database")]):e._e()]:[n("h2",[e._v("Please insert a new toner cartridge!")])]],2)},r=[],s={data:function(){return this.$root.$data}},a=s,o=(n("7dc4"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"927b9430",null);t["default"]=c.exports},"6a21":function(e,t){ace.define("ace/snippets/javascript",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText='# Prototype\nsnippet proto\n\t${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n\t\t${4:// body...}\n\t};\n# Function\nsnippet fun\n\tfunction ${1?:function_name}(${2:argument}) {\n\t\t${3:// body...}\n\t}\n# Anonymous Function\nregex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\nsnippet f\n\tfunction${M1?: ${1:functionName}}($2) {\n\t\t${0:$TM_SELECTED_TEXT}\n\t}${M2?;}${M3?,}${M4?)}\n# Immediate function\ntrigger \\(?f\\(\nendTrigger \\)?\nsnippet f(\n\t(function(${1}) {\n\t\t${0:${TM_SELECTED_TEXT:/* code */}}\n\t}(${1}));\n# if\nsnippet if\n\tif (${1:true}) {\n\t\t${0}\n\t}\n# if ... else\nsnippet ife\n\tif (${1:true}) {\n\t\t${2}\n\t} else {\n\t\t${0}\n\t}\n# tertiary conditional\nsnippet ter\n\t${1:/* condition */} ? ${2:a} : ${3:b}\n# switch\nsnippet switch\n\tswitch (${1:expression}) {\n\t\tcase \'${3:case}\':\n\t\t\t${4:// code}\n\t\t\tbreak;\n\t\t${5}\n\t\tdefault:\n\t\t\t${2:// code}\n\t}\n# case\nsnippet case\n\tcase \'${1:case}\':\n\t\t${2:// code}\n\t\tbreak;\n\t${3}\n\n# while (...) {...}\nsnippet wh\n\twhile (${1:/* condition */}) {\n\t\t${0:/* code */}\n\t}\n# try\nsnippet try\n\ttry {\n\t\t${0:/* code */}\n\t} catch (e) {}\n# do...while\nsnippet do\n\tdo {\n\t\t${2:/* code */}\n\t} while (${1:/* condition */});\n# Object Method\nsnippet :f\nregex /([,{[])|^\\s*/:f/\n\t${1:method_name}: function(${2:attribute}) {\n\t\t${0}\n\t}${3:,}\n# setTimeout function\nsnippet setTimeout\nregex /\\b/st|timeout|setTimeo?u?t?/\n\tsetTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n# Get Elements\nsnippet gett\n\tgetElementsBy${1:TagName}(\'${2}\')${3}\n# Get Element\nsnippet get\n\tgetElementBy${1:Id}(\'${2}\')${3}\n# console.log (Firebug)\nsnippet cl\n\tconsole.log(${1});\n# return\nsnippet ret\n\treturn ${1:result}\n# for (property in object ) { ... }\nsnippet fori\n\tfor (var ${1:prop} in ${2:Things}) {\n\t\t${0:$2[$1]}\n\t}\n# hasOwnProperty\nsnippet has\n\thasOwnProperty(${1})\n# docstring\nsnippet /**\n\t/**\n\t * ${1:description}\n\t *\n\t */\nsnippet @par\nregex /^\\s*\\*\\s*/@(para?m?)?/\n\t@param {${1:type}} ${2:name} ${3:description}\nsnippet @ret\n\t@return {${1:type}} ${2:description}\n# JSON.parse\nsnippet jsonp\n\tJSON.parse(${1:jstr});\n# JSON.stringify\nsnippet jsons\n\tJSON.stringify(${1:object});\n# self-defining function\nsnippet sdf\n\tvar ${1:function_name} = function(${2:argument}) {\n\t\t${3:// initial code ...}\n\n\t\t$1 = function($2) {\n\t\t\t${4:// main code}\n\t\t};\n\t}\n# singleton\nsnippet sing\n\tfunction ${1:Singleton} (${2:argument}) {\n\t\t// the cached instance\n\t\tvar instance;\n\n\t\t// rewrite the constructor\n\t\t$1 = function $1($2) {\n\t\t\treturn instance;\n\t\t};\n\t\t\n\t\t// carry over the prototype properties\n\t\t$1.prototype = this;\n\n\t\t// the instance\n\t\tinstance = new $1();\n\n\t\t// reset the constructor pointer\n\t\tinstance.constructor = $1;\n\n\t\t${3:// code ...}\n\n\t\treturn instance;\n\t}\n# class\nsnippet class\nregex /^\\s*/clas{0,2}/\n\tvar ${1:class} = function(${20}) {\n\t\t$40$0\n\t};\n\t\n\t(function() {\n\t\t${60:this.prop = ""}\n\t}).call(${1:class}.prototype);\n\t\n\texports.${1:class} = ${1:class};\n# \nsnippet for-\n\tfor (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n\t\t${0:${2:Things}[${1:i}];}\n\t}\n# for (...) {...}\nsnippet for\n\tfor (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n\t\t${3:$2[$1]}$0\n\t}\n# for (...) {...} (Improved Native For-Loop)\nsnippet forr\n\tfor (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n\t\t${3:$2[$1]}$0\n\t}\n\n\n#modules\nsnippet def\n\tdefine(function(require, exports, module) {\n\t"use strict";\n\tvar ${1/.*\\///} = require("${1}");\n\t\n\t$TM_SELECTED_TEXT\n\t});\nsnippet req\nguard ^\\s*\n\tvar ${1/.*\\///} = require("${1}");\n\t$0\nsnippet requ\nguard ^\\s*\n\tvar ${1/.*\\/(.)/\\u$1/} = require("${1}").${1/.*\\/(.)/\\u$1/};\n\t$0\n',t.scope="javascript"}))},"6ac0":function(e,t){function n(e,t,n,i){var r=-1,s=null==e?0:e.length;i&&s&&(n=e[++r]);while(++r<s)n=t(n,e[r],r,e);return n}e.exports=n},"6b93":function(e,t,n){var i=n("23e7"),r=Math.log,s=Math.LOG10E;i({target:"Math",stat:!0},{log10:function(e){return r(e)*s}})},"6b9e":function(e,t,n){var i=n("746f");i("search")},"6c57":function(e,t,n){var i=n("23e7"),r=n("da84");i({global:!0},{globalThis:r})},"6d61":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),s=n("94ca"),a=n("6eeb"),o=n("f183"),c=n("2266"),l=n("19aa"),u=n("861d"),d=n("d039"),h=n("1c7e"),f=n("d44e"),p=n("7156");e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",b=r[e],y=b&&b.prototype,w=b,_={},x=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(s(e,"function"!=typeof b||!(m||y.forEach&&!d((function(){(new b).entries().next()})))))w=n.getConstructor(t,e,g,v),o.REQUIRED=!0;else if(s(e,!0)){var k=new w,A=k[v](m?{}:-0,1)!=k,C=d((function(){k.has(1)})),E=h((function(e){new b(e)})),S=!m&&d((function(){var e=new b,t=5;while(t--)e[v](t,t);return!e.has(-0)}));E||(w=t((function(t,n){l(t,w,e);var i=p(new b,t,w);return void 0!=n&&c(n,i[v],{that:i,AS_ENTRIES:g}),i})),w.prototype=y,y.constructor=w),(C||S)&&(x("delete"),x("has"),g&&x("get")),(S||A)&&x(v),m&&y.clear&&delete y.clear}return _[e]=w,i({global:!0,forced:w!=b},_),f(w,e),m||n.setStrong(w,e,g),w}},"6d68":function(e,t){e.exports.id="ace/mode/javascript_worker",e.exports.src='"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/\'/g,"'").replace(/</g,"<")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/javascript/jshint",["require","exports","module"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire="function"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error("Cannot find module \'"+name+"\'");throw err.code="MODULE_NOT_FOUND",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire="function"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({"/node_modules/browserify/node_modules/events/events.js":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError(\'Uncaught, unspecified "error" event.\')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i--\x3e0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this\n}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],"/node_modules/jshint/data/ascii-identifier-data.js":[function(_dereq_,module){for(var identifierStartTable=[],i=0;128>i;i++)identifierStartTable[i]=36===i||i>=65&&90>=i||95===i||i>=97&&122>=i;for(var identifierPartTable=[],i=0;128>i;i++)identifierPartTable[i]=identifierStartTable[i]||i>=48&&57>=i;module.exports={asciiIdentifierStartTable:identifierStartTable,asciiIdentifierPartTable:identifierPartTable}},{}],"/node_modules/jshint/lodash.js":[function(_dereq_,module,exports){(function(global){(function(){function baseFindIndex(array,predicate,fromRight){for(var length=array.length,index=fromRight?length:-1;fromRight?index--:length>++index;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;length>++index;)if(array[index]===value)return index;return-1}function baseIsFunction(value){return"function"==typeof value||!1}function baseToString(value){return"string"==typeof value?value:null==value?"":value+""}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:length>++index;){var other=array[index];if(other!==other)return index}return-1}function isObjectLike(value){return!!value&&"object"==typeof value}function lodash(){}function arrayCopy(source,array){var index=-1,length=source.length;for(array||(array=Array(length));length>++index;)array[index]=source[index];return array}function arrayEach(array,iteratee){for(var index=-1,length=array.length;length>++index&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];length>++index;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);length>++index;)result[index]=iteratee(array[index],index,array);return result}function arrayMax(array){for(var index=-1,length=array.length,result=NEGATIVE_INFINITY;length>++index;){var value=array[index];value>result&&(result=value)}return result}function arraySome(array,predicate){for(var index=-1,length=array.length;length>++index;)if(predicate(array[index],index,array))return!0;return!1}function assignWith(object,source,customizer){var props=keys(source);push.apply(props,getSymbols(source));for(var index=-1,length=props.length;length>++index;){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);(result===result?result===value:value!==value)&&(value!==undefined||key in object)||(object[key]=result)}return object}function baseCopy(source,props,object){object||(object={});for(var index=-1,length=props.length;length>++index;){var key=props[index];object[key]=source[key]}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;return"function"==type?thisArg===undefined?func:bindCallback(func,thisArg,argCount):null==func?identity:"object"==type?baseMatches(func):thisArg===undefined?property(func):baseMatchesProperty(func,thisArg)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer&&(result=object?customizer(value,key,object):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return arrayCopy(value,result)}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return baseAssign(result,value)}stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];return stackA.push(value),stackB.push(result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)}),result}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseGet(object,path,pathKey){if(null!=object){pathKey!==undefined&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=-1,length=path.length;null!=object&&length>++index;)var result=object=object[path[index]];return result}}function baseIsEqual(value,other,customizer,isLoose,stackA,stackB){if(value===other)return 0!==value||1/value==1/other;var valType=typeof value,othType=typeof other;return"function"!=valType&&"object"!=valType&&"function"!=othType&&"object"!=othType||null==value||null==other?value!==value&&other!==other:baseIsEqualDeep(value,other,baseIsEqual,customizer,isLoose,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;objIsArr||(objTag=objToString.call(object),objTag==argsTag?objTag=objectTag:objTag!=objectTag&&(objIsArr=isTypedArray(object))),othIsArr||(othTag=objToString.call(other),othTag==argsTag?othTag=objectTag:othTag!=objectTag&&(othIsArr=isTypedArray(other)));var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!objIsArr&&!objIsObj)return equalByTag(object,other,objTag);if(!isLoose){var valWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(valWrapped||othWrapped)return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isLoose,stackA,stackB)}if(!isSameTag)return!1;stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==object)return stackB[length]==other;stackA.push(object),stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isLoose,stackA,stackB);return stackA.pop(),stackB.pop(),result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){for(var index=-1,length=props.length,noCustomizer=!customizer;length>++index;)if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!(props[index]in object))return!1;for(index=-1;length>++index;){var key=props[index],objValue=object[key],srcValue=values[index];if(noCustomizer&&strictCompareFlags[index])var result=objValue!==undefined||key in object;else result=customizer?customizer(objValue,srcValue,key):undefined,result===undefined&&(result=baseIsEqual(srcValue,objValue,customizer,!0));if(!result)return!1}return!0}function baseMatches(source){var props=keys(source),length=props.length;if(!length)return constant(!0);if(1==length){var key=props[0],value=source[key];if(isStrictComparable(value))return function(object){return null==object?!1:object[key]===value&&(value!==undefined||key in toObject(object))}}for(var values=Array(length),strictCompareFlags=Array(length);length--;)value=source[props[length]],values[length]=value,strictCompareFlags[length]=isStrictComparable(value);return function(object){return null!=object&&baseIsMatch(toObject(object),props,values,strictCompareFlags)}}function baseMatchesProperty(path,value){var isArr=isArray(path),isCommon=isKey(path)&&isStrictComparable(value),pathKey=path+"";return path=toPath(path),function(object){if(null==object)return!1;var key=pathKey;if(object=toObject(object),!(!isArr&&isCommon||key in object)){if(object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),null==object)return!1;key=last(path),object=toObject(object)}return object[key]===value?value!==undefined||key in object:baseIsEqual(value,object[key],null,!0)}}function baseMerge(object,source,customizer,stackA,stackB){if(!isObject(object))return object;var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));if(!isSrcArr){var props=keys(source);push.apply(props,getSymbols(source))}return arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObjectLike(srcValue))stackA||(stackA=[]),stackB||(stackB=[]),baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB);else{var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue),!isSrcArr&&result===undefined||!isCommon&&(result===result?result===value:value!==value)||(object[key]=result)}}),object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){for(var length=stackA.length,srcValue=source[key];length--;)if(stackA[length]==srcValue)return object[key]=stackB[length],undefined;var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue,isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))?result=isArray(value)?value:getLength(value)?arrayCopy(value):[]:isPlainObject(srcValue)||isArguments(srcValue)?result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}:isCommon=!1),stackA.push(srcValue),stackB.push(result),isCommon?object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB):(result===result?result!==value:value===value)&&(object[key]=result)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyDeep(path){var pathKey=path+"";return path=toPath(path),function(object){return baseGet(object,path,pathKey)}}function baseSlice(array,start,end){var index=-1,length=array.length;start=null==start?0:+start||0,0>start&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);length>++index;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseValues(object,props){for(var index=-1,length=props.length,result=Array(length);length>++index;)result[index]=object[props[index]];return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if("number"==typeof value&&value===value&&HALF_MAX_ARRAY_LENGTH>=high){for(;high>low;){var mid=low+high>>>1,computed=array[mid];(retHighest?value>=computed:value>computed)?low=mid+1:high=mid}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=value===undefined;high>low;){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN)var setLow=isReflexive||retHighest;else setLow=valIsUndef?isReflexive&&(retHighest||computed!==undefined):retHighest?value>=computed:value>computed;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(thisArg===undefined)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}function createAssigner(assigner){return restParam(function(object,sources){var index=-1,length=null==object?0:sources.length,customizer=length>2&&sources[length-2],guard=length>2&&sources[2],thisArg=length>1&&sources[length-1];for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:null,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?null:customizer,length=1);length>++index;){var source=sources[index];source&&assigner(object,source,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){var length=collection?getLength(collection):0;if(!isLength(length))return eachFunc(collection,iteratee);for(var index=fromRight?length:-1,iterable=toObject(collection);(fromRight?index--:length>++index)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var iterable=toObject(object),props=keysFunc(object),length=props.length,index=fromRight?length:-1;fromRight?index--:length>++index;){var key=props[index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createForEach(arrayFunc,eachFunc){return function(collection,iteratee,thisArg){return"function"==typeof iteratee&&thisArg===undefined&&isArray(collection)?arrayFunc(collection,iteratee):eachFunc(collection,bindCallback(iteratee,thisArg,3))}}function equalArrays(array,other,equalFunc,customizer,isLoose,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=!0;if(arrLength!=othLength&&!(isLoose&&othLength>arrLength))return!1;for(;result&&arrLength>++index;){var arrValue=array[index],othValue=other[index];if(result=undefined,customizer&&(result=isLoose?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)),result===undefined)if(isLoose)for(var othIndex=othLength;othIndex--&&(othValue=other[othIndex],!(result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB))););else result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB)}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:0==object?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==other+""}return!1}function equalObjects(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isLoose)return!1;for(var skipCtor=isLoose,index=-1;objLength>++index;){var key=objProps[index],result=isLoose?key in other:hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined,customizer&&(result=isLoose?customizer(othValue,objValue,key):customizer(objValue,othValue,key)),result===undefined&&(result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isLoose,stackA,stackB))}if(!result)return!1;skipCtor||(skipCtor="constructor"==key)}if(!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!("function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor))return!1}return!0}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;return result=result===callback?baseCallback:result,argCount?result(func,thisArg,argCount):result}function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;return result=result===indexOf?baseIndexOf:result,collection?result(collection,target,fromIndex):result}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor||(Ctor=Object),new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isIndex(value,length){return value=+value,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&0==value%1&&length>value}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;if("number"==type)var length=getLength(object),prereq=isLength(length)&&isIndex(index,length);else prereq="string"==type&&index in object;if(prereq){var other=object[index];return value===value?value===other:other!==other}return!1}function isKey(value,object){var type=typeof value;if("string"==type&&reIsPlainProp.test(value)||"number"==type)return!0;if(isArray(value))return!1;var result=!reIsDeepProp.test(value);return result||null!=object&&value in toObject(object)}function isLength(value){return"number"==typeof value&&value>-1&&0==value%1&&MAX_SAFE_INTEGER>=value}function isStrictComparable(value){return value===value&&(0===value?1/value>0:!isObject(value))}function shimIsPlainObject(value){var Ctor;if(lodash.support,!isObjectLike(value)||objToString.call(value)!=objectTag||!hasOwnProperty.call(value,"constructor")&&(Ctor=value.constructor,"function"==typeof Ctor&&!(Ctor instanceof Ctor)))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support,allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object)),index=-1,result=[];propsLength>++index;){var key=props[index];(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key))&&result.push(key)}return result}function toObject(value){return isObject(value)?value:Object(value)}function toPath(value){if(isArray(value))return value;var result=[];return baseToString(value).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,"$1"):number||match)}),result}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length)return-1;if("number"==typeof fromIndex)fromIndex=0>fromIndex?nativeMax(length+fromIndex,0):fromIndex;else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex||0)}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function slice(array,start,end){var length=array?array.length:0;return length?(end&&"number"!=typeof end&&isIterateeCall(array,start,end)&&(start=0,end=length),baseSlice(array,start,end)):[]}function unzip(array){for(var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);length>++index;)result[index]=arrayMap(array,baseProperty(index));return result}function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),length?(fromIndex="number"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:0>fromIndex?nativeMax(length+fromIndex,0):fromIndex||0,"string"==typeof collection||!isArray(collection)&&isString(collection)?length>fromIndex&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1):!1}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=null),("function"!=typeof predicate||thisArg!==undefined)&&(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function restParam(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);length>++index;)rest[index]=args[start+index];switch(start){case 0:return func.call(this,rest);case 1:return func.call(this,args[0],rest);case 2:return func.call(this,args[0],args[1],rest)}var otherArgs=Array(start+1);for(index=-1;start>++index;)otherArgs[index]=args[index];return otherArgs[start]=rest,func.apply(this,otherArgs)}}function clone(value,isDeep,customizer,thisArg){return isDeep&&"boolean"!=typeof isDeep&&isIterateeCall(value,isDeep,customizer)?isDeep=!1:"function"==typeof isDeep&&(thisArg=customizer,customizer=isDeep,isDeep=!1),customizer="function"==typeof customizer&&bindCallback(customizer,thisArg,1),baseClone(value,isDeep,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag}function isEmpty(value){if(null==value)return!0;var length=getLength(value);return isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!length:!keys(value).length}function isObject(value){var type=typeof value;return"function"==type||!!value&&"object"==type}function isNative(value){return null==value?!1:objToString.call(value)==funcTag?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function toPlainObject(value){return baseCopy(value,keysIn(value))}function has(object,path){if(null==object)return!1;var result=hasOwnProperty.call(object,path);return result||isKey(path)||(path=toPath(path),object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),path=last(path),result=null!=object&&hasOwnProperty.call(object,path)),result}function keysIn(object){if(null==object)return[];isObject(object)||(object=Object(object));var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;for(var Ctor=object.constructor,index=-1,isProto="function"==typeof Ctor&&Ctor.prototype===object,result=Array(length),skipIndexes=length>0;length>++index;)result[index]=index+"";for(var key in object)skipIndexes&&isIndex(key,length)||"constructor"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key);return result}function values(object){return baseValues(object,keys(object))}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,"\\\\$&"):string}function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=null),baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function property(path){return isKey(path)?baseProperty(path):basePropertyDeep(path)}var undefined,VERSION="3.7.0",FUNC_ERROR_TEXT="Expected a function",argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reIsDeepProp=/\\.|\\[(?:[^[\\]]+|(["\'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,reIsPlainProp=/^\\w*$/,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,reRegExpChars=/[.*+?^${}()|[\\]\\/\\\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source),reEscapeChar=/\\\\(\\\\)?/g,reFlags=/\\w*$/,reIsHostCtor=/^\\[object .+?Constructor\\]$/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&"object"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this,arrayProto=Array.prototype,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),ArrayBuffer=isNative(ArrayBuffer=root.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,floor=Math.floor,getOwnPropertySymbols=isNative(getOwnPropertySymbols=Object.getOwnPropertySymbols)&&getOwnPropertySymbols,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,preventExtensions=isNative(Object.preventExtensions=Object.preventExtensions)&&preventExtensions,propertyIsEnumerable=objectProto.propertyIsEnumerable,Uint8Array=isNative(Uint8Array=root.Uint8Array)&&Uint8Array,Float64Array=function(){try{var func=isNative(func=root.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}(),nativeAssign=function(){var object={1:0},func=preventExtensions&&isNative(func=Object.assign)&&func;try{func(preventExtensions(object),"xo")}catch(e){}return!object[1]&&func}(),nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0,MAX_SAFE_INTEGER=Math.pow(2,53)-1,support=lodash.support={};(function(x){var Ctor=function(){this.x=x},props=[];Ctor.prototype={valueOf:x,y:x};for(var key in new Ctor)props.push(key);support.funcDecomp=/\\bthis\\b/.test(function(){return this}),support.funcNames="string"==typeof Function.name;try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=!0}})(1,0);var baseAssign=nativeAssign||function(object,source){return null==source?object:baseCopy(source,getSymbols(source),baseCopy(source,keys(source),object))},baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor();bufferSlice||(bufferClone=ArrayBuffer&&Uint8Array?function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}return byteLength!=offset&&(view=new Uint8Array(result,offset),view.set(new Uint8Array(buffer,offset))),result}:constant(null));var getLength=baseProperty("length"),getSymbols=getOwnPropertySymbols?function(object){return getOwnPropertySymbols(toObject(object))}:constant([]),findLastIndex=createFindIndex(!0),zip=restParam(unzip),forEach=createForEach(arrayEach,baseEach),isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag},isFunction=baseIsFunction(/x/)||Uint8Array&&!baseIsFunction(Uint8Array)?function(value){return objToString.call(value)==funcTag}:baseIsFunction,isPlainObject=getPrototypeOf?function(value){if(!value||objToString.call(value)!=objectTag)return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject,assign=createAssigner(function(object,source,customizer){return customizer?assignWith(object,source,customizer):baseAssign(object,source)}),keys=nativeKeys?function(object){if(object)var Ctor=object.constructor,length=object.length;return"function"==typeof Ctor&&Ctor.prototype===object||"function"!=typeof object&&isLength(length)?shimKeys(object):isObject(object)?nativeKeys(object):[]}:shimKeys,merge=createAssigner(baseMerge);lodash.assign=assign,lodash.callback=callback,lodash.constant=constant,lodash.forEach=forEach,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.property=property,lodash.reject=reject,lodash.restParam=restParam,lodash.slice=slice,lodash.toPlainObject=toPlainObject,lodash.unzip=unzip,lodash.values=values,lodash.zip=zip,lodash.each=forEach,lodash.extend=assign,lodash.iteratee=callback,lodash.clone=clone,lodash.escapeRegExp=escapeRegExp,lodash.findLastIndex=findLastIndex,lodash.has=has,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isNative=isNative,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isTypedArray=isTypedArray,lodash.last=last,lodash.some=some,lodash.any=some,lodash.contains=includes,lodash.include=includes,lodash.VERSION=VERSION,freeExports&&freeModule?moduleExports?(freeModule.exports=lodash)._=lodash:freeExports._=lodash:root._=lodash\n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/node_modules/jshint/src/jshint.js":[function(_dereq_,module,exports){var _=_dereq_("../lodash"),events=_dereq_("events"),vars=_dereq_("./vars.js"),messages=_dereq_("./messages.js"),Lexer=_dereq_("./lex.js").Lexer,reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,style=_dereq_("./style.js"),options=_dereq_("./options.js"),scopeManager=_dereq_("./scope-manager.js"),JSHINT=function(){"use strict";function checkOption(name,t){return name=name.trim(),/^[+-]W\\d{3}$/g.test(name)?!0:-1!==options.validNames.indexOf(name)||"jslint"===t.type||_.has(options.removed,name)?!0:(error("E001",t,name),!1)}function isString(obj){return"[object String]"===Object.prototype.toString.call(obj)}function isIdentifier(tkn,value){return tkn?tkn.identifier&&tkn.value===value?!0:!1:!1}function isReserved(token){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(token.isProperty)return!1}return!0}function supplant(str,data){return str.replace(/\\{([^{}]*)\\}/g,function(a,b){var r=data[b];return"string"==typeof r||"number"==typeof r?r:a})}function combine(dest,src){Object.keys(src).forEach(function(name){_.has(JSHINT.blacklist,name)||(dest[name]=src[name])})}function processenforceall(){if(state.option.enforceall){for(var enforceopt in options.bool.enforcing)void 0!==state.option[enforceopt]||options.noenforceall[enforceopt]||(state.option[enforceopt]=!0);for(var relaxopt in options.bool.relaxing)void 0===state.option[relaxopt]&&(state.option[relaxopt]=!1)}}function assume(){processenforceall(),state.option.esversion||state.option.moz||(state.option.esversion=state.option.es3?3:state.option.esnext?6:5),state.inES5()&&combine(predefined,vars.ecmaIdentifiers[5]),state.inES6()&&combine(predefined,vars.ecmaIdentifiers[6]),state.option.module&&(state.option.strict===!0&&(state.option.strict="global"),state.inES6()||warning("W134",state.tokens.next,"module",6)),state.option.couch&&combine(predefined,vars.couch),state.option.qunit&&combine(predefined,vars.qunit),state.option.rhino&&combine(predefined,vars.rhino),state.option.shelljs&&(combine(predefined,vars.shelljs),combine(predefined,vars.node)),state.option.typed&&combine(predefined,vars.typed),state.option.phantom&&(combine(predefined,vars.phantom),state.option.strict===!0&&(state.option.strict="global")),state.option.prototypejs&&combine(predefined,vars.prototypejs),state.option.node&&(combine(predefined,vars.node),combine(predefined,vars.typed),state.option.strict===!0&&(state.option.strict="global")),state.option.devel&&combine(predefined,vars.devel),state.option.dojo&&combine(predefined,vars.dojo),state.option.browser&&(combine(predefined,vars.browser),combine(predefined,vars.typed)),state.option.browserify&&(combine(predefined,vars.browser),combine(predefined,vars.typed),combine(predefined,vars.browserify),state.option.strict===!0&&(state.option.strict="global")),state.option.nonstandard&&combine(predefined,vars.nonstandard),state.option.jasmine&&combine(predefined,vars.jasmine),state.option.jquery&&combine(predefined,vars.jquery),state.option.mootools&&combine(predefined,vars.mootools),state.option.worker&&combine(predefined,vars.worker),state.option.wsh&&combine(predefined,vars.wsh),state.option.globalstrict&&state.option.strict!==!1&&(state.option.strict="global"),state.option.yui&&combine(predefined,vars.yui),state.option.mocha&&combine(predefined,vars.mocha)}function quit(code,line,chr){var percentage=Math.floor(100*(line/state.lines.length)),message=messages.errors[code].desc;throw{name:"JSHintError",line:line,character:chr,message:message+" ("+percentage+"% scanned).",raw:message,code:code}}function removeIgnoredMessages(){var ignored=state.ignoredLines;_.isEmpty(ignored)||(JSHINT.errors=_.reject(JSHINT.errors,function(err){return ignored[err.line]}))}function warning(code,t,a,b,c,d){var ch,l,w,msg;if(/^W\\d{3}$/.test(code)){if(state.ignored[code])return;msg=messages.warnings[code]}else/E\\d{3}/.test(code)?msg=messages.errors[code]:/I\\d{3}/.test(code)&&(msg=messages.info[code]);return t=t||state.tokens.next||{},"(end)"===t.id&&(t=state.tokens.curr),l=t.line||0,ch=t.from||0,w={id:"(error)",raw:msg.desc,code:msg.code,evidence:state.lines[l-1]||"",line:l,character:ch,scope:JSHINT.scope,a:a,b:b,c:c,d:d},w.reason=supplant(msg.desc,w),JSHINT.errors.push(w),removeIgnoredMessages(),JSHINT.errors.length>=state.option.maxerr&&quit("E043",l,ch),w}function warningAt(m,l,ch,a,b,c,d){return warning(m,{line:l,from:ch},a,b,c,d)}function error(m,t,a,b,c,d){warning(m,t,a,b,c,d)}function errorAt(m,l,ch,a,b,c,d){return error(m,{line:l,from:ch},a,b,c,d)}function addInternalSrc(elem,src){var i;return i={id:"(internal)",elem:elem,value:src},JSHINT.internals.push(i),i}function doOption(){var nt=state.tokens.next,body=nt.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],predef={};if("globals"===nt.type){body.forEach(function(g,idx){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if("-"===key||!key.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}"-"===key.charAt(0)?(key=key.slice(1),val=!1,JSHINT.blacklist[key]=key,delete predefined[key]):predef[key]="true"===val}),combine(predefined,predef);for(var key in predef)_.has(predef,key)&&(declared[key]=nt)}"exported"===nt.type&&body.forEach(function(e,idx){if(!e.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}state.funct["(scope)"].addExported(e)}),"members"===nt.type&&(membersOnly=membersOnly||{},body.forEach(function(m){var ch1=m.charAt(0),ch2=m.charAt(m.length-1);ch1!==ch2||\'"\'!==ch1&&"\'"!==ch1||(m=m.substr(1,m.length-2).replace(\'\\\\"\',\'"\')),membersOnly[m]=!1}));var numvals=["maxstatements","maxparams","maxdepth","maxcomplexity","maxerr","maxlen","indent"];("jshint"===nt.type||"jslint"===nt.type)&&(body.forEach(function(g){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if(checkOption(key,nt))if(numvals.indexOf(key)>=0)if("false"!==val){if(val=+val,"number"!=typeof val||!isFinite(val)||0>=val||Math.floor(val)!==val)return error("E032",nt,g[1].trim()),void 0;state.option[key]=val}else state.option[key]="indent"===key?4:!1;else{if("validthis"===key)return state.funct["(global)"]?void error("E009"):"true"!==val&&"false"!==val?void error("E002",nt):(state.option.validthis="true"===val,void 0);if("quotmark"!==key)if("shadow"!==key)if("unused"!==key)if("latedef"!==key)if("ignore"!==key)if("strict"!==key){"module"===key&&(hasParsedCode(state.funct)||error("E055",state.tokens.next,"module"));var esversions={es3:3,es5:5,esnext:6};if(!_.has(esversions,key)){if("esversion"===key){switch(val){case"5":state.inES5(!0)&&warning("I003");case"3":case"6":state.option.moz=!1,state.option.esversion=+val;break;case"2015":state.option.moz=!1,state.option.esversion=6;break;default:error("E002",nt)}return hasParsedCode(state.funct)||error("E055",state.tokens.next,"esversion"),void 0}var match=/^([+-])(W\\d{3})$/g.exec(key);if(match)return state.ignored[match[2]]="-"===match[1],void 0;var tn;return"true"===val||"false"===val?("jslint"===nt.type?(tn=options.renamed[key]||key,state.option[tn]="true"===val,void 0!==options.inverted[tn]&&(state.option[tn]=!state.option[tn])):state.option[key]="true"===val,"newcap"===key&&(state.option["(explicitNewcap)"]=!0),void 0):(error("E002",nt),void 0)}switch(val){case"true":state.option.moz=!1,state.option.esversion=esversions[key];break;case"false":state.option.moz||(state.option.esversion=5);break;default:error("E002",nt)}}else switch(val){case"true":state.option.strict=!0;break;case"false":state.option.strict=!1;break;case"func":case"global":case"implied":state.option.strict=val;break;default:error("E002",nt)}else switch(val){case"line":state.ignoredLines[nt.line]=!0,removeIgnoredMessages();break;default:error("E002",nt)}else switch(val){case"true":state.option.latedef=!0;break;case"false":state.option.latedef=!1;break;case"nofunc":state.option.latedef="nofunc";break;default:error("E002",nt)}else switch(val){case"true":state.option.unused=!0;break;case"false":state.option.unused=!1;break;case"vars":case"strict":state.option.unused=val;break;default:error("E002",nt)}else switch(val){case"true":state.option.shadow=!0;break;case"outer":state.option.shadow="outer";break;case"false":case"inner":state.option.shadow="inner";break;default:error("E002",nt)}else switch(val){case"true":case"false":state.option.quotmark="true"===val;break;case"double":case"single":state.option.quotmark=val;break;default:error("E002",nt)}}}),assume())}function peek(p){var t,i=p||0,j=lookahead.length;if(j>i)return lookahead[i];for(;i>=j;)t=lookahead[j],t||(t=lookahead[j]=lex.token()),j+=1;return t||"(end)"!==state.tokens.next.id?t:state.tokens.next}function peekIgnoreEOL(){var t,i=0;do t=peek(i++);while("(endline)"===t.id);return t}function advance(id,t){switch(state.tokens.curr.id){case"(number)":"."===state.tokens.next.id&&warning("W005",state.tokens.curr);break;case"-":("-"===state.tokens.next.id||"--"===state.tokens.next.id)&&warning("W006");break;case"+":("+"===state.tokens.next.id||"++"===state.tokens.next.id)&&warning("W007")}for(id&&state.tokens.next.id!==id&&(t?"(end)"===state.tokens.next.id?error("E019",t,t.id):error("E020",state.tokens.next,id,t.id,t.line,state.tokens.next.value):("(identifier)"!==state.tokens.next.type||state.tokens.next.value!==id)&&warning("W116",state.tokens.next,id,state.tokens.next.value)),state.tokens.prev=state.tokens.curr,state.tokens.curr=state.tokens.next;;){if(state.tokens.next=lookahead.shift()||lex.token(),state.tokens.next||quit("E041",state.tokens.curr.line),"(end)"===state.tokens.next.id||"(error)"===state.tokens.next.id)return;if(state.tokens.next.check&&state.tokens.next.check(),state.tokens.next.isSpecial)"falls through"===state.tokens.next.type?state.tokens.curr.caseFallsThrough=!0:doOption();else if("(endline)"!==state.tokens.next.id)break}}function isInfix(token){return token.infix||!token.identifier&&!token.template&&!!token.led}function isEndOfExpr(){var curr=state.tokens.curr,next=state.tokens.next;return";"===next.id||"}"===next.id||":"===next.id?!0:isInfix(next)===isInfix(curr)||"yield"===curr.id&&state.inMoz()?curr.line!==startLine(next):!1}function isBeginOfExpr(prev){return!prev.left&&"unary"!==prev.arity}function expression(rbp,initial){var left,isArray=!1,isObject=!1,isLetExpr=!1;state.nameStack.push(),initial||"let"!==state.tokens.next.value||"("!==peek(0).value||(state.inMoz()||warning("W118",state.tokens.next,"let expressions"),isLetExpr=!0,state.funct["(scope)"].stack(),advance("let"),advance("("),state.tokens.prev.fud(),advance(")")),"(end)"===state.tokens.next.id&&error("E006",state.tokens.curr);var isDangerous=state.option.asi&&state.tokens.prev.line!==startLine(state.tokens.curr)&&_.contains(["]",")"],state.tokens.prev.id)&&_.contains(["[","("],state.tokens.curr.id);if(isDangerous&&warning("W014",state.tokens.curr,state.tokens.curr.id),advance(),initial&&(state.funct["(verb)"]=state.tokens.curr.value,state.tokens.curr.beginsStmt=!0),initial===!0&&state.tokens.curr.fud)left=state.tokens.curr.fud();else for(state.tokens.curr.nud?left=state.tokens.curr.nud():error("E030",state.tokens.curr,state.tokens.curr.id);(state.tokens.next.lbp>rbp||"(template)"===state.tokens.next.type)&&!isEndOfExpr();)isArray="Array"===state.tokens.curr.value,isObject="Object"===state.tokens.curr.value,left&&(left.value||left.first&&left.first.value)&&("new"!==left.value||left.first&&left.first.value&&"."===left.first.value)&&(isArray=!1,left.value!==state.tokens.curr.value&&(isObject=!1)),advance(),isArray&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W009",state.tokens.curr),isObject&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W010",state.tokens.curr),left&&state.tokens.curr.led?left=state.tokens.curr.led(left):error("E033",state.tokens.curr,state.tokens.curr.id);return isLetExpr&&state.funct["(scope)"].unstack(),state.nameStack.pop(),left}function startLine(token){return token.startLine||token.line}function nobreaknonadjacent(left,right){left=left||state.tokens.curr,right=right||state.tokens.next,state.option.laxbreak||left.line===startLine(right)||warning("W014",right,right.value)}function nolinebreak(t){t=t||state.tokens.curr,t.line!==startLine(state.tokens.next)&&warning("E022",t,t.value)}function nobreakcomma(left,right){left.line!==startLine(right)&&(state.option.laxcomma||(comma.first&&(warning("I001"),comma.first=!1),warning("W014",left,right.value)))}function comma(opts){if(opts=opts||{},opts.peek?nobreakcomma(state.tokens.prev,state.tokens.curr):(nobreakcomma(state.tokens.curr,state.tokens.next),advance(",")),state.tokens.next.identifier&&(!opts.property||!state.inES5()))switch(state.tokens.next.value){case"break":case"case":case"catch":case"continue":case"default":case"do":case"else":case"finally":case"for":case"if":case"in":case"instanceof":case"return":case"switch":case"throw":case"try":case"var":case"let":case"while":case"with":return error("E024",state.tokens.next,state.tokens.next.value),!1}if("(punctuator)"===state.tokens.next.type)switch(state.tokens.next.value){case"}":case"]":case",":if(opts.allowTrailing)return!0;case")":return error("E024",state.tokens.next,state.tokens.next.value),!1}return!0}function symbol(s,p){var x=state.syntax[s];return x&&"object"==typeof x||(state.syntax[s]=x={id:s,lbp:p,value:s}),x}function delim(s){var x=symbol(s,0);return x.delim=!0,x}function stmt(s,f){var x=delim(s);return x.identifier=x.reserved=!0,x.fud=f,x}function blockstmt(s,f){var x=stmt(s,f);return x.block=!0,x}function reserveName(x){var c=x.id.charAt(0);return(c>="a"&&"z">=c||c>="A"&&"Z">=c)&&(x.identifier=x.reserved=!0),x}function prefix(s,f){var x=symbol(s,150);return reserveName(x),x.nud="function"==typeof f?f:function(){return this.arity="unary",this.right=expression(150),("++"===this.id||"--"===this.id)&&(state.option.plusplus?warning("W016",this,this.id):!this.right||this.right.identifier&&!isReserved(this.right)||"."===this.right.id||"["===this.right.id||warning("W017",this),this.right&&this.right.isMetaProperty?error("E031",this):this.right&&this.right.identifier&&state.funct["(scope)"].block.modify(this.right.value,this)),this},x}function type(s,f){var x=delim(s);return x.type=s,x.nud=f,x}function reserve(name,func){var x=type(name,func);return x.identifier=!0,x.reserved=!0,x}function FutureReservedWord(name,meta){var x=type(name,meta&&meta.nud||function(){return this});return meta=meta||{},meta.isFutureReservedWord=!0,x.value=name,x.identifier=!0,x.reserved=!0,x.meta=meta,x}function reservevar(s,v){return reserve(s,function(){return"function"==typeof v&&v(this),this})}function infix(s,f,p,w){var x=symbol(s,p);return reserveName(x),x.infix=!0,x.led=function(left){return w||nobreaknonadjacent(state.tokens.prev,state.tokens.curr),"in"!==s&&"instanceof"!==s||"!"!==left.id||warning("W018",left,"!"),"function"==typeof f?f(left,this):(this.left=left,this.right=expression(p),this)},x}function application(s){var x=symbol(s,42);return x.led=function(left){return nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left,this.right=doFunction({type:"arrow",loneArg:left}),this},x}function relation(s,f){var x=symbol(s,100);return x.led=function(left){nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left;var right=this.right=expression(100);return isIdentifier(left,"NaN")||isIdentifier(right,"NaN")?warning("W019",this):f&&f.apply(this,[left,right]),left&&right||quit("E041",state.tokens.curr.line),"!"===left.id&&warning("W018",left,"!"),"!"===right.id&&warning("W018",right,"!"),this},x}function isPoorRelation(node){return node&&("(number)"===node.type&&0===+node.value||"(string)"===node.type&&""===node.value||"null"===node.type&&!state.option.eqnull||"true"===node.type||"false"===node.type||"undefined"===node.type)}function isTypoTypeof(left,right,state){var values;return state.option.notypeof?!1:left&&right?(values=state.inES6()?typeofValues.es6:typeofValues.es3,"(identifier)"===right.type&&"typeof"===right.value&&"(string)"===left.type?!_.contains(values,left.value):!1):!1}function isGlobalEval(left,state){var isGlobal=!1;return"this"===left.type&&null===state.funct["(context)"]?isGlobal=!0:"(identifier)"===left.type&&(state.option.node&&"global"===left.value?isGlobal=!0:!state.option.browser||"window"!==left.value&&"document"!==left.value||(isGlobal=!0)),isGlobal}function findNativePrototype(left){function walkPrototype(obj){return"object"==typeof obj?"prototype"===obj.right?obj:walkPrototype(obj.left):void 0}function walkNative(obj){for(;!obj.identifier&&"object"==typeof obj.left;)obj=obj.left;return obj.identifier&&natives.indexOf(obj.value)>=0?obj.value:void 0}var natives=["Array","ArrayBuffer","Boolean","Collator","DataView","Date","DateTimeFormat","Error","EvalError","Float32Array","Float64Array","Function","Infinity","Intl","Int16Array","Int32Array","Int8Array","Iterator","Number","NumberFormat","Object","RangeError","ReferenceError","RegExp","StopIteration","String","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError"],prototype=walkPrototype(left);return prototype?walkNative(prototype):void 0}function checkLeftSideAssign(left,assignToken,options){var allowDestructuring=options&&options.allowDestructuring;if(assignToken=assignToken||left,state.option.freeze){var nativeObject=findNativePrototype(left);nativeObject&&warning("W121",left,nativeObject)}return left.identifier&&!left.isMetaProperty&&state.funct["(scope)"].block.reassign(left.value,left),"."===left.id?((!left.left||"arguments"===left.left.value&&!state.isStrict())&&warning("E031",assignToken),state.nameStack.set(state.tokens.prev),!0):"{"===left.id||"["===left.id?(allowDestructuring&&state.tokens.curr.left.destructAssign?state.tokens.curr.left.destructAssign.forEach(function(t){t.id&&state.funct["(scope)"].block.modify(t.id,t.token)}):"{"!==left.id&&left.left?"arguments"!==left.left.value||state.isStrict()||warning("E031",assignToken):warning("E031",assignToken),"["===left.id&&state.nameStack.set(left.right),!0):left.isMetaProperty?(error("E031",assignToken),!0):left.identifier&&!isReserved(left)?("exception"===state.funct["(scope)"].labeltype(left.value)&&warning("W022",left),state.nameStack.set(left),!0):(left===state.syntax["function"]&&warning("W023",state.tokens.curr),!1)}function assignop(s,f,p){var x=infix(s,"function"==typeof f?f:function(left,that){return that.left=left,left&&checkLeftSideAssign(left,that,{allowDestructuring:!0})?(that.right=expression(10),that):(error("E031",that),void 0)},p);return x.exps=!0,x.assign=!0,x}function bitwise(s,f,p){var x=symbol(s,p);return reserveName(x),x.led="function"==typeof f?f:function(left){return state.option.bitwise&&warning("W016",this,this.id),this.left=left,this.right=expression(p),this},x}function bitwiseassignop(s){return assignop(s,function(left,that){return state.option.bitwise&&warning("W016",that,that.id),left&&checkLeftSideAssign(left,that)?(that.right=expression(10),that):(error("E031",that),void 0)},20)}function suffix(s){var x=symbol(s,150);return x.led=function(left){return state.option.plusplus?warning("W016",this,this.id):left.identifier&&!isReserved(left)||"."===left.id||"["===left.id||warning("W017",this),left.isMetaProperty?error("E031",this):left&&left.identifier&&state.funct["(scope)"].block.modify(left.value,left),this.left=left,this},x}function optionalidentifier(fnparam,prop,preserve){if(state.tokens.next.identifier){preserve||advance();var curr=state.tokens.curr,val=state.tokens.curr.value;return isReserved(curr)?prop&&state.inES5()?val:fnparam&&"undefined"===val?val:(warning("W024",state.tokens.curr,state.tokens.curr.id),val):val}}function identifier(fnparam,prop){var i=optionalidentifier(fnparam,prop,!1);if(i)return i;if("..."===state.tokens.next.value){if(state.inES6(!0)||warning("W119",state.tokens.next,"spread/rest operator","6"),advance(),checkPunctuator(state.tokens.next,"..."))for(warning("E024",state.tokens.next,"...");checkPunctuator(state.tokens.next,"...");)advance();return state.tokens.next.identifier?identifier(fnparam,prop):(warning("E024",state.tokens.curr,"..."),void 0)}error("E030",state.tokens.next,state.tokens.next.value),";"!==state.tokens.next.id&&advance()}function reachable(controlToken){var t,i=0;if(";"===state.tokens.next.id&&!controlToken.inBracelessBlock)for(;;){do t=peek(i),i+=1;while("(end)"!==t.id&&"(comment)"===t.id);if(t.reach)return;if("(endline)"!==t.id){if("function"===t.id){state.option.latedef===!0&&warning("W026",t);break}warning("W027",t,t.value,controlToken.value);break}}}function parseFinalSemicolon(){if(";"!==state.tokens.next.id){if(state.tokens.next.isUnclosed)return advance();var sameLine=startLine(state.tokens.next)===state.tokens.curr.line&&"(end)"!==state.tokens.next.id,blockEnd=checkPunctuator(state.tokens.next,"}");sameLine&&!blockEnd?errorAt("E058",state.tokens.curr.line,state.tokens.curr.character):state.option.asi||(blockEnd&&!state.option.lastsemic||!sameLine)&&warningAt("W033",state.tokens.curr.line,state.tokens.curr.character)}else advance(";")}function statement(){var r,i=indent,t=state.tokens.next,hasOwnScope=!1;if(";"===t.id)return advance(";"),void 0;var res=isReserved(t);if(res&&t.meta&&t.meta.isFutureReservedWord&&":"===peek().id&&(warning("W024",t,t.id),res=!1),t.identifier&&!res&&":"===peek().id&&(advance(),advance(":"),hasOwnScope=!0,state.funct["(scope)"].stack(),state.funct["(scope)"].block.addBreakLabel(t.value,{token:state.tokens.curr}),state.tokens.next.labelled||"{"===state.tokens.next.value||warning("W028",state.tokens.next,t.value,state.tokens.next.value),state.tokens.next.label=t.value,t=state.tokens.next),"{"===t.id){var iscase="case"===state.funct["(verb)"]&&":"===state.tokens.curr.value;return block(!0,!0,!1,!1,iscase),void 0}return r=expression(0,!0),!r||r.identifier&&"function"===r.value||"(punctuator)"===r.type&&r.left&&r.left.identifier&&"function"===r.left.value||state.isStrict()||"global"!==state.option.strict||warning("E007"),t.block||(state.option.expr||r&&r.exps?state.option.nonew&&r&&r.left&&"("===r.id&&"new"===r.left.id&&warning("W031",t):warning("W030",state.tokens.curr),parseFinalSemicolon()),indent=i,hasOwnScope&&state.funct["(scope)"].unstack(),r}function statements(){for(var p,a=[];!state.tokens.next.reach&&"(end)"!==state.tokens.next.id;)";"===state.tokens.next.id?(p=peek(),(!p||"("!==p.id&&"["!==p.id)&&warning("W032"),advance(";")):a.push(statement());return a}function directives(){for(var i,p,pn;"(string)"===state.tokens.next.id;){if(p=peek(0),"(endline)"===p.id){i=1;do pn=peek(i++);while("(endline)"===pn.id);if(";"===pn.id)p=pn;else{if("["===pn.value||"."===pn.value)break;state.option.asi&&"("!==pn.value||warning("W033",state.tokens.next)}}else{if("."===p.id||"["===p.id)break;";"!==p.id&&warning("W033",p)}advance();var directive=state.tokens.curr.value;(state.directive[directive]||"use strict"===directive&&"implied"===state.option.strict)&&warning("W034",state.tokens.curr,directive),state.directive[directive]=!0,";"===p.id&&advance(";")}state.isStrict()&&(state.option["(explicitNewcap)"]||(state.option.newcap=!0),state.option.undef=!0)}function block(ordinary,stmt,isfunc,isfatarrow,iscase){var a,m,t,line,d,b=inblock,old_indent=indent;inblock=ordinary,t=state.tokens.next;var metrics=state.funct["(metrics)"];if(metrics.nestedBlockDepth+=1,metrics.verifyMaxNestedBlockDepthPerFunction(),"{"===state.tokens.next.id){if(advance("{"),state.funct["(scope)"].stack(),line=state.tokens.curr.line,"}"!==state.tokens.next.id){for(indent+=state.option.indent;!ordinary&&state.tokens.next.from>indent;)indent+=state.option.indent;if(isfunc){m={};for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);directives(),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007"))}a=statements(),metrics.statementCount+=a.length,indent-=state.option.indent}advance("}",t),isfunc&&(state.funct["(scope)"].validateParams(),m&&(state.directive=m)),state.funct["(scope)"].unstack(),indent=old_indent}else if(ordinary)state.funct["(noblockscopedvar)"]="for"!==state.tokens.next.id,state.funct["(scope)"].stack(),(!stmt||state.option.curly)&&warning("W116",state.tokens.next,"{",state.tokens.next.value),state.tokens.next.inBracelessBlock=!0,indent+=state.option.indent,a=[statement()],indent-=state.option.indent,state.funct["(scope)"].unstack(),delete state.funct["(noblockscopedvar)"];else if(isfunc){if(state.funct["(scope)"].stack(),m={},!stmt||isfatarrow||state.inMoz()||error("W118",state.tokens.curr,"function closure expressions"),!stmt)for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);expression(10),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007")),state.funct["(scope)"].unstack()}else error("E021",state.tokens.next,"{",state.tokens.next.value);switch(state.funct["(verb)"]){case"break":case"continue":case"return":case"throw":if(iscase)break;default:state.funct["(verb)"]=null}return inblock=b,!ordinary||!state.option.noempty||a&&0!==a.length||warning("W035",state.tokens.prev),metrics.nestedBlockDepth-=1,a}function countMember(m){membersOnly&&"boolean"!=typeof membersOnly[m]&&warning("W036",state.tokens.curr,m),"number"==typeof member[m]?member[m]+=1:member[m]=1}function comprehensiveArrayExpression(){var res={};res.exps=!0,state.funct["(comparray)"].stack();var reversed=!1;return"for"!==state.tokens.next.value&&(reversed=!0,state.inMoz()||warning("W116",state.tokens.next,"for",state.tokens.next.value),state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("for"),"each"===state.tokens.next.value&&(advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),advance("("),state.funct["(comparray)"].setState("define"),res.left=expression(130),_.contains(["in","of"],state.tokens.next.value)?advance():error("E045",state.tokens.curr),state.funct["(comparray)"].setState("generate"),expression(10),advance(")"),"if"===state.tokens.next.value&&(advance("if"),advance("("),state.funct["(comparray)"].setState("filter"),res.filter=expression(10),advance(")")),reversed||(state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("]"),state.funct["(comparray)"].unstack(),res}function isMethod(){return state.funct["(statement)"]&&"class"===state.funct["(statement)"].type||state.funct["(context)"]&&"class"===state.funct["(context)"]["(verb)"]}function isPropertyName(token){return token.identifier||"(string)"===token.id||"(number)"===token.id}function propertyName(preserveOrToken){var id,preserve=!0;return"object"==typeof preserveOrToken?id=preserveOrToken:(preserve=preserveOrToken,id=optionalidentifier(!1,!0,preserve)),id?"object"==typeof id&&("(string)"===id.id||"(identifier)"===id.id?id=id.value:"(number)"===id.id&&(id=""+id.value)):"(string)"===state.tokens.next.id?(id=state.tokens.next.value,preserve||advance()):"(number)"===state.tokens.next.id&&(id=""+state.tokens.next.value,preserve||advance()),"hasOwnProperty"===id&&warning("W001"),id}function functionparams(options){function addParam(addParamArgs){state.funct["(scope)"].addParam.apply(state.funct["(scope)"],addParamArgs)}var next,ident,t,paramsIds=[],tokens=[],pastDefault=!1,pastRest=!1,arity=0,loneArg=options&&options.loneArg;if(loneArg&&loneArg.identifier===!0)return state.funct["(scope)"].addParam(loneArg.value,loneArg),{arity:1,params:[loneArg.value]};if(next=state.tokens.next,options&&options.parsedOpening||advance("("),")"===state.tokens.next.id)return advance(")"),void 0;for(;;){arity++;var currentParams=[];if(_.contains(["{","["],state.tokens.next.id)){tokens=destructuringPattern();for(t in tokens)t=tokens[t],t.id&&(paramsIds.push(t.id),currentParams.push([t.id,t.token]))}else if(checkPunctuator(state.tokens.next,"...")&&(pastRest=!0),ident=identifier(!0))paramsIds.push(ident),currentParams.push([ident,state.tokens.curr]);else for(;!checkPunctuators(state.tokens.next,[",",")"]);)advance();if(pastDefault&&"="!==state.tokens.next.id&&error("W138",state.tokens.current),"="===state.tokens.next.id&&(state.inES6()||warning("W119",state.tokens.next,"default parameters","6"),advance("="),pastDefault=!0,expression(10)),currentParams.forEach(addParam),","!==state.tokens.next.id)return advance(")",next),{arity:arity,params:paramsIds};pastRest&&warning("W131",state.tokens.next),comma()}}function functor(name,token,overwrites){var funct={"(name)":name,"(breakage)":0,"(loopage)":0,"(tokens)":{},"(properties)":{},"(catch)":!1,"(global)":!1,"(line)":null,"(character)":null,"(metrics)":null,"(statement)":null,"(context)":null,"(scope)":null,"(comparray)":null,"(generator)":null,"(arrow)":null,"(params)":null};return token&&_.extend(funct,{"(line)":token.line,"(character)":token.character,"(metrics)":createMetrics(token)}),_.extend(funct,overwrites),funct["(context)"]&&(funct["(scope)"]=funct["(context)"]["(scope)"],funct["(comparray)"]=funct["(context)"]["(comparray)"]),funct}function isFunctor(token){return"(scope)"in token}function hasParsedCode(funct){return funct["(global)"]&&!funct["(verb)"]}function doTemplateLiteral(left){function end(){if(state.tokens.curr.template&&state.tokens.curr.tail&&state.tokens.curr.context===ctx)return!0;var complete=state.tokens.next.template&&state.tokens.next.tail&&state.tokens.next.context===ctx;return complete&&advance(),complete||state.tokens.next.isUnclosed}var ctx=this.context,noSubst=this.noSubst,depth=this.depth;if(!noSubst)for(;!end();)!state.tokens.next.template||state.tokens.next.depth>depth?expression(0):advance();return{id:"(template)",type:"(template)",tag:left}}function doFunction(options){var f,token,name,statement,classExprBinding,isGenerator,isArrow,ignoreLoopFunc,oldOption=state.option,oldIgnored=state.ignored;options&&(name=options.name,statement=options.statement,classExprBinding=options.classExprBinding,isGenerator="generator"===options.type,isArrow="arrow"===options.type,ignoreLoopFunc=options.ignoreLoopFunc),state.option=Object.create(state.option),state.ignored=Object.create(state.ignored),state.funct=functor(name||state.nameStack.infer(),state.tokens.next,{"(statement)":statement,"(context)":state.funct,"(arrow)":isArrow,"(generator)":isGenerator}),f=state.funct,token=state.tokens.curr,token.funct=state.funct,functions.push(state.funct),state.funct["(scope)"].stack("functionouter");var internallyAccessibleName=name||classExprBinding;internallyAccessibleName&&state.funct["(scope)"].block.add(internallyAccessibleName,classExprBinding?"class":"function",state.tokens.curr,!1),state.funct["(scope)"].stack("functionparams");var paramsInfo=functionparams(options);return paramsInfo?(state.funct["(params)"]=paramsInfo.params,state.funct["(metrics)"].arity=paramsInfo.arity,state.funct["(metrics)"].verifyMaxParametersPerFunction()):state.funct["(metrics)"].arity=0,isArrow&&(state.inES6(!0)||warning("W119",state.tokens.curr,"arrow function syntax (=>)","6"),options.loneArg||advance("=>")),block(!1,!0,!0,isArrow),!state.option.noyield&&isGenerator&&"yielded"!==state.funct["(generator)"]&&warning("W124",state.tokens.curr),state.funct["(metrics)"].verifyMaxStatementsPerFunction(),state.funct["(metrics)"].verifyMaxComplexityPerFunction(),state.funct["(unusedOption)"]=state.option.unused,state.option=oldOption,state.ignored=oldIgnored,state.funct["(last)"]=state.tokens.curr.line,state.funct["(lastcharacter)"]=state.tokens.curr.character,state.funct["(scope)"].unstack(),state.funct["(scope)"].unstack(),state.funct=state.funct["(context)"],ignoreLoopFunc||state.option.loopfunc||!state.funct["(loopage)"]||f["(isCapturing)"]&&warning("W083",token),f}function createMetrics(functionStartToken){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){state.option.maxstatements&&this.statementCount>state.option.maxstatements&&warning("W071",functionStartToken,this.statementCount)\n},verifyMaxParametersPerFunction:function(){_.isNumber(state.option.maxparams)&&this.arity>state.option.maxparams&&warning("W072",functionStartToken,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){state.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===state.option.maxdepth+1&&warning("W073",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var max=state.option.maxcomplexity,cc=this.ComplexityCount;max&&cc>max&&warning("W074",functionStartToken,cc)}}}function increaseComplexityCount(){state.funct["(metrics)"].ComplexityCount+=1}function checkCondAssignment(expr){var id,paren;switch(expr&&(id=expr.id,paren=expr.paren,","===id&&(expr=expr.exprs[expr.exprs.length-1])&&(id=expr.id,paren=paren||expr.paren)),id){case"=":case"+=":case"-=":case"*=":case"%=":case"&=":case"|=":case"^=":case"/=":paren||state.option.boss||warning("W084")}}function checkProperties(props){if(state.inES5())for(var name in props)props[name]&&props[name].setterToken&&!props[name].getterToken&&warning("W078",props[name].setterToken)}function metaProperty(name,c){if(checkPunctuator(state.tokens.next,".")){var left=state.tokens.curr.id;advance(".");var id=identifier();return state.tokens.curr.isMetaProperty=!0,name!==id?error("E057",state.tokens.prev,left,id):c(),state.tokens.curr}}function destructuringPattern(options){var isAssignment=options&&options.assignment;return state.inES6()||warning("W104",state.tokens.curr,isAssignment?"destructuring assignment":"destructuring binding","6"),destructuringPatternRecursive(options)}function destructuringPatternRecursive(options){var ids,identifiers=[],openingParsed=options&&options.openingParsed,isAssignment=options&&options.assignment,recursiveOptions=isAssignment?{assignment:isAssignment}:null,firstToken=openingParsed?state.tokens.curr:state.tokens.next,nextInnerDE=function(){var ident;if(checkPunctuators(state.tokens.next,["[","{"])){ids=destructuringPatternRecursive(recursiveOptions);for(var id in ids)id=ids[id],identifiers.push({id:id.id,token:id.token})}else if(checkPunctuator(state.tokens.next,","))identifiers.push({id:null,token:state.tokens.curr});else{if(!checkPunctuator(state.tokens.next,"(")){var is_rest=checkPunctuator(state.tokens.next,"...");if(isAssignment){var identifierToken=is_rest?peek(0):state.tokens.next;identifierToken.identifier||warning("E030",identifierToken,identifierToken.value);var assignTarget=expression(155);assignTarget&&(checkLeftSideAssign(assignTarget),assignTarget.identifier&&(ident=assignTarget.value))}else ident=identifier();return ident&&identifiers.push({id:ident,token:state.tokens.curr}),is_rest}advance("("),nextInnerDE(),advance(")")}return!1},assignmentProperty=function(){var id;checkPunctuator(state.tokens.next,"[")?(advance("["),expression(10),advance("]"),advance(":"),nextInnerDE()):"(string)"===state.tokens.next.id||"(number)"===state.tokens.next.id?(advance(),advance(":"),nextInnerDE()):(id=identifier(),checkPunctuator(state.tokens.next,":")?(advance(":"),nextInnerDE()):id&&(isAssignment&&checkLeftSideAssign(state.tokens.curr),identifiers.push({id:id,token:state.tokens.curr})))};if(checkPunctuator(firstToken,"[")){openingParsed||advance("["),checkPunctuator(state.tokens.next,"]")&&warning("W137",state.tokens.curr);for(var element_after_rest=!1;!checkPunctuator(state.tokens.next,"]");)nextInnerDE()&&!element_after_rest&&checkPunctuator(state.tokens.next,",")&&(warning("W130",state.tokens.next),element_after_rest=!0),checkPunctuator(state.tokens.next,"=")&&(checkPunctuator(state.tokens.prev,"...")?advance("]"):advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"]")||advance(",");advance("]")}else if(checkPunctuator(firstToken,"{")){for(openingParsed||advance("{"),checkPunctuator(state.tokens.next,"}")&&warning("W137",state.tokens.curr);!checkPunctuator(state.tokens.next,"}")&&(assignmentProperty(),checkPunctuator(state.tokens.next,"=")&&(advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"}")||(advance(","),!checkPunctuator(state.tokens.next,"}"))););advance("}")}return identifiers}function destructuringPatternMatch(tokens,value){var first=value.first;first&&_.zip(tokens,Array.isArray(first)?first:[first]).forEach(function(val){var token=val[0],value=val[1];token&&value?token.first=value:token&&token.first&&!value&&warning("W080",token.first,token.first.value)})}function blockVariableStatement(type,statement,context){var tokens,lone,value,letblock,prefix=context&&context.prefix,inexport=context&&context.inexport,isLet="let"===type,isConst="const"===type;for(state.inES6()||warning("W104",state.tokens.curr,type,"6"),isLet&&"("===state.tokens.next.value?(state.inMoz()||warning("W118",state.tokens.next,"let block"),advance("("),state.funct["(scope)"].stack(),letblock=!0):state.funct["(noblockscopedvar)"]&&error("E048",state.tokens.curr,isConst?"Const":"Let"),statement.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),!prefix&&isConst&&"="!==state.tokens.next.id&&warning("E012",state.tokens.curr,state.tokens.curr.value);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],state.funct["(scope)"].block.isGlobal()&&predefined[t.id]===!1&&warning("W079",t.token,t.id),t.id&&!state.funct["(noblockscopedvar)"]&&(state.funct["(scope)"].addlabel(t.id,{type:type,token:t.token}),names.push(t.token),lone&&inexport&&state.funct["(scope)"].setExported(t.token.value,t.token)));if("="===state.tokens.next.id&&(advance("="),prefix||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),!prefix&&"="===peek(0).id&&state.tokens.next.identifier&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),statement.first=statement.first.concat(names),","!==state.tokens.next.id)break;comma()}return letblock&&(advance(")"),block(!0,!0),statement.block=!0,state.funct["(scope)"].unstack()),statement}function classdef(isStatement){return state.inES6()||warning("W104",state.tokens.curr,"class","6"),isStatement?(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"class",token:state.tokens.curr})):state.tokens.next.identifier&&"extends"!==state.tokens.next.value?(this.name=identifier(),this.namedExpr=!0):this.name=state.nameStack.infer(),classtail(this),this}function classtail(c){var wasInClassBody=state.inClassBody;"extends"===state.tokens.next.value&&(advance("extends"),c.heritage=expression(10)),state.inClassBody=!0,advance("{"),c.body=classbody(c),advance("}"),state.inClassBody=wasInClassBody}function classbody(c){for(var name,isStatic,isGenerator,getset,computed,props=Object.create(null),staticProps=Object.create(null),i=0;"}"!==state.tokens.next.id;++i)if(name=state.tokens.next,isStatic=!1,isGenerator=!1,getset=null,";"!==name.id){if("*"===name.id&&(isGenerator=!0,advance("*"),name=state.tokens.next),"["===name.id)name=computedPropertyName(),computed=!0;else{if(!isPropertyName(name)){warning("W052",state.tokens.next,state.tokens.next.value||state.tokens.next.type),advance();continue}advance(),computed=!1,name.identifier&&"static"===name.value&&(checkPunctuator(state.tokens.next,"*")&&(isGenerator=!0,advance("*")),(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,isStatic=!0,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())),!name.identifier||"get"!==name.value&&"set"!==name.value||(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,getset=name,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())}if(!checkPunctuator(state.tokens.next,"(")){for(error("E054",state.tokens.next,state.tokens.next.value);"}"!==state.tokens.next.id&&!checkPunctuator(state.tokens.next,"(");)advance();"("!==state.tokens.next.value&&doFunction({statement:c})}if(computed||(getset?saveAccessor(getset.value,isStatic?staticProps:props,name.value,name,!0,isStatic):("constructor"===name.value?state.nameStack.set(c):state.nameStack.set(name),saveProperty(isStatic?staticProps:props,name.value,name,!0,isStatic))),getset&&"constructor"===name.value){var propDesc="get"===getset.value?"class getter method":"class setter method";error("E049",name,propDesc,"constructor")}else"prototype"===name.value&&error("E049",name,"class method","prototype");propertyName(name),doFunction({statement:c,type:isGenerator?"generator":null,classExprBinding:c.namedExpr?c.name:null})}else warning("W032"),advance(";");checkProperties(props)}function saveProperty(props,name,tkn,isClass,isStatic){var msg=["key","class method","static class method"];msg=msg[(isClass||!1)+(isStatic||!1)],tkn.identifier&&(name=tkn.value),props[name]&&"__proto__"!==name?warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name].basic=!0,props[name].basictkn=tkn}function saveAccessor(accessorType,props,name,tkn,isClass,isStatic){var flagName="get"===accessorType?"getterToken":"setterToken",msg="";isClass?(isStatic&&(msg+="static "),msg+=accessorType+"ter method"):msg="key",state.tokens.curr.accessorType=accessorType,state.nameStack.set(tkn),props[name]?(props[name].basic||props[name][flagName])&&"__proto__"!==name&&warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name][flagName]=tkn}function computedPropertyName(){advance("["),state.inES6()||warning("W119",state.tokens.curr,"computed property names","6");var value=expression(10);return advance("]"),value}function checkPunctuators(token,values){return"(punctuator)"===token.type?_.contains(values,token.value):!1}function checkPunctuator(token,value){return"(punctuator)"===token.type&&token.value===value}function destructuringAssignOrJsonValue(){var block=lookupBlockType();block.notJson?(!state.inES6()&&block.isDestAssign&&warning("W104",state.tokens.curr,"destructuring assignment","6"),statements()):(state.option.laxbreak=!0,state.jsonMode=!0,jsonValue())}function jsonValue(){function jsonObject(){var o={},t=state.tokens.next;if(advance("{"),"}"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E026",state.tokens.next,t.line);else{if("}"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id?error("E028",state.tokens.next):"(string)"!==state.tokens.next.id&&warning("W095",state.tokens.next,state.tokens.next.value)}if(o[state.tokens.next.value]===!0?warning("W075",state.tokens.next,"key",state.tokens.next.value):"__proto__"===state.tokens.next.value&&!state.option.proto||"__iterator__"===state.tokens.next.value&&!state.option.iterator?warning("W096",state.tokens.next,state.tokens.next.value):o[state.tokens.next.value]=!0,advance(),advance(":"),jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("}")}function jsonArray(){var t=state.tokens.next;if(advance("["),"]"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E027",state.tokens.next,t.line);else{if("]"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id&&error("E028",state.tokens.next)}if(jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("]")}switch(state.tokens.next.id){case"{":jsonObject();break;case"[":jsonArray();break;case"true":case"false":case"null":case"(number)":case"(string)":advance();break;case"-":advance("-"),advance("(number)");break;default:error("E003",state.tokens.next)}}var api,declared,functions,inblock,indent,lookahead,lex,member,membersOnly,predefined,stack,urls,bang={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},functionicity=["closure","exception","global","label","outer","unused","var"],extraModules=[],emitter=new events.EventEmitter,typeofValues={};typeofValues.legacy=["xml","unknown"],typeofValues.es3=["undefined","boolean","number","string","function","object"],typeofValues.es3=typeofValues.es3.concat(typeofValues.legacy),typeofValues.es6=typeofValues.es3.concat("symbol"),type("(number)",function(){return this}),type("(string)",function(){return this}),state.syntax["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var v=this.value;return"=>"===state.tokens.next.id?this:(state.funct["(comparray)"].check(v)||state.funct["(scope)"].block.use(v,state.tokens.curr),this)},led:function(){error("E033",state.tokens.next,state.tokens.next.value)}};var baseTemplateSyntax={lbp:0,identifier:!1,template:!0};state.syntax["(template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!1},baseTemplateSyntax),state.syntax["(template middle)"]=_.extend({type:"(template middle)",middle:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(template tail)"]=_.extend({type:"(template tail)",tail:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(no subst template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!0,tail:!0},baseTemplateSyntax),type("(regexp)",function(){return this}),delim("(endline)"),delim("(begin)"),delim("(end)").reach=!0,delim("(error)").reach=!0,delim("}").reach=!0,delim(")"),delim("]"),delim(\'"\').reach=!0,delim("\'").reach=!0,delim(";"),delim(":").reach=!0,delim("#"),reserve("else"),reserve("case").reach=!0,reserve("catch"),reserve("default").reach=!0,reserve("finally"),reservevar("arguments",function(x){state.isStrict()&&state.funct["(global)"]&&warning("E008",x)}),reservevar("eval"),reservevar("false"),reservevar("Infinity"),reservevar("null"),reservevar("this",function(x){state.isStrict()&&!isMethod()&&!state.option.validthis&&(state.funct["(statement)"]&&state.funct["(name)"].charAt(0)>"Z"||state.funct["(global)"])&&warning("W040",x)}),reservevar("true"),reservevar("undefined"),assignop("=","assign",20),assignop("+=","assignadd",20),assignop("-=","assignsub",20),assignop("*=","assignmult",20),assignop("/=","assigndiv",20).nud=function(){error("E014")},assignop("%=","assignmod",20),bitwiseassignop("&="),bitwiseassignop("|="),bitwiseassignop("^="),bitwiseassignop("<<="),bitwiseassignop(">>="),bitwiseassignop(">>>="),infix(",",function(left,that){var expr;if(that.exprs=[left],state.option.nocomma&&warning("W127"),!comma({peek:!0}))return that;for(;;){if(!(expr=expression(10)))break;if(that.exprs.push(expr),","!==state.tokens.next.value||!comma())break}return that},10,!0),infix("?",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(10),advance(":"),that["else"]=expression(10),that},30);var orPrecendence=40;infix("||",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(orPrecendence),that},orPrecendence),infix("&&","and",50),bitwise("|","bitor",70),bitwise("^","bitxor",80),bitwise("&","bitand",90),relation("==",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));switch(!0){case!eqnull&&state.option.eqeqeq:this.from=this.character,warning("W116",this,"===","==");break;case isPoorRelation(left):warning("W041",this,"===",left.value);break;case isPoorRelation(right):warning("W041",this,"===",right.value);break;case isTypoTypeof(right,left,state):warning("W122",this,right.value);break;case isTypoTypeof(left,right,state):warning("W122",this,left.value)}return this}),relation("===",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!=",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));return!eqnull&&state.option.eqeqeq?(this.from=this.character,warning("W116",this,"!==","!=")):isPoorRelation(left)?warning("W041",this,"!==",left.value):isPoorRelation(right)?warning("W041",this,"!==",right.value):isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!==",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("<"),relation(">"),relation("<="),relation(">="),bitwise("<<","shiftleft",120),bitwise(">>","shiftright",120),bitwise(">>>","shiftrightunsigned",120),infix("in","in",120),infix("instanceof","instanceof",120),infix("+",function(left,that){var right;return that.left=left,that.right=right=expression(130),left&&right&&"(string)"===left.id&&"(string)"===right.id?(left.value+=right.value,left.character=right.character,!state.option.scripturl&®.javascriptURL.test(left.value)&&warning("W050",left),left):that},130),prefix("+","num"),prefix("+++",function(){return warning("W007"),this.arity="unary",this.right=expression(150),this}),infix("+++",function(left){return warning("W007"),this.left=left,this.right=expression(130),this},130),infix("-","sub",130),prefix("-","neg"),prefix("---",function(){return warning("W006"),this.arity="unary",this.right=expression(150),this}),infix("---",function(left){return warning("W006"),this.left=left,this.right=expression(130),this},130),infix("*","mult",140),infix("/","div",140),infix("%","mod",140),suffix("++"),prefix("++","preinc"),state.syntax["++"].exps=!0,suffix("--"),prefix("--","predec"),state.syntax["--"].exps=!0,prefix("delete",function(){var p=expression(10);return p?("."!==p.id&&"["!==p.id&&warning("W051"),this.first=p,p.identifier&&!state.isStrict()&&(p.forgiveUndef=!0),this):this}).exps=!0,prefix("~",function(){return state.option.bitwise&&warning("W016",this,"~"),this.arity="unary",this.right=expression(150),this}),prefix("...",function(){return state.inES6(!0)||warning("W119",this,"spread/rest operator","6"),state.tokens.next.identifier||"(string)"===state.tokens.next.type||checkPunctuators(state.tokens.next,["[","("])||error("E030",state.tokens.next,state.tokens.next.value),expression(150),this}),prefix("!",function(){return this.arity="unary",this.right=expression(150),this.right||quit("E041",this.line||0),bang[this.right.id]===!0&&warning("W018",this,"!"),this}),prefix("typeof",function(){var p=expression(150);return this.first=this.right=p,p||quit("E041",this.line||0,this.character||0),p.identifier&&(p.forgiveUndef=!0),this}),prefix("new",function(){var mp=metaProperty("target",function(){state.inES6(!0)||warning("W119",state.tokens.prev,"new.target","6");for(var inFunction,c=state.funct;c&&(inFunction=!c["(global)"],c["(arrow)"]);)c=c["(context)"];inFunction||warning("W136",state.tokens.prev,"new.target")});if(mp)return mp;var i,c=expression(155);if(c&&"function"!==c.id)if(c.identifier)switch(c["new"]=!0,c.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":warning("W053",state.tokens.prev,c.value);break;case"Symbol":state.inES6()&&warning("W053",state.tokens.prev,c.value);break;case"Function":state.option.evil||warning("W054");break;case"Date":case"RegExp":case"this":break;default:"function"!==c.id&&(i=c.value.substr(0,1),state.option.newcap&&("A">i||i>"Z")&&!state.funct["(scope)"].isPredefined(c.value)&&warning("W055",state.tokens.curr))}else"."!==c.id&&"["!==c.id&&"("!==c.id&&warning("W056",state.tokens.curr);else state.option.supernew||warning("W057",this);return"("===state.tokens.next.id||state.option.supernew||warning("W058",state.tokens.curr,state.tokens.curr.value),this.first=this.right=c,this}),state.syntax["new"].exps=!0,prefix("void").exps=!0,infix(".",function(left,that){var m=identifier(!1,!0);return"string"==typeof m&&countMember(m),that.left=left,that.right=m,m&&"hasOwnProperty"===m&&"="===state.tokens.next.value&&warning("W001"),!left||"arguments"!==left.value||"callee"!==m&&"caller"!==m?state.option.evil||!left||"document"!==left.value||"write"!==m&&"writeln"!==m||warning("W060",left):state.option.noarg?warning("W059",left,m):state.isStrict()&&error("E008"),state.option.evil||"eval"!==m&&"execScript"!==m||isGlobalEval(left,state)&&warning("W061"),that},160,!0),infix("(",function(left,that){state.option.immed&&left&&!left.immed&&"function"===left.id&&warning("W062");var n=0,p=[];if(left&&"(identifier)"===left.type&&left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1==="Array Number String Boolean Date Object Error Symbol".indexOf(left.value)&&("Math"===left.value?warning("W063",left):state.option.newcap&&warning("W064",left)),")"!==state.tokens.next.id)for(;p[p.length]=expression(10),n+=1,","===state.tokens.next.id;)comma();return advance(")"),"object"==typeof left&&(state.inES5()||"parseInt"!==left.value||1!==n||warning("W065",state.tokens.curr),state.option.evil||("eval"===left.value||"Function"===left.value||"execScript"===left.value?(warning("W061",left),p[0]&&"(string)"===[0].id&&addInternalSrc(left,p[0].value)):!p[0]||"(string)"!==p[0].id||"setTimeout"!==left.value&&"setInterval"!==left.value?!p[0]||"(string)"!==p[0].id||"."!==left.value||"window"!==left.left.value||"setTimeout"!==left.right&&"setInterval"!==left.right||(warning("W066",left),addInternalSrc(left,p[0].value)):(warning("W066",left),addInternalSrc(left,p[0].value))),left.identifier||"."===left.id||"["===left.id||"=>"===left.id||"("===left.id||"&&"===left.id||"||"===left.id||"?"===left.id||state.inES6()&&left["(name)"]||warning("W067",that)),that.left=left,that},155,!0).exps=!0,prefix("(",function(){var pn1,ret,triggerFnExpr,first,last,pn=state.tokens.next,i=-1,parens=1,opening=state.tokens.curr,preceeding=state.tokens.prev,isNecessary=!state.option.singleGroups;do"("===pn.value?parens+=1:")"===pn.value&&(parens-=1),i+=1,pn1=pn,pn=peek(i);while((0!==parens||")"!==pn1.value)&&";"!==pn.value&&"(end)"!==pn.type);if("function"===state.tokens.next.id&&(triggerFnExpr=state.tokens.next.immed=!0),"=>"===pn.value)return doFunction({type:"arrow",parsedOpening:!0});var exprs=[];if(")"!==state.tokens.next.id)for(;exprs.push(expression(10)),","===state.tokens.next.id;)state.option.nocomma&&warning("W127"),comma();return advance(")",this),state.option.immed&&exprs[0]&&"function"===exprs[0].id&&"("!==state.tokens.next.id&&"."!==state.tokens.next.id&&"["!==state.tokens.next.id&&warning("W068",this),exprs.length?(exprs.length>1?(ret=Object.create(state.syntax[","]),ret.exprs=exprs,first=exprs[0],last=exprs[exprs.length-1],isNecessary||(isNecessary=preceeding.assign||preceeding.delim)):(ret=first=last=exprs[0],isNecessary||(isNecessary=opening.beginsStmt&&("{"===ret.id||triggerFnExpr||isFunctor(ret))||triggerFnExpr&&(!isEndOfExpr()||"}"!==state.tokens.prev.id)||isFunctor(ret)&&!isEndOfExpr()||"{"===ret.id&&"=>"===preceeding.id||"(number)"===ret.type&&checkPunctuator(pn,".")&&/^\\d+$/.test(ret.value))),ret&&(!isNecessary&&(first.left||first.right||ret.exprs)&&(isNecessary=!isBeginOfExpr(preceeding)&&first.lbp<=preceeding.lbp||!isEndOfExpr()&&last.lbp<state.tokens.next.lbp),isNecessary||warning("W126",opening),ret.paren=!0),ret):void 0}),application("=>"),infix("[",function(left,that){var s,e=expression(10);return e&&"(string)"===e.type&&(state.option.evil||"eval"!==e.value&&"execScript"!==e.value||isGlobalEval(left,state)&&warning("W061"),countMember(e.value),!state.option.sub&®.identifier.test(e.value)&&(s=state.syntax[e.value],s&&isReserved(s)||warning("W069",state.tokens.prev,e.value))),advance("]",that),e&&"hasOwnProperty"===e.value&&"="===state.tokens.next.value&&warning("W001"),that.left=left,that.right=e,that},160,!0),prefix("[",function(){var blocktype=lookupBlockType();if(blocktype.isCompArray)return state.option.esnext||state.inMoz()||warning("W118",state.tokens.curr,"array comprehension"),comprehensiveArrayExpression();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;var b=state.tokens.curr.line!==startLine(state.tokens.next);for(this.first=[],b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));"(end)"!==state.tokens.next.id;){for(;","===state.tokens.next.id;){if(!state.option.elision){if(state.inES5()){warning("W128");do advance(",");while(","===state.tokens.next.id);continue}warning("W070")}advance(",")}if("]"===state.tokens.next.id)break;if(this.first.push(expression(10)),","!==state.tokens.next.id)break;if(comma({allowTrailing:!0}),"]"===state.tokens.next.id&&!state.inES5()){warning("W070",state.tokens.curr);break}}return b&&(indent-=state.option.indent),advance("]",this),this}),function(x){x.nud=function(){var b,f,i,p,t,nextVal,isGeneratorMethod=!1,props=Object.create(null);b=state.tokens.curr.line!==startLine(state.tokens.next),b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));var blocktype=lookupBlockType();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;for(;"}"!==state.tokens.next.id;){if(nextVal=state.tokens.next.value,!state.tokens.next.identifier||","!==peekIgnoreEOL().id&&"}"!==peekIgnoreEOL().id)if(":"===peek().id||"get"!==nextVal&&"set"!==nextVal){if("*"===state.tokens.next.value&&"(punctuator)"===state.tokens.next.type?(state.inES6()||warning("W104",state.tokens.next,"generator functions","6"),advance("*"),isGeneratorMethod=!0):isGeneratorMethod=!1,"["===state.tokens.next.id)i=computedPropertyName(),state.nameStack.set(i);else if(state.nameStack.set(state.tokens.next),i=propertyName(),saveProperty(props,i,state.tokens.next),"string"!=typeof i)break;"("===state.tokens.next.value?(state.inES6()||warning("W104",state.tokens.curr,"concise methods","6"),doFunction({type:isGeneratorMethod?"generator":null})):(advance(":"),expression(10))}else advance(nextVal),state.inES5()||error("E034"),i=propertyName(),i||state.inES6()||error("E035"),i&&saveAccessor(nextVal,props,i,state.tokens.curr),t=state.tokens.next,f=doFunction(),p=f["(params)"],"get"===nextVal&&i&&p?warning("W076",t,p[0],i):"set"!==nextVal||!i||p&&1===p.length||warning("W077",t,i);else state.inES6()||warning("W104",state.tokens.next,"object short notation","6"),i=propertyName(!0),saveProperty(props,i,state.tokens.next),expression(10);if(countMember(i),","!==state.tokens.next.id)break;comma({allowTrailing:!0,property:!0}),","===state.tokens.next.id?warning("W070",state.tokens.curr):"}"!==state.tokens.next.id||state.inES5()||warning("W070",state.tokens.curr)}return b&&(indent-=state.option.indent),advance("}",this),checkProperties(props),this},x.fud=function(){error("E036",state.tokens.curr)}}(delim("{"));var conststatement=stmt("const",function(context){return blockVariableStatement("const",this,context)});conststatement.exps=!0;var letstatement=stmt("let",function(context){return blockVariableStatement("let",this,context)});letstatement.exps=!0;var varstatement=stmt("var",function(context){var tokens,lone,value,prefix=context&&context.prefix,inexport=context&&context.inexport,implied=context&&context.implied,report=!(context&&context.ignore);for(this.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),prefix&&implied||!report||!state.option.varstmt||warning("W132",this),this.first=this.first.concat(names);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],!implied&&state.funct["(global)"]&&(predefined[t.id]===!1?warning("W079",t.token,t.id):state.option.futurehostile===!1&&(!state.inES5()&&vars.ecmaIdentifiers[5][t.id]===!1||!state.inES6()&&vars.ecmaIdentifiers[6][t.id]===!1)&&warning("W129",t.token,t.id)),t.id&&("for"===implied?(state.funct["(scope)"].has(t.id)||report&&warning("W088",t.token,t.id),state.funct["(scope)"].block.use(t.id,t.token)):(state.funct["(scope)"].addlabel(t.id,{type:"var",token:t.token}),lone&&inexport&&state.funct["(scope)"].setExported(t.id,t.token)),names.push(t.token)));if("="===state.tokens.next.id&&(state.nameStack.set(state.tokens.curr),advance("="),prefix||!report||state.funct["(loopage)"]||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),"="===peek(0).id&&state.tokens.next.identifier&&(!prefix&&report&&!state.funct["(params)"]||-1===state.funct["(params)"].indexOf(state.tokens.next.value))&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),","!==state.tokens.next.id)break;comma()}return this});varstatement.exps=!0,blockstmt("class",function(){return classdef.call(this,!0)}),blockstmt("function",function(context){var inexport=context&&context.inexport,generator=!1;"*"===state.tokens.next.value&&(advance("*"),state.inES6({strict:!0})?generator=!0:warning("W119",state.tokens.curr,"function*","6")),inblock&&warning("W082",state.tokens.curr);var i=optionalidentifier();return state.funct["(scope)"].addlabel(i,{type:"function",token:state.tokens.curr}),void 0===i?warning("W025"):inexport&&state.funct["(scope)"].setExported(i,state.tokens.prev),doFunction({name:i,statement:this,type:generator?"generator":null,ignoreLoopFunc:inblock}),"("===state.tokens.next.id&&state.tokens.next.line===state.tokens.curr.line&&error("E039"),this}),prefix("function",function(){var generator=!1;"*"===state.tokens.next.value&&(state.inES6()||warning("W119",state.tokens.curr,"function*","6"),advance("*"),generator=!0);var i=optionalidentifier();return doFunction({name:i,type:generator?"generator":null}),this}),blockstmt("if",function(){var t=state.tokens.next;increaseComplexityCount(),state.condition=!0,advance("(");var expr=expression(0);checkCondAssignment(expr);var forinifcheck=null;state.option.forin&&state.forinifcheckneeded&&(state.forinifcheckneeded=!1,forinifcheck=state.forinifchecks[state.forinifchecks.length-1],forinifcheck.type="(punctuator)"===expr.type&&"!"===expr.value?"(negative)":"(positive)"),advance(")",t),state.condition=!1;var s=block(!0,!0);return forinifcheck&&"(negative)"===forinifcheck.type&&s&&s[0]&&"(identifier)"===s[0].type&&"continue"===s[0].value&&(forinifcheck.type="(negative-with-continue)"),"else"===state.tokens.next.id&&(advance("else"),"if"===state.tokens.next.id||"switch"===state.tokens.next.id?statement():block(!0,!0)),this}),blockstmt("try",function(){function doCatch(){if(advance("catch"),advance("("),state.funct["(scope)"].stack("catchparams"),checkPunctuators(state.tokens.next,["[","{"])){var tokens=destructuringPattern();_.each(tokens,function(token){token.id&&state.funct["(scope)"].addParam(token.id,token,"exception")})}else"(identifier)"!==state.tokens.next.type?warning("E030",state.tokens.next,state.tokens.next.value):state.funct["(scope)"].addParam(identifier(),state.tokens.curr,"exception");"if"===state.tokens.next.value&&(state.inMoz()||warning("W118",state.tokens.curr,"catch filter"),advance("if"),expression(0)),advance(")"),block(!1),state.funct["(scope)"].unstack()}var b;for(block(!0);"catch"===state.tokens.next.id;)increaseComplexityCount(),b&&!state.inMoz()&&warning("W118",state.tokens.next,"multiple catch blocks"),doCatch(),b=!0;return"finally"===state.tokens.next.id?(advance("finally"),block(!0),void 0):(b||error("E021",state.tokens.next,"catch",state.tokens.next.value),this)}),blockstmt("while",function(){var t=state.tokens.next;return state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),advance("("),checkCondAssignment(expression(0)),advance(")",t),block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this}).labelled=!0,blockstmt("with",function(){var t=state.tokens.next;return state.isStrict()?error("E010",state.tokens.curr):state.option.withstmt||warning("W085",state.tokens.curr),advance("("),expression(0),advance(")",t),block(!0,!0),this}),blockstmt("switch",function(){var t=state.tokens.next,g=!1,noindent=!1;\nfor(state.funct["(breakage)"]+=1,advance("("),checkCondAssignment(expression(0)),advance(")",t),t=state.tokens.next,advance("{"),state.tokens.next.from===indent&&(noindent=!0),noindent||(indent+=state.option.indent),this.cases=[];;)switch(state.tokens.next.id){case"case":switch(state.funct["(verb)"]){case"yield":case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"case")}advance("case"),this.cases.push(expression(0)),increaseComplexityCount(),g=!0,advance(":"),state.funct["(verb)"]="case";break;case"default":switch(state.funct["(verb)"]){case"yield":case"break":case"continue":case"return":case"throw":break;default:this.cases.length&&(state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"default"))}advance("default"),g=!0,advance(":");break;case"}":return noindent||(indent-=state.option.indent),advance("}",t),state.funct["(breakage)"]-=1,state.funct["(verb)"]=void 0,void 0;case"(end)":return error("E023",state.tokens.next,"}"),void 0;default:if(indent+=state.option.indent,g)switch(state.tokens.curr.id){case",":return error("E040"),void 0;case":":g=!1,statements();break;default:return error("E025",state.tokens.curr),void 0}else{if(":"!==state.tokens.curr.id)return error("E021",state.tokens.next,"case",state.tokens.next.value),void 0;advance(":"),error("E024",state.tokens.curr,":"),statements()}indent-=state.option.indent}return this}).labelled=!0,stmt("debugger",function(){return state.option.debug||warning("W087",this),this}).exps=!0,function(){var x=stmt("do",function(){state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),this.first=block(!0,!0),advance("while");var t=state.tokens.next;return advance("("),checkCondAssignment(expression(0)),advance(")",t),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this});x.labelled=!0,x.exps=!0}(),blockstmt("for",function(){var s,t=state.tokens.next,letscope=!1,foreachtok=null;"each"===t.value&&(foreachtok=t,advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),increaseComplexityCount(),advance("(");var nextop,comma,initializer,i=0,inof=["in","of"],level=0;checkPunctuators(state.tokens.next,["{","["])&&++level;do{if(nextop=peek(i),++i,checkPunctuators(nextop,["{","["])?++level:checkPunctuators(nextop,["}","]"])&&--level,0>level)break;0===level&&(!comma&&checkPunctuator(nextop,",")?comma=nextop:!initializer&&checkPunctuator(nextop,"=")&&(initializer=nextop))}while(level>0||!_.contains(inof,nextop.value)&&";"!==nextop.value&&"(end)"!==nextop.type);if(_.contains(inof,nextop.value)){state.inES6()||"of"!==nextop.value||warning("W104",nextop,"for of","6");var ok=!(initializer||comma);if(initializer&&error("W133",comma,nextop.value,"initializer is forbidden"),comma&&error("W133",comma,nextop.value,"more than one ForBinding"),"var"===state.tokens.next.id?(advance("var"),state.tokens.curr.fud({prefix:!0})):"let"===state.tokens.next.id||"const"===state.tokens.next.id?(advance(state.tokens.next.id),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud({prefix:!0})):Object.create(varstatement).fud({prefix:!0,implied:"for",ignore:!ok}),advance(nextop.value),expression(20),advance(")",t),"in"===nextop.value&&state.option.forin&&(state.forinifcheckneeded=!0,void 0===state.forinifchecks&&(state.forinifchecks=[]),state.forinifchecks.push({type:"(none)"})),state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,s=block(!0,!0),"in"===nextop.value&&state.option.forin){if(state.forinifchecks&&state.forinifchecks.length>0){var check=state.forinifchecks.pop();(s&&s.length>0&&("object"!=typeof s[0]||"if"!==s[0].value)||"(positive)"===check.type&&s.length>1||"(negative)"===check.type)&&warning("W089",this)}state.forinifcheckneeded=!1}state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}else{if(foreachtok&&error("E045",foreachtok),";"!==state.tokens.next.id)if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud();else if("let"===state.tokens.next.id)advance("let"),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud();else for(;expression(0,"for"),","===state.tokens.next.id;)comma();if(nolinebreak(state.tokens.curr),advance(";"),state.funct["(loopage)"]+=1,";"!==state.tokens.next.id&&checkCondAssignment(expression(0)),nolinebreak(state.tokens.curr),advance(";"),";"===state.tokens.next.id&&error("E021",state.tokens.next,")",";"),")"!==state.tokens.next.id)for(;expression(0,"for"),","===state.tokens.next.id;)comma();advance(")",t),state.funct["(breakage)"]+=1,block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}return letscope&&state.funct["(scope)"].unstack(),this}).labelled=!0,stmt("break",function(){var v=state.tokens.next.value;return state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line!==startLine(state.tokens.next)?0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value):(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("continue",function(){var v=state.tokens.next.value;return 0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value),state.funct["(loopage)"]||warning("W052",state.tokens.next,this.value),state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line===startLine(state.tokens.next)&&(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("return",function(){return this.line===startLine(state.tokens.next)?";"===state.tokens.next.id||state.tokens.next.reach||(this.first=expression(0),!this.first||"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)):"(punctuator)"===state.tokens.next.type&&["[","{","+","-"].indexOf(state.tokens.next.value)>-1&&nolinebreak(this),reachable(this),this}).exps=!0,function(x){x.exps=!0,x.lbp=25}(prefix("yield",function(){var prev=state.tokens.prev;state.inES6(!0)&&!state.funct["(generator)"]?"(catch)"===state.funct["(name)"]&&state.funct["(context)"]["(generator)"]||error("E046",state.tokens.curr,"yield"):state.inES6()||warning("W104",state.tokens.curr,"yield","6"),state.funct["(generator)"]="yielded";var delegatingYield=!1;return"*"===state.tokens.next.value&&(delegatingYield=!0,advance("*")),this.line!==startLine(state.tokens.next)&&state.inMoz()?state.option.asi||nolinebreak(this):((delegatingYield||";"!==state.tokens.next.id&&!state.option.asi&&!state.tokens.next.reach&&state.tokens.next.nud)&&(nobreaknonadjacent(state.tokens.curr,state.tokens.next),this.first=expression(10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)),state.inMoz()&&")"!==state.tokens.next.id&&(prev.lbp>30||!prev.assign&&!isEndOfExpr()||"yield"===prev.id)&&error("E050",this)),this})),stmt("throw",function(){return nolinebreak(this),this.first=expression(20),reachable(this),this}).exps=!0,stmt("import",function(){if(state.inES6()||warning("W119",state.tokens.curr,"import","6"),"(string)"===state.tokens.next.type)return advance("(string)"),this;if(state.tokens.next.identifier){if(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value)return advance("from"),advance("(string)"),this;advance(",")}if("*"===state.tokens.next.id)advance("*"),advance("as"),state.tokens.next.identifier&&(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}));else for(advance("{");;){if("}"===state.tokens.next.value){advance("}");break}var importName;if("default"===state.tokens.next.type?(importName="default",advance("default")):importName=identifier(),"as"===state.tokens.next.value&&(advance("as"),importName=identifier()),state.funct["(scope)"].addlabel(importName,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return advance("from"),advance("(string)"),this}).exps=!0,stmt("export",function(){var token,identifier,ok=!0;if(state.inES6()||(warning("W119",state.tokens.curr,"export","6"),ok=!1),state.funct["(scope)"].block.isGlobal()||(error("E053",state.tokens.curr),ok=!1),"*"===state.tokens.next.value)return advance("*"),advance("from"),advance("(string)"),this;if("default"===state.tokens.next.type){state.nameStack.set(state.tokens.next),advance("default");var exportType=state.tokens.next.id;return("function"===exportType||"class"===exportType)&&(this.block=!0),token=peek(),expression(10),identifier=token.value,this.block&&(state.funct["(scope)"].addlabel(identifier,{type:exportType,token:token}),state.funct["(scope)"].setExported(identifier,token)),this}if("{"===state.tokens.next.value){advance("{");for(var exportedTokens=[];;){if(state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance(),exportedTokens.push(state.tokens.curr),"as"===state.tokens.next.value&&(advance("as"),state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance()),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return"from"===state.tokens.next.value?(advance("from"),advance("(string)")):ok&&exportedTokens.forEach(function(token){state.funct["(scope)"].setExported(token.value,token)}),this}if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud({inexport:!0});else if("let"===state.tokens.next.id)advance("let"),state.tokens.curr.fud({inexport:!0});else if("const"===state.tokens.next.id)advance("const"),state.tokens.curr.fud({inexport:!0});else if("function"===state.tokens.next.id)this.block=!0,advance("function"),state.syntax["function"].fud({inexport:!0});else if("class"===state.tokens.next.id){this.block=!0,advance("class");var classNameToken=state.tokens.next;state.syntax["class"].fud(),state.funct["(scope)"].setExported(classNameToken.value,classNameToken)}else error("E024",state.tokens.next,state.tokens.next.value);return this}).exps=!0,FutureReservedWord("abstract"),FutureReservedWord("boolean"),FutureReservedWord("byte"),FutureReservedWord("char"),FutureReservedWord("class",{es5:!0,nud:classdef}),FutureReservedWord("double"),FutureReservedWord("enum",{es5:!0}),FutureReservedWord("export",{es5:!0}),FutureReservedWord("extends",{es5:!0}),FutureReservedWord("final"),FutureReservedWord("float"),FutureReservedWord("goto"),FutureReservedWord("implements",{es5:!0,strictOnly:!0}),FutureReservedWord("import",{es5:!0}),FutureReservedWord("int"),FutureReservedWord("interface",{es5:!0,strictOnly:!0}),FutureReservedWord("long"),FutureReservedWord("native"),FutureReservedWord("package",{es5:!0,strictOnly:!0}),FutureReservedWord("private",{es5:!0,strictOnly:!0}),FutureReservedWord("protected",{es5:!0,strictOnly:!0}),FutureReservedWord("public",{es5:!0,strictOnly:!0}),FutureReservedWord("short"),FutureReservedWord("static",{es5:!0,strictOnly:!0}),FutureReservedWord("super",{es5:!0}),FutureReservedWord("synchronized"),FutureReservedWord("transient"),FutureReservedWord("volatile");var lookupBlockType=function(){var pn,pn1,prev,i=-1,bracketStack=0,ret={};checkPunctuators(state.tokens.curr,["[","{"])&&(bracketStack+=1);do{if(prev=-1===i?state.tokens.curr:pn,pn=-1===i?state.tokens.next:peek(i),pn1=peek(i+1),i+=1,checkPunctuators(pn,["[","{"])?bracketStack+=1:checkPunctuators(pn,["]","}"])&&(bracketStack-=1),1===bracketStack&&pn.identifier&&"for"===pn.value&&!checkPunctuator(prev,".")){ret.isCompArray=!0,ret.notJson=!0;break}if(0===bracketStack&&checkPunctuators(pn,["}","]"])){if("="===pn1.value){ret.isDestAssign=!0,ret.notJson=!0;break}if("."===pn1.value){ret.notJson=!0;break}}checkPunctuator(pn,";")&&(ret.isBlock=!0,ret.notJson=!0)}while(bracketStack>0&&"(end)"!==pn.id);return ret},arrayComprehension=function(){function declare(v){var l=_current.variables.filter(function(elt){return elt.value===v?(elt.undef=!1,v):void 0}).length;return 0!==l}function use(v){var l=_current.variables.filter(function(elt){return elt.value!==v||elt.undef?void 0:(elt.unused===!0&&(elt.unused=!1),v)}).length;return 0===l}var _current,CompArray=function(){this.mode="use",this.variables=[]},_carrays=[];return{stack:function(){_current=new CompArray,_carrays.push(_current)},unstack:function(){_current.variables.filter(function(v){v.unused&&warning("W098",v.token,v.raw_text||v.value),v.undef&&state.funct["(scope)"].block.use(v.value,v.token)}),_carrays.splice(-1,1),_current=_carrays[_carrays.length-1]},setState:function(s){_.contains(["use","define","generate","filter"],s)&&(_current.mode=s)},check:function(v){return _current?_current&&"use"===_current.mode?(use(v)&&_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!0,unused:!1}),!0):_current&&"define"===_current.mode?(declare(v)||_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!1,unused:!0}),!0):_current&&"generate"===_current.mode?(state.funct["(scope)"].block.use(v,state.tokens.curr),!0):_current&&"filter"===_current.mode?(use(v)&&state.funct["(scope)"].block.use(v,state.tokens.curr),!0):!1:void 0}}},escapeRegex=function(str){return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,"\\\\$&")},itself=function(s,o,g){function each(obj,cb){obj&&(Array.isArray(obj)||"object"!=typeof obj||(obj=Object.keys(obj)),obj.forEach(cb))}var i,k,x,reIgnoreStr,reIgnore,optionKeys,newOptionObj={},newIgnoredObj={};o=_.clone(o),state.reset(),o&&o.scope?JSHINT.scope=o.scope:(JSHINT.errors=[],JSHINT.undefs=[],JSHINT.internals=[],JSHINT.blacklist={},JSHINT.scope="(main)"),predefined=Object.create(null),combine(predefined,vars.ecmaIdentifiers[3]),combine(predefined,vars.reservedVars),combine(predefined,g||{}),declared=Object.create(null);var exported=Object.create(null);if(o)for(each(o.predef||null,function(item){var slice,prop;"-"===item[0]?(slice=item.slice(1),JSHINT.blacklist[slice]=slice,delete predefined[slice]):(prop=Object.getOwnPropertyDescriptor(o.predef,item),predefined[item]=prop?prop.value:!1)}),each(o.exported||null,function(item){exported[item]=!0}),delete o.predef,delete o.exported,optionKeys=Object.keys(o),x=0;optionKeys.length>x;x++)if(/^-W\\d{3}$/g.test(optionKeys[x]))newIgnoredObj[optionKeys[x].slice(1)]=!0;else{var optionKey=optionKeys[x];newOptionObj[optionKey]=o[optionKey],("esversion"===optionKey&&5===o[optionKey]||"es5"===optionKey&&o[optionKey])&&warning("I003"),"newcap"===optionKeys[x]&&o[optionKey]===!1&&(newOptionObj["(explicitNewcap)"]=!0)}state.option=newOptionObj,state.ignored=newIgnoredObj,state.option.indent=state.option.indent||4,state.option.maxerr=state.option.maxerr||50,indent=1;var scopeManagerInst=scopeManager(state,predefined,exported,declared);if(scopeManagerInst.on("warning",function(ev){warning.apply(null,[ev.code,ev.token].concat(ev.data))}),scopeManagerInst.on("error",function(ev){error.apply(null,[ev.code,ev.token].concat(ev.data))}),state.funct=functor("(global)",null,{"(global)":!0,"(scope)":scopeManagerInst,"(comparray)":arrayComprehension(),"(metrics)":createMetrics(state.tokens.next)}),functions=[state.funct],urls=[],stack=null,member={},membersOnly=null,inblock=!1,lookahead=[],!isString(s)&&!Array.isArray(s))return errorAt("E004",0),!1;api={get isJSON(){return state.jsonMode},getOption:function(name){return state.option[name]||null},getCache:function(name){return state.cache[name]},setCache:function(name,value){state.cache[name]=value},warn:function(code,data){warningAt.apply(null,[code,data.line,data.char].concat(data.data))},on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)}.bind(this))}},emitter.removeAllListeners(),(extraModules||[]).forEach(function(func){func(api)}),state.tokens.prev=state.tokens.curr=state.tokens.next=state.syntax["(begin)"],o&&o.ignoreDelimiters&&(Array.isArray(o.ignoreDelimiters)||(o.ignoreDelimiters=[o.ignoreDelimiters]),o.ignoreDelimiters.forEach(function(delimiterPair){delimiterPair.start&&delimiterPair.end&&(reIgnoreStr=escapeRegex(delimiterPair.start)+"[\\\\s\\\\S]*?"+escapeRegex(delimiterPair.end),reIgnore=RegExp(reIgnoreStr,"ig"),s=s.replace(reIgnore,function(match){return match.replace(/./g," ")}))})),lex=new Lexer(s),lex.on("warning",function(ev){warningAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("error",function(ev){errorAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("fatal",function(ev){quit("E041",ev.line,ev.from)}),lex.on("Identifier",function(ev){emitter.emit("Identifier",ev)}),lex.on("String",function(ev){emitter.emit("String",ev)}),lex.on("Number",function(ev){emitter.emit("Number",ev)}),lex.start();for(var name in o)_.has(o,name)&&checkOption(name,state.tokens.curr);assume(),combine(predefined,g||{}),comma.first=!0;try{switch(advance(),state.tokens.next.id){case"{":case"[":destructuringAssignOrJsonValue();break;default:directives(),state.directive["use strict"]&&"global"!==state.option.strict&&warning("W097",state.tokens.prev),statements()}"(end)"!==state.tokens.next.id&&quit("E041",state.tokens.curr.line),state.funct["(scope)"].unstack()}catch(err){if(!err||"JSHintError"!==err.name)throw err;var nt=state.tokens.next||{};JSHINT.errors.push({scope:"(main)",raw:err.raw,code:err.code,reason:err.message,line:err.line||nt.line,character:err.character||nt.from},null)}if("(main)"===JSHINT.scope)for(o=o||{},i=0;JSHINT.internals.length>i;i+=1)k=JSHINT.internals[i],o.scope=k.elem,itself(k.value,o,g);return 0===JSHINT.errors.length};return itself.addModule=function(func){extraModules.push(func)},itself.addModule(style.register),itself.data=function(){var fu,f,i,j,n,globals,data={functions:[],options:state.option};itself.errors.length&&(data.errors=itself.errors),state.jsonMode&&(data.json=!0);var impliedGlobals=state.funct["(scope)"].getImpliedGlobals();for(impliedGlobals.length>0&&(data.implieds=impliedGlobals),urls.length>0&&(data.urls=urls),globals=state.funct["(scope)"].getUsedOrDefinedGlobals(),globals.length>0&&(data.globals=globals),i=1;functions.length>i;i+=1){for(f=functions[i],fu={},j=0;functionicity.length>j;j+=1)fu[functionicity[j]]=[];for(j=0;functionicity.length>j;j+=1)0===fu[functionicity[j]].length&&delete fu[functionicity[j]];fu.name=f["(name)"],fu.param=f["(params)"],fu.line=f["(line)"],fu.character=f["(character)"],fu.last=f["(last)"],fu.lastcharacter=f["(lastcharacter)"],fu.metrics={complexity:f["(metrics)"].ComplexityCount,parameters:f["(metrics)"].arity,statements:f["(metrics)"].statementCount},data.functions.push(fu)}var unuseds=state.funct["(scope)"].getUnuseds();unuseds.length>0&&(data.unused=unuseds);for(n in member)if("number"==typeof member[n]){data.member=member;break}return data},itself.jshint=itself,itself}();"object"==typeof exports&&exports&&(exports.JSHINT=JSHINT)},{"../lodash":"/node_modules/jshint/lodash.js","./lex.js":"/node_modules/jshint/src/lex.js","./messages.js":"/node_modules/jshint/src/messages.js","./options.js":"/node_modules/jshint/src/options.js","./reg.js":"/node_modules/jshint/src/reg.js","./scope-manager.js":"/node_modules/jshint/src/scope-manager.js","./state.js":"/node_modules/jshint/src/state.js","./style.js":"/node_modules/jshint/src/style.js","./vars.js":"/node_modules/jshint/src/vars.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/lex.js":[function(_dereq_,module,exports){"use strict";function asyncTrigger(){var _checks=[];return{push:function(fn){_checks.push(fn)},check:function(){for(var check=0;_checks.length>check;++check)_checks[check]();_checks.splice(0,_checks.length)}}}function Lexer(source){var lines=source;"string"==typeof lines&&(lines=lines.replace(/\\r\\n/g,"\\n").replace(/\\r/g,"\\n").split("\\n")),lines[0]&&"#!"===lines[0].substr(0,2)&&(-1!==lines[0].indexOf("node")&&(state.option.node=!0),lines[0]=""),this.emitter=new events.EventEmitter,this.source=source,this.setLines(lines),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input="",this.inComment=!1,this.context=[],this.templateStarts=[];for(var i=0;state.option.indent>i;i+=1)state.tab+=" ";this.ignoreLinterErrors=!1}var _=_dereq_("../lodash"),events=_dereq_("events"),reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,unicodeData=_dereq_("../data/ascii-identifier-data.js"),asciiIdentifierStartTable=unicodeData.asciiIdentifierStartTable,asciiIdentifierPartTable=unicodeData.asciiIdentifierPartTable,Token={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},Context={Block:1,Template:2};Lexer.prototype={_lines:[],inContext:function(ctxType){return this.context.length>0&&this.context[this.context.length-1].type===ctxType},pushContext:function(ctxType){this.context.push({type:ctxType})},popContext:function(){return this.context.pop()},isContext:function(context){return this.context.length>0&&this.context[this.context.length-1]===context},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=state.lines,this._lines},setLines:function(val){this._lines=val,state.lines=this._lines},peek:function(i){return this.input.charAt(i||0)},skip:function(i){i=i||1,this.char+=i,this.input=this.input.slice(i)},on:function(names,listener){names.split(" ").forEach(function(name){this.emitter.on(name,listener)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(type,args,checks,fn){checks.push(function(){fn()&&this.trigger(type,args)}.bind(this))},scanPunctuator:function(){var ch2,ch3,ch4,ch1=this.peek();switch(ch1){case".":if(/^[0-9]$/.test(this.peek(1)))return null;if("."===this.peek(1)&&"."===this.peek(2))return{type:Token.Punctuator,value:"..."};case"(":case")":case";":case",":case"[":case"]":case":":case"~":case"?":return{type:Token.Punctuator,value:ch1};case"{":return this.pushContext(Context.Block),{type:Token.Punctuator,value:ch1};case"}":return this.inContext(Context.Block)&&this.popContext(),{type:Token.Punctuator,value:ch1};case"#":return{type:Token.Punctuator,value:ch1};case"":return null}return ch2=this.peek(1),ch3=this.peek(2),ch4=this.peek(3),">"===ch1&&">"===ch2&&">"===ch3&&"="===ch4?{type:Token.Punctuator,value:">>>="}:"="===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"==="}:"!"===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"!=="}:">"===ch1&&">"===ch2&&">"===ch3?{type:Token.Punctuator,value:">>>"}:"<"===ch1&&"<"===ch2&&"="===ch3?{type:Token.Punctuator,value:"<<="}:">"===ch1&&">"===ch2&&"="===ch3?{type:Token.Punctuator,value:">>="}:"="===ch1&&">"===ch2?{type:Token.Punctuator,value:ch1+ch2}:ch1===ch2&&"+-<>&|".indexOf(ch1)>=0?{type:Token.Punctuator,value:ch1+ch2}:"<>=!+-*%&|^".indexOf(ch1)>=0?"="===ch2?{type:Token.Punctuator,value:ch1+ch2}:{type:Token.Punctuator,value:ch1}:"/"===ch1?"="===ch2?{type:Token.Punctuator,value:"/="}:{type:Token.Punctuator,value:"/"}:null},scanComments:function(){function commentToken(label,body,opt){var special=["jshint","jslint","members","member","globals","global","exported"],isSpecial=!1,value=label+body,commentType="plain";return opt=opt||{},opt.isMultiline&&(value+="*/"),body=body.replace(/\\n/g," "),"/*"===label&®.fallsThrough.test(body)&&(isSpecial=!0,commentType="falls through"),special.forEach(function(str){if(!isSpecial&&("//"!==label||"jshint"===str)&&(" "===body.charAt(str.length)&&body.substr(0,str.length)===str&&(isSpecial=!0,label+=str,body=body.substr(str.length)),isSpecial||" "!==body.charAt(0)||" "!==body.charAt(str.length+1)||body.substr(1,str.length)!==str||(isSpecial=!0,label=label+" "+str,body=body.substr(str.length+1)),isSpecial))switch(str){case"member":commentType="members";break;case"global":commentType="globals";break;default:var options=body.split(":").map(function(v){return v.replace(/^\\s+/,"").replace(/\\s+$/,"")});if(2===options.length)switch(options[0]){case"ignore":switch(options[1]){case"start":self.ignoringLinterErrors=!0,isSpecial=!1;break;case"end":self.ignoringLinterErrors=!1,isSpecial=!1}}commentType=str}}),{type:Token.Comment,commentType:commentType,value:value,body:body,isSpecial:isSpecial,isMultiline:opt.isMultiline||!1,isMalformed:opt.isMalformed||!1}}var ch1=this.peek(),ch2=this.peek(1),rest=this.input.substr(2),startLine=this.line,startChar=this.char,self=this;if("*"===ch1&&"/"===ch2)return this.trigger("error",{code:"E018",line:startLine,character:startChar}),this.skip(2),null;if("/"!==ch1||"*"!==ch2&&"/"!==ch2)return null;if("/"===ch2)return this.skip(this.input.length),commentToken("//",rest);var body="";if("*"===ch2){for(this.inComment=!0,this.skip(2);"*"!==this.peek()||"/"!==this.peek(1);)if(""===this.peek()){if(body+="\\n",!this.nextLine())return this.trigger("error",{code:"E017",line:startLine,character:startChar}),this.inComment=!1,commentToken("/*",body,{isMultiline:!0,isMalformed:!0})}else body+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,commentToken("/*",body,{isMultiline:!0})}},scanKeyword:function(){var result=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),keywords=["if","in","do","var","for","new","try","let","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof"];return result&&keywords.indexOf(result[0])>=0?{type:Token.Keyword,value:result[0]}:null},scanIdentifier:function(){function isNonAsciiIdentifierStart(code){return code>256}function isNonAsciiIdentifierPart(code){return code>256}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function removeEscapeSequences(id){return id.replace(/\\\\u([0-9a-fA-F]{4})/g,function(m0,codepoint){return String.fromCharCode(parseInt(codepoint,16))})}var type,char,id="",index=0,readUnicodeEscapeSequence=function(){if(index+=1,"u"!==this.peek(index))return null;var code,ch1=this.peek(index+1),ch2=this.peek(index+2),ch3=this.peek(index+3),ch4=this.peek(index+4);return isHexDigit(ch1)&&isHexDigit(ch2)&&isHexDigit(ch3)&&isHexDigit(ch4)?(code=parseInt(ch1+ch2+ch3+ch4,16),asciiIdentifierPartTable[code]||isNonAsciiIdentifierPart(code)?(index+=5,"\\\\u"+ch1+ch2+ch3+ch4):null):null}.bind(this),getIdentifierStart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierStartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierStart(code)?(index+=1,chr):null}.bind(this),getIdentifierPart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierPartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierPart(code)?(index+=1,chr):null}.bind(this);if(char=getIdentifierStart(),null===char)return null;for(id=char;char=getIdentifierPart(),null!==char;)id+=char;switch(id){case"true":case"false":type=Token.BooleanLiteral;break;case"null":type=Token.NullLiteral;break;default:type=Token.Identifier}return{type:type,value:removeEscapeSequences(id),text:id,tokenLength:id.length}},scanNumericLiteral:function(){function isDecimalDigit(str){return/^[0-9]$/.test(str)}function isOctalDigit(str){return/^[0-7]$/.test(str)}function isBinaryDigit(str){return/^[01]$/.test(str)}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function isIdentifierStart(ch){return"$"===ch||"_"===ch||"\\\\"===ch||ch>="a"&&"z">=ch||ch>="A"&&"Z">=ch}var bad,index=0,value="",length=this.input.length,char=this.peek(index),isAllowedDigit=isDecimalDigit,base=10,isLegacy=!1;if("."!==char&&!isDecimalDigit(char))return null;if("."!==char){for(value=this.peek(index),index+=1,char=this.peek(index),"0"===value&&(("x"===char||"X"===char)&&(isAllowedDigit=isHexDigit,base=16,index+=1,value+=char),("o"===char||"O"===char)&&(isAllowedDigit=isOctalDigit,base=8,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Octal integer literal","6"]}),index+=1,value+=char),("b"===char||"B"===char)&&(isAllowedDigit=isBinaryDigit,base=2,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Binary integer literal","6"]}),index+=1,value+=char),isOctalDigit(char)&&(isAllowedDigit=isOctalDigit,base=8,isLegacy=!0,bad=!1,index+=1,value+=char),!isOctalDigit(char)&&isDecimalDigit(char)&&(index+=1,value+=char));length>index;){if(char=this.peek(index),isLegacy&&isDecimalDigit(char))bad=!0;else if(!isAllowedDigit(char))break;value+=char,index+=1}if(isAllowedDigit!==isDecimalDigit)return!isLegacy&&2>=value.length?{type:Token.NumericLiteral,value:value,isMalformed:!0}:length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isLegacy:isLegacy,isMalformed:!1}}if("."===char)for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1;if("e"===char||"E"===char){if(value+=char,index+=1,char=this.peek(index),("+"===char||"-"===char)&&(value+=this.peek(index),index+=1),char=this.peek(index),!isDecimalDigit(char))return null;for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1}return length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isMalformed:!isFinite(value)}},scanEscapeSequence:function(checks){var allowNewLine=!1,jump=1;this.skip();var char=this.peek();switch(char){case"\'":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\\'"]},checks,function(){return state.jsonMode});break;case"b":char="\\\\b";break;case"f":char="\\\\f";break;case"n":char="\\\\n";break;case"r":char="\\\\r";break;case"t":char="\\\\t";break;case"0":char="\\\\0";var n=parseInt(this.peek(1),10);this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},checks,function(){return n>=0&&7>=n&&state.isStrict()});break;case"u":var hexCode=this.input.substr(1,4),code=parseInt(hexCode,16);isNaN(code)&&this.trigger("warning",{code:"W052",line:this.line,character:this.char,data:["u"+hexCode]}),char=String.fromCharCode(code),jump=5;break;case"v":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\v"]},checks,function(){return state.jsonMode}),char="\v";break;case"x":var x=parseInt(this.input.substr(1,2),16);this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\x-"]},checks,function(){return state.jsonMode}),char=String.fromCharCode(x),jump=3;break;case"\\\\":char="\\\\\\\\";break;case\'"\':char=\'\\\\"\';break;case"/":break;case"":allowNewLine=!0,char=""}return{"char":char,jump:jump,allowNewLine:allowNewLine}},scanTemplateLiteral:function(checks){var tokenType,ch,value="",startLine=this.line,startChar=this.char,depth=this.templateStarts.length;if(!state.inES6(!0))return null;if("`"===this.peek())tokenType=Token.TemplateHead,this.templateStarts.push({line:this.line,"char":this.char}),depth=this.templateStarts.length,this.skip(1),this.pushContext(Context.Template);else{if(!this.inContext(Context.Template)||"}"!==this.peek())return null;tokenType=Token.TemplateMiddle}for(;"`"!==this.peek();){for(;""===(ch=this.peek());)if(value+="\\n",!this.nextLine()){var startPos=this.templateStarts.pop();return this.trigger("error",{code:"E052",line:startPos.line,character:startPos.char}),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,depth:depth,context:this.popContext()}}if("$"===ch&&"{"===this.peek(1))return value+="${",this.skip(2),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.currentContext()};\nif("\\\\"===ch){var escape=this.scanEscapeSequence(checks);value+=escape.char,this.skip(escape.jump)}else"`"!==ch&&(value+=ch,this.skip(1))}return tokenType=tokenType===Token.TemplateHead?Token.NoSubstTemplate:Token.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.popContext()}},scanStringLiteral:function(checks){var quote=this.peek();if(\'"\'!==quote&&"\'"!==quote)return null;this.triggerAsync("warning",{code:"W108",line:this.line,character:this.char},checks,function(){return state.jsonMode&&\'"\'!==quote});var value="",startLine=this.line,startChar=this.char,allowNewLine=!1;for(this.skip();this.peek()!==quote;)if(""===this.peek()){if(allowNewLine?(allowNewLine=!1,this.triggerAsync("warning",{code:"W043",line:this.line,character:this.char},checks,function(){return!state.option.multistr}),this.triggerAsync("warning",{code:"W042",line:this.line,character:this.char},checks,function(){return state.jsonMode&&state.option.multistr})):this.trigger("warning",{code:"W112",line:this.line,character:this.char}),!this.nextLine())return this.trigger("error",{code:"E029",line:startLine,character:startChar}),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,quote:quote}}else{allowNewLine=!1;var char=this.peek(),jump=1;if(" ">char&&this.trigger("warning",{code:"W113",line:this.line,character:this.char,data:["<non-printable>"]}),"\\\\"===char){var parsed=this.scanEscapeSequence(checks);char=parsed.char,jump=parsed.jump,allowNewLine=parsed.allowNewLine}value+=char,this.skip(jump)}return this.skip(),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,quote:quote}},scanRegExp:function(){var terminated,index=0,length=this.input.length,char=this.peek(),value=char,body="",flags=[],malformed=!1,isCharSet=!1,scanUnexpectedChars=function(){" ">char&&(malformed=!0,this.trigger("warning",{code:"W048",line:this.line,character:this.char})),"<"===char&&(malformed=!0,this.trigger("warning",{code:"W049",line:this.line,character:this.char,data:[char]}))}.bind(this);if(!this.prereg||"/"!==char)return null;for(index+=1,terminated=!1;length>index;)if(char=this.peek(index),value+=char,body+=char,isCharSet)"]"===char&&("\\\\"!==this.peek(index-1)||"\\\\"===this.peek(index-2))&&(isCharSet=!1),"\\\\"===char&&(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars()),index+=1;else{if("\\\\"===char){if(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars(),"/"===char){index+=1;continue}if("["===char){index+=1;continue}}if("["!==char){if("/"===char){body=body.substr(0,body.length-1),terminated=!0,index+=1;break}index+=1}else isCharSet=!0,index+=1}if(!terminated)return this.trigger("error",{code:"E015",line:this.line,character:this.from}),void this.trigger("fatal",{line:this.line,from:this.from});for(;length>index&&(char=this.peek(index),/[gim]/.test(char));)flags.push(char),value+=char,index+=1;try{RegExp(body,flags.join(""))}catch(err){malformed=!0,this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[err.message]})}return{type:Token.RegExp,value:value,flags:flags,isMalformed:malformed}},scanNonBreakingSpaces:function(){return state.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(reg.unsafeChars)},next:function(checks){this.from=this.char;var start;if(/\\s/.test(this.peek()))for(start=this.char;/\\s/.test(this.peek());)this.from+=1,this.skip();var match=this.scanComments()||this.scanStringLiteral(checks)||this.scanTemplateLiteral(checks);return match?match:(match=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),match?(this.skip(match.tokenLength||match.value.length),match):null)},nextLine:function(){var char;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var inputTrimmed=this.input.trim(),startsWith=function(){return _.some(arguments,function(prefix){return 0===inputTrimmed.indexOf(prefix)})},endsWith=function(){return _.some(arguments,function(suffix){return-1!==inputTrimmed.indexOf(suffix,inputTrimmed.length-suffix.length)})};if(this.ignoringLinterErrors===!0&&(startsWith("/*","//")||this.inComment&&endsWith("*/")||(this.input="")),char=this.scanNonBreakingSpaces(),char>=0&&this.trigger("warning",{code:"W125",line:this.line,character:char+1}),this.input=this.input.replace(/\\t/g,state.tab),char=this.scanUnsafeChars(),char>=0&&this.trigger("warning",{code:"W100",line:this.line,character:char}),!this.ignoringLinterErrors&&state.option.maxlen&&state.option.maxlen<this.input.length){var inComment=this.inComment||startsWith.call(inputTrimmed,"//")||startsWith.call(inputTrimmed,"/*"),shouldTriggerError=!inComment||!reg.maxlenException.test(inputTrimmed);shouldTriggerError&&this.trigger("warning",{code:"W101",line:this.line,character:this.input.length})}return!0},start:function(){this.nextLine()},token:function(){function isReserved(token,isProperty){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(isProperty)return!1}return!0}for(var token,checks=asyncTrigger(),create=function(type,value,isProperty,token){var obj;if("(endline)"!==type&&"(end)"!==type&&(this.prereg=!1),"(punctuator)"===type){switch(value){case".":case")":case"~":case"#":case"]":case"++":case"--":this.prereg=!1;break;default:this.prereg=!0}obj=Object.create(state.syntax[value]||state.syntax["(error)"])}return"(identifier)"===type&&(("return"===value||"case"===value||"typeof"===value)&&(this.prereg=!0),_.has(state.syntax,value)&&(obj=Object.create(state.syntax[value]||state.syntax["(error)"]),isReserved(obj,isProperty&&"(identifier)"===type)||(obj=null))),obj||(obj=Object.create(state.syntax[type])),obj.identifier="(identifier)"===type,obj.type=obj.type||type,obj.value=value,obj.line=this.line,obj.character=this.char,obj.from=this.from,obj.identifier&&token&&(obj.raw_text=token.text||token.value),token&&token.startLine&&token.startLine!==this.line&&(obj.startLine=token.startLine),token&&token.context&&(obj.context=token.context),token&&token.depth&&(obj.depth=token.depth),token&&token.isUnclosed&&(obj.isUnclosed=token.isUnclosed),isProperty&&obj.identifier&&(obj.isProperty=isProperty),obj.check=checks.check,obj}.bind(this);;){if(!this.input.length)return this.nextLine()?create("(endline)",""):this.exhausted?null:(this.exhausted=!0,create("(end)",""));if(token=this.next(checks))switch(token.type){case Token.StringLiteral:return this.triggerAsync("String",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value,quote:token.quote},checks,function(){return!0}),create("(string)",token.value,null,token);case Token.TemplateHead:return this.trigger("TemplateHead",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value}),create("(template)",token.value,null,token);case Token.TemplateMiddle:return this.trigger("TemplateMiddle",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value}),create("(template middle)",token.value,null,token);case Token.TemplateTail:return this.trigger("TemplateTail",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value}),create("(template tail)",token.value,null,token);case Token.NoSubstTemplate:return this.trigger("NoSubstTemplate",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value}),create("(no subst template)",token.value,null,token);case Token.Identifier:this.triggerAsync("Identifier",{line:this.line,"char":this.char,from:this.form,name:token.value,raw_name:token.text,isProperty:"."===state.tokens.curr.id},checks,function(){return!0});case Token.Keyword:case Token.NullLiteral:case Token.BooleanLiteral:return create("(identifier)",token.value,"."===state.tokens.curr.id,token);case Token.NumericLiteral:return token.isMalformed&&this.trigger("warning",{code:"W045",line:this.line,character:this.char,data:[token.value]}),this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["0x-"]},checks,function(){return 16===token.base&&state.jsonMode}),this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},checks,function(){return state.isStrict()&&8===token.base&&token.isLegacy}),this.trigger("Number",{line:this.line,"char":this.char,from:this.from,value:token.value,base:token.base,isMalformed:token.malformed}),create("(number)",token.value);case Token.RegExp:return create("(regexp)",token.value);case Token.Comment:if(state.tokens.curr.comment=!0,token.isSpecial)return{id:"(comment)",value:token.value,body:token.body,type:token.commentType,isSpecial:token.isSpecial,line:this.line,character:this.char,from:this.from};break;case"":break;default:return create("(punctuator)",token.value)}else this.input.length&&(this.trigger("error",{code:"E024",line:this.line,character:this.char,data:[this.peek()]}),this.input="")}}},exports.Lexer=Lexer,exports.Context=Context},{"../data/ascii-identifier-data.js":"/node_modules/jshint/data/ascii-identifier-data.js","../lodash":"/node_modules/jshint/lodash.js","./reg.js":"/node_modules/jshint/src/reg.js","./state.js":"/node_modules/jshint/src/state.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/messages.js":[function(_dereq_,module,exports){"use strict";var _=_dereq_("../lodash"),errors={E001:"Bad option: \'{a}\'.",E002:"Bad option value.",E003:"Expected a JSON value.",E004:"Input is neither a string nor an array of strings.",E005:"Input is empty.",E006:"Unexpected early end of program.",E007:\'Missing "use strict" statement.\',E008:"Strict violation.",E009:"Option \'validthis\' can\'t be used in a global scope.",E010:"\'with\' is not allowed in strict mode.",E011:"\'{a}\' has already been declared.",E012:"const \'{a}\' is initialized to \'undefined\'.",E013:"Attempting to override \'{a}\' which is a constant.",E014:"A regular expression literal can be confused with \'/=\'.",E015:"Unclosed regular expression.",E016:"Invalid regular expression.",E017:"Unclosed comment.",E018:"Unbegun comment.",E019:"Unmatched \'{a}\'.",E020:"Expected \'{a}\' to match \'{b}\' from line {c} and instead saw \'{d}\'.",E021:"Expected \'{a}\' and instead saw \'{b}\'.",E022:"Line breaking error \'{a}\'.",E023:"Missing \'{a}\'.",E024:"Unexpected \'{a}\'.",E025:"Missing \':\' on a case clause.",E026:"Missing \'}\' to match \'{\' from line {a}.",E027:"Missing \']\' to match \'[\' from line {a}.",E028:"Illegal comma.",E029:"Unclosed string.",E030:"Expected an identifier and instead saw \'{a}\'.",E031:"Bad assignment.",E032:"Expected a small integer or \'false\' and instead saw \'{a}\'.",E033:"Expected an operator and instead saw \'{a}\'.",E034:"get/set are ES5 features.",E035:"Missing property name.",E036:"Expected to see a statement and instead saw a block.",E037:null,E038:null,E039:"Function declarations are not invocable. Wrap the whole function invocation in parens.",E040:"Each value should have its own case label.",E041:"Unrecoverable syntax error.",E042:"Stopping.",E043:"Too many errors.",E044:null,E045:"Invalid for each loop.",E046:"A yield statement shall be within a generator function (with syntax: `function*`)",E047:null,E048:"{a} declaration not directly within block.",E049:"A {a} cannot be named \'{b}\'.",E050:"Mozilla acequires the yield expression to be parenthesized here.",E051:null,E052:"Unclosed template literal.",E053:"Export declaration must be in global scope.",E054:"Class properties must be methods. Expected \'(\' but instead saw \'{a}\'.",E055:"The \'{a}\' option cannot be set after any executable code.",E056:"\'{a}\' was used before it was declared, which is illegal for \'{b}\' variables.",E057:"Invalid meta property: \'{a}.{b}\'.",E058:"Missing semicolon."},warnings={W001:"\'hasOwnProperty\' is a really bad name.",W002:"Value of \'{a}\' may be overwritten in IE 8 and earlier.",W003:"\'{a}\' was used before it was defined.",W004:"\'{a}\' is already defined.",W005:"A dot following a number can be confused with a decimal point.",W006:"Confusing minuses.",W007:"Confusing plusses.",W008:"A leading decimal point can be confused with a dot: \'{a}\'.",W009:"The array literal notation [] is preferable.",W010:"The object literal notation {} is preferable.",W011:null,W012:null,W013:null,W014:"Bad line breaking before \'{a}\'.",W015:null,W016:"Unexpected use of \'{a}\'.",W017:"Bad operand.",W018:"Confusing use of \'{a}\'.",W019:"Use the isNaN function to compare with NaN.",W020:"Read only.",W021:"Reassignment of \'{a}\', which is is a {b}. Use \'var\' or \'let\' to declare bindings that may change.",W022:"Do not assign to the exception parameter.",W023:"Expected an identifier in an assignment and instead saw a function invocation.",W024:"Expected an identifier and instead saw \'{a}\' (a reserved word).",W025:"Missing name in function declaration.",W026:"Inner functions should be listed at the top of the outer function.",W027:"Unreachable \'{a}\' after \'{b}\'.",W028:"Label \'{a}\' on {b} statement.",W030:"Expected an assignment or function call and instead saw an expression.",W031:"Do not use \'new\' for side effects.",W032:"Unnecessary semicolon.",W033:"Missing semicolon.",W034:\'Unnecessary directive "{a}".\',W035:"Empty block.",W036:"Unexpected /*member \'{a}\'.",W037:"\'{a}\' is a statement label.",W038:"\'{a}\' used out of scope.",W039:"\'{a}\' is not allowed.",W040:"Possible strict violation.",W041:"Use \'{a}\' to compare with \'{b}\'.",W042:"Avoid EOL escaping.",W043:"Bad escaping of EOL. Use option multistr if needed.",W044:"Bad or unnecessary escaping.",W045:"Bad number \'{a}\'.",W046:"Don\'t use extra leading zeros \'{a}\'.",W047:"A trailing decimal point can be confused with a dot: \'{a}\'.",W048:"Unexpected control character in regular expression.",W049:"Unexpected escaped character \'{a}\' in regular expression.",W050:"JavaScript URL.",W051:"Variables should not be deleted.",W052:"Unexpected \'{a}\'.",W053:"Do not use {a} as a constructor.",W054:"The Function constructor is a form of eval.",W055:"A constructor name should start with an uppercase letter.",W056:"Bad constructor.",W057:"Weird construction. Is \'new\' necessary?",W058:"Missing \'()\' invoking a constructor.",W059:"Avoid arguments.{a}.",W060:"document.write can be a form of eval.",W061:"eval can be harmful.",W062:"Wrap an immediate function invocation in parens to assist the reader in understanding that the expression is the result of a function, and not the function itself.",W063:"Math is not a function.",W064:"Missing \'new\' prefix when invoking a constructor.",W065:"Missing radix parameter.",W066:"Implied eval. Consider passing a function instead of a string.",W067:"Bad invocation.",W068:"Wrapping non-IIFE function literals in parens is unnecessary.",W069:"[\'{a}\'] is better written in dot notation.",W070:"Extra comma. (it breaks older versions of IE)",W071:"This function has too many statements. ({a})",W072:"This function has too many parameters. ({a})",W073:"Blocks are nested too deeply. ({a})",W074:"This function\'s cyclomatic complexity is too high. ({a})",W075:"Duplicate {a} \'{b}\'.",W076:"Unexpected parameter \'{a}\' in get {b} function.",W077:"Expected a single parameter in set {a} function.",W078:"Setter is defined without getter.",W079:"Redefinition of \'{a}\'.",W080:"It\'s not necessary to initialize \'{a}\' to \'undefined\'.",W081:null,W082:"Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.",W083:"Don\'t make functions within a loop.",W084:"Assignment in conditional expression",W085:"Don\'t use \'with\'.",W086:"Expected a \'break\' statement before \'{a}\'.",W087:"Forgotten \'debugger\' statement?",W088:"Creating global \'for\' variable. Should be \'for (var {a} ...\'.",W089:"The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.",W090:"\'{a}\' is not a statement label.",W091:null,W093:"Did you mean to return a conditional instead of an assignment?",W094:"Unexpected comma.",W095:"Expected a string and instead saw {a}.",W096:"The \'{a}\' key may produce unexpected results.",W097:\'Use the function form of "use strict".\',W098:"\'{a}\' is defined but never used.",W099:null,W100:"This character may get silently deleted by one or more browsers.",W101:"Line is too long.",W102:null,W103:"The \'{a}\' property is deprecated.",W104:"\'{a}\' is available in ES{b} (use \'esversion: {b}\') or Mozilla JS extensions (use moz).",W105:"Unexpected {a} in \'{b}\'.",W106:"Identifier \'{a}\' is not in camel case.",W107:"Script URL.",W108:"Strings must use doublequote.",W109:"Strings must use singlequote.",W110:"Mixed double and single quotes.",W112:"Unclosed string.",W113:"Control character in string: {a}.",W114:"Avoid {a}.",W115:"Octal literals are not allowed in strict mode.",W116:"Expected \'{a}\' and instead saw \'{b}\'.",W117:"\'{a}\' is not defined.",W118:"\'{a}\' is only available in Mozilla JavaScript extensions (use moz option).",W119:"\'{a}\' is only available in ES{b} (use \'esversion: {b}\').",W120:"You might be leaking a variable ({a}) here.",W121:"Extending prototype of native object: \'{a}\'.",W122:"Invalid typeof value \'{a}\'",W123:"\'{a}\' is already defined in outer scope.",W124:"A generator function shall contain a yield statement.",W125:"This line contains non-breaking spaces: http://jshint.com/doc/options/#nonbsp",W126:"Unnecessary grouping operator.",W127:"Unexpected use of a comma operator.",W128:"Empty array elements acequire elision=true.",W129:"\'{a}\' is defined in a future version of JavaScript. Use a different variable name to avoid migration issues.",W130:"Invalid element after rest element.",W131:"Invalid parameter after rest parameter.",W132:"`var` declarations are forbidden. Use `let` or `const` instead.",W133:"Invalid for-{a} loop left-hand-side: {b}.",W134:"The \'{a}\' option is only available when linting ECMAScript {b} code.",W135:"{a} may not be supported by non-browser environments.",W136:"\'{a}\' must be in function scope.",W137:"Empty destructuring.",W138:"Regular parameters should not come after default parameters."},info={I001:"Comma warnings can be turned off with \'laxcomma\'.",I002:null,I003:"ES5 option is now set per default"};exports.errors={},exports.warnings={},exports.info={},_.each(errors,function(desc,code){exports.errors[code]={code:code,desc:desc}}),_.each(warnings,function(desc,code){exports.warnings[code]={code:code,desc:desc}}),_.each(info,function(desc,code){exports.info[code]={code:code,desc:desc}})},{"../lodash":"/node_modules/jshint/lodash.js"}],"/node_modules/jshint/src/name-stack.js":[function(_dereq_,module){"use strict";function NameStack(){this._stack=[]}Object.defineProperty(NameStack.prototype,"length",{get:function(){return this._stack.length}}),NameStack.prototype.push=function(){this._stack.push(null)},NameStack.prototype.pop=function(){this._stack.pop()},NameStack.prototype.set=function(token){this._stack[this.length-1]=token},NameStack.prototype.infer=function(){var type,nameToken=this._stack[this.length-1],prefix="";return nameToken&&"class"!==nameToken.type||(nameToken=this._stack[this.length-2]),nameToken?(type=nameToken.type,"(string)"!==type&&"(number)"!==type&&"(identifier)"!==type&&"default"!==type?"(expression)":(nameToken.accessorType&&(prefix=nameToken.accessorType+" "),prefix+nameToken.value)):"(empty)"},module.exports=NameStack},{}],"/node_modules/jshint/src/options.js":[function(_dereq_,module,exports){"use strict";exports.bool={enforcing:{bitwise:!0,freeze:!0,camelcase:!0,curly:!0,eqeqeq:!0,futurehostile:!0,notypeof:!0,es3:!0,es5:!0,forin:!0,funcscope:!0,immed:!0,iterator:!0,newcap:!0,noarg:!0,nocomma:!0,noempty:!0,nonbsp:!0,nonew:!0,undef:!0,singleGroups:!1,varstmt:!1,enforceall:!1},relaxing:{asi:!0,multistr:!0,debug:!0,boss:!0,evil:!0,globalstrict:!0,plusplus:!0,proto:!0,scripturl:!0,sub:!0,supernew:!0,laxbreak:!0,laxcomma:!0,validthis:!0,withstmt:!0,moz:!0,noyield:!0,eqnull:!0,lastsemic:!0,loopfunc:!0,expr:!0,esnext:!0,elision:!0},environments:{mootools:!0,couch:!0,jasmine:!0,jquery:!0,node:!0,qunit:!0,rhino:!0,shelljs:!0,prototypejs:!0,yui:!0,mocha:!0,module:!0,wsh:!0,worker:!0,nonstandard:!0,browser:!0,browserify:!0,devel:!0,dojo:!0,typed:!0,phantom:!0},obsolete:{onecase:!0,regexp:!0,regexdash:!0}},exports.val={maxlen:!1,indent:!1,maxerr:!1,predef:!1,globals:!1,quotmark:!1,scope:!1,maxstatements:!1,maxdepth:!1,maxparams:!1,maxcomplexity:!1,shadow:!1,strict:!0,unused:!0,latedef:!1,ignore:!1,ignoreDelimiters:!1,esversion:5},exports.inverted={bitwise:!0,forin:!0,newcap:!0,plusplus:!0,regexp:!0,undef:!0,eqeqeq:!0,strict:!0},exports.validNames=Object.keys(exports.val).concat(Object.keys(exports.bool.relaxing)).concat(Object.keys(exports.bool.enforcing)).concat(Object.keys(exports.bool.obsolete)).concat(Object.keys(exports.bool.environments)),exports.renamed={eqeq:"eqeqeq",windows:"wsh",sloppy:"strict"},exports.removed={nomen:!0,onevar:!0,passfail:!0,white:!0,gcl:!0,smarttabs:!0,trailing:!0},exports.noenforceall={varstmt:!0,strict:!0}},{}],"/node_modules/jshint/src/reg.js":[function(_dereq_,module,exports){"use strict";exports.unsafeString=/@cc|<\\/?|script|\\]\\s*\\]|<\\s*!|</i,exports.unsafeChars=/[\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/,exports.needEsc=/[\\u0000-\\u001f&<"\\/\\\\\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/,exports.needEscGlobal=/[\\u0000-\\u001f&<"\\/\\\\\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,exports.starSlash=/\\*\\//,exports.identifier=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,exports.javascriptURL=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i,exports.fallsThrough=/^\\s*falls?\\sthrough\\s*$/,exports.maxlenException=/^(?:(?:\\/\\/|\\/\\*|\\*) ?)?[^ ]+$/},{}],"/node_modules/jshint/src/scope-manager.js":[function(_dereq_,module){"use strict";var _=_dereq_("../lodash"),events=_dereq_("events"),marker={},scopeManager=function(state,predefined,exported,declared){function _newScope(type){_current={"(labels)":Object.create(null),"(usages)":Object.create(null),"(breakLabels)":Object.create(null),"(parent)":_current,"(type)":type,"(params)":"functionparams"===type||"catchparams"===type?[]:null},_scopeStack.push(_current)}function warning(code,token){emitter.emit("warning",{code:code,token:token,data:_.slice(arguments,2)})}function error(code,token){emitter.emit("warning",{code:code,token:token,data:_.slice(arguments,2)})}function _setupUsages(labelName){_current["(usages)"][labelName]||(_current["(usages)"][labelName]={"(modified)":[],"(reassigned)":[],"(tokens)":[]})}function _checkForUnused(){if("functionparams"===_current["(type)"])return _checkParams(),void 0;var curentLabels=_current["(labels)"];for(var labelName in curentLabels)curentLabels[labelName]&&"exception"!==curentLabels[labelName]["(type)"]&&curentLabels[labelName]["(unused)"]&&_warnUnused(labelName,curentLabels[labelName]["(token)"],"var")}function _checkParams(){var params=_current["(params)"];if(params)for(var unused_opt,param=params.pop();param;){var label=_current["(labels)"][param];if(unused_opt=_getUnusedOption(state.funct["(unusedOption)"]),"undefined"===param)return;if(label["(unused)"])_warnUnused(param,label["(token)"],"param",state.funct["(unusedOption)"]);else if("last-param"===unused_opt)return;param=params.pop()}}function _getLabel(labelName){for(var i=_scopeStack.length-1;i>=0;--i){var scopeLabels=_scopeStack[i]["(labels)"];if(scopeLabels[labelName])return scopeLabels}}function usedSoFarInCurrentFunction(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(usages)"][labelName])return current["(usages)"][labelName];if(current===_currentFunctBody)break}return!1}function _checkOuterShadow(labelName,token){if("outer"===state.option.shadow)for(var isGlobal="global"===_currentFunctBody["(type)"],isNewFunction="functionparams"===_current["(type)"],outsideCurrentFunction=!isGlobal,i=0;_scopeStack.length>i;i++){var stackItem=_scopeStack[i];isNewFunction||_scopeStack[i+1]!==_currentFunctBody||(outsideCurrentFunction=!1),outsideCurrentFunction&&stackItem["(labels)"][labelName]&&warning("W123",token,labelName),stackItem["(breakLabels)"][labelName]&&warning("W123",token,labelName)}}function _latedefWarning(type,labelName,token){state.option.latedef&&(state.option.latedef===!0&&"function"===type||"function"!==type)&&warning("W003",token,labelName)}var _current,_scopeStack=[];_newScope("global"),_current["(predefined)"]=predefined;var _currentFunctBody=_current,usedPredefinedAndGlobals=Object.create(null),impliedGlobals=Object.create(null),unuseds=[],emitter=new events.EventEmitter,_getUnusedOption=function(unused_opt){return void 0===unused_opt&&(unused_opt=state.option.unused),unused_opt===!0&&(unused_opt="last-param"),unused_opt},_warnUnused=function(name,tkn,type,unused_opt){var line=tkn.line,chr=tkn.from,raw_name=tkn.raw_text||name;unused_opt=_getUnusedOption(unused_opt);var warnable_types={vars:["var"],"last-param":["var","param"],strict:["var","param","last-param"]};unused_opt&&warnable_types[unused_opt]&&-1!==warnable_types[unused_opt].indexOf(type)&&warning("W098",{line:line,from:chr},raw_name),(unused_opt||"var"===type)&&unuseds.push({name:name,line:line,character:chr})},scopeManagerInst={on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)})},isPredefined:function(labelName){return!this.has(labelName)&&_.has(_scopeStack[0]["(predefined)"],labelName)},stack:function(type){var previousScope=_current;_newScope(type),type||"functionparams"!==previousScope["(type)"]||(_current["(isFuncBody)"]=!0,_current["(context)"]=_currentFunctBody,_currentFunctBody=_current)},unstack:function(){var i,j,subScope=_scopeStack.length>1?_scopeStack[_scopeStack.length-2]:null,isUnstackingFunctionBody=_current===_currentFunctBody,isUnstackingFunctionParams="functionparams"===_current["(type)"],isUnstackingFunctionOuter="functionouter"===_current["(type)"],currentUsages=_current["(usages)"],currentLabels=_current["(labels)"],usedLabelNameList=Object.keys(currentUsages);for(currentUsages.__proto__&&-1===usedLabelNameList.indexOf("__proto__")&&usedLabelNameList.push("__proto__"),i=0;usedLabelNameList.length>i;i++){var usedLabelName=usedLabelNameList[i],usage=currentUsages[usedLabelName],usedLabel=currentLabels[usedLabelName];if(usedLabel){var usedLabelType=usedLabel["(type)"];if(usedLabel["(useOutsideOfScope)"]&&!state.option.funcscope){var usedTokens=usage["(tokens)"];if(usedTokens)for(j=0;usedTokens.length>j;j++)usedLabel["(function)"]===usedTokens[j]["(function)"]&&error("W038",usedTokens[j],usedLabelName)}if(_current["(labels)"][usedLabelName]["(unused)"]=!1,"const"===usedLabelType&&usage["(modified)"])for(j=0;usage["(modified)"].length>j;j++)error("E013",usage["(modified)"][j],usedLabelName);if(("function"===usedLabelType||"class"===usedLabelType)&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)error("W021",usage["(reassigned)"][j],usedLabelName,usedLabelType)}else if(isUnstackingFunctionOuter&&(state.funct["(isCapturing)"]=!0),subScope)if(subScope["(usages)"][usedLabelName]){var subScopeUsage=subScope["(usages)"][usedLabelName];subScopeUsage["(modified)"]=subScopeUsage["(modified)"].concat(usage["(modified)"]),subScopeUsage["(tokens)"]=subScopeUsage["(tokens)"].concat(usage["(tokens)"]),subScopeUsage["(reassigned)"]=subScopeUsage["(reassigned)"].concat(usage["(reassigned)"]),subScopeUsage["(onlyUsedSubFunction)"]=!1}else subScope["(usages)"][usedLabelName]=usage,isUnstackingFunctionBody&&(subScope["(usages)"][usedLabelName]["(onlyUsedSubFunction)"]=!0);else if("boolean"==typeof _current["(predefined)"][usedLabelName]){if(delete declared[usedLabelName],usedPredefinedAndGlobals[usedLabelName]=marker,_current["(predefined)"][usedLabelName]===!1&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)warning("W020",usage["(reassigned)"][j])}else if(usage["(tokens)"])for(j=0;usage["(tokens)"].length>j;j++){var undefinedToken=usage["(tokens)"][j];undefinedToken.forgiveUndef||(state.option.undef&&!undefinedToken.ignoreUndef&&warning("W117",undefinedToken,usedLabelName),impliedGlobals[usedLabelName]?impliedGlobals[usedLabelName].line.push(undefinedToken.line):impliedGlobals[usedLabelName]={name:usedLabelName,line:[undefinedToken.line]})}}if(subScope||Object.keys(declared).forEach(function(labelNotUsed){_warnUnused(labelNotUsed,declared[labelNotUsed],"var")}),subScope&&!isUnstackingFunctionBody&&!isUnstackingFunctionParams&&!isUnstackingFunctionOuter){var labelNames=Object.keys(currentLabels);for(i=0;labelNames.length>i;i++){var defLabelName=labelNames[i];currentLabels[defLabelName]["(blockscoped)"]||"exception"===currentLabels[defLabelName]["(type)"]||this.funct.has(defLabelName,{excludeCurrent:!0})||(subScope["(labels)"][defLabelName]=currentLabels[defLabelName],"global"!==_currentFunctBody["(type)"]&&(subScope["(labels)"][defLabelName]["(useOutsideOfScope)"]=!0),delete currentLabels[defLabelName])}}_checkForUnused(),_scopeStack.pop(),isUnstackingFunctionBody&&(_currentFunctBody=_scopeStack[_.findLastIndex(_scopeStack,function(scope){return scope["(isFuncBody)"]||"global"===scope["(type)"]})]),_current=subScope},addParam:function(labelName,token,type){if(type=type||"param","exception"===type){var previouslyDefinedLabelType=this.funct.labeltype(labelName);previouslyDefinedLabelType&&"exception"!==previouslyDefinedLabelType&&(state.option.node||warning("W002",state.tokens.next,labelName))}if(_.has(_current["(labels)"],labelName)?_current["(labels)"][labelName].duplicated=!0:(_checkOuterShadow(labelName,token,type),_current["(labels)"][labelName]={"(type)":type,"(token)":token,"(unused)":!0},_current["(params)"].push(labelName)),_.has(_current["(usages)"],labelName)){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}},validateParams:function(){if("global"!==_currentFunctBody["(type)"]){var isStrict=state.isStrict(),currentFunctParamScope=_currentFunctBody["(parent)"];currentFunctParamScope["(params)"]&¤tFunctParamScope["(params)"].forEach(function(labelName){var label=currentFunctParamScope["(labels)"][labelName];label&&label.duplicated&&(isStrict?warning("E011",label["(token)"],labelName):state.option.shadow!==!0&&warning("W004",label["(token)"],labelName))})}},getUsedOrDefinedGlobals:function(){var list=Object.keys(usedPredefinedAndGlobals);return usedPredefinedAndGlobals.__proto__===marker&&-1===list.indexOf("__proto__")&&list.push("__proto__"),list},getImpliedGlobals:function(){var values=_.values(impliedGlobals),hasProto=!1;return impliedGlobals.__proto__&&(hasProto=values.some(function(value){return"__proto__"===value.name}),hasProto||values.push(impliedGlobals.__proto__)),values},getUnuseds:function(){return unuseds},has:function(labelName){return Boolean(_getLabel(labelName))},labeltype:function(labelName){var scopeLabels=_getLabel(labelName);return scopeLabels?scopeLabels[labelName]["(type)"]:null},addExported:function(labelName){var globalLabels=_scopeStack[0]["(labels)"];if(_.has(declared,labelName))delete declared[labelName];else if(_.has(globalLabels,labelName))globalLabels[labelName]["(unused)"]=!1;else{for(var i=1;_scopeStack.length>i;i++){var scope=_scopeStack[i];if(scope["(type)"])break;if(_.has(scope["(labels)"],labelName)&&!scope["(labels)"][labelName]["(blockscoped)"])return scope["(labels)"][labelName]["(unused)"]=!1,void 0}exported[labelName]=!0}},setExported:function(labelName,token){this.block.use(labelName,token)\n},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped="let"===type||"const"===type||"class"===type,isexported="global"===(isblockscoped?_current:_currentFunctBody)["(type)"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current["(labels)"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||"global"===_current["(type)"]||(declaredInCurrentScope=!!_currentFunctBody["(parent)"]["(labels)"][labelName]),!declaredInCurrentScope&&_current["(usages)"][labelName]){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}declaredInCurrentScope?warning("E011",token,labelName):"outer"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning("W004",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning("E011",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&"__proto__"!==labelName&&"global"!==_currentFunctBody["(type)"]&&warning("W004",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),"global"===_currentFunctBody["(type)"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current["(labels)"][labelName]&&(!onlyBlockscoped||current["(labels)"][labelName]["(blockscoped)"]))return current["(labels)"][labelName]["(type)"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&"functionparams"===scopeCheck["(type)"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(breakLabels)"][labelName])return!0;if("functionparams"===current["(type)"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!1,"(function)":_currentFunctBody,"(unused)":unused}}},block:{isGlobal:function(){return"global"===_current["(type)"]},use:function(labelName,token){var paramScope=_currentFunctBody["(parent)"];paramScope&¶mScope["(labels)"][labelName]&&"param"===paramScope["(labels)"][labelName]["(type)"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope["(labels)"][labelName]["(unused)"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token["(function)"]=_currentFunctBody,_current["(usages)"][labelName]["(tokens)"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current["(usages)"][labelName]["(reassigned)"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current["(usages)"][labelName]["(modified)"].push(token)},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!0,"(unused)":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning("E011",token,labelName):"outer"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning("W004",token,labelName):_checkOuterShadow(labelName,token)),_current["(breakLabels)"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{"../lodash":"/node_modules/jshint/lodash.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/state.js":[function(_dereq_,module,exports){"use strict";var NameStack=_dereq_("./name-stack.js"),state={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{"./name-stack.js":"/node_modules/jshint/src/name-stack.js"}],"/node_modules/jshint/src/style.js":[function(_dereq_,module,exports){"use strict";exports.register=function(linter){linter.on("Identifier",function(data){linter.getOption("proto")||"__proto__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name,"6"]})}),linter.on("Identifier",function(data){linter.getOption("iterator")||"__iterator__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name]})}),linter.on("Identifier",function(data){linter.getOption("camelcase")&&data.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn("W106",{line:data.line,"char":data.from,data:[data.name]})}),linter.on("String",function(data){var code,quotmark=linter.getOption("quotmark");quotmark&&("single"===quotmark&&"\'"!==data.quote&&(code="W109"),"double"===quotmark&&\'"\'!==data.quote&&(code="W108"),quotmark===!0&&(linter.getCache("quotmark")||linter.setCache("quotmark",data.quote),linter.getCache("quotmark")!==data.quote&&(code="W110")),code&&linter.warn(code,{line:data.line,"char":data.char}))}),linter.on("Number",function(data){"."===data.value.charAt(0)&&linter.warn("W008",{line:data.line,"char":data.char,data:[data.value]}),"."===data.value.substr(data.value.length-1)&&linter.warn("W047",{line:data.line,"char":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn("W046",{line:data.line,"char":data.char,data:[data.value]})}),linter.on("String",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption("scripturl")||re.test(data.value)&&linter.warn("W107",{line:data.line,"char":data.char})})}},{}],"/node_modules/jshint/src/vars.js":[function(_dereq_,module,exports){"use strict";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},["/node_modules/jshint/src/jshint.js"])}),ace.define("ace/mode/javascript_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/javascript/jshint"],function(acequire,exports,module){"use strict";function startRegex(arr){return RegExp("^("+arr.join("|")+")")}var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,lint=acequire("./javascript/jshint").JSHINT,disabledWarningsRe=startRegex(["Bad for in variable \'(.+)\'.",\'Missing "use strict"\']),errorsRe=startRegex(["Unexpected","Expected ","Confusing (plus|minus)","\\\\{a\\\\} unterminated regular expression","Unclosed ","Unmatched ","Unbegun comment","Bad invocation","Missing space after","Missing operator at"]),infoRe=startRegex(["Expected an assignment","Bad escapement of EOL","Unexpected comma","Unexpected space","Missing radix parameter.","A leading decimal point can","\\\\[\'{a}\'\\\\] is better written in dot notation.","\'{a}\' used out of scope"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval("throw 0;"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,"\\n"),!value)return this.sender.emit("annotate",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?"warning":"error";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type="warning";if("Missing semicolon."==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),"error"==maxErrorLevel&&str&&/[\\w\\d{([\'"]/.test(str)?(error.reason=\'Missing ";" before statement\',type="error"):type="info"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type="info":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):"\'{a}\' is not defined."==raw?type="warning":"\'{a}\' is defined but never used."==raw&&(type="info")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit("annotate",errors)}}.call(JavaScriptWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != \'object\'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws="\t\\n\v\\f\\r \\u2028\\u2029\ufeff";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can\'t convert "+o+" to object");return Object(o)}});'},"6da8":function(e,t){function n(e){return e.split("")}e.exports=n},"6eba":function(e,t,n){var i=n("23e7");i({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},"6eeb":function(e,t,n){var i=n("da84"),r=n("9112"),s=n("5135"),a=n("ce4e"),o=n("8925"),c=n("69f3"),l=c.get,u=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,o){var c,l=!!o&&!!o.unsafe,h=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||r(n,"name",t),c=u(n),c.source||(c.source=d.join("string"==typeof t?t:""))),e!==i?(l?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:r(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||o(this)}))},"6f53":function(e,t,n){var i=n("83ab"),r=n("df75"),s=n("fc6a"),a=n("d1e7").f,o=function(e){return function(t){var n,o=s(t),c=r(o),l=c.length,u=0,d=[];while(l>u)n=c[u++],i&&!a.call(o,n)||d.push(e?[n,o[n]]:o[n]);return d}};e.exports={entries:o(!0),values:o(!1)}},7039:function(e,t,n){var i=n("23e7"),r=n("d039"),s=n("057f").f,a=r((function(){return!Object.getOwnPropertyNames(1)}));i({target:"Object",stat:!0,forced:a},{getOwnPropertyNames:s})},7156:function(e,t,n){var i=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var s,a;return r&&"function"==typeof(s=t.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&r(e,a),e}},"720d":function(e,t,n){"use strict";n("bd34")},7269:function(e,t,n){},"72f7":function(e,t,n){"use strict";var i=n("ebb5").exportTypedArrayMethod,r=n("d039"),s=n("da84"),a=s.Uint8Array,o=a&&a.prototype||{},c=[].toString,l=[].join;r((function(){c.call({})}))&&(c=function(){return l.call(this)});var u=o.toString!=c;i("toString",c,u)},"735e":function(e,t,n){"use strict";var i=n("ebb5"),r=n("81d5"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("fill",(function(e){return r.apply(s(this),arguments)}))},"73d9":function(e,t,n){var i=n("44d2");i("flatMap")},"73f5":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("vui-group",[n("vui-group-item",{attrs:{label:"ID:"}},[e._v(e._s(e.active_virus.id))]),n("vui-group-item",{attrs:{label:"Description:"},domProps:{innerHTML:e._s(e.active_virus.description)}}),n("vui-group-item",{attrs:{label:"Notes:"}},[n("view-records-field",{attrs:{editable:(32&e.editable)>0,path:"active_virus.notes"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],domProps:{value:e.$root.$data.state.editingvalue},on:{input:function(t){t.target.composing||e.$set(e.$root.$data.state,"editingvalue",t.target.value)}}})])],1)],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var i=n("428f"),r=n("5135"),s=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||a(t,e,{value:s.f(e)})}},"74e7":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"item"},[n("td",{attrs:{colspan:"2"}},[e._t("default")],2)])},r=[],s={},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"74e8":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),s=n("83ab"),a=n("8aa7"),o=n("ebb5"),c=n("621a"),l=n("19aa"),u=n("5c6c"),d=n("9112"),h=n("50c4"),f=n("0b25"),p=n("182d"),g=n("c04e"),m=n("5135"),v=n("f5df"),b=n("861d"),y=n("7c73"),w=n("d2bb"),_=n("241c").f,x=n("a078"),k=n("b727").forEach,A=n("2626"),C=n("9bf2"),E=n("06cf"),S=n("69f3"),F=n("7156"),$=S.get,T=S.set,L=C.f,D=E.f,B=Math.round,R=r.RangeError,O=c.ArrayBuffer,M=c.DataView,j=o.NATIVE_ARRAY_BUFFER_VIEWS,I=o.TYPED_ARRAY_TAG,P=o.TypedArray,N=o.TypedArrayPrototype,W=o.aTypedArrayConstructor,H=o.isTypedArray,V="BYTES_PER_ELEMENT",U="Wrong length",z=function(e,t){var n=0,i=t.length,r=new(W(e))(i);while(i>n)r[n]=t[n++];return r},G=function(e,t){L(e,t,{get:function(){return $(this)[t]}})},q=function(e){var t;return e instanceof O||"ArrayBuffer"==(t=v(e))||"SharedArrayBuffer"==t},K=function(e,t){return H(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Y=function(e,t){return K(e,t=g(t,!0))?u(2,e[t]):D(e,t)},X=function(e,t,n){return!(K(e,t=g(t,!0))&&b(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?L(e,t,n):(e[t]=n.value,e)};s?(j||(E.f=Y,C.f=X,G(N,"buffer"),G(N,"byteOffset"),G(N,"byteLength"),G(N,"length")),i({target:"Object",stat:!0,forced:!j},{getOwnPropertyDescriptor:Y,defineProperty:X}),e.exports=function(e,t,n){var s=e.match(/\d+$/)[0]/8,o=e+(n?"Clamped":"")+"Array",c="get"+e,u="set"+e,g=r[o],m=g,v=m&&m.prototype,C={},E=function(e,t){var n=$(e);return n.view[c](t*s+n.byteOffset,!0)},S=function(e,t,i){var r=$(e);n&&(i=(i=B(i))<0?0:i>255?255:255&i),r.view[u](t*s+r.byteOffset,i,!0)},D=function(e,t){L(e,t,{get:function(){return E(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};j?a&&(m=t((function(e,t,n,i){return l(e,m,o),F(function(){return b(t)?q(t)?void 0!==i?new g(t,p(n,s),i):void 0!==n?new g(t,p(n,s)):new g(t):H(t)?z(m,t):x.call(m,t):new g(f(t))}(),e,m)})),w&&w(m,P),k(_(g),(function(e){e in m||d(m,e,g[e])})),m.prototype=v):(m=t((function(e,t,n,i){l(e,m,o);var r,a,c,u=0,d=0;if(b(t)){if(!q(t))return H(t)?z(m,t):x.call(m,t);r=t,d=p(n,s);var g=t.byteLength;if(void 0===i){if(g%s)throw R(U);if(a=g-d,a<0)throw R(U)}else if(a=h(i)*s,a+d>g)throw R(U);c=a/s}else c=f(t),a=c*s,r=new O(a);T(e,{buffer:r,byteOffset:d,byteLength:a,length:c,view:new M(r)});while(u<c)D(e,u++)})),w&&w(m,P),v=m.prototype=y(N)),v.constructor!==m&&d(v,"constructor",m),I&&d(v,I,o),C[o]=m,i({global:!0,forced:m!=g,sham:!j},C),V in m||d(m,V,s),V in v||d(v,V,s),A(o)}):e.exports=function(){}},7559:function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function i(e){return e.match(n)||[]}e.exports=i},"75f7":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("h3",[e._v("Overview")]),n("vui-group",[n("vui-group-item",{attrs:{label:"Cell Charge:"}},[n("vui-progress",{class:e.progressClass(e.charge),attrs:{value:e.charge}},[e._v(e._s(e.charge)+"%")])],1),n("vui-group-item",{attrs:{label:"Field Status:"}},[e._v(e._s(e.active?"Active":"Disabled"))]),n("vui-group-item",{attrs:{label:"Toggle Field:"}},[n("vui-button",{attrs:{disabled:e.locked||!e.anchored,params:{togglefield:1}}},[e._v(e._s(e.locked?"Toggle Field (Locked)":e.anchored?"Toggle Field":"Toggle Field (Unanchored)"))])],1)],1)],1),n("div",[n("h3",[e._v("Field Types:")]),e._l(e.fieldtypes,(function(t,i){return n("div",{key:i},[n("vui-button",{class:{button:1,selected:e.fieldtype==i},attrs:{params:{fieldtype:i}}},[e._v(e._s(t))])],1)}))],2),n("footer",[e._v("Always wear safety gear and consult a field manual before operation.")])])},r=[],s={data:function(){return this.$root.$data.state},methods:{progressClass:function(e){return e<=50?"bad":e<=90?"average":"good"}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"76a2":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.has_linked_pad?n("div",[n("h3",[e._v("Linked Pad Info")]),n("span",{class:e.selected_target?"good":"bad"},[e._v(e._s(e.selected_target?"Locked In ":"Not Locked In "))]),n("span",{class:e.selected_target?"good":"bad"},[e._v("("+e._s(e.selected_target_name)+")")]),n("br"),n("span",[e._v("Calibration: "+e._s(e.calibration)+"%")]),e._v(" "),n("vui-button",{attrs:{params:{recalibrate:1}}},[e._v("Recalibrate")]),n("h3",[e._v("Teleporter Beacons")]),n("table",{staticClass:"table border"},[e._m(0),e._l(e.teleport_beacons,(function(t){return n("tr",{key:t.ref,staticClass:"item border"},[n("td",[e._v(e._s(t.beacon_name))]),n("td",[n("vui-button",{class:{danger:e.selected_target==t.ref},attrs:{params:{beacon:t.ref,name:t.beacon_name}}},[e._v(e._s(e.selected_target==t.ref?"Unset":"Lock On"))])],1)])}))],2),n("h3",[e._v("Tracking Implants")]),n("table",{staticClass:"table border"},[e._m(1),e._l(e.teleport_implants,(function(t){return n("tr",{key:t.ref,staticClass:"item border"},[n("td",[e._v(e._s(t.implant_name))]),n("td",[n("vui-button",{class:{danger:e.selected_target==t.ref},attrs:{params:{implant:t.ref,name:t.implant_name}}},[e._v(e._s(e.selected_target==t.ref?"Unset":"Lock On"))])],1)])}))],2)],1):n("div",[n("h3",[e._v("Nearby Teleportation Pads")]),n("table",{staticClass:"table border"},[e._m(2),e._l(e.nearby_pads,(function(t){return n("tr",{key:t.ref,staticClass:"item border"},[n("td",[e._v(e._s(t.pad_name))]),n("td",[n("vui-button",{attrs:{params:{pad:t.ref}}},[e._v("Link")])],1)])}))],2)])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("Beacon Name")]),n("th",[e._v("Action")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("Implant Name")]),n("th",[e._v("Action")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("Name")]),n("th",[e._v("Action")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=(n("4489"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"2ab5289b",null);t["default"]=c.exports},"76dd":function(e,t,n){var i=n("ce86");function r(e){return null==e?"":i(e)}e.exports=r},"77a7":function(e,t){var n=1/0,i=Math.abs,r=Math.pow,s=Math.floor,a=Math.log,o=Math.LN2,c=function(e,t,c){var l,u,d,h=new Array(c),f=8*c-t-1,p=(1<<f)-1,g=p>>1,m=23===t?r(2,-24)-r(2,-77):0,v=e<0||0===e&&1/e<0?1:0,b=0;for(e=i(e),e!=e||e===n?(u=e!=e?1:0,l=p):(l=s(a(e)/o),e*(d=r(2,-l))<1&&(l--,d*=2),e+=l+g>=1?m/d:m*r(2,1-g),e*d>=2&&(l++,d/=2),l+g>=p?(u=0,l=p):l+g>=1?(u=(e*d-1)*r(2,t),l+=g):(u=e*r(2,g-1)*r(2,t),l=0));t>=8;h[b++]=255&u,u/=256,t-=8);for(l=l<<t|u,f+=t;f>0;h[b++]=255&l,l/=256,f-=8);return h[--b]|=128*v,h},l=function(e,t){var i,s=e.length,a=8*s-t-1,o=(1<<a)-1,c=o>>1,l=a-7,u=s-1,d=e[u--],h=127&d;for(d>>=7;l>0;h=256*h+e[u],u--,l-=8);for(i=h&(1<<-l)-1,h>>=-l,l+=t;l>0;i=256*i+e[u],u--,l-=8);if(0===h)h=1-c;else{if(h===o)return i?NaN:d?-n:n;i+=r(2,t),h-=c}return(d?-1:1)*i*r(2,h-t)};e.exports={pack:c,unpack:l}},"77f3":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("vui-group",[n("vui-group-row",[n("h3",[e._v("Pump Status")])]),n("vui-group-item",{attrs:{label:"Tank Pressure:"}},[e._v(" "+e._s(e.tankPressure)+" kPa ")]),n("vui-group-item",{attrs:{label:"Port Status:"}},[n("span",{class:e.portConnected?"good":"average"},[e._v(e._s(e.portConnected?"Connected":"Disconnected"))])]),n("vui-group-item",{attrs:{label:"Load:"}},[e._v(" "+e._s(e.powerDraw)+" W ")]),n("vui-group-item",{attrs:{label:"Cell Charge:"}},[n("vui-progress",{attrs:{value:e.cellCharge,min:0,max:e.cellMaxCharge}})],1),n("vui-group-row",[n("h3",[e._v("Holding Tank Status")])]),e.hasHoldingTank?n("vui-group-item",{attrs:{label:"Tank Label:"}},[e._v(" "+e._s(e.holdingTank.name)+" "),n("vui-button",{attrs:{icon:"eject",params:{remove_tank:1}}},[e._v("Eject")])],1):e._e(),e.hasHoldingTank?n("vui-group-item",{attrs:{label:"Tank Pressure:"}},[e._v(e._s(e.holdingTank.tankPressure)+" kPa")]):n("vui-group-row",[n("span",{staticClass:"average"},[n("i",[e._v("No holding tank inserted.")])])]),n("vui-group-row",[n("h3",[e._v("Power Regulator Status")])]),n("vui-group-item",{attrs:{label:"Target Pressure:"}},[n("vui-progress",{attrs:{value:e.targetpressure,min:e.minpressure,max:e.maxpressure}}),n("div",{staticStyle:{float:"left",clear:"both","padding-top":"4px","text-align":"center"}},[n("vui-input-numeric",{attrs:{min:e.minpressure,max:e.maxpressure,"min-button":"","max-button":"",width:"4em","button-count":0},on:{input:function(t){return e.s({pressure_set:e.targetpressure})}},model:{value:e.targetpressure,callback:function(t){e.targetpressure=t},expression:"targetpressure"}})],1)],1),n("vui-group-item",{attrs:{label:"Power Switch:"}},[n("vui-button",{class:{selected:e.on},attrs:{icon:e.on?"power-off":"times",params:{power:1}}},[e._v(e._s(e.on?"On":"Off"))])],1),n("vui-group-item",{attrs:{label:"Pump Direction:"}},[n("vui-button",{attrs:{icon:"share",flip:e.pump_dir?"horizontal":"",params:{direction:1}}},[e._v(e._s(e.pump_dir?"Out":"In"))])],1)],1)},r=[],s=n("025e"),a={data:function(){return this.$root.$data.state},methods:{s:function(e){s["a"].sendToTopic(e)}}},o=a,c=(n("c7ef"),n("2877")),l=Object(c["a"])(o,i,r,!1,null,"0cce4ea8",null);t["default"]=l.exports},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7898:function(e,t,n){var i=n("23e7"),r=n("8eb5"),s=Math.exp;i({target:"Math",stat:!0},{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(s(e)+s(-e))}})},7938:function(e,t,n){},7948:function(e,t){function n(e,t){var n=-1,i=null==e?0:e.length,r=Array(i);while(++n<i)r[n]=t(e[n],n,e);return r}e.exports=n},"79a8":function(e,t,n){var i=n("23e7"),r=Math.asinh,s=Math.log,a=Math.sqrt;function o(e){return isFinite(e=+e)&&0!=e?e<0?-o(-e):s(e+a(e*e+1)):e}i({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:o})},"7a67":function(e,t,n){"use strict";n("7269")},"7a82":function(e,t,n){var i=n("23e7"),r=n("83ab"),s=n("9bf2");i({target:"Object",stat:!0,forced:!r,sham:!r},{defineProperty:s.f})},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,n){var i,r=n("825a"),s=n("37e8"),a=n("7839"),o=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),d=">",h="<",f="prototype",p="script",g=u("IE_PROTO"),m=function(){},v=function(e){return h+p+d+e+h+"/"+p+d},b=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=l("iframe"),n="java"+p+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},w=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=i?b(i):y();var e=a.length;while(e--)delete w[f][a[e]];return w()};o[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=r(e),n=new m,m[f]=null,n[g]=e):n=w(),void 0===t?n:s(n,t)}},"7c9e":function(e,t,n){var i=n("061c");e.exports={render:function(e){var t=this.height?this.px(this.height):"100%",n=this.width?this.px(this.width):"100%";return e("div",{attrs:{style:"height: "+t+"; width: "+n}})},props:{value:String,lang:!0,theme:String,height:!0,width:!0,options:Object},data:function(){return{editor:null,contentBackup:""}},methods:{px:function(e){return/^\d*$/.test(e)?e+"px":e}},watch:{value:function(e){this.contentBackup!==e&&(this.editor.session.setValue(e,1),this.contentBackup=e)},theme:function(e){this.editor.setTheme("ace/theme/"+e)},lang:function(e){this.editor.getSession().setMode("string"===typeof e?"ace/mode/"+e:e)},options:function(e){this.editor.setOptions(e)},height:function(){this.$nextTick((function(){this.editor.resize()}))},width:function(){this.$nextTick((function(){this.editor.resize()}))}},beforeDestroy:function(){this.editor.destroy(),this.editor.container.remove()},mounted:function(){var e=this,t=this.lang||"text",r=this.theme||"chrome";n("b378");var s=e.editor=i.edit(this.$el);s.$blockScrolling=1/0,this.$emit("init",s),s.getSession().setMode("string"===typeof t?"ace/mode/"+t:t),s.setTheme("ace/theme/"+r),this.value&&s.setValue(this.value,1),this.contentBackup=this.value,s.on("change",(function(){var t=s.getValue();e.$emit("input",t),e.contentBackup=t})),e.options&&s.setOptions(e.options)}}},"7db0":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").find,s=n("44d2"),a=n("ae40"),o="find",c=!0,l=a(o);o in[]&&Array(1)[o]((function(){c=!1})),i({target:"Array",proto:!0,forced:c||!l},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),s(o)},"7dc4":function(e,t,n){"use strict";n("592e")},"7dc7":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[0==e.s.mode||0==e.s.sel_price?[n("div",{staticClass:"cancel-button"},[n("vui-input-search",{attrs:{input:e.products,keys:["name"],autofocus:"",threshold:e.threshold},model:{value:e.output,callback:function(t){e.output=t},expression:"output"}}),n("vui-button",{attrs:{disabled:!e.s.coin,params:{remove_coin:1},icon:"sign-out-alt"}},[e._v(e._s(e.s.coin?e.s.coin:"No coin inserted."))])],1),n("div",{staticClass:"t-parent"},e._l(e.output,(function(t){return n("vui-button",{key:t.key,staticClass:"t-child tooltip",class:t.amount>0?"":"no-stock",attrs:{disabled:0==t.amount||1==e.s.mode,params:{vendItem:t.key}}},[n("div",{staticClass:"t-container",style:{height:e.s.ui_size+"px",width:e.s.ui_size+"px"}},[n("span",{staticClass:"food-icon",class:[t.amount>0?"":"no-stock",t.icon_tag]}),t.price>0?n("span",{staticClass:"cart-icon fas ic-shopping-cart"}):e._e(),t.price>0?n("span",{staticClass:"price"},[e._v(e._s(t.price)+"电")]):e._e(),n("span",{staticClass:"qty",class:t.amount>0?"":"no-stock"},[e._v("(x"+e._s(t.amount)+")")])]),n("span",{staticClass:"tooltiptext"},[e._v(e._s(t.name))])])})),1)]:e.s.sel_name&&e.s.sel_price>0?[n("div",{staticClass:"t-parent"},[n("p",[e._v("Item selected:"),n("span",{staticClass:"purchase-icon",class:e.s.sel_icon}),e._v(e._s(e.s.sel_name))]),n("p",[e._v("Charge: "+e._s(e.s.sel_price)+"电 / "+e._s(e.s.sel_price)+"cr")]),n("p",[e._v("Swipe your NanoTrasen ID or insert credits to purchase.")]),1==e.s.message_err?n("p",{staticClass:"danger"},[e._v(e._s(e.s.message))]):e._e(),n("div",{staticClass:"cancel-button"},[n("vui-button",{attrs:{params:{cancelpurchase:1},icon:"undo"}},[e._v("Cancel Transaction")])],1)])]:[n("vui-button",{staticClass:"cancel-button danger",attrs:{params:{reset:1},icon:"undo"}},[e._v("Reset Machine")])]],2)},r=[],s=(n("07ac"),{data:function(){return{s:this.$root.$data.state,output:[],threshold:.3}},computed:{products:function(){return Object.values(this.s.products)}}}),a=s,o=(n("fe33"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"2633030c",null);t["default"]=c.exports},"7dd0":function(e,t,n){"use strict";var i=n("23e7"),r=n("9ed3"),s=n("e163"),a=n("d2bb"),o=n("d44e"),c=n("9112"),l=n("6eeb"),u=n("b622"),d=n("c430"),h=n("3f8c"),f=n("ae93"),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,n,u,f,_,x){r(n,t,u);var k,A,C,E=function(e){if(e===f&&L)return L;if(!g&&e in $)return $[e];switch(e){case v:return function(){return new n(this,e)};case b:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},S=t+" Iterator",F=!1,$=e.prototype,T=$[m]||$["@@iterator"]||f&&$[f],L=!g&&T||E(f),D="Array"==t&&$.entries||T;if(D&&(k=s(D.call(new e)),p!==Object.prototype&&k.next&&(d||s(k)===p||(a?a(k,p):"function"!=typeof k[m]&&c(k,m,w)),o(k,S,!0,!0),d&&(h[S]=w))),f==b&&T&&T.name!==b&&(F=!0,L=function(){return T.call(this)}),d&&!x||$[m]===L||c($,m,L),h[t]=L,f)if(A={values:E(b),keys:_?L:E(v),entries:E(y)},x)for(C in A)(g||F||!(C in $))&&l($,C,A[C]);else i({target:t,proto:!0,forced:g||F},A);return A}},"7e12":function(e,t,n){var i=n("da84"),r=n("58a8").trim,s=n("5899"),a=i.parseFloat,o=1/a(s+"-0")!==-1/0;e.exports=o?function(e){var t=r(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},"7e8e":function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function i(e){return n.test(e)}e.exports=i},"7ed3":function(e,t,n){var i=n("23e7"),r=n("825a"),s=n("861d"),a=n("5135"),o=n("d039"),c=n("9bf2"),l=n("06cf"),u=n("e163"),d=n("5c6c");function h(e,t,n){var i,o,f=arguments.length<4?e:arguments[3],p=l.f(r(e),t);if(!p){if(s(o=u(e)))return h(o,t,n,f);p=d(0)}if(a(p,"value")){if(!1===p.writable||!s(f))return!1;if(i=l.f(f,t)){if(i.get||i.set||!1===i.writable)return!1;i.value=n,c.f(f,t,i)}else c.f(f,t,d(0,n));return!0}return void 0!==p.set&&(p.set.call(f,n),!0)}var f=o((function(){var e=function(){},t=c.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}));i({target:"Reflect",stat:!0,forced:f},{set:h})},"7f78":function(e,t,n){var i=n("23e7"),r=n("825a"),s=n("e163"),a=n("e177");i({target:"Reflect",stat:!0,sham:!a},{getPrototypeOf:function(e){return s(r(e))}})},"7f9a":function(e,t,n){var i=n("da84"),r=n("8925"),s=i.WeakMap;e.exports="function"===typeof s&&/native code/.test(r(s))},"80e0":function(e,t,n){var i=n("746f");i("replace")},8103:function(e,t,n){var i=n("d194"),r=i("toUpperCase");e.exports=r},"810a":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("img",{attrs:{src:e.source},on:{error:function(t){return e.failedToLoad()}}})},r=[],s=(n("99af"),n("b0c0"),n("a9e3"),n("4795"),{props:{name:{type:String,default:""},maxTries:{type:Number,default:10}},computed:{sourceBuster:function(){return this.failsToLoad&&this.failsToLoad<this.maxTries?"?t="+this.failsToLoad:""},source:function(){return"vueuiimg_"+this.$root.$data.assets[this.name].ref+this.sourceBuster+".png"}},data:function(){return{failsToLoad:0}},methods:{failedToLoad:function(){var e=this;setTimeout((function(){e.failsToLoad++,e.failsToLoad<e.maxTries&&console.error("Image ".concat(e.name," failed to load ").concat(e.failsToLoad," times. Please double check have you actually sent it to the client."))}),300)}}}),a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"814e":function(e,t,n){},8172:function(e,t,n){var i=n("746f");i("toPrimitive")},"81b8":function(e,t,n){var i=n("746f");i("unscopables")},"81d5":function(e,t,n){"use strict";var i=n("7b0b"),r=n("23cb"),s=n("50c4");e.exports=function(e){var t=i(this),n=s(t.length),a=arguments.length,o=r(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,l=void 0===c?n:r(c,n);while(l>o)t[o++]=e;return t}},"820e":function(e,t,n){"use strict";var i=n("23e7"),r=n("1c0b"),s=n("f069"),a=n("e667"),o=n("2266");i({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=s.f(t),i=n.resolve,c=n.reject,l=a((function(){var n=r(t.resolve),s=[],a=0,c=1;o(e,(function(e){var r=a++,o=!1;s.push(void 0),c++,n.call(t,e).then((function(e){o||(o=!0,s[r]={status:"fulfilled",value:e},--c||i(s))}),(function(e){o||(o=!0,s[r]={status:"rejected",reason:e},--c||i(s))}))})),--c||i(s)}));return l.error&&c(l.value),n.promise}})},"825a":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"82da":function(e,t,n){var i=n("23e7"),r=n("ebb5"),s=r.NATIVE_ARRAY_BUFFER_VIEWS;i({target:"ArrayBuffer",stat:!0,forced:!s},{isView:r.isView})},"82f8":function(e,t,n){"use strict";var i=n("ebb5"),r=n("4d64").includes,s=i.aTypedArray,a=i.exportTypedArrayMethod;a("includes",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},8385:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-input-search",{attrs:{input:e.records,keys:["id","name","rank"]},model:{value:e.filtered,callback:function(t){e.filtered=t},expression:"filtered"}}),e._l(e.filtered,(function(t){return n("div",{key:t.id},[n("vui-button",{attrs:{params:{setactive_virus:t.id},"push-state":""},on:{click:function(t){e.activeview=e.defaultview}}},[e._v(e._s(t.id)+": "+e._s(t.name))])],1)}))],2)},r=[],s=(n("07ac"),{data:function(){return{state:this.$root.$data.state,filtered:[]}},computed:{records:function(){return Object.values(this.state.record_viruses)}}}),a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var i=n("c04e"),r=n("9bf2"),s=n("5c6c");e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,s(0,n)):e[a]=n}},"841c":function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),s=n("1d80"),a=n("129f"),o=n("14c3");i("search",1,(function(e,t,n){return[function(t){var n=s(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var s=r(e),c=String(this),l=s.lastIndex;a(l,0)||(s.lastIndex=0);var u=o(s,c);return a(s.lastIndex,l)||(s.lastIndex=l),null===u?-1:u.index}]}))},"843c":function(e,t,n){"use strict";var i=n("23e7"),r=n("0ccb").end,s=n("9a0c");i({target:"String",proto:!0,forced:s},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"84c3":function(e,t,n){var i=n("74e8");i("Uint16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"857a":function(e,t,n){var i=n("1d80"),r=/"/g;e.exports=function(e,t,n,s){var a=String(i(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+String(s).replace(r,""")+'"'),o+">"+a+"</"+t+">"}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"865d":function(e,t,n){},"86ad":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Sensor Data:")]),e.state.sensors.length<=0?n("span",[e._v("No sensors connected.")]):e._l(e.state.sensors,(function(t,i){return n("div",{key:i},[n("b",[e._v(e._s(t.name))]),n("br"),t.pressure?n("vui-item",{attrs:{label:"Pressure:"}},[e._v(e._s(t.pressure)+" kPa")]):e._e(),t.temperature?n("vui-item",{attrs:{label:"Temperature:"}},[e._v(e._s(t.temperature)+" K")]):e._e(),t.oxygen||t.hydrogen||t.phoron||t.nitrogen||t.carbon_dioxide?n("vui-item",{attrs:{label:"Gas Composition:"}},[t.oxygen?n("span",{staticClass:"complist"},[e._v(e._s(t.oxygen)+"% O"),n("sub",[e._v("2")])]):e._e(),t.nitrogen?n("span",{staticClass:"complist"},[e._v(e._s(t.nitrogen)+"% N")]):e._e(),t.carbon_dioxide?n("span",{staticClass:"complist"},[e._v(e._s(t.carbon_dioxide)+"% CO"),n("sub",[e._v("2"),n("sub")])]):e._e(),t.phoron?n("span",{staticClass:"complist"},[e._v(e._s(t.phoron)+"% PH")]):e._e(),t.hydrogen?n("span",{staticClass:"complist"},[e._v(e._s(t.hydrogen)+"% H"),n("sub",[e._v("2")])]):e._e()]):e._e()],1)})),e.state.control?n("view-console-atmocontrol-"+e.state.control,{tag:"component"}):e._e()],2)},r=[],s={data:function(){return this.$root.$data}},a=s,o=(n("0bc7"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"03bdf54d",null);t["default"]=c.exports},"86eb":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.forumuserui_enabled?n("div",{staticClass:"notice"},[n("center",[e._v("Modifications done do not outlast the round! Use the forums/WI to modify ranks.")])],1):e._e(),n("table",[n("tr",[n("th",[e._v("Ckey "),n("vui-button",{attrs:{params:{action:"add"}}},[e._v("Add")])],1),n("th",[e._v("Rank")]),n("th",[e._v("Permissions")])]),e._l(e.admins,(function(t){return n("tr",{key:t.ckey},[n("td",[n("vui-button",{attrs:{params:{action:"remove",ckey:t.ckey}}},[e._v("Edit")]),e._v(" "+e._s(t.ckey)+" ")],1),n("td",[n("vui-button",{attrs:{params:{action:"rank",ckey:t.ckey}}},[e._v("Edit")]),e._v(" "+e._s(t.rank)+" ")],1),n("td",[n("vui-button",{attrs:{params:{action:"rights",ckey:t.ckey}}},[e._v("Edit")]),e._v(" "+e._s(t.rights)+" ")],1)])}))],2)])},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},8795:function(e,t,n){"use strict";n("8efc")},8925:function(e,t,n){var i=n("c6cd"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},8928:function(e,t,n){"use strict";n("c6c8")},"892c":function(e,t,n){"use strict";n("1f5a")},"8a59":function(e,t,n){var i=n("74e8");i("Uint8",(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},"8a79":function(e,t,n){"use strict";var i=n("23e7"),r=n("06cf").f,s=n("50c4"),a=n("5a34"),o=n("1d80"),c=n("ab13"),l=n("c430"),u="".endsWith,d=Math.min,h=c("endsWith"),f=!l&&!h&&!!function(){var e=r(String.prototype,"endsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!f&&!h},{endsWith:function(e){var t=String(o(this));a(e);var n=arguments.length>1?arguments[1]:void 0,i=s(t.length),r=void 0===n?i:d(s(n),i),c=String(e);return u?u.call(t,c,r):t.slice(r-c.length,r)===c}})},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8aa7":function(e,t,n){var i=n("da84"),r=n("d039"),s=n("1c7e"),a=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,o=i.ArrayBuffer,c=i.Int8Array;e.exports=!a||!r((function(){c(1)}))||!r((function(){new c(-1)}))||!s((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||r((function(){return 1!==new c(new o(2),1,void 0).length}))},"8b09":function(e,t,n){var i=n("74e8");i("Int16",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"8b1f":function(e,t,n){"use strict";n("a5e6")},"8b9a":function(e,t,n){var i=n("23e7"),r=n("825a"),s=n("3bbe"),a=n("d2bb");a&&i({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){r(e),s(t);try{return a(e,t),!0}catch(n){return!1}}})},"8ba4":function(e,t,n){var i=n("23e7"),r=n("5e89");i({target:"Number",stat:!0},{isInteger:r})},"8eb5":function(e,t){var n=Math.expm1,i=Math.exp;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:i(e)-1}:n},"8edd":function(e,t,n){var i=n("746f");i("matchAll")},"8efc":function(e,t,n){},"90d7":function(e,t,n){var i=n("23e7"),r=Math.log,s=Math.LN2;i({target:"Math",stat:!0},{log2:function(e){return r(e)/s}})},"90e3":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),s=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},9129:function(e,t,n){var i=n("23e7");i({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},9263:function(e,t,n){"use strict";var i=n("ad6d"),r=n("9f7f"),s=RegExp.prototype.exec,a=String.prototype.replace,o=s,c=function(){var e=/a/,t=/b*/g;return s.call(e,"a"),s.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),l=r.UNSUPPORTED_Y||r.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=c||u||l;d&&(o=function(e){var t,n,r,o,d=this,h=l&&d.sticky,f=i.call(d),p=d.source,g=0,m=e;return h&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),m=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,g++),n=new RegExp("^(?:"+p+")",f)),u&&(n=new RegExp("^"+p+"$(?!\\s)",f)),c&&(t=d.lastIndex),r=s.call(h?n:d,m),h?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=d.lastIndex,d.lastIndex+=r[0].length):d.lastIndex=0:c&&r&&(d.lastIndex=d.global?r.index+r[0].length:t),u&&r&&r.length>1&&a.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=o},9324:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",[e._v("Please configure your pAI personality's options. Remember, what you enter here could determine whether or not the user requesting a personality chooses you!")]),n("vui-group",[n("vui-group-item",{attrs:{label:"Name:"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],attrs:{type:"text"},domProps:{value:e.name},on:{input:function(t){t.target.composing||(e.name=t.target.value)}}}),n("p",[e._v(" What you plan to call yourself. Suggestions: Any character name you would choose for a station character OR an AI. ")])]),n("vui-group-item",{attrs:{label:"Description:"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.description,expression:"description"}],domProps:{value:e.description},on:{input:function(t){t.target.composing||(e.description=t.target.value)}}}),e._v(" "),n("p",[e._v(" What sort of pAI you typically play; your mannerisms, your quirks, etc. This can be as sparse or as detailed as you like. ")])]),n("vui-group-item",{attrs:{label:"Preferred Role:"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.role,expression:"role"}],attrs:{type:"text"},domProps:{value:e.role},on:{input:function(t){t.target.composing||(e.role=t.target.value)}}}),n("p",[e._v(" Do you like to partner with sneaky social ninjas? Like to help security hunt down thugs? Enjoy watching an engineer's back while he saves the station yet again? This doesn't have to be limited to just station jobs. Pretty much any general descriptor for what you'd like to be doing works here. ")])]),n("vui-group-item",{attrs:{label:"OOC Comments:"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.comments,expression:"comments"}],domProps:{value:e.comments},on:{input:function(t){t.target.composing||(e.comments=t.target.value)}}}),e._v(' Anything you\'d like to address specifically to the player reading this in an OOC manner. "I prefer more serious RP.", "I\'m still learning the interface!", etc. Feel free to leave this blank if you want. ')])],1),n("vui-button",{attrs:{disabled:!e.canSubmit,params:{submit_candidate:{name:e.name,description:e.description,role:e.role,comments:e.comments}}}},[e._v("Submit Personality")])],1)},r=[],s=(n("b0c0"),{data:function(){return this.$root.$data.state},computed:{canSubmit:function(){return String(this.name).length>0}}}),a=s,o=(n("af89"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"c4dbe0aa",null);t["default"]=c.exports},9334:function(e,t,n){"use strict";n("865d")},"93dc":function(e,t,n){"use strict";n("6234")},"93f8":function(e,t,n){},"944a":function(e,t,n){var i=n("746f");i("toStringTag")},"94ca":function(e,t,n){var i=n("d039"),r=/#|\.prototype\./,s=function(e,t){var n=o[a(e)];return n==l||n!=c&&("function"==typeof t?i(t):!!t)},a=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},o=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},9513:function(e,t,n){},9556:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabel"},[e._v("Confirm identity:")]),n("div",{staticClass:"itemContent"},[n("vui-button",{attrs:{params:{scan:1},icon:"eject"}},[e.state.idname?n("span",[e._v(e._s(e.state.idname))]):n("span",[e._v("--------")])])],1)]),e.state.auth?n("div",{staticStyle:{"margin-top":"24px",clear:"both"}},[n("b",[e._v("Logged in to:")]),e._v(" "+e._s(e.state.bossname)+" Quantum Entanglement Network "),e.remaining_cooldown<=0?[n("vui-item",{attrs:{label:"Sending to:"}},[n("select",{directives:[{name:"model",rawName:"v-model.lazy",value:e.state.destination,expression:"state.destination",modifiers:{lazy:!0}}],staticClass:"button",on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.state,"destination",t.target.multiple?n:n[0])}}},e._l(e.state.departiments,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v(e._s(t))])})),0)]),e.state.paper?[n("vui-item",{attrs:{label:"Currently sending:"}},[e._v(e._s(e.state.paper))]),n("vui-button",{attrs:{"push-state":"",params:{send:1}}},[e._v("Send")])]:n("span",[e._v("Please insert paper to send via secure connection.")])]:n("span",[n("b",[e._v("Transmitter arrays realigning. Please stand by. "+e._s(e._f("roundRemaining")(e.remaining_cooldown))+" seconds remaining.")])])],2):e._e(),e.state.paper?n("vui-button",{attrs:{params:{remove:1}}},[e._v("Remove item")]):e._e(),n("h3",[e._v("PDAs to notify:")]),e._l(e.state.alertpdas,(function(t){return n("div",{key:t.ref},[e._v(" "+e._s(t.name)+" "),n("vui-button",{attrs:{params:{unlink:t.ref}}},[e._v("Unlink")])],1)})),e.state.alertpdas.length<=0?n("div",[e._v("No PDAs are linked.")]):e._e(),n("vui-button",{attrs:{params:{linkpda:1}}},[e._v("Add PDA to Notify")])],2)},r=[],s={data:function(){return this.$root.$data},computed:{remaining_cooldown:function(){return this.state.cooldownend-this.wtime}},filters:{roundRemaining:function(e){return Math.round(e/10)}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,"4b0e320e",null);t["default"]=c.exports},"967a":function(e,t,n){"use strict";var i=n("23e7"),r=n("e163"),s=n("d2bb"),a=n("7c73"),o=n("9112"),c=n("5c6c"),l=n("2266"),u=function(e,t){var n=this;if(!(n instanceof u))return new u(e,t);s&&(n=s(new Error(void 0),r(n))),void 0!==t&&o(n,"message",String(t));var i=[];return l(e,i.push,{that:i}),o(n,"errors",i),n};u.prototype=a(Error.prototype,{constructor:c(5,u),message:c(5,""),name:c(5,"AggregateError")}),i({global:!0},{AggregateError:u})},9767:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("fontcolor")},{fontcolor:function(e){return r(this,"font","color",e)}})},9861:function(e,t,n){"use strict";n("e260");var i=n("23e7"),r=n("d066"),s=n("0d3b"),a=n("6eeb"),o=n("e2cc"),c=n("d44e"),l=n("9ed3"),u=n("69f3"),d=n("19aa"),h=n("5135"),f=n("0366"),p=n("f5df"),g=n("825a"),m=n("861d"),v=n("7c73"),b=n("5c6c"),y=n("9a1f"),w=n("35a1"),_=n("b622"),x=r("fetch"),k=r("Headers"),A=_("iterator"),C="URLSearchParams",E=C+"Iterator",S=u.set,F=u.getterFor(C),$=u.getterFor(E),T=/\+/g,L=Array(4),D=function(e){return L[e-1]||(L[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},B=function(e){try{return decodeURIComponent(e)}catch(t){return e}},R=function(e){var t=e.replace(T," "),n=4;try{return decodeURIComponent(t)}catch(i){while(n)t=t.replace(D(n--),B);return t}},O=/[!'()~]|%20/g,M={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},j=function(e){return M[e]},I=function(e){return encodeURIComponent(e).replace(O,j)},P=function(e,t){if(t){var n,i,r=t.split("&"),s=0;while(s<r.length)n=r[s++],n.length&&(i=n.split("="),e.push({key:R(i.shift()),value:R(i.join("="))}))}},N=function(e){this.entries.length=0,P(this.entries,e)},W=function(e,t){if(e<t)throw TypeError("Not enough arguments")},H=l((function(e,t){S(this,{type:E,iterator:y(F(e).entries),kind:t})}),"Iterator",(function(){var e=$(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n})),V=function(){d(this,V,C);var e,t,n,i,r,s,a,o,c,l=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(S(u,{type:C,entries:f,updateURL:function(){},updateSearchParams:N}),void 0!==l)if(m(l))if(e=w(l),"function"===typeof e){t=e.call(l),n=t.next;while(!(i=n.call(t)).done){if(r=y(g(i.value)),s=r.next,(a=s.call(r)).done||(o=s.call(r)).done||!s.call(r).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:o.value+""})}}else for(c in l)h(l,c)&&f.push({key:c,value:l[c]+""});else P(f,"string"===typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},U=V.prototype;o(U,{append:function(e,t){W(arguments.length,2);var n=F(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){W(arguments.length,1);var t=F(this),n=t.entries,i=e+"",r=0;while(r<n.length)n[r].key===i?n.splice(r,1):r++;t.updateURL()},get:function(e){W(arguments.length,1);for(var t=F(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){W(arguments.length,1);for(var t=F(this).entries,n=e+"",i=[],r=0;r<t.length;r++)t[r].key===n&&i.push(t[r].value);return i},has:function(e){W(arguments.length,1);var t=F(this).entries,n=e+"",i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){W(arguments.length,1);for(var n,i=F(this),r=i.entries,s=!1,a=e+"",o=t+"",c=0;c<r.length;c++)n=r[c],n.key===a&&(s?r.splice(c--,1):(s=!0,n.value=o));s||r.push({key:a,value:o}),i.updateURL()},sort:function(){var e,t,n,i=F(this),r=i.entries,s=r.slice();for(r.length=0,n=0;n<s.length;n++){for(e=s[n],t=0;t<n;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===n&&r.push(e)}i.updateURL()},forEach:function(e){var t,n=F(this).entries,i=f(e,arguments.length>1?arguments[1]:void 0,3),r=0;while(r<n.length)t=n[r++],i(t.value,t.key,this)},keys:function(){return new H(this,"keys")},values:function(){return new H(this,"values")},entries:function(){return new H(this,"entries")}},{enumerable:!0}),a(U,A,U.entries),a(U,"toString",(function(){var e,t=F(this).entries,n=[],i=0;while(i<t.length)e=t[i++],n.push(I(e.key)+"="+I(e.value));return n.join("&")}),{enumerable:!0}),c(V,C),i({global:!0,forced:!s},{URLSearchParams:V}),s||"function"!=typeof x||"function"!=typeof k||i({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,r=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,p(n)===C&&(i=t.headers?new k(t.headers):new k,i.has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:b(0,String(n)),headers:b(0,i)}))),r.push(t)),x.apply(this,r)}}),e.exports={URLSearchParams:V,getState:F}},9911:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("link")},{link:function(e){return r(this,"a","href",e)}})},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),s=n("e8b5"),a=n("861d"),o=n("7b0b"),c=n("50c4"),l=n("8418"),u=n("65f0"),d=n("1dde"),h=n("b622"),f=n("2d00"),p=h("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=f>=51||!r((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=d("concat"),y=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:s(e)},w=!v||!b;i({target:"Array",proto:!0,forced:w},{concat:function(e){var t,n,i,r,s,a=o(this),d=u(a,0),h=0;for(t=-1,i=arguments.length;t<i;t++)if(s=-1===t?a:arguments[t],y(s)){if(r=c(s.length),h+r>g)throw TypeError(m);for(n=0;n<r;n++,h++)n in s&&l(d,h,s[n])}else{if(h>=g)throw TypeError(m);l(d,h++,s)}return d.length=h,d}})},"99ee":function(e,t,n){},"9a0c":function(e,t,n){var i=n("342f");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i)},"9a1f":function(e,t,n){var i=n("825a"),r=n("35a1");e.exports=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return i(t.call(e))}},"9a8c":function(e,t,n){"use strict";var i=n("ebb5"),r=n("145e"),s=i.aTypedArray,a=i.exportTypedArrayMethod;a("copyWithin",(function(e,t){return r.call(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9aa7":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"resizehandles"}},[n("div",{staticClass:"resizeHandle__e",on:{mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.startResizing(1,0,t)}}}),n("div",{staticClass:"resizeHandle__s",on:{mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.startResizing(0,1,t)}}}),n("div",{staticClass:"resizeHandle__se",on:{mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.startResizing(1,1,t)}}})])},r=[],s=n("f0e0"),a={methods:{startResizing:function(e,t,n){s["a"].resizeStartHandler(e,t,n)}}},o=a,c=(n("12fa"),n("2877")),l=Object(c["a"])(o,i,r,!1,null,"9bc3ecba",null);t["default"]=l.exports},"9acc":function(e,t,n){"use strict";n("1ee6")},"9b7e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.s.registered?[n("div",[e.s.can_netadmin_mode||e.s.netadmin_mode?n("vui-button",{class:{on:e.s.netadmin_mode},attrs:{params:{toggleadmin:1}}},[e._v("Admin Mode")]):e._e(),e._v(" Ringtone: "),null==e.ringtone?n("vui-button",{on:{click:function(t){e.ringtone=e.s.ringtone}}},[e._v(e._s(e.s.ringtone))]):[n("input",{directives:[{name:"model",rawName:"v-model",value:e.ringtone,expression:"ringtone"}],attrs:{type:"text"},domProps:{value:e.ringtone},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.set_ringtone(t)},input:function(t){t.target.composing||(e.ringtone=t.target.value)}}}),n("vui-button",{on:{click:e.set_ringtone}},[e._v("Set ringtone")])],n("vui-button",{class:{selected:1==e.s.message_mute},attrs:{params:{mute_message:1}}},[e._v(e._s(1==e.s.message_mute?"Unmute Messages":"Mute Messages"))])],2),e.s.signal?[n("div",[n("vui-button",{class:{on:null==e.active},on:{click:function(t){e.active=null}}},[e._v("Explore")]),e._l(e.tab_channels,(function(t){return n("vui-button",{key:t,class:{on:e.active==t},on:{click:function(n){e.active=t}}},[e._v(e._s(e.s.channels[t].title))])}))],2),n("hr"),null==e.active?n("view-mcomputer-chat-explore"):n("view-mcomputer-chat-chat",{attrs:{reference:e.active},on:{"on-leave":function(t){e.active=null}}})]:n("h2",{staticClass:"red"},[e._v("No network signal. Limited functionality available.")])]:n("h2",{staticClass:"red"},[e._v("No registered user detected.")])],2)},r=[],s=(n("4de4"),n("b64b"),{data:function(){return{s:this.$root.$data.state,active:null,ringtone:null}},computed:{tab_channels:function(){var e=this;return Object.keys(this.s.channels).filter((function(t){return e.s.channels[t].can_interact}))}},methods:{set_ringtone:function(){this.$toTopic({ringtone:this.ringtone}),this.ringtone=null}}}),a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},"9bdd":function(e,t,n){var i=n("825a"),r=n("2a62");e.exports=function(e,t,n,s){try{return s?t(i(n)[0],n[1]):t(n)}catch(a){throw r(e),a}}},"9bf2":function(e,t,n){var i=n("83ab"),r=n("0cfb"),s=n("825a"),a=n("c04e"),o=Object.defineProperty;t.f=i?o:function(e,t,n){if(s(e),t=a(t,!0),s(n),r)try{return o(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9e4a":function(e,t,n){var i=n("23e7"),r=n("83ab"),s=n("825a"),a=n("06cf");i({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(e,t){return a.f(s(e),t)}})},"9e69":function(e,t,n){var i=n("2b3e"),r=i.Symbol;e.exports=r},"9e80":function(e,t,n){},"9ed3":function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),s=n("5c6c"),a=n("d44e"),o=n("3f8c"),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=r(i,{next:s(1,n)}),a(e,l,!1,!0),o[l]=c,e}},"9f7f":function(e,t,n){"use strict";var i=n("d039");function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"9f96":function(e,t,n){var i=n("23e7"),r=n("da84"),s=n("b575"),a=n("605d"),o=r.process;i({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=a&&o.domain;s(t?t.bind(e):e)}})},"9ff9":function(e,t,n){var i=n("23e7"),r=Math.atanh,s=Math.log;i({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:s((1+e)/(1-e))/2}})},a026:function(e,t,n){"use strict";(function(e){
|
||
/*!
|
||
* Vue.js v2.6.12
|
||
* (c) 2014-2020 Evan You
|
||
* Released under the MIT License.
|
||
*/
|
||
var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function s(e){return!0===e}function a(e){return!1===e}function o(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function d(e){return"[object RegExp]"===l.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var v=m("slot,component",!0),b=m("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function _(e,t){return w.call(e,t)}function x(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var k=/-(\w)/g,A=x((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),C=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),E=/\B([A-Z])/g,S=x((function(e){return e.replace(E,"-$1").toLowerCase()}));function F(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function $(e,t){return e.bind(t)}var T=Function.prototype.bind?$:F;function L(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function D(e,t){for(var n in t)e[n]=t[n];return e}function B(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}function R(e,t,n){}var O=function(e,t,n){return!1},M=function(e){return e};function j(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}function I(e,t){if(e===t)return!0;var n=c(e),i=c(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),s=Array.isArray(t);if(r&&s)return e.length===t.length&&e.every((function(e,n){return I(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||s)return!1;var a=Object.keys(e),o=Object.keys(t);return a.length===o.length&&a.every((function(n){return I(e[n],t[n])}))}catch(l){return!1}}function P(e,t){for(var n=0;n<e.length;n++)if(I(e[n],t))return n;return-1}function N(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var W="data-server-rendered",H=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],U={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:O,isReservedAttr:O,isUnknownElement:O,getTagNamespace:R,parsePlatformTagName:M,mustUseProp:O,async:!0,_lifecycleHooks:V},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function G(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function q(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var K=new RegExp("[^"+z.source+".$_\\d]");function Y(e){if(!K.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var X,J="__proto__"in{},Q="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,ee=Z&&WXEnvironment.platform.toLowerCase(),te=Q&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),ie=te&&te.indexOf("msie 9.0")>0,re=te&&te.indexOf("edge/")>0,se=(te&&te.indexOf("android"),te&&/iphone|ipad|ipod|ios/.test(te)||"ios"===ee),ae=(te&&/chrome\/\d+/.test(te),te&&/phantomjs/.test(te),te&&te.match(/firefox\/(\d+)/)),oe={}.watch,ce=!1;if(Q)try{var le={};Object.defineProperty(le,"passive",{get:function(){ce=!0}}),window.addEventListener("test-passive",null,le)}catch(Jl){}var ue=function(){return void 0===X&&(X=!Q&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),X},de=Q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,pe="undefined"!==typeof Symbol&&he(Symbol)&&"undefined"!==typeof Reflect&&he(Reflect.ownKeys);fe="undefined"!==typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge=R,me=0,ve=function(){this.id=me++,this.subs=[]};ve.prototype.addSub=function(e){this.subs.push(e)},ve.prototype.removeSub=function(e){y(this.subs,e)},ve.prototype.depend=function(){ve.target&&ve.target.addDep(this)},ve.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ve.target=null;var be=[];function ye(e){be.push(e),ve.target=e}function we(){be.pop(),ve.target=be[be.length-1]}var _e=function(e,t,n,i,r,s,a,o){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=o,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},xe={child:{configurable:!0}};xe.child.get=function(){return this.componentInstance},Object.defineProperties(_e.prototype,xe);var ke=function(e){void 0===e&&(e="");var t=new _e;return t.text=e,t.isComment=!0,t};function Ae(e){return new _e(void 0,void 0,void 0,String(e))}function Ce(e){var t=new _e(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ee=Array.prototype,Se=Object.create(Ee),Fe=["push","pop","shift","unshift","splice","sort","reverse"];Fe.forEach((function(e){var t=Ee[e];q(Se,e,(function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var r,s=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&a.observeArray(r),a.dep.notify(),s}))}));var $e=Object.getOwnPropertyNames(Se),Te=!0;function Le(e){Te=e}var De=function(e){this.value=e,this.dep=new ve,this.vmCount=0,q(e,"__ob__",this),Array.isArray(e)?(J?Be(e,Se):Re(e,Se,$e),this.observeArray(e)):this.walk(e)};function Be(e,t){e.__proto__=t}function Re(e,t,n){for(var i=0,r=n.length;i<r;i++){var s=n[i];q(e,s,t[s])}}function Oe(e,t){var n;if(c(e)&&!(e instanceof _e))return _(e,"__ob__")&&e.__ob__ instanceof De?n=e.__ob__:Te&&!ue()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new De(e)),t&&n&&n.vmCount++,n}function Me(e,t,n,i,r){var s=new ve,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var o=a&&a.get,c=a&&a.set;o&&!c||2!==arguments.length||(n=e[t]);var l=!r&&Oe(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=o?o.call(e):n;return ve.target&&(s.depend(),l&&(l.dep.depend(),Array.isArray(t)&&Pe(t))),t},set:function(t){var i=o?o.call(e):n;t===i||t!==t&&i!==i||o&&!c||(c?c.call(e,t):n=t,l=!r&&Oe(t),s.notify())}})}}function je(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(Me(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function Ie(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||_(e,t)&&(delete e[t],n&&n.dep.notify())}}function Pe(e){for(var t=void 0,n=0,i=e.length;n<i;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Pe(t)}De.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Me(e,t[n])},De.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Oe(e[t])};var Ne=U.optionMergeStrategies;function We(e,t){if(!t)return e;for(var n,i,r,s=pe?Reflect.ownKeys(t):Object.keys(t),a=0;a<s.length;a++)n=s[a],"__ob__"!==n&&(i=e[n],r=t[n],_(e,n)?i!==r&&u(i)&&u(r)&&We(i,r):je(e,n,r));return e}function He(e,t,n){return n?function(){var i="function"===typeof t?t.call(n,n):t,r="function"===typeof e?e.call(n,n):e;return i?We(i,r):r}:t?e?function(){return We("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Ve(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Ue(n):n}function Ue(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function ze(e,t,n,i){var r=Object.create(e||null);return t?D(r,t):r}Ne.data=function(e,t,n){return n?He(e,t,n):t&&"function"!==typeof t?e:He(e,t)},V.forEach((function(e){Ne[e]=Ve})),H.forEach((function(e){Ne[e+"s"]=ze})),Ne.watch=function(e,t,n,i){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var s in D(r,e),t){var a=r[s],o=t[s];a&&!Array.isArray(a)&&(a=[a]),r[s]=a?a.concat(o):Array.isArray(o)?o:[o]}return r},Ne.props=Ne.methods=Ne.inject=Ne.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return D(r,e),t&&D(r,t),r},Ne.provide=He;var Ge=function(e,t){return void 0===t?e:t};function qe(e,t){var n=e.props;if(n){var i,r,s,a={};if(Array.isArray(n)){i=n.length;while(i--)r=n[i],"string"===typeof r&&(s=A(r),a[s]={type:null})}else if(u(n))for(var o in n)r=n[o],s=A(o),a[s]=u(r)?r:{type:r};else 0;e.props=a}}function Ke(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(u(n))for(var s in n){var a=n[s];i[s]=u(a)?D({from:s},a):{from:a}}else 0}}function Ye(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"===typeof i&&(t[n]={bind:i,update:i})}}function Xe(e,t,n){if("function"===typeof t&&(t=t.options),qe(t,n),Ke(t,n),Ye(t),!t._base&&(t.extends&&(e=Xe(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=Xe(e,t.mixins[i],n);var s,a={};for(s in e)o(s);for(s in t)_(e,s)||o(s);function o(i){var r=Ne[i]||Ge;a[i]=r(e[i],t[i],n,i)}return a}function Je(e,t,n,i){if("string"===typeof n){var r=e[t];if(_(r,n))return r[n];var s=A(n);if(_(r,s))return r[s];var a=C(s);if(_(r,a))return r[a];var o=r[n]||r[s]||r[a];return o}}function Qe(e,t,n,i){var r=t[e],s=!_(n,e),a=n[e],o=nt(Boolean,r.type);if(o>-1)if(s&&!_(r,"default"))a=!1;else if(""===a||a===S(e)){var c=nt(String,r.type);(c<0||o<c)&&(a=!0)}if(void 0===a){a=Ze(i,r,e);var l=Te;Le(!0),Oe(a),Le(l)}return a}function Ze(e,t,n){if(_(t,"default")){var i=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof i&&"Function"!==et(t.type)?i.call(e):i}}function et(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function tt(e,t){return et(e)===et(t)}function nt(e,t){if(!Array.isArray(t))return tt(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(tt(t[n],e))return n;return-1}function it(e,t,n){ye();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var s=0;s<r.length;s++)try{var a=!1===r[s].call(i,e,t,n);if(a)return}catch(Jl){st(Jl,i,"errorCaptured hook")}}}st(e,t,n)}finally{we()}}function rt(e,t,n,i,r){var s;try{s=n?e.apply(t,n):e.call(t),s&&!s._isVue&&f(s)&&!s._handled&&(s.catch((function(e){return it(e,i,r+" (Promise/async)")})),s._handled=!0)}catch(Jl){it(Jl,i,r)}return s}function st(e,t,n){if(U.errorHandler)try{return U.errorHandler.call(null,e,t,n)}catch(Jl){Jl!==e&&at(Jl,null,"config.errorHandler")}at(e,t,n)}function at(e,t,n){if(!Q&&!Z||"undefined"===typeof console)throw e;console.error(e)}var ot,ct=!1,lt=[],ut=!1;function dt(){ut=!1;var e=lt.slice(0);lt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&he(Promise)){var ht=Promise.resolve();ot=function(){ht.then(dt),se&&setTimeout(R)},ct=!0}else if(ne||"undefined"===typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ot="undefined"!==typeof setImmediate&&he(setImmediate)?function(){setImmediate(dt)}:function(){setTimeout(dt,0)};else{var ft=1,pt=new MutationObserver(dt),gt=document.createTextNode(String(ft));pt.observe(gt,{characterData:!0}),ot=function(){ft=(ft+1)%2,gt.data=String(ft)},ct=!0}function mt(e,t){var n;if(lt.push((function(){if(e)try{e.call(t)}catch(Jl){it(Jl,t,"nextTick")}else n&&n(t)})),ut||(ut=!0,ot()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var vt=new fe;function bt(e){yt(e,vt),vt.clear()}function yt(e,t){var n,i,r=Array.isArray(e);if(!(!r&&!c(e)||Object.isFrozen(e)||e instanceof _e)){if(e.__ob__){var s=e.__ob__.dep.id;if(t.has(s))return;t.add(s)}if(r){n=e.length;while(n--)yt(e[n],t)}else{i=Object.keys(e),n=i.length;while(n--)yt(e[i[n]],t)}}}var wt=x((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function _t(e,t){function n(){var e=arguments,i=n.fns;if(!Array.isArray(i))return rt(i,null,arguments,t,"v-on handler");for(var r=i.slice(),s=0;s<r.length;s++)rt(r[s],null,e,t,"v-on handler")}return n.fns=e,n}function xt(e,t,n,r,a,o){var c,l,u,d;for(c in e)l=e[c],u=t[c],d=wt(c),i(l)||(i(u)?(i(l.fns)&&(l=e[c]=_t(l,o)),s(d.once)&&(l=e[c]=a(d.name,l,d.capture)),n(d.name,l,d.capture,d.passive,d.params)):l!==u&&(u.fns=l,e[c]=u));for(c in t)i(e[c])&&(d=wt(c),r(d.name,t[c],d.capture))}function kt(e,t,n){var a;e instanceof _e&&(e=e.data.hook||(e.data.hook={}));var o=e[t];function c(){n.apply(this,arguments),y(a.fns,c)}i(o)?a=_t([c]):r(o.fns)&&s(o.merged)?(a=o,a.fns.push(c)):a=_t([o,c]),a.merged=!0,e[t]=a}function At(e,t,n){var s=t.options.props;if(!i(s)){var a={},o=e.attrs,c=e.props;if(r(o)||r(c))for(var l in s){var u=S(l);Ct(a,c,l,u,!0)||Ct(a,o,l,u,!1)}return a}}function Ct(e,t,n,i,s){if(r(t)){if(_(t,n))return e[n]=t[n],s||delete t[n],!0;if(_(t,i))return e[n]=t[i],s||delete t[i],!0}return!1}function Et(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function St(e){return o(e)?[Ae(e)]:Array.isArray(e)?$t(e):void 0}function Ft(e){return r(e)&&r(e.text)&&a(e.isComment)}function $t(e,t){var n,a,c,l,u=[];for(n=0;n<e.length;n++)a=e[n],i(a)||"boolean"===typeof a||(c=u.length-1,l=u[c],Array.isArray(a)?a.length>0&&(a=$t(a,(t||"")+"_"+n),Ft(a[0])&&Ft(l)&&(u[c]=Ae(l.text+a[0].text),a.shift()),u.push.apply(u,a)):o(a)?Ft(l)?u[c]=Ae(l.text+a):""!==a&&u.push(Ae(a)):Ft(a)&&Ft(l)?u[c]=Ae(l.text+a.text):(s(e._isVList)&&r(a.tag)&&i(a.key)&&r(t)&&(a.key="__vlist"+t+"_"+n+"__"),u.push(a)));return u}function Tt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Lt(e){var t=Dt(e.$options.inject,e);t&&(Le(!1),Object.keys(t).forEach((function(n){Me(e,n,t[n])})),Le(!0))}function Dt(e,t){if(e){for(var n=Object.create(null),i=pe?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var s=i[r];if("__ob__"!==s){var a=e[s].from,o=t;while(o){if(o._provided&&_(o._provided,a)){n[s]=o._provided[a];break}o=o.$parent}if(!o)if("default"in e[s]){var c=e[s].default;n[s]="function"===typeof c?c.call(t):c}else 0}}return n}}function Bt(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var s=e[i],a=s.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,s.context!==t&&s.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(s);else{var o=a.slot,c=n[o]||(n[o]=[]);"template"===s.tag?c.push.apply(c,s.children||[]):c.push(s)}}for(var l in n)n[l].every(Rt)&&delete n[l];return n}function Rt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Ot(e,t,i){var r,s=Object.keys(t).length>0,a=e?!!e.$stable:!s,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&i&&i!==n&&o===i.$key&&!s&&!i.$hasNormal)return i;for(var c in r={},e)e[c]&&"$"!==c[0]&&(r[c]=Mt(t,c,e[c]))}else r={};for(var l in t)l in r||(r[l]=jt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=r),q(r,"$stable",a),q(r,"$key",o),q(r,"$hasNormal",s),r}function Mt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:St(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function jt(e,t){return function(){return e[t]}}function It(e,t){var n,i,s,a,o;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,s=e.length;i<s;i++)n[i]=t(e[i],i);else if("number"===typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(c(e))if(pe&&e[Symbol.iterator]){n=[];var l=e[Symbol.iterator](),u=l.next();while(!u.done)n.push(t(u.value,n.length)),u=l.next()}else for(a=Object.keys(e),n=new Array(a.length),i=0,s=a.length;i<s;i++)o=a[i],n[i]=t(e[o],o,i);return r(n)||(n=[]),n._isVList=!0,n}function Pt(e,t,n,i){var r,s=this.$scopedSlots[e];s?(n=n||{},i&&(n=D(D({},i),n)),r=s(n)||t):r=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},r):r}function Nt(e){return Je(this.$options,"filters",e,!0)||M}function Wt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Ht(e,t,n,i,r){var s=U.keyCodes[t]||n;return r&&i&&!U.keyCodes[t]?Wt(r,i):s?Wt(s,e):i?S(i)!==t:void 0}function Vt(e,t,n,i,r){if(n)if(c(n)){var s;Array.isArray(n)&&(n=B(n));var a=function(a){if("class"===a||"style"===a||b(a))s=e;else{var o=e.attrs&&e.attrs.type;s=i||U.mustUseProp(t,o,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=A(a),l=S(a);if(!(c in s)&&!(l in s)&&(s[a]=n[a],r)){var u=e.on||(e.on={});u["update:"+a]=function(e){n[a]=e}}};for(var o in n)a(o)}else;return e}function Ut(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Gt(i,"__static__"+e,!1)),i}function zt(e,t,n){return Gt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Gt(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&qt(e[i],t+"_"+i,n);else qt(e,t,n)}function qt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Kt(e,t){if(t)if(u(t)){var n=e.on=e.on?D({},e.on):{};for(var i in t){var r=n[i],s=t[i];n[i]=r?[].concat(r,s):s}}else;return e}function Yt(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var s=e[r];Array.isArray(s)?Yt(s,t,n):s&&(s.proxy&&(s.fn.proxy=!0),t[s.key]=s.fn)}return i&&(t.$key=i),t}function Xt(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"===typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Jt(e,t){return"string"===typeof e?t+e:e}function Qt(e){e._o=zt,e._n=g,e._s=p,e._l=It,e._t=Pt,e._q=I,e._i=P,e._m=Ut,e._f=Nt,e._k=Ht,e._b=Vt,e._v=Ae,e._e=ke,e._u=Yt,e._g=Kt,e._d=Xt,e._p=Jt}function Zt(e,t,i,r,a){var o,c=this,l=a.options;_(r,"_uid")?(o=Object.create(r),o._original=r):(o=r,r=r._original);var u=s(l._compiled),d=!u;this.data=e,this.props=t,this.children=i,this.parent=r,this.listeners=e.on||n,this.injections=Dt(l.inject,r),this.slots=function(){return c.$slots||Ot(e.scopedSlots,c.$slots=Bt(i,r)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Ot(e.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=Ot(e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,i){var s=fn(o,e,t,n,i,d);return s&&!Array.isArray(s)&&(s.fnScopeId=l._scopeId,s.fnContext=r),s}:this._c=function(e,t,n,i){return fn(o,e,t,n,i,d)}}function en(e,t,i,s,a){var o=e.options,c={},l=o.props;if(r(l))for(var u in l)c[u]=Qe(u,l,t||n);else r(i.attrs)&&nn(c,i.attrs),r(i.props)&&nn(c,i.props);var d=new Zt(i,c,a,s,e),h=o.render.call(null,d._c,d);if(h instanceof _e)return tn(h,i,d.parent,o,d);if(Array.isArray(h)){for(var f=St(h)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=tn(f[g],i,d.parent,o,d);return p}}function tn(e,t,n,i,r){var s=Ce(e);return s.fnContext=n,s.fnOptions=i,t.slot&&((s.data||(s.data={})).slot=t.slot),s}function nn(e,t){for(var n in t)e[A(n)]=t[n]}Qt(Zt.prototype);var rn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;rn.prepatch(n,n)}else{var i=e.componentInstance=on(e,Dn);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;jn(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Wn(n,"mounted")),e.data.keepAlive&&(t._isMounted?ei(n):Pn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Nn(t,!0):t.$destroy())}},sn=Object.keys(rn);function an(e,t,n,a,o){if(!i(e)){var l=n.$options._base;if(c(e)&&(e=l.extend(e)),"function"===typeof e){var u;if(i(e.cid)&&(u=e,e=kn(u,l),void 0===e))return xn(u,t,n,a,o);t=t||{},ki(e),r(t.model)&&un(e.options,t);var d=At(t,e,o);if(s(e.options.functional))return en(e,d,t,n,a);var h=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}cn(t);var p=e.options.name||o,g=new _e("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:h,tag:o,children:a},u);return g}}}function on(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function cn(e){for(var t=e.hook||(e.hook={}),n=0;n<sn.length;n++){var i=sn[n],r=t[i],s=rn[i];r===s||r&&r._merged||(t[i]=r?ln(s,r):s)}}function ln(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function un(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var s=t.on||(t.on={}),a=s[i],o=t.model.callback;r(a)?(Array.isArray(a)?-1===a.indexOf(o):a!==o)&&(s[i]=[o].concat(a)):s[i]=o}var dn=1,hn=2;function fn(e,t,n,i,r,a){return(Array.isArray(n)||o(n))&&(r=i,i=n,n=void 0),s(a)&&(r=hn),pn(e,t,n,i,r)}function pn(e,t,n,i,s){if(r(n)&&r(n.__ob__))return ke();if(r(n)&&r(n.is)&&(t=n.is),!t)return ke();var a,o,c;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),s===hn?i=St(i):s===dn&&(i=Et(i)),"string"===typeof t)?(o=e.$vnode&&e.$vnode.ns||U.getTagNamespace(t),a=U.isReservedTag(t)?new _e(U.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(c=Je(e.$options,"components",t))?new _e(t,n,i,void 0,void 0,e):an(c,n,e,i,t)):a=an(t,n,e,i);return Array.isArray(a)?a:r(a)?(r(o)&&gn(a,o),r(n)&&mn(n),a):ke()}function gn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),r(e.children))for(var a=0,o=e.children.length;a<o;a++){var c=e.children[a];r(c.tag)&&(i(c.ns)||s(n)&&"svg"!==c.tag)&&gn(c,t,n)}}function mn(e){c(e.style)&&bt(e.style),c(e.class)&&bt(e.class)}function vn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=Bt(t._renderChildren,r),e.$scopedSlots=n,e._c=function(t,n,i,r){return fn(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return fn(e,t,n,i,r,!0)};var s=i&&i.data;Me(e,"$attrs",s&&s.attrs||n,null,!0),Me(e,"$listeners",t._parentListeners||n,null,!0)}var bn,yn=null;function wn(e){Qt(e.prototype),e.prototype.$nextTick=function(e){return mt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,r=n._parentVnode;r&&(t.$scopedSlots=Ot(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{yn=t,e=i.call(t._renderProxy,t.$createElement)}catch(Jl){it(Jl,t,"render"),e=t._vnode}finally{yn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof _e||(e=ke()),e.parent=r,e}}function _n(e,t){return(e.__esModule||pe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function xn(e,t,n,i,r){var s=ke();return s.asyncFactory=e,s.asyncMeta={data:t,context:n,children:i,tag:r},s}function kn(e,t){if(s(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var n=yn;if(n&&r(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&r(e.loadingComp))return e.loadingComp;if(n&&!r(e.owners)){var a=e.owners=[n],o=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return y(a,n)}));var d=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},h=N((function(n){e.resolved=_n(n,t),o?a.length=0:d(!0)})),p=N((function(t){r(e.errorComp)&&(e.error=!0,d(!0))})),g=e(h,p);return c(g)&&(f(g)?i(e.resolved)&&g.then(h,p):f(g.component)&&(g.component.then(h,p),r(g.error)&&(e.errorComp=_n(g.error,t)),r(g.loading)&&(e.loadingComp=_n(g.loading,t),0===g.delay?e.loading=!0:l=setTimeout((function(){l=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),g.delay||200)),r(g.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&p(null)}),g.timeout)))),o=!1,e.loading?e.loadingComp:e.resolved}}function An(e){return e.isComment&&e.asyncFactory}function Cn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||An(n)))return n}}function En(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Tn(e,t)}function Sn(e,t){bn.$on(e,t)}function Fn(e,t){bn.$off(e,t)}function $n(e,t){var n=bn;return function i(){var r=t.apply(null,arguments);null!==r&&n.$off(e,i)}}function Tn(e,t,n){bn=e,xt(t,n||{},Sn,Fn,$n,e),bn=void 0}function Ln(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(Array.isArray(e))for(var r=0,s=e.length;r<s;r++)i.$on(e[r],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++)n.$off(e[i],t);return n}var s,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var o=a.length;while(o--)if(s=a[o],s===t||s.fn===t){a.splice(o,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?L(n):n;for(var i=L(arguments,1),r='event handler for "'+e+'"',s=0,a=n.length;s<a;s++)rt(n[s],t,i,t,r)}return t}}var Dn=null;function Bn(e){var t=Dn;return Dn=e,function(){Dn=t}}function Rn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function On(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,s=Bn(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),s(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Wn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Wn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Mn(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=ke),Wn(e,"beforeMount"),i=function(){e._update(e._render(),n)},new ri(e,i,R,{before:function(){e._isMounted&&!e._isDestroyed&&Wn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Wn(e,"mounted")),e}function jn(e,t,i,r,s){var a=r.data.scopedSlots,o=e.$scopedSlots,c=!!(a&&!a.$stable||o!==n&&!o.$stable||a&&e.$scopedSlots.$key!==a.$key),l=!!(s||e.$options._renderChildren||c);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=s,e.$attrs=r.data.attrs||n,e.$listeners=i||n,t&&e.$options.props){Le(!1);for(var u=e._props,d=e.$options._propKeys||[],h=0;h<d.length;h++){var f=d[h],p=e.$options.props;u[f]=Qe(f,p,t,e)}Le(!0),e.$options.propsData=t}i=i||n;var g=e.$options._parentListeners;e.$options._parentListeners=i,Tn(e,i,g),l&&(e.$slots=Bt(s,r.context),e.$forceUpdate())}function In(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Pn(e,t){if(t){if(e._directInactive=!1,In(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Pn(e.$children[n]);Wn(e,"activated")}}function Nn(e,t){if((!t||(e._directInactive=!0,!In(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Nn(e.$children[n]);Wn(e,"deactivated")}}function Wn(e,t){ye();var n=e.$options[t],i=t+" hook";if(n)for(var r=0,s=n.length;r<s;r++)rt(n[r],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),we()}var Hn=[],Vn=[],Un={},zn=!1,Gn=!1,qn=0;function Kn(){qn=Hn.length=Vn.length=0,Un={},zn=Gn=!1}var Yn=0,Xn=Date.now;if(Q&&!ne){var Jn=window.performance;Jn&&"function"===typeof Jn.now&&Xn()>document.createEvent("Event").timeStamp&&(Xn=function(){return Jn.now()})}function Qn(){var e,t;for(Yn=Xn(),Gn=!0,Hn.sort((function(e,t){return e.id-t.id})),qn=0;qn<Hn.length;qn++)e=Hn[qn],e.before&&e.before(),t=e.id,Un[t]=null,e.run();var n=Vn.slice(),i=Hn.slice();Kn(),ti(n),Zn(i),de&&U.devtools&&de.emit("flush")}function Zn(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Wn(i,"updated")}}function ei(e){e._inactive=!1,Vn.push(e)}function ti(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Pn(e[t],!0)}function ni(e){var t=e.id;if(null==Un[t]){if(Un[t]=!0,Gn){var n=Hn.length-1;while(n>qn&&Hn[n].id>e.id)n--;Hn.splice(n+1,0,e)}else Hn.push(e);zn||(zn=!0,mt(Qn))}}var ii=0,ri=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ii,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="","function"===typeof t?this.getter=t:(this.getter=Y(t),this.getter||(this.getter=R)),this.value=this.lazy?void 0:this.get()};ri.prototype.get=function(){var e;ye(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Jl){if(!this.user)throw Jl;it(Jl,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&bt(e),we(),this.cleanupDeps()}return e},ri.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ri.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ri.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ni(this)},ri.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Jl){it(Jl,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ri.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ri.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ri.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var si={enumerable:!0,configurable:!0,get:R,set:R};function ai(e,t,n){si.get=function(){return this[t][n]},si.set=function(e){this[t][n]=e},Object.defineProperty(e,n,si)}function oi(e){e._watchers=[];var t=e.$options;t.props&&ci(e,t.props),t.methods&&mi(e,t.methods),t.data?li(e):Oe(e._data={},!0),t.computed&&hi(e,t.computed),t.watch&&t.watch!==oe&&vi(e,t.watch)}function ci(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],s=!e.$parent;s||Le(!1);var a=function(s){r.push(s);var a=Qe(s,t,n,e);Me(i,s,a),s in e||ai(e,"_props",s)};for(var o in t)a(o);Le(!0)}function li(e){var t=e.$options.data;t=e._data="function"===typeof t?ui(t,e):t||{},u(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var s=n[r];0,i&&_(i,s)||G(s)||ai(e,"_data",s)}Oe(t,!0)}function ui(e,t){ye();try{return e.call(t,t)}catch(Jl){return it(Jl,t,"data()"),{}}finally{we()}}var di={lazy:!0};function hi(e,t){var n=e._computedWatchers=Object.create(null),i=ue();for(var r in t){var s=t[r],a="function"===typeof s?s:s.get;0,i||(n[r]=new ri(e,a||R,R,di)),r in e||fi(e,r,s)}}function fi(e,t,n){var i=!ue();"function"===typeof n?(si.get=i?pi(t):gi(n),si.set=R):(si.get=n.get?i&&!1!==n.cache?pi(t):gi(n.get):R,si.set=n.set||R),Object.defineProperty(e,t,si)}function pi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ve.target&&t.depend(),t.value}}function gi(e){return function(){return e.call(this,this)}}function mi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?R:T(t[n],e)}function vi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)bi(e,n,i[r]);else bi(e,n,i)}}function bi(e,t,n,i){return u(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,i)}function yi(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=je,e.prototype.$delete=Ie,e.prototype.$watch=function(e,t,n){var i=this;if(u(t))return bi(i,e,t,n);n=n||{},n.user=!0;var r=new ri(i,e,t,n);if(n.immediate)try{t.call(i,r.value)}catch(s){it(s,i,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var wi=0;function _i(e){e.prototype._init=function(e){var t=this;t._uid=wi++,t._isVue=!0,e&&e._isComponent?xi(t,e):t.$options=Xe(ki(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Rn(t),En(t),vn(t),Wn(t,"beforeCreate"),Lt(t),oi(t),Tt(t),Wn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function xi(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function ki(e){var t=e.options;if(e.super){var n=ki(e.super),i=e.superOptions;if(n!==i){e.superOptions=n;var r=Ai(e);r&&D(e.extendOptions,r),t=e.options=Xe(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Ai(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}function Ci(e){this._init(e)}function Ei(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=L(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Si(e){e.mixin=function(e){return this.options=Xe(this.options,e),this}}function Fi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var s=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Xe(n.options,e),a["super"]=n,a.options.props&&$i(a),a.options.computed&&Ti(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,H.forEach((function(e){a[e]=n[e]})),s&&(a.options.components[s]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=D({},a.options),r[i]=a,a}}function $i(e){var t=e.options.props;for(var n in t)ai(e.prototype,"_props",n)}function Ti(e){var t=e.options.computed;for(var n in t)fi(e.prototype,n,t[n])}function Li(e){H.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Di(e){return e&&(e.Ctor.options.name||e.tag)}function Bi(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Ri(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var s in n){var a=n[s];if(a){var o=Di(a.componentOptions);o&&!t(o)&&Oi(n,s,i,r)}}}function Oi(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,y(n,t)}_i(Ci),yi(Ci),Ln(Ci),On(Ci),wn(Ci);var Mi=[String,RegExp,Array],ji={name:"keep-alive",abstract:!0,props:{include:Mi,exclude:Mi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Oi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Ri(e,(function(e){return Bi(t,e)}))})),this.$watch("exclude",(function(t){Ri(e,(function(e){return!Bi(t,e)}))}))},render:function(){var e=this.$slots.default,t=Cn(e),n=t&&t.componentOptions;if(n){var i=Di(n),r=this,s=r.include,a=r.exclude;if(s&&(!i||!Bi(s,i))||a&&i&&Bi(a,i))return t;var o=this,c=o.cache,l=o.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[u]?(t.componentInstance=c[u].componentInstance,y(l,u),l.push(u)):(c[u]=t,l.push(u),this.max&&l.length>parseInt(this.max)&&Oi(c,l[0],l,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Ii={KeepAlive:ji};function Pi(e){var t={get:function(){return U}};Object.defineProperty(e,"config",t),e.util={warn:ge,extend:D,mergeOptions:Xe,defineReactive:Me},e.set=je,e.delete=Ie,e.nextTick=mt,e.observable=function(e){return Oe(e),e},e.options=Object.create(null),H.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,Ii),Ei(e),Si(e),Fi(e),Li(e)}Pi(Ci),Object.defineProperty(Ci.prototype,"$isServer",{get:ue}),Object.defineProperty(Ci.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ci,"FunctionalRenderContext",{value:Zt}),Ci.version="2.6.12";var Ni=m("style,class"),Wi=m("input,textarea,option,select,progress"),Hi=function(e,t,n){return"value"===n&&Wi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Vi=m("contenteditable,draggable,spellcheck"),Ui=m("events,caret,typing,plaintext-only"),zi=function(e,t){return Xi(t)||"false"===t?"false":"contenteditable"===e&&Ui(t)?t:"true"},Gi=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qi="http://www.w3.org/1999/xlink",Ki=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Yi=function(e){return Ki(e)?e.slice(6,e.length):""},Xi=function(e){return null==e||!1===e};function Ji(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Qi(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Qi(t,n.data));return Zi(t.staticClass,t.class)}function Qi(e,t){return{staticClass:er(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Zi(e,t){return r(e)||r(t)?er(e,tr(t)):""}function er(e,t){return e?t?e+" "+t:e:t||""}function tr(e){return Array.isArray(e)?nr(e):c(e)?ir(e):"string"===typeof e?e:""}function nr(e){for(var t,n="",i=0,s=e.length;i<s;i++)r(t=tr(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ir(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var rr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},sr=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ar=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),or=function(e){return"pre"===e},cr=function(e){return sr(e)||ar(e)};function lr(e){return ar(e)?"svg":"math"===e?"math":void 0}var ur=Object.create(null);function dr(e){if(!Q)return!0;if(cr(e))return!1;if(e=e.toLowerCase(),null!=ur[e])return ur[e];var t=document.createElement(e);return e.indexOf("-")>-1?ur[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ur[e]=/HTMLUnknownElement/.test(t.toString())}var hr=m("text,number,password,search,email,tel,url");function fr(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function pr(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function gr(e,t){return document.createElementNS(rr[e],t)}function mr(e){return document.createTextNode(e)}function vr(e){return document.createComment(e)}function br(e,t,n){e.insertBefore(t,n)}function yr(e,t){e.removeChild(t)}function wr(e,t){e.appendChild(t)}function _r(e){return e.parentNode}function xr(e){return e.nextSibling}function kr(e){return e.tagName}function Ar(e,t){e.textContent=t}function Cr(e,t){e.setAttribute(t,"")}var Er=Object.freeze({createElement:pr,createElementNS:gr,createTextNode:mr,createComment:vr,insertBefore:br,removeChild:yr,appendChild:wr,parentNode:_r,nextSibling:xr,tagName:kr,setTextContent:Ar,setStyleScope:Cr}),Sr={create:function(e,t){Fr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Fr(e,!0),Fr(t))},destroy:function(e){Fr(e,!0)}};function Fr(e,t){var n=e.data.ref;if(r(n)){var i=e.context,s=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?y(a[n],s):a[n]===s&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(s)<0&&a[n].push(s):a[n]=[s]:a[n]=s}}var $r=new _e("",{},[]),Tr=["create","activate","update","remove","destroy"];function Lr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Dr(e,t)||s(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function Dr(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,s=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===s||hr(i)&&hr(s)}function Br(e,t,n){var i,s,a={};for(i=t;i<=n;++i)s=e[i].key,r(s)&&(a[s]=i);return a}function Rr(e){var t,n,a={},c=e.modules,l=e.nodeOps;for(t=0;t<Tr.length;++t)for(a[Tr[t]]=[],n=0;n<c.length;++n)r(c[n][Tr[t]])&&a[Tr[t]].push(c[n][Tr[t]]);function u(e){return new _e(l.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=l.parentNode(e);r(t)&&l.removeChild(t,e)}function f(e,t,n,i,a,o,c){if(r(e.elm)&&r(o)&&(e=o[c]=Ce(e)),e.isRootInsert=!a,!p(e,t,n,i)){var u=e.data,d=e.children,h=e.tag;r(h)?(e.elm=e.ns?l.createElementNS(e.ns,h):l.createElement(h,e),x(e),y(e,d,t),r(u)&&_(e,t),b(n,e.elm,i)):s(e.isComment)?(e.elm=l.createComment(e.text),b(n,e.elm,i)):(e.elm=l.createTextNode(e.text),b(n,e.elm,i))}}function p(e,t,n,i){var a=e.data;if(r(a)){var o=r(e.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(e,!1),r(e.componentInstance))return g(e,t),b(n,e.elm,i),s(o)&&v(e,t,n,i),!0}}function g(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,w(e)?(_(e,t),x(e)):(Fr(e),t.push(e))}function v(e,t,n,i){var s,o=e;while(o.componentInstance)if(o=o.componentInstance._vnode,r(s=o.data)&&r(s=s.transition)){for(s=0;s<a.activate.length;++s)a.activate[s]($r,o);t.push(o);break}b(n,e.elm,i)}function b(e,t,n){r(e)&&(r(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function y(e,t,n){if(Array.isArray(t)){0;for(var i=0;i<t.length;++i)f(t[i],n,e.elm,null,!0,t,i)}else o(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function w(e){while(e.componentInstance)e=e.componentInstance._vnode;return r(e.tag)}function _(e,n){for(var i=0;i<a.create.length;++i)a.create[i]($r,e);t=e.data.hook,r(t)&&(r(t.create)&&t.create($r,e),r(t.insert)&&n.push(e))}function x(e){var t;if(r(t=e.fnScopeId))l.setStyleScope(e.elm,t);else{var n=e;while(n)r(t=n.context)&&r(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent}r(t=Dn)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function k(e,t,n,i,r,s){for(;i<=r;++i)f(n[i],s,e,t,!1,n,i)}function A(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<a.destroy.length;++t)a.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)A(e.children[n])}function C(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(E(i),A(i)):h(i.elm))}}function E(e,t){if(r(t)||r(e.data)){var n,i=a.remove.length+1;for(r(t)?t.listeners+=i:t=d(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&E(n,t),n=0;n<a.remove.length;++n)a.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else h(e.elm)}function S(e,t,n,s,a){var o,c,u,d,h=0,p=0,g=t.length-1,m=t[0],v=t[g],b=n.length-1,y=n[0],w=n[b],_=!a;while(h<=g&&p<=b)i(m)?m=t[++h]:i(v)?v=t[--g]:Lr(m,y)?($(m,y,s,n,p),m=t[++h],y=n[++p]):Lr(v,w)?($(v,w,s,n,b),v=t[--g],w=n[--b]):Lr(m,w)?($(m,w,s,n,b),_&&l.insertBefore(e,m.elm,l.nextSibling(v.elm)),m=t[++h],w=n[--b]):Lr(v,y)?($(v,y,s,n,p),_&&l.insertBefore(e,v.elm,m.elm),v=t[--g],y=n[++p]):(i(o)&&(o=Br(t,h,g)),c=r(y.key)?o[y.key]:F(y,t,h,g),i(c)?f(y,s,e,m.elm,!1,n,p):(u=t[c],Lr(u,y)?($(u,y,s,n,p),t[c]=void 0,_&&l.insertBefore(e,u.elm,m.elm)):f(y,s,e,m.elm,!1,n,p)),y=n[++p]);h>g?(d=i(n[b+1])?null:n[b+1].elm,k(e,d,n,p,b,s)):p>b&&C(t,h,g)}function F(e,t,n,i){for(var s=n;s<i;s++){var a=t[s];if(r(a)&&Lr(e,a))return s}}function $(e,t,n,o,c,u){if(e!==t){r(t.elm)&&r(o)&&(t=o[c]=Ce(t));var d=t.elm=e.elm;if(s(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?D(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,f=t.data;r(f)&&r(h=f.hook)&&r(h=h.prepatch)&&h(e,t);var p=e.children,g=t.children;if(r(f)&&w(t)){for(h=0;h<a.update.length;++h)a.update[h](e,t);r(h=f.hook)&&r(h=h.update)&&h(e,t)}i(t.text)?r(p)&&r(g)?p!==g&&S(d,p,g,n,u):r(g)?(r(e.text)&&l.setTextContent(d,""),k(d,null,g,0,g.length-1,n)):r(p)?C(p,0,p.length-1):r(e.text)&&l.setTextContent(d,""):e.text!==t.text&&l.setTextContent(d,t.text),r(f)&&r(h=f.hook)&&r(h=h.postpatch)&&h(e,t)}}}function T(e,t,n){if(s(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var L=m("attrs,class,staticClass,staticStyle,key");function D(e,t,n,i){var a,o=t.tag,c=t.data,l=t.children;if(i=i||c&&c.pre,t.elm=e,s(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(c)&&(r(a=c.hook)&&r(a=a.init)&&a(t,!0),r(a=t.componentInstance)))return g(t,n),!0;if(r(o)){if(r(l))if(e.hasChildNodes())if(r(a=c)&&r(a=a.domProps)&&r(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,h=0;h<l.length;h++){if(!d||!D(d,l[h],n,i)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else y(t,l,n);if(r(c)){var f=!1;for(var p in c)if(!L(p)){f=!0,_(t,n);break}!f&&c["class"]&&bt(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,o){if(!i(t)){var c=!1,d=[];if(i(e))c=!0,f(t,d);else{var h=r(e.nodeType);if(!h&&Lr(e,t))$(e,t,d,null,null,o);else{if(h){if(1===e.nodeType&&e.hasAttribute(W)&&(e.removeAttribute(W),n=!0),s(n)&&D(e,t,d))return T(t,d,!0),e;e=u(e)}var p=e.elm,g=l.parentNode(p);if(f(t,d,p._leaveCb?null:g,l.nextSibling(p)),r(t.parent)){var m=t.parent,v=w(t);while(m){for(var b=0;b<a.destroy.length;++b)a.destroy[b](m);if(m.elm=t.elm,v){for(var y=0;y<a.create.length;++y)a.create[y]($r,m);var _=m.data.hook.insert;if(_.merged)for(var x=1;x<_.fns.length;x++)_.fns[x]()}else Fr(m);m=m.parent}}r(g)?C([e],0,0):r(e.tag)&&A(e)}}return T(t,d,c),t.elm}r(e)&&A(e)}}var Or={create:Mr,update:Mr,destroy:function(e){Mr(e,$r)}};function Mr(e,t){(e.data.directives||t.data.directives)&&jr(e,t)}function jr(e,t){var n,i,r,s=e===$r,a=t===$r,o=Pr(e.data.directives,e.context),c=Pr(t.data.directives,t.context),l=[],u=[];for(n in c)i=o[n],r=c[n],i?(r.oldValue=i.value,r.oldArg=i.arg,Wr(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):(Wr(r,"bind",t,e),r.def&&r.def.inserted&&l.push(r));if(l.length){var d=function(){for(var n=0;n<l.length;n++)Wr(l[n],"inserted",t,e)};s?kt(t,"insert",d):d()}if(u.length&&kt(t,"postpatch",(function(){for(var n=0;n<u.length;n++)Wr(u[n],"componentUpdated",t,e)})),!s)for(n in o)c[n]||Wr(o[n],"unbind",e,e,a)}var Ir=Object.create(null);function Pr(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)i=e[n],i.modifiers||(i.modifiers=Ir),r[Nr(i)]=i,i.def=Je(t.$options,"directives",i.name,!0);return r}function Nr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Wr(e,t,n,i,r){var s=e.def&&e.def[t];if(s)try{s(n.elm,e,n,i,r)}catch(Jl){it(Jl,n.context,"directive "+e.name+" "+t+" hook")}}var Hr=[Sr,Or];function Vr(e,t){var n=t.componentOptions;if((!r(n)||!1!==n.Ctor.options.inheritAttrs)&&(!i(e.data.attrs)||!i(t.data.attrs))){var s,a,o,c=t.elm,l=e.data.attrs||{},u=t.data.attrs||{};for(s in r(u.__ob__)&&(u=t.data.attrs=D({},u)),u)a=u[s],o=l[s],o!==a&&Ur(c,s,a);for(s in(ne||re)&&u.value!==l.value&&Ur(c,"value",u.value),l)i(u[s])&&(Ki(s)?c.removeAttributeNS(qi,Yi(s)):Vi(s)||c.removeAttribute(s))}}function Ur(e,t,n){e.tagName.indexOf("-")>-1?zr(e,t,n):Gi(t)?Xi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Vi(t)?e.setAttribute(t,zi(t,n)):Ki(t)?Xi(n)?e.removeAttributeNS(qi,Yi(t)):e.setAttributeNS(qi,t,n):zr(e,t,n)}function zr(e,t,n){if(Xi(n))e.removeAttribute(t);else{if(ne&&!ie&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var Gr={create:Vr,update:Vr};function qr(e,t){var n=t.elm,s=t.data,a=e.data;if(!(i(s.staticClass)&&i(s.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var o=Ji(t),c=n._transitionClasses;r(c)&&(o=er(o,tr(c))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Kr,Yr,Xr,Jr,Qr,Zr,es={create:qr,update:qr},ts=/[\w).+\-_$\]]/;function ns(e){var t,n,i,r,s,a=!1,o=!1,c=!1,l=!1,u=0,d=0,h=0,f=0;for(i=0;i<e.length;i++)if(n=t,t=e.charCodeAt(i),a)39===t&&92!==n&&(a=!1);else if(o)34===t&&92!==n&&(o=!1);else if(c)96===t&&92!==n&&(c=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||u||d||h){switch(t){case 34:o=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--;break}if(47===t){for(var p=i-1,g=void 0;p>=0;p--)if(g=e.charAt(p)," "!==g)break;g&&ts.test(g)||(l=!0)}}else void 0===r?(f=i+1,r=e.slice(0,i).trim()):m();function m(){(s||(s=[])).push(e.slice(f,i).trim()),f=i+1}if(void 0===r?r=e.slice(0,i).trim():0!==f&&m(),s)for(i=0;i<s.length;i++)r=is(r,s[i]);return r}function is(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var i=t.slice(0,n),r=t.slice(n+1);return'_f("'+i+'")('+e+(")"!==r?","+r:r)}function rs(e,t){console.error("[Vue compiler]: "+e)}function ss(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function as(e,t,n,i,r){(e.props||(e.props=[])).push(ms({name:t,value:n,dynamic:r},i)),e.plain=!1}function os(e,t,n,i,r){var s=r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[]);s.push(ms({name:t,value:n,dynamic:r},i)),e.plain=!1}function cs(e,t,n,i){e.attrsMap[t]=n,e.attrsList.push(ms({name:t,value:n},i))}function ls(e,t,n,i,r,s,a,o){(e.directives||(e.directives=[])).push(ms({name:t,rawName:n,value:i,arg:r,isDynamicArg:s,modifiers:a},o)),e.plain=!1}function us(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function ds(e,t,i,r,s,a,o,c){var l;r=r||n,r.right?c?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete r.right):r.middle&&(c?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),r.capture&&(delete r.capture,t=us("!",t,c)),r.once&&(delete r.once,t=us("~",t,c)),r.passive&&(delete r.passive,t=us("&",t,c)),r.native?(delete r.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});var u=ms({value:i.trim(),dynamic:c},o);r!==n&&(u.modifiers=r);var d=l[t];Array.isArray(d)?s?d.unshift(u):d.push(u):l[t]=d?s?[u,d]:[d,u]:u,e.plain=!1}function hs(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function fs(e,t,n){var i=ps(e,":"+t)||ps(e,"v-bind:"+t);if(null!=i)return ns(i);if(!1!==n){var r=ps(e,t);if(null!=r)return JSON.stringify(r)}}function ps(e,t,n){var i;if(null!=(i=e.attrsMap[t]))for(var r=e.attrsList,s=0,a=r.length;s<a;s++)if(r[s].name===t){r.splice(s,1);break}return n&&delete e.attrsMap[t],i}function gs(e,t){for(var n=e.attrsList,i=0,r=n.length;i<r;i++){var s=n[i];if(t.test(s.name))return n.splice(i,1),s}}function ms(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function vs(e,t,n){var i=n||{},r=i.number,s=i.trim,a="$$v",o=a;s&&(o="(typeof "+a+" === 'string'? "+a+".trim(): "+a+")"),r&&(o="_n("+o+")");var c=bs(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ("+a+") {"+c+"}"}}function bs(e,t){var n=ys(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function ys(e){if(e=e.trim(),Kr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<Kr-1)return Jr=e.lastIndexOf("."),Jr>-1?{exp:e.slice(0,Jr),key:'"'+e.slice(Jr+1)+'"'}:{exp:e,key:null};Yr=e,Jr=Qr=Zr=0;while(!_s())Xr=ws(),xs(Xr)?As(Xr):91===Xr&&ks(Xr);return{exp:e.slice(0,Qr),key:e.slice(Qr+1,Zr)}}function ws(){return Yr.charCodeAt(++Jr)}function _s(){return Jr>=Kr}function xs(e){return 34===e||39===e}function ks(e){var t=1;Qr=Jr;while(!_s())if(e=ws(),xs(e))As(e);else if(91===e&&t++,93===e&&t--,0===t){Zr=Jr;break}}function As(e){var t=e;while(!_s())if(e=ws(),e===t)break}var Cs,Es="__r",Ss="__c";function Fs(e,t,n){n;var i=t.value,r=t.modifiers,s=e.tag,a=e.attrsMap.type;if(e.component)return vs(e,i,r),!1;if("select"===s)Ls(e,i,r);else if("input"===s&&"checkbox"===a)$s(e,i,r);else if("input"===s&&"radio"===a)Ts(e,i,r);else if("input"===s||"textarea"===s)Ds(e,i,r);else{if(!U.isReservedTag(s))return vs(e,i,r),!1}return!0}function $s(e,t,n){var i=n&&n.number,r=fs(e,"value")||"null",s=fs(e,"true-value")||"true",a=fs(e,"false-value")||"false";as(e,"checked","Array.isArray("+t+")?_i("+t+","+r+")>-1"+("true"===s?":("+t+")":":_q("+t+","+s+")")),ds(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+s+"):("+a+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+bs(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+bs(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+bs(t,"$$c")+"}",null,!0)}function Ts(e,t,n){var i=n&&n.number,r=fs(e,"value")||"null";r=i?"_n("+r+")":r,as(e,"checked","_q("+t+","+r+")"),ds(e,"change",bs(t,r),null,!0)}function Ls(e,t,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})",s="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",a="var $$selectedVal = "+r+";";a=a+" "+bs(t,s),ds(e,"change",a,null,!0)}function Ds(e,t,n){var i=e.attrsMap.type,r=n||{},s=r.lazy,a=r.number,o=r.trim,c=!s&&"range"!==i,l=s?"change":"range"===i?Es:"input",u="$event.target.value";o&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var d=bs(t,u);c&&(d="if($event.target.composing)return;"+d),as(e,"value","("+t+")"),ds(e,l,d,null,!0),(o||a)&&ds(e,"blur","$forceUpdate()")}function Bs(e){if(r(e[Es])){var t=ne?"change":"input";e[t]=[].concat(e[Es],e[t]||[]),delete e[Es]}r(e[Ss])&&(e.change=[].concat(e[Ss],e.change||[]),delete e[Ss])}function Rs(e,t,n){var i=Cs;return function r(){var s=t.apply(null,arguments);null!==s&&js(e,r,n,i)}}var Os=ct&&!(ae&&Number(ae[1])<=53);function Ms(e,t,n,i){if(Os){var r=Yn,s=t;t=s._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return s.apply(this,arguments)}}Cs.addEventListener(e,t,ce?{capture:n,passive:i}:n)}function js(e,t,n,i){(i||Cs).removeEventListener(e,t._wrapper||t,n)}function Is(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Cs=t.elm,Bs(n),xt(n,r,Ms,js,Rs,t.context),Cs=void 0}}var Ps,Ns={create:Is,update:Is};function Ws(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,s,a=t.elm,o=e.data.domProps||{},c=t.data.domProps||{};for(n in r(c.__ob__)&&(c=t.data.domProps=D({},c)),o)n in c||(a[n]="");for(n in c){if(s=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),s===o[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=s;var l=i(s)?"":String(s);Hs(a,l)&&(a.value=l)}else if("innerHTML"===n&&ar(a.tagName)&&i(a.innerHTML)){Ps=Ps||document.createElement("div"),Ps.innerHTML="<svg>"+s+"</svg>";var u=Ps.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(u.firstChild)a.appendChild(u.firstChild)}else if(s!==o[n])try{a[n]=s}catch(Jl){}}}}function Hs(e,t){return!e.composing&&("OPTION"===e.tagName||Vs(e,t)||Us(e,t))}function Vs(e,t){var n=!0;try{n=document.activeElement!==e}catch(Jl){}return n&&e.value!==t}function Us(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return g(n)!==g(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var zs={create:Ws,update:Ws},Gs=x((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function qs(e){var t=Ks(e.style);return e.staticStyle?D(e.staticStyle,t):t}function Ks(e){return Array.isArray(e)?B(e):"string"===typeof e?Gs(e):e}function Ys(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=qs(r.data))&&D(i,n)}(n=qs(e.data))&&D(i,n);var s=e;while(s=s.parent)s.data&&(n=qs(s.data))&&D(i,n);return i}var Xs,Js=/^--/,Qs=/\s*!important$/,Zs=function(e,t,n){if(Js.test(t))e.style.setProperty(t,n);else if(Qs.test(n))e.style.setProperty(S(t),n.replace(Qs,""),"important");else{var i=ta(t);if(Array.isArray(n))for(var r=0,s=n.length;r<s;r++)e.style[i]=n[r];else e.style[i]=n}},ea=["Webkit","Moz","ms"],ta=x((function(e){if(Xs=Xs||document.createElement("div").style,e=A(e),"filter"!==e&&e in Xs)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ea.length;n++){var i=ea[n]+t;if(i in Xs)return i}}));function na(e,t){var n=t.data,s=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(s.staticStyle)&&i(s.style))){var a,o,c=t.elm,l=s.staticStyle,u=s.normalizedStyle||s.style||{},d=l||u,h=Ks(t.data.style)||{};t.data.normalizedStyle=r(h.__ob__)?D({},h):h;var f=Ys(t,!0);for(o in d)i(f[o])&&Zs(c,o,"");for(o in f)a=f[o],a!==d[o]&&Zs(c,o,null==a?"":a)}}var ia={create:na,update:na},ra=/\s+/;function sa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ra).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function aa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ra).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function oa(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,ca(e.name||"v")),D(t,e),t}return"string"===typeof e?ca(e):void 0}}var ca=x((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),la=Q&&!ie,ua="transition",da="animation",ha="transition",fa="transitionend",pa="animation",ga="animationend";la&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ha="WebkitTransition",fa="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(pa="WebkitAnimation",ga="webkitAnimationEnd"));var ma=Q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function va(e){ma((function(){ma(e)}))}function ba(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),sa(e,t))}function ya(e,t){e._transitionClasses&&y(e._transitionClasses,t),aa(e,t)}function wa(e,t,n){var i=xa(e,t),r=i.type,s=i.timeout,a=i.propCount;if(!r)return n();var o=r===ua?fa:ga,c=0,l=function(){e.removeEventListener(o,u),n()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout((function(){c<a&&l()}),s+1),e.addEventListener(o,u)}var _a=/\b(transform|all)(,|$)/;function xa(e,t){var n,i=window.getComputedStyle(e),r=(i[ha+"Delay"]||"").split(", "),s=(i[ha+"Duration"]||"").split(", "),a=ka(r,s),o=(i[pa+"Delay"]||"").split(", "),c=(i[pa+"Duration"]||"").split(", "),l=ka(o,c),u=0,d=0;t===ua?a>0&&(n=ua,u=a,d=s.length):t===da?l>0&&(n=da,u=l,d=c.length):(u=Math.max(a,l),n=u>0?a>l?ua:da:null,d=n?n===ua?s.length:c.length:0);var h=n===ua&&_a.test(i[ha+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:h}}function ka(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Aa(t)+Aa(e[n])})))}function Aa(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ca(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var s=oa(e.data.transition);if(!i(s)&&!r(n._enterCb)&&1===n.nodeType){var a=s.css,o=s.type,l=s.enterClass,u=s.enterToClass,d=s.enterActiveClass,h=s.appearClass,f=s.appearToClass,p=s.appearActiveClass,m=s.beforeEnter,v=s.enter,b=s.afterEnter,y=s.enterCancelled,w=s.beforeAppear,_=s.appear,x=s.afterAppear,k=s.appearCancelled,A=s.duration,C=Dn,E=Dn.$vnode;while(E&&E.parent)C=E.context,E=E.parent;var S=!C._isMounted||!e.isRootInsert;if(!S||_||""===_){var F=S&&h?h:l,$=S&&p?p:d,T=S&&f?f:u,L=S&&w||m,D=S&&"function"===typeof _?_:v,B=S&&x||b,R=S&&k||y,O=g(c(A)?A.enter:A);0;var M=!1!==a&&!ie,j=Fa(D),I=n._enterCb=N((function(){M&&(ya(n,T),ya(n,$)),I.cancelled?(M&&ya(n,F),R&&R(n)):B&&B(n),n._enterCb=null}));e.data.show||kt(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),D&&D(n,I)})),L&&L(n),M&&(ba(n,F),ba(n,$),va((function(){ya(n,F),I.cancelled||(ba(n,T),j||(Sa(O)?setTimeout(I,O):wa(n,o,I)))}))),e.data.show&&(t&&t(),D&&D(n,I)),M||j||I()}}}function Ea(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var s=oa(e.data.transition);if(i(s)||1!==n.nodeType)return t();if(!r(n._leaveCb)){var a=s.css,o=s.type,l=s.leaveClass,u=s.leaveToClass,d=s.leaveActiveClass,h=s.beforeLeave,f=s.leave,p=s.afterLeave,m=s.leaveCancelled,v=s.delayLeave,b=s.duration,y=!1!==a&&!ie,w=Fa(f),_=g(c(b)?b.leave:b);0;var x=n._leaveCb=N((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(ya(n,u),ya(n,d)),x.cancelled?(y&&ya(n,l),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));v?v(k):k()}function k(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),y&&(ba(n,l),ba(n,d),va((function(){ya(n,l),x.cancelled||(ba(n,u),w||(Sa(_)?setTimeout(x,_):wa(n,o,x)))}))),f&&f(n,x),y||w||x())}}function Sa(e){return"number"===typeof e&&!isNaN(e)}function Fa(e){if(i(e))return!1;var t=e.fns;return r(t)?Fa(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function $a(e,t){!0!==t.data.show&&Ca(t)}var Ta=Q?{create:$a,activate:$a,remove:function(e,t){!0!==e.data.show?Ea(e,t):t()}}:{},La=[Gr,es,Ns,zs,ia,Ta],Da=La.concat(Hr),Ba=Rr({nodeOps:Er,modules:Da});ie&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Wa(e,"input")}));var Ra={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?kt(n,"postpatch",(function(){Ra.componentUpdated(e,t,n)})):Oa(e,t,n.context),e._vOptions=[].map.call(e.options,Ia)):("textarea"===n.tag||hr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Pa),e.addEventListener("compositionend",Na),e.addEventListener("change",Na),ie&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Oa(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,Ia);if(r.some((function(e,t){return!I(e,i[t])}))){var s=e.multiple?t.value.some((function(e){return ja(e,r)})):t.value!==t.oldValue&&ja(t.value,r);s&&Wa(e,"change")}}}};function Oa(e,t,n){Ma(e,t,n),(ne||re)&&setTimeout((function(){Ma(e,t,n)}),0)}function Ma(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var s,a,o=0,c=e.options.length;o<c;o++)if(a=e.options[o],r)s=P(i,Ia(a))>-1,a.selected!==s&&(a.selected=s);else if(I(Ia(a),i))return void(e.selectedIndex!==o&&(e.selectedIndex=o));r||(e.selectedIndex=-1)}}function ja(e,t){return t.every((function(t){return!I(t,e)}))}function Ia(e){return"_value"in e?e._value:e.value}function Pa(e){e.target.composing=!0}function Na(e){e.target.composing&&(e.target.composing=!1,Wa(e.target,"input"))}function Wa(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ha(e){return!e.componentInstance||e.data&&e.data.transition?e:Ha(e.componentInstance._vnode)}var Va={bind:function(e,t,n){var i=t.value;n=Ha(n);var r=n.data&&n.data.transition,s=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,Ca(n,(function(){e.style.display=s}))):e.style.display=i?s:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=Ha(n);var s=n.data&&n.data.transition;s?(n.data.show=!0,i?Ca(n,(function(){e.style.display=e.__vOriginalDisplay})):Ea(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},Ua={model:Ra,show:Va},za={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ga(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ga(Cn(t.children)):e}function qa(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var s in r)t[A(s)]=r[s];return t}function Ka(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Ya(e){while(e=e.parent)if(e.data.transition)return!0}function Xa(e,t){return t.key===e.key&&t.tag===e.tag}var Ja=function(e){return e.tag||An(e)},Qa=function(e){return"show"===e.name},Za={name:"transition",props:za,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ja),n.length)){0;var i=this.mode;0;var r=n[0];if(Ya(this.$vnode))return r;var s=Ga(r);if(!s)return r;if(this._leaving)return Ka(e,r);var a="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?a+"comment":a+s.tag:o(s.key)?0===String(s.key).indexOf(a)?s.key:a+s.key:s.key;var c=(s.data||(s.data={})).transition=qa(this),l=this._vnode,u=Ga(l);if(s.data.directives&&s.data.directives.some(Qa)&&(s.data.show=!0),u&&u.data&&!Xa(s,u)&&!An(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=D({},c);if("out-in"===i)return this._leaving=!0,kt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ka(e,r);if("in-out"===i){if(An(s))return l;var h,f=function(){h()};kt(c,"afterEnter",f),kt(c,"enterCancelled",f),kt(d,"delayLeave",(function(e){h=e}))}}return r}}},eo=D({tag:String,moveClass:String},za);delete eo.mode;var to={props:eo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=Bn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],s=this.children=[],a=qa(this),o=0;o<r.length;o++){var c=r[o];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))s.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(i){for(var l=[],u=[],d=0;d<i.length;d++){var h=i[d];h.data.transition=a,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?l.push(h):u.push(h)}this.kept=e(t,null,l),this.removed=u}return e(t,null,s)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(no),e.forEach(io),e.forEach(ro),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;ba(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(fa,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(fa,e),n._moveCb=null,ya(n,t))})}})))},methods:{hasMove:function(e,t){if(!la)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){aa(n,e)})),sa(n,t),n.style.display="none",this.$el.appendChild(n);var i=xa(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function no(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function io(e){e.data.newPos=e.elm.getBoundingClientRect()}function ro(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var s=e.elm.style;s.transform=s.WebkitTransform="translate("+i+"px,"+r+"px)",s.transitionDuration="0s"}}var so={Transition:Za,TransitionGroup:to};Ci.config.mustUseProp=Hi,Ci.config.isReservedTag=cr,Ci.config.isReservedAttr=Ni,Ci.config.getTagNamespace=lr,Ci.config.isUnknownElement=dr,D(Ci.options.directives,Ua),D(Ci.options.components,so),Ci.prototype.__patch__=Q?Ba:R,Ci.prototype.$mount=function(e,t){return e=e&&Q?fr(e):void 0,Mn(this,e,t)},Q&&setTimeout((function(){U.devtools&&de&&de.emit("init",Ci)}),0);var ao=/\{\{((?:.|\r?\n)+?)\}\}/g,oo=/[-.*+?^${}()|[\]\/\\]/g,co=x((function(e){var t=e[0].replace(oo,"\\$&"),n=e[1].replace(oo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));function lo(e,t){var n=t?co(t):ao;if(n.test(e)){var i,r,s,a=[],o=[],c=n.lastIndex=0;while(i=n.exec(e)){r=i.index,r>c&&(o.push(s=e.slice(c,r)),a.push(JSON.stringify(s)));var l=ns(i[1].trim());a.push("_s("+l+")"),o.push({"@binding":l}),c=r+i[0].length}return c<e.length&&(o.push(s=e.slice(c)),a.push(JSON.stringify(s))),{expression:a.join("+"),tokens:o}}}function uo(e,t){t.warn;var n=ps(e,"class");n&&(e.staticClass=JSON.stringify(n));var i=fs(e,"class",!1);i&&(e.classBinding=i)}function ho(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}var fo={staticKeys:["staticClass"],transformNode:uo,genData:ho};function po(e,t){t.warn;var n=ps(e,"style");n&&(e.staticStyle=JSON.stringify(Gs(n)));var i=fs(e,"style",!1);i&&(e.styleBinding=i)}function go(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}var mo,vo={staticKeys:["staticStyle"],transformNode:po,genData:go},bo={decode:function(e){return mo=mo||document.createElement("div"),mo.innerHTML=e,mo.textContent}},yo=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),wo=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),_o=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),xo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ao="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+z.source+"]*",Co="((?:"+Ao+"\\:)?"+Ao+")",Eo=new RegExp("^<"+Co),So=/^\s*(\/?)>/,Fo=new RegExp("^<\\/"+Co+"[^>]*>"),$o=/^<!DOCTYPE [^>]+>/i,To=/^<!\--/,Lo=/^<!\[/,Do=m("script,style,textarea",!0),Bo={},Ro={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Oo=/&(?:lt|gt|quot|amp|#39);/g,Mo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,jo=m("pre,textarea",!0),Io=function(e,t){return e&&jo(e)&&"\n"===t[0]};function Po(e,t){var n=t?Mo:Oo;return e.replace(n,(function(e){return Ro[e]}))}function No(e,t){var n,i,r=[],s=t.expectHTML,a=t.isUnaryTag||O,o=t.canBeLeftOpenTag||O,c=0;while(e){if(n=e,i&&Do(i)){var l=0,u=i.toLowerCase(),d=Bo[u]||(Bo[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),h=e.replace(d,(function(e,n,i){return l=i.length,Do(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Io(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-h.length,e=h,E(u,c-l,c)}else{var f=e.indexOf("<");if(0===f){if(To.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),c,c+p+3),k(p+3);continue}}if(Lo.test(e)){var g=e.indexOf("]>");if(g>=0){k(g+2);continue}}var m=e.match($o);if(m){k(m[0].length);continue}var v=e.match(Fo);if(v){var b=c;k(v[0].length),E(v[1],b,c);continue}var y=A();if(y){C(y),Io(y.tagName,e)&&k(1);continue}}var w=void 0,_=void 0,x=void 0;if(f>=0){_=e.slice(f);while(!Fo.test(_)&&!Eo.test(_)&&!To.test(_)&&!Lo.test(_)){if(x=_.indexOf("<",1),x<0)break;f+=x,_=e.slice(f)}w=e.substring(0,f)}f<0&&(w=e),w&&k(w.length),t.chars&&w&&t.chars(w,c-w.length,c)}if(e===n){t.chars&&t.chars(e);break}}function k(t){c+=t,e=e.substring(t)}function A(){var t=e.match(Eo);if(t){var n,i,r={tagName:t[1],attrs:[],start:c};k(t[0].length);while(!(n=e.match(So))&&(i=e.match(ko)||e.match(xo)))i.start=c,k(i[0].length),i.end=c,r.attrs.push(i);if(n)return r.unarySlash=n[1],k(n[0].length),r.end=c,r}}function C(e){var n=e.tagName,c=e.unarySlash;s&&("p"===i&&_o(n)&&E(i),o(n)&&i===n&&E(n));for(var l=a(n)||!!c,u=e.attrs.length,d=new Array(u),h=0;h<u;h++){var f=e.attrs[h],p=f[3]||f[4]||f[5]||"",g="a"===n&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[h]={name:f[1],value:Po(p,g)}}l||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),i=n),t.start&&t.start(n,d,l,e.start,e.end)}function E(e,n,s){var a,o;if(null==n&&(n=c),null==s&&(s=c),e){for(o=e.toLowerCase(),a=r.length-1;a>=0;a--)if(r[a].lowerCasedTag===o)break}else a=0;if(a>=0){for(var l=r.length-1;l>=a;l--)t.end&&t.end(r[l].tag,n,s);r.length=a,i=a&&r[a-1].tag}else"br"===o?t.start&&t.start(e,[],!0,n,s):"p"===o&&(t.start&&t.start(e,[],!1,n,s),t.end&&t.end(e,n,s))}E()}var Wo,Ho,Vo,Uo,zo,Go,qo,Ko,Yo=/^@|^v-on:/,Xo=/^v-|^@|^:|^#/,Jo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Qo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Zo=/^\(|\)$/g,ec=/^\[.*\]$/,tc=/:(.*)$/,nc=/^:|^\.|^v-bind:/,ic=/\.[^.\]]+(?=[^\]]*$)/g,rc=/^v-slot(:|$)|^#/,sc=/[\r\n]/,ac=/\s+/g,oc=x(bo.decode),cc="_empty_";function lc(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Tc(t),rawAttrsMap:{},parent:n,children:[]}}function uc(e,t){Wo=t.warn||rs,Go=t.isPreTag||O,qo=t.mustUseProp||O,Ko=t.getTagNamespace||O;var n=t.isReservedTag||O;(function(e){return!!e.component||!n(e.tag)}),Vo=ss(t.modules,"transformNode"),Uo=ss(t.modules,"preTransformNode"),zo=ss(t.modules,"postTransformNode"),Ho=t.delimiters;var i,r,s=[],a=!1!==t.preserveWhitespace,o=t.whitespace,c=!1,l=!1;function u(e){if(d(e),c||e.processed||(e=fc(e,t)),s.length||e===i||i.if&&(e.elseif||e.else)&&_c(i,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)yc(e,r);else{if(e.slotScope){var n=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=e}r.children.push(e),e.parent=r}e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(c=!1),Go(e.tag)&&(l=!1);for(var a=0;a<zo.length;a++)zo[a](e,t)}function d(e){var t;if(!l)while((t=e.children[e.children.length-1])&&3===t.type&&" "===t.text)e.children.pop()}return No(e,{warn:Wo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,o,d){var h=r&&r.ns||Ko(e);ne&&"svg"===h&&(n=Oc(n));var f=lc(e,n,r);h&&(f.ns=h),Dc(f)&&!ue()&&(f.forbidden=!0);for(var p=0;p<Uo.length;p++)f=Uo[p](f,t)||f;c||(dc(f),f.pre&&(c=!0)),Go(f.tag)&&(l=!0),c?hc(f):f.processed||(mc(f),bc(f),xc(f)),i||(i=f),a?u(f):(r=f,s.push(f))},end:function(e,t,n){var i=s[s.length-1];s.length-=1,r=s[s.length-1],u(i)},chars:function(e,t,n){if(r&&(!ne||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var i,s,u=r.children;if(e=l||e.trim()?Lc(r)?e:oc(e):u.length?o?"condense"===o&&sc.test(e)?"":" ":a?" ":"":"",e)l||"condense"!==o||(e=e.replace(ac," ")),!c&&" "!==e&&(i=lo(e,Ho))?s={type:2,expression:i.expression,tokens:i.tokens,text:e}:" "===e&&u.length&&" "===u[u.length-1].text||(s={type:3,text:e}),s&&u.push(s)}},comment:function(e,t,n){if(r){var i={type:3,text:e,isComment:!0};0,r.children.push(i)}}}),i}function dc(e){null!=ps(e,"v-pre")&&(e.pre=!0)}function hc(e){var t=e.attrsList,n=t.length;if(n)for(var i=e.attrs=new Array(n),r=0;r<n;r++)i[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(i[r].start=t[r].start,i[r].end=t[r].end);else e.pre||(e.plain=!0)}function fc(e,t){pc(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,gc(e),kc(e),Cc(e),Ec(e);for(var n=0;n<Vo.length;n++)e=Vo[n](e,t)||e;return Sc(e),e}function pc(e){var t=fs(e,"key");t&&(e.key=t)}function gc(e){var t=fs(e,"ref");t&&(e.ref=t,e.refInFor=Fc(e))}function mc(e){var t;if(t=ps(e,"v-for")){var n=vc(t);n&&D(e,n)}}function vc(e){var t=e.match(Jo);if(t){var n={};n.for=t[2].trim();var i=t[1].trim().replace(Zo,""),r=i.match(Qo);return r?(n.alias=i.replace(Qo,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i,n}}function bc(e){var t=ps(e,"v-if");if(t)e.if=t,_c(e,{exp:t,block:e});else{null!=ps(e,"v-else")&&(e.else=!0);var n=ps(e,"v-else-if");n&&(e.elseif=n)}}function yc(e,t){var n=wc(t.children);n&&n.if&&_c(n,{exp:e.elseif,block:e})}function wc(e){var t=e.length;while(t--){if(1===e[t].type)return e[t];e.pop()}}function _c(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function xc(e){var t=ps(e,"v-once");null!=t&&(e.once=!0)}function kc(e){var t;"template"===e.tag?(t=ps(e,"scope"),e.slotScope=t||ps(e,"slot-scope")):(t=ps(e,"slot-scope"))&&(e.slotScope=t);var n=fs(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||os(e,"slot",n,hs(e,"slot"))),"template"===e.tag){var i=gs(e,rc);if(i){0;var r=Ac(i),s=r.name,a=r.dynamic;e.slotTarget=s,e.slotTargetDynamic=a,e.slotScope=i.value||cc}}else{var o=gs(e,rc);if(o){0;var c=e.scopedSlots||(e.scopedSlots={}),l=Ac(o),u=l.name,d=l.dynamic,h=c[u]=lc("template",[],e);h.slotTarget=u,h.slotTargetDynamic=d,h.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=h,!0})),h.slotScope=o.value||cc,e.children=[],e.plain=!1}}}function Ac(e){var t=e.name.replace(rc,"");return t||"#"!==e.name[0]&&(t="default"),ec.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function Cc(e){"slot"===e.tag&&(e.slotName=fs(e,"name"))}function Ec(e){var t;(t=fs(e,"is"))&&(e.component=t),null!=ps(e,"inline-template")&&(e.inlineTemplate=!0)}function Sc(e){var t,n,i,r,s,a,o,c,l=e.attrsList;for(t=0,n=l.length;t<n;t++){if(i=r=l[t].name,s=l[t].value,Xo.test(i))if(e.hasBindings=!0,a=$c(i.replace(Xo,"")),a&&(i=i.replace(ic,"")),nc.test(i))i=i.replace(nc,""),s=ns(s),c=ec.test(i),c&&(i=i.slice(1,-1)),a&&(a.prop&&!c&&(i=A(i),"innerHtml"===i&&(i="innerHTML")),a.camel&&!c&&(i=A(i)),a.sync&&(o=bs(s,"$event"),c?ds(e,'"update:"+('+i+")",o,null,!1,Wo,l[t],!0):(ds(e,"update:"+A(i),o,null,!1,Wo,l[t]),S(i)!==A(i)&&ds(e,"update:"+S(i),o,null,!1,Wo,l[t])))),a&&a.prop||!e.component&&qo(e.tag,e.attrsMap.type,i)?as(e,i,s,l[t],c):os(e,i,s,l[t],c);else if(Yo.test(i))i=i.replace(Yo,""),c=ec.test(i),c&&(i=i.slice(1,-1)),ds(e,i,s,a,!1,Wo,l[t],c);else{i=i.replace(Xo,"");var u=i.match(tc),d=u&&u[1];c=!1,d&&(i=i.slice(0,-(d.length+1)),ec.test(d)&&(d=d.slice(1,-1),c=!0)),ls(e,i,r,s,d,c,a,l[t])}else os(e,i,JSON.stringify(s),l[t]),!e.component&&"muted"===i&&qo(e.tag,e.attrsMap.type,i)&&as(e,i,"true",l[t])}}function Fc(e){var t=e;while(t){if(void 0!==t.for)return!0;t=t.parent}return!1}function $c(e){var t=e.match(ic);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function Tc(e){for(var t={},n=0,i=e.length;n<i;n++)t[e[n].name]=e[n].value;return t}function Lc(e){return"script"===e.tag||"style"===e.tag}function Dc(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var Bc=/^xmlns:NS\d+/,Rc=/^NS\d+:/;function Oc(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Bc.test(i.name)||(i.name=i.name.replace(Rc,""),t.push(i))}return t}function Mc(e,t){if("input"===e.tag){var n,i=e.attrsMap;if(!i["v-model"])return;if((i[":type"]||i["v-bind:type"])&&(n=fs(e,"type")),i.type||n||!i["v-bind"]||(n="("+i["v-bind"]+").type"),n){var r=ps(e,"v-if",!0),s=r?"&&("+r+")":"",a=null!=ps(e,"v-else",!0),o=ps(e,"v-else-if",!0),c=jc(e);mc(c),cs(c,"type","checkbox"),fc(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+s,_c(c,{exp:c.if,block:c});var l=jc(e);ps(l,"v-for",!0),cs(l,"type","radio"),fc(l,t),_c(c,{exp:"("+n+")==='radio'"+s,block:l});var u=jc(e);return ps(u,"v-for",!0),cs(u,":type",n),fc(u,t),_c(c,{exp:r,block:u}),a?c.else=!0:o&&(c.elseif=o),c}}}function jc(e){return lc(e.tag,e.attrsList.slice(),e.parent)}var Ic={preTransformNode:Mc},Pc=[fo,vo,Ic];function Nc(e,t){t.value&&as(e,"textContent","_s("+t.value+")",t)}function Wc(e,t){t.value&&as(e,"innerHTML","_s("+t.value+")",t)}var Hc,Vc,Uc={model:Fs,text:Nc,html:Wc},zc={expectHTML:!0,modules:Pc,directives:Uc,isPreTag:or,isUnaryTag:yo,mustUseProp:Hi,canBeLeftOpenTag:wo,isReservedTag:cr,getTagNamespace:lr,staticKeys:j(Pc)},Gc=x(Kc);function qc(e,t){e&&(Hc=Gc(t.staticKeys||""),Vc=t.isReservedTag||O,Yc(e),Xc(e,!1))}function Kc(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Yc(e){if(e.static=Jc(e),1===e.type){if(!Vc(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var i=e.children[t];Yc(i),i.static||(e.static=!1)}if(e.ifConditions)for(var r=1,s=e.ifConditions.length;r<s;r++){var a=e.ifConditions[r].block;Yc(a),a.static||(e.static=!1)}}}function Xc(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,i=e.children.length;n<i;n++)Xc(e.children[n],t||!!e.for);if(e.ifConditions)for(var r=1,s=e.ifConditions.length;r<s;r++)Xc(e.ifConditions[r].block,t)}}function Jc(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!Vc(e.tag)||Qc(e)||!Object.keys(e).every(Hc))))}function Qc(e){while(e.parent){if(e=e.parent,"template"!==e.tag)return!1;if(e.for)return!0}return!1}var Zc=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,el=/\([^)]*?\);*$/,tl=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,nl={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},il={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},rl=function(e){return"if("+e+")return null;"},sl={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:rl("$event.target !== $event.currentTarget"),ctrl:rl("!$event.ctrlKey"),shift:rl("!$event.shiftKey"),alt:rl("!$event.altKey"),meta:rl("!$event.metaKey"),left:rl("'button' in $event && $event.button !== 0"),middle:rl("'button' in $event && $event.button !== 1"),right:rl("'button' in $event && $event.button !== 2")};function al(e,t){var n=t?"nativeOn:":"on:",i="",r="";for(var s in e){var a=ol(e[s]);e[s]&&e[s].dynamic?r+=s+","+a+",":i+='"'+s+'":'+a+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function ol(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return ol(e)})).join(",")+"]";var t=tl.test(e.value),n=Zc.test(e.value),i=tl.test(e.value.replace(el,""));if(e.modifiers){var r="",s="",a=[];for(var o in e.modifiers)if(sl[o])s+=sl[o],nl[o]&&a.push(o);else if("exact"===o){var c=e.modifiers;s+=rl(["ctrl","shift","alt","meta"].filter((function(e){return!c[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(o);a.length&&(r+=cl(a)),s&&(r+=s);var l=t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":i?"return "+e.value:e.value;return"function($event){"+r+l+"}"}return t||n?e.value:"function($event){"+(i?"return "+e.value:e.value)+"}"}function cl(e){return"if(!$event.type.indexOf('key')&&"+e.map(ll).join("&&")+")return null;"}function ll(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=nl[e],i=il[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}function ul(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}}function dl(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}}var hl={on:ul,bind:dl,cloak:R},fl=function(e){this.options=e,this.warn=e.warn||rs,this.transforms=ss(e.modules,"transformCode"),this.dataGenFns=ss(e.modules,"genData"),this.directives=D(D({},hl),e.directives);var t=e.isReservedTag||O;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function pl(e,t){var n=new fl(t),i=e?gl(e,n):'_c("div")';return{render:"with(this){return "+i+"}",staticRenderFns:n.staticRenderFns}}function gl(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return ml(e,t);if(e.once&&!e.onceProcessed)return vl(e,t);if(e.for&&!e.forProcessed)return wl(e,t);if(e.if&&!e.ifProcessed)return bl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return Rl(e,t);var n;if(e.component)n=Ol(e.component,e,t);else{var i;(!e.plain||e.pre&&t.maybeComponent(e))&&(i=_l(e,t));var r=e.inlineTemplate?null:Fl(e,t,!0);n="_c('"+e.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var s=0;s<t.transforms.length;s++)n=t.transforms[s](e,n);return n}return Fl(e,t)||"void 0"}function ml(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+gl(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function vl(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return bl(e,t);if(e.staticInFor){var n="",i=e.parent;while(i){if(i.for){n=i.key;break}i=i.parent}return n?"_o("+gl(e,t)+","+t.onceId+++","+n+")":gl(e,t)}return ml(e,t)}function bl(e,t,n,i){return e.ifProcessed=!0,yl(e.ifConditions.slice(),t,n,i)}function yl(e,t,n,i){if(!e.length)return i||"_e()";var r=e.shift();return r.exp?"("+r.exp+")?"+s(r.block)+":"+yl(e,t,n,i):""+s(r.block);function s(e){return n?n(e,t):e.once?vl(e,t):gl(e,t)}}function wl(e,t,n,i){var r=e.for,s=e.alias,a=e.iterator1?","+e.iterator1:"",o=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(i||"_l")+"(("+r+"),function("+s+a+o+"){return "+(n||gl)(e,t)+"})"}function _l(e,t){var n="{",i=xl(e,t);i&&(n+=i+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](e);if(e.attrs&&(n+="attrs:"+Ml(e.attrs)+","),e.props&&(n+="domProps:"+Ml(e.props)+","),e.events&&(n+=al(e.events,!1)+","),e.nativeEvents&&(n+=al(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=Al(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var s=kl(e,t);s&&(n+=s+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ml(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function xl(e,t){var n=e.directives;if(n){var i,r,s,a,o="directives:[",c=!1;for(i=0,r=n.length;i<r;i++){s=n[i],a=!0;var l=t.directives[s.name];l&&(a=!!l(e,s,t.warn)),a&&(c=!0,o+='{name:"'+s.name+'",rawName:"'+s.rawName+'"'+(s.value?",value:("+s.value+"),expression:"+JSON.stringify(s.value):"")+(s.arg?",arg:"+(s.isDynamicArg?s.arg:'"'+s.arg+'"'):"")+(s.modifiers?",modifiers:"+JSON.stringify(s.modifiers):"")+"},")}return c?o.slice(0,-1)+"]":void 0}}function kl(e,t){var n=e.children[0];if(n&&1===n.type){var i=pl(n,t.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}function Al(e,t,n){var i=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||El(n)})),r=!!e.if;if(!i){var s=e.parent;while(s){if(s.slotScope&&s.slotScope!==cc||s.for){i=!0;break}s.if&&(r=!0),s=s.parent}}var a=Object.keys(t).map((function(e){return Sl(t[e],n)})).join(",");return"scopedSlots:_u(["+a+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+Cl(a):"")+")"}function Cl(e){var t=5381,n=e.length;while(n)t=33*t^e.charCodeAt(--n);return t>>>0}function El(e){return 1===e.type&&("slot"===e.tag||e.children.some(El))}function Sl(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return bl(e,t,Sl,"null");if(e.for&&!e.forProcessed)return wl(e,t,Sl);var i=e.slotScope===cc?"":String(e.slotScope),r="function("+i+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Fl(e,t)||"undefined")+":undefined":Fl(e,t)||"undefined":gl(e,t))+"}",s=i?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+s+"}"}function Fl(e,t,n,i,r){var s=e.children;if(s.length){var a=s[0];if(1===s.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var o=n?t.maybeComponent(a)?",1":",0":"";return""+(i||gl)(a,t)+o}var c=n?$l(s,t.maybeComponent):0,l=r||Ll;return"["+s.map((function(e){return l(e,t)})).join(",")+"]"+(c?","+c:"")}}function $l(e,t){for(var n=0,i=0;i<e.length;i++){var r=e[i];if(1===r.type){if(Tl(r)||r.ifConditions&&r.ifConditions.some((function(e){return Tl(e.block)}))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}function Tl(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Ll(e,t){return 1===e.type?gl(e,t):3===e.type&&e.isComment?Bl(e):Dl(e)}function Dl(e){return"_v("+(2===e.type?e.expression:jl(JSON.stringify(e.text)))+")"}function Bl(e){return"_e("+JSON.stringify(e.text)+")"}function Rl(e,t){var n=e.slotName||'"default"',i=Fl(e,t),r="_t("+n+(i?","+i:""),s=e.attrs||e.dynamicAttrs?Ml((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:A(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];return!s&&!a||i||(r+=",null"),s&&(r+=","+s),a&&(r+=(s?"":",null")+","+a),r+")"}function Ol(e,t,n){var i=t.inlineTemplate?null:Fl(t,n,!0);return"_c("+e+","+_l(t,n)+(i?","+i:"")+")"}function Ml(e){for(var t="",n="",i=0;i<e.length;i++){var r=e[i],s=jl(r.value);r.dynamic?n+=r.name+","+s+",":t+='"'+r.name+'":'+s+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function jl(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Il(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),R}}function Pl(e){var t=Object.create(null);return function(n,i,r){i=D({},i);i.warn;delete i.warn;var s=i.delimiters?String(i.delimiters)+n:n;if(t[s])return t[s];var a=e(n,i);var o={},c=[];return o.render=Il(a.render,c),o.staticRenderFns=a.staticRenderFns.map((function(e){return Il(e,c)})),t[s]=o}}function Nl(e){return function(t){function n(n,i){var r=Object.create(t),s=[],a=[],o=function(e,t,n){(n?a:s).push(e)};if(i)for(var c in i.modules&&(r.modules=(t.modules||[]).concat(i.modules)),i.directives&&(r.directives=D(Object.create(t.directives||null),i.directives)),i)"modules"!==c&&"directives"!==c&&(r[c]=i[c]);r.warn=o;var l=e(n.trim(),r);return l.errors=s,l.tips=a,l}return{compile:n,compileToFunctions:Pl(n)}}}var Wl,Hl=Nl((function(e,t){var n=uc(e.trim(),t);!1!==t.optimize&&qc(n,t);var i=pl(n,t);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}})),Vl=Hl(zc),Ul=(Vl.compile,Vl.compileToFunctions);function zl(e){return Wl=Wl||document.createElement("div"),Wl.innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Wl.innerHTML.indexOf(" ")>0}var Gl=!!Q&&zl(!1),ql=!!Q&&zl(!0),Kl=x((function(e){var t=fr(e);return t&&t.innerHTML})),Yl=Ci.prototype.$mount;function Xl(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}Ci.prototype.$mount=function(e,t){if(e=e&&fr(e),e===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"===typeof i)"#"===i.charAt(0)&&(i=Kl(i));else{if(!i.nodeType)return this;i=i.innerHTML}else e&&(i=Xl(e));if(i){0;var r=Ul(i,{outputSourceRange:!1,shouldDecodeNewlines:Gl,shouldDecodeNewlinesForHref:ql,delimiters:n.delimiters,comments:n.comments},this),s=r.render,a=r.staticRenderFns;n.render=s,n.staticRenderFns=a}}return Yl.call(this,e,t)},Ci.compile=Ul,t["a"]=Ci}).call(this,n("c8ba"))},a078:function(e,t,n){var i=n("7b0b"),r=n("50c4"),s=n("35a1"),a=n("e95a"),o=n("0366"),c=n("ebb5").aTypedArrayConstructor;e.exports=function(e){var t,n,l,u,d,h,f=i(e),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=s(f);if(void 0!=v&&!a(v)){d=v.call(f),h=d.next,f=[];while(!(u=h.call(d)).done)f.push(u.value)}for(m&&p>2&&(g=o(g,arguments[2],2)),n=r(f.length),l=new(c(this))(n),t=0;n>t;t++)l[t]=m?g(f[t],t):f[t];return l}},a15b:function(e,t,n){"use strict";var i=n("23e7"),r=n("44ad"),s=n("fc6a"),a=n("a640"),o=[].join,c=r!=Object,l=a("join",",");i({target:"Array",proto:!0,forced:c||!l},{join:function(e){return o.call(s(this),void 0===e?",":e)}})},a1f0:function(e,t,n){"use strict";var i=n("23e7"),r=n("9ed3"),s=n("1d80"),a=n("50c4"),o=n("1c0b"),c=n("825a"),l=n("c6b6"),u=n("44e7"),d=n("ad6d"),h=n("9112"),f=n("d039"),p=n("b622"),g=n("4840"),m=n("8aa5"),v=n("69f3"),b=n("c430"),y=p("matchAll"),w="RegExp String",_=w+" Iterator",x=v.set,k=v.getterFor(_),A=RegExp.prototype,C=A.exec,E="".matchAll,S=!!E&&!f((function(){"a".matchAll(/./)})),F=function(e,t){var n,i=e.exec;if("function"==typeof i){if(n=i.call(e,t),"object"!=typeof n)throw TypeError("Incorrect exec result");return n}return C.call(e,t)},$=r((function(e,t,n,i){x(this,{type:_,regexp:e,string:t,global:n,unicode:i,done:!1})}),w,(function(){var e=k(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,i=F(t,n);return null===i?{value:void 0,done:e.done=!0}:e.global?(""==String(i[0])&&(t.lastIndex=m(n,a(t.lastIndex),e.unicode)),{value:i,done:!1}):(e.done=!0,{value:i,done:!1})})),T=function(e){var t,n,i,r,s,o,l=c(this),u=String(e);return t=g(l,RegExp),n=l.flags,void 0===n&&l instanceof RegExp&&!("flags"in A)&&(n=d.call(l)),i=void 0===n?"":String(n),r=new t(t===RegExp?l.source:l,i),s=!!~i.indexOf("g"),o=!!~i.indexOf("u"),r.lastIndex=a(l.lastIndex),new $(r,u,s,o)};i({target:"String",proto:!0,forced:S},{matchAll:function(e){var t,n,i,r,a=s(this);if(null!=e){if(u(e)&&(t=String(s("flags"in A?e.flags:d.call(e))),!~t.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(S)return E.apply(a,arguments);if(i=e[y],void 0===i&&b&&"RegExp"==l(e)&&(i=T),null!=i)return o(i).call(e,a)}else if(S)return E.apply(a,arguments);return n=String(a),r=new RegExp(e,"g"),b?T.call(r,n):r[y](n)}}),b||y in A||h(A,y,T)},a2bf:function(e,t,n){"use strict";var i=n("e8b5"),r=n("50c4"),s=n("0366"),a=function(e,t,n,o,c,l,u,d){var h,f=c,p=0,g=!!u&&s(u,d,3);while(p<o){if(p in n){if(h=g?g(n[p],p,t):n[p],l>0&&i(h))f=a(e,t,h,r(h.length),f,l-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=h}f++}p++}return f};e.exports=a},a2de:function(e,t,n){"use strict";n("63f9")},a3f9:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-button",{attrs:{params:{close:1,code:e.code}}},[e._v("Save and Close")]),n("vui-button",{attrs:{params:{execute:1,code:e.code}}},[e._v("Save and Execute")]),n("vui-button",{attrs:{params:{close:1,code:e.s.code}}},[e._v("Close")]),n("editor",{attrs:{lang:"javascript",theme:"monokai",width:"100%",height:"50em"},on:{init:e.editorInit},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}})],1)},r=[],s={data:function(){return{s:this.$root.$data.state,code:'Term.write("AAA")'}},components:{editor:n("7c9e")},created:function(){this.code=this.s.code},methods:{editorInit:function(){n("2099"),n("bb36"),n("14d4"),n("6a21")}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("23cb"),s=n("a691"),a=n("50c4"),o=n("7b0b"),c=n("65f0"),l=n("8418"),u=n("1dde"),d=n("ae40"),h=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!h||!f},{splice:function(e,t){var n,i,u,d,h,f,b=o(this),y=a(b.length),w=r(e,y),_=arguments.length;if(0===_?n=i=0:1===_?(n=0,i=y-w):(n=_-2,i=g(p(s(t),0),y-w)),y+n-i>m)throw TypeError(v);for(u=c(b,i),d=0;d<i;d++)h=w+d,h in b&&l(u,d,b[h]);if(u.length=i,n<i){for(d=w;d<y-i;d++)h=d+i,f=d+n,h in b?b[f]=b[h]:delete b[f];for(d=y;d>y-i+n;d--)delete b[d-1]}else if(n>i)for(d=y-i;d>w;d--)h=d+i-1,f=d+n-1,h in b?b[f]=b[h]:delete b[f];for(d=0;d<n;d++)b[d+w]=arguments[d+2];return b.length=y-i+n,u}})},a4b7:function(e,t,n){},a4d3:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),s=n("d066"),a=n("c430"),o=n("83ab"),c=n("4930"),l=n("fdbf"),u=n("d039"),d=n("5135"),h=n("e8b5"),f=n("861d"),p=n("825a"),g=n("7b0b"),m=n("fc6a"),v=n("c04e"),b=n("5c6c"),y=n("7c73"),w=n("df75"),_=n("241c"),x=n("057f"),k=n("7418"),A=n("06cf"),C=n("9bf2"),E=n("d1e7"),S=n("9112"),F=n("6eeb"),$=n("5692"),T=n("f772"),L=n("d012"),D=n("90e3"),B=n("b622"),R=n("e538"),O=n("746f"),M=n("d44e"),j=n("69f3"),I=n("b727").forEach,P=T("hidden"),N="Symbol",W="prototype",H=B("toPrimitive"),V=j.set,U=j.getterFor(N),z=Object[W],G=r.Symbol,q=s("JSON","stringify"),K=A.f,Y=C.f,X=x.f,J=E.f,Q=$("symbols"),Z=$("op-symbols"),ee=$("string-to-symbol-registry"),te=$("symbol-to-string-registry"),ne=$("wks"),ie=r.QObject,re=!ie||!ie[W]||!ie[W].findChild,se=o&&u((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=K(z,t);i&&delete z[t],Y(e,t,n),i&&e!==z&&Y(z,t,i)}:Y,ae=function(e,t){var n=Q[e]=y(G[W]);return V(n,{type:N,tag:e,description:t}),o||(n.description=t),n},oe=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof G},ce=function(e,t,n){e===z&&ce(Z,t,n),p(e);var i=v(t,!0);return p(n),d(Q,i)?(n.enumerable?(d(e,P)&&e[P][i]&&(e[P][i]=!1),n=y(n,{enumerable:b(0,!1)})):(d(e,P)||Y(e,P,b(1,{})),e[P][i]=!0),se(e,i,n)):Y(e,i,n)},le=function(e,t){p(e);var n=m(t),i=w(n).concat(pe(n));return I(i,(function(t){o&&!de.call(n,t)||ce(e,t,n[t])})),e},ue=function(e,t){return void 0===t?y(e):le(y(e),t)},de=function(e){var t=v(e,!0),n=J.call(this,t);return!(this===z&&d(Q,t)&&!d(Z,t))&&(!(n||!d(this,t)||!d(Q,t)||d(this,P)&&this[P][t])||n)},he=function(e,t){var n=m(e),i=v(t,!0);if(n!==z||!d(Q,i)||d(Z,i)){var r=K(n,i);return!r||!d(Q,i)||d(n,P)&&n[P][i]||(r.enumerable=!0),r}},fe=function(e){var t=X(m(e)),n=[];return I(t,(function(e){d(Q,e)||d(L,e)||n.push(e)})),n},pe=function(e){var t=e===z,n=X(t?Z:m(e)),i=[];return I(n,(function(e){!d(Q,e)||t&&!d(z,e)||i.push(Q[e])})),i};if(c||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=D(e),n=function(e){this===z&&n.call(Z,e),d(this,P)&&d(this[P],t)&&(this[P][t]=!1),se(this,t,b(1,e))};return o&&re&&se(z,t,{configurable:!0,set:n}),ae(t,e)},F(G[W],"toString",(function(){return U(this).tag})),F(G,"withoutSetter",(function(e){return ae(D(e),e)})),E.f=de,C.f=ce,A.f=he,_.f=x.f=fe,k.f=pe,R.f=function(e){return ae(B(e),e)},o&&(Y(G[W],"description",{configurable:!0,get:function(){return U(this).description}}),a||F(z,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),I(w(ne),(function(e){O(e)})),i({target:N,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=G(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!o},{create:ue,defineProperty:ce,defineProperties:le,getOwnPropertyDescriptor:he}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),i({target:"Object",stat:!0,forced:u((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(g(e))}}),q){var ge=!c||u((function(){var e=G();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}));i({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var i,r=[e],s=1;while(arguments.length>s)r.push(arguments[s++]);if(i=t,(f(t)||void 0!==e)&&!oe(e))return h(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!oe(t))return t}),r[1]=t,q.apply(null,r)}})}G[W][H]||S(G[W],H,G[W].valueOf),M(G,N),L[P]=!0},a4ec:function(e,t,n){},a589:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.on?[e.pastHalfTime?[e.ingredientsPresent?e.failed?n("p",[e._v("Something doesn't look right...")]):n("p",[e._v("It's cooking nicely!")]):n("p",[e._v("There's nothing inside. Microwave's working, though!")])]:n("p",[e._v("It's starting to cook...")]),n("vui-progress",{attrs:{value:e.$root.$data.wtime,min:e.start_time,max:e.start_time+e.cook_time}}),n("vui-button",{staticClass:"danger danger-control",attrs:{icon:"exclamation-triangle",params:{abort:1}}},[e._v("Abort!")])]:[n("h4",[e._v("Ingredients")]),n("ul",[e.ingredientsPresent?e._e():n("li",[e._v("The microwave is empty!")]),e._l(e.cookingobjs,(function(t,i){return n("li",{key:i},[n("vui-button",{attrs:{params:{eject:i}}},[e._v(" "+e._s(i)+" • "+e._s(t)+" ")])],1)})),e._l(e.cookingreas,(function(t,i){return n("li",{key:i},[n("vui-button",{attrs:{params:{eject:i}}},[e._v(" "+e._s(i)+" • "+e._s(t)+" units ")])],1)}))],2),n("vui-button",{staticClass:"danger danger-control",attrs:{icon:"trash",params:{eject_all:1}}},[e._v("Eject All")]),n("vui-button",{staticClass:"control",attrs:{params:{cook:1}}},[e._v("Cook!")])]],2)},r=[],s=(n("b64b"),{data:function(){return this.$root.$data.state},computed:{ingredientsPresent:function(){return Object.keys(this.cookingobjs).length>0||Object.keys(this.cookingreas).length>0},pastHalfTime:function(){return this.$root.$data.wtime>this.start_time+this.cook_time/2}}}),a=s,o=(n("e48d"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"2005209a",null);t["default"]=c.exports},a5e6:function(e,t,n){},a623:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").every,s=n("a640"),a=n("ae40"),o=s("every"),c=a("every");i({target:"Array",proto:!0,forced:!o||!c},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,n){var i=n("23e7"),r=n("4df4"),s=n("1c7e"),a=!s((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:a},{from:r})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},a6fd:function(e,t,n){var i=n("23e7"),r=n("d066"),s=n("1c0b"),a=n("825a"),o=n("d039"),c=r("Reflect","apply"),l=Function.apply,u=!o((function(){c((function(){}))}));i({target:"Reflect",stat:!0,forced:u},{apply:function(e,t,n){return s(e),a(n),c?c(e,t,n):l.call(e,t,n)}})},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),s=n("fea9"),a=n("d039"),o=n("d066"),c=n("4840"),l=n("cdf9"),u=n("6eeb"),d=!!s&&a((function(){s.prototype["finally"].call({then:function(){}},(function(){}))}));i({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=c(this,o("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),r||"function"!=typeof s||s.prototype["finally"]||u(s.prototype,"finally",o("Promise").prototype["finally"])},a7c6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("view-mcomputer-ntsl-"+e.s.mode,{tag:"component"})],1)},r=[],s={data:function(){return{s:this.$root.$data.state}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},a874:function(e,t,n){var i=n("23e7"),r=n("145e"),s=n("44d2");i({target:"Array",proto:!0},{copyWithin:r}),s("copyWithin")},a8bb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v(" You are not authenticated. Please login to continue. "),n("vui-button",{attrs:{params:{login:1}}},[e._v("Login")])],1)},r=[],s=n("2877"),a={},o=Object(s["a"])(a,i,r,!1,null,null,null);t["default"]=o.exports},a919:function(e,t,n){var i=n("ddc6"),r={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},s=i(r);e.exports=s},a975:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").every,s=i.aTypedArray,a=i.exportTypedArrayMethod;a("every",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},a981:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9e3:function(e,t,n){"use strict";var i=n("83ab"),r=n("da84"),s=n("94ca"),a=n("6eeb"),o=n("5135"),c=n("c6b6"),l=n("7156"),u=n("c04e"),d=n("d039"),h=n("7c73"),f=n("241c").f,p=n("06cf").f,g=n("9bf2").f,m=n("58a8").trim,v="Number",b=r[v],y=b.prototype,w=c(h(y))==v,_=function(e){var t,n,i,r,s,a,o,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(l=m(l),t=l.charCodeAt(0),43===t||45===t){if(n=l.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(s=l.slice(2),a=s.length,o=0;o<a;o++)if(c=s.charCodeAt(o),c<48||c>r)return NaN;return parseInt(s,i)}return+l};if(s(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var x,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(w?d((function(){y.valueOf.call(n)})):c(n)!=v)?l(new b(_(t)),n,k):_(t)},A=i?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;A.length>C;C++)o(b,x=A[C])&&!o(k,x)&&g(k,x,p(b,x));k.prototype=y,y.constructor=k,a(r,v,k)}},a9fa:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("h3",[e._v("Limbs")]),n("table",{staticClass:"table border"},[e._m(0),e._l(e.limbs,(function(t,i){return n("tr",{key:i,staticClass:"item border"},[n("td",{staticStyle:{width:"20%"}},[e._v(e._s(i))]),n("td",[n("vui-button",{attrs:{params:{target:"limb",name:i,action:"brute"}}},[e._v("Brute")]),n("vui-button",{attrs:{params:{target:"limb",name:i,action:"burn"}}},[e._v("Burn")]),n("vui-button",{attrs:{params:{target:"limb",name:i,action:"infection"}}},[e._v("Infection")]),n("vui-button",{attrs:{params:{target:"limb",name:i,action:"shatter"}}},[e._v("Shatter")]),n("vui-button",{attrs:{params:{target:"limb",name:i,action:"arterial"}}},[e._v("Arterial")]),n("vui-button",{attrs:{params:{target:"limb",name:i,action:"sever"}}},[e._v("Sever")])],1)])}))],2)]),n("div",[n("h3",[e._v("Organs")]),n("table",{staticClass:"table border"},[e._m(1),e._l(e.organs,(function(t,i){return n("tr",{key:i,staticClass:"item border"},[n("td",{staticStyle:{width:"20%"}},[e._v(e._s(i))]),n("td",[n("vui-button",{attrs:{params:{target:"organ",name:i,action:"damage"}}},[e._v("Damage")]),n("vui-button",{attrs:{params:{target:"organ",name:i,action:"infection"}}},[e._v("Infection")]),n("vui-button",{attrs:{params:{target:"organ",name:i,action:"bruise"}}},[e._v("Bruise")]),n("vui-button",{attrs:{params:{target:"organ",name:i,action:"break"}}},[e._v("Break")]),n("vui-button",{attrs:{params:{target:"organ",name:i,action:"remove"}}},[e._v("Remove")])],1)])}))],2)]),n("div",[n("h3",[e._v("Miscellaneous")]),n("vui-button",{attrs:{params:{target:"misc",action:"wind"}}},[e._v("Toggle Wind")]),n("vui-button",{attrs:{params:{target:"misc",action:"gigashatter"}}},[e._v("Gigashatter")]),n("vui-button",{attrs:{params:{target:"misc",action:"kill"}}},[e._v("Kill")]),n("vui-button",{attrs:{params:{target:"misc",action:"gib"}}},[e._v("Gib")]),n("vui-button",{attrs:{params:{target:"misc",action:"dust"}}},[e._v("Dust")])],1)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("Name")]),n("th",[e._v("Tools")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("Name")]),n("th",[e._v("Tools")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=(n("1953"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"a316b07a",null);t["default"]=c.exports},aaec:function(e,t){var n="\\ud800-\\udfff",i="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",a=i+r+s,o="\\ufe0e\\ufe0f",c="\\u200d",l=RegExp("["+c+n+a+o+"]");function u(e){return l.test(e)}e.exports=u},ab13:function(e,t,n){var i=n("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},ac02:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Chemical Implants")]),n("table",{staticClass:"table border"},[e._m(0),e._l(e.chem_implants,(function(t){return n("tr",{key:t.ref,staticClass:"item border"},[n("td",[e._v(e._s(t.implanted_name))]),n("td",[e._v(e._s(t.remaining_units))]),n("td",[n("vui-button",{attrs:{disabled:t.remaining_units<1,params:{inject1:t.ref}}},[e._v("Inject 1u")]),n("vui-button",{attrs:{disabled:t.remaining_units<5,params:{inject5:t.ref}}},[e._v("Inject 5u")]),n("vui-button",{attrs:{disabled:t.remaining_units<10,params:{inject5:t.ref}}},[e._v("Inject 10u")])],1)])}))],2),n("h3",[e._v("Tracking Implants")]),n("table",{staticClass:"table border"},[e._m(1),e._l(e.tracking_implants,(function(t){return n("tr",{key:t.ref,staticClass:"item border"},[n("td",[e._v(e._s(t.id))]),n("td",[e._v(e._s(t.loc_display))]),n("td",[n("vui-button",{attrs:{params:{warn:t.ref}}},[e._v("Message Implanted User")])],1)])}))],2)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("Implanted User")]),n("th",[e._v("Remaining Chemical Units")]),n("th",[e._v("Options")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("Tracking ID")]),n("th",[e._v("Current Area")]),n("th",[e._v("Options")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=(n("ada8"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"1844f920",null);t["default"]=c.exports},ac16:function(e,t,n){var i=n("23e7"),r=n("825a"),s=n("06cf").f;i({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=s(r(e),t);return!(n&&!n.configurable)&&delete e[t]}})},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ac4c:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-input-search",{staticStyle:{display:"block"},attrs:{input:e.records,keys:["id","name","rank","sex","age","fingerprint","blood","dna"]},model:{value:e.filtered,callback:function(t){e.filtered=t},expression:"filtered"}}),e._l(e.filtered,(function(t){return n("div",{key:t.id},[n("vui-button",{attrs:{params:{setactive:t.id},icon:t.has_notes?"align-justify":null,"push-state":""},on:{click:function(t){e.state.activeview=e.state.defaultview}}},[e._v(e._s(t.id)+": "+e._s(t.name)+" ("+e._s(t.rank)+")")])],1)})),n("vui-button",{staticClass:"newrecord",attrs:{"v-if":(1&e.editable)>0,params:{newrecord:1},"push-state":""},on:{click:function(t){e.state.activeview=e.state.defaultview}}},[e._v("New Record")])],2)},r=[],s=(n("07ac"),{data:function(){return{state:this.$root.$data.state,filtered:[]}},computed:{records:function(){return Object.values(this.state.allrecords)}}}),a=s,o=(n("682e"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"df4093f4",null);t["default"]=c.exports},acac:function(e,t,n){"use strict";var i=n("e2cc"),r=n("f183").getWeakData,s=n("825a"),a=n("861d"),o=n("19aa"),c=n("2266"),l=n("b727"),u=n("5135"),d=n("69f3"),h=d.set,f=d.getterFor,p=l.find,g=l.findIndex,m=0,v=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,l){var d=e((function(e,i){o(e,d,t),h(e,{type:t,id:m++,frozen:void 0}),void 0!=i&&c(i,e[l],{that:e,AS_ENTRIES:n})})),p=f(t),g=function(e,t,n){var i=p(e),a=r(s(t),!0);return!0===a?v(i).set(t,n):a[i.id]=n,e};return i(d.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var n=r(e);return!0===n?v(t)["delete"](e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var n=r(e);return!0===n?v(t).has(e):n&&u(n,t.id)}}),i(d.prototype,n?{get:function(e){var t=p(this);if(a(e)){var n=r(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},accc:function(e,t,n){var i=n("23e7"),r=n("64e5");i({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r})},acd8:function(e,t,n){var i=n("23e7"),r=n("7e12");i({global:!0,forced:parseFloat!=r},{parseFloat:r})},ace4:function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),s=n("621a"),a=n("825a"),o=n("23cb"),c=n("50c4"),l=n("4840"),u=s.ArrayBuffer,d=s.DataView,h=u.prototype.slice,f=r((function(){return!new u(2).slice(1,void 0).byteLength}));i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:f},{slice:function(e,t){if(void 0!==h&&void 0===t)return h.call(a(this),e);var n=a(this).byteLength,i=o(e,n),r=o(void 0===t?n:t,n),s=new(l(this,u))(c(r-i)),f=new d(this),p=new d(s),g=0;while(i<r)p.setUint8(g++,f.getUint8(i++));return s}})},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ada8:function(e,t,n){"use strict";n("f685")},ae40:function(e,t,n){var i=n("83ab"),r=n("d039"),s=n("5135"),a=Object.defineProperty,o={},c=function(e){throw e};e.exports=function(e,t){if(s(o,e))return o[e];t||(t={});var n=[][e],l=!!s(t,"ACCESSORS")&&t.ACCESSORS,u=s(t,0)?t[0]:c,d=s(t,1)?t[1]:void 0;return o[e]=!!n&&!r((function(){if(l&&!i)return!0;var e={length:-1};l?a(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,d)}))}},ae93:function(e,t,n){"use strict";var i,r,s,a=n("e163"),o=n("9112"),c=n("5135"),l=n("b622"),u=n("c430"),d=l("iterator"),h=!1,f=function(){return this};[].keys&&(s=[].keys(),"next"in s?(r=a(a(s)),r!==Object.prototype&&(i=r)):h=!0),void 0==i&&(i={}),u||c(i,d)||o(i,d,f),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},af03:function(e,t,n){var i=n("d039");e.exports=function(e){return i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},af89:function(e,t,n){"use strict";n("6836")},af93:function(e,t,n){var i=n("23e7"),r=n("861d"),s=n("f183").onFreeze,a=n("bb2f"),o=n("d039"),c=Object.seal,l=o((function(){c(1)}));i({target:"Object",stat:!0,forced:l,sham:!a},{seal:function(e){return c&&r(e)?c(s(e)):e}})},aff5:function(e,t,n){var i=n("23e7");i({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b087:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.power?n("div",[e.occupant?n("div",[n("div",{staticClass:"columnHolder"},[n("div",{staticClass:"column"},[n("div",[n("h3",[e._v("Occupant Status:")]),n("div",[n("span",{staticClass:"text"},[e._v("Status:")]),e._v(" "),n("span",{style:{color:e.consciousnessLabel(e.stat)}},[e._v(e._s(e.consciousnessText(e.stat)))])]),n("div",[n("span",{staticClass:"text"},[e._v("Stasis Level:")]),e._v(" "+e._s(e.stasis))]),n("div",[n("span",{staticClass:"text"},[e._v("Species:")]),e._v(" "+e._s(e.species))]),n("div",[n("span",{staticClass:"text"},[e._v("Brain Activity:")]),e._v(" "),n("vui-progress",{class:e.progressClass(e.brain_activity),attrs:{value:e.brain_activity}},[e._v(e._s(e.brain_activity)+"%")])],1),n("div",[n("span",{staticClass:"text"},[e._v("Pulse:")]),e._v(" "+e._s(e.pulse))]),n("div",[n("span",{staticClass:"text"},[e._v("BP:")]),e._v(" "),n("span",{style:{color:e.getPressureClass(e.blood_pressure_level)}},[e._v(e._s(e.blood_pressure))])]),n("div",[n("span",{staticClass:"text"},[e._v("Blood Oxygenation:")]),e._v(" "),n("vui-progress",{class:e.progressClass(e.brain_activity),attrs:{value:Math.round(e.blood_o2)}},[e._v(e._s(Math.round(e.blood_o2))+"%")])],1),n("h3",[e._v("Bloodstream Reagents:")]),e.bloodreagents?n("div",[n("table",e._l(e.bloodreagents,(function(t){return n("tr",{key:t.name},[n("td",[n("span",{staticClass:"text"},[e._v(e._s(t.name)+":")])]),n("td",{staticClass:"shifted"},[e._v(e._s(t.amount)+"u")])])})),0)]):n("div",[e._v(" The occupant has no additional reagents in their bloodstream. ")]),n("h3",[e._v("Stomach Reagents:")]),e.hasstomach?n("div",[e.stomachreagents?n("div",[n("table",e._l(e.stomachreagents,(function(t){return n("tr",{key:t.name},[n("td",[n("span",{staticClass:"text"},[e._v(e._s(t.name)+":")])]),n("td",{staticClass:"shifted"},[e._v(e._s(t.amount)+"u")])])})),0)]):n("div",[e._v(" The occupant has nothing in their stomach. ")])]):n("div",[e._v(" The occupant does not have a stomach. ")])])]),n("div",{staticClass:"column"},[n("h3",[e._v("Injectable Reagents:")]),n("table",e._l(e.reagents,(function(t){return n("tr",{key:t.name},[n("td",[n("span",{staticClass:"text"},[e._v(e._s(t.name)+":")])]),n("td",[n("vui-button",{attrs:{params:{chemical:t.type,amount:5}}},[e._v("Inject 5")])],1),n("td",[n("vui-button",{attrs:{params:{chemical:t.type,amount:10}}},[e._v("Inject 10")])],1)])})),0),n("h3",[e._v("Stasis Settings:")]),n("table",[n("tr",e._l(e.stasissettings,(function(t){return n("td",{key:t},[n("vui-button",{attrs:{params:{stasis:t}}},[e._v(e._s(t))])],1)})),0)])])])]):n("div",[e._v(" No occupant. ")])]):n("div",[e._m(0)]),e.occupant?n("div",[n("div",{staticClass:"columnHolder"},[n("div",{staticClass:"float"},[n("vui-button",{attrs:{params:{eject:1}}},[e._v("Eject Occupant")])],1),n("div",{staticClass:"float"},[e.filtering?n("div",[n("vui-button",{attrs:{params:{filter:-1}}},[e._v("Dialysis Active")])],1):n("div",[n("vui-button",{attrs:{params:{filter:1}}},[e._v("Dialysis Inactive")])],1)]),n("div",{staticClass:"float"},[e.pump?n("div",[n("vui-button",{attrs:{params:{pump:-1}}},[e._v("Stomach Pump Active")])],1):n("div",[n("vui-button",{attrs:{params:{pump:1}}},[e._v("Stomach Pump Inactive")])],1)])])]):e._e(),-1!=e.beaker?n("div",[n("span",{staticClass:"text"},[e._v("Beaker:")]),e._v(" "+e._s(e.beaker)+" units of free space remaining. "),n("vui-button",{attrs:{params:{beaker:1}}},[e._v("Eject Beaker")])],1):n("div",[e._v(" No beaker inserted. ")])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"itemLabel"},[n("h2",[e._v("NO POWER")])])}],s={data:function(){return this.$root.$data.state},methods:{consciousnessLabel:function(e){switch(e){case 0:return"LimeGreen";case 1:return"OrangeRed";case 2:return"Crimson"}},consciousnessText:function(e){switch(e){case 0:return"Conscious";case 1:return"Unconscious";case 2:return"DEAD"}},progressClass:function(e){return e<=50?"bad":e<=90?"average":"good"},getPressureClass:function(e){switch(e){case 1:return"Crimson";case 2:return"LimeGreen";case 3:return"LawnGreen";case 4:return"Crimson";default:return"LightSkyBlue"}}}},a=s,o=(n("27cd"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"3783600c",null);t["default"]=c.exports},b08f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.detonating?n("div",{staticClass:"notice",staticStyle:{color:"#000000"}},[n("h2",{staticStyle:{color:"#000000"}},[e._v("CRYSTAL DELAMINATING")]),n("h3",{staticStyle:{color:"#000000"}},[e._v("Evacuate area immediately")]),n("div",{staticClass:"clearBoth"})]):n("vui-group",[n("vui-group-row",[n("h3",[e._v("Crystal Integrity")]),n("vui-progress",{class:e.integrity_class,attrs:{value:e.integrity_percentage,min:0,max:100}}),n("b",[e._v(e._s(e.integrity_percentage)+" %")])],1),n("h3",[e._v("Environment")]),n("vui-group-item",{attrs:{label:"Temperature:"}},[n("vui-progress",{class:e.temp_class,attrs:{value:e.ambient_temp,min:0,max:1e4}}),e._v(" "+e._s(e.ambient_temp)+" K ")],1),n("vui-group-item",{attrs:{label:"Pressure:"}},[e._v(" "+e._s(e.ambient_pressure)+" kPa ")])],1)],1)},r=[],s={data:function(){return this.$root.$data.state},computed:{temp_class:function(){return this.ambient_temp>=5e3?"bad":this.ambient_temp>=4e3?"average":"good"},integrity_class:function(){return this.integrity_percentage>=90?"good":this.integrity_percentage>=25?"average":"bad"}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},b0c0:function(e,t,n){var i=n("83ab"),r=n("9bf2").f,s=Function.prototype,a=s.toString,o=/^\s*function ([^ (]*)/,c="name";i&&!(c in s)&&r(s,c,{configurable:!0,get:function(){try{return a.call(this).match(o)[1]}catch(e){return""}}})},b104:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-button",{attrs:{params:{call_ai:1}}},[e._v("Summon AI")]),1==e.s.command_auth?n("vui-button",{class:{selected:1==e.s.forcing_call},attrs:{params:{toggle_command:1}}},[e._v("Toggle Command Authorization")]):e._e(),n("br"),n("br"),n("vui-input-search",{attrs:{input:e.holopads_filtered,keys:["id","ref"],autofocus:"",threshold:e.threshold,"include-score":""},model:{value:e.search_results,callback:function(t){e.search_results=t},expression:"search_results"}}),e.search_results.length?n("div",e._l(e.search_results,(function(t){return n("div",{key:t.item.ref,style:{opacity:1-t.score*e.score_multiplier}},[n("vui-button",{attrs:{disabled:1==t.item.busy,params:{call_holopad:t.item.ref}}},[e._v(e._s(t.item.id))])],1)})),0):n("div",[n("span",[e._v("No compatible holopads detected within range"+e._s(e.s.call_range>0?" "+e.s.call_range:"")+".")])])],1)},r=[],s=(n("4de4"),n("07ac"),{data:function(){return{search_results:[],s:this.$root.$data.state,threshold:.3}},computed:{holopads_filtered:function(){return Object.values(this.s.holopad_list).filter((function(e){return e})).sort((function(e,t){var n=e.id.toLowerCase(),i=t.id.toLowerCase();return n<i?-1:n>i?1:0}))},score_multiplier:function(){return 1/this.threshold}}}),a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},b14c:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h2",{staticClass:"white"},[e._v("Welcome, Operative.")]),n("h2",[e._v("Please select your launch target:")]),0==e.status?n("div",[e._m(0),n("div",[n("vui-button",{attrs:{icon:"cog",params:{fire:"recreational_areas"}}},[e._v("Recreational Areas")])],1),n("div",[n("vui-button",{attrs:{icon:"cog",params:{fire:"operations"}}},[e._v("Operations")])],1),n("div",[n("vui-button",{attrs:{icon:"cog",params:{fire:"starboard_wing"}}},[e._v("Starboard Wing Frame Interior")])],1)]):n("div",[e._v(" Pod status: "),n("span",{staticClass:"bad"},[e._v("Non-operational.")])])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("Pod status: "),n("span",{staticClass:"good"},[e._v("Operational.")])])}],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},b15a:function(e,t,n){},b20a:function(e,t,n){var i=n("6ac0"),r=n("4caa"),s=n("ea72"),a="['’]",o=RegExp(a,"g");function c(e){return function(t){return i(s(r(t).replace(o,"")),e,"")}}e.exports=c},b225:function(e,t,n){},b378:function(e,t){ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(e,t,n){"use strict";var i=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,o=e("./anchor").Anchor,c=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,u=a.comparePoints,d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){i.implement(this,r),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return d.$tokenizer=new l({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length||-1!="`$\\".indexOf(i)?e=i:n.inFormatString&&("n"==i||"t"==i?e="\n":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:i>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,i){var r=e(t.substr(1),n,i);return i.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var i=n[0];return i.fmtString=e,e=this.splitRegex.exec(e),i.guard=e[1],i.fmt=e[2],i.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),d.prototype.getTokenizer=function(){return d.$tokenizer},d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var i=e.session;switch(t){case"CURRENT_WORD":var r=i.getWordRange();case"SELECTION":case"SELECTED_TEXT":return i.getTextRange(r);case"CURRENT_LINE":return i.getLine(e.getCursorPosition().row);case"PREV_LINE":return i.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return i.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return i.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(e,t,n){var i=t.flag||"",r=t.guard;r=new RegExp(r,i.replace(/[^gi]/,""));var s=this.tokenizeTmSnippet(t.fmt,"formatString"),a=this,o=e.replace(r,(function(){a.variables.__=arguments;for(var e=a.resolveVariables(s,n),t="E",i=0;i<e.length;i++){var r=e[i];if("object"==typeof r)if(e[i]="",r.changeCase&&r.local){var o=e[i+1];o&&"string"==typeof o&&("u"==r.changeCase?e[i]=o[0].toUpperCase():e[i]=o[0].toLowerCase(),e[i+1]=o.substr(1))}else r.changeCase&&(t=r.changeCase);else"U"==t?e[i]=r.toUpperCase():"L"==t&&(e[i]=r.toLowerCase())}return e.join("")}));return this.variables.__=null,o},this.resolveVariables=function(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];if("string"==typeof r)n.push(r);else{if("object"!=typeof r)continue;if(r.skip)a(r);else{if(r.processed<i)continue;if(r.text){var s=this.getVariableValue(t,r.text);s&&r.fmtString&&(s=this.tmStrFormat(s,r)),r.processed=i,null==r.expectIf?s&&(n.push(s),a(r)):s?r.skip=r.elseBranch:a(r)}else(null!=r.tabstopId||null!=r.changeCase)&&n.push(r)}}}function a(t){var n=e.indexOf(t,i+1);-1!=n&&(i=n)}return n},this.insertSnippetForSelection=function(e,t){var n=e.getCursorPosition(),i=e.session.getLine(n.row),r=e.session.getTabString(),s=i.match(/^\s*/)[0];n.column<s.length&&(s=s.slice(0,n.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=this.resolveVariables(a,e),a=a.map((function(e){return"\n"==e?e+s:"string"==typeof e?e.replace(/\t/g,r):e}));var o=[];a.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,i=o[n];if(i||(i=o[n]=[],i.index=n,i.value=""),-1===i.indexOf(e)){i.push(e);var r=a.indexOf(e,t+1);if(-1!==r){var s=a.slice(t+1,r),c=s.some((function(e){return"object"===typeof e}));c&&!i.value?i.value=s:!s.length||i.value&&"string"===typeof i.value||(i.value=s.join(""))}}}})),o.forEach((function(e){e.length=0}));var c={};function l(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if("object"==typeof i){if(c[i.tabstopId])continue;var r=e.lastIndexOf(i,n-1);i=t[r]||{tabstopId:i.tabstopId}}t[n]=i}return t}for(var u=0;u<a.length;u++){var d=a[u];if("object"==typeof d){var f=d.tabstopId,p=a.indexOf(d,u+1);if(c[f])c[f]===d&&(c[f]=null);else{var g=o[f],m="string"==typeof g.value?[g.value]:l(g.value);m.unshift(u+1,Math.max(0,p-u)),m.push(d),c[f]=d,a.splice.apply(a,m),-1===g.indexOf(d)&&g.push(d)}}}var v=0,b=0,y="";a.forEach((function(e){if("string"===typeof e){var t=e.split("\n");t.length>1?(b=t[t.length-1].length,v+=t.length-1):b+=e.length,y+=e}else e.start?e.end={row:v,column:b}:e.start={row:v,column:b}}));var w=e.getSelectionRange(),_=e.session.replace(w,y),x=new h(e),k=e.inVirtualSelectionMode&&e.selection.index;x.addTabstops(o,w.start,_,k)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if(t=t.split("/").pop(),"html"===t||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),i=e.session.getState(n.row);"object"===typeof i&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?t="javascript":"css-"==i.substring(0,4)?t="css":"php-"==i.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),r=e.session.getLine(i.row),s=r.substring(0,i.column),a=r.substr(i.column),o=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=o[e];return t&&(n=this.findMatchingSnippet(t,s,a)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var r=e[i];if((!r.startRe||r.startRe.test(t))&&((!r.endRe||r.endRe.test(n))&&(r.startRe||r.endRe)))return r.matchBefore=r.startRe?r.startRe.exec(t):[""],r.matchAfter=r.endRe?r.endRe.exec(n):[""],r.replaceBefore=r.triggerRe?r.triggerRe.exec(t)[0]:"",r.replaceAfter=r.endTriggerRe?r.endTriggerRe.exec(n)[0]:"",r}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,i=this.snippetNameMap,r=this;function a(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function o(e,t,n){return e=a(e),t=a(t),n?(e=t+e,e&&"$"!=e[e.length-1]&&(e+="$")):(e+=t,e&&"^"!=e[0]&&(e="^"+e)),new RegExp(e)}function c(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],i[t]={});var a=i[t];if(e.name){var c=a[e.name];c&&r.unregister(c),a[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=o(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=o(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?c(e):Array.isArray(e)&&e.forEach(c),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,i=this.snippetNameMap;function r(e){var r=i[e.scope||t];if(r&&r[e.name]){delete r[e.name];var s=n[e.scope||t],a=s&&s.indexOf(e);a>=0&&s.splice(a,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");var t,n=[],i={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;while(t=r.exec(e)){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(c){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var s=t[2],a=t[3];if("regex"==s){var o=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=o.exec(a)[1],i.trigger=o.exec(a)[1],i.endTrigger=o.exec(a)[1],i.endGuard=o.exec(a)[1]}else"snippet"==s?(i.tabTrigger=a.match(/^\S*/)[0],i.name||(i.name=a)):i[s]=a}}return n},this.getSnippetByName=function(e,t){var n,i=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var r=i[t];return r&&(n=r[e]),!!n}),this),n}}).call(d.prototype);var h=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,i=e.end,r=n.row,s=i.row,a=s-r,o=i.column-n.column;if(t&&(a=-a,o=-o),!this.$inChange&&t){var c=this.selectedTabstop,l=c&&!c.some((function(e){return u(e.start,n)<=0&&u(e.end,i)>=0}));if(l)return this.detach()}for(var d=this.ranges,h=0;h<d.length;h++){var f=d[h];f.end.row<n.row||(t&&u(n,f.start)<0&&u(i,f.end)>0?(this.removeRange(f),h--):(f.start.row==r&&f.start.column>n.column&&(f.start.column+=o),f.end.row==r&&f.end.column>=n.column&&(f.end.column+=o),f.start.row>=r&&(f.start.row+=a),f.end.row>=r&&(f.end.row+=a),u(f.start,f.end)>0&&this.removeRange(f)))}d.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var n=this.editor.session,i=n.getTextRange(e.firstNonLinked),r=e.length;r--;){var s=e[r];if(s.linked){var a=t.snippetManager.tmStrFormat(i,s.original);n.replace(s,a)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=this.ranges.length;i--;)if(!this.ranges[i].linked){var r=this.ranges[i].contains(e.row,e.column),s=n||this.ranges[i].contains(t.row,t.column);if(r&&s)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index],t&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var i=t.length;i--;)t.hasLinkedRanges&&t[i].linked||n.addRange(t[i].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var i=a.fromPoints(n,n);g(i.start,t),g(i.end,t),e[0]=[i],e[0].index=0}var r=this.index,s=[r+1,0],o=this.ranges;e.forEach((function(e,n){for(var i=this.$openTabstops[n]||e,r=e.length;r--;){var c=e[r],l=a.fromPoints(c.start,c.end||c.start);p(l.start,t),p(l.end,t),l.original=c,l.tabstop=i,o.push(l),i!=e?i.unshift(l):i[r]=l,c.fmtString?(l.linked=!0,i.hasLinkedRanges=!0):i.firstNonLinked||(i.firstNonLinked=l)}i.firstNonLinked||(i.hasLinkedRanges=!1),i===e&&(s.push(i),this.$openTabstops[n]=i),this.addTabstopMarkers(i)}),this),s.length>2&&(this.tabstops.length&&s.push(s.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,s))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),-1!=t&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new c,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(h.prototype);var f={};f.onChange=o.prototype.onChange,f.setPosition=function(e,t){this.pos.row=e,this.pos.column=t},f.update=function(e,t,n){this.$insertRight=n,this.pos=e,this.onChange(t)};var p=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},g=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new d;var m=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(m.prototype)})),ace.define("ace/ext/emmet",["require","exports","module","ace/keyboard/hash_handler","ace/editor","ace/snippets","ace/range","resources","resources","tabStops","resources","utils","actions","ace/config","ace/config"],(function(e,t,n){"use strict";var i,r,s=e("ace/keyboard/hash_handler").HashHandler,a=e("ace/editor").Editor,o=e("ace/snippets").snippetManager,c=e("ace/range").Range;function l(){}l.prototype={setupContext:function(e){this.ace=e,this.indentation=e.session.getTabString(),i||(i=window.emmet);var t=i.resources||i.require("resources");t.setVariable("indentation",this.indentation),this.$syntax=null,this.$syntax=this.getSyntax()},getSelectionRange:function(){var e=this.ace.getSelectionRange(),t=this.ace.session.doc;return{start:t.positionToIndex(e.start),end:t.positionToIndex(e.end)}},createSelection:function(e,t){var n=this.ace.session.doc;this.ace.selection.setRange({start:n.indexToPosition(e),end:n.indexToPosition(t)})},getCurrentLineRange:function(){var e=this.ace,t=e.getCursorPosition().row,n=e.session.getLine(t).length,i=e.session.doc.positionToIndex({row:t,column:0});return{start:i,end:i+n}},getCaretPos:function(){var e=this.ace.getCursorPosition();return this.ace.session.doc.positionToIndex(e)},setCaretPos:function(e){var t=this.ace.session.doc.indexToPosition(e);this.ace.selection.moveToPosition(t)},getCurrentLine:function(){var e=this.ace.getCursorPosition().row;return this.ace.session.getLine(e)},replaceContent:function(e,t,n,i){null==n&&(n=null==t?this.getContent().length:t),null==t&&(t=0);var r=this.ace,s=r.session.doc,a=c.fromPoints(s.indexToPosition(t),s.indexToPosition(n));r.session.remove(a),a.end=a.start,e=this.$updateTabstops(e),o.insertSnippet(r,e)},getContent:function(){return this.ace.getValue()},getSyntax:function(){if(this.$syntax)return this.$syntax;var e=this.ace.session.$modeId.split("/").pop();if("html"==e||"php"==e){var t=this.ace.getCursorPosition(),n=this.ace.session.getState(t.row);"string"!=typeof n&&(n=n[0]),n&&(n=n.split("-"),n.length>1?e=n[0]:"php"==e&&(e="html"))}return e},getProfileName:function(){var e=i.resources||i.require("resources");switch(this.getSyntax()){case"css":return"css";case"xml":case"xsl":return"xml";case"html":var t=e.getVariable("profile");return t||(t=-1!=this.ace.session.getLines(0,2).join("").search(/<!DOCTYPE[^>]+XHTML/i)?"xhtml":"html"),t;default:var n=this.ace.session.$mode;return n.emmetConfig&&n.emmetConfig.profile||"xhtml"}},prompt:function(e){return prompt(e)},getSelection:function(){return this.ace.session.getTextRange()},getFilePath:function(){return""},$updateTabstops:function(e){var t=1e3,n=0,r=null,s=i.tabStops||i.require("tabStops"),a=i.resources||i.require("resources"),o=a.getVocabulary("user"),c={tabstop:function(e){var i=parseInt(e.group,10),a=0===i;a?i=++n:i+=t;var o=e.placeholder;o&&(o=s.processText(o,c));var l="${"+i+(o?":"+o:"")+"}";return a&&(r=[e.start,l]),l},escape:function(e){return"$"==e?"\\$":"\\"==e?"\\\\":e}};if(e=s.processText(e,c),o.variables["insert_final_tabstop"]&&!/\$\{0\}$/.test(e))e+="${0}";else if(r){var l=i.utils?i.utils.common:i.require("utils");e=l.replaceSubstring(e,"${0}",r[0],r[1])}return e}};var u={expand_abbreviation:{mac:"ctrl+alt+e",win:"alt+e"},match_pair_outward:{mac:"ctrl+d",win:"ctrl+,"},match_pair_inward:{mac:"ctrl+j",win:"ctrl+shift+0"},matching_pair:{mac:"ctrl+alt+j",win:"alt+j"},next_edit_point:"alt+right",prev_edit_point:"alt+left",toggle_comment:{mac:"command+/",win:"ctrl+/"},split_join_tag:{mac:"shift+command+'",win:"shift+ctrl+`"},remove_tag:{mac:"command+'",win:"shift+ctrl+;"},evaluate_math_expression:{mac:"shift+command+y",win:"shift+ctrl+y"},increment_number_by_1:"ctrl+up",decrement_number_by_1:"ctrl+down",increment_number_by_01:"alt+up",decrement_number_by_01:"alt+down",increment_number_by_10:{mac:"alt+command+up",win:"shift+alt+up"},decrement_number_by_10:{mac:"alt+command+down",win:"shift+alt+down"},select_next_item:{mac:"shift+command+.",win:"shift+ctrl+."},select_previous_item:{mac:"shift+command+,",win:"shift+ctrl+,"},reflect_css_value:{mac:"shift+command+r",win:"shift+ctrl+r"},encode_decode_data_url:{mac:"shift+ctrl+d",win:"ctrl+'"},expand_abbreviation_with_tab:"Tab",wrap_with_abbreviation:{mac:"shift+ctrl+a",win:"shift+ctrl+a"}},d=new l;for(var h in t.commands=new s,t.runEmmetCommand=function e(t){try{d.setupContext(t);var n=i.actions||i.require("actions");if("expand_abbreviation_with_tab"==this.action){if(!t.selection.isEmpty())return!1;var r=t.selection.lead,s=t.session.getTokenAt(r.row,r.column);if(s&&/\btag\b/.test(s.type))return!1}if("wrap_with_abbreviation"==this.action)return setTimeout((function(){n.run("wrap_with_abbreviation",d)}),0);var a=n.run(this.action,d)}catch(o){if(!i)return p(e.bind(this,t)),!0;t._signal("changeStatus","string"==typeof o?o:o.message),console.log(o),a=!1}return a},u)t.commands.addCommand({name:"emmet:"+h,action:h,bindKey:u[h],exec:t.runEmmetCommand,multiSelectAction:"forEach"});t.updateCommands=function(e,n){n?e.keyBinding.addKeyboardHandler(t.commands):e.keyBinding.removeKeyboardHandler(t.commands)},t.isSupportedMode=function(e){if(!e)return!1;if(e.emmetConfig)return!0;var t=e.$id||e;return/css|less|scss|sass|stylus|html|php|twig|ejs|handlebars/.test(t)},t.isAvailable=function(e,n){if(/(evaluate_math_expression|expand_abbreviation)$/.test(n))return!0;var i=e.session.$mode,r=t.isSupportedMode(i);if(r&&i.$modes)try{d.setupContext(e),/js|php/.test(d.getSyntax())&&(r=!1)}catch(s){}return r};var f=function(e,n){var i=n;if(i){var r=t.isSupportedMode(i.session.$mode);!1===e.enableEmmet&&(r=!1),r&&p(),t.updateCommands(i,r)}},p=function(t){"string"==typeof r&&e("ace/config").loadModule(r,(function(){r=null,t&&t()}))};t.AceEmmetEditor=l,e("ace/config").defineOptions(a.prototype,"editor",{enableEmmet:{set:function(e){this[e?"on":"removeListener"]("changeMode",f),f({enableEmmet:!!e},this)},value:!0}}),t.setCore=function(e){"string"==typeof e?r=e:i=e}})),function(){ace.acequire(["ace/ext/emmet"],(function(){}))}()},b39a:function(e,t,n){"use strict";var i=n("da84"),r=n("ebb5"),s=n("d039"),a=i.Int8Array,o=r.aTypedArray,c=r.exportTypedArrayMethod,l=[].toLocaleString,u=[].slice,d=!!a&&s((function(){l.call(new a(1))})),h=s((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!s((function(){a.prototype.toLocaleString.call([1,2])}));c("toLocaleString",(function(){return l.apply(d?u.call(o(this)):o(this),arguments)}),h)},b3da:function(e,t,n){"use strict";n("5ae5")},b420:function(e,t,n){var i=n("23e7"),r=n("621a"),s=n("a981");i({global:!0,forced:!s},{DataView:r.DataView})},b56e:function(e,t,n){"use strict";var i=n("861d"),r=n("9bf2"),s=n("e163"),a=n("b622"),o=a("hasInstance"),c=Function.prototype;o in c||r.f(c,o,{value:function(e){if("function"!=typeof this||!i(e))return!1;if(!i(this.prototype))return e instanceof this;while(e=s(e))if(this.prototype===e)return!0;return!1}})},b575:function(e,t,n){var i,r,s,a,o,c,l,u,d=n("da84"),h=n("06cf").f,f=n("2cf4").set,p=n("1cdc"),g=n("605d"),m=d.MutationObserver||d.WebKitMutationObserver,v=d.document,b=d.process,y=d.Promise,w=h(d,"queueMicrotask"),_=w&&w.value;_||(i=function(){var e,t;g&&(e=b.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?a():s=void 0,n}}s=void 0,e&&e.enter()},!p&&!g&&m&&v?(o=!0,c=v.createTextNode(""),new m(i).observe(c,{characterData:!0}),a=function(){c.data=o=!o}):y&&y.resolve?(l=y.resolve(void 0),u=l.then,a=function(){u.call(l,i)}):a=g?function(){b.nextTick(i)}:function(){f.call(d,i)}),e.exports=_||function(e){var t={fn:e,next:void 0};s&&(s.next=t),r||(r=t,a()),s=t}},b593:function(e,t,n){"use strict";n("44b8")},b622:function(e,t,n){var i=n("da84"),r=n("5692"),s=n("5135"),a=n("90e3"),o=n("4930"),c=n("fdbf"),l=r("wks"),u=i.Symbol,d=c?u:u&&u.withoutSetter||a;e.exports=function(e){return s(l,e)||(o&&s(u,e)?l[e]=u[e]:l[e]=d("Symbol."+e)),l[e]}},b636:function(e,t,n){var i=n("746f");i("asyncIterator")},b64b:function(e,t,n){var i=n("23e7"),r=n("7b0b"),s=n("df75"),a=n("d039"),o=a((function(){s(1)}));i({target:"Object",stat:!0,forced:o},{keys:function(e){return s(r(e))}})},b65f:function(e,t,n){var i=n("23e7"),r=Math.ceil,s=Math.floor;i({target:"Math",stat:!0},{trunc:function(e){return(e>0?s:r)(e)}})},b680:function(e,t,n){"use strict";var i=n("23e7"),r=n("a691"),s=n("408a"),a=n("1148"),o=n("d039"),c=1..toFixed,l=Math.floor,u=function(e,t,n){return 0===t?n:t%2===1?u(e,t-1,n*e):u(e*e,t/2,n)},d=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},h=c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!o((function(){c.call({})}));i({target:"Number",proto:!0,forced:h},{toFixed:function(e){var t,n,i,o,c=s(this),h=r(e),f=[0,0,0,0,0,0],p="",g="0",m=function(e,t){var n=-1,i=t;while(++n<6)i+=e*f[n],f[n]=i%1e7,i=l(i/1e7)},v=function(e){var t=6,n=0;while(--t>=0)n+=f[t],f[t]=l(n/e),n=n%e*1e7},b=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==f[e]){var n=String(f[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(h<0||h>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(p="-",c=-c),c>1e-21)if(t=d(c*u(2,69,1))-69,n=t<0?c*u(2,-t,1):c/u(2,t,1),n*=4503599627370496,t=52-t,t>0){m(0,n),i=h;while(i>=7)m(1e7,0),i-=7;m(u(10,i,1),0),i=t-1;while(i>=23)v(1<<23),i-=23;v(1<<i),m(1,1),v(2),g=b()}else m(0,n),m(1<<-t,0),g=b()+a.call("0",h);return h>0?(o=g.length,g=p+(o<=h?"0."+a.call("0",h-o)+g:g.slice(0,o-h)+"."+g.slice(o-h))):g=p+g,g}})},b6db:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.active?n("view-records-general",{attrs:{"hide-advanced":""}},[n("vui-group-item",{attrs:{label:"Criminal Status:"}},[n("view-records-field",{attrs:{editable:(4&e.editable)>0,path:"active.security.criminal"}},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.$root.$data.state,"editingvalue",t.target.multiple?n:n[0])}}},e._l(e.choices.criminal_status,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v(e._s(t))])})),0)])],1),n("vui-group-item",{attrs:{label:"Crimes:"}},[n("view-records-field",{attrs:{editable:(4&e.editable)>0,path:"active.security.crimes"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],domProps:{value:e.$root.$data.state.editingvalue},on:{input:function(t){t.target.composing||e.$set(e.$root.$data.state,"editingvalue",t.target.value)}}})])],1),n("vui-group-item",{attrs:{label:"Comments:"}},[e._l(e.active.security.comments,(function(t){return n("div",{key:t},[e._v(e._s(t)+" "),(4&e.editable)>0?n("vui-button",{staticClass:"danger",attrs:{params:{removefromrecord:{value:t,key:["active","security","comments"]}},icon:"trash-alt"}}):e._e()],1)})),0==e.active.security.comments.length?n("div",[e._v("There are no comments.")]):e._e(),(4&e.editable)>0?n("view-records-field",{attrs:{"edit-button":"Add"},on:{save:function(t){return e.add("active.security.comments",t)}}}):e._e()],2),n("vui-group-item",{attrs:{label:"Notes:"}},[n("view-records-field",{attrs:{editable:(4&e.editable)>0,path:"active.security.notes"}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.$root.$data.state.editingvalue,expression:"$root.$data.state.editingvalue"}],domProps:{value:e.$root.$data.state.editingvalue},on:{input:function(t){t.target.composing||e.$set(e.$root.$data.state,"editingvalue",t.target.value)}}})])],1),n("vui-group-item",{attrs:{label:"Incidents:"}},[e._l(e.active.security.incidents,(function(t,i){return n("div",{key:i,staticClass:"incidents"},[n("view-records-incident",{attrs:{incident:t}}),i+1<e.active.security.incidents.length?n("hr"):e._e()],1)})),0==e.active.security.incidents.length?n("div",[e._v("There are no incidents.")]):e._e()],2)],1):e._e()},r=[],s=(n("ac1f"),n("1276"),{data:function(){return this.$root.$data.state},methods:{add:function(e,t){this.$toTopic({addtorecord:{value:t,key:e.split(".")}})}}}),a=s,o=(n("a2de"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"c7772da2",null);t["default"]=c.exports},b727:function(e,t,n){var i=n("0366"),r=n("44ad"),s=n("7b0b"),a=n("50c4"),o=n("65f0"),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,d=6==e,h=5==e||d;return function(f,p,g,m){for(var v,b,y=s(f),w=r(y),_=i(p,g,3),x=a(w.length),k=0,A=m||o,C=t?A(f,x):n?A(f,0):void 0;x>k;k++)if((h||k in w)&&(v=w[k],b=_(v,k,y),e))if(t)C[k]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:c.call(C,v)}else if(u)return!1;return d?-1:l||u?u:C}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},b81a:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("h3",[e._v("Timing Unit:")]),e.timeractive?n("vui-button",{attrs:{params:{time:1}}},[e._v("Active")]):n("vui-button",{attrs:{params:{time:1}}},[e._v("Inactive")])],1),n("div",[n("h3",[e._v("Time Left:")]),n("vui-button",{attrs:{params:{tp:-30}}},[e._v("--")]),n("vui-button",{attrs:{params:{tp:-1}}},[e._v("-")]),n("span",{staticClass:"value"},[e._v(e._s(e.minute)+":"+e._s(e.second))]),n("vui-button",{attrs:{params:{tp:1}}},[e._v("+")]),n("vui-button",{attrs:{params:{tp:30}}},[e._v("++")])],1)])},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=(n("5ddf"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"b7af1e1c",null);t["default"]=c.exports},b833:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Smart Track")]),n("vui-button",{class:{button:1,selected:e.tracking_apc},attrs:{disabled:1==e.has_selected_io,params:{track_apc:1}}},[e._v(e._s(e.has_selected_io?"Toggle APC Smart Tracking (I/O in Buffer)":"Toggle APC Smart Tracking"))]),e._v(" "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("Enabling this will update the multitool's icon to point in the direction of the nearest APC "),n("i",[e._v("within your area")]),e._v(".")]),n("h3",[e._v("Circuit Input/Output")]),n("vui-group",[n("vui-group-item",{attrs:{label:"I/O Name:"}},[e._v(e._s(e.selected_io_name))]),n("vui-group-item",{attrs:{label:"I/O Type:"}},[e._v(e._s(e.selected_io_name))])],1),n("vui-button",{class:{danger:e.has_selected_io},attrs:{disabled:!e.has_selected_io,params:{clear_io:1}}},[e._v(e._s(e.has_selected_io?"Clear I/O":"No I/O in Buffer"))]),e._v(" "),n("vui-tooltip",{attrs:{label:"?"}},[e._v("The I/O Buffer refers to the input/output wires of integrated circuits, which can be wired up using a multitool.")])],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=(n("d84c"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"1ba61cce",null);t["default"]=c.exports},b884:function(e,t,n){},b8bf:function(e,t,n){var i=n("23e7"),r=n("83ab"),s=n("7c73");i({target:"Object",stat:!0,sham:!r},{create:s})},b959:function(e,t,n){},baa5:function(e,t,n){var i=n("23e7"),r=n("e58c");i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb36:function(e,t,n){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(s,r),s.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},s.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},s.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=s})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var i=e("../lib/oop"),r=e("./doc_comment_highlight_rules").DocCommentHighlightRules,s=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",o=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",i="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[r.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[r.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:i},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||c.call(this)),this.embedRules(r,"doc-",[r.getEndRule("no_regex")]),this.normalizeRules()};function c(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(e){return[{token:"comment",regex:/\/\*/,next:[r.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[r.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}i.inherits(o,s),t.JavaScriptHighlightRules=o})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var i=e("../range").Range,r=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),r=n.match(/^(\s*\})/);if(!r)return 0;var s=r[1].length,a=e.findMatchingBracket({row:t,column:s});if(!a||a.row==t)return 0;var o=this.$getIndent(e.getLine(a.row));e.replace(new i(t,0,t,s-1),o)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(r.prototype),t.MatchingBraceOutdent=r})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var i=e("../../lib/oop"),r=e("../../range").Range,s=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(a,s),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var r=this._getFoldWidgetBase(e,t,n);return!r&&this.startRegionRe.test(i)?"start":r},this.getFoldWidgetRange=function(e,t,n,i){var r=e.getLine(n);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,n);var s=r.match(this.foldingStartMarker);if(s){var a=s.index;if(s[1])return this.openingBracketBlock(e,s[1],n,a);var o=e.getCommentFoldRange(n,a+s[0].length,1);return o&&!o.isMultiLine()&&(i?o=this.getSectionRange(e,n):"all"!=t&&(o=null)),o}if("markbegin"!==t){s=r.match(this.foldingStopMarker);if(s){a=s.index+s[0].length;return s[1]?this.closingBracketBlock(e,s[1],n,a):e.getCommentFoldRange(n,a,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),i=n.search(/\S/),s=t,a=n.length;t+=1;var o=t,c=e.getLength();while(++t<c){n=e.getLine(t);var l=n.search(/\S/);if(-1!==l){if(i>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=s)break;if(u.isMultiLine())t=u.end.row;else if(i==l)break}o=t}}return new r(s,a,o,e.getLine(o).length)},this.getCommentRegionBlock=function(e,t,n){var i=t.search(/\s*$/),s=e.getLength(),a=n,o=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;while(++n<s){t=e.getLine(n);var l=o.exec(t);if(l&&(l[1]?c--:c++,!c))break}var u=n;if(u>a)return new r(a,i,u,t.length)}}.call(a.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,i){"use strict";var r=e("../lib/oop"),s=e("./text").Mode,a=e("./javascript_highlight_rules").JavaScriptHighlightRules,o=e("./matching_brace_outdent").MatchingBraceOutdent,c=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,u=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=a,this.$outdent=new o,this.$behaviour=new l,this.foldingRules=new u};r.inherits(d,s),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),r=this.getTokenizer().getLineTokens(t,e),s=r.tokens,a=r.state;if(s.length&&"comment"==s[s.length-1].type)return i;if("start"==e||"no_regex"==e){var o=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);o&&(i+=n)}else if("doc-start"==e){if("start"==a||"no_regex"==a)return"";o=t.match(/^\s*(\/?)\*/);o&&(o[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],n("6d68"),"JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript"}.call(d.prototype),t.Mode=d}))},bba4:function(e,t,n){var i=n("e9a7"),r=n("b20a"),s=r((function(e,t,n){return t=t.toLowerCase(),e+(n?i(t):t)}));e.exports=s},bc01:function(e,t,n){var i=n("23e7"),r=n("d039"),s=Math.imul,a=r((function(){return-5!=s(4294967295,5)||2!=s.length}));i({target:"Math",stat:!0,forced:a},{imul:function(e,t){var n=65535,i=+e,r=+t,s=n&i,a=n&r;return 0|s*a+((n&i>>>16)*a+s*(n&r>>>16)<<16>>>0)}})},bd34:function(e,t,n){},be8e:function(e,t,n){var i=n("f748"),r=Math.abs,s=Math.pow,a=s(2,-52),o=s(2,-23),c=s(2,127)*(2-o),l=s(2,-126),u=function(e){return e+1/a-1/a};e.exports=Math.fround||function(e){var t,n,s=r(e),d=i(e);return s<l?d*u(s/l/o)*l*o:(t=(1+o/a)*s,n=t-(t-s),n>c||n!=n?d*(1/0):d*n)}},bf19:function(e,t,n){"use strict";var i=n("23e7");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},bf96:function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),s=n("eb1d"),a=n("7b0b"),o=n("c04e"),c=n("e163"),l=n("06cf").f;r&&i({target:"Object",proto:!0,forced:s},{__lookupGetter__:function(e){var t,n=a(this),i=o(e,!0);do{if(t=l(n,i))return t.get}while(n=c(n))}})},bfa1:function(e,t,n){},c04e:function(e,t,n){var i=n("861d");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},c0b6:function(e,t,n){var i=n("23e7"),r=n("0538");i({target:"Function",proto:!0},{bind:r})},c0d6:function(e,t,n){"use strict";n("4160"),n("b64b"),n("159b");t["a"]={debug:!1,state:{assets:[],state:{},active:"",uiref:"",status:2,size:[400,600],debug:0,debug_view:!1,wtime:0,roundstart_hour:0},loadState:function(e){var t=this;this.isUpdating=!0,this.lastUpdateTime=Date.now(),this.debug&&console.log("Loaded state with",e),this.state.assets=e.assets,Object.keys(e.state).forEach((function(n){t.state.state[n]=e.state[n]})),this.state.active=e.active,this.state.uiref=e.uiref,this.state.status=e.status,this.state.size=e.size,this.state.title=e.title,this.state.wtime=e.wtime,this.state.debug=e.debug,this.state.roundstart_hour=e.roundstart_hour,this.isUpdating=!1},isUpdating:!1,lastUpdateTime:null,getStatePushString:function(){return"vueuistateupdate="+encodeURIComponent(this.getStatePushDataString())},getStatePushDataString:function(){return JSON.stringify(this.state)},pushState:function(){if(!(this.isUpdating||Date.now()-this.lastUpdateTime<100)){var e=new XMLHttpRequest;e.open("GET","?src="+this.state.uiref+"&vueuipushonly=1&"+this.getStatePushString(),!0),e.send()}}}},c0f7:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-input-search",{attrs:{input:e.records,keys:["id","name","rank"]},model:{value:e.filtered,callback:function(t){e.filtered=t},expression:"filtered"}}),e._l(e.filtered,(function(t){return n("div",{key:t.id},[n("vui-button",{attrs:{params:{setactive_locked:t.id},"push-state":""},on:{click:function(t){e.activeview=e.defaultview}}},[e._v(e._s(t.id)+": "+e._s(t.name))])],1)}))],2)},r=[],s=(n("07ac"),{data:function(){return{state:this.$root.$data.state,filtered:[]}},computed:{records:function(){return Object.values(this.state.allrecords_locked)}}}),a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},c13e:function(e,t,n){"use strict";n("1d73")},c19f:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),s=n("621a"),a=n("2626"),o="ArrayBuffer",c=s[o],l=r[o];i({global:!0,forced:l!==c},{ArrayBuffer:c}),a(o)},c1ac:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").filter,s=n("4840"),a=i.aTypedArray,o=i.aTypedArrayConstructor,c=i.exportTypedArrayMethod;c("filter",(function(e){var t=r(a(this),e,arguments.length>1?arguments[1]:void 0),n=s(this,this.constructor),i=0,c=t.length,l=new(o(n))(c);while(c>i)l[i]=t[i++];return l}))},c1f9:function(e,t,n){var i=n("23e7"),r=n("2266"),s=n("8418");i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){s(t,e,n)}),{AS_ENTRIES:!0}),t}})},c200:function(e,t,n){"use strict";n("05b6")},c20d:function(e,t,n){var i=n("da84"),r=n("58a8").trim,s=n("5899"),a=i.parseInt,o=/^[+-]?0[Xx]/,c=8!==a(s+"08")||22!==a(s+"0x16");e.exports=c?function(e,t){var n=r(String(e));return a(n,t>>>0||(o.test(n)?16:10))}:a},c2e3:function(e,t,n){"use strict";n("7938")},c32f:function(e,t,n){var i=n("2b10");function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}e.exports=r},c35a:function(e,t,n){var i=n("23e7"),r=n("7e12");i({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},c430:function(e,t){e.exports=!1},c5d0:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("italics")},{italics:function(){return r(this,"i","","")}})},c60e:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-input-search",{attrs:{input:e.ghosts_filtered,keys:["name"],autofocus:"",threshold:e.threshold,"include-score":""},model:{value:e.search_results,callback:function(t){e.search_results=t},expression:"search_results"}}),e._l(e.ghost_categories,(function(t){return n("div",{key:t},[n("h3",[e._v(e._s(t))]),e._l(e.ghosts_category_filtered(t),(function(t){return n("vui-button",{key:t.item.ref,class:{button:1},attrs:{params:{follow_target:t.item.ref}}},[e._v(e._s(t.item.name))])}))],2)}))],2)},r=[];n("a4d3"),n("e01a"),n("d28b"),n("4de4"),n("a630"),n("e260"),n("d81d"),n("fb6a"),n("b0c0"),n("d3b7"),n("07ac"),n("25f0"),n("6062"),n("3ca3"),n("ddb0");function s(e){return l(e)||c(e)||o(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var d={data:function(){return{search_results:[],s:this.$root.$data.state,threshold:.3}},computed:{ghosts_filtered:function(){return Object.values(this.s.ghosts).filter((function(e){return e}))},ghost_categories:function(){var e=this.s.ghosts.map((function(e){return e.category}));return s(new Set(e))}},methods:{ghosts_category_filtered:function(e){return this.search_results.filter((function(t){return t.item.category==e}))}}},h=d,f=n("2877"),p=Object(f["a"])(h,i,r,!1,null,null,null);t["default"]=p.exports},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6c8:function(e,t,n){},c6cd:function(e,t,n){var i=n("da84"),r=n("ce4e"),s="__core-js_shared__",a=i[s]||r(s,{});e.exports=a},c740:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").findIndex,s=n("44d2"),a=n("ae40"),o="findIndex",c=!0,l=a(o);o in[]&&Array(1)[o]((function(){c=!1})),i({target:"Array",proto:!0,forced:c||!l},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),s(o)},c760:function(e,t,n){var i=n("23e7");i({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},c765:function(e,t,n){},c781:function(e,t,n){},c7cd:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("fixed")},{fixed:function(){return r(this,"tt","","")}})},c7e2:function(e,t,n){"use strict";n("c7f0")},c7ef:function(e,t,n){"use strict";n("4cb7")},c7f0:function(e,t,n){},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("d039"),r=n("5899"),s="
";e.exports=function(e){return i((function(){return!!r[e]()||s[e]()!=s||r[e].name!==e}))}},c906:function(e,t,n){var i=n("23e7"),r=n("d039"),s=n("861d"),a=Object.isExtensible,o=r((function(){a(1)}));i({target:"Object",stat:!0,forced:o},{isExtensible:function(e){return!!s(e)&&(!a||a(e))}})},c96a:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("small")},{small:function(){return r(this,"small","","")}})},c975:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").indexOf,s=n("a640"),a=n("ae40"),o=[].indexOf,c=!!o&&1/[1].indexOf(1,-0)<0,l=s("indexOf"),u=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:c||!l||!u},{indexOf:function(e){return c?o.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},ca21:function(e,t,n){var i=n("23e7"),r=n("1ec1");i({target:"Math",stat:!0},{log1p:r})},ca84:function(e,t,n){var i=n("5135"),r=n("fc6a"),s=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,o=r(e),c=0,l=[];for(n in o)!i(a,n)&&i(o,n)&&l.push(n);while(t.length>c)i(o,n=t[c++])&&(~s(l,n)||l.push(n));return l}},ca91:function(e,t,n){"use strict";var i=n("ebb5"),r=n("d58f").left,s=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduce",(function(e){return r(s(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").includes,s=n("44d2"),a=n("ae40"),o=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!o},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},cb10:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Detected Firearms")]),n("table",{staticClass:"table border"},[e._m(0),e._l(e.sorted_pins,(function(t){return n("tr",{key:t.ref,staticClass:"item border"},[n("td",[e._v(e._s(t.registered_info))]),n("td",[e._v(e._s(t.gun_name))]),n("td",[n("vui-button",{class:{button:1,selected:1==t.lock_status},attrs:{params:{pin:t.ref,action:"setdisable"}}},[e._v("Disabled")]),n("vui-button",{class:{button:1,selected:2==t.lock_status},attrs:{params:{pin:t.ref,action:"setauto"}}},[e._v("Automatic")]),n("vui-button",{class:{button:1,selected:3==t.lock_status},attrs:{params:{pin:t.ref,action:"setstun"}}},[e._v("Stun Only")]),n("vui-button",{class:{button:1,selected:4==t.lock_status},attrs:{params:{pin:t.ref,action:"setlethal"}}},[e._v("Unrestricted")])],1)])}))],2)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",[e._v("User")]),n("th",[e._v("Firearm")]),n("th",[e._v("Settings")])])}],s=(n("fb6a"),{data:function(){return this.$root.$data.state},computed:{sorted_pins:function(){return this.wireless_firing_pins.slice(0).sort((function(e,t){return e.registered_info>t.registered_info?1:-1}))}}}),a=s,o=(n("c7e2"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"570930e6",null);t["default"]=c.exports},cb29:function(e,t,n){var i=n("23e7"),r=n("81d5"),s=n("44d2");i({target:"Array",proto:!0},{fill:r}),s("fill")},cbf4:function(e,t,n){"use strict";n("e210")},cc12:function(e,t,n){var i=n("da84"),r=n("861d"),s=i.document,a=r(s)&&r(s.createElement);e.exports=function(e){return a?s.createElement(e):{}}},cc71:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),s=n("af03");i({target:"String",proto:!0,forced:s("bold")},{bold:function(){return r(this,"b","","")}})},cca6:function(e,t,n){var i=n("23e7"),r=n("60da");i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},ccdf:function(e,t,n){},cd26:function(e,t,n){"use strict";var i=n("ebb5"),r=i.aTypedArray,s=i.exportTypedArrayMethod,a=Math.floor;s("reverse",(function(){var e,t=this,n=r(t).length,i=a(n/2),s=0;while(s<i)e=t[s],t[s++]=t[--n],t[n]=e;return t}))},cdf9:function(e,t,n){var i=n("825a"),r=n("861d"),s=n("f069");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=s.f(e),a=n.resolve;return a(t),n.promise}},ce4e:function(e,t,n){var i=n("da84"),r=n("9112");e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},ce52:function(e,t,n){},ce86:function(e,t,n){var i=n("9e69"),r=n("7948"),s=n("6747"),a=n("ffd6"),o=1/0,c=i?i.prototype:void 0,l=c?c.toString:void 0;function u(e){if("string"==typeof e)return e;if(s(e))return r(e,u)+"";if(a(e))return l?l.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}e.exports=u},cee8:function(e,t,n){var i=n("23e7"),r=n("861d"),s=n("f183").onFreeze,a=n("bb2f"),o=n("d039"),c=Object.preventExtensions,l=o((function(){c(1)}));i({target:"Object",stat:!0,forced:l,sham:!a},{preventExtensions:function(e){return c&&r(e)?c(s(e)):e}})},cf32:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[7&e.avaivabletypes?n("vui-button",{class:{selected:"list"==e.activeview},on:{click:function(t){e.activeview="list"}}},[e._v("List")]):e._e(),8&e.avaivabletypes?n("vui-button",{class:{selected:"list-locked"==e.activeview},on:{click:function(t){e.activeview="list-locked"}}},[e._v("List (Locked)")]):e._e(),32&e.avaivabletypes?n("vui-button",{class:{selected:"list-virus"==e.activeview},on:{click:function(t){e.activeview="list-virus"}}},[e._v("List (Virus)")]):e._e(),e.active?[1&e.avaivabletypes?n("vui-button",{class:{selected:"general"==e.activeview},on:{click:function(t){e.activeview="general"}}},[e._v("General")]):e._e(),4&e.avaivabletypes?n("vui-button",{class:{selected:"security"==e.activeview},attrs:{disabled:!e.active.security},on:{click:function(t){e.activeview="security"}}},[e._v("Security")]):e._e(),2&e.avaivabletypes?n("vui-button",{class:{selected:"medical"==e.activeview},attrs:{disabled:!e.active.medical},on:{click:function(t){e.activeview="medical"}}},[e._v("Medical")]):e._e()]:e._e(),e.active_virus?[n("vui-button",{class:{selected:"virus"==e.activeview},on:{click:function(t){e.activeview="virus"}}},[e._v("Virus")]),n("vui-button",{attrs:{params:{setactive_virus:"null"},"push-state":""},on:{click:function(t){e.activeview="list-virus"}}},[e._v("Unload record")]),e.canprint?n("vui-button",{attrs:{params:{print:"active_virus"}}},[e._v("Print")]):e._e()]:e._e(),n("vui-button",{staticStyle:{position:"absolute",right:"12px"},attrs:{params:{logout:1}}},[e._v("Logout")])],2),n("hr"),e.activeview?n("view-records-"+e.activeview,{tag:"component"}):e._e()],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=(n("c200"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"a1e2a0dc",null);t["default"]=c.exports},cfc3:function(e,t,n){var i=n("74e8");i("Float32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("428f"),r=n("da84"),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(i[e])||s(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},d094:function(e,t){var n="\\ud800-\\udfff",i="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",a=i+r+s,o="\\ufe0e\\ufe0f",c="["+n+"]",l="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",d="(?:"+l+"|"+u+")",h="[^"+n+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",m=d+"?",v="["+o+"]?",b="(?:"+g+"(?:"+[h,f,p].join("|")+")"+v+m+")*",y=v+m+b,w="(?:"+[h+l+"?",l,f,p,c].join("|")+")",_=RegExp(u+"(?="+u+")|"+w+y,"g");function x(e){return e.match(_)||[]}e.exports=x},d139:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").find,s=i.aTypedArray,a=i.exportTypedArrayMethod;a("find",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},d194:function(e,t,n){var i=n("c32f"),r=n("aaec"),s=n("126d"),a=n("76dd");function o(e){return function(t){t=a(t);var n=r(t)?s(t):void 0,o=n?n[0]:t.charAt(0),c=n?i(n,1).join(""):t.slice(1);return o[e]()+c}}e.exports=o},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!i.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},d233:function(e,t,n){},d28b:function(e,t,n){var i=n("746f");i("iterator")},d2bb:function(e,t,n){var i=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(s){}return function(n,s){return i(n),r(s),t?e.call(n,s):n.__proto__=s,n}}():void 0)},d3b7:function(e,t,n){var i=n("00ee"),r=n("6eeb"),s=n("b041");i||r(Object.prototype,"toString",s,{unsafe:!0})},d3c6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-group",[n("vui-group-item",{attrs:{label:"Master:"}},[e.master?[e._v(" "+e._s(e.master)+" ("+e._s(e.dna)+") "),n("vui-button",{attrs:{params:{getdna:1}}},[e._v("Request carrier DNA sample")])]:n("span",[e._v("None")])],2),n("vui-group-item",{attrs:{label:"Prime Directive:"}},[e._v(e._s(e.prime))]),n("vui-group-item",{attrs:{label:"Supplemental Directive(s):"}},[e.supplemental?n("span",[e._v(e._s(e.supplemental))]):n("span",[e._v("None")])]),n("vui-group-item",[n("i",[e._v('Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.')]),n("br"),n("b",[e._v("Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability.")])])],1)],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},d3c8:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("i",[e._v("Welcome to NT IT client manager")]),n("hr"),n("div",[e._v("This is the Client Management Application of the Nanotrasen IT Department. It is used ensure that the clients comply with the corporate IT policy, enroll new clients and manage clients remotely")]),n("br"),n("h2",[e._v("Status")]),n("vui-item",{attrs:{label:"Enrollment Status:"}},[0==e.enrollment_status?n("span",[e._v("Unconfigured")]):1==e.enrollment_status?n("span",[e._v("Work Device")]):2==e.enrollment_status?n("span",[e._v("Private Device")]):n("span",[e._v("Unknown")])]),1==e.enrollment_status?[n("vui-item",{attrs:{label:"Policy Compliance Status:"}},[e._v("Compliant")]),n("vui-item",{attrs:{label:"Remote Management Status:"}},[e._v("Active")])]:e._e(),0==e.enrollment_status?[n("h2",[e._v("Device Enrollment")]),n("vui-item",{attrs:{label:"Device Type:"}},[n("vui-button",{class:{selected:1==e.device_type},on:{click:function(t){e.device_type=1}}},[e._v("Company")]),n("vui-button",{class:{selected:2==e.device_type},on:{click:function(t){e.device_type=2}}},[e._v("Private")])],1),1==e.device_type?n("vui-item",{attrs:{label:"Device Preset:"}},e._l(e.presets,(function(t,i){return n("vui-button",{key:i,class:{selected:e.device_preset==i},on:{click:function(t){e.device_preset=i}}},[e._v(e._s(t.name))])})),1):e._e(),n("vui-item",{attrs:{label:"Enroll Device:"}},[n("vui-button",{attrs:{disabled:0==e.device_type||1==e.device_type&&""==e.device_preset||0==e.ntnet_status,params:{enroll:{type:e.device_type,preset:e.device_preset}}}},[e._v("Confirm")]),0==e.ntnet_status?n("div",{staticStyle:{color:"red"}},[e._v("NTNET unavailable. Unable to enroll device.")]):e._e()],1)]:e._e()],2)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},d44d:function(e,t,n){"use strict";n("d233")},d44e:function(e,t,n){var i=n("9bf2").f,r=n("5135"),s=n("b622"),a=s("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},d58f:function(e,t,n){var i=n("1c0b"),r=n("7b0b"),s=n("44ad"),a=n("50c4"),o=function(e){return function(t,n,o,c){i(n);var l=r(t),u=s(l),d=a(l.length),h=e?d-1:0,f=e?-1:1;if(o<2)while(1){if(h in u){c=u[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in u&&(c=n(c,u[h],h,l));return c}};e.exports={left:o(!1),right:o(!0)}},d5d6:function(e,t,n){"use strict";var i=n("ebb5"),r=n("b727").forEach,s=i.aTypedArray,a=i.exportTypedArrayMethod;a("forEach",(function(e){r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},d657:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uiTitleWrapper",attrs:{draggable:""},on:{mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.startDragging(t)},mouseup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.stopDragging(t)}}},[n("div",{staticClass:"titleBar"},[n("i",{staticClass:"fas ic-bug uiIcon24 uiDebugIcon",class:e.debugClass,attrs:{unselectable:"on"},on:{click:function(t){return e.activateDebug()},mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.prevent(t)}}}),n("div",{staticClass:"uiTitleText",attrs:{unselectable:"on"}},[e._v(e._s(e.title))]),n("div",{staticClass:"uiTitleClose",attrs:{unselectable:"on"},on:{click:function(t){return e.closeUI(t)},mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.prevent(t)}}},[e._v("×")])]),e._t("default")],2)},r=[],s=n("f0e0"),a={data:function(){return this.$root.$data},computed:{debugClass:function(){return this.debug_view?"good":this.debug?"bad":"hidden"}},methods:{closeUI:function(e){e.stopPropagation(),this.$toTopicRaw({src:this.uiref,vueuiclose:1}),s["a"].setVisibility(0)},startDragging:function(e){s["a"].dragStartHandler(e)},stopDragging:function(e){s["a"].dragEndHandler(e)},prevent:function(e){e.stopPropagation()},activateDebug:function(){this.debug_view=!this.debug_view,this.debug_view?(document.getElementById("content").classList.add("uiDebug"),document.getElementById("debug").classList.add("uiDebug")):(document.getElementById("content").classList.remove("uiDebug"),document.getElementById("debug").classList.remove("uiDebug"))}}},o=a,c=n("2877"),l=Object(c["a"])(o,i,r,!1,null,null,null);t["default"]=l.exports},d6dd:function(e,t,n){var i=n("23e7"),r=n("d066"),s=n("825a"),a=n("bb2f");i({target:"Reflect",stat:!0,sham:!a},{preventExtensions:function(e){s(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},d784:function(e,t,n){"use strict";n("ac1f");var i=n("6eeb"),r=n("d039"),s=n("b622"),a=n("9263"),o=n("9112"),c=s("species"),l=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=s("replace"),h=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=s(e),g=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g&&!r((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!g||!m||"replace"===e&&(!l||!u||h)||"split"===e&&!f){var v=/./[p],b=n(p,""[e],(function(e,t,n,i,r){return t.exec===a?g&&!r?{done:!0,value:v.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),y=b[0],w=b[1];i(String.prototype,e,y),i(RegExp.prototype,p,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}d&&o(RegExp.prototype[p],"sham",!0)}},d80f:function(e,t,n){var i=n("23e7"),r=n("fc6a"),s=n("50c4");i({target:"String",stat:!0},{raw:function(e){var t=r(e.raw),n=s(t.length),i=arguments.length,a=[],o=0;while(n>o)a.push(String(t[o++])),o<i&&a.push(String(arguments[o]));return a.join("")}})},d81b:function(e,t,n){},d81d:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").map,s=n("1dde"),a=n("ae40"),o=s("map"),c=a("map");i({target:"Array",proto:!0,forced:!o||!c},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},d84c:function(e,t,n){"use strict";n("b15a")},da1f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-group",[n("vui-group-item",{attrs:{label:"Machine:"}},[e._v(e._s(e.s.machine_id))]),n("vui-group-item",{attrs:{label:"ID card:"}},[e._v(e._s(e.s.id_card?e.s.id_card:"None"))]),e.s.access_level?n("vui-group-item",{attrs:{label:"Station funds:"}},[e._v(e._s(e.s.accounts[""+e.s.station_account_number].money.toFixed(2))+"电")]):e._e(),n("vui-group-row",[n("hr")]),null!=e.new_name?[n("vui-group-row",[n("vui-button",{attrs:{icon:"arrow-left"},on:{click:function(t){e.new_name=null}}},[e._v("Back to list")])],1),n("vui-group-item",{attrs:{label:"Account Holder:"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.new_name,expression:"new_name"}],attrs:{type:"text"},domProps:{value:e.new_name},on:{input:function(t){t.target.composing||(e.new_name=t.target.value)}}})]),n("vui-group-item",{attrs:{label:"Initial Deposit:"}},[n("vui-input-numeric",{attrs:{"button-count":0,width:"7em",max:1e6},model:{value:e.new_funds,callback:function(t){e.new_funds=t},expression:"new_funds"}})],1),n("vui-group-item",[n("vui-button",{attrs:{icon:"plus-square"},on:{click:function(t){return e.create_account()}}},[e._v("Create")])],1)]:e.s.access_level?[e.active?[n("vui-group-row",[n("vui-button",{attrs:{icon:"arrow-left"},on:{click:function(t){e.active=null}}},[e._v("Back to list")]),n("vui-button",{attrs:{icon:"print",params:{print:e.active}}},[e._v("Print")])],1),n("vui-group-row",[n("h2",[e._v("Account Details")])]),n("vui-group-item",{attrs:{label:"Account Number:"}},[e._v("#"+e._s(e.active_acc.no))]),n("vui-group-item",{attrs:{label:"Holder:"}},[e._v(e._s(e.active_acc.owner))]),n("vui-group-item",{attrs:{label:"Balance:"}},[e._v(e._s(e.active_acc.money.toFixed(2))+"电")]),n("vui-group-item",{attrs:{label:"Status:"}},[e.active_acc.sus?n("span",{staticClass:"bad"},[e._v("Suspended ")]):n("span",{staticClass:"good"},[e._v("Active ")])]),n("vui-group-row",[e.active_acc.sus?n("vui-button",{attrs:{params:{suspend:{account:e.active}}}},[e._v("Unsuspend")]):n("vui-button",{attrs:{params:{suspend:{account:e.active}}}},[e._v("Suspend")]),e.active_acc.no!=e.s.station_account_number?n("vui-button",{attrs:{params:{revoke_payroll:{account:e.active}}}},[e._v("Revoke Payroll")]):e._e(),2==e.s.access_level?[n("h4",[e._v("Silent fund adjustment")]),null==e.add_funds?n("vui-button",{on:{click:function(t){e.add_funds=0}}},[e._v("Add")]):[n("vui-input-numeric",{attrs:{max:1e6},model:{value:e.add_funds,callback:function(t){e.add_funds=t},expression:"add_funds"}}),n("vui-button",{attrs:{params:{add_funds:{account:e.active,amount:e.add_funds}}}},[e._v("Add")])],n("br"),null==e.remove_funds?n("vui-button",{on:{click:function(t){e.remove_funds=0}}},[e._v("Remove")]):[n("vui-input-numeric",{attrs:{max:1e6},model:{value:e.remove_funds,callback:function(t){e.remove_funds=t},expression:"remove_funds"}}),n("vui-button",{attrs:{params:{remove_funds:{account:e.active,amount:e.remove_funds}}}},[e._v("Remove")])]]:e._e()],2),n("vui-group-row",[n("h2",[e._v("Transactions")]),n("table",{staticClass:"table border",staticStyle:{width:"100%"}},[n("tr",{staticClass:"header border"},[n("th",[n("b",[e._v("Timestamp")])]),n("th",[n("b",[e._v("Target")])]),n("th",[n("b",[e._v("Reason")])]),n("th",[n("b",[e._v("Value")])]),n("th",[n("b",[e._v("Terminal")])])]),e._l(e.active_acc.transactions,(function(t,i){return n("tr",{key:i,staticClass:"item border"},[n("td",[e._v(e._s(t.d)+" "+e._s(t.t))]),n("td",[e._v(e._s(t.tar))]),n("td",[e._v(e._s(t.purp))]),n("td",[e._v(e._s(t.am))]),n("td",[e._v(e._s(t.src))])])}))],2)])]:[n("vui-group-row",[e.s.has_printer?n("vui-button",{attrs:{icon:"print",params:{print:1}}},[e._v("Print")]):e._e(),n("vui-button",{attrs:{icon:"file"},on:{click:function(t){e.new_name=""}}},[e._v("New Account")])],1),n("vui-group-row",[n("h2",[e._v("Idris Banking Accounts")])]),n("vui-group-row",[n("table",{staticClass:"table border",staticStyle:{width:"100%"}},[n("tr",{staticClass:"header border"},[n("th",[n("b",[e._v("Number")])]),n("th",[n("b",[e._v("Name")])])]),e._l(e.s.accounts,(function(t,i){return n("tr",{key:i,staticClass:"item border"},[n("td",[n("vui-button",{on:{click:function(t){e.active=i}}},[e._v("#"+e._s(t.no))])],1),n("td",[n("span",{class:t.sus?"bad":""},[e._v(e._s(t.owner))])])])}))],2)])]]:e._e()],2)],1)},r=[],s={data:function(){return{s:this.$root.$data.state,active:null,add_funds:null,remove_funds:null,new_name:null,new_funds:0}},computed:{active_acc:function(){return this.active?this.s.accounts[this.active]:{}}},methods:{create_account:function(){this.$toTopic({create_account:{name:this.new_name,funds:this.new_funds}}),this.new_name=null,this.new_funds=0}}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db4f:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-group",[n("vui-group-item",{attrs:{label:"Frequency:"}},[n("vui-button",{attrs:{params:{freq:-10}}},[e._v("--")]),n("vui-button",{attrs:{params:{freq:-2}}},[e._v("-")]),n("span",{staticClass:"value-setting"},[e._v(e._s(e.frequency))]),n("vui-button",{attrs:{params:{freq:2}}},[e._v("+")]),n("vui-button",{attrs:{params:{freq:10}}},[e._v("++")])],1),n("vui-group-item",{attrs:{label:"Code:"}},[n("vui-button",{attrs:{params:{code:-10}}},[e._v("--")]),n("vui-button",{attrs:{params:{code:-2}}},[e._v("-")]),n("span",{staticClass:"value-setting"},[e._v(e._s(e.code))]),n("vui-button",{attrs:{params:{code:2}}},[e._v("+")]),n("vui-button",{attrs:{params:{code:10}}},[e._v("++")])],1),n("vui-group-item",[n("vui-button",{attrs:{params:{send:1}}},[e._v("Send")])],1)],1),e.emagged?n("vui-group",[n("vui-group-item",{attrs:{label:"Remote Door Code:"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.doorcode,expression:"doorcode"}],attrs:{type:"text"},domProps:{value:e.doorcode},on:{input:function(t){t.target.composing||(e.doorcode=t.target.value)}}}),n("vui-button",{attrs:{params:{resetcode:1}}},[e._v("Reset to Default")])],1),n("vui-group-item",[n("vui-button",{attrs:{params:{toggledoor:e.doorcode}}},[e._v("Toggle Door")])],1)],1):e._e()],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=(n("fcc9"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"b23b384c",null);t["default"]=c.exports},db96:function(e,t,n){var i=n("23e7"),r=n("825a"),s=Object.isExtensible;i({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),!s||s(e)}})},dbb4:function(e,t,n){var i=n("23e7"),r=n("83ab"),s=n("56ef"),a=n("fc6a"),o=n("06cf"),c=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){var t,n,i=a(e),r=o.f,l=s(i),u={},d=0;while(l.length>d)n=r(i,t=l[d++]),void 0!==n&&c(u,t,n);return u}})},dbfa:function(e,t,n){"use strict";var i=n("23e7"),r=n("1c0b"),s=n("d066"),a=n("f069"),o=n("e667"),c=n("2266"),l="No one promise resolved";i({target:"Promise",stat:!0},{any:function(e){var t=this,n=a.f(t),i=n.resolve,u=n.reject,d=o((function(){var n=r(t.resolve),a=[],o=0,d=1,h=!1;c(e,(function(e){var r=o++,c=!1;a.push(void 0),d++,n.call(t,e).then((function(e){c||h||(h=!0,i(e))}),(function(e){c||h||(c=!0,a[r]=e,--d||u(new(s("AggregateError"))(a,l)))}))})),--d||u(new(s("AggregateError"))(a,l))}));return d.error&&u(d.value),n.promise}})},dc8d:function(e,t,n){var i=n("746f");i("hasInstance")},dca8:function(e,t,n){var i=n("23e7"),r=n("bb2f"),s=n("d039"),a=n("861d"),o=n("f183").onFreeze,c=Object.freeze,l=s((function(){c(1)}));i({target:"Object",stat:!0,forced:l,sham:!r},{freeze:function(e){return c&&a(e)?c(o(e)):e}})},ddb0:function(e,t,n){var i=n("da84"),r=n("fdbc"),s=n("e260"),a=n("9112"),o=n("b622"),c=o("iterator"),l=o("toStringTag"),u=s.values;for(var d in r){var h=i[d],f=h&&h.prototype;if(f){if(f[c]!==u)try{a(f,c,u)}catch(g){f[c]=u}if(f[l]||a(f,l,d),r[d])for(var p in s)if(f[p]!==s[p])try{a(f,p,s[p])}catch(g){f[p]=s[p]}}}},ddc6:function(e,t){function n(e){return function(t){return null==e?void 0:e[t]}}e.exports=n},de06:function(e,t,n){"use strict";n("a4ec")},df0b:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Core Cooling Control System")]),e.state["input"]?n("div",[n("vui-item",{attrs:{label:"Input:"}},[e.state["input"].power?n("span",[e._v("Injecting")]):n("span",[e._v("On Hold")]),e._v(" "),n("vui-button",{attrs:{params:{in_toggle_injector:1},icon:"power-off"}},[e._v("Toggle Power")])],1),n("vui-item",{attrs:{label:"Flow Rate Limit:"}},[e._v(e._s(e.state["input"].rate)+" L/s")]),n("vui-item",{attrs:{label:"Command:"}},[n("vui-input-numeric",{attrs:{width:"3em","button-count":3,max:e.state.maxrate},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.$toTopic({in_set_flowrate:e.state["input"].setrate})}},model:{value:e.state["input"].setrate,callback:function(t){e.$set(e.state["input"],"setrate",t)},expression:"state['input'].setrate"}}),n("br"),n("vui-button",{attrs:{"push-state":"",params:{in_set_flowrate:e.state["input"].setrate}}},[e._v("Set Flow Rate")])],1)],1):n("vui-button",{attrs:{params:{in_refresh_status:1}}},[e._v("Search for input port")]),e.state["output"]?n("div",{staticStyle:{"margin-top":"2em"}},[n("vui-item",{attrs:{label:"Core Outpump:"}},[e.state["output"].power?n("span",[e._v("Open")]):n("span",[e._v("On Hold")]),e._v(" "),n("vui-button",{attrs:{params:{out_toggle_power:1},icon:"power-off"}},[e._v("Toggle Power")])],1),n("vui-item",{attrs:{label:"Min Core Pressure:"}},[e._v(e._s(e.state["output"].pressure)+" kPa")]),n("vui-item",{attrs:{label:"Command:"}},[n("vui-input-numeric",{attrs:{width:"5em","button-count":3,"decimal-places":2,max:e.state.maxpressure},on:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.$toTopic({out_set_pressure:e.state["output"].setpressure})}},model:{value:e.state["output"].setpressure,callback:function(t){e.$set(e.state["output"],"setpressure",t)},expression:"state['output'].setpressure"}}),n("br"),n("vui-button",{attrs:{"push-state":"",params:{out_set_pressure:e.state["output"].setpressure}}},[e._v("Set Pressure")])],1)],1):n("vui-button",{attrs:{params:{out_refresh_status:1}}},[e._v("Search for output port")])],1)},r=[],s={data:function(){return this.$root.$data}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},df75:function(e,t,n){var i=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return i(e,r)}},e008:function(e,t,n){},e01a:function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),s=n("da84"),a=n("5135"),o=n("861d"),c=n("9bf2").f,l=n("e893"),u=s.Symbol;if(r&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};l(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,g="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;c(f,"description",{configurable:!0,get:function(){var e=o(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:h})}},e163:function(e,t,n){var i=n("5135"),r=n("7b0b"),s=n("f772"),a=n("e177"),o=s("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},e16d:function(e,t,n){},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1e4:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.items,(function(t,i){return n("div",{key:i,staticStyle:{clear:"both"}},[e._v(" "+e._s(i)+": "+e._s(t)+" Credits "),n("div",{staticStyle:{float:"right"}},[n("vui-button",{attrs:{params:{buy:{name:i,price:t,amount:1}},width:"2em"}},[e._v("Buy")]),1==e.editmode?n("vui-button",{attrs:{params:{remove:i},width:"3em"}},[e._v("Delete")]):e._e()],1)])})),1==e.editmode?n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.tmp_name,expression:"tmp_name"}],domProps:{value:e.tmp_name},on:{input:function(t){t.target.composing||(e.tmp_name=t.target.value)}}}),n("vui-input-numeric",{attrs:{width:"3em","button-count":2},model:{value:e.tmp_price,callback:function(t){e.tmp_price=t},expression:"tmp_price"}}),n("vui-button",{attrs:{params:{add:{name:e.tmp_name,price:e.tmp_price}}}},[e._v("Add")])],1):e._e(),n("vui-button",{attrs:{params:{locking:1},width:"3em"}},[e._v("Toggle Lock")]),n("vui-button",{attrs:{params:{confirm:e.buying}}},[e._v("Confirm Selection")]),n("vui-button",{attrs:{params:{clear:1}}},[e._v("Clear selection")]),n("h4",[e._v(" Selected Products:")]),e._l(e.buying,(function(t,i){return n("div",{key:i,staticStyle:{clear:"both"}},[e.buying[i]&&e.buying[i]>=0?n("span",[e._v(" "+e._s(e.buying[i])+"x "+e._s(i)+": at "+e._s(t*e.items[i])+" Credits "),n("div",{staticStyle:{float:"right"}},[n("vui-button",{attrs:{params:{removal:{name:i,price:t,amount:1}},width:"2em"}},[e._v("Remove")])],1)]):e._e()])}))],2)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},e210:function(e,t,n){},e21d:function(e,t,n){var i=n("23e7"),r=n("d039"),s=n("861d"),a=Object.isFrozen,o=r((function(){a(1)}));i({target:"Object",stat:!0,forced:o},{isFrozen:function(e){return!s(e)||!!a&&a(e)}})},e25e:function(e,t,n){var i=n("23e7"),r=n("c20d");i({global:!0,forced:parseInt!=r},{parseInt:r})},e260:function(e,t,n){"use strict";var i=n("fc6a"),r=n("44d2"),s=n("3f8c"),a=n("69f3"),o=n("7dd0"),c="Array Iterator",l=a.set,u=a.getterFor(c);e.exports=o(Array,"Array",(function(e,t){l(this,{type:c,target:i(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},e285:function(e,t,n){var i=n("da84"),r=i.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},e31d:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.mode?[n("h2",[e._v("Vote: "+e._s(e.question))]),e._v(" Time Left: "+e._s(e.reman)+" s"),n("hr"),n("table",[n("tr",[n("th",[e._v("Choices")]),n("th",[e._v("Votes")]),"gamemode"==e.mode?n("th",[e._v("Minimum Players")]):e._e()]),e._l(e.uichoices,(function(t,i){return n("tr",{key:i},[n("td",{staticStyle:{"text-align":"left"}},[n("vui-button",{class:{on:i==e.voted},attrs:{params:{action:"vote",vote:i}}},[e._v(e._s(t.name))])],1),n("td",[e._v(e._s(t.votes))]),t.extra?n("td",[e._v(e._s(t.extra))]):e._e()])}))],2),n("hr"),e.isstaff?[n("vui-button",{attrs:{params:{action:"cancel"}}},[e._v("Cancel")])]:e._e()]:[n("h2",[e._v("Start a vote:")]),n("hr"),n("ul",[n("li",[n("vui-button",{attrs:{disabled:!e.isstaff&&!e.allow_vote_restart,params:{action:"restart"}}},[e._v("Restart")])],1),n("li",[n("vui-button",{attrs:{disabled:!e.isstaff&&!e.allow_vote_restart,params:{action:"crew_transfer"}}},[e._v("Crew Transfer")]),(e.isstaff||e.allow_vote_restart)&&e.is_code_red?n("span",[e._v("(Disallowed, Code Red or above)")]):e._e(),e.isstaff?n("vui-button",{class:{on:e.allow_vote_restart},attrs:{params:{action:"toggle_restart"}}},[e._v("Toggle Restart / Crew Transfer voting")]):e._e()],1),n("li",[n("vui-button",{attrs:{disabled:!e.isstaff&&!e.allow_vote_mode,params:{action:"gamemode"}}},[e._v("GameMode")]),e.isstaff?n("vui-button",{class:{on:e.allow_vote_mode},attrs:{params:{action:"toggle_gamemode"}}},[e._v("Toggle GameMode voting")]):e._e()],1),n("li",[n("vui-button",{attrs:{disabled:!e.allow_extra_antags,params:{action:"add_antagonist"}}},[e._v("Add Antagonist Type")])],1),n("li",[n("vui-button",{attrs:{disabled:!e.isstaff,params:{action:"custom"}}},[e._v("Custom")])],1)])]],2)},r=[];n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");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},s(e)}var a={data:function(){return this.$root.$data.state},computed:{uichoices:function(){return"object"===s(this.choices)?this.choices:{}},reman:function(){return Math.round((this.endtime-this.$root.$data.wtime)/10)}}},o=a,c=(n("8928"),n("2877")),l=Object(c["a"])(o,i,r,!1,null,"8bcc2668",null);t["default"]=l.exports},e3a9:function(e,t,n){"use strict";n("4310")},e439:function(e,t,n){var i=n("23e7"),r=n("d039"),s=n("fc6a"),a=n("06cf").f,o=n("83ab"),c=r((function(){a(1)})),l=!o||c;i({target:"Object",stat:!0,forced:l,sham:!o},{getOwnPropertyDescriptor:function(e,t){return a(s(e),t)}})},e43e:function(e,t,n){var i=n("23e7"),r=n("d039"),s=n("861d"),a=Object.isSealed,o=r((function(){a(1)}));i({target:"Object",stat:!0,forced:o},{isSealed:function(e){return!s(e)||!!a&&a(e)}})},e48d:function(e,t,n){"use strict";n("1650")},e538:function(e,t,n){var i=n("b622");t.f=i},e58c:function(e,t,n){"use strict";var i=n("fc6a"),r=n("a691"),s=n("50c4"),a=n("a640"),o=n("ae40"),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),h=o("indexOf",{ACCESSORS:!0,1:0}),f=u||!d||!h;e.exports=f?function(e){if(u)return l.apply(this,arguments)||0;var t=i(this),n=s(t.length),a=n-1;for(arguments.length>1&&(a=c(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,n){"use strict";var i,r,s,a,o=n("23e7"),c=n("c430"),l=n("da84"),u=n("d066"),d=n("fea9"),h=n("6eeb"),f=n("e2cc"),p=n("d44e"),g=n("2626"),m=n("861d"),v=n("1c0b"),b=n("19aa"),y=n("8925"),w=n("2266"),_=n("1c7e"),x=n("4840"),k=n("2cf4").set,A=n("b575"),C=n("cdf9"),E=n("44de"),S=n("f069"),F=n("e667"),$=n("69f3"),T=n("94ca"),L=n("b622"),D=n("605d"),B=n("2d00"),R=L("species"),O="Promise",M=$.get,j=$.set,I=$.getterFor(O),P=d,N=l.TypeError,W=l.document,H=l.process,V=u("fetch"),U=S.f,z=U,G=!!(W&&W.createEvent&&l.dispatchEvent),q="function"==typeof PromiseRejectionEvent,K="unhandledrejection",Y="rejectionhandled",X=0,J=1,Q=2,Z=1,ee=2,te=T(O,(function(){var e=y(P)!==String(P);if(!e){if(66===B)return!0;if(!D&&!q)return!0}if(c&&!P.prototype["finally"])return!0;if(B>=51&&/native code/.test(P))return!1;var t=P.resolve(1),n=function(e){e((function(){}),(function(){}))},i=t.constructor={};return i[R]=n,!(t.then((function(){}))instanceof n)})),ne=te||!_((function(e){P.all(e)["catch"]((function(){}))})),ie=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;A((function(){var i=e.value,r=e.state==J,s=0;while(n.length>s){var a,o,c,l=n[s++],u=r?l.ok:l.fail,d=l.resolve,h=l.reject,f=l.domain;try{u?(r||(e.rejection===ee&&ce(e),e.rejection=Z),!0===u?a=i:(f&&f.enter(),a=u(i),f&&(f.exit(),c=!0)),a===l.promise?h(N("Promise-chain cycle")):(o=ie(a))?o.call(a,d,h):d(a)):h(i)}catch(p){f&&!c&&f.exit(),h(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},se=function(e,t,n){var i,r;G?(i=W.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),l.dispatchEvent(i)):i={promise:t,reason:n},!q&&(r=l["on"+e])?r(i):e===K&&E("Unhandled promise rejection",n)},ae=function(e){k.call(l,(function(){var t,n=e.facade,i=e.value,r=oe(e);if(r&&(t=F((function(){D?H.emit("unhandledRejection",i,n):se(K,n,i)})),e.rejection=D||oe(e)?ee:Z,t.error))throw t.value}))},oe=function(e){return e.rejection!==Z&&!e.parent},ce=function(e){k.call(l,(function(){var t=e.facade;D?H.emit("rejectionHandled",t):se(Y,t,e.value)}))},le=function(e,t,n){return function(i){e(t,i,n)}},ue=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=Q,re(e,!0))},de=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw N("Promise can't be resolved itself");var i=ie(t);i?A((function(){var n={done:!1};try{i.call(t,le(de,n,e),le(ue,n,e))}catch(r){ue(n,r,e)}})):(e.value=t,e.state=J,re(e,!1))}catch(r){ue({done:!1},r,e)}}};te&&(P=function(e){b(this,P,O),v(e),i.call(this);var t=M(this);try{e(le(de,t),le(ue,t))}catch(n){ue(t,n)}},i=function(e){j(this,{type:O,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},i.prototype=f(P.prototype,{then:function(e,t){var n=I(this),i=U(x(this,P));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=D?H.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=X&&re(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=M(e);this.promise=e,this.resolve=le(de,t),this.reject=le(ue,t)},S.f=U=function(e){return e===P||e===s?new r(e):z(e)},c||"function"!=typeof d||(a=d.prototype.then,h(d.prototype,"then",(function(e,t){var n=this;return new P((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof V&&o({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(P,V.apply(l,arguments))}}))),o({global:!0,wrap:!0,forced:te},{Promise:P}),p(P,O,!1,!0),g(O),s=u(O),o({target:O,stat:!0,forced:te},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),o({target:O,stat:!0,forced:c||te},{resolve:function(e){return C(c&&this===s?P:this,e)}}),o({target:O,stat:!0,forced:ne},{all:function(e){var t=this,n=U(t),i=n.resolve,r=n.reject,s=F((function(){var n=v(t.resolve),s=[],a=0,o=1;w(e,(function(e){var c=a++,l=!1;s.push(void 0),o++,n.call(t,e).then((function(e){l||(l=!0,s[c]=e,--o||i(s))}),r)})),--o||i(s)}));return s.error&&r(s.value),n.promise},race:function(e){var t=this,n=U(t),i=n.reject,r=F((function(){var r=v(t.resolve);w(e,(function(e){r.call(t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}})},e6e1:function(e,t,n){var i=n("23e7");i({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},e71b:function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),s=n("eb1d"),a=n("7b0b"),o=n("1c0b"),c=n("9bf2");r&&i({target:"Object",proto:!0,forced:s},{__defineSetter__:function(e,t){c.f(a(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},e786:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("table",{staticClass:"table border"},[n("tr",{staticClass:"header"},e._l(e.categories,(function(t){return n("th",{key:t},[n("vui-button",{class:{selected:t===e.sel_category},attrs:{params:{selected:t}}},[e._v(e._s(t))])],1)})),0),e.sel_category?[e.supplies.length?[e._m(0),e._l(e.supplies,(function(t){return n("tr",{key:t.key,staticClass:"item border"},[n("td",[e._v(e._s(e.generateName(t.name,t.key)))]),n("td",[e._v("("+e._s(t.x)+", "+e._s(t.y)+")")]),n("td",[e._v(e._s(t.dir))]),n("td",[e._v(e._s(t.status))])])})),n("tr",{staticClass:"header border"},[n("td",{attrs:{colspan:"4"}},[e._v("User location: ("+e._s(e.user_loc.x)+", "+e._s(e.user_loc.y)+")")])])]:n("tr",[n("td",{attrs:{colspan:"4"}},[e._v("Unable to locate any "+e._s(e.sel_category.toLowerCase())+" in your vicinity.")])])]:e._e()],2)])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"header border"},[n("th",{attrs:{scope:"col"}},[e._v("ID")]),n("th",{attrs:{scope:"col"}},[e._v("Location")]),n("th",{attrs:{scope:"col"}},[e._v("Direction")]),n("th",{attrs:{scope:"col"}},[e._v("Status")])])}],s={data:function(){return this.$root.$data.state},methods:{generateName:function(e,t){if(e&&!isNaN(t))return t+=1,e+" (#"+t+")"}}},a=s,o=(n("9acc"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"1021c617",null);t["default"]=c.exports},e7e6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-group",[n("vui-group-item",{attrs:{label:"Capacitator status:"}},[n("span",{class:e.owned_capacitor?e.good:"red"},[e._v(e._s(e.owned_capacitor?"Charge capacitor connected":"Unable to locate charge capacitor"))])]),n("vui-group-item",{attrs:{label:"This generator is:"}},[n("span",{class:e.active?"green":"red"},[e._v(e._s(e.active?"Online":"Offline"))]),e._v(" "),n("vui-button",{staticClass:"float-right",attrs:{icon:"",params:{toggle:1}}},[e._v("Toggle")])],1),e.multi_unlocked?n("vui-group-item",{attrs:{label:"Multi-level Shields:"}},[n("span",{class:e.multiz?"green":"red"},[e._v(e._s(e.multiz?"Online":"Offline"))]),e._v(" "),n("vui-button",{staticClass:"float-right",attrs:{icon:"",params:{multiz:1}}},[e._v("Toggle")])],1):e._e(),n("vui-group-item",{attrs:{label:"Field Status:"}},[n("span",{class:e.time_since_fail>2?"green":"red"},[e._v(e._s(e.time_since_fail>2?"Stable":"Unstable"))])]),n("vui-group-item",{attrs:{label:"Overall Field Strength:"}},[n("span",{class:e.average},[e._v(e._s(e.average_field)+" Renwick ("+e._s(e.progress_field)+"%)")])]),n("vui-group-item",{attrs:{label:"Upkeep Power:"}},[n("span",{class:e.average},[e._v(e._s(e.power_take)+" W")])]),n("vui-group-item",{attrs:{label:"Shield Generation Power:"}},[n("span",{class:e.average},[e._v(e._s(e.shield_power)+" W")])]),n("vui-group-item",{attrs:{label:"Coverage Radius (restart required):"}},[n("div",{staticStyle:{clear:"both","padding-top":"4px"}},[n("vui-input-numeric",{attrs:{width:"5em","button-count":2,min:e.min_field_radius,max:e.max_field_radius},on:{input:function(t){return e.$toTopic({size_set:e.field_radius})}},model:{value:e.field_radius,callback:function(t){e.field_radius=t},expression:"field_radius"}},[e._v(e._s(e.field_radius)+" M ")])],1)]),n("vui-group-item",{attrs:{label:"Charge Rate:"}},[n("div",{staticStyle:{clear:"both","padding-top":"4px"}},[n("vui-input-numeric",{attrs:{width:"5em","button-count":1,min:1,max:e.max_strengthen_rate},on:{input:function(t){return e.$toTopic({charge_set:e.strengthen_rate})}},model:{value:e.strengthen_rate,callback:function(t){e.strengthen_rate=t},expression:"strengthen_rate"}},[e._v(e._s(e.strengthen_rate)+" Renwick ")])],1)]),n("vui-group-item",{attrs:{label:"Maximum Field strength:"}},[n("div",{staticStyle:{clear:"both","padding-top":"4px"}},[n("vui-input-numeric",{attrs:{width:"5em","button-count":2,min:1,max:10},on:{input:function(t){return e.$toTopic({field_set:e.target_field_strength})}},model:{value:e.target_field_strength,callback:function(t){e.target_field_strength=t},expression:"target_field_strength"}},[e._v(e._s(e.target_field_strength)+" ")])],1)])],1)],1)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},e893:function(e,t,n){var i=n("5135"),r=n("56ef"),s=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=r(t),o=a.f,c=s.f,l=0;l<n.length;l++){var u=n[l];i(e,u)||o(e,u,c(t,u))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e91f:function(e,t,n){"use strict";var i=n("ebb5"),r=n("4d64").indexOf,s=i.aTypedArray,a=i.exportTypedArrayMethod;a("indexOf",(function(e){return r(s(this),e,arguments.length>1?arguments[1]:void 0)}))},e958:function(e,t,n){"use strict";n("814e")},e95a:function(e,t,n){var i=n("b622"),r=n("3f8c"),s=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[s]===e)}},e9a7:function(e,t,n){var i=n("76dd"),r=n("8103");function s(e){return r(i(e).toLowerCase())}e.exports=s},e9c4:function(e,t,n){var i=n("23e7"),r=n("d066"),s=n("d039"),a=r("JSON","stringify"),o=/[\uD800-\uDFFF]/g,c=/^[\uD800-\uDBFF]$/,l=/^[\uDC00-\uDFFF]$/,u=function(e,t,n){var i=n.charAt(t-1),r=n.charAt(t+1);return c.test(e)&&!l.test(r)||l.test(e)&&!c.test(i)?"\\u"+e.charCodeAt(0).toString(16):e},d=s((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&i({target:"JSON",stat:!0,forced:d},{stringify:function(e,t,n){var i=a.apply(null,arguments);return"string"==typeof i?i.replace(o,u):i}})},ea72:function(e,t,n){var i=n("7559"),r=n("7e8e"),s=n("76dd"),a=n("f4d9");function o(e,t,n){return e=s(e),t=n?void 0:t,void 0===t?r(e)?a(e):i(e):e.match(t)||[]}e.exports=o},eb1d:function(e,t,n){"use strict";var i=n("c430"),r=n("da84"),s=n("d039");e.exports=i||!s((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete r[e]}))},eb66:function(e,t,n){"use strict";n("c765")},ebb5:function(e,t,n){"use strict";var i,r=n("a981"),s=n("83ab"),a=n("da84"),o=n("861d"),c=n("5135"),l=n("f5df"),u=n("9112"),d=n("6eeb"),h=n("9bf2").f,f=n("e163"),p=n("d2bb"),g=n("b622"),m=n("90e3"),v=a.Int8Array,b=v&&v.prototype,y=a.Uint8ClampedArray,w=y&&y.prototype,_=v&&f(v),x=b&&f(b),k=Object.prototype,A=k.isPrototypeOf,C=g("toStringTag"),E=m("TYPED_ARRAY_TAG"),S=r&&!!p&&"Opera"!==l(a.opera),F=!1,$={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T=function(e){var t=l(e);return"DataView"===t||c($,t)},L=function(e){return o(e)&&c($,l(e))},D=function(e){if(L(e))return e;throw TypeError("Target is not a typed array")},B=function(e){if(p){if(A.call(_,e))return e}else for(var t in $)if(c($,i)){var n=a[t];if(n&&(e===n||A.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},R=function(e,t,n){if(s){if(n)for(var i in $){var r=a[i];r&&c(r.prototype,e)&&delete r.prototype[e]}x[e]&&!n||d(x,e,n?t:S&&b[e]||t)}},O=function(e,t,n){var i,r;if(s){if(p){if(n)for(i in $)r=a[i],r&&c(r,e)&&delete r[e];if(_[e]&&!n)return;try{return d(_,e,n?t:S&&v[e]||t)}catch(o){}}for(i in $)r=a[i],!r||r[e]&&!n||d(r,e,t)}};for(i in $)a[i]||(S=!1);if((!S||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},S))for(i in $)a[i]&&p(a[i],_);if((!S||!x||x===k)&&(x=_.prototype,S))for(i in $)a[i]&&p(a[i].prototype,x);if(S&&f(w)!==x&&p(w,x),s&&!c(x,C))for(i in F=!0,h(x,C,{get:function(){return o(this)?this[E]:void 0}}),$)a[i]&&u(a[i],E,i);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:S,TYPED_ARRAY_TAG:F&&E,aTypedArray:D,aTypedArrayConstructor:B,exportTypedArrayMethod:R,exportTypedArrayStaticMethod:O,isView:T,isTypedArray:L,TypedArray:_,TypedArrayPrototype:x}},ec72:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-input-search",{attrs:{input:e.s.reactions,keys:["result.name","reagents.name","result.description"],autofocus:"",threshold:e.threshold,"include-score":""},model:{value:e.output,callback:function(t){e.output=t},expression:"output"}}),n("vui-button",{on:{click:function(t){e.desc=!e.desc}}},[e._v("Toggle Descriptions")]),e._l(e.output,(function(t){return n("div",{key:t.item.id,staticClass:"recipe-block",style:{opacity:1-t.score*e.score_multiplier}},[n("h2",{staticClass:"highlight"},[e._v(e._s(t.item.result.name)+" ("+e._s(e.u(t.item.result.amount))+")")]),n("p",{directives:[{name:"show",rawName:"v-show",value:e.desc,expression:"desc"}],staticClass:"description"},[e._v(e._s(t.item.result.description))]),n("h3",{staticClass:"highlight"},[e._v("Required Reagents")]),e._l(t.item.reagents,(function(i){return n("span",{key:"re"+i.name+t.item.result.name},[e._v(e._s(i.name)+": "+e._s(e.u(i.amount))),n("br")])})),t.item.catalysts.length?[n("h3",{staticClass:"highlight"},[e._v("Catalysts")]),e._l(t.item.catalysts,(function(i){return n("span",{key:"ca"+i.name+t.item.result.name},[e._v(e._s(i.name)+": "+e._s(e.u(i.amount))),n("br")])}))]:e._e(),t.item.inhibitors.length?[n("h3",{staticClass:"highlight"},[e._v("Inhibitors")]),e._l(t.item.inhibitors,(function(i){return n("span",{key:"in"+i.name+t.item.result.name},[e._v(e._s(i.name)+": "+e._s(e.u(i.amount))),n("br")])}))]:e._e(),t.item.temp_min&&t.item.temp_min.length?[n("h3",{staticClass:"highlight"},[e._v("Minimum Required Temperatures")]),e._l(t.item.temp_min,(function(i){return n("span",{key:"tm"+i.name+t.item.result.name},[e._v(e._s(i.name)+": "+e._s(i.temp)+"°K"),n("br")])}))]:e._e(),t.item.temp_max&&t.item.temp_max.length?[n("h3",{staticClass:"highlight"},[e._v("Maximum Required Temperatures")]),e._l(t.item.temp_max,(function(i){return n("span",{key:"tx"+i.name+t.item.result.name},[e._v(e._s(i.name)+": "+e._s(i.temp)+"°K"),n("br")])}))]:e._e()],2)}))],2)},r=[],s={data:function(){return{s:this.$root.$data.state,output:[],threshold:.3,desc:!0}},methods:{u:function(e){return"".concat(e,1==e?" unit":" units")}},computed:{score_multiplier:function(){return 1/this.threshold}}},a=s,o=(n("f889"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"710a36a7",null);t["default"]=c.exports},ec97:function(e,t,n){"use strict";var i=n("ebb5"),r=n("8aa7"),s=i.aTypedArrayConstructor,a=i.exportTypedArrayStaticMethod;a("of",(function(){var e=0,t=arguments.length,n=new(s(this))(t);while(t>e)n[e]=arguments[e++];return n}),r)},eee7:function(e,t,n){"use strict";var i=n("23e7"),r=n("58a8").start,s=n("c8d2"),a=s("trimStart"),o=a?function(){return r(this)}:"".trimStart;i({target:"String",proto:!0,forced:a},{trimStart:o,trimLeft:o})},ef41:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("vui-button",{on:{click:function(t){e.fliped=!e.fliped}}},[e._v("Flip")]),n("div",{staticClass:"text-center"},e._l(e.boardTiles,(function(t,i){return n("div",{key:i,staticClass:"tileRow"},e._l(t,(function(t,r){return n("div",{key:i+""+r,staticClass:"tile",class:t.tile+(e.selected==t.pos?" sel":""),on:{click:function(n){return n.stopPropagation(),e.handleTileClick(t.pos)}}},[e.getPiece(t.pos)?n("div",{staticClass:"piece fa",class:e.getPieceClass(t.pos)+(e.selected==t.pos?" sel":""),on:{click:function(n){return n.stopPropagation(),e.handlePieceClick(t.pos)}}}):e._e()])})),0)})),0),null!=e.selected?[e.isPiece(e.selected)?[n("vui-button",{on:{click:e.removePiece}},[e._v("Remove")])]:[n("div",{staticClass:"mt-1"},[e._v(" Red: "),e._l(e.types,(function(t,i){return n("vui-button",{key:"r"+i,attrs:{icon:t.i},on:{click:function(n){return e.spawn(t.k,"red")}}},[e._v(e._s(t.n))])}))],2),n("div",[e._v(" Black: "),e._l(e.types,(function(t,i){return n("vui-button",{key:"b"+i,attrs:{icon:t.i},on:{click:function(n){return e.spawn(t.k,"black")}}},[e._v(e._s(t.n))])}))],2)]]:e.s.pieces.length?e._e():[n("vui-button",{on:{click:e.presetCheckers}},[e._v("Initialize checker board")]),n("vui-button",{on:{click:e.presetChess}},[e._v("Initialize chess board")])]],2)},r=[];n("a4d3"),n("4de4"),n("7db0"),n("0481"),n("4160"),n("a630"),n("c975"),n("e260"),n("d81d"),n("fb6a"),n("4069"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c="wbwbwbwbbwbwbwbwwbwbwbwbbwbwbwbwwbwbwbwbbwbwbwbwwbwbwbwbbwbwbwbw",l=function(e,t){return Array.from({length:Math.ceil(e.length/t)},(function(n,i){return e.slice(i*t,i*t+t)}))},u=function(e){return{type:e.type,faction:e.faction,pos:e.pos}},d={c:"circle","c-k":"dot-circle","h-ki":"chess-king","h-qe":"chess-queen","h-b":"chess-bishop","h-k":"chess-knight","h-r":"chess-rook","h-p":"chess-pawn"},h={c:"Checker","c-k":"Marked Checker","h-ki":"King","h-qe":"Queen","h-b":"Bishop","h-k":"Knight","h-r":"Rook","h-p":"Pawn"},f=function(e){return function(t){return t?{t:t,f:e}:t}},p=[[null,"c",null,"c",null,"c",null,"c"].map(f("red")),["c",null,"c",null,"c",null,"c",null].map(f("red")),[null,"c",null,"c",null,"c",null,"c"].map(f("red")),[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null],["c",null,"c",null,"c",null,"c",null].map(f("black")),[null,"c",null,"c",null,"c",null,"c"].map(f("black")),["c",null,"c",null,"c",null,"c",null].map(f("black"))].flat(),g=[["h-r","h-k","h-b","h-ki","h-qe","h-b","h-k","h-r"].map(f("red")),["h-p","h-p","h-p","h-p","h-p","h-p","h-p","h-p"].map(f("red")),[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null],[null,null,null,null,null,null,null,null],["h-p","h-p","h-p","h-p","h-p","h-p","h-p","h-p"].map(f("black")),["h-r","h-k","h-b","h-ki","h-qe","h-b","h-k","h-r"].map(f("black"))].flat(),m={data:function(){return{s:this.$root.$data.state,selected:null,types:Object.keys(h).map((function(e){return{n:h[e],i:d[e],k:e}})),fliped:!1}},computed:{boardTiles:function(){var e=Array.from(Array(64).keys(),(function(e,t){return{pos:t,tile:c[t]}}));return l(this.fliped?e.reverse():e,8)}},methods:{getPiece:function(e){var t=this.s.pieces.find((function(t){return t.pos==e}));if(!t)return this.s.last&&this.s.last.pos==e?a({index:-1,ghost:!0},this.s.last):null;var n=this.s.pieces.indexOf(t)+1;return a({index:n,ghost:!1},t)},isPiece:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t||(t=this.getPiece(e)),t&&!t.ghost},getPieceClass:function(e){var t=this.getPiece(e);return"ic-"+d[t.type]+" "+t.faction+(t.ghost?" ghost":"")},removePiece:function(){var e=this.getPiece(this.selected);this.$toTopic({remove:{index:e.index}}),this.selected=null},spawn:function(e,t){var n=this.getPiece(this.selected);n&&!n.ghost||(this.qspawn(e,t,this.selected),this.selected=null)},qspawn:function(e,t,n){this.$toTopic({add:{piece:{type:e,faction:t,pos:n}}})},handlePieceClick:function(e){if(!this.isPiece(e))return this.handleTileClick(e);this.selected==e?this.selected=null:this.selected=e},handleTileClick:function(e){if(this.selected==e)this.selected=null;else if(null!=this.selected){var t=this.getPiece(this.selected);this.isPiece(null,t)&&!this.isPiece(e)&&this.$toTopic({change:{piece:a(a({},u(t)),{},{pos:e}),index:t.index}}),this.selected=null}else this.selected=e},presetChess:function(){var e=this;g.forEach((function(t,n){return t?e.qspawn(t.t,t.f,n):""}))},presetCheckers:function(){var e=this;p.forEach((function(t,n){return t?e.qspawn(t.t,t.f,n):""}))}}},v=m,b=(n("3ecc"),n("2877")),y=Object(b["a"])(v,i,r,!1,null,"3e8a25e7",null);t["default"]=y.exports},efe9:function(e,t,n){var i=n("746f");i("isConcatSpreadable")},efec:function(e,t,n){var i=n("9112"),r=n("51eb"),s=n("b622"),a=s("toPrimitive"),o=Date.prototype;a in o||i(o,a,r)},f00c:function(e,t,n){var i=n("23e7"),r=n("e285");i({target:"Number",stat:!0},{isFinite:r})},f069:function(e,t,n){"use strict";var i=n("1c0b"),r=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new r(e)}},f095:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",[n("h3",[e._v("Status:")]),e.active?n("vui-button",{attrs:{params:{state:1}}},[e._v("Active")]):n("vui-button",{attrs:{params:{state:1}}},[e._v("Inactive")])],1),n("div",[n("h3",[e._v("Beam Visibility:")]),e.visible?n("vui-button",{attrs:{params:{visible:1}}},[e._v("Visible")]):n("vui-button",{attrs:{params:{visible:1}}},[e._v("Invisible")])],1)])},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},f0e0:function(e,t,n){"use strict";n("a4d3"),n("e01a"),n("d28b"),n("c975"),n("e260"),n("a15b"),n("cca6"),n("d3b7"),n("ac1f"),n("3ca3"),n("841c"),n("ddb0");var i=n("025e"),r=(n("d81d"),n("13d5"),function(e,t){return Array.prototype.map.call(e,(function(e,n){return e+t[n]}))}),s={add:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.reduce.call(t,r)},multiply:function(e,t){return Array.prototype.map.call(e,(function(e,n){return e*t[n]}))},scale:function(e,t){return Array.prototype.map.call(e,(function(e){return e*t}))}};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},a(e)}var o={windowKey:"",dragging:!1,resizing:!1,screenOffset:[0,0],dragPointOffset:null,resizeMatrix:null,initialSize:null,size:null};function c(){return"127.0.0.1"===window.location.hostname&&0===location.pathname.indexOf("/tmp")&&"?ext"!==location.search}function l(e,t,n){if(c()){var r=t instanceof Array,s=t&&"*"!==t&&!r,a=n;s&&(a=function(e){return n(e[t])}),i["a"].sendRawWithCallback("byond://winget",{id:e,property:r&&t.join(",")||t||"*"},a)}}function u(e,t,n){if(c()){if("object"===a(e)&&null!==e)return i["a"].sendRaw("winset",e);var r={};return"string"===typeof t?r[t]=n:Object.assign(r,t),r.id=e,i["a"].sendRaw("byond://winset",r)}}var d=function(e){return o.windowKey=e},h=function(){return[window.screenLeft,window.screenTop]},f=function(){return[window.innerWidth,window.innerHeight]};function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0],t=s.add(e,o.screenOffset);u(o.windowKey,{pos:t[0]+","+t[1]})}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[300,300];u(o.windowKey,{size:e[0]+"x"+e[1]})}var m=function(){return s.scale(o.screenOffset,-1)},v=function(){return[window.screen.availWidth,window.screen.availHeight]};function b(){l(o.windowKey,"pos",(function(e){o.screenOffset=[e.x-window.screenLeft,e.y-window.screenTop]}))}function y(e){var t,n;o.dragging=!0,o.dragPointOffset=[window.screenLeft-e.screenX,window.screenTop-e.screenY],null===(t=e.target)||void 0===t||t.setCapture(),null===(n=e.target)||void 0===n||n.focus(),_(e),e.target.addEventListener("mousemove",_)}function w(e){e.target.removeEventListener("mousemove",_),e.target.releaseCapture(),document.getElementById("content").focus(),o.dragging=!1}function _(e){o.dragging&&(e.preventDefault(),p(s.add([e.screenX,e.screenY],o.dragPointOffset)))}function x(e,t,n){o.resizeMatrix=[e,t],o.resizing=!0,o.dragPointOffset=[window.screenLeft-n.screenX,window.screenTop-n.screenY],o.initialSize=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",A),document.addEventListener("mouseup",k),A(n)}function k(e){A(e),document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",k),document.getElementById("content").focus(),o.resizing=!1}function A(e){if(o.resizing){e.preventDefault();var t=s.multiply(o.resizeMatrix,s.add([e.screenX,e.screenY],s.scale([window.screenLeft,window.screenTop],-1),o.dragPointOffset,[1,1]));o.size=s.add(o.initialSize,t),o.size[0]=Math.max(o.size[0],100),o.size[1]=Math.max(o.size[1],50),g(o.size)}}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;u(o.windowKey,{"is-visible":e})}t["a"]={isBYOND:c,winget:l,winset:u,setWindowKey:d,getWindowPosition:h,getWindowSize:f,setWindowPosition:p,setWindowSize:g,getScreenPosition:m,getScreenSize:v,setupDrag:b,dragStartHandler:y,dragEndHandler:w,dragMoveHandler:_,resizeStartHandler:x,resizeEndHandler:k,resizeMoveHandler:A,setVisibility:C}},f183:function(e,t,n){var i=n("d012"),r=n("861d"),s=n("5135"),a=n("9bf2").f,o=n("90e3"),c=n("bb2f"),l=o("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(e){a(e,l,{value:{objectID:"O"+ ++u,weakData:{}}})},f=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,l)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[l].objectID},p=function(e,t){if(!s(e,l)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[l].weakData},g=function(e){return c&&m.REQUIRED&&d(e)&&!s(e,l)&&h(e),e},m=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:g};i[l]=!0},f264:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.manifestLen(e.fixedmanifest)>0?n("div",e._l(e.fixedmanifest,(function(t,i){return n("table",{key:i,class:"border-dept-"+i.toLowerCase()},[n("tr",{class:"bg-dept-"+i.toLowerCase()},[n("th",{staticClass:"fw-bold",attrs:{colspan:"3"}},[e._v(e._s(i))])]),e._l(t,(function(t){return n("tr",{key:t.name,class:{"fw-bold":t.head}},[n("td",[e._v(e._s(t.name))]),n("td",[e._v(e._s(t.rank))]),n("td",[e._v(e._s(t.active))])])}))],2)})),0):n("div",{staticClass:"fst-italic"},[e._v(" There is no crew. ")]),e.allow_printing?n("div",{staticClass:"text-center mt-2"},[n("vui-button",{attrs:{params:{action:"print"},icon:"print"}},[e._v("Print current manifest")])],1):e._e()])},r=[];n("a4d3"),n("e01a"),n("d28b"),n("4de4"),n("4160"),n("a630"),n("e260"),n("fb6a"),n("b0c0"),n("4fad"),n("c1f9"),n("d3b7"),n("07ac"),n("25f0"),n("3ca3"),n("159b"),n("ddb0");function s(e,t){return u(e)||l(e,t)||o(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(i=(a=o.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){r=!0,s=c}finally{try{i||null==o["return"]||o["return"]()}finally{if(r)throw s}}return n}}function u(e){if(Array.isArray(e))return e}var d={data:function(){var e=this.$root.$data.state;return e.manifestLen=function(e){var t=0;return Object.values(e).forEach((function(e){return t+=e.length})),t},e},computed:{fixedmanifest:function(){return Object.fromEntries(Object.entries(this.manifest).filter((function(e){var t=s(e,2),n=t[1];return Object.entries(n).length>0})))}}},h=d,f=(n("c13e"),n("2877")),p=Object(f["a"])(h,i,r,!1,null,"c49443fe",null);t["default"]=p.exports},f309:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"table border"},[n("div",{staticClass:"header border"},[n("div",{staticClass:"header-item"},[e._v("Name")]),n("div",{staticClass:"header-item"},[n("vui-tooltip",{attrs:{label:"Pulse/Cell"}},[e._v("Pulse rate or Cell Charge (IPCs)")])],1),n("div",{staticClass:"header-item"},[n("vui-tooltip",{attrs:{label:"BP"}},[e._v("Blood pressure")])],1),n("div",{staticClass:"header-item"},[n("vui-tooltip",{attrs:{label:"Oxy"}},[e._v("Oxygenation")])],1),n("div",{staticClass:"header-item"},[n("vui-tooltip",{attrs:{label:"Temp"}},[e._v("Temperature")])],1),n("div",{staticClass:"header-item"},[e._v("Location")]),e.isAI?[n("div",{staticClass:"header-item"})]:e._e()],2),e._l(e.crewmembers,(function(t){return n("div",{key:t.ref,staticClass:"sensor"},[n("div",{staticClass:"item"},[e._v(e._s(t.name)+" ("+e._s(t.ass)+")")]),-1==t.cellCharge?n("div",{staticClass:"item",class:e.getPulseClass(t.tpulse)},[e._v(e._s(t.pulse))]):n("div",{staticClass:"item",class:e.getChargeClass(t.cellCharge)},[e._v(e._s(t.cellCharge)+"%")]),t.stype>1?n("div",{staticClass:"item",class:e.getPressureClass(t.tpressure)},[e._v(e._s(t.pressure))]):n("div",{staticClass:"item"},[e._v("N/A")]),n("div",{staticClass:"item",class:e.getOxyClass(t.oxyg)},[e._v(e._s(e.toOxyLabel(t.oxyg)))]),n("div",{staticClass:"item"},[t.stype>1?n("span",[e._v(e._s(e.roundTemp(t.bodytemp)))]):e._e()]),t.stype>2?n("div",{staticClass:"item"},[e._v(e._s(t.area)+" ("+e._s(t.x)+", "+e._s(t.y)+", "+e._s(t.z)+")")]):n("div",{staticClass:"item"},[e._v("Not Available")]),e.isAI?[n("div",{staticClass:"item"},[n("vui-button",{attrs:{params:{track:t.ref},disabled:t.stype<3}},[e._v("Track")])],1)]:e._e()],2)}))],2)])},r=[],s={data:function(){return this.$root.$data.state},methods:{roundTemp:function(e){return Math.round(10*e)/10},toOxyLabel:function(e){switch(e){case 5:return"increased";case 4:return"normal";case 3:return"low";case 2:return"very low";case 1:return"extremely low";default:return"N/A"}},getOxyClass:function(e){switch(e){case 5:return"highlight";case 4:return"good";case 3:return"average";case 2:return"bad";case 1:return"bad";default:return"neutral"}},getPulseClass:function(e){switch(e){case 0:return"bad";case 1:return"average";case 2:return"good";case 3:return"highlight";case 4:return"average";case 5:return"bad";default:return"neutral"}},getPressureClass:function(e){switch(e){case 1:return"bad";case 2:return"good";case 3:return"average";case 4:return"bad";default:return"neutral"}},getChargeClass:function(e){return e>10?"highlight":"bad"}}},a=s,o=(n("e3a9"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"731c48b4",null);t["default"]=c.exports},f3ce:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uiTitleWrapper",attrs:{draggable:""},on:{mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.startDragging(t)},mouseup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.stopDragging(t)}}},[n("div",{staticClass:"titleBar"},[n("div",{staticClass:"uiStatusIcon uiIcon24",class:e.statusClass,attrs:{unselectable:"on"}}),n("i",{staticClass:"fas ic-bug uiIcon24 uiDebugIcon",class:e.debugClass,attrs:{unselectable:"on"},on:{click:function(t){return e.activateDebug()},mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.prevent(t)}}}),n("div",{staticClass:"uiTitleText",attrs:{unselectable:"on"}},[e._v(e._s(e.title))]),n("div",{staticClass:"uiTitleClose",attrs:{unselectable:"on"},on:{click:function(t){return e.closeUI(t)},mousedown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.prevent(t)}}},[e._v("×")])]),e._t("default")],2)},r=[],s=n("f0e0"),a={data:function(){return this.$root.$data},computed:{statusClass:function(){return 2==this.status?"good":1==this.status?"average":"bad"},debugClass:function(){return 1==this.debug_view?"good":1==this.debug?"bad":"hidden"}},methods:{closeUI:function(e){e.stopPropagation(),this.$toTopicRaw({src:this.uiref,vueuiclose:1}),s["a"].setVisibility(0)},startDragging:function(e){s["a"].dragStartHandler(e)},stopDragging:function(e){s["a"].dragEndHandler(e)},prevent:function(e){e.stopPropagation()},activateDebug:function(){this.debug_view=!this.debug_view,this.debug_view?(document.getElementById("content").classList.add("uiDebug"),document.getElementById("debug").classList.add("uiDebug")):(document.getElementById("content").classList.remove("uiDebug"),document.getElementById("debug").classList.remove("uiDebug"))}}},o=a,c=n("2877"),l=Object(c["a"])(o,i,r,!1,null,null,null);t["default"]=l.exports},f4b3:function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),s=n("7b0b"),a=n("c04e"),o=r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));i({target:"Date",proto:!0,forced:o},{toJSON:function(e){var t=s(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},f4d9:function(e,t){var n="\\ud800-\\udfff",i="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",a=i+r+s,o="\\u2700-\\u27bf",c="a-z\\xdf-\\xf6\\xf8-\\xff",l="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\u2000-\\u206f",h=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",g=l+u+d+h,m="['’]",v="["+g+"]",b="["+a+"]",y="\\d+",w="["+o+"]",_="["+c+"]",x="[^"+n+g+y+o+c+f+"]",k="\\ud83c[\\udffb-\\udfff]",A="(?:"+b+"|"+k+")",C="[^"+n+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",F="["+f+"]",$="\\u200d",T="(?:"+_+"|"+x+")",L="(?:"+F+"|"+x+")",D="(?:"+m+"(?:d|ll|m|re|s|t|ve))?",B="(?:"+m+"(?:D|LL|M|RE|S|T|VE))?",R=A+"?",O="["+p+"]?",M="(?:"+$+"(?:"+[C,E,S].join("|")+")"+O+R+")*",j="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",I="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",P=O+R+M,N="(?:"+[w,E,S].join("|")+")"+P,W=RegExp([F+"?"+_+"+"+D+"(?="+[v,F,"$"].join("|")+")",L+"+"+B+"(?="+[v,F+T,"$"].join("|")+")",F+"?"+T+"+"+D,F+"+"+B,I,j,y,N].join("|"),"g");function H(e){return e.match(W)||[]}e.exports=H},f4dd:function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").right,s=n("a640"),a=n("ae40"),o=n("2d00"),c=n("605d"),l=s("reduceRight"),u=a("reduce",{1:0}),d=!c&&o>79&&o<83;i({target:"Array",proto:!0,forced:!l||!u||d},{reduceRight:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},f5b2:function(e,t,n){"use strict";var i=n("23e7"),r=n("6547").codeAt;i({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},f5df:function(e,t,n){var i=n("00ee"),r=n("c6b6"),s=n("b622"),a=s("toStringTag"),o="Arguments"==r(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=Object(e),a))?n:o?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},f664:function(e,t,n){var i=n("23e7"),r=n("be8e");i({target:"Math",stat:!0},{fround:r})},f685:function(e,t,n){},f6d6:function(e,t,n){var i=n("23e7"),r=n("23cb"),s=String.fromCharCode,a=String.fromCodePoint,o=!!a&&1!=a.length;i({target:"String",stat:!0,forced:o},{fromCodePoint:function(e){var t,n=[],i=arguments.length,a=0;while(i>a){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},f748:function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},f772:function(e,t,n){var i=n("5692"),r=n("90e3"),s=i("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},f785:function(e,t,n){var i=n("2626");i("Array")},f889:function(e,t,n){"use strict";n("63bf")},f8c9:function(e,t,n){var i=n("23e7"),r=n("da84"),s=n("d44e");i({global:!0},{Reflect:{}}),s(r.Reflect,"Reflect",!0)},f8cd:function(e,t,n){var i=n("a691");e.exports=function(e){var t=i(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},f940:function(e,t,n){},faf6:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"item"},[e.label?n("div",{staticClass:"itemLabel",style:{width:100*(1-e.balance)+"%"}},[e._v(e._s(e.label))]):e._e(),n("div",{staticClass:"itemContent",style:{width:100*(e.label?e.balance:1)+"%"}},[e._t("default")],2)])},r=[],s=(n("a9e3"),{name:"vui-item",props:{label:{type:String,default:""},balance:{type:Number,default:.6}}}),a=s,o=(n("720d"),n("2877")),c=Object(o["a"])(a,i,r,!1,null,"f8e75faa",null);t["default"]=c.exports},fafb:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.state.failTime?n("div",{staticClass:"notice",staticStyle:{color:"white"}},[n("h3",{staticClass:"fw-bold"},[e._v("SYSTEM FAILURE")]),n("span",{staticClass:"fst-italic"},[e._v("I/O regulator malfuction detected! Waiting for system reboot...")]),n("br"),e._v(" Automatic reboot in "+e._s(e.state.failTime)+" seconds... "),n("vui-button",{attrs:{icon:"sync",params:{reboot:1}}},[e._v("Reboot Now")])],1):n("vui-group",[n("div",{staticClass:"notice"},[e.state.siliconUser?n("div",[n("vui-group-item",{attrs:{label:"Interface Lock:"}},[e.state.locked?n("vui-button",{class:{selected:e.state.locked},attrs:{icon:"lock",params:{toggleaccess:1}}},[e._v("Engaged")]):n("vui-button",{class:{selected:e.state.malfstatus<2&&!e.state.locked},attrs:{icon:"lock-open",params:{toggleaccess:1},disabled:e.state.malfstatus>=2}},[e._v("Disengaged")])],1)],1):n("span",[e._v("Swipe an ID card to "+e._s(e.state.locked?"un":null)+"lock this interface.")])]),n("div",{staticStyle:{"min-width":"480px"}},[n("h3",[e._v("Power Status")]),n("vui-group-item",{attrs:{label:"Main Breaker:"}},[e.state.locked&&!e.state.siliconUser?n("div",[n("span",{class:{good:e.state.isOperating,bad:!e.state.isOperating}},[e._v(e._s(e.state.isOperating?"On":"Off"))])]):n("vui-button",{class:{selected:e.state.isOperating},attrs:{icon:e.state.isOperating?"power-off":"times",params:{breaker:1}}},[e._v(e._s(e.state.isOperating?"On":"Off"))])],1),n("vui-group-item",{attrs:{label:"External Power:"}},[2==e.state.externalPower?n("span",{staticClass:"good"},[e._v("Good")]):1==e.state.externalPower?n("span",{staticClass:"average"},[e._v("Low")]):n("span",{staticClass:"bad"},[e._v("None")])]),n("vui-group-item",{attrs:{label:"Power Cell"}},[null==e.state.powerCellStatus?n("span",{staticClass:"bad"},[e._v("Power cell removed.")]):n("span",[n("vui-progress",{class:e.cellClass,attrs:{value:e.state.powerCellStatus,min:0,max:100}}),n("span",{staticStyle:{width:"60px"}},[e._v(e._s(Math.round(10*e.state.powerCellStatus)/10)+"%")])],1)]),n("vui-group-item",{attrs:{label:"Power Cell charge status:"}},[n("div",{staticClass:"statusValue"},[1==e.state.charge_mode?n("span",[e._v("APC's power cell will run out of charge in "+e._s(e.timeRemaining)+".")]):2==e.state.charge_mode?n("span",[e._v("APC is not charging or discharging.")]):n("span",[e._v("APC will be fully charged in "+e._s(e.timeRemaining)+".")])])]),null!=e.state.powerCellStatus?n("vui-group-item",{attrs:{label:"Charge Mode:"}},[e.state.locked&&!e.state.siliconUser?n("span",{class:{good:e.state.chargeMode,bad:!e.state.chargeMode}},[e._v(e._s(e.state.chargeMode?"Auto":"Off"))]):n("vui-button",{class:{selected:e.state.chargeMode},attrs:{icon:e.state.chargeMode?"sync":"times",params:{cmode:1}}},[e._v(e._s(e.state.chargeMode?"Auto":"Off"))]),e._v(" ["),n("span",{class:e.chargeClass},[e._v(e._s(e.chargeStatus))]),e._v("] ")],1):e._e(),n("vui-group-item",{attrs:{label:"Night Lighting:"}},[n("vui-button",{class:{selected:e.state.lightingMode},attrs:{icon:e.state.lightingMode?"moon":"sun",params:{lmode:e.state.lightingMode?"off":"on"}}},[e._v(e._s(e.state.lightingMode?"On":"Off"))])],1),n("vui-group-item",{attrs:{label:"Emergency Lighting:"}},[n("div",{staticStyle:{width:"105px"}},[e.state.locked&&!e.state.siliconUser?n("span",[e._v(e._s(e.state.emergencyMode?"On":"Off"))]):n("vui-button",{class:{selected:e.state.emergencyMode},attrs:{icon:"lightbulb",params:{emergency_lights:1}}},[e._v(e._s(e.state.emergencyMode?"On":"Off"))])],1)]),n("h3",[e._v("Power Channels")]),e._l(e.state.powerChannels,(function(t,i){return n("vui-group-row",{key:i},[n("div",{staticClass:"itemLabel",staticStyle:{display:"table-cell","vertical-align":"top","padding-right":"8px",width:"4%"}},[e._v(" "+e._s(i)+" "),n("span",{staticStyle:{float:"right"}},[e._v(" ["),n("span",{class:e.channelStatClass(t.status)},[e._v(e._s(e.channelStatus(t.status)))]),e._v("] ["),n("span",{staticClass:"good"},[e._v(e._s(e.channelPower(t.status)))]),e._v("] ")])]),n("div",{staticStyle:{display:"table-cell",width:"10%"}},[n("span",{staticStyle:{width:"70px","text-align":"right",display:"inline-block"}},[e._v(" "+e._s(t.powerLoad)+" W ")]),n("span",{staticStyle:{width:"105px"}},[e._v(" "),e.state.locked?n("span",[1==t.status||3==t.status?n("span",[e._v(" "+e._s(e.channelPower(t.status))+" ")]):e._e()]):e._e()]),e._v(" "),!e.state.locked||e.state.siliconUser?n("span",[n("vui-button",{class:{selected:1==t.status||3==t.status},attrs:{icon:"sync",params:{set:3,chan:i}}},[e._v("Auto")]),n("vui-button",{class:{selected:2==t.status},attrs:{icon:"power-off",params:{set:2,chan:i}}},[e._v("On")]),n("vui-button",{class:{selected:0==t.status},attrs:{icon:"times",params:{set:1,chan:i}}},[e._v("Off")])],1):e._e()])])})),n("vui-group-item",{attrs:{label:"Total Load:"}},[e._v(" "+e._s(e.state.totalLoad)+"W"+e._s(e.state.totalCharging?" (+ "+e.state.totalCharging+"W Charging)":null)+" ")]),n("vui-group-item",{attrs:{balance:.69}}),n("vui-group-item",{attrs:{label:"Cover Lock"}},[e.state.locked&&!e.state.siliconUser?n("div",[e.state.coverLocked?n("span",{class:{good:e.state.coverLocked,bad:!e.state.coverLocked}},[e._v(e._s(e.state.coverLocked?"E":"Dise")+"ngaged")]):e._e()]):n("div",[n("vui-button",{class:{selected:e.state.coverLocked},attrs:{icon:e.state.coverLocked?"lock":"lock-open",params:{lock:1}}},[e._v(e._s(e.state.coverLocked?"E":"Dise")+"ngaged")])],1)]),e.state.siliconUser?n("div",[n("h3",[e._v("System Overrides")]),n("div",[n("vui-button",{attrs:{icon:"lightbulb",params:{overload:1}}},[e._v("Overload Lighting Circuit")]),1==e.state.malfStatus?n("vui-button",{attrs:{icon:"script",params:{malfhack:1}}},[e._v("Override Programming")]):e.state.malfStatus>1?n("span",{staticClass:"notice"},[e._v("APC Hacked")]):e._e()],1)]):e._e()],2)])],1)},r=[],s=(n("4de4"),n("a15b"),{data:function(){return this.$root.$data},computed:{chargeClass:function(){return this.state.chargingStatus>1?"good":1==this.state.chargingStatus?"average":"bad"},chargeStatus:function(){return this.state.chargingStatus>1?"Fully Charged":1==this.state.chargingStatus?"Charging":"Not Charging"},cellClass:function(){return this.state.powerCellStatus>=50?"good":this.state.powerCellStatus>=25?"average":"bad"},timeRemaining:function(){var e=(this.state.time-this.wtime)/10,t=Math.round(e/3600),n=Math.round(e%3600/60),i=Math.round(e%60);return[t>=1&&"".concat(t," hours"),n>=1&&"".concat(n," minutes"),i>=1&&"".concat(i," seconds")].filter(Boolean).join(", ")}},methods:{channelStatus:function(e){return e<=1?"Off":"On"},channelPower:function(e){return 1==e||3==e?"Auto":"Manual"},channelStatClass:function(e){return e<=1?"bad":"good"}}}),a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},fb2c:function(e,t,n){var i=n("74e8");i("Uint32",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},fb48:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",[e._v("Group Turret controls:")]),n("div",{staticClass:"item"},[n("div",{staticClass:"itemLabelWide"},[e._v(" Behaviour controls are "+e._s(e.settings.locked?"locked":"unlocked")+". ")])]),n("view-turrets-control-part",{attrs:{settings:e.$data}}),n("h2",[e._v("List of turrets and individual controls:")]),e._l(e.turrets,(function(t){return n("div",{key:t.name},[n("h4",[e._v(e._s(t.name))]),n("view-turrets-control-part",{attrs:{settings:t.settings,tref:t.ref}})],1)}))],2)},r=[],s={data:function(){return this.$root.$data.state}},a=s,o=n("2877"),c=Object(o["a"])(a,i,r,!1,null,null,null);t["default"]=c.exports},fb6a:function(e,t,n){"use strict";var i=n("23e7"),r=n("861d"),s=n("e8b5"),a=n("23cb"),o=n("50c4"),c=n("fc6a"),l=n("8418"),u=n("b622"),d=n("1dde"),h=n("ae40"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),m=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var n,i,u,d=c(this),h=o(d.length),f=a(e,h),p=a(void 0===t?h:t,h);if(s(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!s(n.prototype)?r(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(d,f,p);for(i=new(void 0===n?Array:n)(v(p-f,0)),u=0;f<p;f++,u++)f in d&&l(i,u,d[f]);return i.length=u,i}})},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fcc9:function(e,t,n){"use strict";n("46c6")},fd87:function(e,t,n){var i=n("74e8");i("Int8",(function(e){return function(t,n,i){return e(this,t,n,i)}}))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe33:function(e,t,n){"use strict";n("d81b")},fe83:function(e,t,n){"use strict";var i=n("025e");t["a"]={install:function(e){e.prototype.$toTopic=i["a"].sendToTopic,e.prototype.$toTopicRaw=i["a"].sendToTopicRaw}}},fea9:function(e,t,n){var i=n("da84");e.exports=i.Promise},ff9c:function(e,t,n){var i=n("23e7"),r=n("8eb5"),s=Math.cosh,a=Math.abs,o=Math.E;i({target:"Math",stat:!0,forced:!s||s(710)===1/0},{cosh:function(e){var t=r(a(e)-1)+1;return(t+1/(t*o*o))*(o/2)}})},ffb3:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v(" Metal: "),n("vui-progress",{attrs:{value:e.s.metal,max:e.s.metal_max}},[e._v(e._s(e.s.metal)+"/"+e._s(e.s.metal_max)+" sheets")]),n("br"),e._v(" Circuits avaivable: "+e._s(e.s.upgraded?"Advanced":"Regular")),n("br"),e._l(e.categories,(function(t){return n("vui-button",{key:t,class:{selected:t==e.cc},on:{click:function(n){e.cc=t}}},[e._v(e._s(t))])})),n("hr"),n("vui-input-search",{attrs:{input:e.currentItems,keys:["name","desc"]},model:{value:e.filtered,callback:function(t){e.filtered=t},expression:"filtered"}}),e._l(e.filtered,(function(t,i){return n("div",{key:i},[n("vui-button",{attrs:{disabled:!t.b,params:{build:t.path}}},[e._v(e._s(t.name))]),e._v(" "+e._s(t.desc)+" ")],1)}))],2)},r=[];n("a4d3"),n("e01a"),n("d28b"),n("99af"),n("0481"),n("a630"),n("e260"),n("fb6a"),n("4069"),n("b0c0"),n("b64b"),n("d3b7"),n("07ac"),n("25f0"),n("3ca3"),n("ddb0");function s(e){return l(e)||c(e)||o(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return u(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var d={data:function(){return{s:this.$root.$data.state,cc:"All",filtered:[]}},computed:{categories:function(){return["All"].concat(s(Object.keys(this.s.circuits)))},currentItems:function(){return"All"==this.cc?Object.values(this.s.circuits).flat():this.s.circuits[this.cc]}}},h=d,f=n("2877"),p=Object(f["a"])(h,i,r,!1,null,null,null);t["default"]=p.exports},ffd6:function(e,t,n){var i=n("3729"),r=n("1310"),s="[object Symbol]";function a(e){return"symbol"==typeof e||r(e)&&i(e)==s}e.exports=a},ffe7:function(e,t,n){
|
||
/*!
|
||
* Fuse.js v3.6.1 - Lightweight fuzzy-search (http://fusejs.io)
|
||
*
|
||
* Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
|
||
* All Rights Reserved. Apache Software License 2.0
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*/
|
||
!function(t,n){e.exports=n()}(0,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){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 r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var s=n(1),a=n(7),o=a.get,c=(a.deepValue,a.isArray),l=function(){function e(t,n){var i=n.location,r=void 0===i?0:i,s=n.distance,a=void 0===s?100:s,c=n.threshold,l=void 0===c?.6:c,u=n.maxPatternLength,d=void 0===u?32:u,h=n.caseSensitive,f=void 0!==h&&h,p=n.tokenSeparator,g=void 0===p?/ +/g:p,m=n.findAllMatches,v=void 0!==m&&m,b=n.minMatchCharLength,y=void 0===b?1:b,w=n.id,_=void 0===w?null:w,x=n.keys,k=void 0===x?[]:x,A=n.shouldSort,C=void 0===A||A,E=n.getFn,S=void 0===E?o:E,F=n.sortFn,$=void 0===F?function(e,t){return e.score-t.score}:F,T=n.tokenize,L=void 0!==T&&T,D=n.matchAllTokens,B=void 0!==D&&D,R=n.includeMatches,O=void 0!==R&&R,M=n.includeScore,j=void 0!==M&&M,I=n.verbose,P=void 0!==I&&I;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:r,distance:a,threshold:l,maxPatternLength:d,isCaseSensitive:f,tokenSeparator:g,findAllMatches:v,minMatchCharLength:y,id:_,keys:k,includeMatches:O,includeScore:j,shouldSort:C,getFn:S,sortFn:$,verbose:P,tokenize:L,matchAllTokens:B},this.setCollection(t),this._processKeys(k)}var t,n,a;return t=e,(n=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"_processKeys",value:function(e){if(this._keyWeights={},this._keyNames=[],e.length&&"string"==typeof e[0])for(var t=0,n=e.length;t<n;t+=1){var i=e[t];this._keyWeights[i]=1,this._keyNames.push(i)}else{for(var r=null,s=null,a=0,o=0,c=e.length;o<c;o+=1){var l=e[o];if(!l.hasOwnProperty("name"))throw new Error('Missing "name" property in key object');var u=l.name;if(this._keyNames.push(u),!l.hasOwnProperty("weight"))throw new Error('Missing "weight" property in key object');var d=l.weight;if(d<0||d>1)throw new Error('"weight" property in key must bein the range of [0, 1)');s=null==s?d:Math.max(s,d),r=null==r?d:Math.min(r,d),this._keyWeights[u]=d,a+=d}if(a>1)throw new Error("Total of weights cannot exceed 1")}}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));var n=this._prepareSearchers(e),i=n.tokenSearchers,r=n.fullSearcher,s=this._search(i,r);return this._computeScore(s),this.options.shouldSort&&this._sort(s),t.limit&&"number"==typeof t.limit&&(s=s.slice(0,t.limit)),this._format(s)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var n=e.split(this.options.tokenSeparator),i=0,r=n.length;i<r;i+=1)t.push(new s(n[i],this.options));return{tokenSearchers:t,fullSearcher:new s(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=this.list,i={},r=[];if("string"==typeof n[0]){for(var s=0,a=n.length;s<a;s+=1)this._analyze({key:"",value:n[s],record:s,index:s},{resultMap:i,results:r,tokenSearchers:e,fullSearcher:t});return r}for(var o=0,c=n.length;o<c;o+=1)for(var l=n[o],u=0,d=this._keyNames.length;u<d;u+=1){var h=this._keyNames[u];this._analyze({key:h,value:this.options.getFn(l,h),record:l,index:o},{resultMap:i,results:r,tokenSearchers:e,fullSearcher:t})}return r}},{key:"_analyze",value:function(e,t){var n=this,i=e.key,r=e.arrayIndex,s=void 0===r?-1:r,a=e.value,o=e.record,l=e.index,u=t.tokenSearchers,d=void 0===u?[]:u,h=t.fullSearcher,f=t.resultMap,p=void 0===f?{}:f,g=t.results,m=void 0===g?[]:g;!function e(t,r,s,a){if(null!=r)if("string"==typeof r){var o=!1,l=-1,u=0;n._log("\nKey: ".concat(""===i?"--":i));var f=h.search(r);if(n._log('Full text: "'.concat(r,'", score: ').concat(f.score)),n.options.tokenize){for(var g=r.split(n.options.tokenSeparator),v=g.length,b=[],y=0,w=d.length;y<w;y+=1){var _=d[y];n._log('\nPattern: "'.concat(_.pattern,'"'));for(var x=!1,k=0;k<v;k+=1){var A=g[k],C=_.search(A),E={};C.isMatch?(E[A]=C.score,o=!0,x=!0,b.push(C.score)):(E[A]=1,n.options.matchAllTokens||b.push(1)),n._log('Token: "'.concat(A,'", score: ').concat(E[A]))}x&&(u+=1)}l=b[0];for(var S=b.length,F=1;F<S;F+=1)l+=b[F];l/=S,n._log("Token score average:",l)}var $=f.score;l>-1&&($=($+l)/2),n._log("Score average:",$);var T=!n.options.tokenize||!n.options.matchAllTokens||u>=d.length;if(n._log("\nCheck Matches: ".concat(T)),(o||f.isMatch)&&T){var L={key:i,arrayIndex:t,value:r,score:$};n.options.includeMatches&&(L.matchedIndices=f.matchedIndices);var D=p[a];D?D.output.push(L):(p[a]={item:s,output:[L]},m.push(p[a]))}}else if(c(r))for(var B=0,R=r.length;B<R;B+=1)e(B,r[B],s,a)}(s,a,o,l)}},{key:"_computeScore",value:function(e){this._log("\n\nComputing score:\n");for(var t=this._keyWeights,n=!!Object.keys(t).length,i=0,r=e.length;i<r;i+=1){for(var s=e[i],a=s.output,o=a.length,c=1,l=0;l<o;l+=1){var u=a[l],d=u.key,h=n?t[d]:1,f=0===u.score&&t&&t[d]>0?Number.EPSILON:u.score;c*=Math.pow(f,h)}s.score=c,this._log(s)}}},{key:"_sort",value:function(e){this._log("\n\nSorting...."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var n=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===i(t)&&null!==t){if(-1!==n.indexOf(t))return;n.push(t)}return t}),2)),n=null}var r=[];this.options.includeMatches&&r.push((function(e,t){var n=e.output;t.matches=[];for(var i=0,r=n.length;i<r;i+=1){var s=n[i];if(0!==s.matchedIndices.length){var a={indices:s.matchedIndices,value:s.value};s.key&&(a.key=s.key),s.hasOwnProperty("arrayIndex")&&s.arrayIndex>-1&&(a.arrayIndex=s.arrayIndex),t.matches.push(a)}}})),this.options.includeScore&&r.push((function(e,t){t.score=e.score}));for(var s=0,a=e.length;s<a;s+=1){var o=e[s];if(this.options.id&&(o.item=this.options.getFn(o.item,this.options.id)[0]),r.length){for(var c={item:o.item},l=0,u=r.length;l<u;l+=1)r[l](o,c);t.push(c)}else t.push(o.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&r(t.prototype,n),a&&r(t,a),e}();e.exports=l},function(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var r=n(2),s=n(3),a=n(6),o=function(){function e(t,n){var i=n.location,r=void 0===i?0:i,s=n.distance,o=void 0===s?100:s,c=n.threshold,l=void 0===c?.6:c,u=n.maxPatternLength,d=void 0===u?32:u,h=n.isCaseSensitive,f=void 0!==h&&h,p=n.tokenSeparator,g=void 0===p?/ +/g:p,m=n.findAllMatches,v=void 0!==m&&m,b=n.minMatchCharLength,y=void 0===b?1:b,w=n.includeMatches,_=void 0!==w&&w;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:r,distance:o,threshold:l,maxPatternLength:d,isCaseSensitive:f,tokenSeparator:g,findAllMatches:v,includeMatches:_,minMatchCharLength:y},this.pattern=f?t:t.toLowerCase(),this.pattern.length<=d&&(this.patternAlphabet=a(this.pattern))}var t,n,o;return t=e,(n=[{key:"search",value:function(e){var t=this.options,n=t.isCaseSensitive,i=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var a={isMatch:!0,score:0};return i&&(a.matchedIndices=[[0,e.length-1]]),a}var o=this.options,c=o.maxPatternLength,l=o.tokenSeparator;if(this.pattern.length>c)return r(e,this.pattern,l);var u=this.options,d=u.location,h=u.distance,f=u.threshold,p=u.findAllMatches,g=u.minMatchCharLength;return s(e,this.pattern,this.patternAlphabet,{location:d,distance:h,threshold:f,findAllMatches:p,minMatchCharLength:g,includeMatches:i})}}])&&i(t.prototype,n),o&&i(t,o),e}();e.exports=o},function(e,t){var n=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,r=new RegExp(t.replace(n,"\\$&").replace(i,"|")),s=e.match(r),a=!!s,o=[];if(a)for(var c=0,l=s.length;c<l;c+=1){var u=s[c];o.push([e.indexOf(u),u.length-1])}return{score:a?.5:1,isMatch:a,matchedIndices:o}}},function(e,t,n){var i=n(4),r=n(5);e.exports=function(e,t,n,s){for(var a=s.location,o=void 0===a?0:a,c=s.distance,l=void 0===c?100:c,u=s.threshold,d=void 0===u?.6:u,h=s.findAllMatches,f=void 0!==h&&h,p=s.minMatchCharLength,g=void 0===p?1:p,m=s.includeMatches,v=void 0!==m&&m,b=o,y=e.length,w=d,_=e.indexOf(t,b),x=t.length,k=[],A=0;A<y;A+=1)k[A]=0;if(-1!==_){var C=i(t,{errors:0,currentLocation:_,expectedLocation:b,distance:l});if(w=Math.min(C,w),-1!==(_=e.lastIndexOf(t,b+x))){var E=i(t,{errors:0,currentLocation:_,expectedLocation:b,distance:l});w=Math.min(E,w)}}_=-1;for(var S=[],F=1,$=x+y,T=1<<(x<=31?x-1:30),L=0;L<x;L+=1){for(var D=0,B=$;D<B;)i(t,{errors:L,currentLocation:b+B,expectedLocation:b,distance:l})<=w?D=B:$=B,B=Math.floor(($-D)/2+D);$=B;var R=Math.max(1,b-B+1),O=f?y:Math.min(b+B,y)+x,M=Array(O+2);M[O+1]=(1<<L)-1;for(var j=O;j>=R;j-=1){var I=j-1,P=n[e.charAt(I)];if(P&&(k[I]=1),M[j]=(M[j+1]<<1|1)&P,0!==L&&(M[j]|=(S[j+1]|S[j])<<1|1|S[j+1]),M[j]&T&&(F=i(t,{errors:L,currentLocation:I,expectedLocation:b,distance:l}))<=w){if(w=F,(_=I)<=b)break;R=Math.max(1,2*b-_)}}if(i(t,{errors:L+1,currentLocation:b,expectedLocation:b,distance:l})>w)break;S=M}var N={isMatch:_>=0,score:0===F?.001:F};return v&&(N.matchedIndices=r(k,g)),N}},function(e,t){e.exports=function(e,t){var n=t.errors,i=void 0===n?0:n,r=t.currentLocation,s=void 0===r?0:r,a=t.expectedLocation,o=void 0===a?0:a,c=t.distance,l=void 0===c?100:c,u=i/e.length,d=Math.abs(o-s);return l?u+d/l:d?1:u}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],i=-1,r=-1,s=0,a=e.length;s<a;s+=1){var o=e[s];o&&-1===i?i=s:o||-1===i||((r=s-1)-i+1>=t&&n.push([i,r]),i=-1)}return e[s-1]&&s-i>=t&&n.push([i,s-1]),n}},function(e,t){e.exports=function(e){for(var t={},n=e.length,i=0;i<n;i+=1)t[e.charAt(i)]=0;for(var r=0;r<n;r+=1)t[e.charAt(r)]|=1<<n-r-1;return t}},function(e,t){var n=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},i=function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)},r=function(e){return"string"==typeof e},s=function(e){return"number"==typeof e};e.exports={get:function(e,t){var a=[];return function e(t,o){if(o){var c=o.indexOf("."),l=o,u=null;-1!==c&&(l=o.slice(0,c),u=o.slice(c+1));var d=t[l];if(null!=d)if(u||!r(d)&&!s(d))if(n(d))for(var h=0,f=d.length;h<f;h+=1)e(d[h],u);else u&&e(d,u);else a.push(i(d))}else a.push(t)}(e,t),a},isArray:n,isString:r,isNum:s,toString:i}}])}))}});
|
||
//# sourceMappingURL=app.js.map |