diff --git a/assets/docker-manager-app.js b/assets/docker-manager-app.js
index d5cd2f2..59d4539 100644
--- a/assets/docker-manager-app.js
+++ b/assets/docker-manager-app.js
@@ -1 +1 @@
-"use strict";define("manager-client/app",["exports","ember","manager-client/resolver","ember-load-initializers","manager-client/config/environment"],function(e,t,n,a,l){var r=void 0;t.default.MODEL_FACTORY_INJECTIONS=!0,r=t.default.Application.extend({modulePrefix:l.default.modulePrefix,podModulePrefix:l.default.podModulePrefix,Resolver:n.default}),(0,a.default)(r,l.default.modulePrefix),e.default=r}),define("manager-client/components/progress-bar",["exports","ember"],function(e,t){e.default=t.default.Component.extend({classNameBindings:[":progress",":progress-striped","active"],active:function(){return 100!==parseInt(this.get("percent"),10)}.property("percent"),barStyle:function(){var e=parseInt(this.get("percent"),10);return e>0?(e>100&&(e=100),("width: "+this.get("percent")+"%").htmlSafe()):"".htmlSafe()}.property("percent")})}),define("manager-client/components/repo-status",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"tr",upgradeDisabled:function(){var e=this.get("upgradingRepo");if(!e){var t=this.get("managerRepo");return!!t&&(!t.get("upToDate")&&t!==this.get("repo"))}return!0}.property("upgradingRepo","repo","managerRepo","managerRepo.upToDate"),actions:{upgrade:function(){this.sendAction("upgrade",this.get("repo"))}}})}),define("manager-client/components/x-console",["exports","ember"],function(e,t){e.default=t.default.Component.extend({classNameBindings:[":logs"],_outputChanged:function(){t.default.run.scheduleOnce("afterRender",this,"_scrollBottom")}.observes("output"),_scrollBottom:function(){this.get("followOutput")&&this.$().scrollTop(this.$()[0].scrollHeight)},_scrollOnInsert:function(){this._scrollBottom()}.on("didInsertElement")})}),define("manager-client/controllers/application",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({showBanner:function(){if(this.get("bannerDismissed"))return!1;var e=this.get("banner");return e&&e.length>0}.property("banner","bannerDismissed","banner.@each"),appendBannerHtml:function(e){var t=this.get("banner")||[];t.indexOf(e)===-1&&t.pushObject(e),this.set("banner",t)},logoUrl:function(){return Discourse.getURL("/assets/images/docker-manager-aff8eaea0445c0488c19f8cfd14faa8c2b278924438f19048eacc175d7d134e4.png")}.property(),returnToSiteUrl:function(){return Discourse.getURL("/")}.property(),backupsUrl:function(){return Discourse.getURL("/admin/backups")}.property(),actions:{dismiss:function(){this.set("bannerDismissed",!0)}}})}),define("manager-client/controllers/index",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({managerRepo:null,upgrading:null})}),define("manager-client/controllers/processes",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({autoRefresh:!1,init:function(){this._super();var e=this;window.setInterval(function(){e.performRefresh()},5e3)},performRefresh:function(){this.get("autoRefresh")&&this.get("model").refresh()}})}),define("manager-client/controllers/upgrade",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({output:null,init:function(){this._super(),this.reset()},complete:t.default.computed.equal("status","complete"),failed:t.default.computed.equal("status","failed"),messageReceived:function(e){switch(e.type){case"log":this.set("output",this.get("output")+e.value+"\n");break;case"percent":this.set("percent",e.value);break;case"status":this.set("status",e.value),"complete"!==e.value&&"failed"!==e.value||this.set("model.upgrading",!1),"complete"===e.value&&this.set("model.version",this.get("model.latest.version"))}},upgradeButtonText:function(){return this.get("model.upgrading")?"Upgrading...":"Start Upgrading"}.property("model.upgrading"),startBus:function(){var e=this;MessageBus.subscribe("/docker/upgrade",function(t){e.messageReceived(t)})},stopBus:function(){MessageBus.unsubscribe("/docker/upgrade")},reset:function(){this.setProperties({output:"",status:null,percent:0})},actions:{start:function(){this.reset();var e=this.get("model");e.get("upgrading")||e.startUpgrade()},resetUpgrade:function(){var e=this;bootbox.confirm("WARNING: You should only reset upgrades that have failed and are not running.\n\nThis will NOT cancel currently running builds and should only be used as a last resort.",function(t){if(t){var n=e.get("model");n.resetUpgrade().then(function(){e.reset()})}})}}})}),define("manager-client/helpers/app-version",["exports","ember","manager-client/config/environment"],function(e,t,n){function a(){return l}e.appVersion=a;var l=n.default.APP.version;e.default=t.default.Helper.helper(a)}),define("manager-client/helpers/fmt-commit",["exports","ember"],function(e,t){var n=function(){function e(e,t){var n=[],a=!0,l=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&s.return&&s.return()}finally{if(l)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.default=t.default.Helper.helper(function(e){var a=n(e,3),l=a[0],r=a[1],o=a[2];if(!t.default.isNone(r)){if(t.default.isNone(o))return new t.default.String.htmlSafe("("+l+")");var s=r.substr(0,r.search(/(\.git)?$/)),i=o.indexOf("/")!==-1?o.split("/")[1]:o;return new t.default.String.htmlSafe("("+l+")")}})}),define("manager-client/helpers/is-after",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-after"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-before",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-before"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-between",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-between"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-same-or-after",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-same-or-after"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-same-or-before",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-same-or-before"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-same",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-same"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-add",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-add"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-calendar",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-calendar"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-duration",["exports","ember-moment/helpers/moment-duration"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("manager-client/helpers/moment-format",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-format"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-from-now",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-from-now"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-from",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-from"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-subtract",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-subtract"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-to-date",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-to-date"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-to-now",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-to-now"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-to",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-to"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-unix",["exports","ember-moment/helpers/unix"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"unix",{enumerable:!0,get:function(){return t.unix}})}),define("manager-client/helpers/moment",["exports","ember-moment/helpers/moment"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("manager-client/helpers/now",["exports","ember-moment/helpers/now"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("manager-client/helpers/unix",["exports","ember-moment/helpers/unix"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"unix",{enumerable:!0,get:function(){return t.unix}})}),define("manager-client/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","manager-client/config/environment"],function(e,t,n){var a=n.default.APP,l=a.name,r=a.version;e.default={name:"App Version",initialize:(0,t.default)(l,r)}}),define("manager-client/initializers/container-debug-adapter",["exports","ember-resolver/container-debug-adapter"],function(e,t){e.default={name:"container-debug-adapter",initialize:function(){var e=arguments[1]||arguments[0];e.register("container-debug-adapter:main",t.default),e.inject("container-debug-adapter:main","namespace","application:main")}}}),define("manager-client/initializers/crsf-token",["exports","ember-ajax/request"],function(e,t){e.default={name:"findCsrfToken",initialize:function(){return(0,t.default)("/session/csrf").then(function(e){var t=e.csrf;$.ajaxPrefilter(function(e,n,a){e.crossDomain||a.setRequestHeader("X-CSRF-Token",t)})})}}}),define("manager-client/initializers/export-application-global",["exports","ember","manager-client/config/environment"],function(e,t,n){function a(){var e=arguments[1]||arguments[0];if(n.default.exportApplicationGlobal!==!1){var a;if("undefined"!=typeof window)a=window;else if("undefined"!=typeof global)a=global;else{if("undefined"==typeof self)return;a=self}var l,r=n.default.exportApplicationGlobal;l="string"==typeof r?r:t.default.String.classify(n.default.modulePrefix),a[l]||(a[l]=e,e.reopen({willDestroy:function(){this._super.apply(this,arguments),delete a[l]}}))}}e.initialize=a,e.default={name:"export-application-global",initialize:a}}),define("manager-client/initializers/message-bus",["exports"],function(e){e.default={name:"message-bus",initialize:function(){MessageBus.baseUrl=Discourse.longPollingBaseUrl,"/"!==MessageBus.baseUrl?MessageBus.ajax=function(e){return e.headers=e.headers||{},e.headers["X-Shared-Session-Key"]=$("meta[name=shared_session_key]").attr("content"),$.ajax(e)}:MessageBus.baseUrl=Discourse.getURL("/")}}}),define("manager-client/models/process-list",["exports","ember-ajax/request","ember"],function(e,t,n){function a(){return l.create().refresh()}e.find=a;var l=n.default.Object.extend({output:null,refresh:function(){var e=this;return(0,t.default)(Discourse.getURL("/admin/docker/ps"),{dataType:"text"}).then(function(t){return e.set("output",t),e})}});e.default=l}),define("manager-client/models/repo",["exports","ember-ajax/request","ember"],function(e,t,n){var a=[],l=n.default.Object.extend({upToDate:function(){return!this.get("upgrading")&this.get("version")===this.get("latest.version")}.property("upgrading","version","latest.version"),shouldCheck:function(){if(n.default.isNone(this.get("version")))return!1;if(this.get("checking"))return!1;var e=this.get("lastCheckedAt");if(e){var t=(new Date).getTime()-e;return t>6e4}return!0}.property().volatile(),repoAjax:function(e,n){return n=n||{},n.data=this.getProperties("path","version","branch"),(0,t.default)(Discourse.getURL(e),n)},findLatest:function(){var e=this;return new n.default.RSVP.Promise(function(t){return e.get("shouldCheck")?(e.set("checking",!0),void e.repoAjax(Discourse.getURL("/admin/docker/latest")).then(function(a){e.setProperties({checking:!1,lastCheckedAt:(new Date).getTime(),latest:n.default.Object.create(a.latest)}),t()})):t()})},findProgress:function(){return this.repoAjax(Discourse.getURL("/admin/docker/progress")).then(function(e){return e.progress})},resetUpgrade:function(){var e=this;return this.repoAjax(Discourse.getURL("/admin/docker/upgrade"),{dataType:"text",type:"DELETE"}).then(function(){e.set("upgrading",!1)})},startUpgrade:function(){var e=this;return this.set("upgrading",!0),this.repoAjax(Discourse.getURL("/admin/docker/upgrade"),{dataType:"text",type:"POST"}).catch(function(t){e.set("upgrading",!1)})}});l.reopenClass({findAll:function(){return new n.default.RSVP.Promise(function(e){return a.length?e(a):void(0,t.default)(Discourse.getURL("/admin/docker/repos")).then(function(t){a=t.repos.map(function(e){return l.create(e)}),e(a)})})},findUpgrading:function(){return this.findAll().then(function(e){return e.findBy("upgrading",!0)})},find:function(e){return this.findAll().then(function(t){return t.findBy("id",e)})}}),e.default=l}),define("manager-client/resolver",["exports","ember-resolver"],function(e,t){e.default=t.default}),define("manager-client/router",["exports","ember","manager-client/config/environment"],function(e,t,n){var a=t.default.Router.extend({location:n.default.locationType,rootURL:n.default.rootURL});a.map(function(){this.route("processes"),this.route("upgrade",{path:"/upgrade/:id"})}),e.default=a}),define("manager-client/routes/index",["exports","manager-client/models/repo","ember"],function(e,t,n){e.default=n.default.Route.extend({model:function(){return t.default.findAll()},setupController:function(e,t){var n=this,a=n.controllerFor("application");e.setProperties({model:t,upgrading:null}),window.Discourse&&window.Discourse.hasLatestPngcrush||a.appendBannerHtml("WARNING: You are running an old Docker image, please upgrade."),t.forEach(function(t){t.findLatest(),t.get("upgrading")&&e.set("upgrading",t),"docker_manager"===t.get("id")&&e.set("managerRepo",t),"discourse"===t.get("id")&&"origin/master"===t.get("branch")&&a.appendBannerHtml("WARNING: Your Discourse is tracking the 'master' branch which may be unstable, we recommend tracking the 'tests-passed' branch.")})},actions:{upgrade:function(e){this.transitionTo("upgrade",e)}}})}),define("manager-client/routes/processes",["exports","manager-client/models/process-list","ember"],function(e,t,n){e.default=n.default.Route.extend({model:t.find})}),define("manager-client/routes/upgrade",["exports","manager-client/models/repo","ember"],function(e,t,n){e.default=n.default.Route.extend({model:function(e){return t.default.find(e.id)},afterModel:function(e){var a=this;return t.default.findUpgrading().then(function(t){return t&&t!==e?n.default.RSVP.Promise.reject("wat"):e.findLatest().then(function(){return e.findProgress().then(function(e){a.set("progress",e)})})})},setupController:function(e,t){e.reset(),e.setProperties({model:t,output:this.get("progress.logs"),percent:this.get("progress.percentage")}),e.startBus()},deactivate:function(){this.controllerFor("upgrade").stopBus()}})}),define("manager-client/services/ajax",["exports","ember-ajax/services/ajax"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("manager-client/services/moment",["exports","ember","manager-client/config/environment","ember-moment/services/moment"],function(e,t,n,a){e.default=a.default.extend({defaultFormat:t.default.get(n.default,"moment.outputFormat")})}),define("manager-client/templates/application",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"ctJRz2Va",block:'{"statements":[["open-element","header",[]],["static-attr","class","container"],["flush-element"],["text","\\n "],["block",["link-to"],["index"],null,7],["text","\\n "],["open-element","h1",[]],["flush-element"],["block",["link-to"],["index"],null,6],["close-element"],["text","\\n"],["close-element"],["text","\\n\\n"],["open-element","div",[]],["static-attr","class","container"],["flush-element"],["text","\\n\\n"],["block",["if"],[["get",["showBanner"]]],null,5],["text","\\n "],["open-element","ul",[]],["static-attr","class","nav nav-tabs"],["flush-element"],["text","\\n"],["block",["link-to"],["index"],[["tagName"],["li"]],3],["block",["link-to"],["processes"],[["tagName"],["li"]],1],["text","\\n "],["open-element","li",[]],["flush-element"],["open-element","a",[]],["dynamic-attr","href",["unknown",["returnToSiteUrl"]],null],["flush-element"],["text","Return to site"],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["flush-element"],["open-element","a",[]],["dynamic-attr","href",["unknown",["backupsUrl"]],null],["flush-element"],["text","Backups"],["close-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n\\n "],["append",["unknown",["outlet"]],false],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text","Processes"]],"locals":[]},{"statements":[["text"," "],["block",["link-to"],["processes"],null,0],["text","\\n"]],"locals":[]},{"statements":[["text","Versions"]],"locals":[]},{"statements":[["text"," "],["block",["link-to"],["index"],null,2],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["flush-element"],["append",["get",["row"]],true],["close-element"],["text","\\n"]],"locals":["row"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","id","banner"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","id","banner-content"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","close"],["modifier",["action"],[["get",[null]],"dismiss"]],["flush-element"],["open-element","i",[]],["static-attr","class","fa fa-times"],["static-attr","title","Dismiss this banner."],["flush-element"],["close-element"],["close-element"],["text","\\n"],["block",["each"],[["get",["banner"]]],null,4],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text","Upgrade"]],"locals":[]},{"statements":[["open-element","img",[]],["dynamic-attr","src",["unknown",["logoUrl"]],null],["static-attr","class","logo"],["flush-element"],["close-element"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"manager-client/templates/application.hbs"}})}),define("manager-client/templates/components/progress-bar",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"faGgRn0d",block:'{"statements":[["open-element","div",[]],["static-attr","class","progress-bar"],["dynamic-attr","style",["unknown",["barStyle"]],null],["flush-element"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"manager-client/templates/components/progress-bar.hbs"}})}),define("manager-client/templates/components/repo-status",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"7r0DVbs9",block:'{"statements":[["open-element","td",[]],["flush-element"],["text","\\n "],["append",["unknown",["repo","name"]],false],["text","\\n "],["append",["helper",["fmt-commit"],[["get",["repo","version"]],["get",["repo","url"]],["get",["repo","branch"]]],null],false],["text","\\n"],["close-element"],["text","\\n"],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["repo","checking"]]],null,7,6],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn"],["dynamic-attr","disabled",["unknown",["upgradeDisabled"]],null],["modifier",["action"],[["get",[null]],"upgrade"]],["flush-element"],["text","Upgrade to the Latest Version"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn"],["modifier",["action"],[["get",[null]],"upgrade"]],["flush-element"],["text","Currently Upgrading..."],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," —\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["moment-from-now"],[["get",["repo","latest","date"]]],[["interval"],[1000]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","new-version"],["flush-element"],["text","\\n "],["open-element","h4",[]],["flush-element"],["text","New Version Available!"],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n "],["open-element","li",[]],["flush-element"],["text","Remote Version: "],["append",["helper",["fmt-commit"],[["get",["repo","latest","version"]],["get",["repo","url"]],["get",["repo","branch"]]],null],false],["close-element"],["text","\\n "],["open-element","li",[]],["flush-element"],["text","Last Updated:\\n"],["block",["if"],[["get",["repo","latest","date"]]],null,3,2],["text"," "],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","class","new-commits"],["flush-element"],["append",["unknown",["repo","latest","commits_behind"]],false],["text"," new commits"],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["repo","upgrading"]]],null,1,0],["text"," "],["close-element"],["text","\\n "]],"locals":[]},{"statements":[["text"," Up to date\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["repo","upToDate"]]],null,5,4]],"locals":[]},{"statements":[["text"," Checking for new version...\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"manager-client/templates/components/repo-status.hbs"}})}),define("manager-client/templates/components/x-console",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"pAvT7OSR",block:'{"statements":[["append",["unknown",["output"]],false],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"manager-client/templates/components/x-console.hbs"}})}),define("manager-client/templates/index",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"BqyyoGBa",block:'{"statements":[["open-element","table",[]],["static-attr","class","table"],["static-attr","id","repos"],["flush-element"],["text","\\n "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","th",[]],["static-attr","style","width: 50%"],["flush-element"],["text","Repository Name"],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["text","Status"],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","tbody",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,0],["text"," "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["repo-status"],null,[["repo","upgradingRepo","managerRepo","upgrade"],[["get",["repo"]],["get",["upgrading"]],["get",["managerRepo"]],"upgrade"]]],false],["text","\\n"]],"locals":["repo"]}],"hasPartials":false}',meta:{moduleName:"manager-client/templates/index.hbs"}})}),define("manager-client/templates/loading",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"KVS2Qgkh",block:'{"statements":[["open-element","h3",[]],["static-attr","class","loading"],["flush-element"],["text","Loading..."],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"manager-client/templates/loading.hbs"}})}),define("manager-client/templates/processes",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"oTRdyLm0",block:'{"statements":[["append",["helper",["x-console"],null,[["output"],[["get",["model","output"]]]]],false],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"manager-client/templates/processes.hbs"}})}),define("manager-client/templates/upgrade",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"uiOJmK+r",block:'{"statements":[["open-element","h3",[]],["flush-element"],["text","Upgrade "],["append",["unknown",["model","name"]],false],["close-element"],["text","\\n\\n"],["append",["helper",["progress-bar"],null,[["percent"],[["get",["percent"]]]]],false],["text","\\n\\n"],["block",["if"],[["get",["complete"]]],null,4],["text","\\n"],["block",["if"],[["get",["failed"]]],null,3],["text","\\n"],["block",["if"],[["get",["model","upToDate"]]],null,2,1],["text","\\n"],["append",["helper",["x-console"],null,[["output","followOutput"],[["get",["output"]],true]]],false],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn unlock"],["modifier",["action"],[["get",[null]],"resetUpgrade"]],["flush-element"],["text","Reset Upgrade"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","style","clear: both"],["flush-element"],["text","\\n "],["open-element","button",[]],["dynamic-attr","disabled",["unknown",["model","upgrading"]],null],["static-attr","class","btn"],["modifier",["action"],[["get",[null]],"start"]],["flush-element"],["append",["unknown",["upgradeButtonText"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["model","upgrading"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["flush-element"],["append",["unknown",["model","name"]],false],["text"," is at the newest version "],["append",["helper",["fmt-commit"],[["get",["model","version"]],["get",["model","url"]],["get",["model","branch"]]],null],false],["text","."],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["flush-element"],["text","Sorry, there was an error upgrading Discourse. Please check the logs below."],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["flush-element"],["text","Upgrade completed successfully!"],["close-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["text","Note: The web server restarts in the background. It\'s a good idea to wait 30 seconds or so\\n before refreshing your browser to see the latest version of the application."],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"manager-client/templates/upgrade.hbs"}})}),define("manager-client/config/environment",["ember"],function(e){var t="manager-client";try{var n=t+"/config/environment",a=document.querySelector('meta[name="'+n+'"]').getAttribute("content"),l=JSON.parse(unescape(a)),r={default:l};return Object.defineProperty(r,"__esModule",{value:!0}),r}catch(e){throw new Error('Could not read config from meta tag with name "'+n+'".')}}),runningTests||require("manager-client/app").default.create({name:"manager-client",version:"0.0.0+5cfcb104"});
\ No newline at end of file
+"use strict";define("manager-client/app",["exports","ember","manager-client/resolver","ember-load-initializers","manager-client/config/environment"],function(e,t,n,a,l){var r=void 0;t.default.MODEL_FACTORY_INJECTIONS=!0,r=t.default.Application.extend({modulePrefix:l.default.modulePrefix,podModulePrefix:l.default.podModulePrefix,Resolver:n.default}),(0,a.default)(r,l.default.modulePrefix),e.default=r}),define("manager-client/components/progress-bar",["exports","ember"],function(e,t){e.default=t.default.Component.extend({classNameBindings:[":progress",":progress-striped","active"],active:function(){return 100!==parseInt(this.get("percent"),10)}.property("percent"),barStyle:function(){var e=parseInt(this.get("percent"),10);return e>0?(e>100&&(e=100),("width: "+this.get("percent")+"%").htmlSafe()):"".htmlSafe()}.property("percent")})}),define("manager-client/components/repo-status",["exports","ember"],function(e,t){e.default=t.default.Component.extend({tagName:"tr",upgradeDisabled:function(){var e=this.get("upgradingRepo");if(!e){var t=this.get("managerRepo");return!!t&&(!t.get("upToDate")&&t!==this.get("repo"))}return!0}.property("upgradingRepo","repo","managerRepo","managerRepo.upToDate"),actions:{upgrade:function(){this.sendAction("upgrade",this.get("repo"))}}})}),define("manager-client/components/x-console",["exports","ember"],function(e,t){e.default=t.default.Component.extend({classNameBindings:[":logs"],_outputChanged:function(){t.default.run.scheduleOnce("afterRender",this,"_scrollBottom")}.observes("output"),_scrollBottom:function(){this.get("followOutput")&&this.$().scrollTop(this.$()[0].scrollHeight)},_scrollOnInsert:function(){this._scrollBottom()}.on("didInsertElement")})}),define("manager-client/controllers/application",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({showBanner:function(){if(this.get("bannerDismissed"))return!1;var e=this.get("banner");return e&&e.length>0}.property("banner","bannerDismissed","banner.@each"),appendBannerHtml:function(e){var t=this.get("banner")||[];t.indexOf(e)===-1&&t.pushObject(e),this.set("banner",t)},logoUrl:function(){return Discourse.getURL("/assets/images/docker-manager-aff8eaea0445c0488c19f8cfd14faa8c2b278924438f19048eacc175d7d134e4.png")}.property(),returnToSiteUrl:function(){return Discourse.getURL("/")}.property(),backupsUrl:function(){return Discourse.getURL("/admin/backups")}.property(),actions:{dismiss:function(){this.set("bannerDismissed",!0)}}})}),define("manager-client/controllers/index",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({managerRepo:null,upgrading:null})}),define("manager-client/controllers/processes",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({autoRefresh:!1,init:function(){this._super();var e=this;window.setInterval(function(){e.performRefresh()},5e3)},performRefresh:function(){this.get("autoRefresh")&&this.get("model").refresh()}})}),define("manager-client/controllers/upgrade",["exports","ember"],function(e,t){e.default=t.default.Controller.extend({output:null,init:function(){this._super(),this.reset()},complete:t.default.computed.equal("status","complete"),failed:t.default.computed.equal("status","failed"),messageReceived:function(e){switch(e.type){case"log":this.set("output",this.get("output")+e.value+"\n");break;case"percent":this.set("percent",e.value);break;case"status":this.set("status",e.value),"complete"!==e.value&&"failed"!==e.value||this.set("model.upgrading",!1),"complete"===e.value&&this.set("model.version",this.get("model.latest.version"))}},upgradeButtonText:function(){return this.get("model.upgrading")?"Upgrading...":"Start Upgrading"}.property("model.upgrading"),startBus:function(){var e=this;MessageBus.subscribe("/docker/upgrade",function(t){e.messageReceived(t)})},stopBus:function(){MessageBus.unsubscribe("/docker/upgrade")},reset:function(){this.setProperties({output:"",status:null,percent:0})},actions:{start:function(){this.reset();var e=this.get("model");e.get("upgrading")||e.startUpgrade()},resetUpgrade:function(){var e=this;bootbox.confirm("WARNING: You should only reset upgrades that have failed and are not running.\n\nThis will NOT cancel currently running builds and should only be used as a last resort.",function(t){if(t){var n=e.get("model");n.resetUpgrade().then(function(){e.reset()})}})}}})}),define("manager-client/helpers/app-version",["exports","ember","manager-client/config/environment"],function(e,t,n){function a(){return l}e.appVersion=a;var l=n.default.APP.version;e.default=t.default.Helper.helper(a)}),define("manager-client/helpers/fmt-commit",["exports","ember"],function(e,t){var n=function(){function e(e,t){var n=[],a=!0,l=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&s.return&&s.return()}finally{if(l)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.default=t.default.Helper.helper(function(e){var a=n(e,3),l=a[0],r=a[1],o=a[2];if(!t.default.isNone(r)){if(t.default.isNone(o))return new t.default.String.htmlSafe("("+l+")");var s=r.substr(0,r.search(/(\.git)?$/)),i=o.indexOf("/")!==-1?o.split("/")[1]:o;return new t.default.String.htmlSafe("("+l+")")}})}),define("manager-client/helpers/is-after",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-after"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-before",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-before"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-between",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-between"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-same-or-after",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-same-or-after"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-same-or-before",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-same-or-before"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/is-same",["exports","ember","manager-client/config/environment","ember-moment/helpers/is-same"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-add",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-add"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-calendar",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-calendar"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-duration",["exports","ember-moment/helpers/moment-duration"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("manager-client/helpers/moment-format",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-format"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-from-now",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-from-now"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-from",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-from"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-subtract",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-subtract"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-to-date",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-to-date"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-to-now",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-to-now"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-to",["exports","ember","manager-client/config/environment","ember-moment/helpers/moment-to"],function(e,t,n,a){e.default=a.default.extend({globalAllowEmpty:!!t.default.get(n.default,"moment.allowEmpty")})}),define("manager-client/helpers/moment-unix",["exports","ember-moment/helpers/unix"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"unix",{enumerable:!0,get:function(){return t.unix}})}),define("manager-client/helpers/moment",["exports","ember-moment/helpers/moment"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("manager-client/helpers/now",["exports","ember-moment/helpers/now"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("manager-client/helpers/unix",["exports","ember-moment/helpers/unix"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"unix",{enumerable:!0,get:function(){return t.unix}})}),define("manager-client/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","manager-client/config/environment"],function(e,t,n){var a=n.default.APP,l=a.name,r=a.version;e.default={name:"App Version",initialize:(0,t.default)(l,r)}}),define("manager-client/initializers/container-debug-adapter",["exports","ember-resolver/container-debug-adapter"],function(e,t){e.default={name:"container-debug-adapter",initialize:function(){var e=arguments[1]||arguments[0];e.register("container-debug-adapter:main",t.default),e.inject("container-debug-adapter:main","namespace","application:main")}}}),define("manager-client/initializers/crsf-token",["exports","ember-ajax/request"],function(e,t){e.default={name:"findCsrfToken",initialize:function(){return(0,t.default)(Discourse.getURL("/session/csrf")).then(function(e){var t=e.csrf;$.ajaxPrefilter(function(e,n,a){e.crossDomain||a.setRequestHeader("X-CSRF-Token",t)})})}}}),define("manager-client/initializers/export-application-global",["exports","ember","manager-client/config/environment"],function(e,t,n){function a(){var e=arguments[1]||arguments[0];if(n.default.exportApplicationGlobal!==!1){var a;if("undefined"!=typeof window)a=window;else if("undefined"!=typeof global)a=global;else{if("undefined"==typeof self)return;a=self}var l,r=n.default.exportApplicationGlobal;l="string"==typeof r?r:t.default.String.classify(n.default.modulePrefix),a[l]||(a[l]=e,e.reopen({willDestroy:function(){this._super.apply(this,arguments),delete a[l]}}))}}e.initialize=a,e.default={name:"export-application-global",initialize:a}}),define("manager-client/initializers/message-bus",["exports"],function(e){e.default={name:"message-bus",initialize:function(){MessageBus.baseUrl=Discourse.longPollingBaseUrl,"/"!==MessageBus.baseUrl?MessageBus.ajax=function(e){return e.headers=e.headers||{},e.headers["X-Shared-Session-Key"]=$("meta[name=shared_session_key]").attr("content"),$.ajax(e)}:MessageBus.baseUrl=Discourse.getURL("/")}}}),define("manager-client/models/process-list",["exports","ember-ajax/request","ember"],function(e,t,n){function a(){return l.create().refresh()}e.find=a;var l=n.default.Object.extend({output:null,refresh:function(){var e=this;return(0,t.default)(Discourse.getURL("/admin/docker/ps"),{dataType:"text"}).then(function(t){return e.set("output",t),e})}});e.default=l}),define("manager-client/models/repo",["exports","ember-ajax/request","ember"],function(e,t,n){var a=[],l=n.default.Object.extend({upToDate:function(){return!this.get("upgrading")&this.get("version")===this.get("latest.version")}.property("upgrading","version","latest.version"),shouldCheck:function(){if(n.default.isNone(this.get("version")))return!1;if(this.get("checking"))return!1;var e=this.get("lastCheckedAt");if(e){var t=(new Date).getTime()-e;return t>6e4}return!0}.property().volatile(),repoAjax:function(e,n){return n=n||{},n.data=this.getProperties("path","version","branch"),(0,t.default)(Discourse.getURL(e),n)},findLatest:function(){var e=this;return new n.default.RSVP.Promise(function(t){return e.get("shouldCheck")?(e.set("checking",!0),void e.repoAjax(Discourse.getURL("/admin/docker/latest")).then(function(a){e.setProperties({checking:!1,lastCheckedAt:(new Date).getTime(),latest:n.default.Object.create(a.latest)}),t()})):t()})},findProgress:function(){return this.repoAjax(Discourse.getURL("/admin/docker/progress")).then(function(e){return e.progress})},resetUpgrade:function(){var e=this;return this.repoAjax(Discourse.getURL("/admin/docker/upgrade"),{dataType:"text",type:"DELETE"}).then(function(){e.set("upgrading",!1)})},startUpgrade:function(){var e=this;return this.set("upgrading",!0),this.repoAjax(Discourse.getURL("/admin/docker/upgrade"),{dataType:"text",type:"POST"}).catch(function(){e.set("upgrading",!1)})}});l.reopenClass({findAll:function(){return new n.default.RSVP.Promise(function(e){return a.length?e(a):void(0,t.default)(Discourse.getURL("/admin/docker/repos")).then(function(t){a=t.repos.map(function(e){return l.create(e)}),e(a)})})},findUpgrading:function(){return this.findAll().then(function(e){return e.findBy("upgrading",!0)})},find:function(e){return this.findAll().then(function(t){return t.findBy("id",e)})}}),e.default=l}),define("manager-client/resolver",["exports","ember-resolver"],function(e,t){e.default=t.default}),define("manager-client/router",["exports","ember","manager-client/config/environment"],function(e,t,n){var a=t.default.Router.extend({location:n.default.locationType,rootURL:n.default.rootURL});a.map(function(){this.route("processes"),this.route("upgrade",{path:"/upgrade/:id"})}),e.default=a}),define("manager-client/routes/index",["exports","manager-client/models/repo","ember"],function(e,t,n){e.default=n.default.Route.extend({model:function(){return t.default.findAll()},setupController:function(e,t){var n=this,a=n.controllerFor("application");e.setProperties({model:t,upgrading:null}),window.Discourse&&window.Discourse.hasLatestPngcrush||a.appendBannerHtml("WARNING: You are running an old Docker image, please upgrade."),t.forEach(function(t){t.findLatest(),t.get("upgrading")&&e.set("upgrading",t),"docker_manager"===t.get("id")&&e.set("managerRepo",t),"discourse"===t.get("id")&&"origin/master"===t.get("branch")&&a.appendBannerHtml("WARNING: Your Discourse is tracking the 'master' branch which may be unstable, we recommend tracking the 'tests-passed' branch.")})},actions:{upgrade:function(e){this.transitionTo("upgrade",e)}}})}),define("manager-client/routes/processes",["exports","manager-client/models/process-list","ember"],function(e,t,n){e.default=n.default.Route.extend({model:t.find})}),define("manager-client/routes/upgrade",["exports","manager-client/models/repo","ember"],function(e,t,n){e.default=n.default.Route.extend({model:function(e){return t.default.find(e.id)},afterModel:function(e){var a=this;return t.default.findUpgrading().then(function(t){return t&&t!==e?n.default.RSVP.Promise.reject("wat"):e.findLatest().then(function(){return e.findProgress().then(function(e){a.set("progress",e)})})})},setupController:function(e,t){e.reset(),e.setProperties({model:t,output:this.get("progress.logs"),percent:this.get("progress.percentage")}),e.startBus()},deactivate:function(){this.controllerFor("upgrade").stopBus()}})}),define("manager-client/services/ajax",["exports","ember-ajax/services/ajax"],function(e,t){Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})}),define("manager-client/services/moment",["exports","ember","manager-client/config/environment","ember-moment/services/moment"],function(e,t,n,a){e.default=a.default.extend({defaultFormat:t.default.get(n.default,"moment.outputFormat")})}),define("manager-client/templates/application",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"ctJRz2Va",block:'{"statements":[["open-element","header",[]],["static-attr","class","container"],["flush-element"],["text","\\n "],["block",["link-to"],["index"],null,7],["text","\\n "],["open-element","h1",[]],["flush-element"],["block",["link-to"],["index"],null,6],["close-element"],["text","\\n"],["close-element"],["text","\\n\\n"],["open-element","div",[]],["static-attr","class","container"],["flush-element"],["text","\\n\\n"],["block",["if"],[["get",["showBanner"]]],null,5],["text","\\n "],["open-element","ul",[]],["static-attr","class","nav nav-tabs"],["flush-element"],["text","\\n"],["block",["link-to"],["index"],[["tagName"],["li"]],3],["block",["link-to"],["processes"],[["tagName"],["li"]],1],["text","\\n "],["open-element","li",[]],["flush-element"],["open-element","a",[]],["dynamic-attr","href",["unknown",["returnToSiteUrl"]],null],["flush-element"],["text","Return to site"],["close-element"],["close-element"],["text","\\n "],["open-element","li",[]],["flush-element"],["open-element","a",[]],["dynamic-attr","href",["unknown",["backupsUrl"]],null],["flush-element"],["text","Backups"],["close-element"],["close-element"],["text","\\n "],["close-element"],["text","\\n\\n "],["append",["unknown",["outlet"]],false],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text","Processes"]],"locals":[]},{"statements":[["text"," "],["block",["link-to"],["processes"],null,0],["text","\\n"]],"locals":[]},{"statements":[["text","Versions"]],"locals":[]},{"statements":[["text"," "],["block",["link-to"],["index"],null,2],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["flush-element"],["append",["get",["row"]],true],["close-element"],["text","\\n"]],"locals":["row"]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","id","banner"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","id","banner-content"],["flush-element"],["text","\\n "],["open-element","div",[]],["static-attr","class","close"],["modifier",["action"],[["get",[null]],"dismiss"]],["flush-element"],["open-element","i",[]],["static-attr","class","fa fa-times"],["static-attr","title","Dismiss this banner."],["flush-element"],["close-element"],["close-element"],["text","\\n"],["block",["each"],[["get",["banner"]]],null,4],["text"," "],["close-element"],["text","\\n "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text","Upgrade"]],"locals":[]},{"statements":[["open-element","img",[]],["dynamic-attr","src",["unknown",["logoUrl"]],null],["static-attr","class","logo"],["flush-element"],["close-element"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"manager-client/templates/application.hbs"}})}),define("manager-client/templates/components/progress-bar",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"faGgRn0d",block:'{"statements":[["open-element","div",[]],["static-attr","class","progress-bar"],["dynamic-attr","style",["unknown",["barStyle"]],null],["flush-element"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"manager-client/templates/components/progress-bar.hbs"}})}),define("manager-client/templates/components/repo-status",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"7r0DVbs9",block:'{"statements":[["open-element","td",[]],["flush-element"],["text","\\n "],["append",["unknown",["repo","name"]],false],["text","\\n "],["append",["helper",["fmt-commit"],[["get",["repo","version"]],["get",["repo","url"]],["get",["repo","branch"]]],null],false],["text","\\n"],["close-element"],["text","\\n"],["open-element","td",[]],["flush-element"],["text","\\n"],["block",["if"],[["get",["repo","checking"]]],null,7,6],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn"],["dynamic-attr","disabled",["unknown",["upgradeDisabled"]],null],["modifier",["action"],[["get",[null]],"upgrade"]],["flush-element"],["text","Upgrade to the Latest Version"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn"],["modifier",["action"],[["get",[null]],"upgrade"]],["flush-element"],["text","Currently Upgrading..."],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," —\\n"]],"locals":[]},{"statements":[["text"," "],["append",["helper",["moment-from-now"],[["get",["repo","latest","date"]]],[["interval"],[1000]]],false],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","class","new-version"],["flush-element"],["text","\\n "],["open-element","h4",[]],["flush-element"],["text","New Version Available!"],["close-element"],["text","\\n "],["open-element","ul",[]],["flush-element"],["text","\\n "],["open-element","li",[]],["flush-element"],["text","Remote Version: "],["append",["helper",["fmt-commit"],[["get",["repo","latest","version"]],["get",["repo","url"]],["get",["repo","branch"]]],null],false],["close-element"],["text","\\n "],["open-element","li",[]],["flush-element"],["text","Last Updated:\\n"],["block",["if"],[["get",["repo","latest","date"]]],null,3,2],["text"," "],["close-element"],["text","\\n "],["open-element","li",[]],["static-attr","class","new-commits"],["flush-element"],["append",["unknown",["repo","latest","commits_behind"]],false],["text"," new commits"],["close-element"],["text","\\n "],["close-element"],["text","\\n"],["block",["if"],[["get",["repo","upgrading"]]],null,1,0],["text"," "],["close-element"],["text","\\n "]],"locals":[]},{"statements":[["text"," Up to date\\n"]],"locals":[]},{"statements":[["block",["if"],[["get",["repo","upToDate"]]],null,5,4]],"locals":[]},{"statements":[["text"," Checking for new version...\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"manager-client/templates/components/repo-status.hbs"}})}),define("manager-client/templates/components/x-console",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"pAvT7OSR",block:'{"statements":[["append",["unknown",["output"]],false],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"manager-client/templates/components/x-console.hbs"}})}),define("manager-client/templates/index",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"BqyyoGBa",block:'{"statements":[["open-element","table",[]],["static-attr","class","table"],["static-attr","id","repos"],["flush-element"],["text","\\n "],["open-element","tr",[]],["flush-element"],["text","\\n "],["open-element","th",[]],["static-attr","style","width: 50%"],["flush-element"],["text","Repository Name"],["close-element"],["text","\\n "],["open-element","th",[]],["flush-element"],["text","Status"],["close-element"],["text","\\n "],["close-element"],["text","\\n "],["open-element","tbody",[]],["flush-element"],["text","\\n"],["block",["each"],[["get",["model"]]],null,0],["text"," "],["close-element"],["text","\\n"],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["append",["helper",["repo-status"],null,[["repo","upgradingRepo","managerRepo","upgrade"],[["get",["repo"]],["get",["upgrading"]],["get",["managerRepo"]],"upgrade"]]],false],["text","\\n"]],"locals":["repo"]}],"hasPartials":false}',meta:{moduleName:"manager-client/templates/index.hbs"}})}),define("manager-client/templates/loading",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"KVS2Qgkh",block:'{"statements":[["open-element","h3",[]],["static-attr","class","loading"],["flush-element"],["text","Loading..."],["close-element"],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"manager-client/templates/loading.hbs"}})}),define("manager-client/templates/processes",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"oTRdyLm0",block:'{"statements":[["append",["helper",["x-console"],null,[["output"],[["get",["model","output"]]]]],false],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[],"hasPartials":false}',meta:{moduleName:"manager-client/templates/processes.hbs"}})}),define("manager-client/templates/upgrade",["exports"],function(e){e.default=Ember.HTMLBars.template({id:"uiOJmK+r",block:'{"statements":[["open-element","h3",[]],["flush-element"],["text","Upgrade "],["append",["unknown",["model","name"]],false],["close-element"],["text","\\n\\n"],["append",["helper",["progress-bar"],null,[["percent"],[["get",["percent"]]]]],false],["text","\\n\\n"],["block",["if"],[["get",["complete"]]],null,4],["text","\\n"],["block",["if"],[["get",["failed"]]],null,3],["text","\\n"],["block",["if"],[["get",["model","upToDate"]]],null,2,1],["text","\\n"],["append",["helper",["x-console"],null,[["output","followOutput"],[["get",["output"]],true]]],false],["text","\\n"]],"locals":[],"named":[],"yields":[],"blocks":[{"statements":[["text"," "],["open-element","button",[]],["static-attr","class","btn unlock"],["modifier",["action"],[["get",[null]],"resetUpgrade"]],["flush-element"],["text","Reset Upgrade"],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","div",[]],["static-attr","style","clear: both"],["flush-element"],["text","\\n "],["open-element","button",[]],["dynamic-attr","disabled",["unknown",["model","upgrading"]],null],["static-attr","class","btn"],["modifier",["action"],[["get",[null]],"start"]],["flush-element"],["append",["unknown",["upgradeButtonText"]],false],["close-element"],["text","\\n"],["block",["if"],[["get",["model","upgrading"]]],null,0],["text"," "],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["flush-element"],["append",["unknown",["model","name"]],false],["text"," is at the newest version "],["append",["helper",["fmt-commit"],[["get",["model","version"]],["get",["model","url"]],["get",["model","branch"]]],null],false],["text","."],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["flush-element"],["text","Sorry, there was an error upgrading Discourse. Please check the logs below."],["close-element"],["text","\\n"]],"locals":[]},{"statements":[["text"," "],["open-element","p",[]],["flush-element"],["text","Upgrade completed successfully!"],["close-element"],["text","\\n "],["open-element","p",[]],["flush-element"],["text","Note: The web server restarts in the background. It\'s a good idea to wait 30 seconds or so\\n before refreshing your browser to see the latest version of the application."],["close-element"],["text","\\n"]],"locals":[]}],"hasPartials":false}',meta:{moduleName:"manager-client/templates/upgrade.hbs"}})}),define("manager-client/config/environment",["ember"],function(e){var t="manager-client";try{var n=t+"/config/environment",a=document.querySelector('meta[name="'+n+'"]').getAttribute("content"),l=JSON.parse(unescape(a)),r={default:l};return Object.defineProperty(r,"__esModule",{value:!0}),r}catch(e){throw new Error('Could not read config from meta tag with name "'+n+'".')}}),runningTests||require("manager-client/app").default.create({name:"manager-client",version:"0.0.0+678a4212"});
\ No newline at end of file
diff --git a/assets/docker-manager-vendor.js b/assets/docker-manager-vendor.js
index 0619321..76f6cc9 100644
--- a/assets/docker-manager-vendor.js
+++ b/assets/docker-manager-vendor.js
@@ -1,23 +1,23 @@
-function createDeprecatedModule(e){define(e,["exports","ember-resolver/resolver","ember"],function(t,n,r){r.default.deprecate("Usage of `"+e+"` module is deprecated, please update to `ember-resolver`.",!1,{id:"ember-resolver.legacy-shims",until:"3.0.0"}),t.default=n.default})}window.EmberENV={FEATURES:{},EXTEND_PROTOTYPES:{Date:!1}};var runningTests=!1,loader,define,requireModule,require,requirejs;!function(e){"use strict";function t(){l={define:0,require:0,reify:0,findDeps:0,modules:0,exports:0,resolve:0,resolveRelative:0,findModule:0,pendingQueueLength:0},requirejs._stats=l}function n(e){throw new Error("an unsupported module was defined, expected `define(name, deps, module)` instead got: `"+e+"` arguments to define`")}function r(e,t,n,r){l.modules++,this.id=d++,this.name=e,this.deps=!t.length&&n.length?m:t,this.module={exports:{}},this.callback=n,this.hasExportsAsDep=!1,this.isAlias=r,this.reified=new Array(t.length),this.state="new"}function i(e){this.name=e}function o(e,t){throw new Error("Could not find module `"+e+"` imported from `"+t+"`")}function s(e,t,n){l.findModule++;for(var r=f[e]||f[e+"/index"];r&&r.isAlias;)r=f[r.name];return r||o(e,t),n&&"pending"!==r.state&&"finalized"!==r.state&&(r.findDeps(n),n.push(r),l.pendingQueueLength++),r}function a(e,t){if(l.resolve++,"."!==e.charAt(0))return e;l.resolveRelative++;for(var n=e.split("/"),r=t.split("/"),i=r.slice(0,-1),o=0,s=n.length;o=0;r--)t[r].exports();return n.module.exports},t(),loader={noConflict:function(t){var n,r;for(n in t)t.hasOwnProperty(n)&&c.hasOwnProperty(n)&&(r=t[n],e[r]=e[n],e[n]=c[n])}};var p;p=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var f={},h={},d=0,m=["require","exports","module"];r.prototype.makeDefaultExport=function(){var e=this.module.exports;null===e||"object"!=typeof e&&"function"!=typeof e||void 0!==e.default||Object.isFrozen(e)||(e.default=e)},r.prototype.exports=function(){if("finalized"===this.state||"reifying"===this.state)return this.module.exports;l.exports++,loader.wrapModules&&(this.callback=loader.wrapModules(this.name,this.callback)),this.reify();var e=this.callback.apply(this,this.reified);return this.state="finalized",this.hasExportsAsDep&&void 0===e||(this.module.exports=e),this.makeDefaultExport(),this.module.exports},r.prototype.unsee=function(){this.state="new",this.module={exports:{}}},r.prototype.reify=function(){if("reified"!==this.state){this.state="reifying";try{this.reified=this._reify(),this.state="reified"}finally{"reifying"===this.state&&(this.state="errored")}}},r.prototype._reify=function(){l.reify++;for(var e=this.reified.slice(),t=0;t0)for(n in yr)r=yr[n],i=t[r],m(i)||(e[r]=i);return e}function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),br===!1&&(br=!0,e.updateOffset(this),br=!1)}function y(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function w(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();Nr[n]=Nr[n+"s"]=Nr[t]=e}function L(e){return"string"==typeof e?Nr[e]||Nr[e.toLowerCase()]:void 0}function j(e){var t,n,r={};for(n in e)u(e,n)&&(t=L(n),t&&(r[t]=e[n]));return r}function F(e,t){Rr[e]=t}function U(e){var t=[];for(var n in e)t.push({unit:n,priority:Rr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(t,n){return function(r){return null!=r?(z(this,t,r),e.updateOffset(this,n),this):q(this,t)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function z(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function H(e){return e=L(e),O(this[e])?this[e]():this}function W(e,t){if("object"==typeof e){e=j(e);for(var n=U(e),r=0;r=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function Y(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Ir[e]=i),t&&(Ir[t[0]]=function(){return V(i.apply(this,arguments),t[1],t[2])}),n&&(Ir[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function K(e){var t,n,r=e.match(Pr);for(t=0,n=r.length;t=0&&Dr.test(e);)e=e.replace(Dr,n),Dr.lastIndex=0,r-=1;return e}function J(e,t,n){Xr[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Z(e,t){return u(Xr,e)?Xr[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),o(t)&&(r=function(e,n){n[t]=_(e)}),n=0;n=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function be(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function _e(e,t,n){var r=7+t-n,i=(7+be(e,0,r).getUTCDay()-t)%7;return-i+r-1}function we(e,t,n,r,i){var o,s,a=(7+n-r)%7,u=_e(e,r,i),l=1+7*(t-1)+a+u;return l<=0?(o=e-1,s=me(o)+l):l>me(e)?(o=e+1,s=l-me(e)):(o=e,s=l),{year:o,dayOfYear:s}}function xe(e,t,n){var r,i,o=_e(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?(i=e.year()-1,r=s+Ee(i,t,n)):s>Ee(e.year(),t,n)?(r=s-Ee(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Ee(e,t,n){var r=_e(e,t,n),i=_e(e+1,t,n);return(me(e)-r+i)/7}function Se(e){return xe(e,this._week.dow,this._week.doy).week}function Oe(){return this._week.dow}function Ce(){return this._week.doy}function ke(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ae(e){var t=xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Te(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Re(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:this._weekdays}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function De(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Me(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=c([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(i=ci.call(this._weekdaysParse,s),i!==-1?i:null):"ddd"===t?(i=ci.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=ci.call(this._minWeekdaysParse,s),i!==-1?i:null):"dddd"===t?(i=ci.call(this._weekdaysParse,s),i!==-1?i:(i=ci.call(this._shortWeekdaysParse,s),i!==-1?i:(i=ci.call(this._minWeekdaysParse,s),i!==-1?i:null))):"ddd"===t?(i=ci.call(this._shortWeekdaysParse,s),i!==-1?i:(i=ci.call(this._weekdaysParse,s),i!==-1?i:(i=ci.call(this._minWeekdaysParse,s),i!==-1?i:null))):(i=ci.call(this._minWeekdaysParse,s),i!==-1?i:(i=ci.call(this._weekdaysParse,s),i!==-1?i:(i=ci.call(this._shortWeekdaysParse,s),i!==-1?i:null)))}function Ie(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Me.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=c([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Le(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Te(e,this.localeData()),this.add(e-t,"d")):t}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Fe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ue(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=wi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qe(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ei),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ze(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],l=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(r),a.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(s.sort(e),a.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)a[t]=ee(a[t]),u[t]=ee(u[t]),l[t]=ee(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function He(){return this.hours()%12||12}function We(){return this.hours()||24}function Ve(e,t){Y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ye(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ke(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function $e(e){return e?e.toLowerCase().replace("_","-"):e}function Qe(e){for(var t,n,r,i,o=0;o0;){if(r=Je(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&w(i,n,!0)>=t-1)break;t--}o++}return null}function Je(e){var t=null;if(!Ai[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Si._abbr,require("./locale/"+e),Ze(t)}catch(e){}return Ai[e]}function Ze(e,t){var n;return e&&(n=m(t)?tt(e):Xe(e,t),n&&(Si=n)),Si._abbr}function Xe(e,t){if(null!==t){var n=ki;if(t.abbr=e,null!=Ai[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ai[e]._config;else if(null!=t.parentLocale){if(null==Ai[t.parentLocale])return Ti[t.parentLocale]||(Ti[t.parentLocale]=[]),Ti[t.parentLocale].push({name:e,config:t}),null;n=Ai[t.parentLocale]._config}return Ai[e]=new A(k(n,t)),Ti[e]&&Ti[e].forEach(function(e){Xe(e.name,e.config)}),Ze(e),Ai[e]}return delete Ai[e],null}function et(e,t){if(null!=t){var n,r=ki;null!=Ai[e]&&(r=Ai[e]._config),t=k(r,t),n=new A(t),n.parentLocale=Ai[e],Ai[e]=n,Ze(e)}else null!=Ai[e]&&(null!=Ai[e].parentLocale?Ai[e]=Ai[e].parentLocale:null!=Ai[e]&&delete Ai[e]);return Ai[e]}function tt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Si;if(!n(e)){if(t=Je(e))return t;e=[e]}return Qe(e)}function nt(){return Er(Ai)}function rt(e){var t,n=e._a;return n&&f(e).overflow===-2&&(t=n[ni]<0||n[ni]>11?ni:n[ri]<1||n[ri]>ie(n[ti],n[ni])?ri:n[ii]<0||n[ii]>24||24===n[ii]&&(0!==n[oi]||0!==n[si]||0!==n[ai])?ii:n[oi]<0||n[oi]>59?oi:n[si]<0||n[si]>59?si:n[ai]<0||n[ai]>999?ai:-1,f(e)._overflowDayOfYear&&(tri)&&(t=ri),f(e)._overflowWeeks&&t===-1&&(t=ui),f(e)._overflowWeekday&&t===-1&&(t=li),f(e).overflow=t),e}function it(e){var t,n,r,i,o,s,a=e._i,u=Ni.exec(a)||Ri.exec(a);if(u){for(f(e).iso=!0,t=0,n=Di.length;tme(i)&&(f(e)._overflowDayOfYear=!0),n=be(i,0,e._dayOfYear),e._a[ni]=n.getUTCMonth(),e._a[ri]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ii]&&0===e._a[oi]&&0===e._a[si]&&0===e._a[ai]&&(e._nextDay=!0,e._a[ii]=0),e._d=(e._useUTC?be:ye).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ii]=24)}}function lt(e){var t,n,r,i,o,s,a,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,s=4,n=st(t.GG,e._a[ti],xe(yt(),1,4).year),r=st(t.W,1),i=st(t.E,1),(i<1||i>7)&&(u=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var l=xe(yt(),o,s);n=st(t.gg,e._a[ti],l.year),r=st(t.w,l.week),null!=t.d?(i=t.d,(i<0||i>6)&&(u=!0)):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>Ee(n,o,s)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(a=we(n,r,i,o,s),e._a[ti]=a.year,e._dayOfYear=a.dayOfYear)}function ct(t){if(t._f===e.ISO_8601)return void it(t);t._a=[],f(t).empty=!0;var n,r,i,o,s,a=""+t._i,u=a.length,l=0;for(i=Q(t._f,t._locale).match(Pr)||[],n=0;n0&&f(t).unusedInput.push(s),a=a.slice(a.indexOf(r)+r.length),l+=r.length),Ir[o]?(r?f(t).empty=!1:f(t).unusedTokens.push(o),re(o,r,t)):t._strict&&!r&&f(t).unusedTokens.push(o);f(t).charsLeftOver=u-l,a.length>0&&f(t).unusedInput.push(a),t._a[ii]<=12&&f(t).bigHour===!0&&t._a[ii]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[ii]=pt(t._locale,t._a[ii],t._meridiem),ut(t),rt(t)}function pt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ft(e){var t,n,r,i,o;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Lt(){if(!m(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=mt(e),e._a){var t=e._isUTC?c(e._a):yt(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function jt(){return!!this.isValid()&&!this._isUTC}function Ft(){return!!this.isValid()&&this._isUTC}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Bt(e,t){var n,r,i,s=e,a=null;return Et(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:o(e)?(s={},t?s[t]=e:s.milliseconds=e):(a=Bi.exec(e))?(n="-"===a[1]?-1:1,s={y:0,d:_(a[ri])*n,h:_(a[ii])*n,m:_(a[oi])*n,s:_(a[si])*n,ms:_(St(1e3*a[ai]))*n}):(a=qi.exec(e))?(n="-"===a[1]?-1:1,s={y:qt(a[2],n),M:qt(a[3],n),w:qt(a[4],n),d:qt(a[5],n),h:qt(a[6],n),m:qt(a[7],n),s:qt(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(i=Ht(yt(s.from),yt(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),r=new xt(s),Et(e)&&u(e,"_locale")&&(r._locale=e._locale),r}function qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ht(e,t){var n;return e.isValid()&&t.isValid()?(t=kt(t,e),e.isBefore(t)?n=zt(e,t):(n=zt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Wt(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Bt(n,r),Vt(this,i,e),this}}function Vt(t,n,r,i){var o=n._milliseconds,s=St(n._days),a=St(n._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*r),s&&z(t,"Date",q(t,"Date")+s*r),a&&le(t,q(t,"Month")+a*r),i&&e.updateOffset(t,s||a))}function Yt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gt(t,n){var r=t||yt(),i=kt(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",s=n&&(O(n[o])?n[o].call(this,r):n[o]);return this.format(s||this.localeData().calendar(o,this,yt(r)))}function Kt(){return new v(this)}function $t(e,t){var n=y(e)?e:yt(e);return!(!this.isValid()||!n.isValid())&&(t=L(m(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()o&&(t=o),Pn.call(this,e,t,n,r,i))}function Pn(e,t,n,r,i){var o=we(e,t,n,r,i),s=be(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Dn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Mn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function In(e,t){t[ai]=_(1e3*("0."+e))}function Ln(){return this._isUTC?"UTC":""}function jn(){return this._isUTC?"Coordinated Universal Time":""}function Fn(e){return yt(1e3*e)}function Un(){return yt.apply(null,arguments).parseZone()}function Bn(e){return e}function qn(e,t,n,r){var i=tt(),o=c().set(r,t);return i[n](o,e)}function zn(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return qn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=qn(e,r,n,"month");return i}function Hn(e,t,n,r){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i=tt(),s=e?i._week.dow:0;if(null!=n)return qn(t,(n+s)%7,r,"day");var a,u=[];for(a=0;a<7;a++)u[a]=qn(t,(a+s)%7,r,"day");return u}function Wn(e,t){return zn(e,t,"months")}function Vn(e,t){return zn(e,t,"monthsShort")}function Yn(e,t,n){return Hn(e,t,n,"weekdays")}function Gn(e,t,n){return Hn(e,t,n,"weekdaysShort")}function Kn(e,t,n){return Hn(e,t,n,"weekdaysMin")}function $n(){var e=this._data;return this._milliseconds=Zi(this._milliseconds),this._days=Zi(this._days),this._months=Zi(this._months),e.milliseconds=Zi(e.milliseconds),e.seconds=Zi(e.seconds),e.minutes=Zi(e.minutes),e.hours=Zi(e.hours),e.months=Zi(e.months),e.years=Zi(e.years),this}function Qn(e,t,n,r){var i=Bt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Jn(e,t){return Qn(this,e,t,1)}function Zn(e,t){return Qn(this,e,t,-1)}function Xn(e){return e<0?Math.floor(e):Math.ceil(e)}function er(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Xn(nr(a)+s),s=0,a=0),u.milliseconds=o%1e3,e=b(o/1e3),u.seconds=e%60,t=b(e/60),u.minutes=t%60,n=b(t/60),u.hours=n%24,s+=b(n/24),i=b(tr(s)),a+=i,s-=Xn(nr(i)),r=b(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function tr(e){return 4800*e/146097}function nr(e){return 146097*e/4800}function rr(e){var t,n,r=this._milliseconds;if(e=L(e),"month"===e||"year"===e)return t=this._days+r/864e5,n=this._months+tr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(nr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ir(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12)}function or(e){return function(){return this.as(e)}}function sr(e){return e=L(e),this[e+"s"]()}function ar(e){return function(){return this._data[e]}}function ur(){return b(this.days()/7)}function lr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function cr(e,t,n){var r=Bt(e).abs(),i=mo(r.as("s")),o=mo(r.as("m")),s=mo(r.as("h")),a=mo(r.as("d")),u=mo(r.as("M")),l=mo(r.as("y")),c=i0,c[4]=n,lr.apply(null,c)}function pr(e){return void 0===e?mo:"function"==typeof e&&(mo=e,!0)}function fr(e,t){return void 0!==go[e]&&(void 0===t?go[e]:(go[e]=t,!0))}function hr(e){var t=this.localeData(),n=cr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function dr(){var e,t,n,r=vo(this._milliseconds)/1e3,i=vo(this._days),o=vo(this._months);e=b(r/60),t=b(e/60),r%=60,e%=60,n=b(o/12),o%=12;var s=n,a=o,u=i,l=t,c=e,p=r,f=this.asSeconds();return f?(f<0?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(u?u+"D":"")+(l||c||p?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(p?p+"S":""):"P0D"}var mr,gr;gr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r68?1900:2e3)};var gi=B("FullYear",!0);Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),F("week",5),F("isoWeek",5),J("w",qr),J("ww",qr,jr),J("W",qr),J("WW",qr,jr),ne(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=_(e)});var vi={dow:0,doy:6};Y("d",0,"do","day"),Y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),J("d",qr),J("e",qr),J("E",qr),J("dd",function(e,t){return t.weekdaysMinRegex(e)}),J("ddd",function(e,t){return t.weekdaysShortRegex(e)}),J("dddd",function(e,t){return t.weekdaysRegex(e)}),ne(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:f(n).invalidWeekday=e}),ne(["d","e","E"],function(e,t,n,r){t[r]=_(e)});var yi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_i="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wi=Zr,xi=Zr,Ei=Zr;Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,He),Y("k",["kk",2],0,We),Y("hmm",0,0,function(){return""+He.apply(this)+V(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+He.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+V(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)}),Ve("a",!0),Ve("A",!1),I("hour","h"),F("hour",13),J("a",Ye),J("A",Ye),J("H",qr),J("h",qr),J("HH",qr,jr),J("hh",qr,jr),J("hmm",zr),J("hmmss",Hr),J("Hmm",zr),J("Hmmss",Hr),te(["H","HH"],ii),te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),te(["h","hh"],function(e,t,n){t[ii]=_(e),f(n).bigHour=!0}),te("hmm",function(e,t,n){var r=e.length-2;t[ii]=_(e.substr(0,r)),t[oi]=_(e.substr(r)),f(n).bigHour=!0}),te("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ii]=_(e.substr(0,r)),t[oi]=_(e.substr(r,2)),t[si]=_(e.substr(i)),f(n).bigHour=!0}),te("Hmm",function(e,t,n){var r=e.length-2;t[ii]=_(e.substr(0,r)),t[oi]=_(e.substr(r))}),te("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[ii]=_(e.substr(0,r)),t[oi]=_(e.substr(r,2)),t[si]=_(e.substr(i))});var Si,Oi=/[ap]\.?m?\.?/i,Ci=B("Hours",!0),ki={calendar:Sr,longDateFormat:Or,invalidDate:Cr,ordinal:kr,ordinalParse:Ar,relativeTime:Tr,months:fi,monthsShort:hi,week:vi,weekdays:yi,weekdaysMin:_i,weekdaysShort:bi,meridiemParse:Oi},Ai={},Ti={},Ni=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ri=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pi=/Z|[+-]\d\d(?::?\d\d)?/,Di=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ii=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=E("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){};var Li=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=yt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:d()}),Fi=function(){return Date.now?Date.now():+new Date};Ot("Z",":"),Ot("ZZ",""),J("Z",Qr),J("ZZ",Qr),te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ct(Qr,e)});var Ui=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Bi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Bt.fn=xt.prototype;var zi=Wt(1,"add"),Hi=Wt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Wi=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Cn("gggg","weekYear"),Cn("ggggg","weekYear"),Cn("GGGG","isoWeekYear"),Cn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),J("G",Kr),J("g",Kr),J("GG",qr,jr),J("gg",qr,jr),J("GGGG",Vr,Ur),J("gggg",Vr,Ur),J("GGGGG",Yr,Br),J("ggggg",Yr,Br),ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=_(e)}),ne(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),Y("Q",0,"Qo","quarter"),I("quarter","Q"),F("quarter",7),J("Q",Lr),te("Q",function(e,t){t[ni]=3*(_(e)-1)}),Y("D",["DD",2],"Do","date"),I("date","D"),F("date",9),J("D",qr),J("DD",qr,jr),J("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),te(["D","DD"],ri),te("Do",function(e,t){t[ri]=_(e.match(qr)[0],10)});var Vi=B("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),F("dayOfYear",4),J("DDD",Wr),J("DDDD",Fr),te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=_(e)}),Y("m",["mm",2],0,"minute"),I("minute","m"),F("minute",14),J("m",qr),J("mm",qr,jr),te(["m","mm"],oi);var Yi=B("Minutes",!1);Y("s",["ss",2],0,"second"),I("second","s"),F("second",15),J("s",qr),J("ss",qr,jr),te(["s","ss"],si);var Gi=B("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),F("millisecond",16),J("S",Wr,Lr),J("SS",Wr,jr),J("SSS",Wr,Fr);var Ki;for(Ki="SSSS";Ki.length<=9;Ki+="S")J(Ki,Gr);for(Ki="S";Ki.length<=9;Ki+="S")te(Ki,In);var $i=B("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var Qi=v.prototype;Qi.add=zi,Qi.calendar=Gt,Qi.clone=Kt,Qi.diff=tn,Qi.endOf=mn,Qi.format=an,Qi.from=un,Qi.fromNow=ln,Qi.to=cn,Qi.toNow=pn,Qi.get=H,Qi.invalidAt=Sn,Qi.isAfter=$t,Qi.isBefore=Qt,Qi.isBetween=Jt,Qi.isSame=Zt,Qi.isSameOrAfter=Xt,Qi.isSameOrBefore=en,Qi.isValid=xn,Qi.lang=Wi,Qi.locale=fn,Qi.localeData=hn,Qi.max=ji,Qi.min=Li,Qi.parsingFlags=En,Qi.set=W,Qi.startOf=dn,Qi.subtract=Hi,Qi.toArray=bn,Qi.toObject=_n,Qi.toDate=yn,Qi.toISOString=on,Qi.inspect=sn,Qi.toJSON=wn,Qi.toString=rn,Qi.unix=vn,Qi.valueOf=gn,Qi.creationData=On,Qi.year=gi,Qi.isLeapYear=ve,Qi.weekYear=kn,Qi.isoWeekYear=An,Qi.quarter=Qi.quarters=Dn,Qi.month=ce,Qi.daysInMonth=pe,Qi.week=Qi.weeks=ke,Qi.isoWeek=Qi.isoWeeks=Ae,Qi.weeksInYear=Nn,Qi.isoWeeksInYear=Tn,Qi.date=Vi,Qi.day=Qi.days=Le,Qi.weekday=je,Qi.isoWeekday=Fe,Qi.dayOfYear=Mn,Qi.hour=Qi.hours=Ci,Qi.minute=Qi.minutes=Yi,Qi.second=Qi.seconds=Gi,Qi.millisecond=Qi.milliseconds=$i,Qi.utcOffset=Tt,Qi.utc=Rt,Qi.local=Pt,Qi.parseZone=Dt,Qi.hasAlignedHourOffset=Mt,Qi.isDST=It,Qi.isLocal=jt,Qi.isUtcOffset=Ft,Qi.isUtc=Ut,Qi.isUTC=Ut,Qi.zoneAbbr=Ln,Qi.zoneName=jn,Qi.dates=E("dates accessor is deprecated. Use date instead.",Vi),Qi.months=E("months accessor is deprecated. Use month instead",ce),Qi.years=E("years accessor is deprecated. Use year instead",gi),Qi.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Nt),Qi.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Lt);var Ji=A.prototype;Ji.calendar=T,Ji.longDateFormat=N,Ji.invalidDate=R,Ji.ordinal=P,Ji.preparse=Bn,Ji.postformat=Bn,Ji.relativeTime=D,Ji.pastFuture=M,Ji.set=C,Ji.months=oe,Ji.monthsShort=se,Ji.monthsParse=ue,Ji.monthsRegex=he,Ji.monthsShortRegex=fe,Ji.week=Se,Ji.firstDayOfYear=Ce,Ji.firstDayOfWeek=Oe,Ji.weekdays=Re,Ji.weekdaysMin=De,Ji.weekdaysShort=Pe,Ji.weekdaysParse=Ie,Ji.weekdaysRegex=Ue,Ji.weekdaysShortRegex=Be,Ji.weekdaysMinRegex=qe,Ji.isPM=Ge,Ji.meridiem=Ke,Ze("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===_(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=E("moment.lang is deprecated. Use moment.locale instead.",Ze),e.langData=E("moment.langData is deprecated. Use moment.localeData instead.",tt);var Zi=Math.abs,Xi=or("ms"),eo=or("s"),to=or("m"),no=or("h"),ro=or("d"),io=or("w"),oo=or("M"),so=or("y"),ao=ar("milliseconds"),uo=ar("seconds"),lo=ar("minutes"),co=ar("hours"),po=ar("days"),fo=ar("months"),ho=ar("years"),mo=Math.round,go={s:45,m:45,h:22,d:26,M:11},vo=Math.abs,yo=xt.prototype;return yo.abs=$n,yo.add=Jn,yo.subtract=Zn,yo.as=rr,yo.asMilliseconds=Xi,yo.asSeconds=eo,yo.asMinutes=to,yo.asHours=no,yo.asDays=ro,yo.asWeeks=io,yo.asMonths=oo,yo.asYears=so,yo.valueOf=ir,yo._bubble=er,yo.get=sr,yo.milliseconds=ao,yo.seconds=uo,yo.minutes=lo,yo.hours=co,yo.days=po,yo.weeks=ur,yo.months=fo,yo.years=ho,yo.humanize=hr,yo.toISOString=dr,yo.toString=dr,yo.toJSON=dr,yo.locale=fn,yo.localeData=hn,yo.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",dr),yo.lang=Wi,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),J("x",Kr),J("X",Jr),te("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),te("x",function(e,t,n){n._d=new Date(_(e))}),e.version="2.17.1",t(yt),e.fn=Qi,e.min=_t,e.max=wt,e.now=Fi,e.utc=c,e.unix=Fn,e.months=Wn,e.isDate=s,e.locale=Ze,e.invalid=d,e.duration=Bt,e.isMoment=y,e.weekdays=Yn,e.parseZone=Un,e.localeData=tt,e.isDuration=Et,e.monthsShort=Vn,e.weekdaysMin=Kn,e.defineLocale=Xe,e.updateLocale=et,e.locales=nt,e.weekdaysShort=Gn,e.normalizeUnits=L,e.relativeTimeRounding=pr,e.relativeTimeThreshold=fr,e.calendarFormat=Yt,e.prototype=Qi,e}),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||te;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=de.type(e);return"function"!==n&&!de.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t,n){return de.isFunction(t)?de.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?de.grep(e,function(e){return e===t!==n}):"string"!=typeof t?de.grep(e,function(e){return se.call(t,e)>-1!==n}):Se.test(t)?de.filter(t,e,n):(t=de.filter(t,e),de.grep(e,function(e){return se.call(t,e)>-1!==n&&1===e.nodeType}))}function o(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return de.each(e.match(Ne)||[],function(e,n){t[n]=!0}),t}function a(e){return e}function u(e){throw e}function l(e,t,n){var r;try{e&&de.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&de.isFunction(r=e.then)?r.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}function c(){te.removeEventListener("DOMContentLoaded",c),e.removeEventListener("load",c),de.ready()}function p(){this.expando=de.expando+p.uid++}function f(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:je.test(e)?JSON.parse(e):e)}function h(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Fe,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n=f(n)}catch(e){}Le.set(e,t,n)}else n=void 0;return n}function d(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return de.css(e,t,"")},u=a(),l=n&&n[3]||(de.cssNumber[t]?"":"px"),c=(de.cssNumber[t]||"px"!==l&&+u)&&Be.exec(de.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,de.style(e,t,c+l);while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function m(e){var t,n=e.ownerDocument,r=e.nodeName,i=We[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=de.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),We[r]=i,i)}function g(e,t){for(var n,r,i=[],o=0,s=e.length;o-1)i&&i.push(o);else if(l=de.contains(o.ownerDocument,o),s=v(p.appendChild(o),"script"),l&&y(s),n)for(c=0;o=s[c++];)Ge.test(o.type||"")&&n.push(o);return p}function _(){return!0}function w(){return!1}function x(){try{return te.activeElement}catch(e){}}function E(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)E(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=w;else if(!i)return e;return 1===o&&(s=i,i=function(e){return de().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=de.guid++)),e.each(function(){de.event.add(this,t,i,r,n)})}function S(e,t){return de.nodeName(e,"table")&&de.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e:e}function O(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function C(e){var t=rt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function k(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(Ie.hasData(e)&&(o=Ie.access(e),s=Ie.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;n1&&"string"==typeof d&&!fe.checkClone&&nt.test(d))return e.each(function(n){var o=e.eq(n);m&&(t[0]=d.call(this,n,o.html())),T(o,t,r,i)});if(f&&(o=b(t,e[0].ownerDocument,!1,e,i),s=o.firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=de.map(v(o,"script"),O),u=a.length;p=0&&nE.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[B]=!0,e}function i(e){var t=D.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)E.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function p(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function h(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i-1&&(r[l]=!(s[l]=p))}}else b=v(b===s?b.splice(d,b.length):b),o?o(null,s,b,u):Z.apply(s,b)})}function b(e){for(var t,n,r,i=e.length,o=E.relative[e[0].type],s=o||E.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),l=d(function(e){return ee(t,e)>-1},s,!0),c=[function(e,n,r){var i=!o&&(r||n!==T)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];a1&&m(c),a>1&&h(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),n,a0,o=e.length>0,s=function(r,s,a,u,l){var c,p,f,h=0,d="0",m=r&&[],g=[],y=T,b=r||o&&E.find.TAG("*",l),_=z+=null==y?1:Math.random()||.1,w=b.length;for(l&&(T=s===D||s||l);d!==w&&null!=(c=b[d]);d++){if(o&&c){for(p=0,s||c.ownerDocument===D||(P(c),a=!I);f=e[p++];)if(f(c,s||D,a)){u.push(c);break}l&&(z=_)}i&&((c=!f&&c)&&h--,r&&m.push(c))}if(h+=d,i&&d!==h){for(p=0;f=n[p++];)f(m,g,s,a);if(r){if(h>0)for(;d--;)m[d]||g[d]||(g[d]=Q.call(u));g=v(g)}Z.apply(u,g),l&&!r&&g.length>0&&h+n.length>1&&t.uniqueSort(u)}return l&&(z=_,T=y),m};return i?r(s):s}var w,x,E,S,O,C,k,A,T,N,R,P,D,M,I,L,j,F,U,B="sizzle"+1*new Date,q=e.document,z=0,H=0,W=n(),V=n(),Y=n(),G=function(e,t){return e===t&&(R=!0),0},K={}.hasOwnProperty,$=[],Q=$.pop,J=$.push,Z=$.push,X=$.slice,ee=function(e,t){for(var n=0,r=e.length;n+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),pe=new RegExp(oe),fe=new RegExp("^"+re+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),_e=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,xe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ee=function(){P()},Se=d(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{Z.apply($=X.call(q.childNodes),q.childNodes),$[q.childNodes.length].nodeType}catch(e){Z={apply:$.length?function(e,t){J.apply(e,X.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}x=t.support={},O=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},P=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:q;return r!==D&&9===r.nodeType&&r.documentElement?(D=r,M=D.documentElement,I=!O(D),q!==D&&(n=D.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ee,!1):n.attachEvent&&n.attachEvent("onunload",Ee)),x.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=i(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=ge.test(D.getElementsByClassName),x.getById=i(function(e){return M.appendChild(e).id=B,!D.getElementsByName||!D.getElementsByName(B).length}),x.getById?(E.filter.ID=function(e){var t=e.replace(be,_e);return function(e){return e.getAttribute("id")===t}},E.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&I){var n=t.getElementById(e);return n?[n]:[]}}):(E.filter.ID=function(e){var t=e.replace(be,_e);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},E.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&I){var n,r,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),E.find.TAG=x.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},E.find.CLASS=x.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&I)return t.getElementsByClassName(e)},j=[],L=[],(x.qsa=ge.test(D.querySelectorAll))&&(i(function(e){M.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+B+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+B+"+*").length||L.push(".#.+[+~]")}),i(function(e){e.innerHTML="";var t=D.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&L.push(":enabled",":disabled"),M.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(x.matchesSelector=ge.test(F=M.matches||M.webkitMatchesSelector||M.mozMatchesSelector||M.oMatchesSelector||M.msMatchesSelector))&&i(function(e){x.disconnectedMatch=F.call(e,"*"),F.call(e,"[s!='']:x"),j.push("!=",oe)}),L=L.length&&new RegExp(L.join("|")),j=j.length&&new RegExp(j.join("|")),t=ge.test(M.compareDocumentPosition),U=t||ge.test(M.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return R=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===D||e.ownerDocument===q&&U(q,e)?-1:t===D||t.ownerDocument===q&&U(q,t)?1:N?ee(N,e)-ee(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return R=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===D?-1:t===D?1:i?-1:o?1:N?ee(N,e)-ee(N,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===q?-1:u[r]===q?1:0},D):D},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==D&&P(e),n=n.replace(ce,"='$1']"),x.matchesSelector&&I&&!Y[n+" "]&&(!j||!j.test(n))&&(!L||!L.test(n)))try{var r=F.call(e,n);if(r||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,D,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==D&&P(e),U(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==D&&P(e);var n=E.attrHandle[t.toLowerCase()],r=n&&K.call(E.attrHandle,t.toLowerCase())?n(e,t,!I):void 0;return void 0!==r?r:x.attributes||!I?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(we,xe)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(R=!x.detectDuplicates,N=!x.sortStable&&e.slice(0),e.sort(G),R){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return N=null,e},S=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=S(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=S(t);return n},E=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,_e),e[3]=(e[3]||e[4]||e[5]||"").replace(be,_e),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pe.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,_e).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,h,d,m=o!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!u&&!a,b=!1;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=m="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&y){for(f=g,p=f[B]||(f[B]={}),c=p[f.uniqueID]||(p[f.uniqueID]={}),l=c[e]||[],h=l[0]===z&&l[1],b=h&&l[2],f=h&&g.childNodes[h];f=++h&&f&&f[m]||(b=h=0)||d.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[z,h,b];break}}else if(y&&(f=t,p=f[B]||(f[B]={}),c=p[f.uniqueID]||(p[f.uniqueID]={}),l=c[e]||[],h=l[0]===z&&l[1],b=h),b===!1)for(;(f=++h&&f&&f[m]||(b=h=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&(p=f[B]||(f[B]={}),c=p[f.uniqueID]||(p[f.uniqueID]={}),c[e]=[z,b]),f!==t)););return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,n){var i,o=E.pseudos[e]||E.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[B]?o(n):o.length>1?(i=[e,e,"",n],E.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=ee(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(ae,"$1"));return i[B]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,_e),function(t){return(t.textContent||t.innerText||S(t)).indexOf(e)>-1}}),lang:r(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,_e).toLowerCase(),function(t){var n;do if(n=I?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===M},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!E.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[n<0?n+t:n]}),even:c(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"ID"===(s=o[0]).type&&9===t.nodeType&&I&&E.relative[o[1].type]){if(t=(E.find.ID(s.matches[0].replace(be,_e),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(s=o[i],!E.relative[a=s.type]);)if((u=E.find[a])&&(r=u(s.matches[0].replace(be,_e),ye.test(o[0].type)&&p(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&h(o),!e)return Z.apply(n,r),n;break}}return(l||k(e,c))(r,t,!I,n,!t||ye.test(e)&&p(t.parentNode)||t),n},x.sortStable=B.split("").sort(G).join("")===B,x.detectDuplicates=!!R,P(),x.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement("fieldset"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);de.find=be,de.expr=be.selectors,de.expr[":"]=de.expr.pseudos,de.uniqueSort=de.unique=be.uniqueSort,de.text=be.getText,de.isXMLDoc=be.isXML,de.contains=be.contains,de.escapeSelector=be.escape;var _e=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&de(e).is(n))break;r.push(e)}return r},we=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},xe=de.expr.match.needsContext,Ee=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Se=/^.[^:#\[\.,]*$/;de.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?de.find.matchesSelector(r,e)?[r]:[]:de.find.matches(e,de.grep(t,function(e){return 1===e.nodeType}))},de.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(de(e).filter(function(){for(t=0;t1?de.uniqueSort(n):n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&xe.test(e)?de(e):e||[],!1).length}});var Oe,Ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ke=de.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Oe,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ce.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof de?t[0]:t,de.merge(this,de.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:te,!0)),Ee.test(r[1])&&de.isPlainObject(t))for(r in t)de.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=te.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):de.isFunction(e)?void 0!==n.ready?n.ready(e):e(de):de.makeArray(e,this)};ke.prototype=de.fn,Oe=de(te);var Ae=/^(?:parents|prev(?:Until|All))/,Te={children:!0,contents:!0,next:!0,prev:!0};de.fn.extend({has:function(e){var t=de(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&de.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?de.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(de(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(de.uniqueSort(de.merge(this.get(),de(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),de.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return _e(e,"parentNode")},parentsUntil:function(e,t,n){return _e(e,"parentNode",n)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return _e(e,"nextSibling")},prevAll:function(e){return _e(e,"previousSibling")},nextUntil:function(e,t,n){return _e(e,"nextSibling",n)},prevUntil:function(e,t,n){return _e(e,"previousSibling",n)},siblings:function(e){return we((e.parentNode||{}).firstChild,e)},children:function(e){return we(e.firstChild)},contents:function(e){return e.contentDocument||de.merge([],e.childNodes)}},function(e,t){de.fn[e]=function(n,r){var i=de.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=de.filter(r,i)),this.length>1&&(Te[e]||de.uniqueSort(i),Ae.test(e)&&i.reverse()),this.pushStack(i)}});var Ne=/[^\x20\t\r\n\f]+/g;de.Callbacks=function(e){e="string"==typeof e?s(e):de.extend({},e);var t,n,r,i,o=[],a=[],u=-1,l=function(){for(i=e.once,r=t=!0;a.length;u=-1)for(n=a.shift();++u-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?de.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},de.extend({Deferred:function(t){var n=[["notify","progress",de.Callbacks("memory"),de.Callbacks("memory"),2],["resolve","done",de.Callbacks("once memory"),de.Callbacks("once memory"),0,"resolved"],["reject","fail",de.Callbacks("once memory"),de.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return de.Deferred(function(t){de.each(n,function(n,r){var i=de.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&de.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var l=this,c=arguments,p=function(){var e,p;if(!(t=s&&(r!==u&&(l=void 0,c=[e]),n.rejectWith(l,c))}};t?f():(de.Deferred.getStackHook&&(f.stackTrace=de.Deferred.getStackHook()),e.setTimeout(f))}}var s=0;return de.Deferred(function(e){n[0][3].add(o(0,e,de.isFunction(i)?i:a,e.notifyWith)),n[1][3].add(o(0,e,de.isFunction(t)?t:a)),n[2][3].add(o(0,e,de.isFunction(r)?r:u))}).promise()},promise:function(e){return null!=e?de.extend(e,i):i}},o={};return de.each(n,function(e,t){var s=t[2],a=t[5];i[t[1]]=s.add,a&&s.add(function(){r=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=re.call(arguments),o=de.Deferred(),s=function(e){return function(n){
-r[e]=this,i[e]=arguments.length>1?re.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(s(n)).resolve,o.reject),"pending"===o.state()||de.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],s(n),o.reject);return o.promise()}});var Re=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;de.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Re.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},de.readyException=function(t){e.setTimeout(function(){throw t})};var Pe=de.Deferred();de.fn.ready=function(e){return Pe.then(e).catch(function(e){de.readyException(e)}),this},de.extend({isReady:!1,readyWait:1,holdReady:function(e){e?de.readyWait++:de.ready(!0)},ready:function(e){(e===!0?--de.readyWait:de.isReady)||(de.isReady=!0,e!==!0&&--de.readyWait>0||Pe.resolveWith(te,[de]))}}),de.ready.then=Pe.then,"complete"===te.readyState||"loading"!==te.readyState&&!te.documentElement.doScroll?e.setTimeout(de.ready):(te.addEventListener("DOMContentLoaded",c),e.addEventListener("load",c));var De=function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===de.type(n)){i=!0;for(a in n)De(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,de.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(de(e),n)})),t))for(;a1,null,!0)},removeData:function(e){return this.each(function(){Le.remove(this,e)})}}),de.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Ie.get(e,t),n&&(!r||de.isArray(n)?r=Ie.access(e,t,de.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=de.queue(e,t),r=n.length,i=n.shift(),o=de._queueHooks(e,t),s=function(){de.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ie.get(e,n)||Ie.access(e,n,{empty:de.Callbacks("once memory").add(function(){Ie.remove(e,[t+"queue",n])})})}}),de.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]+)/i,Ge=/^$|\/(?:java|ecma)script/i,Ke={option:[1,""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};Ke.optgroup=Ke.option,Ke.tbody=Ke.tfoot=Ke.colgroup=Ke.caption=Ke.thead,Ke.th=Ke.td;var $e=/<|?\w+;/;!function(){var e=te.createDocumentFragment(),t=e.appendChild(te.createElement("div")),n=te.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),fe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",fe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Qe=te.documentElement,Je=/^key/,Ze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xe=/^([^.]*)(?:\.(.+)|)/;de.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,l,c,p,f,h,d,m,g=Ie.get(e);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&de.find.matchesSelector(Qe,i),n.guid||(n.guid=de.guid++),(u=g.events)||(u=g.events={}),(s=g.handle)||(s=g.handle=function(t){return"undefined"!=typeof de&&de.event.triggered!==t.type?de.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ne)||[""],l=t.length;l--;)a=Xe.exec(t[l])||[],h=m=a[1],d=(a[2]||"").split(".").sort(),h&&(p=de.event.special[h]||{},h=(i?p.delegateType:p.bindType)||h,p=de.event.special[h]||{},c=de.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&de.expr.match.needsContext.test(i),namespace:d.join(".")},o),(f=u[h])||(f=u[h]=[],f.delegateCount=0,p.setup&&p.setup.call(e,r,d,s)!==!1||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),de.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,l,c,p,f,h,d,m,g=Ie.hasData(e)&&Ie.get(e);if(g&&(u=g.events)){for(t=(t||"").match(Ne)||[""],l=t.length;l--;)if(a=Xe.exec(t[l])||[],h=m=a[1],d=(a[2]||"").split(".").sort(),h){for(p=de.event.special[h]||{},h=(r?p.delegateType:p.bindType)||h,f=u[h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)c=f[o],!i&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&p.teardown.call(e,d,g.handle)!==!1||de.removeEvent(e,h,g.handle),delete u[h])}else for(h in u)de.event.remove(e,h+t[l],n,r,!0);de.isEmptyObject(u)&&Ie.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=de.event.fix(e),u=new Array(arguments.length),l=(Ie.get(this,"events")||{})[a.type]||[],c=de.event.special[a.type]||{};for(u[0]=a,t=1;t=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||l.disabled!==!0)){for(o=[],s={},n=0;n-1:de.find(i,this,null,[l]).length),s[i]&&o.push(r);o.length&&a.push({elem:l,handlers:o})}return l=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,tt=/