if(void 0===PhpDebugBar){var PhpDebugBar={};PhpDebugBar.$=jQuery}!function(t){"undefined"==typeof localStorage&&(localStorage={setItem:function(t,e){},getItem:function(t){return null}}),void 0===PhpDebugBar.utils&&(PhpDebugBar.utils={});var e=PhpDebugBar.utils.getDictValue=function(t,e,i){for(var s=t,a=e.split("."),n=0;n-1){for(var i=t.split(" "),s=[],a=0,n=i.length;a"),this.className&&this.$el.addClass(this.className),this.initialize.apply(this,[e||{}]),this.render.apply(this)};t.extend(a.prototype,{tagName:"div",className:null,defaults:{},initialize:function(t){this.set(t)},render:function(){},set:function(t,e){if("string"==typeof t){if(this._attributes[t]=e,void 0!==this._boundAttributes[t])for(var i=0,s=this._boundAttributes[t].length;i").addClass(s("tab")),this.$icon=t("").appendTo(this.$tab),this.bindAttr("icon",(function(t){t?this.$icon.attr("class","phpdebugbar-fa phpdebugbar-fa-"+t):this.$icon.attr("class","")})),this.bindAttr("title",t("").addClass(s("text")).appendTo(this.$tab)),this.$badge=t("").addClass(s("badge")).appendTo(this.$tab),this.bindAttr("badge",(function(t){null!==t?(this.$badge.text(t),this.$badge.addClass(s("visible"))):this.$badge.removeClass(s("visible"))})),this.bindAttr("widget",(function(t){this.$el.empty().append(t.$el)})),this.bindAttr("data",(function(t){this.has("widget")&&this.get("widget").set("data",t)}))}}),r=a.extend({tagName:"span",className:s("indicator"),render:function(){this.$icon=t("").appendTo(this.$el),this.bindAttr("icon",(function(t){t?this.$icon.attr("class","phpdebugbar-fa phpdebugbar-fa-"+t):this.$icon.attr("class","")})),this.bindAttr(["title","data"],t("").addClass(s("text")).appendTo(this.$el)),this.$tooltip=t("").addClass(s("tooltip disabled")).appendTo(this.$el),this.bindAttr("tooltip",(function(t){t?this.$tooltip.text(t).removeClass(s("disabled")):this.$tooltip.addClass(s("disabled"))}))}}),o=PhpDebugBar.DatasetTitleFormater=function(t){this.debugbar=t};t.extend(o.prototype,{format:function(t,e,s){s=s?" "+s:"";var a=i(this.debugbar.datasets)+1;if(void 0===e.__meta)return"#"+a+s;var n,r=e.__meta.uri;r.length&&"/"===r.charAt(r.length-1)?(n=(n=r.substr(0,r.length-1)).substr(n.lastIndexOf("/")+1),n+="/"):n=r.substr(r.lastIndexOf("/")+1);return n.length>150&&(n=n.substr(0,150)+"..."),"#"+a+" "+n+s+" ("+e.__meta.datetime.split(" ")[1]+")"}});var h=PhpDebugBar.DebugBar=a.extend({className:"phpdebugbar "+s("minimized"),options:{bodyMarginBottom:!0,bodyMarginBottomHeight:0},initialize:function(){this.controls={},this.dataMap={},this.datasets={},this.firstTabName=null,this.activePanelName=null,this.datesetTitleFormater=new o(this),this.options.bodyMarginBottomHeight=parseInt(t("body").css("margin-bottom")),this.registerResizeHandler()},registerResizeHandler:function(){if(void 0!==this.resize.bind){var e=this.resize.bind(this);this.respCSSSize=0,t(window).resize(e),setTimeout(e,20)}},resize:function(){var e=this.respCSSSize;0==this.respCSSSize&&this.$header.find("> div > *:visible").each((function(){e+=t(this).outerWidth()}));var i=this.$header.width(),s="phpdebugbar-mini-design",a=this.$header.hasClass(s);i<=e&&!a?(this.respCSSSize=e,this.$header.addClass(s)):e").addClass(s("drag-capture")).appendTo(this.$el),this.$resizehdle=t("
").addClass(s("resize-handle")).appendTo(this.$el),this.$header=t("
").addClass(s("header")).appendTo(this.$el),this.$headerLeft=t("
").addClass(s("header-left")).appendTo(this.$header),this.$headerRight=t("
").addClass(s("header-right")).appendTo(this.$header);var i,a,n=this.$body=t("
").addClass(s("body")).appendTo(this.$el);this.recomputeBottomOffset(),this.$resizehdle.on("mousedown",(function(t){a=n.height(),i=t.pageY,n.parents().on("mousemove",r).on("mouseup",o),e.$dragCapture.show(),t.preventDefault()}));var r=function(t){var s=a+(i-t.pageY);e.setHeight(s)},o=function(){n.parents().off("mousemove",r).off("mouseup",o),e.$dragCapture.hide()};this.$closebtn=t("").addClass(s("close-btn")).appendTo(this.$headerRight),this.$closebtn.click((function(){e.close()})),this.$minimizebtn=t("").addClass(s("minimize-btn")).appendTo(this.$headerRight),this.$minimizebtn.click((function(){e.minimize()})),this.$maximizebtn=t("").addClass(s("maximize-btn")).appendTo(this.$headerRight),this.$maximizebtn.click((function(){e.restore()})),this.$restorebtn=t("").addClass(s("restore-btn")).hide().appendTo(this.$el),this.$restorebtn.click((function(){e.restore()})),this.$openbtn=t("").addClass(s("open-btn")).appendTo(this.$headerRight).hide(),this.$openbtn.click((function(){e.openHandler.show((function(t,i){e.addDataSet(i,t,"(opened)"),e.showTab()}))})),this.$datasets=t("