var tacLayout={changeLayout:function(n){$("body").toggleClass(n);$("body").hasClass("fixed")&&n=="fixed"&&($pushMenu.expandOnHover(),$layout.activate())}};if(typeof jQuery=="undefined")throw new Error("AdminLTE requires jQuery");+function(n){"use strict";function f(t){return this.each(function(){var f=n(this),r=f.data(u),e;if(r||(e=n.extend({},o,f.data(),typeof t=="object"&&t),f.data(u,r=new i(e))),typeof t=="string"){if(typeof r[t]=="undefined")throw new Error("No method named "+t);r[t]()}})}var u="lte.layout",o={slimscroll:!0,resetHeight:!0},t={wrapper:".wrapper",contentWrapper:".content-wrapper",layoutBoxed:".layout-boxed",mainFooter:".main-footer",mainHeader:".main-header",sidebar:".sidebar",controlSidebar:".control-sidebar",fixed:".fixed",sidebarMenu:".sidebar-menu",logo:".main-header .logo"},r={fixed:"fixed",holdTransition:"hold-transition"},i=function(n){this.options=n;this.bindedResize=!1;this.activate()},e;i.prototype.activate=function(){this.fix();this.fixSidebar();n("body").removeClass(r.holdTransition);this.options.resetHeight&&n("body, html, "+t.wrapper).css({height:"auto","min-height":"100%"});this.bindedResize||(n(window).resize(function(){this.fix();this.fixSidebar();n(t.logo+", "+t.sidebar).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix();this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0);n(t.sidebarMenu).on("expanded.tree",function(){this.fix();this.fixSidebar()}.bind(this));n(t.sidebarMenu).on("collapsed.tree",function(){this.fix();this.fixSidebar()}.bind(this))};i.prototype.fix=function(){var e,u;n(t.layoutBoxed+" > "+t.wrapper).css("overflow","hidden");var o=n(t.mainFooter).outerHeight()||0,s=n(t.mainHeader).outerHeight()+o,i=n(window).height(),f=n(t.sidebar).height()||0;n("body").hasClass(r.fixed)?n(t.contentWrapper).css("min-height",i-o):(i>=f?(n(t.contentWrapper).css("min-height",i-s),e=i-s):(n(t.contentWrapper).css("min-height",f),e=f),u=n(t.controlSidebar),typeof u!="undefined"&&u.height()>e&&n(t.contentWrapper).css("min-height",u.height()))};i.prototype.fixSidebar=function(){if(!n("body").hasClass(r.fixed)){typeof n.fn.slimScroll!="undefined"&&n(t.sidebar).slimScroll({destroy:!0}).height("auto");return}this.options.slimscroll&&typeof n.fn.slimScroll!="undefined"&&(n(t.sidebar).slimScroll({destroy:!0}).height("auto"),n(t.sidebar).slimScroll({height:n(window).height()-n(t.mainHeader).height()+"px",color:"rgba(0,0,0,0.2)",size:"3px"}))};e=n.fn.layout;n.fn.layout=f;n.fn.layout.Constuctor=i;n.fn.layout.noConflict=function(){return n.fn.layout=e,this};n(window).on("load",function(){f.call(n("body"))})}(jQuery)+function(n){"use strict";function f(t){return this.each(function(){var i=n(this),u=i.data(e),f;u||(f=n.extend({},s,i.data(),typeof t=="object"&&t),i.data(e,u=new r(f)));t=="toggle"&&u.toggle()})}var e="lte.pushmenu",s={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},i={collapsed:".sidebar-collapse",open:".sidebar-open",mainSidebar:".main-sidebar",contentWrapper:".content-wrapper",searchInput:".sidebar-form .form-control",button:'[data-toggle="push-menu"]',mini:".sidebar-mini",expanded:".sidebar-expanded-on-hover",layoutFixed:".fixed"},t={collapsed:"sidebar-collapse",open:"sidebar-open",mini:"sidebar-mini",expanded:"sidebar-expanded-on-hover",expandFeature:"sidebar-mini-expand-feature",layoutFixed:"fixed"},u={expanded:"expanded.pushMenu",collapsed:"collapsed.pushMenu"},r=function(n){this.options=n;this.init()},o;r.prototype.init=function(){(this.options.expandOnHover||n("body").is(i.mini+i.layoutFixed))&&(this.expandOnHover(),n("body").addClass(t.expandFeature));n(i.contentWrapper).click(function(){n(window).width()<=this.options.collapseScreenSize&&n("body").hasClass(t.open)&&this.close()}.bind(this));n(i.searchInput).click(function(n){n.stopPropagation()})};r.prototype.toggle=function(){var r=n(window).width(),i=!n("body").hasClass(t.collapsed);r<=this.options.collapseScreenSize&&(i=n("body").hasClass(t.open));i?this.close():this.open()};r.prototype.open=function(){var i=n(window).width();i>this.options.collapseScreenSize?n("body").removeClass(t.collapsed).trigger(n.Event(u.expanded)):n("body").addClass(t.open).trigger(n.Event(u.expanded))};r.prototype.close=function(){var i=n(window).width();i>this.options.collapseScreenSize?n("body").addClass(t.collapsed).trigger(n.Event(u.collapsed)):n("body").removeClass(t.open+" "+t.collapsed).trigger(n.Event(u.collapsed))};r.prototype.expandOnHover=function(){n(i.mainSidebar).hover(function(){n("body").is(i.mini+i.collapsed)&&n(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){n("body").is(i.expanded)&&this.collapse()}.bind(this))};r.prototype.expand=function(){setTimeout(function(){n("body").removeClass(t.collapsed).addClass(t.expanded)},this.options.expandTransitionDelay)};r.prototype.collapse=function(){setTimeout(function(){n("body").removeClass(t.expanded).addClass(t.collapsed)},this.options.expandTransitionDelay)};o=n.fn.pushMenu;n.fn.pushMenu=f;n.fn.pushMenu.Constructor=r;n.fn.pushMenu.noConflict=function(){return n.fn.pushMenu=o,this};n(document).on("click",i.button,function(t){t.preventDefault();f.call(n(this),"toggle")});n(window).on("load",function(){f.call(n(i.button))})}(jQuery)+function(n){"use strict";function e(t){return this.each(function(){var i=n(this),e=i.data(u),f;e||(f=n.extend({},s,i.data(),typeof t=="object"&&t),i.data(u,new r(i,f)))})}var u="lte.tree",s={animationSpeed:500,accordion:!0,followLink:!1,trigger:".treeview a"},t={tree:".tree",treeview:".treeview",treeviewMenu:".treeview-menu",open:".menu-open, .active",li:"li",data:'[data-widget="tree"]',active:".active"},i={open:"menu-open",tree:"tree"},f={collapsed:"collapsed.tree",expanded:"expanded.tree"},r=function(r,u){this.element=r;this.options=u;n(this.element).addClass(i.tree);n(t.treeview+t.active,this.element).addClass(i.open);this._setUpListeners()},o;r.prototype.toggle=function(n,r){var f=n.next(t.treeviewMenu),u=n.parent(),e=u.hasClass(i.open);u.is(t.treeview)&&(this.options.followLink&&n.attr("href")!="#"||r.preventDefault(),e?this.collapse(f,u):this.expand(f,u))};r.prototype.expand=function(r,u){var s=n.Event(f.expanded),e,o;this.options.accordion&&(e=u.siblings(t.open),o=e.children(t.treeviewMenu),this.collapse(o,e));u.addClass(i.open);r.slideDown(this.options.animationSpeed,function(){n(this.element).trigger(s)}.bind(this))};r.prototype.collapse=function(r,u){var e=n.Event(f.collapsed);r.find(t.open).removeClass(i.open);u.removeClass(i.open);r.slideUp(this.options.animationSpeed,function(){r.find(t.open+" > "+t.treeview).slideUp();n(this.element).trigger(e)}.bind(this))};r.prototype._setUpListeners=function(){var n=this};o=n.fn.tree;n.fn.tree=e;n.fn.tree.Constructor=r;n.fn.tree.noConflict=function(){return n.fn.tree=o,this};n(window).on("load",function(){n(t.data).each(function(){e.call(n(this))})})}(jQuery)+function(n){"use strict";function e(t){return this.each(function(){var r=n(this),f=r.data(u),e;f||(e=n.extend({},s,r.data(),typeof t=="object"&&t),r.data(u,f=new i(r,e)));typeof t=="string"&&f.toggle()})}var u="lte.controlsidebar",s={slide:!0},t={sidebar:".control-sidebar",data:'[data-toggle="control-sidebar"]',open:".control-sidebar-open",bg:".control-sidebar-bg",wrapper:".wrapper",content:".content-wrapper",boxed:".layout-boxed"},r={open:"control-sidebar-open",fixed:"fixed"},f={collapsed:"collapsed.controlsidebar",expanded:"expanded.controlsidebar"},i=function(n,t){this.element=n;this.options=t;this.hasBindedResize=!1;this.init()},o;i.prototype.init=function(){if(!n(this.element).is(t.data))n(this).on("click",this.toggle);this.fix();n(window).resize(function(){this.fix()}.bind(this))};i.prototype.toggle=function(i){i&&i.preventDefault();this.fix();n(t.sidebar).is(t.open)||n("body").is(t.open)?this.collapse():this.expand()};i.prototype.expand=function(){this.options.slide?n(t.sidebar).addClass(r.open):n("body").addClass(r.open);n(this.element).trigger(n.Event(f.expanded))};i.prototype.collapse=function(){n("body, "+t.sidebar).removeClass(r.open);n(this.element).trigger(n.Event(f.collapsed))};i.prototype.fix=function(){n("body").is(t.boxed)&&this._fixForBoxed(n(t.bg))};i.prototype._fixForBoxed=function(i){i.css({position:"absolute",height:n(t.wrapper).height()})};o=n.fn.controlSidebar;n.fn.controlSidebar=e;n.fn.controlSidebar.Constructor=i;n.fn.controlSidebar.noConflict=function(){return n.fn.controlSidebar=o,this};n(document).on("click",t.data,function(t){t&&t.preventDefault();e.call(n(this),"toggle")})}(jQuery)+function(n){"use strict";function e(t){return this.each(function(){var r=n(this),f=r.data(u),e;if(f||(e=n.extend({},s,r.data(),typeof t=="object"&&t),r.data(u,f=new i(r,e))),typeof t=="string"){if(typeof f[t]=="undefined")throw new Error("No method named "+t);f[t]()}})}var u="lte.boxwidget",s={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},t={data:".box",collapsed:".collapsed-box",body:".box-body",footer:".box-footer",tools:".box-tools"},f={collapsed:"collapsed-box"},r={collapsed:"collapsed.boxwidget",expanded:"expanded.boxwidget",removed:"removed.boxwidget"},i=function(n,t){this.element=n;this.options=t;this._setUpListeners()},o;i.prototype.toggle=function(){var i=!n(this.element).is(t.collapsed);i?this.collapse():this.expand()};i.prototype.expand=function(){var u=n.Event(r.expanded),e=this.options.collapseIcon,i=this.options.expandIcon;n(this.element).removeClass(f.collapsed);n(this.element).find(t.tools).find("."+i).removeClass(i).addClass(e);n(this.element).find(t.body+", "+t.footer).slideDown(this.options.animationSpeed,function(){n(this.element).trigger(u)}.bind(this))};i.prototype.collapse=function(){var u=n.Event(r.collapsed),i=this.options.collapseIcon,e=this.options.expandIcon;n(this.element).find(t.tools).find("."+i).removeClass(i).addClass(e);n(this.element).find(t.body+", "+t.footer).slideUp(this.options.animationSpeed,function(){n(this.element).addClass(f.collapsed);n(this.element).trigger(u)}.bind(this))};i.prototype.remove=function(){var t=n.Event(r.removed);n(this.element).slideUp(this.options.animationSpeed,function(){n(this.element).trigger(t);n(this.element).remove()}.bind(this))};i.prototype._setUpListeners=function(){var t=this;n(this.element).on("click",this.options.collapseTrigger,function(n){n&&n.preventDefault();t.toggle()});n(this.element).on("click",this.options.removeTrigger,function(n){n&&n.preventDefault();t.remove()})};o=n.fn.boxWidget;n.fn.boxWidget=e;n.fn.boxWidget.Constructor=i;n.fn.boxWidget.noConflict=function(){return n.fn.boxWidget=o,this};n(window).on("load",function(){n(t.data).each(function(){e.call(n(this))})})}(jQuery)+function(n){"use strict";function u(r){return this.each(function(){var f=n(this),u=f.data(i),o;if(u||(o=n.extend({},e,f.data(),typeof r=="object"&&r),f.data(i,u=new t(f,o))),typeof u=="string"){if(typeof u[r]=="undefined")throw new Error("No method named "+r);u[r]()}})}var i="lte.todolist",e={iCheck:!1,onCheck:function(){},onUnCheck:function(){}},r={data:'[data-widget="todo-list"]'},o={done:"done"},t=function(n,t){this.element=n;this.options=t;this._setUpListeners()},f;t.prototype.toggle=function(n){if(n.parents(r.li).first().toggleClass(o.done),!n.prop("checked")){this.unCheck(n);return}this.check(n)};t.prototype.check=function(n){this.options.onCheck.call(n)};t.prototype.unCheck=function(n){this.options.onUnCheck.call(n)};t.prototype._setUpListeners=function(){var t=this;n(this.element).on("change ifChanged","input:checkbox",function(){t.toggle(n(this))})};f=n.fn.todoList;n.fn.todoList=u;n.fn.todoList.Constructor=t;n.fn.todoList.noConflict=function(){return n.fn.todoList=f,this};n(window).on("load",function(){n(r.data).each(function(){u.call(n(this))})})}(jQuery)+function(n){"use strict";function u(r){return this.each(function(){var u=n(this),f=u.data(i);f||u.data(i,f=new t(u));typeof r=="string"&&f.toggle(u)})}var i="lte.directchat",r={data:'[data-widget="chat-pane-toggle"]',box:".direct-chat"},e={open:"direct-chat-contacts-open"},t=function(n){this.element=n},f;t.prototype.toggle=function(n){n.parents(r.box).first().toggleClass(e.open)};f=n.fn.directChat;n.fn.directChat=u;n.fn.directChat.Constructor=t;n.fn.directChat.noConflict=function(){return n.fn.directChat=f,this};n(document).on("click",r.data,function(t){t&&t.preventDefault();u.call(n(this),"toggle")})}(jQuery)