main.js 201 KB

12
  1. !function l(a,o,r){function i(e,n){if(!o[e]){if(!a[e]){var t="function"==typeof require&&require;if(!n&&t)return t(e,!0);if(s)return s(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}t=o[e]={exports:{}},a[e][0].call(t.exports,function(n){return i(a[e][1][n]||n)},t,t.exports,l,a,o,r)}return o[e].exports}for(var s="function"==typeof require&&require,n=0;n<r.length;n++)i(r[n]);return i}({1:[function(n,e,t){n("../../js/transition.js"),n("../../js/alert.js"),n("../../js/button.js"),n("../../js/carousel.js"),n("../../js/collapse.js"),n("../../js/dropdown.js"),n("../../js/modal.js"),n("../../js/tooltip.js"),n("../../js/popover.js"),n("../../js/scrollspy.js"),n("../../js/tab.js"),n("../../js/affix.js")},{"../../js/affix.js":2,"../../js/alert.js":3,"../../js/button.js":4,"../../js/carousel.js":5,"../../js/collapse.js":6,"../../js/dropdown.js":7,"../../js/modal.js":8,"../../js/popover.js":9,"../../js/scrollspy.js":10,"../../js/tab.js":11,"../../js/tooltip.js":12,"../../js/transition.js":13}],2:[function(n,e,t){!function(r){"use strict";var i=function(n,e){this.options=r.extend({},i.DEFAULTS,e);e=this.options.target===i.DEFAULTS.target?r(this.options.target):r(document).find(this.options.target);this.$target=e.on("scroll.bs.affix.data-api",r.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",r.proxy(this.checkPositionWithEventLoop,this)),this.$element=r(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function t(t){return this.each(function(){var n=r(this),e=n.data("bs.affix");e||n.data("bs.affix",e=new i(this,"object"==typeof t&&t)),"string"==typeof t&&e[t]()})}i.VERSION="3.4.1",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(n,e,t,l){var a=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=t&&"top"==this.affixed)return a<t&&"top";if("bottom"==this.affixed)return null!=t?!(a+this.unpin<=o.top)&&"bottom":!(a+r<=n-l)&&"bottom";var i=null==this.affixed,o=i?a:o.top;return null!=t&&a<=t?"top":null!=l&&n-l<=o+(i?r:e)&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var n=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-n},i.prototype.checkPositionWithEventLoop=function(){setTimeout(r.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),e=this.options.offset,t=e.top,l=e.bottom,a=Math.max(r(document).height(),r(document.body).height());"object"!=typeof e&&(l=t=e),"function"==typeof t&&(t=e.top(this.$element)),"function"==typeof l&&(l=e.bottom(this.$element));var o=this.getState(a,n,t,l);if(this.affixed!=o){null!=this.unpin&&this.$element.css("top","");e="affix"+(o?"-"+o:""),t=r.Event(e+".bs.affix");if(this.$element.trigger(t),t.isDefaultPrevented())return;this.affixed=o,this.unpin="bottom"==o?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==o&&this.$element.offset({top:a-n-l})}};var n=r.fn.affix;r.fn.affix=t,r.fn.affix.Constructor=i,r.fn.affix.noConflict=function(){return r.fn.affix=n,this},r(window).on("load",function(){r('[data-spy="affix"]').each(function(){var n=r(this),e=n.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),t.call(n,e)})})}(jQuery)},{}],3:[function(n,e,t){!function(o){"use strict";function r(n){o(n).on("click",e,this.close)}var e='[data-dismiss="alert"]';r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.close=function(n){var e=o(this),t=e.attr("data-target");t="#"===(t=t||(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]*$)/,""))?[]:t;var l=o(document).find(t);function a(){l.detach().trigger("closed.bs.alert").remove()}n&&n.preventDefault(),(l=!l.length?e.closest(".alert"):l).trigger(n=o.Event("close.bs.alert")),n.isDefaultPrevented()||(l.removeClass("in"),o.support.transition&&l.hasClass("fade")?l.one("bsTransitionEnd",a).emulateTransitionEnd(r.TRANSITION_DURATION):a())};var n=o.fn.alert;o.fn.alert=function(t){return this.each(function(){var n=o(this),e=n.data("bs.alert");e||n.data("bs.alert",e=new r(this)),"string"==typeof t&&e[t].call(n)})},o.fn.alert.Constructor=r,o.fn.alert.noConflict=function(){return o.fn.alert=n,this},o(document).on("click.bs.alert.data-api",e,r.prototype.close)}(jQuery)},{}],4:[function(n,e,t){!function(o){"use strict";var l=function(n,e){this.$element=o(n),this.options=o.extend({},l.DEFAULTS,e),this.isLoading=!1};function t(t){return this.each(function(){var n=o(this),e=n.data("bs.button");e||n.data("bs.button",e=new l(this,"object"==typeof t&&t)),"toggle"==t?e.toggle():t&&e.setState(t)})}l.VERSION="3.4.1",l.DEFAULTS={loadingText:"loading..."},l.prototype.setState=function(n){var e="disabled",t=this.$element,l=t.is("input")?"val":"html",a=t.data();n+="Text",null==a.resetText&&t.data("resetText",t[l]()),setTimeout(o.proxy(function(){t[l]((null==a[n]?this.options:a)[n]),"loadingText"==n?(this.isLoading=!0,t.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,t.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},l.prototype.toggle=function(){var n,e=!0,t=this.$element.closest('[data-toggle="buttons"]');t.length?("radio"==(n=this.$element.find("input")).prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var n=o.fn.button;o.fn.button=t,o.fn.button.Constructor=l,o.fn.button.noConflict=function(){return o.fn.button=n,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var e=o(n.target).closest(".btn");t.call(e,"toggle"),o(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),(e.is("input,button")?e:e.find("input:visible,button:visible").first()).trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(n){o(n.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(n.type))})}(jQuery)},{}],5:[function(n,e,t){!function(c){"use strict";function u(n,e){this.$element=c(n),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",c.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",c.proxy(this.pause,this)).on("mouseleave.bs.carousel",c.proxy(this.cycle,this))}function a(a){return this.each(function(){var n=c(this),e=n.data("bs.carousel"),t=c.extend({},u.DEFAULTS,n.data(),"object"==typeof a&&a),l="string"==typeof a?a:t.slide;e||n.data("bs.carousel",e=new u(this,t)),"number"==typeof a?e.to(a):l?e[l]():t.interval&&e.pause().cycle()})}u.VERSION="3.4.1",u.TRANSITION_DURATION=600,u.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},u.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}},u.prototype.cycle=function(n){return n||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval)),this},u.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)},u.prototype.getItemForDirection=function(n,e){var t=this.getItemIndex(e);if(("prev"==n&&0===t||"next"==n&&t==this.$items.length-1)&&!this.options.wrap)return e;n=(t+("prev"==n?-1:1))%this.$items.length;return this.$items.eq(n)},u.prototype.to=function(n){var e=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1||n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(n)}):t==n?this.pause().cycle():this.slide(t<n?"next":"prev",this.$items.eq(n))},u.prototype.pause=function(n){return n||(this.paused=!0),this.$element.find(".next, .prev").length&&c.support.transition&&(this.$element.trigger(c.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},u.prototype.next=function(){if(!this.sliding)return this.slide("next")},u.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},u.prototype.slide=function(n,e){var t=this.$element.find(".item.active"),l=e||this.getItemForDirection(n,t),a=this.interval,o="next"==n?"left":"right",r=this;if(l.hasClass("active"))return this.sliding=!1;var i=l[0],e=c.Event("slide.bs.carousel",{relatedTarget:i,direction:o});if(this.$element.trigger(e),!e.isDefaultPrevented()){this.sliding=!0,a&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(e=c(this.$indicators.children()[this.getItemIndex(l)]))&&e.addClass("active"));var s=c.Event("slid.bs.carousel",{relatedTarget:i,direction:o});return c.support.transition&&this.$element.hasClass("slide")?(l.addClass(n),"object"==typeof l&&l.length&&l[0].offsetWidth,t.addClass(o),l.addClass(o),t.one("bsTransitionEnd",function(){l.removeClass([n,o].join(" ")).addClass("active"),t.removeClass(["active",o].join(" ")),r.sliding=!1,setTimeout(function(){r.$element.trigger(s)},0)}).emulateTransitionEnd(u.TRANSITION_DURATION)):(t.removeClass("active"),l.addClass("active"),this.sliding=!1,this.$element.trigger(s)),a&&this.cycle(),this}};var n=c.fn.carousel;c.fn.carousel=a,c.fn.carousel.Constructor=u,c.fn.carousel.noConflict=function(){return c.fn.carousel=n,this};function e(n){var e=c(this),t=(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,""),l=e.attr("data-target")||t;(t=c(document).find(l)).hasClass("carousel")&&(l=c.extend({},t.data(),e.data()),(e=e.attr("data-slide-to"))&&(l.interval=!1),a.call(t,l),e&&t.data("bs.carousel").to(e),n.preventDefault())}c(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var n=c(this);a.call(n,n.data())})})}(jQuery)},{}],6:[function(n,e,t){!function(a){"use strict";var o=function(n,e){this.$element=a(n),this.options=a.extend({},o.DEFAULTS,e),this.$trigger=a('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function t(n){var e=n.attr("data-target")||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(e)}function r(l){return this.each(function(){var n=a(this),e=n.data("bs.collapse"),t=a.extend({},o.DEFAULTS,n.data(),"object"==typeof l&&l);!e&&t.toggle&&/show|hide/.test(l)&&(t.toggle=!1),e||n.data("bs.collapse",e=new o(this,t)),"string"==typeof l&&e[l]()})}o.VERSION="3.4.1",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(n&&n.length&&(l=n.data("bs.collapse"))&&l.transitioning)){var e=a.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){n&&n.length&&(r.call(n,"hide"),l||n.data("bs.collapse",null));var t=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[t](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var l=function(){this.$element.removeClass("collapsing").addClass("collapse in")[t](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return l.call(this);n=a.camelCase(["scroll",t].join("-"));this.$element.one("bsTransitionEnd",a.proxy(l,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[t](this.$element[0][n])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=a.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return n.call(this);this.$element[e](0).one("bsTransitionEnd",a.proxy(n,this)).emulateTransitionEnd(o.TRANSITION_DURATION)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(n,e){e=a(e);this.addAriaAndCollapsedClass(t(e),e)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(n,e){var t=n.hasClass("in");n.attr("aria-expanded",t),e.toggleClass("collapsed",!t).attr("aria-expanded",t)};var n=a.fn.collapse;a.fn.collapse=r,a.fn.collapse.Constructor=o,a.fn.collapse.noConflict=function(){return a.fn.collapse=n,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var e=a(this);e.attr("data-target")||n.preventDefault();n=t(e),e=n.data("bs.collapse")?"toggle":e.data();r.call(n,e)})}(jQuery)},{}],7:[function(n,e,t){!function(a){"use strict";function l(n){a(n).on("click.bs.dropdown",this.toggle)}var o='[data-toggle="dropdown"]';function r(n){var e=n.attr("data-target"),e="#"!==(e=e||(e=n.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))?a(document).find(e):null;return e&&e.length?e:n.parent()}function i(l){l&&3===l.which||(a(".dropdown-backdrop").remove(),a(o).each(function(){var n=a(this),e=r(n),t={relatedTarget:this};e.hasClass("open")&&(l&&"click"==l.type&&/input|textarea/i.test(l.target.tagName)&&a.contains(e[0],l.target)||(e.trigger(l=a.Event("hide.bs.dropdown",t)),l.isDefaultPrevented()||(n.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",t)))))}))}l.VERSION="3.4.1",l.prototype.toggle=function(n){var e=a(this);if(!e.is(".disabled, :disabled")){var t=r(e),l=t.hasClass("open");if(i(),!l){"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",i);l={relatedTarget:this};if(t.trigger(n=a.Event("show.bs.dropdown",l)),n.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),t.toggleClass("open").trigger(a.Event("shown.bs.dropdown",l))}return!1}},l.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var e=a(this);if(n.preventDefault(),n.stopPropagation(),!e.is(".disabled, :disabled")){var t=r(e),l=t.hasClass("open");if(!l&&27!=n.which||l&&27==n.which)return 27==n.which&&t.find(o).trigger("focus"),e.trigger("click");e=t.find(".dropdown-menu li:not(.disabled):visible a");e.length&&(t=e.index(n.target),38==n.which&&0<t&&t--,40==n.which&&t<e.length-1&&t++,e.eq(t=!~t?0:t).trigger("focus"))}}};var n=a.fn.dropdown;a.fn.dropdown=function(t){return this.each(function(){var n=a(this),e=n.data("bs.dropdown");e||n.data("bs.dropdown",e=new l(this)),"string"==typeof t&&e[t].call(n)})},a.fn.dropdown.Constructor=l,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=n,this},a(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",o,l.prototype.toggle).on("keydown.bs.dropdown.data-api",o,l.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",l.prototype.keydown)}(jQuery)},{}],8:[function(n,e,t){!function(o){"use strict";function r(n,e){this.options=e,this.$body=o(document.body),this.$element=o(n),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function i(l,a){return this.each(function(){var n=o(this),e=n.data("bs.modal"),t=o.extend({},r.DEFAULTS,n.data(),"object"==typeof l&&l);e||n.data("bs.modal",e=new r(this,t)),"string"==typeof l?e[l](a):t.show&&e.show(a)})}r.VERSION="3.4.1",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)},r.prototype.show=function(t){var l=this,n=o.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){l.$element.one("mouseup.dismiss.bs.modal",function(n){o(n.target).is(l.$element)&&(l.ignoreBackdropClick=!0)})}),this.backdrop(function(){var n=o.support.transition&&l.$element.hasClass("fade");l.$element.parent().length||l.$element.appendTo(l.$body),l.$element.show().scrollTop(0),l.adjustDialog(),n&&l.$element[0].offsetWidth,l.$element.addClass("in"),l.enforceFocus();var e=o.Event("shown.bs.modal",{relatedTarget:t});n?l.$dialog.one("bsTransitionEnd",function(){l.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(r.TRANSITION_DURATION):l.$element.trigger("focus").trigger(e)}))},r.prototype.hide=function(n){n&&n.preventDefault(),n=o.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(n){document===n.target||this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",o.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var n=this;this.$element.hide(),this.backdrop(function(){n.$body.removeClass("modal-open"),n.resetAdjustments(),n.resetScrollbar(),n.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(n){var e,t=this,l=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=o.support.transition&&l,this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+l).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(n){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),n&&(e?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):n())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e=function(){t.removeBackdrop(),n&&n()},o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):e()):n&&n()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var n,e=window.innerWidth;e||(e=(n=document.documentElement.getBoundingClientRect()).right-Math.abs(n.left)),this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var a=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",n+a),o(this.fixedContent).each(function(n,e){var t=e.style.paddingRight,l=o(e).css("padding-right");o(e).data("padding-right",t).css("padding-right",parseFloat(l)+a+"px")}))},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),o(this.fixedContent).each(function(n,e){var t=o(e).data("padding-right");o(e).removeData("padding-right"),e.style.paddingRight=t||""})},r.prototype.measureScrollbar=function(){var n=document.createElement("div");n.className="modal-scrollbar-measure",this.$body.append(n);var e=n.offsetWidth-n.clientWidth;return this.$body[0].removeChild(n),e};var n=o.fn.modal;o.fn.modal=i,o.fn.modal.Constructor=r,o.fn.modal.noConflict=function(){return o.fn.modal=n,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var e=o(this),t=e.attr("href"),l=e.attr("data-target")||t&&t.replace(/.*(?=#[^\s]+$)/,""),a=o(document).find(l),t=a.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(t)&&t},a.data(),e.data());e.is("a")&&n.preventDefault(),a.one("show.bs.modal",function(n){n.isDefaultPrevented()||a.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),i.call(a,t,this)})}(jQuery)},{}],9:[function(n,e,t){!function(a){"use strict";function o(n,e){this.init("popover",n,e)}if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.4.1",o.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((o.prototype=a.extend({},a.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var n,e=this.tip(),t=this.getTitle(),l=this.getContent();this.options.html?(n=typeof l,this.options.sanitize&&(t=this.sanitizeHtml(t),"string"==n&&(l=this.sanitizeHtml(l))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"==n?"html":"append"](l)):(e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(l)),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var n=this.$element,e=this.options;return n.attr("data-content")||("function"==typeof e.content?e.content.call(n[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=a.fn.popover;a.fn.popover=function(l){return this.each(function(){var n=a(this),e=n.data("bs.popover"),t="object"==typeof l&&l;!e&&/destroy|hide/.test(l)||(e||n.data("bs.popover",e=new o(this,t)),"string"==typeof l&&e[l]())})},a.fn.popover.Constructor=o,a.fn.popover.noConflict=function(){return a.fn.popover=n,this}}(jQuery)},{}],10:[function(n,e,t){!function(a){"use strict";function l(n,e){this.$body=a(document.body),this.$scrollElement=a(n).is(document.body)?a(window):a(n),this.options=a.extend({},l.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function e(t){return this.each(function(){var n=a(this),e=n.data("bs.scrollspy");e||n.data("bs.scrollspy",e=new l(this,"object"==typeof t&&t)),"string"==typeof t&&e[t]()})}l.VERSION="3.4.1",l.DEFAULTS={offset:10},l.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},l.prototype.refresh=function(){var n=this,t="offset",l=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(t="position",l=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var n=a(this),e=n.data("target")||n.attr("href"),n=/^#./.test(e)&&a(e);return n&&n.length&&n.is(":visible")?[[n[t]().top+l,e]]:null}).sort(function(n,e){return n[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},l.prototype.process=function(){var n,e=this.$scrollElement.scrollTop()+this.options.offset,t=this.getScrollHeight(),l=this.options.offset+t-this.$scrollElement.height(),a=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=t&&this.refresh(),l<=e)return r!=(n=o[o.length-1])&&this.activate(n);if(r&&e<a[0])return this.activeTarget=null,this.clear();for(n=a.length;n--;)r!=o[n]&&e>=a[n]&&(void 0===a[n+1]||e<a[n+1])&&this.activate(o[n])},l.prototype.activate=function(n){this.activeTarget=n,this.clear();n=this.selector+'[data-target="'+n+'"],'+this.selector+'[href="'+n+'"]',n=a(n).parents("li").addClass("active");(n=n.parent(".dropdown-menu").length?n.closest("li.dropdown").addClass("active"):n).trigger("activate.bs.scrollspy")},l.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=a.fn.scrollspy;a.fn.scrollspy=e,a.fn.scrollspy.Constructor=l,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=n,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var n=a(this);e.call(n,n.data())})})}(jQuery)},{}],11:[function(n,e,t){!function(r){"use strict";function i(n){this.element=r(n)}function e(t){return this.each(function(){var n=r(this),e=n.data("bs.tab");e||n.data("bs.tab",e=new i(this)),"string"==typeof t&&e[t]()})}i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.show=function(){var n,e,t,l=this.element,a=l.closest("ul:not(.dropdown-menu)"),o=(o=l.data("target"))||(o=l.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"");l.parent("li").hasClass("active")||(n=a.find(".active:last a"),e=r.Event("hide.bs.tab",{relatedTarget:l[0]}),t=r.Event("show.bs.tab",{relatedTarget:n[0]}),n.trigger(e),l.trigger(t),t.isDefaultPrevented()||e.isDefaultPrevented()||(o=r(document).find(o),this.activate(l.closest("li"),a),this.activate(o,o.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:l[0]}),l.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})))},i.prototype.activate=function(n,e,t){var l=e.find("> .active"),a=t&&r.support.transition&&(l.length&&l.hasClass("fade")||!!e.find("> .fade").length);function o(){l.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),t&&t()}l.length&&a?l.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),l.removeClass("in")};var n=r.fn.tab;r.fn.tab=e,r.fn.tab.Constructor=i,r.fn.tab.noConflict=function(){return r.fn.tab=n,this};function t(n){n.preventDefault(),e.call(r(this),"show")}r(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)}(jQuery)},{}],12:[function(n,e,t){!function(d){"use strict";var l=["sanitize","whiteList","sanitizeFn"],m=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],n={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},f=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,g=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function a(n,e,t){if(0===n.length)return n;if(t&&"function"==typeof t)return t(n);if(!document.implementation||!document.implementation.createHTMLDocument)return n;t=document.implementation.createHTMLDocument("sanitization");t.body.innerHTML=n;for(var l=d.map(e,function(n,e){return e}),a=d(t.body).find("*"),o=0,r=a.length;o<r;o++){var i=a[o],s=i.nodeName.toLowerCase();if(-1!==d.inArray(s,l))for(var c=d.map(i.attributes,function(n){return n}),u=[].concat(e["*"]||[],e[s]||[]),h=0,p=c.length;h<p;h++)!function(n,e){var t=n.nodeName.toLowerCase();if(-1!==d.inArray(t,e))return-1===d.inArray(t,m)||Boolean(n.nodeValue.match(f)||n.nodeValue.match(g));for(var l=d(e).filter(function(n,e){return e instanceof RegExp}),a=0,o=l.length;a<o;a++)if(t.match(l[a]))return 1}(c[h],u)&&i.removeAttribute(c[h].nodeName);else i.parentNode.removeChild(i)}return t.body.innerHTML}function s(n,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",n,e)}s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:n},s.prototype.init=function(n,e,t){if(this.enabled=!0,this.type=n,this.$element=d(e),this.options=this.getOptions(t),this.$viewport=this.options.viewport&&d(document).find(d.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var l=this.options.trigger.split(" "),a=l.length;a--;){var o,r=l[a];"click"==r?this.$element.on("click."+this.type,this.options.selector,d.proxy(this.toggle,this)):"manual"!=r&&(o="hover"==r?"mouseleave":"focusout",this.$element.on(("hover"==r?"mouseenter":"focusin")+"."+this.type,this.options.selector,d.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,d.proxy(this.leave,this)))}this.options.selector?this._options=d.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.getOptions=function(n){var e,t=this.$element.data();for(e in t)t.hasOwnProperty(e)&&-1!==d.inArray(e,l)&&delete t[e];return(n=d.extend({},this.getDefaults(),t,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=a(n.template,n.whiteList,n.sanitizeFn)),n},s.prototype.getDelegateOptions=function(){var t={},l=this.getDefaults();return this._options&&d.each(this._options,function(n,e){l[n]!=e&&(t[n]=e)}),t},s.prototype.enter=function(n){var e=n instanceof this.constructor?n:d(n.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(n.currentTarget,this.getDelegateOptions()),d(n.currentTarget).data("bs."+this.type,e)),n instanceof d.Event&&(e.inState["focusin"==n.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},s.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1},s.prototype.leave=function(n){var e=n instanceof this.constructor?n:d(n.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(n.currentTarget,this.getDelegateOptions()),d(n.currentTarget).data("bs."+this.type,e)),n instanceof d.Event&&(e.inState["focusout"==n.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},s.prototype.show=function(){var e,n,t,l,a,o,r,i=d.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(i),t=d.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!i.isDefaultPrevented()&&t&&(n=(e=this).tip(),o=this.getUID(this.type),this.setContent(),n.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&n.addClass("fade"),r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,(a=(l=/\s?auto?\s?/i).test(r))&&(r=r.replace(l,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?n.appendTo(d(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),i=this.getPosition(),t=n[0].offsetWidth,o=n[0].offsetHeight,a&&(l=r,a=this.getPosition(this.$viewport),r="bottom"==r&&i.bottom+o>a.bottom?"top":"top"==r&&i.top-o<a.top?"bottom":"right"==r&&i.right+t>a.width?"left":"left"==r&&i.left-t<a.left?"right":r,n.removeClass(l).addClass(r)),o=this.getCalculatedOffset(r,i,t,o),this.applyPlacement(o,r),r=function(){var n=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==n&&e.leave(e)},d.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",r).emulateTransitionEnd(s.TRANSITION_DURATION):r()))},s.prototype.applyPlacement=function(n,e){var t=this.tip(),l=t[0].offsetWidth,a=t[0].offsetHeight,o=parseInt(t.css("margin-top"),10),r=parseInt(t.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(r)&&(r=0),n.top+=o,n.left+=r,d.offset.setOffset(t[0],d.extend({using:function(n){t.css({top:Math.round(n.top),left:Math.round(n.left)})}},n),0),t.addClass("in");var i=t[0].offsetWidth,o=t[0].offsetHeight;"top"==e&&o!=a&&(n.top=n.top+a-o);r=this.getViewportAdjustedDelta(e,n,i,o);r.left?n.left+=r.left:n.top+=r.top;e=/top|bottom/.test(e),a=e?2*r.left-l+i:2*r.top-a+o,o=e?"offsetWidth":"offsetHeight";t.offset(n),this.replaceArrow(a,t[0][o],e)},s.prototype.replaceArrow=function(n,e,t){this.arrow().css(t?"left":"top",50*(1-n/e)+"%").css(t?"top":"left","")},s.prototype.setContent=function(){var n=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=a(e,this.options.whiteList,this.options.sanitizeFn)),n.find(".tooltip-inner").html(e)):n.find(".tooltip-inner").text(e),n.removeClass("fade in top bottom left right")},s.prototype.hide=function(n){var e=this,t=d(this.$tip),l=d.Event("hide.bs."+this.type);function a(){"in"!=e.hoverState&&t.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),n&&n()}if(this.$element.trigger(l),!l.isDefaultPrevented())return t.removeClass("in"),d.support.transition&&t.hasClass("fade")?t.one("bsTransitionEnd",a).emulateTransitionEnd(s.TRANSITION_DURATION):a(),this.hoverState=null,this},s.prototype.fixTitle=function(){var n=this.$element;!n.attr("title")&&"string"==typeof n.attr("data-original-title")||n.attr("data-original-title",n.attr("title")||"").attr("title","")},s.prototype.hasContent=function(){return this.getTitle()},s.prototype.getPosition=function(n){var e=(n=n||this.$element)[0],t="BODY"==e.tagName,l=e.getBoundingClientRect();null==l.width&&(l=d.extend({},l,{width:l.right-l.left,height:l.bottom-l.top}));e=window.SVGElement&&e instanceof window.SVGElement,e=t?{top:0,left:0}:e?null:n.offset(),n={scroll:t?document.documentElement.scrollTop||document.body.scrollTop:n.scrollTop()},t=t?{width:d(window).width(),height:d(window).height()}:null;return d.extend({},l,n,t,e)},s.prototype.getCalculatedOffset=function(n,e,t,l){return"bottom"==n?{top:e.top+e.height,left:e.left+e.width/2-t/2}:"top"==n?{top:e.top-l,left:e.left+e.width/2-t/2}:"left"==n?{top:e.top+e.height/2-l/2,left:e.left-t}:{top:e.top+e.height/2-l/2,left:e.left+e.width}},s.prototype.getViewportAdjustedDelta=function(n,e,t,l){var a={top:0,left:0};if(!this.$viewport)return a;var o,r=this.options.viewport&&this.options.viewport.padding||0,i=this.getPosition(this.$viewport);return/right|left/.test(n)?(n=e.top-r-i.scroll,o=e.top+r-i.scroll+l,n<i.top?a.top=i.top-n:o>i.top+i.height&&(a.top=i.top+i.height-o)):(o=e.left-r,t=e.left+r+t,o<i.left?a.left=i.left-o:t>i.right&&(a.left=i.left+i.width-t)),a},s.prototype.getTitle=function(){var n=this.$element,e=this.options;return n.attr("data-original-title")||("function"==typeof e.title?e.title.call(n[0]):e.title)},s.prototype.getUID=function(n){for(;n+=~~(1e6*Math.random()),document.getElementById(n););return n},s.prototype.tip=function(){if(!this.$tip&&(this.$tip=d(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},s.prototype.enable=function(){this.enabled=!0},s.prototype.disable=function(){this.enabled=!1},s.prototype.toggleEnabled=function(){this.enabled=!this.enabled},s.prototype.toggle=function(n){var e=this;n&&((e=d(n.currentTarget).data("bs."+this.type))||(e=new this.constructor(n.currentTarget,this.getDelegateOptions()),d(n.currentTarget).data("bs."+this.type,e))),n?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},s.prototype.destroy=function(){var n=this;clearTimeout(this.timeout),this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type),n.$tip&&n.$tip.detach(),n.$tip=null,n.$arrow=null,n.$viewport=null,n.$element=null})},s.prototype.sanitizeHtml=function(n){return a(n,this.options.whiteList,this.options.sanitizeFn)};var e=d.fn.tooltip;d.fn.tooltip=function(l){return this.each(function(){var n=d(this),e=n.data("bs.tooltip"),t="object"==typeof l&&l;!e&&/destroy|hide/.test(l)||(e||n.data("bs.tooltip",e=new s(this,t)),"string"==typeof l&&e[l]())})},d.fn.tooltip.Constructor=s,d.fn.tooltip.noConflict=function(){return d.fn.tooltip=e,this}}(jQuery)},{}],13:[function(n,e,t){!function(l){"use strict";l.fn.emulateTransitionEnd=function(n){var e=!1,t=this;l(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||l(t).trigger(l.support.transition.end)},n),this},l(function(){l.support.transition=function(){var n,e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),l.support.transition&&(l.event.special.bsTransitionEnd={bindType:l.support.transition.end,delegateType:l.support.transition.end,handle:function(n){if(l(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}})})}(jQuery)},{}],14:[function(n,e,t){"use strict";function l(n){return n&&n.__esModule?n:{default:n}}function a(n){if(n&&n.__esModule)return n;var e={};if(null!=n)for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e.default=n,e}t.__esModule=!0;var o=a(n("./handlebars/base")),r=l(n("./handlebars/safe-string")),i=l(n("./handlebars/exception")),s=a(n("./handlebars/utils")),c=a(n("./handlebars/runtime")),u=l(n("./handlebars/no-conflict"));function h(){var e=new o.HandlebarsEnvironment;return s.extend(e,o),e.SafeString=r.default,e.Exception=i.default,e.Utils=s,e.escapeExpression=s.escapeExpression,e.VM=c,e.template=function(n){return c.template(n,e)},e}n=h();n.create=h,u.default(n),n.default=n,t.default=n,e.exports=t.default},{"./handlebars/base":15,"./handlebars/exception":18,"./handlebars/no-conflict":31,"./handlebars/runtime":32,"./handlebars/safe-string":33,"./handlebars/utils":34}],15:[function(n,e,t){"use strict";function l(n){return n&&n.__esModule?n:{default:n}}t.__esModule=!0,t.HandlebarsEnvironment=h;var a=n("./utils"),o=l(n("./exception")),r=n("./helpers"),i=n("./decorators"),s=l(n("./logger")),c=n("./internal/proto-access");t.VERSION="4.7.7";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var u="[object Object]";function h(n,e,t){this.helpers=n||{},this.partials=e||{},this.decorators=t||{},r.registerDefaultHelpers(this),i.registerDefaultDecorators(this)}h.prototype={constructor:h,logger:s.default,log:s.default.log,registerHelper:function(n,e){if(a.toString.call(n)===u){if(e)throw new o.default("Arg not supported with multiple helpers");a.extend(this.helpers,n)}else this.helpers[n]=e},unregisterHelper:function(n){delete this.helpers[n]},registerPartial:function(n,e){if(a.toString.call(n)===u)a.extend(this.partials,n);else{if(void 0===e)throw new o.default('Attempting to register a partial called "'+n+'" as undefined');this.partials[n]=e}},unregisterPartial:function(n){delete this.partials[n]},registerDecorator:function(n,e){if(a.toString.call(n)===u){if(e)throw new o.default("Arg not supported with multiple decorators");a.extend(this.decorators,n)}else this.decorators[n]=e},unregisterDecorator:function(n){delete this.decorators[n]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};n=s.default.log;t.log=n,t.createFrame=a.createFrame,t.logger=s.default},{"./decorators":16,"./exception":18,"./helpers":19,"./internal/proto-access":28,"./logger":30,"./utils":34}],16:[function(n,e,t){"use strict";t.__esModule=!0,t.registerDefaultDecorators=function(n){o.default(n)};var l,a=n("./decorators/inline"),o=(l=a)&&l.__esModule?l:{default:l}},{"./decorators/inline":17}],17:[function(n,e,t){"use strict";t.__esModule=!0;var r=n("../utils");t.default=function(n){n.registerDecorator("inline",function(l,a,o,n){var e=l;return a.partials||(a.partials={},e=function(n,e){var t=o.partials;o.partials=r.extend({},t,a.partials);e=l(n,e);return o.partials=t,e}),a.partials[n.args[0]]=n.fn,e})},e.exports=t.default},{"../utils":34}],18:[function(n,e,t){"use strict";t.__esModule=!0;var s=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function c(n,e){var t=e&&e.loc,l=void 0,a=void 0,o=void 0,e=void 0;t&&(l=t.start.line,a=t.end.line,o=t.start.column,e=t.end.column,n+=" - "+l+":"+o);for(var r=Error.prototype.constructor.call(this,n),i=0;i<s.length;i++)this[s[i]]=r[s[i]];Error.captureStackTrace&&Error.captureStackTrace(this,c);try{t&&(this.lineNumber=l,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:e,enumerable:!0})):(this.column=o,this.endColumn=e))}catch(n){}}c.prototype=new Error,t.default=c,e.exports=t.default},{}],19:[function(n,e,t){"use strict";function l(n){return n&&n.__esModule?n:{default:n}}t.__esModule=!0,t.registerDefaultHelpers=function(n){a.default(n),o.default(n),r.default(n),i.default(n),s.default(n),c.default(n),u.default(n)},t.moveHelperToHooks=function(n,e,t){n.helpers[e]&&(n.hooks[e]=n.helpers[e],t||delete n.helpers[e])};var a=l(n("./helpers/block-helper-missing")),o=l(n("./helpers/each")),r=l(n("./helpers/helper-missing")),i=l(n("./helpers/if")),s=l(n("./helpers/log")),c=l(n("./helpers/lookup")),u=l(n("./helpers/with"))},{"./helpers/block-helper-missing":20,"./helpers/each":21,"./helpers/helper-missing":22,"./helpers/if":23,"./helpers/log":24,"./helpers/lookup":25,"./helpers/with":26}],20:[function(n,e,t){"use strict";t.__esModule=!0;var o=n("../utils");t.default=function(a){a.registerHelper("blockHelperMissing",function(n,e){var t=e.inverse,l=e.fn;return!0===n?l(this):!1===n||null==n?t(this):o.isArray(n)?0<n.length?(e.ids&&(e.ids=[e.name]),a.helpers.each(n,e)):t(this):(e.data&&e.ids&&((t=o.createFrame(e.data)).contextPath=o.appendContextPath(e.data.contextPath,e.name),e={data:t}),l(n,e))})},e.exports=t.default},{"../utils":34}],21:[function(t,l,a){!function(g){!function(){"use strict";a.__esModule=!0;var n,m=t("../utils"),e=t("../exception"),f=(n=e)&&n.__esModule?n:{default:n};a.default=function(n){n.registerHelper("each",function(l,n){if(!n)throw new f.default("Must pass iterator to #each");var e,a=n.fn,t=n.inverse,o=0,r="",i=void 0,s=void 0;function c(n,e,t){i&&(i.key=n,i.index=e,i.first=0===e,i.last=!!t,s&&(i.contextPath=s+n)),r+=a(l[n],{data:i,blockParams:m.blockParams([l[n],n],[s+n,null])})}if(n.data&&n.ids&&(s=m.appendContextPath(n.data.contextPath,n.ids[0])+"."),m.isFunction(l)&&(l=l.call(this)),n.data&&(i=m.createFrame(n.data)),l&&"object"==typeof l)if(m.isArray(l))for(var u=l.length;o<u;o++)o in l&&c(o,o,o===l.length-1);else if(g.Symbol&&l[g.Symbol.iterator]){for(var h=[],p=l[g.Symbol.iterator](),d=p.next();!d.done;d=p.next())h.push(d.value);for(u=(l=h).length;o<u;o++)c(o,o,o===l.length-1)}else e=void 0,Object.keys(l).forEach(function(n){void 0!==e&&c(e,o-1),e=n,o++}),void 0!==e&&c(e,o-1,!0);return r=0===o?t(this):r})},l.exports=a.default}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../exception":18,"../utils":34}],22:[function(n,e,t){"use strict";t.__esModule=!0;var l,a=n("../exception"),o=(l=a)&&l.__esModule?l:{default:l};t.default=function(n){n.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},{"../exception":18}],23:[function(n,e,t){"use strict";t.__esModule=!0;var l,a=n("../utils"),o=n("../exception"),r=(l=o)&&l.__esModule?l:{default:l};t.default=function(t){t.registerHelper("if",function(n,e){if(2!=arguments.length)throw new r.default("#if requires exactly one argument");return a.isFunction(n)&&(n=n.call(this)),!e.hash.includeZero&&!n||a.isEmpty(n)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(n,e){if(2!=arguments.length)throw new r.default("#unless requires exactly one argument");return t.helpers.if.call(this,n,{fn:e.inverse,inverse:e.fn,hash:e.hash})})},e.exports=t.default},{"../exception":18,"../utils":34}],24:[function(n,e,t){"use strict";t.__esModule=!0,t.default=function(a){a.registerHelper("log",function(){for(var n=[void 0],e=arguments[arguments.length-1],t=0;t<arguments.length-1;t++)n.push(arguments[t]);var l=1;null!=e.hash.level?l=e.hash.level:e.data&&null!=e.data.level&&(l=e.data.level),n[0]=l,a.log.apply(a,n)})},e.exports=t.default},{}],25:[function(n,e,t){"use strict";t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(n,e,t){return n&&t.lookupProperty(n,e)})},e.exports=t.default},{}],26:[function(n,e,t){"use strict";t.__esModule=!0;var l,a=n("../utils"),o=n("../exception"),r=(l=o)&&l.__esModule?l:{default:l};t.default=function(n){n.registerHelper("with",function(n,e){if(2!=arguments.length)throw new r.default("#with requires exactly one argument");a.isFunction(n)&&(n=n.call(this));var t=e.fn;if(a.isEmpty(n))return e.inverse(this);var l=e.data;return e.data&&e.ids&&((l=a.createFrame(e.data)).contextPath=a.appendContextPath(e.data.contextPath,e.ids[0])),t(n,{data:l,blockParams:a.blockParams([n],[l&&l.contextPath])})})},e.exports=t.default},{"../exception":18,"../utils":34}],27:[function(n,e,t){"use strict";t.__esModule=!0,t.createNewLookupObject=function(){for(var n=arguments.length,e=Array(n),t=0;t<n;t++)e[t]=arguments[t];return l.extend.apply(void 0,[Object.create(null)].concat(e))};var l=n("../utils")},{"../utils":34}],28:[function(n,e,t){"use strict";t.__esModule=!0,t.createProtoAccessControl=function(n){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var t=Object.create(null);return t.__proto__=!1,{properties:{whitelist:l.createNewLookupObject(t,n.allowedProtoProperties),defaultValue:n.allowProtoPropertiesByDefault},methods:{whitelist:l.createNewLookupObject(e,n.allowedProtoMethods),defaultValue:n.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(n,e,t){return r("function"==typeof n?e.methods:e.properties,t)},t.resetLoggedProperties=function(){Object.keys(o).forEach(function(n){delete o[n]})};var l=n("./create-new-lookup-object"),a=function(n){if(n&&n.__esModule)return n;var e={};if(null!=n)for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e.default=n,e}(n("../logger")),o=Object.create(null);function r(n,e){return void 0!==n.whitelist[e]?!0===n.whitelist[e]:void 0!==n.defaultValue?n.defaultValue:(!0!==o[e=e]&&(o[e]=!0,a.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details')),!1)}},{"../logger":30,"./create-new-lookup-object":27}],29:[function(n,e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"==typeof e?function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=t(n),e.apply(this,arguments)}:e}},{}],30:[function(n,e,t){"use strict";t.__esModule=!0;var l=n("./utils"),a={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(n){var e;return n="string"==typeof n?0<=(e=l.indexOf(a.methodMap,n.toLowerCase()))?e:parseInt(n,10):n},log:function(n){if(n=a.lookupLevel(n),"undefined"!=typeof console&&a.lookupLevel(a.level)<=n){n=a.methodMap[n];console[n]||(n="log");for(var e=arguments.length,t=Array(1<e?e-1:0),l=1;l<e;l++)t[l-1]=arguments[l];console[n].apply(console,t)}}};t.default=a,e.exports=t.default},{"./utils":34}],31:[function(n,e,t){!function(l){!function(){"use strict";t.__esModule=!0,t.default=function(n){var e=void 0!==l?l:window,t=e.Handlebars;n.noConflict=function(){return e.Handlebars===n&&(e.Handlebars=t),n}},e.exports=t.default}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],32:[function(n,e,t){"use strict";t.__esModule=!0,t.checkRevision=function(n){var e=n&&n[0]||1,t=p.COMPILER_REVISION;if(!(e>=p.LAST_COMPATIBLE_COMPILER_REVISION&&e<=p.COMPILER_REVISION)){if(e<p.LAST_COMPATIBLE_COMPILER_REVISION){t=p.REVISION_CHANGES[t],e=p.REVISION_CHANGES[e];throw new h.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+t+") or downgrade your runtime to an older version ("+e+").")}throw new h.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+n[1]+").")}},t.template=function(s,c){if(!c)throw new h.default("No environment passed to template");if(!s||!s.main)throw new h.default("Unknown template object: "+typeof s);s.main.decorator=s.main_d,c.VM.checkRevision(s.compiler);var t=s.compiler&&7===s.compiler[0];var r={strict:function(n,e,t){if(!(n&&e in n))throw new h.default('"'+e+'" not defined in '+n,{loc:t});return r.lookupProperty(n,e)},lookupProperty:function(n,e){var t=n[e];return null==t||Object.prototype.hasOwnProperty.call(n,e)||m.resultIsAllowed(t,r.protoAccessControl,e)?t:void 0},lookup:function(n,e){for(var t=n.length,l=0;l<t;l++)if(null!=(n[l]&&r.lookupProperty(n[l],e)))return n[l][e]},lambda:function(n,e){return"function"==typeof n?n.call(e):n},escapeExpression:u.escapeExpression,invokePartial:function(n,e,t){t.hash&&(e=u.extend({},e,t.hash),t.ids&&(t.ids[0]=!0)),n=c.VM.resolvePartial.call(this,n,e,t);var l=u.extend({},t,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),a=c.VM.invokePartial.call(this,n,e,l);if(null==a&&c.compile&&(t.partials[t.name]=c.compile(n,s.compilerOptions,c),a=t.partials[t.name](e,l)),null==a)throw new h.default("The partial "+t.name+" could not be compiled when running in runtime-only mode");if(t.indent){for(var o=a.split("\n"),r=0,i=o.length;r<i&&(o[r]||r+1!==i);r++)o[r]=t.indent+o[r];a=o.join("\n")}return a},fn:function(n){var e=s[n];return e.decorator=s[n+"_d"],e},programs:[],program:function(n,e,t,l,a){var o=this.programs[n],r=this.fn(n);return o=e||a||l||t?f(this,n,r,e,t,l,a):o||(this.programs[n]=f(this,n,r))},data:function(n,e){for(;n&&e--;)n=n._parent;return n},mergeIfNeeded:function(n,e){var t=n||e;return t=n&&e&&n!==e?u.extend({},e,n):t},nullContext:Object.seal({}),noop:c.VM.noop,compilerInfo:s.compiler};function i(n){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],t=e.data;i._setup(e),!e.partial&&s.useData&&(t=function(n,e){e&&"root"in e||((e=e?p.createFrame(e):{}).root=n);return e}(n,t));var l=void 0,a=s.useBlockParams?[]:void 0;function o(n){return""+s.main(r,n,r.helpers,r.partials,t,a,l)}return s.useDepths&&(l=e.depths?n!=e.depths[0]?[n].concat(e.depths):e.depths:[n]),(o=g(s.main,o,r,e.depths||[],t,a))(n,e)}return i.isTop=!0,i._setup=function(n){var e,l,a;n.partial?(r.protoAccessControl=n.protoAccessControl,r.helpers=n.helpers,r.partials=n.partials,r.decorators=n.decorators,r.hooks=n.hooks):(e=u.extend({},c.helpers,n.helpers),l=e,a=r,Object.keys(l).forEach(function(n){var e,t=l[n];l[n]=(e=a.lookupProperty,d.wrapHelper(t,function(n){return u.extend({lookupProperty:e},n)}))}),r.helpers=e,s.usePartial&&(r.partials=r.mergeIfNeeded(n.partials,c.partials)),(s.usePartial||s.useDecorators)&&(r.decorators=u.extend({},c.decorators,n.decorators)),r.hooks={},r.protoAccessControl=m.createProtoAccessControl(n),n=n.allowCallsToHelperMissing||t,o.moveHelperToHooks(r,"helperMissing",n),o.moveHelperToHooks(r,"blockHelperMissing",n))},i._child=function(n,e,t,l){if(s.useBlockParams&&!t)throw new h.default("must pass block params");if(s.useDepths&&!l)throw new h.default("must pass parent depths");return f(r,n,s[n],e,0,t,l)},i},t.wrapProgram=f,t.resolvePartial=function(n,e,t){n?n.call||t.name||(t.name=n,n=t.partials[n]):n="@partial-block"===t.name?t.data["partial-block"]:t.partials[t.name];return n},t.invokePartial=function(n,e,l){var a=l.data&&l.data["partial-block"];l.partial=!0,l.ids&&(l.data.contextPath=l.ids[0]||l.data.contextPath);var o=void 0;l.fn&&l.fn!==r&&function(){l.data=p.createFrame(l.data);var t=l.fn;o=l.data["partial-block"]=function(n){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return e.data=p.createFrame(e.data),e.data["partial-block"]=a,t(n,e)},t.partials&&(l.partials=u.extend({},l.partials,t.partials))}();void 0===n&&o&&(n=o);{if(void 0===n)throw new h.default("The partial "+l.name+" could not be found");if(n instanceof Function)return n(e,l)}},t.noop=r;var l,u=function(n){if(n&&n.__esModule)return n;var e={};if(null!=n)for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e.default=n,e}(n("./utils")),a=n("./exception"),h=(l=a)&&l.__esModule?l:{default:l},p=n("./base"),o=n("./helpers"),d=n("./internal/wrapHelper"),m=n("./internal/proto-access");function f(l,n,a,o,e,r,i){function t(n){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],t=i;return!i||n==i[0]||n===l.nullContext&&null===i[0]||(t=[n].concat(i)),a(l,n,l.helpers,l.partials,e.data||o,r&&[e.blockParams].concat(r),t)}return(t=g(a,t,l,i,o,r)).program=n,t.depth=i?i.length:0,t.blockParams=e||0,t}function r(){return""}function g(n,e,t,l,a,o){return n.decorator&&(e=n.decorator(e,n={},t,l&&l[0],a,o,l),u.extend(e,n)),e}},{"./base":15,"./exception":18,"./helpers":19,"./internal/proto-access":28,"./internal/wrapHelper":29,"./utils":34}],33:[function(n,e,t){"use strict";function l(n){this.string=n}t.__esModule=!0,l.prototype.toString=l.prototype.toHTML=function(){return""+this.string},t.default=l,e.exports=t.default},{}],34:[function(n,e,t){"use strict";t.__esModule=!0,t.extend=i,t.indexOf=function(n,e){for(var t=0,l=n.length;t<l;t++)if(n[t]===e)return t;return-1},t.escapeExpression=function(n){if("string"!=typeof n){if(n&&n.toHTML)return n.toHTML();if(null==n)return"";if(!n)return n+"";n=""+n}return o.test(n)?n.replace(a,r):n},t.isEmpty=function(n){return!n&&0!==n||!(!u(n)||0!==n.length)},t.createFrame=function(n){var e=i({},n);return e._parent=n,e},t.blockParams=function(n,e){return n.path=e,n},t.appendContextPath=function(n,e){return(n?n+".":"")+e};var l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},a=/[&<>"'`=]/g,o=/[&<>"'`=]/;function r(n){return l[n]}function i(n){for(var e=1;e<arguments.length;e++)for(var t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&(n[t]=arguments[e][t]);return n}var s=Object.prototype.toString;t.toString=s;var c=function(n){return"function"==typeof n};c(/x/)&&(t.isFunction=c=function(n){return"function"==typeof n&&"[object Function]"===s.call(n)}),t.isFunction=c;var u=Array.isArray||function(n){return!(!n||"object"!=typeof n)&&"[object Array]"===s.call(n)};t.isArray=u},{}],35:[function(n,e,t){e.exports=n("handlebars/runtime").default},{"handlebars/runtime":14}],36:[function(n,e,t){var l=n("backbone"),a=n("underscore"),l=new(l.Model.extend({defaults:function(){return{VERSION:VERSION,GRAPHITE_URL:GRAPHITE_URL,GRAPH_ENABLED:GRAPH_ENABLED,STATSD_INTERVAL:STATSD_INTERVAL,STATSD_COUNTER_FORMAT:STATSD_COUNTER_FORMAT,STATSD_GAUGE_FORMAT:STATSD_GAUGE_FORMAT,STATSD_PREFIX:STATSD_PREFIX,NSQLOOKUPD:NSQLOOKUPD,graph_interval:"2h",IS_ADMIN:IS_ADMIN,BASE_PATH:BASE_PATH}},initialize:function(){this.on("change:graph_interval",function(n,e){localStorage.setItem("graph_interval",e)});var n=a.object(a.compact(a.map(window.location.search.slice(1).split("&"),function(n){return!!n&&n.split("=")}))),e=this.get("GRAPH_ENABLED")?"2h":"off",e=n.t||localStorage.getItem("graph_interval")||e;this.set("graph_interval",e)},basePath:function(n){return(("/"===this.get("BASE_PATH")?"":this.get("BASE_PATH"))+n).replace(/\/$/,"")||"/"},apiPath:function(n){return this.basePath("/api"+n)}}));window.AppState=l,e.exports=l},{backbone:void 0,underscore:void 0}],37:[function(n,e,t){var l=n("backbone"),a=n("../app_state"),n=n("../models/node"),n=l.Collection.extend({model:n,comparator:"id",constructor:function(){l.Collection.prototype.constructor.apply(this,arguments)},url:function(){return a.apiPath("/nodes")},parse:function(n){return n.nodes.forEach(function(n){var e=n.broadcast_address;e.includes(":")&&(e="["+e+"]"),n.broadcast_address_http=e+":"+n.http_port}),n.nodes}});e.exports=n},{"../app_state":36,"../models/node":44,backbone:void 0}],38:[function(n,e,t){var l=n("underscore"),a=n("backbone"),o=n("../app_state"),n=n("../models/topic"),n=a.Collection.extend({model:n,comparator:"id",constructor:function(){a.Collection.prototype.constructor.apply(this,arguments)},url:function(){return o.apiPath("/topics")},parse:function(n){return l.map(n.topics,function(n){return{name:n}})}});e.exports=n},{"../app_state":36,"../models/topic":45,backbone:void 0,underscore:void 0}],39:[function(n,e,t){var l=n("jquery"),a=n("underscore");l.ajaxPrefilter(function(n){n.headers=a.defaults(n.headers||{},{"X-UserAgent":USER_AGENT,Accept:"application/vnd.nsq; version=1.0"}),n.timeout=2e4,n.contentType="application/json"})},{jquery:void 0,underscore:void 0}],40:[function(n,e,t){function u(n,e){var t=e;return"counter"===n?t=m.get("STATSD_COUNTER_FORMAT").replace(/%s/g,e):"gauge"===n&&(t=m.get("STATSD_GAUGE_FORMAT").replace(/%s/g,e)),t}function h(n){return{depth:"gauge",in_flight_count:"gauge",deferred_count:"gauge",requeue_count:"counter",timeout_count:"counter",message_count:"counter",clients:"gauge","*_bytes":"gauge","gc_pause_*":"gauge",gc_runs:"counter",heap_objects:"gauge",e2e_processing_latency:"gauge"}[n]}function i(n,e){if("topic"===n||"channel"===n){if("depth"===e||"deferred_count"===e)return"red"}else{if("node"===n)return"red,green,blue,purple";if("counter"===n)return"green"}return"blue"}function p(n){return n.replaceAll(" ","_").replaceAll("/","-").replaceAll(/[^a-zA-Z0-9-_.]/g,"")}function s(n,e,t,l,a){var o,r,i,s=[],c=(o=e||"*",r=m.get("STATSD_PREFIX"),o=o.replace(/[\.:]/g,"_"),"."!==(r=r.replace(/%s/g,o)).substring(r.length,1)&&(r+="."),r);return"topic"===n?(i=u(h(a),c+"topic."+p(t)+"."+a),s.push("sumSeries("+i+")")):"channel"===n?(i=u(h(a),c+"topic."+p(t)+".channel."+p(l)+"."+a),s.push("sumSeries("+i+")")):"node"===n?(l=c+"mem."+a,s.push(u(h(a),l="gc_runs"===a?"movingAverage("+l+",45)":l))):"e2e"===n?s=d.map(t.percentiles,function(n){n=""!==t.channel?c+"topic."+t.topic+".channel."+t.channel+"."+a+"_"+100*n.quantile:c+"topic."+t.topic+"."+a+"_"+100*n.quantile;return"scale("+u(h(a),n="*"===e?"averageSeries("+n+")":n)+",0.000001)"}):"counter"===n&&(i=u(h(a),c+"topic.*.channel.*."+a),s.push("sumSeries("+i+")")),s}var c=n("jquery"),d=n("underscore"),l=n("hbsfy/runtime"),m=n("../app_state");function a(n,e){e=Math.pow(10,e);return Math.round(n*e)/e}l.registerHelper("default",function(n,e){return n||e}),l.registerHelper("ifeq",function(n,e,t){return n===e?t.fn(this):t.inverse(this)}),l.registerHelper("unlesseq",function(n,e,t){return n!==e?t.fn(this):t.inverse(this)}),l.registerHelper("ifgteq",function(n,e,t){return e<=n?t.fn(this):t.inverse(this)}),l.registerHelper("iflteq",function(n,e,t){return n<=e?t.fn(this):t.inverse(this)}),l.registerHelper("length",function(n){return n.length}),l.registerHelper("lowercase",function(n){return n.toLowerCase()}),l.registerHelper("uppercase",function(n){return n.toUpperCase()}),l.registerHelper("for",function(n,e,t,l){for(var a="",o=n;o<=e;o+=t)a+=l.fn(o);return a}),l.registerHelper("and",function(){return d.all(d.initial(arguments))}),l.registerHelper("or",function(){return d.any(d.initial(arguments))}),l.registerHelper("eq",function(n,e){return n===e}),l.registerHelper("neq",function(n,e){return n!==e}),l.registerHelper("urlencode",function(n){return encodeURIComponent(n)}),l.registerHelper("floatToPercent",function(n){return Math.floor(100*n)}),l.registerHelper("percSuffix",function(n){n=Math.floor(100*n)%10;return 1==n?"st":2==n?"nd":3==n?"rd":"th"}),l.registerHelper("commafy",function(n){return(n=n||0).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}),l.registerHelper("nanotohuman",function(n){var e,t="";return 36e11<=n&&(e=Math.floor(n/36e11),n%=36e11,t=e+"h"),6e10<=n&&(e=Math.floor(n/6e10),n%=6e10,t+=e+"m"),1e9<=n?t+=(n=a(n/1e9,2))+"s":1e6<=n?t+=(n=a(n/1e6,2))+"ms":1e3<=n?t+=(n=a(n/1e3,2))+"us":t=n+"ns",t}),l.registerHelper("sparkline",function(n,e,t,l,a){var o={colorList:i(n,a),height:"20",width:"120",hideGrid:"true",hideLegend:"true",hideAxes:"true",bgcolor:"ff000000",fgcolor:"black",margin:"0",yMin:"0",lineMode:"connected",drawNullAsZero:"false",from:"-"+m.get("graph_interval"),until:"-1min"},r=m.get("STATSD_INTERVAL")+"sec";return o.target=d.map(s(n,e,t,l,a),function(n){return"summarize("+n+',"'+r+'","avg")'}),m.get("GRAPHITE_URL")+"/render?"+c.param(o)}),l.registerHelper("large_graph",function(n,e,t,l,a){var o={colorList:i(n,a),height:"450",width:"800",bgcolor:"ff000000",fgcolor:"999999",yMin:"0",lineMode:"connected",drawNullAsZero:"false",from:"-"+m.get("graph_interval"),until:"-1min"},r=m.get("STATSD_INTERVAL")+"sec";return o.target=d.map(s(n,e,t,l,a),function(n){return"summarize("+(n="counter"===h(a)?"scale("+n+","+1/m.get("STATSD_INTERVAL")+")":n)+',"'+r+'","avg")'}),m.get("GRAPHITE_URL")+"/render?"+c.param(o)}),l.registerHelper("rate",function(n,e,t,l){return s(n,e,t,l,"message_count")[0]}),l.registerPartial("error",n("../views/error.hbs")),l.registerPartial("warning",n("../views/warning.hbs")),l.registerHelper("basePath",function(n){return m.basePath(n)})},{"../app_state":36,"../views/error.hbs":53,"../views/warning.hbs":67,"hbsfy/runtime":35,jquery:void 0,underscore:void 0}],41:[function(n,e,t){var l=n("underscore"),n=n("backbone"),n=l.clone(n.Events);window.Pubsub=n,e.exports=n},{backbone:void 0,underscore:void 0}],42:[function(n,e,t){var l=n("jquery"),a=n("backbone"),o=n("./router"),r=n("./views/app");a.$=l,n("./lib/ajax_setup"),n("./lib/handlebars_helpers");new r,o.start()},{"./lib/ajax_setup":39,"./lib/handlebars_helpers":40,"./router":46,"./views/app":47,backbone:void 0,jquery:void 0}],43:[function(n,e,t){var l=n("underscore"),a=n("../app_state"),o=n("backbone"),n=o.Model.extend({idAttribute:"name",constructor:function(){o.Model.prototype.constructor.apply(this,arguments)},url:function(){return a.apiPath("/topics/"+encodeURIComponent(this.get("topic"))+"/"+encodeURIComponent(this.get("name")))},parse:function(n){return n.nodes=l.map(n.nodes||[],function(n){var e=n.node.split(":"),t=e.pop(),l=e.join(":"),e=n.hostname;return n.show_broadcast_address=e.toLowerCase()!==l.toLowerCase(),n.hostname_port=e+":"+t,n}),n.clients=l.map(n.clients||[],function(n){var e=n.client_id,t=n.hostname,l=t.split(".")[0];n.show_client_id=e.toLowerCase()!==l.toLowerCase()&&e.toLowerCase()!==t.toLowerCase();e=n.remote_address.split(":").pop();return n.hostname_port=t+":"+e,n}),n}});e.exports=n},{"../app_state":36,backbone:void 0,underscore:void 0}],44:[function(n,e,t){var l=n("../app_state"),a=n("backbone"),n=a.Model.extend({idAttribute:"name",constructor:function(){a.Model.prototype.constructor.apply(this,arguments)},urlRoot:function(){return l.apiPath("/nodes")},tombstoneTopic:function(n){return this.destroy({data:JSON.stringify({topic:n}),dataType:"text"})}});e.exports=n},{"../app_state":36,backbone:void 0}],45:[function(n,e,t){var l=n("underscore"),a=n("../app_state"),o=n("backbone"),n=o.Model.extend({idAttribute:"name",constructor:function(){o.Model.prototype.constructor.apply(this,arguments)},url:function(){return a.apiPath("/topics/"+encodeURIComponent(this.get("name")))},parse:function(n){return n.nodes=l.map(n.nodes||[],function(n){var e=n.node.split(":"),t=e.pop(),l=e.join(":"),e=n.hostname;return n.show_broadcast_address=e.toLowerCase()!==l.toLowerCase(),n.hostname_port=e+":"+t,n}),n}});e.exports=n},{"../app_state":36,backbone:void 0,underscore:void 0}],46:[function(n,e,t){var l=n("backbone"),a=n("./app_state"),o=n("./lib/pubsub"),n=l.Router.extend({initialize:function(){function n(n){return a.basePath(n).substring(1)}this.route(n("/"),"topics"),this.route(n("/topics/(:topic)(/:channel)"),"topic"),this.route(n("/lookup"),"lookup"),this.route(n("/nodes(/:node)"),"nodes"),this.route(n("/counter"),"counter")},start:function(){l.history.start({pushState:!0})},topics:function(){o.trigger("topics:show")},topic:function(n,e){null===e?o.trigger("topic:show",n):o.trigger("channel:show",n,e)},lookup:function(){o.trigger("lookup:show")},nodes:function(n){null===n?o.trigger("nodes:show"):o.trigger("node:show",n)},counter:function(){o.trigger("counter:show")}});e.exports=new n},{"./app_state":36,"./lib/pubsub":41,backbone:void 0}],47:[function(n,e,t){var a=n("jquery");window.jQuery=a;n("bootstrap");var l=n("bootbox"),o=n("../app_state"),r=n("../lib/pubsub"),i=n("../router"),s=n("./base"),c=n("./header"),u=n("./topics"),h=n("./topic"),p=n("./channel"),d=n("./lookup"),m=n("./nodes"),f=n("./node"),g=n("./counter"),b=n("../models/node"),y=n("../models/topic"),v=n("../models/channel"),n=s.extend({el:"#container",events:{"click .link":"onLinkClick","click .tombstone-link":"onTombstoneClick"},initialize:function(){s.prototype.initialize.apply(this,arguments),this.listenTo(r,"topics:show",this.showTopics),this.listenTo(r,"topic:show",this.showTopic),this.listenTo(r,"channel:show",this.showChannel),this.listenTo(r,"lookup:show",this.showLookup),this.listenTo(r,"nodes:show",this.showNodes),this.listenTo(r,"node:show",this.showNode),this.listenTo(r,"counter:show",this.showCounter),this.listenTo(r,"view:ready",function(){a(".rate").each(function(n,e){var t=a(e),l=o.get("STATSD_INTERVAL"),e={target:t.attr("target"),from:"-"+2*l+"sec",until:"-"+l+"sec",format:"json"};a.ajax({url:o.get("GRAPHITE_URL")+"/render",data:e,dataType:"jsonp",jsonp:"jsonp"}).done(function(n){t.html(null===(n=n)[0]||null===n[0].datapoints[0]||n[0].datapoints[0][0]<0?"N/A":(n[0].datapoints[0][0]/l).toFixed(2))}).fail(function(){t.html("ERROR")})})}),this.render()},postRender:function(){this.appendSubview(new c)},showView:function(n){window.scrollTo(0,0),this.currentView&&this.currentView.remove(),this.currentView=n(),this.appendSubview(this.currentView)},showTopics:function(){this.showView(function(){return new u})},showTopic:function(e){this.showView(function(){var n=new y({name:e,isAdmin:o.get("IS_ADMIN")});return new h({model:n})})},showChannel:function(e,t){this.showView(function(){var n=new v({topic:e,name:t,isAdmin:o.get("IS_ADMIN")});return new p({model:n})})},showLookup:function(){this.showView(function(){return new d({isAdmin:o.get("IS_ADMIN")})})},showNodes:function(){this.showView(function(){return new m})},showNode:function(e){this.showView(function(){var n=new b({name:e});return new f({model:n})})},showCounter:function(){this.showView(function(){return new g})},onLinkClick:function(n){n.ctrlKey||n.metaKey||(n.preventDefault(),n.stopPropagation(),i.navigate(a(n.currentTarget).attr("href"),{trigger:!0}))},onTombstoneClick:function(n){n.preventDefault(),n.stopPropagation();var e=a(n.target).data("node"),t=a(n.target).data("topic");l.confirm("Are you sure you want to <strong>tombstone</strong> <em>"+e+"</em>?",function(n){!0===n&&new b({name:e}).tombstoneTopic(t).done(function(){window.location.reload(!0)}).fail(this.handleAJAXError.bind(this))}.bind(this))}});e.exports=n},{"../app_state":36,"../lib/pubsub":41,"../models/channel":43,"../models/node":44,"../models/topic":45,"../router":46,"./base":48,"./channel":50,"./counter":52,"./header":55,"./lookup":57,"./node":59,"./nodes":61,"./topic":64,"./topics":66,bootbox:void 0,bootstrap:1,jquery:void 0}],48:[function(n,e,t){var l=n("jquery"),a=n("underscore"),o=n("backbone"),r=n("../app_state"),i=n("./error.hbs"),n=o.View.extend({constructor:function(n){return this.options=n||{},o.View.prototype.constructor.apply(this,arguments)},initialize:function(){this.subviews=[],this.rendered=!1},template:function(){},skippedRender:function(){},render:function(n){if(this.renderOnce&&this.rendered)return this.skippedRender(),this;this.removeSubviews();var e=this.getRenderCtx(n),n=this.template(e);return this.removed||(this.$el.empty(),this.$el.append(n),this.postRender(e)),this.rendered=!0,this},getRenderCtx:function(n){var e={graph_enabled:r.get("GRAPH_ENABLED"),graph_interval:r.get("graph_interval"),graph_active:r.get("GRAPH_ENABLED")&&"off"!==r.get("graph_interval"),nsqlookupd:r.get("NSQLOOKUPD"),version:r.get("VERSION")};return this.model?e=a.extend(e,this.model.toJSON()):this.collection&&(e=a.extend(e,{collection:this.collection.toJSON()})),e=n?a.extend(e,n):e},postRender:function(){},appendSubview:function(n,e){return this.appendSubviews([n],e)},appendSubviews:function(n,e){this.subviews.push.apply(this.subviews,n),(e?this.$(e):this.$el).append(n.map(function(n){return n.render().delegateEvents().el}))},removeSubviews:function(){for(;this.subviews.length;)this.subviews.pop().remove()},remove:function(){this.removed=!0,this.removeSubviews(),o.View.prototype.remove.apply(this,arguments)},parseErrorMessage:function(n){var e="ERROR: failed to connect to nsqadmin";if(4===n.readyState)try{e=JSON.parse(n.responseText).message}catch(n){e="ERROR: failed to decode JSON - "+n.message}return e},handleAJAXError:function(n){l("#warning, #error").hide(),l("#error .alert").text(this.parseErrorMessage(n)),l("#error").show()},handleViewError:function(n){this.removeSubviews(),this.$el.html(i({message:this.parseErrorMessage(n)}))}});e.exports=n},{"../app_state":36,"./error.hbs":53,backbone:void 0,jquery:void 0,underscore:void 0}],49:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a){return'<div class="row">\n <div class="col-md-6">\n <div class="alert alert-warning">\n <h4>注意</h4> 没有消息生产者.\n </div>\n </div>\n</div>\n'},3:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return(null!=(i=h(t,"if").call(s,null!=e?h(e,"isAdmin"):e,{name:"if",hash:{},fn:n.program(4,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:28,column:0},end:{line:44,column:7}}}))?i:"")+'\n<div class="row">\n <div class="col-md-12">\n <h4>通道</h4>\n <table class="table table-bordered table-condensed">\n <tr>\n <th>&nbsp;</th>\n <th colspan="4" class="text-center">消息队列</th>\n <th colspan="'+(null!=(i=h(t,"if").call(s,null!=e?h(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(9,a,0,o,r),inverse:n.program(11,a,0,o,r),data:a,loc:{start:{line:53,column:25},end:{line:53,column:62}}}))?i:"")+'" class="text-center">统计</th>\n'+(null!=(i=h(t,"if").call(s,null!=(i=null!=(i=null!=e?h(e,"e2e_processing_latency"):e)?h(i,"percentiles"):i)?h(i,"length"):i,{name:"if",hash:{},fn:n.program(13,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:54,column:12},end:{line:56,column:19}}}))?i:"")+" </tr>\n <tr>\n <th>主机</th>\n <th>队列</th>\n <th>内存 + 磁盘</th>\n <th>处理中</th>\n <th>推迟</th>\n <th>重新入队</th>\n <th>超时</th>\n <th>消息</th>\n "+(null!=(i=h(t,"if").call(s,null!=e?h(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(15,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:67,column:12},end:{line:67,column:50}}}))?i:"")+"\n <th>已连接</th>\n"+(null!=(i=h(t,"each").call(s,null!=(i=null!=e?h(e,"e2e_processing_latency"):e)?h(i,"percentiles"):i,{name:"each",hash:{},fn:n.program(17,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:69,column:12},end:{line:71,column:21}}}))?i:"")+" </tr>\n"+(null!=(i=h(t,"each").call(s,null!=e?h(e,"nodes"):e,{name:"each",hash:{},fn:n.program(19,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:73,column:8},end:{line:121,column:17}}}))?i:"")+' <tr class="info">\n <td>总计:</td>\n <td>'+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:124,column:16},end:{line:124,column:33}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"memory_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:125,column:16},end:{line:125,column:40}}}))+" + "+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"backend_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:125,column:43},end:{line:125,column:68}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"in_flight_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:126,column:16},end:{line:126,column:43}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"deferred_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:127,column:16},end:{line:127,column:42}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"requeue_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:128,column:16},end:{line:128,column:41}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"timeout_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:129,column:16},end:{line:129,column:41}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"message_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:130,column:16},end:{line:130,column:41}}}))+"</td>\n"+(null!=(i=h(t,"if").call(s,null!=e?h(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(26,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:131,column:12},end:{line:133,column:19}}}))?i:"")+" <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"client_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:134,column:16},end:{line:134,column:40}}}))+"</td>\n"+(null!=(i=h(t,"if").call(s,null!=(i=null!=(i=null!=e?h(e,"e2e_processing_latency"):e)?h(i,"percentiles"):i)?h(i,"length"):i,{name:"if",hash:{},fn:n.program(28,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:135,column:12},end:{line:141,column:19}}}))?i:"")+" </tr>\n"+(null!=(i=h(t,"if").call(s,null!=e?h(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(34,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:143,column:8},end:{line:161,column:15}}}))?i:"")+" </table>\n </div>\n</div>\n"},4:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<div class="row channel-actions">\n <div class="col-md-2">\n <button class="btn btn-medium btn-warning" data-action="empty">清空队列</button>\n </div>\n <div class="col-md-2">\n <button class="btn btn-medium btn-danger" data-action="delete">删除通道</button>\n </div>\n <div class="col-md-2">\n'+(null!=(a=o(t,"if").call(null!=e?e:n.nullContext||{},null!=e?o(e,"paused"):e,{name:"if",hash:{},fn:n.program(5,a,0),inverse:n.program(7,a,0),data:a,loc:{start:{line:37,column:8},end:{line:41,column:15}}}))?a:"")+" </div>\n</div>\n"},5:function(n,e,t,l,a){return' <button class="btn btn-medium btn-success" data-action="unpause">恢复Channel</button>\n'},7:function(n,e,t,l,a){return' <button class="btn btn-medium btn-primary" data-action="pause">暂停通道</button>\n'},9:function(n,e,t,l,a){return"5"},11:function(n,e,t,l,a){return"4"},13:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <th colspan="'+n.escapeExpression(n.lambda(null!=(n=null!=(n=null!=e?o(e,"e2e_processing_latency"):e)?o(n,"percentiles"):n)?o(n,"length"):n,e))+'">端到端延时</th>\n'},15:function(n,e,t,l,a){return"<th>速率</th>"},17:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" <th>"+i((n(t,"floatToPercent")||e&&n(e,"floatToPercent")||r).call(o,null!=e?n(e,"quantile"):e,{name:"floatToPercent",hash:{},data:a,loc:{start:{line:70,column:20},end:{line:70,column:47}}}))+"<sup>"+i((n(t,"percSuffix")||e&&n(e,"percSuffix")||r).call(o,null!=e?n(e,"quantile"):e,{name:"percSuffix",hash:{},data:a,loc:{start:{line:70,column:52},end:{line:70,column:75}}}))+"</sup></th>\n"},19:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" <tr>\n <td>\n"+(null!=(i=h(t,"if").call(s,null!=e?h(e,"show_broadcast_address"):e,{name:"if",hash:{},fn:n.program(20,a,0,o,r),inverse:n.program(22,a,0,o,r),data:a,loc:{start:{line:76,column:16},end:{line:80,column:23}}}))?i:"")+" "+(null!=(i=h(t,"if").call(s,null!=e?h(e,"paused"):e,{name:"if",hash:{},fn:n.program(24,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:81,column:16},end:{line:81,column:85}}}))?i:"")+"\n </td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:83,column:16},end:{line:83,column:33}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"memory_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:84,column:16},end:{line:84,column:40}}}))+" + "+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"backend_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:84,column:43},end:{line:84,column:68}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"in_flight_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:85,column:16},end:{line:85,column:43}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"deferred_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:86,column:16},end:{line:86,column:42}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"requeue_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:87,column:16},end:{line:87,column:41}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"timeout_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:88,column:16},end:{line:88,column:41}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"message_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:89,column:16},end:{line:89,column:41}}}))+"</td>\n"+(null!=(i=h(t,"if").call(s,null!=r[1]?h(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(26,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:90,column:12},end:{line:92,column:19}}}))?i:"")+" <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"client_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:93,column:16},end:{line:93,column:40}}}))+"</td>\n"+(null!=(i=h(t,"if").call(s,null!=(i=null!=(i=null!=e?h(e,"e2e_processing_latency"):e)?h(i,"percentiles"):i)?h(i,"length"):i,{name:"if",hash:{},fn:n.program(28,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:94,column:12},end:{line:100,column:19}}}))?i:"")+" </tr>\n"+(null!=(i=h(t,"if").call(s,null!=r[1]?h(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(31,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:102,column:8},end:{line:120,column:15}}}))?i:"")},20:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i="function",s=n.escapeExpression,c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" "+s(typeof(n=null!=(n=c(t,"hostname_port")||(null!=e?c(e,"hostname_port"):e))?n:r)==i?n.call(o,{name:"hostname_port",hash:{},data:a,loc:{start:{line:77,column:16},end:{line:77,column:33}}}):n)+' (<a class="link" href="'+s((c(t,"basePath")||e&&c(e,"basePath")||r).call(o,"/nodes",{name:"basePath",hash:{},data:a,loc:{start:{line:77,column:57},end:{line:77,column:78}}}))+"/"+s(typeof(n=null!=(n=c(t,"node")||(null!=e?c(e,"node"):e))?n:r)==i?n.call(o,{name:"node",hash:{},data:a,loc:{start:{line:77,column:79},end:{line:77,column:87}}}):n)+'">'+s(typeof(n=null!=(n=c(t,"node")||(null!=e?c(e,"node"):e))?n:r)==i?n.call(o,{name:"node",hash:{},data:a,loc:{start:{line:77,column:89},end:{line:77,column:97}}}):n)+"</a>)\n"},22:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,s="function",c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <a class="link" href="'+i((c(t,"basePath")||e&&c(e,"basePath")||r).call(o,"/nodes",{name:"basePath",hash:{},data:a,loc:{start:{line:79,column:38},end:{line:79,column:59}}}))+"/"+i(typeof(n=null!=(n=c(t,"node")||(null!=e?c(e,"node"):e))?n:r)==s?n.call(o,{name:"node",hash:{},data:a,loc:{start:{line:79,column:60},end:{line:79,column:68}}}):n)+'">'+i(typeof(n=null!=(n=c(t,"hostname_port")||(null!=e?c(e,"hostname_port"):e))?n:r)==s?n.call(o,{name:"hostname_port",hash:{},data:a,loc:{start:{line:79,column:70},end:{line:79,column:87}}}):n)+"</a>\n"},24:function(n,e,t,l,a){return' <span class="label label-primary">paused</span>'},26:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td class="bold rate" target="'+n.escapeExpression((o(t,"rate")||e&&o(e,"rate")||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"topic",null!=e?o(e,"node"):e,null!=e?o(e,"topic_name"):e,"",{name:"rate",hash:{},data:a,loc:{start:{line:91,column:46},end:{line:91,column:81}}}))+'"></td>\n'},28:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return null!=(e=o(t,"each").call(null!=e?e:n.nullContext||{},null!=(e=null!=e?o(e,"e2e_processing_latency"):e)?o(e,"percentiles"):e,{name:"each",hash:{},fn:n.program(29,a,0),inverse:n.noop,data:a,loc:{start:{line:95,column:16},end:{line:99,column:25}}}))?e:""},29:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td>\n <span title="'+i((n(t,"floatToPercent")||e&&n(e,"floatToPercent")||r).call(o,null!=e?n(e,"quantile"):e,{name:"floatToPercent",hash:{},data:a,loc:{start:{line:97,column:33},end:{line:97,column:60}}}))+": min = "+i((n(t,"nanotohuman")||e&&n(e,"nanotohuman")||r).call(o,null!=e?n(e,"min"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:97,column:68},end:{line:97,column:87}}}))+", max = "+i((n(t,"nanotohuman")||e&&n(e,"nanotohuman")||r).call(o,null!=e?n(e,"max"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:97,column:95},end:{line:97,column:114}}}))+'">'+i((n(t,"nanotohuman")||e&&n(e,"nanotohuman")||r).call(o,null!=e?n(e,"average"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:97,column:116},end:{line:97,column:139}}}))+"</span>\n </td>\n"},31:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr class="graph-row">\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"depth",{name:"large_graph",hash:{},data:a,loc:{start:{line:105,column:25},end:{line:105,column:87}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"depth",{name:"sparkline",hash:{},data:a,loc:{start:{line:105,column:124},end:{line:105,column:184}}}))+'"></a></td>\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"in_flight_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:107,column:25},end:{line:107,column:97}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"in_flight_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:107,column:134},end:{line:107,column:204}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"deferred_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:108,column:25},end:{line:108,column:96}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"deferred_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:108,column:133},end:{line:108,column:202}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"requeue_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:109,column:25},end:{line:109,column:95}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"requeue_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:109,column:132},end:{line:109,column:200}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"timeout_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:110,column:25},end:{line:110,column:95}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"timeout_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:110,column:132},end:{line:110,column:200}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"message_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:111,column:25},end:{line:111,column:95}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"message_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:111,column:132},end:{line:111,column:200}}}))+'"></a></td>\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"clients",{name:"large_graph",hash:{},data:a,loc:{start:{line:113,column:25},end:{line:113,column:89}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"clients",{name:"sparkline",hash:{},data:a,loc:{start:{line:113,column:126},end:{line:113,column:188}}}))+'"></a></td>\n'+(null!=(e=s(t,"if").call(o,null!=(e=null!=(e=null!=e?s(e,"e2e_processing_latency"):e)?s(e,"percentiles"):e)?s(e,"length"):e,{name:"if",hash:{},fn:n.program(32,a,0),inverse:n.noop,data:a,loc:{start:{line:114,column:12},end:{line:118,column:19}}}))?e:"")+" </tr>\n"},32:function(n,e,t,l,a){var o=n.escapeExpression,r=null!=e?e:n.nullContext||{},i=n.hooks.helperMissing,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td colspan="'+o(n.lambda(null!=(n=null!=(n=null!=e?s(e,"e2e_processing_latency"):e)?s(n,"percentiles"):n)?s(n,"length"):n,e))+'">\n <a href="'+o((s(t,"large_graph")||e&&s(e,"large_graph")||i).call(r,"e2e",null!=e?s(e,"node"):e,null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"large_graph",hash:{},data:a,loc:{start:{line:116,column:25},end:{line:116,column:102}}}))+'"><img width="120" height="20" src="'+o((s(t,"sparkline")||e&&s(e,"sparkline")||i).call(r,"e2e",null!=e?s(e,"node"):e,null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"sparkline",hash:{},data:a,loc:{start:{line:116,column:138},end:{line:116,column:213}}}))+'"></a>\n </td>\n'},34:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr class="graph-row">\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"depth",{name:"large_graph",hash:{},data:a,loc:{start:{line:146,column:25},end:{line:146,column:87}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"depth",{name:"sparkline",hash:{},data:a,loc:{start:{line:146,column:124},end:{line:146,column:184}}}))+'"></a></td>\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"in_flight_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:148,column:25},end:{line:148,column:97}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"in_flight_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:148,column:134},end:{line:148,column:204}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"deferred_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:149,column:25},end:{line:149,column:96}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"deferred_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:149,column:133},end:{line:149,column:202}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"requeue_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:150,column:25},end:{line:150,column:95}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"requeue_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:150,column:132},end:{line:150,column:200}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"timeout_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:151,column:25},end:{line:151,column:95}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"timeout_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:151,column:132},end:{line:151,column:200}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"message_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:152,column:25},end:{line:152,column:95}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"message_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:152,column:132},end:{line:152,column:200}}}))+'"></a></td>\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"clients",{name:"large_graph",hash:{},data:a,loc:{start:{line:154,column:25},end:{line:154,column:89}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"clients",{name:"sparkline",hash:{},data:a,loc:{start:{line:154,column:126},end:{line:154,column:188}}}))+'"></a></td>\n'+(null!=(e=s(t,"if").call(o,null!=(e=null!=(e=null!=e?s(e,"e2e_processing_latency"):e)?s(e,"percentiles"):e)?s(e,"length"):e,{name:"if",hash:{},fn:n.program(35,a,0),inverse:n.noop,data:a,loc:{start:{line:155,column:12},end:{line:159,column:19}}}))?e:"")+" </tr>\n"},35:function(n,e,t,l,a){var o=n.escapeExpression,r=null!=e?e:n.nullContext||{},i=n.hooks.helperMissing,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td colspan="'+o(n.lambda(null!=(n=null!=(n=null!=e?s(e,"e2e_processing_latency"):e)?s(n,"percentiles"):n)?s(n,"length"):n,e))+'">\n <a href="'+o((s(t,"large_graph")||e&&s(e,"large_graph")||i).call(r,"e2e",null!=e?s(e,"node"):e,null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"large_graph",hash:{},data:a,loc:{start:{line:157,column:25},end:{line:157,column:102}}}))+'"><img width="120" height="20" src="'+o((s(t,"sparkline")||e&&s(e,"sparkline")||i).call(r,"e2e",null!=e?s(e,"node"):e,null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"sparkline",hash:{},data:a,loc:{start:{line:157,column:139},end:{line:157,column:214}}}))+'"></a>\n </td>\n'},37:function(n,e,t,l,a){return' <div class="alert alert-warning"><h4>注意</h4>没有客户端连接</div>\n'},39:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <table class="table table-bordered table-condensed">\n <tr>\n <th>主机</th>\n <th>客户端</th>\n <th>属性</th>\n <th>消息服务主机</th>\n <th>处理中</th>\n <th>就绪数</th>\n <th>完成</th>\n <th>重入队列</th>\n <th>消息</th>\n <th>已连接</th>\n </tr>\n'+(null!=(a=o(t,"each").call(null!=e?e:n.nullContext||{},null!=e?o(e,"clients"):e,{name:"each",hash:{},fn:n.program(40,a,0),inverse:n.noop,data:a,loc:{start:{line:187,column:12},end:{line:220,column:21}}}))?a:"")+" </table>\n"},40:function(n,e,t,l,a){var o,r,i=null!=e?e:n.nullContext||{},s=n.hooks.helperMissing,c="function",u=n.escapeExpression,h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr>\n <td title="'+u(typeof(r=null!=(r=h(t,"remote_address")||(null!=e?h(e,"remote_address"):e))?r:s)==c?r.call(i,{name:"remote_address",hash:{},data:a,loc:{start:{line:189,column:27},end:{line:189,column:45}}}):r)+'">'+u(typeof(r=null!=(r=h(t,"hostname_port")||(null!=e?h(e,"hostname_port"):e))?r:s)==c?r.call(i,{name:"hostname_port",hash:{},data:a,loc:{start:{line:189,column:47},end:{line:189,column:64}}}):r)+(null!=(o=h(t,"if").call(i,null!=e?h(e,"show_client_id"):e,{name:"if",hash:{},fn:n.program(41,a,0),inverse:n.noop,data:a,loc:{start:{line:189,column:64},end:{line:189,column:109}}}))?o:"")+"</td>\n <td>"+(null!=(o=h(t,"if").call(i,null!=(o=null!=e?h(e,"user_agent"):e)?h(o,"length"):o,{name:"if",hash:{},fn:n.program(43,a,0),inverse:n.noop,data:a,loc:{start:{line:190,column:20},end:{line:190,column:81}}}))?o:"")+"</td>\n <td>\n"+(null!=(o=h(t,"if").call(i,null!=e?h(e,"sample_rate"):e,{name:"if",hash:{},fn:n.program(45,a,0),inverse:n.noop,data:a,loc:{start:{line:192,column:20},end:{line:194,column:27}}}))?o:"")+(null!=(o=h(t,"if").call(i,null!=e?h(e,"tls"):e,{name:"if",hash:{},fn:n.program(47,a,0),inverse:n.noop,data:a,loc:{start:{line:195,column:20},end:{line:197,column:27}}}))?o:"")+(null!=(o=h(t,"if").call(i,null!=e?h(e,"deflate"):e,{name:"if",hash:{},fn:n.program(50,a,0),inverse:n.noop,data:a,loc:{start:{line:198,column:20},end:{line:200,column:27}}}))?o:"")+(null!=(o=h(t,"if").call(i,null!=e?h(e,"snappy"):e,{name:"if",hash:{},fn:n.program(52,a,0),inverse:n.noop,data:a,loc:{start:{line:201,column:20},end:{line:203,column:27}}}))?o:"")+(null!=(o=h(t,"if").call(i,null!=e?h(e,"authed"):e,{name:"if",hash:{},fn:n.program(54,a,0),inverse:n.noop,data:a,loc:{start:{line:204,column:20},end:{line:210,column:27}}}))?o:"")+' </td>\n <td><a class="link" href="'+u((h(t,"basePath")||e&&h(e,"basePath")||s).call(i,"/nodes",{name:"basePath",hash:{},data:a,loc:{start:{line:212,column:42},end:{line:212,column:63}}}))+"/"+u(typeof(r=null!=(r=h(t,"node")||(null!=e?h(e,"node"):e))?r:s)==c?r.call(i,{name:"node",hash:{},data:a,loc:{start:{line:212,column:64},end:{line:212,column:72}}}):r)+'">'+u(typeof(r=null!=(r=h(t,"node")||(null!=e?h(e,"node"):e))?r:s)==c?r.call(i,{name:"node",hash:{},data:a,loc:{start:{line:212,column:74},end:{line:212,column:82}}}):r)+"</a></td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||s).call(i,null!=e?h(e,"in_flight_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:213,column:20},end:{line:213,column:47}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||s).call(i,null!=e?h(e,"ready_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:214,column:20},end:{line:214,column:43}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||s).call(i,null!=e?h(e,"finish_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:215,column:20},end:{line:215,column:44}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||s).call(i,null!=e?h(e,"requeue_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:216,column:20},end:{line:216,column:45}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||s).call(i,null!=e?h(e,"message_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:217,column:20},end:{line:217,column:45}}}))+"</td>\n <td>"+u((h(t,"nanotohuman")||e&&h(e,"nanotohuman")||s).call(i,null!=e?h(e,"connected"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:218,column:20},end:{line:218,column:45}}}))+"</td>\n </tr>\n"},41:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" ("+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"client_id")||(null!=e?o(e,"client_id"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"client_id",hash:{},data:a,loc:{start:{line:189,column:88},end:{line:189,column:101}}}):o)+")"},43:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return"<small>"+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"user_agent")||(null!=e?o(e,"user_agent"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"user_agent",hash:{},data:a,loc:{start:{line:190,column:52},end:{line:190,column:66}}}):o)+"</small>"},45:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <span class="label label-info">Sampled '+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"sample_rate")||(null!=e?o(e,"sample_rate"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"sample_rate",hash:{},data:a,loc:{start:{line:193,column:63},end:{line:193,column:78}}}):o)+"%</span>\n"},47:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <span class="label label-warning" '+(null!=(a=o(t,"if").call(null!=e?e:n.nullContext||{},null!=e?o(e,"tls_version"):e,{name:"if",hash:{},fn:n.program(48,a,0),inverse:n.noop,data:a,loc:{start:{line:196,column:58},end:{line:196,column:201}}}))?a:"")+">TLS</span>\n"},48:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i="function",s=n.escapeExpression,c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'title="'+s(typeof(n=null!=(n=c(t,"tls_version")||(null!=e?c(e,"tls_version"):e))?n:r)==i?n.call(o,{name:"tls_version",hash:{},data:a,loc:{start:{line:196,column:84},end:{line:196,column:99}}}):n)+" "+s(typeof(n=null!=(n=c(t,"tls_cipher_suite")||(null!=e?c(e,"tls_cipher_suite"):e))?n:r)==i?n.call(o,{name:"tls_cipher_suite",hash:{},data:a,loc:{start:{line:196,column:100},end:{line:196,column:120}}}):n)+" "+s(typeof(n=null!=(n=c(t,"tls_negotiated_protocol")||(null!=e?c(e,"tls_negotiated_protocol"):e))?n:r)==i?n.call(o,{name:"tls_negotiated_protocol",hash:{},data:a,loc:{start:{line:196,column:121},end:{line:196,column:148}}}):n)+" mutual:"+s(typeof(n=null!=(n=c(t,"tls_negotiated_protocol_is_mutual")||(null!=e?c(e,"tls_negotiated_protocol_is_mutual"):e))?n:r)==i?n.call(o,{name:"tls_negotiated_protocol_is_mutual",hash:{},data:a,loc:{start:{line:196,column:156},end:{line:196,column:193}}}):n)+'"'},50:function(n,e,t,l,a){return' <span class="label label-default">Deflate</span>\n'},52:function(n,e,t,l,a){return' <span class="label label-primary">Snappy</span>\n'},54:function(n,e,t,l,a){var o,r=null!=e?e:n.nullContext||{},i=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <span class="label label-success">\n '+(null!=(o=i(t,"if").call(r,null!=e?i(e,"auth_identity_url"):e,{name:"if",hash:{},fn:n.program(55,a,0),inverse:n.noop,data:a,loc:{start:{line:206,column:24},end:{line:206,column:88}}}))?o:"")+'\n <span class="glyphicon glyphicon-user white" title="Authed'+(null!=(o=i(t,"if").call(r,null!=e?i(e,"auth_identity"):e,{name:"if",hash:{},fn:n.program(57,a,0),inverse:n.noop,data:a,loc:{start:{line:207,column:82},end:{line:207,column:137}}}))?o:"")+'"></span>\n '+(null!=(o=i(t,"if").call(r,null!=e?i(e,"auth_identity_url"):e,{name:"if",hash:{},fn:n.program(59,a,0),inverse:n.noop,data:a,loc:{start:{line:208,column:24},end:{line:208,column:60}}}))?o:"")+"\n </span>\n"},55:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<a href="'+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"auth_identity_url")||(null!=e?o(e,"auth_identity_url"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"auth_identity_url",hash:{},data:a,loc:{start:{line:206,column:58},end:{line:206,column:79}}}):o)+'">'},57:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" Identity:"+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"auth_identity")||(null!=e?o(e,"auth_identity"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"auth_identity",hash:{},data:a,loc:{start:{line:207,column:113},end:{line:207,column:130}}}):o)},59:function(n,e,t,l,a){return"</a>"},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,h="function",p=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return(null!=(i=n.invokePartial(p(l,"warning"),e,{name:"warning",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+(null!=(i=n.invokePartial(p(l,"error"),e,{name:"error",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+'\n<ol class="breadcrumb">\n <li><a class="link" href="'+u((p(t,"basePath")||e&&p(e,"basePath")||c).call(s,"/",{name:"basePath",hash:{},data:a,loc:{start:{line:5,column:28},end:{line:5,column:44}}}))+'">数据流</a>\n <li><a class="link" href="'+u((p(t,"basePath")||e&&p(e,"basePath")||c).call(s,"/topics",{name:"basePath",hash:{},data:a,loc:{start:{line:6,column:28},end:{line:6,column:50}}}))+"/"+u((p(t,"urlencode")||e&&p(e,"urlencode")||c).call(s,null!=e?p(e,"topic"):e,{name:"urlencode",hash:{},data:a,loc:{start:{line:6,column:51},end:{line:6,column:70}}}))+'">'+u(typeof(l=null!=(l=p(t,"topic")||(null!=e?p(e,"topic"):e))?l:c)==h?l.call(s,{name:"topic",hash:{},data:a,loc:{start:{line:6,column:72},end:{line:6,column:81}}}):l)+'</a>\n <li class="active">'+u(typeof(l=null!=(l=p(t,"name")||(null!=e?p(e,"name"):e))?l:c)==h?l.call(s,{name:"name",hash:{},data:a,loc:{start:{line:7,column:21},end:{line:7,column:29}}}):l)+'</li>\n</ol>\n\n<div class="row">\n <div class="col-md-6">\n <blockquote>\n <p>主题:<strong>'+u(typeof(l=null!=(l=p(t,"topic")||(null!=e?p(e,"topic"):e))?l:c)==h?l.call(s,{name:"topic",hash:{},data:a,loc:{start:{line:13,column:26},end:{line:13,column:35}}}):l)+"</strong>\n <p>通道: <strong>"+u(typeof(l=null!=(l=p(t,"name")||(null!=e?p(e,"name"):e))?l:c)==h?l.call(s,{name:"name",hash:{},data:a,loc:{start:{line:14,column:27},end:{line:14,column:35}}}):l)+"</strong>\n </blockquote>\n </div>\n</div>\n\n"+(null!=(i=p(t,"unless").call(s,null!=(i=null!=e?p(e,"nodes"):e)?p(i,"length"):i,{name:"unless",hash:{},fn:n.program(1,a,0,o,r),inverse:n.program(3,a,0,o,r),data:a,loc:{start:{line:19,column:0},end:{line:165,column:11}}}))?i:"")+'\n<h4>客户端连接</h4>\n\n<div class="row">\n <div class="col-md-12">\n'+(null!=(i=p(t,"unless").call(s,null!=(i=null!=e?p(e,"clients"):e)?p(i,"length"):i,{name:"unless",hash:{},fn:n.program(37,a,0,o,r),inverse:n.program(39,a,0,o,r),data:a,loc:{start:{line:171,column:8},end:{line:222,column:19}}}))?i:"")+" </div>\n</div>\n"},usePartial:!0,useData:!0,useDepths:!0})},{"hbsfy/runtime":35}],50:[function(t,n,e){var l=t("jquery");window.jQuery=l;t("bootstrap");var a=t("bootbox"),o=t("../lib/pubsub"),r=t("../app_state"),i=t("./base"),s=i.extend({className:"channel container-fluid",template:t("./spinner.hbs"),events:{"click .channel-actions button":"channelAction"},initialize:function(){i.prototype.initialize.apply(this,arguments),this.listenTo(r,"change:graph_interval",this.render);var e=this.model.get("isAdmin");this.model.fetch().done(function(n){this.template=t("./channel.hbs"),this.render({message:n.message,isAdmin:e})}.bind(this)).fail(this.handleViewError.bind(this)).always(o.trigger.bind(o,"view:ready"))},channelAction:function(n){n.preventDefault(),n.stopPropagation();var t=l(n.currentTarget).data("action"),n="Are you sure you want to <strong>"+t+"</strong> <em>"+this.model.get("topic")+"/"+this.model.get("name")+"</em>?";a.confirm(n,function(n){var e;!0===n&&("delete"===t?(e=this.model.get("topic"),l.ajax(this.model.url(),{method:"DELETE"}).done(function(){window.location=r.basePath("/topics/"+encodeURIComponent(e))}).fail(this.handleAJAXError.bind(this))):l.post(this.model.url(),JSON.stringify({action:t})).done(function(){window.location.reload(!0)}).fail(this.handleAJAXError.bind(this)))}.bind(this))}});n.exports=s},{"../app_state":36,"../lib/pubsub":41,"./base":48,"./channel.hbs":49,"./spinner.hbs":62,bootbox:void 0,bootstrap:1,jquery:void 0}],51:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <img id="big_graph" height="500" src="'+n.escapeExpression((o(t,"large_graph")||e&&o(e,"large_graph")||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"counter","*","","","message_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:206,column:42},end:{line:206,column:93}}}))+'"/>\n'},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a){var o,r=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return"<style>\nbody {\n background-color:#000;\n}\n/*\n * .numbers : The container for .number\n */\n\n#numbers {\n text-align:center;\n margin-top:100px;\n}\n\n.numbers {\n font-family: 'Francois One', sans-serif;\n font-size: 70px;\n color: white;\n white-space: nowrap;\n position: relative;\n direction: ltr;\n vertical-align: middle;\n height: 70px;\n}\n\n\n/*\n * .number : The container for each number\n */\n\n.number {\n width: 50px;\n height: 70px;\n position: relative;\n display: inline-block;\n margin: 2px;\n border-radius: 5px;\n box-shadow: #999 0 -1px 0px 0px, #444 0 1px 0px 0px;\n}\n\n\n/*\n * Little white stuffs that link the top and the bottom\n */\n\n.number:before {\n content: '';\n display: block;\n width: 3px;\n height: 6px;\n background: white;\n position: absolute;\n left: 0;\n top: 30px;\n z-index: 2;\n box-shadow: inset rgb(130, 130, 130) 0 0 0px 1px;\n border-right: 1px solid black;\n border-top: 1px solid black;\n border-bottom: 1px solid black;\n}\n\n.number:after {\n content: '';\n display: block;\n width: 3px;\n height: 6px;\n background: rgb(200, 200, 200);\n position: absolute;\n right: 0;\n top: 30px;\n z-index: 2;\n box-shadow: inset rgb(130, 130, 130) 0 0 0px 1px;\n border-left: 1px solid black;\n border-top: 1px solid black;\n border-bottom: 1px solid black; \n}\n\n/*\n * The panels\n */\n\n.number .top, .number .bottom {\n display: block;\n height: 35px;\n width: 50px;\n text-align: center;\n overflow: hidden;\n border-radius: 3px;\n background: -webkit-linear-gradient(90deg, rgb(30, 30, 30), rgb(90, 90, 90));\n background: -o-linear-gradient(90deg, rgb(30, 30, 30), rgb(90, 90, 90));\n background: linear-gradient(0deg, rgb(30, 30, 30), rgb(90, 90, 90));\n background-size: 50px 70px;\n}\n\n.number .top {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n -o-box-sizing: border-box;\n box-sizing: border-box;\n line-height: 70px;\n border-top-left-radius: 5px; \n border-top-right-radius: 5px;\n background-position: 0px 0px;\n border-bottom: 1px solid black;\n}\n\n.number .bottom {\n line-height: 0px;\n border-bottom-left-radius: 5px; \n border-bottom-right-radius: 5px;\n background-position: 0px 35px; \n}\n\n/*\n * Panel animations\n */\n\n/* The new top panel */\n.number .top:nth-last-of-type(4) {\n position: absolute;\n z-index: 0;\n}\n\n/* The old top panel */\n.number .top:nth-last-of-type(3) {\n animation-duration: 0.2s;\n animation-name: top;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in; \n z-index: 1;\n\n -moz-transform-origin: 0 100%;\n -webkit-transform-origin: 0 100%;\n -o-transform-origin: 0 100%;\n transform-origin: 0 100%;\n}\n\n@keyframes top {\n from {\n -moz-transform: scaleY(1);\n -webkit-transform: scaleY(1);\n -o-transform: scaleY(1);\n transform: scaleY(1);\n }\n \n to {\n -moz-transform: scaleY(0);\n -webkit-transform: scaleY(0);\n -o-transform: scaleY(0);\n transform: scaleY(0);\n }\n}\n\n/* The new bottom panel */\n.number .bottom:nth-last-of-type(2) {\n position: absolute;\n z-index: 1;\n\n animation-duration: 0.2s;\n animation-name: bottom;\n animation-delay: 0.2s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-out;\n\n -moz-transform: scaleY(0);\n -moz-transform-origin: 0 0;\n}\n\n@keyframes bottom {\n from {\n -moz-transform: scaleY(0);\n }\n \n to {\n -moz-transform: scaleY(1);\n }\n}\n\n/* The old bottom panel */\n.number .top:nth-last-of-type(1) {\n z-index: -1;\n}\n\n.processed {\n font-color:#bbb;\n margin:50px;\n font-size:24pt;\n font-family:Helvetica;\n}\n.messagerate {\n font-color:#bbb;\n margin:25px;\n font-size:20pt;\n font-family:Helvetica;\n}\n</style>\n\n"+(null!=(o=n.invokePartial(r(l,"warning"),e,{name:"warning",data:a,helpers:t,partials:l,decorators:n.decorators}))?o:"")+(null!=(o=n.invokePartial(r(l,"error"),e,{name:"error",data:a,helpers:t,partials:l,decorators:n.decorators}))?o:"")+'\n<div id="numbers">\n<div class="numbers">\n</div>\n<p class="processed">处理消息总数</p>\n<p class="messagerate"></p>\n'+(null!=(o=r(t,"if").call(null!=e?e:n.nullContext||{},null!=e?r(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(1,a,0),inverse:n.noop,data:a,loc:{start:{line:205,column:0},end:{line:207,column:7}}}))?o:"")+"</div>\n"},usePartial:!0,useData:!0})},{"hbsfy/runtime":35}],52:[function(n,e,t){var l=n("underscore"),i=n("jquery"),a=n("../app_state"),o=n("./base"),n=o.extend({className:"counter container-fluid",template:n("./counter.hbs"),initialize:function(){o.prototype.initialize.apply(this,arguments),this.listenTo(a,"change:graph_interval",this.render),this.start()},remove:function(){clearTimeout(this.poller),clearTimeout(this.animator),o.prototype.remove.apply(this,arguments)},start:function(){this.poller=null,this.animator=null,this.delta=0,this.looping=!1,this.targetPollInterval=1e4,this.currentNum=-1,this.interval=100,this.graphUrl=null,this.updateStats()},startLoop:function(n){this.interval=n,this.poller=setTimeout(this.updateStats.bind(this),n)},updateStats:function(){var n;i.get(a.apiPath("/counter")).done(function(n){var e,t;this.removed||(t=l.reduce(n.stats,function(n,e){return n+e.message_count},0),-1===this.currentNum?(this.currentNum=t,this.writeCounts(this.currentNum)):t>this.lastNum&&(e=t-this.lastNum,this.delta=e/(this.interval/1e3)/50,this.animator||this.displayFrame()),this.currentNum=this.lastNum,this.lastNum=t,(t=this.interval)<this.targetPollInterval&&(t=this.interval+1e3),this.startLoop(t),i("#warning, #error").hide(),""!==n.message&&(i("#warning .alert").text(n.message),i("#warning").show()))}.bind(this)).fail(function(n){this.removed||(clearTimeout(this.animator),this.animator=null,this.startLoop(1e4),this.handleAJAXError(n))}.bind(this)),i("#big_graph").length&&(this.graphUrl||(this.graphUrl=i("#big_graph").attr("src")),n=Math.floor(1e6*Math.random()),i("#big_graph").attr("src",this.graphUrl+"&_uniq="+n))},displayFrame:function(){this.currentNum+=this.delta,this.writeCounts(this.currentNum),this.animator=setTimeout(this.displayFrame.bind(this),1e3/60)},writeCounts:function(n){for(var t=parseInt(n,10).toString(),e=i(".numbers")[0],l=i(".numbers .number"),a=0;a<t.length;a++){var o,r=t.charAt(a);l.length>a?((o=i(l[a])).show(),o.find(".top").text(r),o.find(".bottom").text(r)):i(e).append('<span class="number"><span class="top">'+r+'</span><span class="bottom">'+r+"</span></span>\n")}i(".numbers .number").each(function(n,e){n>=t.length&&i(e).hide()})}});e.exports=n},{"../app_state":36,"./base":48,"./counter.hbs":51,jquery:void 0,underscore:void 0}],53:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a){var o,r=null!=e?e:n.nullContext||{},i=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<div class="row" id="error" '+(null!=(o=i(t,"unless").call(r,null!=e?i(e,"message"):e,{name:"unless",hash:{},fn:n.program(1,a,0),inverse:n.noop,data:a,loc:{start:{line:1,column:28},end:{line:1,column:80}}}))?o:"")+'>\n <div class="col-md-12">\n <div class="alert alert-danger">\n '+n.escapeExpression("function"==typeof(e=null!=(e=i(t,"message")||(null!=e?i(e,"message"):e))?e:n.hooks.helperMissing)?e.call(r,{name:"message",hash:{},data:a,loc:{start:{line:4,column:12},end:{line:4,column:23}}}):e)+"\n </div>\n </div>\n</div>\n"},useData:!0})},{"hbsfy/runtime":35}],54:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a){var o,r=null!=e?e:n.nullContext||{},i=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <li class="dropdown">\n <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-picture white"></span> '+n.escapeExpression("function"==typeof(o=null!=(o=i(t,"graph_interval")||(null!=e?i(e,"graph_interval"):e))?o:n.hooks.helperMissing)?o.call(r,{name:"graph_interval",hash:{},data:a,loc:{start:{line:21,column:171},end:{line:21,column:189}}}):o)+' <span class="caret"></span></a>\n <ul class="dropdown-menu">\n <li class="dropdown-header">Graph Timeframe</li>\n'+(null!=(a=i(t,"each").call(r,null!=e?i(e,"graph_intervals"):e,{name:"each",hash:{},fn:n.program(2,a,0),inverse:n.noop,data:a,loc:{start:{line:24,column:20},end:{line:26,column:29}}}))?a:"")+" </ul>\n </li>\n"},2:function(n,e,t,l,a){return' <li><a href="javascript:;">'+n.escapeExpression(n.lambda(e,e))+"</a></li>\n"},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<nav class="navbar navbar-inverse navbar-static-top">\n <div class="container-fluid">\n <div class="navbar-header">\n <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </button>\n <a class="navbar-brand" href="'+i((s(t,"basePath")||e&&s(e,"basePath")||r).call(o,"/",{name:"basePath",hash:{},data:a,loc:{start:{line:11,column:42},end:{line:11,column:58}}}))+'">SMQ</a>\n </div>\n <div class="collapse navbar-collapse" id="navbar">\n <ul class="nav navbar-nav">\n <li><a class="link" href="'+i((s(t,"basePath")||e&&s(e,"basePath")||r).call(o,"/",{name:"basePath",hash:{},data:a,loc:{start:{line:15,column:42},end:{line:15,column:58}}}))+'">消息主题</a></li>\n <li><a class="link" href="'+i((s(t,"basePath")||e&&s(e,"basePath")||r).call(o,"/nodes",{name:"basePath",hash:{},data:a,loc:{start:{line:16,column:42},end:{line:16,column:63}}}))+'">消息服务实例</a></li>\n <li><a class="link" href="'+i((s(t,"basePath")||e&&s(e,"basePath")||r).call(o,"/counter",{name:"basePath",hash:{},data:a,loc:{start:{line:17,column:42},end:{line:17,column:65}}}))+'">统计</a></li>\n <li><a class="link" href="'+i((s(t,"basePath")||e&&s(e,"basePath")||r).call(o,"/lookup",{name:"basePath",hash:{},data:a,loc:{start:{line:18,column:42},end:{line:18,column:64}}}))+'">服务发现</a></li>\n'+(null!=(a=s(t,"if").call(o,null!=e?s(e,"graph_enabled"):e,{name:"if",hash:{},fn:n.program(1,a,0),inverse:n.noop,data:a,loc:{start:{line:19,column:16},end:{line:29,column:23}}}))?a:"")+' </ul>\n <ul class="nav navbar-nav navbar-right">\n <li class="hidden-xs"><p class="navbar-text"><span class="label label-success">v1.0.0</span></p></li>\n </ul>\n </ul>\n </div>\n </div>\n</nav>\n'},useData:!0})},{"hbsfy/runtime":35}],55:[function(n,e,t){var l=n("underscore"),a=n("jquery"),o=n("../app_state"),r=n("./base"),n=r.extend({className:"header",template:n("./header.hbs"),events:{"click .dropdown-menu li":"onGraphIntervalClick"},initialize:function(){r.prototype.initialize.apply(this,arguments),this.listenTo(o,"change:graph_interval",this.render)},getRenderCtx:function(){return l.extend(r.prototype.getRenderCtx.apply(this,arguments),{graph_intervals:["1h","2h","12h","24h","48h","168h","off"],graph_interval:o.get("graph_interval")})},onReset:function(){this.render(),this.$(".dropdown-toggle").dropdown()},onGraphIntervalClick:function(n){n.stopPropagation(),o.set("graph_interval",a(n.target).text())}});e.exports=n},{"../app_state":36,"./base":48,"./header.hbs":54,jquery:void 0,underscore:void 0}],56:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a){return'<div class="alert alert-warning">\n <h4>注意</h4> 消息服务发现实例未运行\n</div>\n'},3:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<div class="row">\n <div class="col-md-4">\n <table class="table table-bordered table-condensed">\n <tr>\n <th>消息服务发现实例</th>\n </tr>\n'+(null!=(i=c(t,"each").call(s,null!=e?c(e,"nsqlookupd"):e,{name:"each",hash:{},fn:n.program(4,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:21,column:12},end:{line:23,column:21}}}))?i:"")+' </table>\n </div>\n</div>\n\n<div class="row">\n <div class="col-md-4">\n'+(null!=(i=c(t,"if").call(s,null!=e?c(e,"topics"):e,{name:"if",hash:{},fn:n.program(6,a,0,o,r),inverse:n.program(10,a,0,o,r),data:a,loc:{start:{line:30,column:8},end:{line:50,column:15}}}))?i:"")+" </div>\n</div>\n\n"+(null!=(i=c(t,"if").call(s,null!=e?c(e,"isAdmin"):e,{name:"if",hash:{},fn:n.program(12,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:54,column:0},end:{line:69,column:7}}}))?i:"")},4:function(n,e,t,l,a){return" <tr><td>"+n.escapeExpression(n.lambda(e,e))+"</td></tr>\n"},6:function(n,e,t,l,a,o,r){var i=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" <ul>\n"+(null!=(a=i(t,"each").call(null!=e?e:n.nullContext||{},null!=e?i(e,"topics"):e,{name:"each",hash:{},fn:n.program(7,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:35,column:12},end:{line:46,column:21}}}))?a:"")+" </ul>\n"},7:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u="function",h=n.escapeExpression,p=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <li>\n <button class="btn-link red delete-topic-link" data-topic="'+h(typeof(i=null!=(i=p(t,"name")||(null!=e?p(e,"name"):e))?i:c)==u?i.call(s,{name:"name",hash:{},data:a,loc:{start:{line:37,column:75},end:{line:37,column:83}}}):i)+'" style="padding: 0 6px; border: 0;">✘</button> <a class="link" href="'+h((p(t,"basePath")||e&&p(e,"basePath")||c).call(s,"/topics",{name:"basePath",hash:{},data:a,loc:{start:{line:37,column:153},end:{line:37,column:175}}}))+"/"+h(typeof(i=null!=(i=p(t,"name")||(null!=e?p(e,"name"):e))?i:c)==u?i.call(s,{name:"name",hash:{},data:a,loc:{start:{line:37,column:176},end:{line:37,column:184}}}):i)+'">'+h(typeof(i=null!=(i=p(t,"name")||(null!=e?p(e,"name"):e))?i:c)==u?i.call(s,{name:"name",hash:{},data:a,loc:{start:{line:37,column:186},end:{line:37,column:194}}}):i)+"</a>\n <ul>\n"+(null!=(a=p(t,"each").call(s,null!=e?p(e,"channels"):e,{name:"each",hash:{},fn:n.program(8,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:39,column:20},end:{line:43,column:29}}}))?a:"")+" </ul>\n </li>\n"},8:function(n,e,t,l,a,o,r){var i=n.lambda,s=n.escapeExpression,c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <li>\n <button class="btn-link red delete-channel-link" data-topic="'+s(i(null!=r[1]?c(r[1],"name"):r[1],e))+'" data-channel="'+s(i(e,e))+'" style="padding: 0 6px; border: 0;">✘</button> <a class="link" href="'+s((c(t,"basePath")||e&&c(e,"basePath")||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"/topics",{name:"basePath",hash:{},data:a,loc:{start:{line:41,column:190},end:{line:41,column:212}}}))+"/"+s(i(null!=r[1]?c(r[1],"name"):r[1],e))+"/"+s(i(e,e))+'">'+s(i(e,e))+"</a>\n </li>\n"},10:function(n,e,t,l,a){return' <div class="alert alert-warning"><h4>注意</h4>无活动的主题</div>\n'},12:function(n,e,t,l,a){return'<div class="row">\n <div class="col-md-4">\n <form class="hierarchy">\n <legend>创建主题/订阅通道</legend>\n <div class="alert alert-info">\n </div>\n <div class="form-group">\n <input type="text" name="topic" placeholder="主题名">\n <input type="text" name="channel" placeholder="通道名">\n </div>\n <button class="btn btn-default" type="submit">创建</button>\n </form>\n </div>\n</div>\n'},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a,o,r){var i,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return(null!=(i=n.invokePartial(s(l,"warning"),e,{name:"warning",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+(null!=(i=n.invokePartial(s(l,"error"),e,{name:"error",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+'\n<div class="row">\n <div class="col-md-12">\n <h2>消息服务发现</h2>\n </div>\n</div>\n\n'+(null!=(i=s(t,"unless").call(null!=e?e:n.nullContext||{},null!=(i=null!=e?s(e,"nsqlookupd"):e)?s(i,"length"):i,{name:"unless",hash:{},fn:n.program(1,a,0,o,r),inverse:n.program(3,a,0,o,r),data:a,loc:{start:{line:10,column:0},end:{line:70,column:11}}}))?i:"")},usePartial:!0,useData:!0,useDepths:!0})},{"hbsfy/runtime":35}],57:[function(t,n,e){var l=t("underscore"),a=t("jquery"),o=t("../app_state"),r=t("../lib/pubsub"),i=t("./base"),s=t("../models/topic"),c=t("../models/channel"),u=i.extend({className:"lookup container-fluid",template:t("./spinner.hbs"),events:{"click .hierarchy button":"onCreateTopicChannel","click .delete-topic-link":"onDeleteTopic","click .delete-channel-link":"onDeleteChannel"},initialize:function(){i.prototype.initialize.apply(this,arguments);var e=arguments[0].isAdmin;a.ajax(o.apiPath("/topics?inactive=true")).done(function(n){this.template=t("./lookup.hbs"),this.render({topics:l.map(n.topics,function(n,e){return{name:e,channels:n}}),message:n.message,isAdmin:e})}.bind(this)).fail(this.handleViewError.bind(this)).always(r.trigger.bind(r,"view:ready"))},onCreateTopicChannel:function(n){n.preventDefault(),n.stopPropagation();var e=a(n.target.form.elements.topic).val(),n=a(n.target.form.elements.channel).val();""===e&&""===n||a.post(o.apiPath("/topics"),JSON.stringify({topic:e,channel:n})).done(function(){window.location.reload(!0)}).fail(this.handleAJAXError.bind(this))},onDeleteTopic:function(n){n.preventDefault(),n.stopPropagation(),new s({name:a(n.target).data("topic")}).destroy({dataType:"text"}).done(function(){window.location.reload(!0)}).fail(this.handleAJAXError.bind(this))},onDeleteChannel:function(n){n.preventDefault(),n.stopPropagation(),new c({topic:a(n.target).data("topic"),name:a(n.target).data("channel")}).destroy({dataType:"text"}).done(function(){window.location.reload(!0)}).fail(this.handleAJAXError.bind(this))}});n.exports=u},{"../app_state":36,"../lib/pubsub":41,"../models/channel":43,"../models/topic":45,"./base":48,"./lookup.hbs":56,"./spinner.hbs":62,jquery:void 0,underscore:void 0}],58:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<div class="row">\n <div class="col-md-8 col-md-offset-2">\n <table class="table muted">\n <tr>\n <td>\n <a href="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"node",null!=e?n(e,"node"):e,"","","*_bytes",{name:"large_graph",hash:{},data:a,loc:{start:{line:15,column:19},end:{line:15,column:62}}}))+'"><img class="img-polaroid" width="200" src="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"node",null!=e?n(e,"node"):e,"","","*_bytes",{name:"large_graph",hash:{},data:a,loc:{start:{line:15,column:107},end:{line:15,column:150}}}))+'"/></a>\n <h5 style="text-align: center;">GC Pressure</h5>\n </td>\n <td>\n <a href="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"node",null!=e?n(e,"node"):e,"","","gc_pause_*",{name:"large_graph",hash:{},data:a,loc:{start:{line:19,column:19},end:{line:19,column:65}}}))+'"><img class="img-polaroid" width="200" src="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"node",null!=e?n(e,"node"):e,"","","gc_pause_*",{name:"large_graph",hash:{},data:a,loc:{start:{line:19,column:110},end:{line:19,column:156}}}))+'"/></a>\n <h5 style="text-align: center;">GC Pause Percentiles</h5>\n </td>\n <td>\n <a href="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"node",null!=e?n(e,"node"):e,"","","gc_runs",{name:"large_graph",hash:{},data:a,loc:{start:{line:23,column:19},end:{line:23,column:62}}}))+'"><img class="img-polaroid" width="200" src="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"node",null!=e?n(e,"node"):e,"","","gc_runs",{name:"large_graph",hash:{},data:a,loc:{start:{line:23,column:107},end:{line:23,column:150}}}))+'"/></a>\n <h5 style="text-align: center;">GC Runs</h5>\n </td>\n <td>\n <a href="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"node",null!=e?n(e,"node"):e,"","","heap_objects",{name:"large_graph",hash:{},data:a,loc:{start:{line:27,column:19},end:{line:27,column:67}}}))+'"><img class="img-polaroid" width="200" src="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"node",null!=e?n(e,"node"):e,"","","heap_objects",{name:"large_graph",hash:{},data:a,loc:{start:{line:27,column:112},end:{line:27,column:160}}}))+'"/></a>\n <h5 style="text-align: center;">Heap Objects In-Use</h5>\n </td>\n </tr>\n </table>\n </div>\n</div>\n'},3:function(n,e,t,l,a){return' <div class="alert alert-warning">\n <h4>注意</h4> 该消息服务实例上没有主题\n </div>\n'},5:function(n,e,t,l,a,o,r){var i,s=n.escapeExpression,c=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing,h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <table class="table table-condensed">\n <tr>\n <td colspan="2"><strong>'+s(n.lambda(null!=(i=null!=r[1]?h(r[1],"topics"):r[1])?h(i,"length"):i,e))+'</strong> 主题</td>\n <td colspan="7"></td>\n <td><strong>'+s((h(t,"commafy")||e&&h(e,"commafy")||u).call(c,null!=e?h(e,"total_messages"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:47,column:24},end:{line:47,column:50}}}))+"</strong> 消息</td>\n <td><strong>"+s((h(t,"commafy")||e&&h(e,"commafy")||u).call(c,null!=e?h(e,"total_clients"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:48,column:24},end:{line:48,column:49}}}))+"</strong> 客户端</td>\n </tr>\n"+(null!=(i=h(t,"each").call(c,null!=e?h(e,"topics"):e,{name:"each",hash:{},fn:n.program(6,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:50,column:8},end:{line:174,column:17}}}))?i:"")+" </table>\n"},6:function(n,e,t,l,a,o,r){var i,s=n.escapeExpression,c=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing,h="function",p=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr>\n <th colspan="3">主题</th>\n <th>队列</th>\n <th>内存 + 硬盘</th>\n <th colspan="4"></th>\n <th>消息</th>\n <th>通道</th>\n </tr>\n <tr class="info">\n <td colspan="3">\n <button class="btn-link red tombstone-link" data-node="'+s(n.lambda(null!=r[1]?p(r[1],"name"):r[1],e))+'" data-topic="'+s(typeof(i=null!=(i=p(t,"topic_name")||(null!=e?p(e,"topic_name"):e))?i:u)==h?i.call(c,{name:"topic_name",hash:{},data:a,loc:{start:{line:61,column:96},end:{line:61,column:110}}}):i)+'" style="padding: 0 6px; border: 0;">✘</button> '+s(typeof(i=null!=(i=p(t,"topic_name")||(null!=e?p(e,"topic_name"):e))?i:u)==h?i.call(c,{name:"topic_name",hash:{},data:a,loc:{start:{line:61,column:158},end:{line:61,column:172}}}):i)+"\n </td>\n <td>\n "+(null!=(i=p(t,"if").call(c,null!=r[1]?p(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(7,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:64,column:16},end:{line:64,column:177}}}))?i:"")+"\n "+s((p(t,"commafy")||e&&p(e,"commafy")||u).call(c,null!=e?p(e,"depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:65,column:16},end:{line:65,column:33}}}))+"\n </td>\n <td>"+s((p(t,"commafy")||e&&p(e,"commafy")||u).call(c,null!=e?p(e,"memory_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:67,column:16},end:{line:67,column:40}}}))+" + "+s((p(t,"commafy")||e&&p(e,"commafy")||u).call(c,null!=e?p(e,"backend_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:67,column:43},end:{line:67,column:68}}}))+'</td>\n <td colspan="4"></td>\n <td>\n '+(null!=(i=p(t,"if").call(c,null!=r[1]?p(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(9,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:70,column:16},end:{line:70,column:199}}}))?i:"")+"\n "+s((p(t,"commafy")||e&&p(e,"commafy")||u).call(c,null!=e?p(e,"message_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:71,column:16},end:{line:71,column:41}}}))+"\n </td>\n <td>"+s((p(t,"commafy")||e&&p(e,"commafy")||u).call(c,null!=(i=null!=e?p(e,"channels"):e)?p(i,"length"):i,{name:"commafy",hash:{},data:a,loc:{start:{line:73,column:16},end:{line:73,column:43}}}))+"</td>\n </tr>\n"+(null!=(i=p(t,"unless").call(c,null!=(i=null!=e?p(e,"channels"):e)?p(i,"length"):i,{name:"unless",hash:{},fn:n.program(11,a,0,o,r),inverse:n.program(13,a,0,o,r),data:a,loc:{start:{line:75,column:8},end:{line:173,column:19}}}))?i:"")},7:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<a href="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"topic",null!=e?n(e,"node"):e,null!=e?n(e,"name"):e,"","depth",{name:"large_graph",hash:{},data:a,loc:{start:{line:64,column:48},end:{line:64,column:92}}}))+'"><img width="120" src="'+i((n(t,"sparkline")||e&&n(e,"sparkline")||r).call(o,"topic",null!=e?n(e,"node"):e,null!=e?n(e,"topic_name"):e,"","depth",{name:"sparkline",hash:{},data:a,loc:{start:{line:64,column:116},end:{line:64,column:164}}}))+'"></a>'},9:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<a href="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"topic",null!=e?n(e,"node"):e,null!=e?n(e,"topic_name"):e,"","message_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:70,column:48},end:{line:70,column:106}}}))+'"><img width="120" src="'+i((n(t,"sparkline")||e&&n(e,"sparkline")||r).call(o,"topic",null!=e?n(e,"node"):e,null!=e?n(e,"topic_name"):e,"","message_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:70,column:130},end:{line:70,column:186}}}))+'"></a>'},11:function(n,e,t,l,a){return' <tr>\n <td colspan="11">\n <div class="alert alert-warning"><h4>注意</h4> 该主题没有订阅通道.</div>\n </td>\n </tr>\n'},13:function(n,e,t,l,a,o,r){var i=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return null!=(a=i(t,"each").call(null!=e?e:n.nullContext||{},null!=e?i(e,"channels"):e,{name:"each",hash:{},fn:n.program(14,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:82,column:8},end:{line:172,column:17}}}))?a:""},14:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr>\n <th width="25"></th>\n <th colspan="2">通道</th>\n <th>队列</th>\n <th>内存 + 磁盘</th>\n <th>处理中</th>\n <th>推迟</th>\n <th>重入</th>\n <th>超时</th>\n <th>消息</th>\n <th>连接</th>\n </tr>\n <tr class="warning">\n <td></td>\n <td colspan="2">\n '+u("function"==typeof(i=null!=(i=h(t,"channel_name")||(null!=e?h(e,"channel_name"):e))?i:c)?i.call(s,{name:"channel_name",hash:{},data:a,loc:{start:{line:98,column:16},end:{line:98,column:32}}}):i)+"\n "+(null!=(i=h(t,"if").call(s,null!=e?h(e,"paused"):e,{name:"if",hash:{},fn:n.program(15,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:99,column:16},end:{line:99,column:84}}}))?i:"")+"\n </td>\n <td>\n "+(null!=(i=h(t,"if").call(s,null!=r[3]?h(r[3],"graph_active"):r[3],{name:"if",hash:{},fn:n.program(17,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:102,column:16},end:{line:102,column:225}}}))?i:"")+"\n "+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:103,column:16},end:{line:103,column:33}}}))+"\n </td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"memory_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:105,column:16},end:{line:105,column:40}}}))+" + "+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"backend_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:105,column:43},end:{line:105,column:68}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"in_flight_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:106,column:16},end:{line:106,column:43}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"deferred_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:107,column:16},end:{line:107,column:42}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"requeue_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:108,column:16},end:{line:108,column:41}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"timeout_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:109,column:16},end:{line:109,column:41}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"message_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:110,column:16},end:{line:110,column:41}}}))+"</td>\n <td>\n "+(null!=(i=h(t,"if").call(s,null!=r[3]?h(r[3],"graph_active"):r[3],{name:"if",hash:{},fn:n.program(19,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:112,column:16},end:{line:112,column:229}}}))?i:"")+"\n "+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=(i=null!=e?h(e,"clients"):e)?h(i,"length"):i,{name:"commafy",hash:{},data:a,loc:{start:{line:113,column:16},end:{line:113,column:42}}}))+"\n </td>\n </tr>\n"+(null!=(i=h(t,"unless").call(s,null!=(i=null!=e?h(e,"clients"):e)?h(i,"length"):i,{name:"unless",hash:{},fn:n.program(21,a,0,o,r),inverse:n.program(23,a,0,o,r),data:a,loc:{start:{line:116,column:8},end:{line:171,column:19}}}))?i:"")},15:function(n,e,t,l,a){return'<span class="label label-primary">paused</span>'},17:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<a href="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"channel",null!=e?n(e,"node"):e,null!=e?n(e,"topic_name"):e,null!=e?n(e,"channel_name"):e,"depth",{name:"large_graph",hash:{},data:a,loc:{start:{line:102,column:54},end:{line:102,column:116}}}))+'"><img width="120" height="20" src="'+i((n(t,"sparkline")||e&&n(e,"sparkline")||r).call(o,"channel",null!=e?n(e,"node"):e,null!=e?n(e,"topic_name"):e,null!=e?n(e,"channel_name"):e,"depth",{name:"sparkline",hash:{},data:a,loc:{start:{line:102,column:152},end:{line:102,column:212}}}))+'"></a>'},19:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<a href="'+i((n(t,"large_graph")||e&&n(e,"large_graph")||r).call(o,"channel",null!=e?n(e,"node"):e,null!=e?n(e,"topic_name"):e,null!=e?n(e,"channel_name"):e,"clients",{name:"large_graph",hash:{},data:a,loc:{start:{line:112,column:54},end:{line:112,column:118}}}))+'"><img width="120" height="20" src="'+i((n(t,"sparkline")||e&&n(e,"sparkline")||r).call(o,"channel",null!=e?n(e,"node"):e,null!=e?n(e,"topic_name"):e,null!=e?n(e,"channel_name"):e,"clients",{name:"sparkline",hash:{},data:a,loc:{start:{line:112,column:154},end:{line:112,column:216}}}))+'"></a>'},21:function(n,e,t,l,a){return' <tr>\n <td colspan="11">\n <div class="alert alert-warning"><h4>Notice</h4>No clients connected to this channel.</div>\n </td>\n </tr>\n'},23:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" <tr>\n <th></th>\n <th>客户端主机</th>\n <th>客户端</th>\n <th></th>\n <th>属性</th>\n <th>处理中</th>\n <th>就绪</th>\n <th>重入</th>\n <th>结束</th>\n <th>消息</th>\n <th>连接</th>\n </tr>\n"+(null!=(a=o(t,"each").call(null!=e?e:n.nullContext||{},null!=e?o(e,"clients"):e,{name:"each",hash:{},fn:n.program(24,a,0),inverse:n.noop,data:a,loc:{start:{line:136,column:8},end:{line:170,column:17}}}))?a:"")},24:function(n,e,t,l,a){var o,r=null!=e?e:n.nullContext||{},i=n.hooks.helperMissing,s="function",c=n.escapeExpression,u=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr>\n <td></td>\n <td title="'+c(typeof(o=null!=(o=u(t,"remote_address")||(null!=e?u(e,"remote_address"):e))?o:i)==s?o.call(r,{name:"remote_address",hash:{},data:a,loc:{start:{line:139,column:23},end:{line:139,column:41}}}):o)+'">'+c(typeof(o=null!=(o=u(t,"hostname")||(null!=e?u(e,"hostname"):e))?o:i)==s?o.call(r,{name:"hostname",hash:{},data:a,loc:{start:{line:139,column:43},end:{line:139,column:55}}}):o)+(null!=(o=u(t,"if").call(r,null!=e?u(e,"show_client_id"):e,{name:"if",hash:{},fn:n.program(25,a,0),inverse:n.noop,data:a,loc:{start:{line:139,column:55},end:{line:139,column:100}}}))?o:"")+"</td>\n <td>"+(null!=(o=u(t,"if").call(r,null!=(o=null!=e?u(e,"user_agent"):e)?u(o,"length"):o,{name:"if",hash:{},fn:n.program(27,a,0),inverse:n.noop,data:a,loc:{start:{line:140,column:16},end:{line:140,column:77}}}))?o:"")+"</td>\n <td></td>\n <td>\n"+(null!=(o=u(t,"if").call(r,null!=e?u(e,"sample_rate"):e,{name:"if",hash:{},fn:n.program(29,a,0),inverse:n.noop,data:a,loc:{start:{line:143,column:16},end:{line:145,column:23}}}))?o:"")+(null!=(o=u(t,"if").call(r,null!=e?u(e,"tls"):e,{name:"if",hash:{},fn:n.program(31,a,0),inverse:n.noop,data:a,loc:{start:{line:146,column:16},end:{line:148,column:23}}}))?o:"")+(null!=(o=u(t,"if").call(r,null!=e?u(e,"deflate"):e,{name:"if",hash:{},fn:n.program(34,a,0),inverse:n.noop,data:a,loc:{start:{line:149,column:16},end:{line:151,column:23}}}))?o:"")+(null!=(o=u(t,"if").call(r,null!=e?u(e,"snappy"):e,{name:"if",hash:{},fn:n.program(36,a,0),inverse:n.noop,data:a,loc:{start:{line:152,column:16},end:{line:154,column:23}}}))?o:"")+(null!=(o=u(t,"if").call(r,null!=e?u(e,"authed"):e,{name:"if",hash:{},fn:n.program(38,a,0),inverse:n.noop,data:a,loc:{start:{line:155,column:16},end:{line:161,column:23}}}))?o:"")+" </td>\n <td>"+c((u(t,"commafy")||e&&u(e,"commafy")||i).call(r,null!=e?u(e,"in_flight_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:163,column:16},end:{line:163,column:43}}}))+"</td>\n <td>"+c((u(t,"commafy")||e&&u(e,"commafy")||i).call(r,null!=e?u(e,"ready_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:164,column:16},end:{line:164,column:39}}}))+"</td>\n <td>"+c((u(t,"commafy")||e&&u(e,"commafy")||i).call(r,null!=e?u(e,"requeue_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:165,column:16},end:{line:165,column:41}}}))+"</td>\n <td>"+c((u(t,"commafy")||e&&u(e,"commafy")||i).call(r,null!=e?u(e,"finish_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:166,column:16},end:{line:166,column:40}}}))+"</td>\n <td>"+c((u(t,"commafy")||e&&u(e,"commafy")||i).call(r,null!=e?u(e,"message_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:167,column:16},end:{line:167,column:41}}}))+"</td>\n <td>"+c((u(t,"nanotohuman")||e&&u(e,"nanotohuman")||i).call(r,null!=e?u(e,"connected"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:168,column:16},end:{line:168,column:41}}}))+"</td>\n </tr>\n"},25:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" ("+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"client_id")||(null!=e?o(e,"client_id"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"client_id",hash:{},data:a,loc:{start:{line:139,column:79},end:{line:139,column:92}}}):o)+")"},27:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return"<small>"+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"user_agent")||(null!=e?o(e,"user_agent"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"user_agent",hash:{},data:a,loc:{start:{line:140,column:48},end:{line:140,column:62}}}):o)+"</small>"},29:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <span class="label label-info">采样 '+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"sample_rate")||(null!=e?o(e,"sample_rate"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"sample_rate",hash:{},data:a,loc:{start:{line:144,column:54},end:{line:144,column:69}}}):o)+"%</span>\n"},31:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <span class="label label-warning" '+(null!=(a=o(t,"if").call(null!=e?e:n.nullContext||{},null!=e?o(e,"tls_version"):e,{name:"if",hash:{},fn:n.program(32,a,0),inverse:n.noop,data:a,loc:{start:{line:147,column:54},end:{line:147,column:197}}}))?a:"")+">TLS</span>\n"},32:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i="function",s=n.escapeExpression,c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'title="'+s(typeof(n=null!=(n=c(t,"tls_version")||(null!=e?c(e,"tls_version"):e))?n:r)==i?n.call(o,{name:"tls_version",hash:{},data:a,loc:{start:{line:147,column:80},end:{line:147,column:95}}}):n)+" "+s(typeof(n=null!=(n=c(t,"tls_cipher_suite")||(null!=e?c(e,"tls_cipher_suite"):e))?n:r)==i?n.call(o,{name:"tls_cipher_suite",hash:{},data:a,loc:{start:{line:147,column:96},end:{line:147,column:116}}}):n)+" "+s(typeof(n=null!=(n=c(t,"tls_negotiated_protocol")||(null!=e?c(e,"tls_negotiated_protocol"):e))?n:r)==i?n.call(o,{name:"tls_negotiated_protocol",hash:{},data:a,loc:{start:{line:147,column:117},end:{line:147,column:144}}}):n)+" mutual:"+s(typeof(n=null!=(n=c(t,"tls_negotiated_protocol_is_mutual")||(null!=e?c(e,"tls_negotiated_protocol_is_mutual"):e))?n:r)==i?n.call(o,{name:"tls_negotiated_protocol_is_mutual",hash:{},data:a,loc:{start:{line:147,column:152},end:{line:147,column:189}}}):n)+'"'},34:function(n,e,t,l,a){return' <span class="label label-default">Deflate</span>\n'},36:function(n,e,t,l,a){return' <span class="label label-primary">Snappy</span>\n'},38:function(n,e,t,l,a){var o,r=null!=e?e:n.nullContext||{},i=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <span class="label label-success">\n '+(null!=(o=i(t,"if").call(r,null!=e?i(e,"auth_identity_url"):e,{name:"if",hash:{},fn:n.program(39,a,0),inverse:n.noop,data:a,loc:{start:{line:157,column:20},end:{line:157,column:84}}}))?o:"")+'\n <span class="glyphicon glyphicon-user white" title="Authed'+(null!=(o=i(t,"if").call(r,null!=e?i(e,"auth_identity"):e,{name:"if",hash:{},fn:n.program(41,a,0),inverse:n.noop,data:a,loc:{start:{line:158,column:78},end:{line:158,column:133}}}))?o:"")+'"></span>\n '+(null!=(o=i(t,"if").call(r,null!=e?i(e,"auth_identity_url"):e,{name:"if",hash:{},fn:n.program(43,a,0),inverse:n.noop,data:a,loc:{start:{line:159,column:20},end:{line:159,column:56}}}))?o:"")+"\n </span>\n"},39:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<a href="'+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"auth_identity_url")||(null!=e?o(e,"auth_identity_url"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"auth_identity_url",hash:{},data:a,loc:{start:{line:157,column:54},end:{line:157,column:75}}}):o)+'">'},41:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" Identity:"+n.escapeExpression("function"==typeof(o=null!=(o=o(t,"auth_identity")||(null!=e?o(e,"auth_identity"):e))?o:n.hooks.helperMissing)?o.call(null!=e?e:n.nullContext||{},{name:"auth_identity",hash:{},data:a,loc:{start:{line:158,column:109},end:{line:158,column:126}}}):o)},43:function(n,e,t,l,a){return"</a>"},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return(null!=(i=n.invokePartial(h(l,"warning"),e,{name:"warning",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+(null!=(i=n.invokePartial(h(l,"error"),e,{name:"error",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+'\n<ol class="breadcrumb">\n <li><a class="link" href="'+u((h(t,"basePath")||e&&h(e,"basePath")||c).call(s,"/nodes",{name:"basePath",hash:{},data:a,loc:{start:{line:5,column:30},end:{line:5,column:51}}}))+'">消息服务实例</a>\n <li class="active">'+u("function"==typeof(u=null!=(u=h(t,"name")||(null!=e?h(e,"name"):e))?u:c)?u.call(s,{name:"name",hash:{},data:a,loc:{start:{line:6,column:23},end:{line:6,column:31}}}):u)+"</li>\n</ol>\n\n"+(null!=(i=h(t,"if").call(s,null!=e?h(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(1,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:9,column:0},end:{line:34,column:7}}}))?i:"")+'\n<div class="row">\n <div class="col-md-12">\n'+(null!=(i=h(t,"unless").call(s,null!=(i=null!=e?h(e,"topics"):e)?h(i,"length"):i,{name:"unless",hash:{},fn:n.program(3,a,0,o,r),inverse:n.program(5,a,0,o,r),data:a,loc:{start:{line:38,column:4},end:{line:176,column:15}}}))?i:"")+"</div>\n"},usePartial:!0,useData:!0,useDepths:!0})},{"hbsfy/runtime":35}],59:[function(e,n,t){var l=e("../lib/pubsub"),a=e("../app_state"),o=e("./base"),r=o.extend({className:"node container-fluid",template:e("./spinner.hbs"),initialize:function(){o.prototype.initialize.apply(this,arguments),this.listenTo(a,"change:graph_interval",this.render),this.model.fetch().done(function(n){this.template=e("./node.hbs"),this.render({message:n.message})}.bind(this)).fail(this.handleViewError.bind(this)).always(l.trigger.bind(l,"view:ready"))}});n.exports=r},{"../app_state":36,"../lib/pubsub":41,"./base":48,"./node.hbs":58,"./spinner.hbs":62}],60:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a){return" <th>连接的发现服务</th>\n"},3:function(n,e,t,l,a,o,r){var i,s,c=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing,h="function",p=n.escapeExpression,d=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" <tr "+(null!=(i=d(t,"if").call(c,null!=e?d(e,"out_of_date"):e,{name:"if",hash:{},fn:n.program(4,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:25,column:16},end:{line:25,column:57}}}))?i:"")+">\n <td>"+p(typeof(s=null!=(s=d(t,"hostname")||(null!=e?d(e,"hostname"):e))?s:u)==h?s.call(c,{name:"hostname",hash:{},data:a,loc:{start:{line:26,column:20},end:{line:26,column:32}}}):s)+'</td>\n <td><a class="link" href="'+p((d(t,"basePath")||e&&d(e,"basePath")||u).call(c,"/nodes",{name:"basePath",hash:{},data:a,loc:{start:{line:27,column:42},end:{line:27,column:63}}}))+"/"+p(typeof(s=null!=(s=d(t,"broadcast_address_http")||(null!=e?d(e,"broadcast_address_http"):e))?s:u)==h?s.call(c,{name:"broadcast_address_http",hash:{},data:a,loc:{start:{line:27,column:64},end:{line:27,column:90}}}):s)+'">'+p(typeof(s=null!=(s=d(t,"broadcast_address")||(null!=e?d(e,"broadcast_address"):e))?s:u)==h?s.call(c,{name:"broadcast_address",hash:{},data:a,loc:{start:{line:27,column:92},end:{line:27,column:113}}}):s)+"</a></td>\n <td>"+p(typeof(s=null!=(s=d(t,"tcp_port")||(null!=e?d(e,"tcp_port"):e))?s:u)==h?s.call(c,{name:"tcp_port",hash:{},data:a,loc:{start:{line:28,column:20},end:{line:28,column:32}}}):s)+"</td>\n <td>"+p(typeof(s=null!=(s=d(t,"http_port")||(null!=e?d(e,"http_port"):e))?s:u)==h?s.call(c,{name:"http_port",hash:{},data:a,loc:{start:{line:29,column:20},end:{line:29,column:33}}}):s)+"</td>\n <td>"+p(typeof(s=null!=(s=d(t,"version")||(null!=e?d(e,"version"):e))?s:u)==h?s.call(c,{name:"version",hash:{},data:a,loc:{start:{line:30,column:20},end:{line:30,column:31}}}):s)+"</td>\n"+(null!=(i=d(t,"if").call(c,null!=(i=null!=r[1]?d(r[1],"nsqlookupd"):r[1])?d(i,"length"):i,{name:"if",hash:{},fn:n.program(6,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:31,column:16},end:{line:38,column:23}}}))?i:"")+" <td>\n"+(null!=(i=d(t,"if").call(c,null!=(i=null!=e?d(e,"topics"):e)?d(i,"length"):i,{name:"if",hash:{},fn:n.program(11,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:40,column:16},end:{line:45,column:23}}}))?i:"")+" </td>\n </tr>\n"},4:function(n,e,t,l,a){return'class="warning"'},6:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td>\n <a class="conn-count btn btn-default btn-xs '+(null!=(i=(c(t,"unlesseq")||e&&c(e,"unlesseq")||n.hooks.helperMissing).call(s,null!=(i=null!=r[2]?c(r[2],"nsqlookupd"):r[2])?c(i,"length"):i,null!=(i=null!=e?c(e,"remote_addresses"):e)?c(i,"length"):i,{name:"unlesseq",hash:{},fn:n.program(7,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:33,column:64},end:{line:33,column:149}}}))?i:"")+'">'+n.escapeExpression(n.lambda(null!=(i=null!=e?c(e,"remote_addresses"):e)?c(i,"length"):i,e))+'</a>\n <div style="display: none;">\n '+(null!=(i=c(t,"each").call(s,null!=e?c(e,"remote_addresses"):e,{name:"each",hash:{},fn:n.program(9,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:35,column:24},end:{line:35,column:72}}}))?i:"")+"\n </div>\n </td>\n"},7:function(n,e,t,l,a){return"btn-warning"},9:function(n,e,t,l,a){return n.escapeExpression(n.lambda(e,e))+"<br/>"},11:function(n,e,t,l,a){var o,r=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <span class="badge">'+n.escapeExpression(n.lambda(null!=(o=null!=e?r(e,"topics"):e)?r(o,"length"):o,e))+"</span>\n"+(null!=(o=r(t,"each").call(null!=e?e:n.nullContext||{},null!=e?r(e,"topics"):e,{name:"each",hash:{},fn:n.program(12,a,0),inverse:n.noop,data:a,loc:{start:{line:42,column:20},end:{line:44,column:29}}}))?o:"")},12:function(n,e,t,l,a){var o,r,i=null!=e?e:n.nullContext||{},s=n.hooks.helperMissing,c=n.escapeExpression,u="function",h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <a href="'+c((h(t,"basePath")||e&&h(e,"basePath")||s).call(i,"/topics",{name:"basePath",hash:{},data:a,loc:{start:{line:43,column:29},end:{line:43,column:51}}}))+"/"+c(typeof(r=null!=(r=h(t,"topic")||(null!=e?h(e,"topic"):e))?r:s)==u?r.call(i,{name:"topic",hash:{},data:a,loc:{start:{line:43,column:52},end:{line:43,column:61}}}):r)+'" class="link label '+(null!=(o=h(t,"if").call(i,null!=e?h(e,"tombstoned"):e,{name:"if",hash:{},fn:n.program(13,a,0),inverse:n.program(15,a,0),data:a,loc:{start:{line:43,column:81},end:{line:43,column:140}}}))?o:"")+'" '+(null!=(o=h(t,"if").call(i,null!=e?h(e,"tombstoned"):e,{name:"if",hash:{},fn:n.program(17,a,0),inverse:n.noop,data:a,loc:{start:{line:43,column:142},end:{line:43,column:178}}}))?o:"")+">"+c(typeof(r=null!=(r=h(t,"topic")||(null!=e?h(e,"topic"):e))?r:s)==u?r.call(i,{name:"topic",hash:{},data:a,loc:{start:{line:43,column:179},end:{line:43,column:188}}}):r)+"</a>\n"},13:function(n,e,t,l,a){return"label-warning"},15:function(n,e,t,l,a){return"label-primary"},17:function(n,e,t,l,a){return'title="***"'},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return(null!=(i=n.invokePartial(c(l,"warning"),e,{name:"warning",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+(null!=(i=n.invokePartial(c(l,"error"),e,{name:"error",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+'\n<div class="row">\n <div class="col-md-12">\n <h2>消息服务实例 ('+n.escapeExpression(n.lambda(null!=(i=null!=e?c(e,"collection"):e)?c(i,"length"):i,e))+')</h2>\n </div>\n</div>\n\n<div class="row">\n <div class="col-md-12">\n <table class="table table-condensed table-bordered">\n <tr>\n <th>主机</th>\n <th>广播地址</th>\n <th>TCP端口</th>\n <th>HTTP端口</th>\n <th>版本</th>\n'+(null!=(i=c(t,"if").call(s,null!=(i=null!=e?c(e,"nsqlookupd"):e)?c(i,"length"):i,{name:"if",hash:{},fn:n.program(1,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:19,column:16},end:{line:21,column:23}}}))?i:"")+" <th>主题</th>\n </tr>\n"+(null!=(i=c(t,"each").call(s,null!=e?c(e,"collection"):e,{name:"each",hash:{},fn:n.program(3,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:24,column:12},end:{line:48,column:21}}}))?i:"")+" </table>\n </div>\n</div>\n"},usePartial:!0,useData:!0,useDepths:!0})},{"hbsfy/runtime":35}],61:[function(e,n,t){var l=e("jquery"),a=e("../lib/pubsub"),o=e("../app_state"),r=e("./base"),i=e("../collections/nodes"),s=r.extend({className:"nodes container-fluid",template:e("./spinner.hbs"),events:{"click .conn-count":"onClickConnCount"},initialize:function(){r.prototype.initialize.apply(this,arguments),this.listenTo(o,"change:graph_interval",this.render),this.collection=new i,this.collection.fetch().done(function(n){this.template=e("./nodes.hbs"),this.render({message:n.message})}.bind(this)).fail(this.handleViewError.bind(this)).always(a.trigger.bind(a,"view:ready"))},onClickConnCount:function(n){n.preventDefault(),l(n.target).next().toggle()}});n.exports=s},{"../app_state":36,"../collections/nodes":37,"../lib/pubsub":41,"./base":48,"./nodes.hbs":60,"./spinner.hbs":62,jquery:void 0}],62:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a){return'<div class="bubblingG">\n <span id="bubblingG_1"></span>\n <span id="bubblingG_2"></span>\n <span id="bubblingG_3"></span>\n</div>\n'},useData:!0})},{"hbsfy/runtime":35}],63:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<div class="row">\n <div class="col-md-6">\n <h4>主题的消息队列</h4>\n <div class="alert alert-warning">\n <h4>注意</h4> 该主题没有消息生产者.\n <p>查看 <a href="'+n.escapeExpression((o(t,"basePath")||e&&o(e,"basePath")||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"/lookup",{name:"basePath",hash:{},data:a,loc:{start:{line:23,column:27},end:{line:23,column:49}}}))+'">服务发现</a> 获取更多信息.\n </div>\n </div>\n</div>\n'},3:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return(null!=(i=h(t,"if").call(s,null!=e?h(e,"isAdmin"):e,{name:"if",hash:{},fn:n.program(4,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:28,column:0},end:{line:44,column:7}}}))?i:"")+'\n<div class="row">\n <div class="col-md-12">\n <h4>主题的消息队列</h4>\n <table class="table table-bordered table-condensed">\n'+(null!=(i=h(t,"if").call(s,null!=(i=null!=(i=null!=e?h(e,"e2e_processing_latency"):e)?h(i,"percentiles"):i)?h(i,"length"):i,{name:"if",hash:{},fn:n.program(9,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:50,column:8},end:{line:55,column:15}}}))?i:"")+" <tr>\n <th>消息服务实例</th>\n <th>队列</th>\n <th>内存 + 磁盘</th>\n <th>消息数</th>\n "+(null!=(i=h(t,"if").call(s,null!=e?h(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(14,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:61,column:12},end:{line:61,column:50}}}))?i:"")+"\n <th>通道</th>\n"+(null!=(i=h(t,"each").call(s,null!=(i=null!=e?h(e,"e2e_processing_latency"):e)?h(i,"percentiles"):i,{name:"each",hash:{},fn:n.program(16,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:63,column:12},end:{line:65,column:21}}}))?i:"")+" </tr>\n"+(null!=(i=h(t,"each").call(s,null!=e?h(e,"nodes"):e,{name:"each",hash:{},fn:n.program(18,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:67,column:8},end:{line:108,column:17}}}))?i:"")+' <tr class="info">\n <td>总计:</td>\n <td>'+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:111,column:16},end:{line:111,column:33}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"memory_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:112,column:16},end:{line:112,column:40}}}))+" + "+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"backend_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:112,column:43},end:{line:112,column:68}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"message_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:113,column:16},end:{line:113,column:41}}}))+"</td>\n "+(null!=(i=h(t,"if").call(s,null!=e?h(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(33,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:114,column:12},end:{line:114,column:110}}}))?i:"")+"\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=(i=null!=e?h(e,"channels"):e)?h(i,"length"):i,{name:"commafy",hash:{},data:a,loc:{start:{line:115,column:16},end:{line:115,column:43}}}))+"</td>\n"+(null!=(i=h(t,"if").call(s,null!=(i=null!=(i=null!=e?h(e,"e2e_processing_latency"):e)?h(i,"percentiles"):i)?h(i,"length"):i,{name:"if",hash:{},fn:n.program(27,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:116,column:12},end:{line:122,column:19}}}))?i:"")+" </tr>\n"+(null!=(i=h(t,"if").call(s,null!=e?h(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(35,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:124,column:8},end:{line:138,column:15}}}))?i:"")+" </table>\n </div>\n</div>\n"},4:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<div class="row topic-actions">\n <div class="col-md-2">\n <button class="btn btn-medium btn-warning" data-action="empty">清空队列</button>\n </div>\n <div class="col-md-2">\n <button class="btn btn-medium btn-danger" data-action="delete">删除主题</button>\n </div>\n <div class="col-md-2">\n'+(null!=(a=o(t,"if").call(null!=e?e:n.nullContext||{},null!=e?o(e,"paused"):e,{name:"if",hash:{},fn:n.program(5,a,0),inverse:n.program(7,a,0),data:a,loc:{start:{line:37,column:8},end:{line:41,column:15}}}))?a:"")+" </div>\n</div>\n"},5:function(n,e,t,l,a){return' <button class="btn btn-medium btn-success" data-action="unpause">解除暂停主题</button>\n'},7:function(n,e,t,l,a){return' <button class="btn btn-medium btn-primary" data-action="pause">暂停主题</button>\n'},9:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr>\n <th colspan="'+(null!=(a=o(t,"if").call(null!=e?e:n.nullContext||{},null!=e?o(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(10,a,0),inverse:n.program(12,a,0),data:a,loc:{start:{line:52,column:25},end:{line:52,column:62}}}))?a:"")+'"></th>\n <th colspan="'+n.escapeExpression(n.lambda(null!=(a=null!=(a=null!=e?o(e,"e2e_processing_latency"):e)?o(a,"percentiles"):a)?o(a,"length"):a,e))+'">端到端处理延迟</th>\n </tr>\n'},10:function(n,e,t,l,a){return"6"},12:function(n,e,t,l,a){return"5"},14:function(n,e,t,l,a){return"<th>速率</th>"},16:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" <th>"+i((n(t,"floatToPercent")||e&&n(e,"floatToPercent")||r).call(o,null!=e?n(e,"quantile"):e,{name:"floatToPercent",hash:{},data:a,loc:{start:{line:64,column:20},end:{line:64,column:47}}}))+"<sup>"+i((n(t,"percSuffix")||e&&n(e,"percSuffix")||r).call(o,null!=e?n(e,"quantile"):e,{name:"percSuffix",hash:{},data:a,loc:{start:{line:64,column:52},end:{line:64,column:75}}}))+"</sup></th>\n"},18:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr>\n <td>\n <button class="btn-link red tombstone-link" data-node="'+u("function"==typeof(i=null!=(i=h(t,"node")||(null!=e?h(e,"node"):e))?i:c)?i.call(s,{name:"node",hash:{},data:a,loc:{start:{line:70,column:71},end:{line:70,column:79}}}):i)+'" data-topic="'+u(n.lambda(null!=r[1]?h(r[1],"name"):r[1],e))+'" style="padding: 0 6px; border: 0;">✘</button>\n'+(null!=(i=h(t,"if").call(s,null!=e?h(e,"show_broadcast_address"):e,{name:"if",hash:{},fn:n.program(19,a,0,o,r),inverse:n.program(21,a,0,o,r),data:a,loc:{start:{line:71,column:16},end:{line:75,column:23}}}))?i:"")+" "+(null!=(i=h(t,"if").call(s,null!=e?h(e,"paused"):e,{name:"if",hash:{},fn:n.program(23,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:76,column:16},end:{line:76,column:85}}}))?i:"")+"\n </td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:78,column:16},end:{line:78,column:33}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"memory_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:79,column:16},end:{line:79,column:40}}}))+" + "+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"backend_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:79,column:43},end:{line:79,column:68}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"message_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:80,column:16},end:{line:80,column:41}}}))+"</td>\n"+(null!=(i=h(t,"if").call(s,null!=r[1]?h(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(25,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:81,column:12},end:{line:83,column:19}}}))?i:"")+" <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=(i=null!=e?h(e,"channels"):e)?h(i,"length"):i,{name:"commafy",hash:{},data:a,loc:{start:{line:84,column:16},end:{line:84,column:48}}}))+"</td>\n"+(null!=(i=h(t,"if").call(s,null!=(i=null!=(i=null!=e?h(e,"e2e_processing_latency"):e)?h(i,"percentiles"):i)?h(i,"length"):i,{name:"if",hash:{},fn:n.program(27,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:85,column:12},end:{line:91,column:19}}}))?i:"")+" </tr>\n"+(null!=(i=h(t,"if").call(s,null!=r[1]?h(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(30,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:93,column:8},end:{line:107,column:15}}}))?i:"")},19:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i="function",s=n.escapeExpression,c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return" "+s(typeof(n=null!=(n=c(t,"hostname_port")||(null!=e?c(e,"hostname_port"):e))?n:r)==i?n.call(o,{name:"hostname_port",hash:{},data:a,loc:{start:{line:72,column:16},end:{line:72,column:33}}}):n)+' (<a class="link" href="'+s((c(t,"basePath")||e&&c(e,"basePath")||r).call(o,"/nodes",{name:"basePath",hash:{},data:a,loc:{start:{line:72,column:57},end:{line:72,column:78}}}))+"/"+s(typeof(n=null!=(n=c(t,"node")||(null!=e?c(e,"node"):e))?n:r)==i?n.call(o,{name:"node",hash:{},data:a,loc:{start:{line:72,column:79},end:{line:72,column:87}}}):n)+'">'+s(typeof(n=null!=(n=c(t,"node")||(null!=e?c(e,"node"):e))?n:r)==i?n.call(o,{name:"node",hash:{},data:a,loc:{start:{line:72,column:89},end:{line:72,column:97}}}):n)+"</a>)\n"},21:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,s="function",c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <a class="link" href="'+i((c(t,"basePath")||e&&c(e,"basePath")||r).call(o,"/nodes",{name:"basePath",hash:{},data:a,loc:{start:{line:74,column:38},end:{line:74,column:59}}}))+"/"+i(typeof(n=null!=(n=c(t,"node")||(null!=e?c(e,"node"):e))?n:r)==s?n.call(o,{name:"node",hash:{},data:a,loc:{start:{line:74,column:60},end:{line:74,column:68}}}):n)+'">'+i(typeof(n=null!=(n=c(t,"hostname_port")||(null!=e?c(e,"hostname_port"):e))?n:r)==s?n.call(o,{name:"hostname_port",hash:{},data:a,loc:{start:{line:74,column:70},end:{line:74,column:87}}}):n)+"</a>\n"},23:function(n,e,t,l,a){return' <span class="label label-primary">paused</span>'},25:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td class="bold rate" target="'+n.escapeExpression((o(t,"rate")||e&&o(e,"rate")||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"topic",null!=e?o(e,"node"):e,null!=e?o(e,"topic_name"):e,"",{name:"rate",hash:{},data:a,loc:{start:{line:82,column:46},end:{line:82,column:81}}}))+'"></td>\n'},27:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return null!=(e=o(t,"each").call(null!=e?e:n.nullContext||{},null!=(e=null!=e?o(e,"e2e_processing_latency"):e)?o(e,"percentiles"):e,{name:"each",hash:{},fn:n.program(28,a,0),inverse:n.noop,data:a,loc:{start:{line:86,column:16},end:{line:90,column:25}}}))?e:""},28:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td>\n <span title="'+i((n(t,"floatToPercent")||e&&n(e,"floatToPercent")||r).call(o,null!=e?n(e,"quantile"):e,{name:"floatToPercent",hash:{},data:a,loc:{start:{line:88,column:33},end:{line:88,column:60}}}))+": min = "+i((n(t,"nanotohuman")||e&&n(e,"nanotohuman")||r).call(o,null!=e?n(e,"min"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:88,column:68},end:{line:88,column:87}}}))+", max = "+i((n(t,"nanotohuman")||e&&n(e,"nanotohuman")||r).call(o,null!=e?n(e,"max"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:88,column:95},end:{line:88,column:114}}}))+'">'+i((n(t,"nanotohuman")||e&&n(e,"nanotohuman")||r).call(o,null!=e?n(e,"average"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:88,column:116},end:{line:88,column:139}}}))+"</span>\n </td>\n"},30:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr class="graph-row">\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"topic",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,"","depth",{name:"large_graph",hash:{},data:a,loc:{start:{line:96,column:29},end:{line:96,column:79}}}))+'"><img width="120" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"topic",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,"","depth",{name:"sparkline",hash:{},data:a,loc:{start:{line:96,column:103},end:{line:96,column:151}}}))+'"></a></td>\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"topic",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,"","message_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:98,column:29},end:{line:98,column:87}}}))+'"><img width="120" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"topic",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,"","message_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:98,column:111},end:{line:98,column:167}}}))+'"></a></td>\n <td></td>\n <td></td>\n'+(null!=(e=s(t,"if").call(o,null!=(e=null!=(e=null!=e?s(e,"e2e_processing_latency"):e)?s(e,"percentiles"):e)?s(e,"length"):e,{name:"if",hash:{},fn:n.program(31,a,0),inverse:n.noop,data:a,loc:{start:{line:101,column:16},end:{line:105,column:23}}}))?e:"")+" </tr>\n"},31:function(n,e,t,l,a){var o=n.escapeExpression,r=null!=e?e:n.nullContext||{},i=n.hooks.helperMissing,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td colspan="'+o(n.lambda(null!=(n=null!=(n=null!=e?s(e,"e2e_processing_latency"):e)?s(n,"percentiles"):n)?s(n,"length"):n,e))+'">\n <a href="'+o((s(t,"large_graph")||e&&s(e,"large_graph")||i).call(r,"e2e",null!=e?s(e,"node"):e,null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"large_graph",hash:{},data:a,loc:{start:{line:103,column:29},end:{line:103,column:106}}}))+'"><img width="120" height="20" src="'+o((s(t,"sparkline")||e&&s(e,"sparkline")||i).call(r,"e2e",null!=e?s(e,"node"):e,null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"sparkline",hash:{},data:a,loc:{start:{line:103,column:143},end:{line:103,column:218}}}))+'"></a>\n </td>\n'},33:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<td class="bold rate" target="'+n.escapeExpression((o(t,"rate")||e&&o(e,"rate")||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"topic","*",null!=e?o(e,"topic_name"):e,"",{name:"rate",hash:{},data:a,loc:{start:{line:114,column:62},end:{line:114,column:96}}}))+'"></td>'},35:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr class="graph-row">\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"topic","*",null!=e?s(e,"topic_name"):e,"","depth",{name:"large_graph",hash:{},data:a,loc:{start:{line:127,column:29},end:{line:127,column:78}}}))+'"><img width="120" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"topic",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,"","depth",{name:"sparkline",hash:{},data:a,loc:{start:{line:127,column:102},end:{line:127,column:150}}}))+'"></a></td>\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"topic","*",null!=e?s(e,"topic_name"):e,"","message_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:129,column:29},end:{line:129,column:86}}}))+'"><img width="120" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"topic",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,"","message_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:129,column:110},end:{line:129,column:166}}}))+'"></a></td>\n <td></td>\n <td></td>\n'+(null!=(e=s(t,"if").call(o,null!=(e=null!=(e=null!=e?s(e,"e2e_processing_latency"):e)?s(e,"percentiles"):e)?s(e,"length"):e,{name:"if",hash:{},fn:n.program(36,a,0),inverse:n.noop,data:a,loc:{start:{line:132,column:16},end:{line:136,column:23}}}))?e:"")+" </tr>\n"},36:function(n,e,t,l,a){var o=n.escapeExpression,r=null!=e?e:n.nullContext||{},i=n.hooks.helperMissing,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td colspan="'+o(n.lambda(null!=(n=null!=(n=null!=e?s(e,"e2e_processing_latency"):e)?s(n,"percentiles"):n)?s(n,"length"):n,e))+'">\n <a href="'+o((s(t,"large_graph")||e&&s(e,"large_graph")||i).call(r,"e2e","*",null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"large_graph",hash:{},data:a,loc:{start:{line:134,column:29},end:{line:134,column:105}}}))+'"><img width="120" height="20" src="'+o((s(t,"sparkline")||e&&s(e,"sparkline")||i).call(r,"e2e",null!=e?s(e,"node"):e,null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"sparkline",hash:{},data:a,loc:{start:{line:134,column:142},end:{line:134,column:217}}}))+'"></a>\n </td>\n'},38:function(n,e,t,l,a){return' <div class="col-md-6">\n <h4>通道消息队列</h4>\n <div class="alert alert-warning">\n <h4>注意</h4> 该主题没有通道.\n </div>\n'},40:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <div class="col-md-12">\n <h4>通道消息队列</h4>\n <table class="table table-bordered table-condensed">\n'+(null!=(i=c(t,"if").call(s,null!=(i=null!=(i=null!=e?c(e,"e2e_processing_latency"):e)?c(i,"percentiles"):i)?c(i,"length"):i,{name:"if",hash:{},fn:n.program(41,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:156,column:12},end:{line:161,column:19}}}))?i:"")+" <tr>\n <th>通道</th>\n <th>队列</th>\n <th>内存 + 硬盘</th>\n <th>处理中</th>\n <th>推迟</th>\n <th>重入队列</th>\n <th>超时</th>\n <th>消息数</th>\n <th>连接数</th>\n"+(null!=(i=c(t,"each").call(s,null!=(i=null!=e?c(e,"e2e_processing_latency"):e)?c(i,"percentiles"):i,{name:"each",hash:{},fn:n.program(16,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:172,column:16},end:{line:174,column:25}}}))?i:"")+" </tr>\n\n"+(null!=(i=c(t,"each").call(s,null!=e?c(e,"channels"):e,{name:"each",hash:{},fn:n.program(46,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:177,column:12},end:{line:217,column:21}}}))?i:"")+" </table>\n"},41:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr>\n <th colspan="'+(null!=(a=o(t,"if").call(null!=e?e:n.nullContext||{},null!=e?o(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(42,a,0),inverse:n.program(44,a,0),data:a,loc:{start:{line:158,column:29},end:{line:158,column:67}}}))?a:"")+'"></th>\n <th colspan="'+n.escapeExpression(n.lambda(null!=(a=null!=(a=null!=e?o(e,"e2e_processing_latency"):e)?o(a,"percentiles"):a)?o(a,"length"):a,e))+'">端到端处理延迟</th>\n </tr>\n'},42:function(n,e,t,l,a){return"10"},44:function(n,e,t,l,a){return"9"},46:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,h=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr>\n <th>\n <a class="link" href="'+u((h(t,"basePath")||e&&h(e,"basePath")||c).call(s,"/topics",{name:"basePath",hash:{},data:a,loc:{start:{line:180,column:42},end:{line:180,column:64}}}))+"/"+u((h(t,"urlencode")||e&&h(e,"urlencode")||c).call(s,null!=e?h(e,"topic_name"):e,{name:"urlencode",hash:{},data:a,loc:{start:{line:180,column:65},end:{line:180,column:89}}}))+"/"+u((h(t,"urlencode")||e&&h(e,"urlencode")||c).call(s,null!=e?h(e,"channel_name"):e,{name:"urlencode",hash:{},data:a,loc:{start:{line:180,column:90},end:{line:180,column:116}}}))+'">'+u("function"==typeof(i=null!=(i=h(t,"channel_name")||(null!=e?h(e,"channel_name"):e))?i:c)?i.call(s,{name:"channel_name",hash:{},data:a,loc:{start:{line:180,column:118},end:{line:180,column:134}}}):i)+"</a>\n "+(null!=(i=h(t,"if").call(s,null!=e?h(e,"paused"):e,{name:"if",hash:{},fn:n.program(47,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:181,column:20},end:{line:181,column:85}}}))?i:"")+"\n </th>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:183,column:20},end:{line:183,column:37}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"memory_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:184,column:20},end:{line:184,column:44}}}))+" + "+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"backend_depth"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:184,column:47},end:{line:184,column:72}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"in_flight_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:185,column:20},end:{line:185,column:47}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"deferred_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:186,column:20},end:{line:186,column:46}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"requeue_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:187,column:20},end:{line:187,column:45}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"timeout_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:188,column:20},end:{line:188,column:45}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"message_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:189,column:20},end:{line:189,column:45}}}))+"</td>\n <td>"+u((h(t,"commafy")||e&&h(e,"commafy")||c).call(s,null!=e?h(e,"client_count"):e,{name:"commafy",hash:{},data:a,loc:{start:{line:190,column:20},end:{line:190,column:44}}}))+"</td>\n"+(null!=(i=h(t,"if").call(s,null!=(i=null!=(i=null!=e?h(e,"e2e_processing_latency"):e)?h(i,"percentiles"):i)?h(i,"length"):i,{name:"if",hash:{},fn:n.program(49,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:191,column:16},end:{line:197,column:23}}}))?i:"")+" </tr>\n"+(null!=(i=h(t,"if").call(s,null!=r[1]?h(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(52,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:199,column:12},end:{line:216,column:19}}}))?i:"")},47:function(n,e,t,l,a){return'<span class="label label-primary">已暂停</span>'},49:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return null!=(e=o(t,"each").call(null!=e?e:n.nullContext||{},null!=(e=null!=e?o(e,"e2e_processing_latency"):e)?o(e,"percentiles"):e,{name:"each",hash:{},fn:n.program(50,a,0),inverse:n.noop,data:a,loc:{start:{line:192,column:20},end:{line:196,column:27}}}))?e:""},50:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td>\n <span title="'+i((n(t,"floatToPercent")||e&&n(e,"floatToPercent")||r).call(o,null!=e?n(e,"quantile"):e,{name:"floatToPercent",hash:{},data:a,loc:{start:{line:194,column:37},end:{line:194,column:64}}}))+": min = "+i((n(t,"nanotohuman")||e&&n(e,"nanotohuman")||r).call(o,null!=e?n(e,"min"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:194,column:72},end:{line:194,column:91}}}))+", max = "+i((n(t,"nanotohuman")||e&&n(e,"nanotohuman")||r).call(o,null!=e?n(e,"max"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:194,column:99},end:{line:194,column:118}}}))+'">'+i((n(t,"nanotohuman")||e&&n(e,"nanotohuman")||r).call(o,null!=e?n(e,"average"):e,{name:"nanotohuman",hash:{},data:a,loc:{start:{line:194,column:120},end:{line:194,column:143}}}))+"</span>\n </td>\n"},52:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr class="graph-row">\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"depth",{name:"large_graph",hash:{},data:a,loc:{start:{line:202,column:29},end:{line:202,column:91}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"depth",{name:"sparkline",hash:{},data:a,loc:{start:{line:202,column:128},end:{line:202,column:188}}}))+'"></a></td>\n <td></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"in_flight_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:204,column:29},end:{line:204,column:101}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"in_flight_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:204,column:138},end:{line:204,column:208}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"deferred_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:205,column:29},end:{line:205,column:100}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"deferred_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:205,column:137},end:{line:205,column:206}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"requeue_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:206,column:29},end:{line:206,column:99}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"requeue_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:206,column:136},end:{line:206,column:204}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"timeout_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:207,column:29},end:{line:207,column:99}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"timeout_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:207,column:136},end:{line:207,column:204}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"message_count",{name:"large_graph",hash:{},data:a,loc:{start:{line:208,column:29},end:{line:208,column:99}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"message_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:208,column:136},end:{line:208,column:204}}}))+'"></a></td>\n <td><a href="'+i((s(t,"large_graph")||e&&s(e,"large_graph")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"clients",{name:"large_graph",hash:{},data:a,loc:{start:{line:209,column:29},end:{line:209,column:93}}}))+'"><img width="120" height="20" src="'+i((s(t,"sparkline")||e&&s(e,"sparkline")||r).call(o,"channel",null!=e?s(e,"node"):e,null!=e?s(e,"topic_name"):e,null!=e?s(e,"channel_name"):e,"clients",{name:"sparkline",hash:{},data:a,loc:{start:{line:209,column:130},end:{line:209,column:192}}}))+'"></a></td>\n'+(null!=(e=s(t,"if").call(o,null!=(e=null!=(e=null!=e?s(e,"e2e_processing_latency"):e)?s(e,"percentiles"):e)?s(e,"length"):e,{name:"if",hash:{},fn:n.program(53,a,0),inverse:n.noop,data:a,loc:{start:{line:210,column:16},end:{line:214,column:23}}}))?e:"")+" </tr>\n"},53:function(n,e,t,l,a){var o=n.escapeExpression,r=null!=e?e:n.nullContext||{},i=n.hooks.helperMissing,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <td colspan="'+o(n.lambda(null!=(n=null!=(n=null!=e?s(e,"e2e_processing_latency"):e)?s(n,"percentiles"):n)?s(n,"length"):n,e))+'">\n <a href="'+o((s(t,"large_graph")||e&&s(e,"large_graph")||i).call(r,"e2e",null!=e?s(e,"node"):e,null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"large_graph",hash:{},data:a,loc:{start:{line:212,column:33},end:{line:212,column:110}}}))+'"><img width="120" height="20" src="'+o((s(t,"sparkline")||e&&s(e,"sparkline")||i).call(r,"e2e",null!=e?s(e,"node"):e,null!=e?s(e,"e2e_processing_latency"):e,"","e2e_processing_latency",{name:"sparkline",hash:{},data:a,loc:{start:{line:212,column:147},end:{line:212,column:222}}}))+'"></a>\n </td>\n'},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing,u=n.escapeExpression,h="function",p=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return(null!=(i=n.invokePartial(p(l,"warning"),e,{name:"warning",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+(null!=(i=n.invokePartial(p(l,"error"),e,{name:"error",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+'\n<ol class="breadcrumb">\n <li><a class="link" href="'+u((p(t,"basePath")||e&&p(e,"basePath")||c).call(s,"/",{name:"basePath",hash:{},data:a,loc:{start:{line:5,column:28},end:{line:5,column:44}}}))+'">消息主题</a>\n <li class="active">'+u(typeof(l=null!=(l=p(t,"name")||(null!=e?p(e,"name"):e))?l:c)==h?l.call(s,{name:"name",hash:{},data:a,loc:{start:{line:6,column:21},end:{line:6,column:29}}}):l)+'</li>\n</ol>\n\n<div class="row">\n <div class="col-md-6">\n <blockquote>\n <p>主题: <strong>'+u(typeof(l=null!=(l=p(t,"name")||(null!=e?p(e,"name"):e))?l:c)==h?l.call(s,{name:"name",hash:{},data:a,loc:{start:{line:12,column:27},end:{line:12,column:35}}}):l)+"</strong>\n </blockquote>\n </div>\n</div>\n\n"+(null!=(i=p(t,"unless").call(s,null!=(i=null!=e?p(e,"nodes"):e)?p(i,"length"):i,{name:"unless",hash:{},fn:n.program(1,a,0,o,r),inverse:n.program(3,a,0,o,r),data:a,loc:{start:{line:17,column:0},end:{line:142,column:11}}}))?i:"")+'\n\n<div class="row">\n'+(null!=(i=p(t,"unless").call(s,null!=(i=null!=e?p(e,"channels"):e)?p(i,"length"):i,{name:"unless",hash:{},fn:n.program(38,a,0,o,r),inverse:n.program(40,a,0,o,r),data:a,loc:{start:{line:146,column:4},end:{line:219,column:19}}}))?i:"")+" </div>\n</div>\n"},usePartial:!0,useData:!0,useDepths:!0})},{"hbsfy/runtime":35}],64:[function(t,n,e){var l=t("jquery");window.jQuery=l;t("bootstrap");var a=t("bootbox"),o=t("../lib/pubsub"),r=t("../app_state"),i=t("./base"),s=i.extend({className:"topic container-fluid",template:t("./spinner.hbs"),events:{"click .topic-actions button":"topicAction"},initialize:function(){i.prototype.initialize.apply(this,arguments),this.listenTo(r,"change:graph_interval",this.render);var e=this.model.get("isAdmin");this.model.fetch().done(function(n){this.template=t("./topic.hbs"),this.render({message:n.message,isAdmin:e})}.bind(this)).fail(this.handleViewError.bind(this)).always(o.trigger.bind(o,"view:ready"))},topicAction:function(n){n.preventDefault(),n.stopPropagation();var e=l(n.currentTarget).data("action"),n="Are you sure you want to <strong>"+e+"</strong> <em>"+this.model.get("name")+"</em>?";a.confirm(n,function(n){!0===n&&("delete"===e?l.ajax(this.model.url(),{method:"DELETE"}).done(function(){window.location=r.basePath("/")}):l.post(this.model.url(),JSON.stringify({action:e})).done(function(){window.location.reload(!0)}).fail(this.handleAJAXError.bind(this)))}.bind(this))}});n.exports=s},{"../app_state":36,"../lib/pubsub":41,"./base":48,"./spinner.hbs":62,"./topic.hbs":63,bootbox:void 0,bootstrap:1,jquery:void 0}],65:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a,o,r){var i,s=null!=e?e:n.nullContext||{},c=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <table class="table table-condensed table-bordered">\n <tr>\n <th>Topic</th>\n '+(null!=(i=c(t,"if").call(s,null!=e?c(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(2,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:16,column:16},end:{line:16,column:66}}}))?i:"")+"\n "+(null!=(i=c(t,"if").call(s,null!=e?c(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(4,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:17,column:16},end:{line:17,column:66}}}))?i:"")+"\n "+(null!=(i=c(t,"if").call(s,null!=e?c(e,"graph_active"):e,{name:"if",hash:{},fn:n.program(6,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:18,column:16},end:{line:18,column:66}}}))?i:"")+"\n </tr>\n"+(null!=(i=c(t,"each").call(s,null!=e?c(e,"collection"):e,{name:"each",hash:{},fn:n.program(8,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:20,column:12},end:{line:27,column:21}}}))?i:"")+" </table>\n"},2:function(n,e,t,l,a){return'<th width="120">队列</th>'},4:function(n,e,t,l,a){return'<th width="120">消息</th>'},6:function(n,e,t,l,a){return'<th width="120">速率</th>'},8:function(n,e,t,l,a,o,r){var i=null!=e?e:n.nullContext||{},s=n.hooks.helperMissing,c=n.escapeExpression,u=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return' <tr>\n <td><a class="link" href="'+c((u(t,"basePath")||e&&u(e,"basePath")||s).call(i,"/topics",{name:"basePath",hash:{},data:a,loc:{start:{line:22,column:42},end:{line:22,column:64}}}))+"/"+c((u(t,"urlencode")||e&&u(e,"urlencode")||s).call(i,null!=e?u(e,"name"):e,{name:"urlencode",hash:{},data:a,loc:{start:{line:22,column:65},end:{line:22,column:83}}}))+'">'+c("function"==typeof(e=null!=(e=u(t,"name")||(null!=e?u(e,"name"):e))?e:s)?e.call(i,{name:"name",hash:{},data:a,loc:{start:{line:22,column:85},end:{line:22,column:93}}}):e)+"</a></td>\n "+(null!=(e=u(t,"if").call(i,null!=r[1]?u(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(9,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:23,column:16},end:{line:23,column:200}}}))?e:"")+"\n "+(null!=(e=u(t,"if").call(i,null!=r[1]?u(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(11,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:24,column:16},end:{line:24,column:208}}}))?e:"")+"\n "+(null!=(e=u(t,"if").call(i,null!=r[1]?u(r[1],"graph_active"):r[1],{name:"if",hash:{},fn:n.program(13,a,0,o,r),inverse:n.noop,data:a,loc:{start:{line:25,column:16},end:{line:25,column:111}}}))?e:"")+"\n </tr>\n"},9:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<td><a class="link" href="'+i((n(t,"basePath")||e&&n(e,"basePath")||r).call(o,"/topics",{name:"basePath",hash:{},data:a,loc:{start:{line:23,column:65},end:{line:23,column:87}}}))+"/"+i((n(t,"urlencode")||e&&n(e,"urlencode")||r).call(o,null!=e?n(e,"name"):e,{name:"urlencode",hash:{},data:a,loc:{start:{line:23,column:88},end:{line:23,column:106}}}))+'"><img width="120" height="20" src="'+i((n(t,"sparkline")||e&&n(e,"sparkline")||r).call(o,"topic","",null!=e?n(e,"name"):e,"","depth",{name:"sparkline",hash:{},data:a,loc:{start:{line:23,column:142},end:{line:23,column:182}}}))+'"></a></td>'},11:function(n,e,t,l,a){var o=null!=e?e:n.nullContext||{},r=n.hooks.helperMissing,i=n.escapeExpression,n=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<td><a class="link" href="'+i((n(t,"basePath")||e&&n(e,"basePath")||r).call(o,"/topics",{name:"basePath",hash:{},data:a,loc:{start:{line:24,column:65},end:{line:24,column:87}}}))+"/"+i((n(t,"urlencode")||e&&n(e,"urlencode")||r).call(o,null!=e?n(e,"name"):e,{name:"urlencode",hash:{},data:a,loc:{start:{line:24,column:88},end:{line:24,column:106}}}))+'"><img width="120" height="20" src="'+i((n(t,"sparkline")||e&&n(e,"sparkline")||r).call(o,"topic","",null!=e?n(e,"name"):e,"","message_count",{name:"sparkline",hash:{},data:a,loc:{start:{line:24,column:142},end:{line:24,column:190}}}))+'"></a></td>'},13:function(n,e,t,l,a){var o=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<td class="bold rate" target="'+n.escapeExpression((o(t,"rate")||e&&o(e,"rate")||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"topic","*",null!=e?o(e,"name"):e,"",{name:"rate",hash:{},data:a,loc:{start:{line:25,column:69},end:{line:25,column:97}}}))+'"></td>'},15:function(n,e,t,l,a){return' <div class="alert alert-warning"><h4>注意</h4>没有主题</div>\n'},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a,o,r){var i,s=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return(null!=(i=n.invokePartial(s(l,"warning"),e,{name:"warning",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+(null!=(i=n.invokePartial(s(l,"error"),e,{name:"error",data:a,helpers:t,partials:l,decorators:n.decorators}))?i:"")+'\n<div class="row">\n <div class="col-md-12">\n <h2>主题</h2>\n </div>\n</div>\n\n<div class="row">\n <div class="col-md-6">\n'+(null!=(i=s(t,"if").call(null!=e?e:n.nullContext||{},null!=(i=null!=e?s(e,"collection"):e)?s(i,"length"):i,{name:"if",hash:{},fn:n.program(1,a,0,o,r),inverse:n.program(15,a,0,o,r),data:a,loc:{start:{line:12,column:4},end:{line:31,column:11}}}))?i:"")+" </div>\n</div>\n"},usePartial:!0,useData:!0,useDepths:!0})},{"hbsfy/runtime":35}],66:[function(e,n,t){var l=e("../lib/pubsub"),a=e("../app_state"),o=e("./base"),r=e("../collections/topics"),i=o.extend({className:"topics container-fluid",template:e("./spinner.hbs"),initialize:function(){o.prototype.initialize.apply(this,arguments),this.listenTo(a,"change:graph_interval",this.render),this.collection=new r,this.collection.fetch().done(function(n){this.template=e("./topics.hbs"),this.render({message:n.message})}.bind(this)).fail(this.handleViewError.bind(this)).always(l.trigger.bind(l,"view:ready"))}});n.exports=i},{"../app_state":36,"../collections/topics":38,"../lib/pubsub":41,"./base":48,"./spinner.hbs":62,"./topics.hbs":65}],67:[function(n,e,t){n=n("hbsfy/runtime");e.exports=n.template({1:function(n,e,t,l,a){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(n,e,t,l,a){var o,r=null!=e?e:n.nullContext||{},i=n.lookupProperty||function(n,e){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]};return'<div class="row" id="warning" '+(null!=(o=i(t,"unless").call(r,null!=e?i(e,"message"):e,{name:"unless",hash:{},fn:n.program(1,a,0),inverse:n.noop,data:a,loc:{start:{line:1,column:30},end:{line:1,column:82}}}))?o:"")+'>\n <div class="col-md-12">\n <div class="alert alert-warning">\n '+n.escapeExpression("function"==typeof(e=null!=(e=i(t,"message")||(null!=e?i(e,"message"):e))?e:n.hooks.helperMissing)?e.call(r,{name:"message",hash:{},data:a,loc:{start:{line:4,column:12},end:{line:4,column:23}}}):e)+"\n </div>\n </div>\n</div>\n"},useData:!0})},{"hbsfy/runtime":35}]},{},[42]);
  2. //# sourceMappingURL=main.js.map