if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");!function(i){"use strict";var s="lte.boxrefresh",r={source:"",params:{},trigger:".refresh-btn",content:".box-body",loadInContent:!0,responseType:"",overlayTemplate:'
',onLoadStart:function(){},onLoadDone:function(t){return t}},t='[data-widget="box-refresh"]',a=function(t,e){if(this.element=t,this.options=e,this.$overlay=i(e.overlayTemplate),""===e.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()};function e(o){return this.each(function(){var t=i(this),e=t.data(s);if(!e){var n=i.extend({},r,t.data(),"object"==typeof o&&o);t.data(s,e=new a(t,n))}if("string"==typeof e){if(void 0===e[o])throw new Error("No method named "+o);e[o]()}})}a.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(i(this)),i.get(this.options.source,this.options.params,function(t){this.options.loadInContent&&i(this.element).find(this.options.content).html(t),this.options.onLoadDone.call(i(this),t),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},a.prototype._setUpListeners=function(){i(this.element).on("click",this.options.trigger,function(t){t&&t.preventDefault(),this.load()}.bind(this))},a.prototype._addOverlay=function(){i(this.element).append(this.$overlay)},a.prototype._removeOverlay=function(){i(this.$overlay).remove()};var n=i.fn.boxRefresh;i.fn.boxRefresh=e,i.fn.boxRefresh.Constructor=a,i.fn.boxRefresh.noConflict=function(){return i.fn.boxRefresh=n,this},i(window).on("load",function(){i(t).each(function(){e.call(i(this))})})}(jQuery),function(i){"use strict";var s="lte.boxwidget",r={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},t=".box",e=".collapsed-box",o=".box-header",a=".box-body",d=".box-footer",c=".box-tools",l="collapsed-box",h="collapsed.boxwidget",p="expanded.boxwidget",n="removed.boxwidget",f=function(t,e){this.element=t,this.options=e,this._setUpListeners()};function u(o){return this.each(function(){var t=i(this),e=t.data(s);if(!e){var n=i.extend({},r,t.data(),"object"==typeof o&&o);t.data(s,e=new f(t,n))}if("string"==typeof o){if(void 0===e[o])throw new Error("No method named "+o);e[o]()}})}f.prototype.toggle=function(){!i(this.element).is(e)?this.collapse():this.expand()},f.prototype.expand=function(){var t=i.Event(p),e=this.options.collapseIcon,n=this.options.expandIcon;i(this.element).removeClass(l),i(this.element).children(o+", "+a+", "+d).children(c).find("."+n).removeClass(n).addClass(e),i(this.element).children(a+", "+d).slideDown(this.options.animationSpeed,function(){i(this.element).trigger(t)}.bind(this))},f.prototype.collapse=function(){var t=i.Event(h),e=this.options.collapseIcon,n=this.options.expandIcon;i(this.element).children(o+", "+a+", "+d).children(c).find("."+e).removeClass(e).addClass(n),i(this.element).children(a+", "+d).slideUp(this.options.animationSpeed,function(){i(this.element).addClass(l),i(this.element).trigger(t)}.bind(this))},f.prototype.remove=function(){var t=i.Event(n);i(this.element).slideUp(this.options.animationSpeed,function(){i(this.element).trigger(t),i(this.element).remove()}.bind(this))},f.prototype._setUpListeners=function(){var e=this;i(this.element).on("click",this.options.collapseTrigger,function(t){return t&&t.preventDefault(),e.toggle(i(this)),!1}),i(this.element).on("click",this.options.removeTrigger,function(t){return t&&t.preventDefault(),e.remove(i(this)),!1})};var g=i.fn.boxWidget;i.fn.boxWidget=u,i.fn.boxWidget.Constructor=f,i.fn.boxWidget.noConflict=function(){return i.fn.boxWidget=g,this},i(window).on("load",function(){i(t).each(function(){u.call(i(this))})})}(jQuery),function(i){"use strict";var s="lte.controlsidebar",r={slide:!0},e=".control-sidebar",t='[data-toggle="control-sidebar"]',n=".control-sidebar-open",o=".control-sidebar-bg",a=".wrapper",d=".layout-boxed",c="control-sidebar-open",l="collapsed.controlsidebar",h="expanded.controlsidebar",p=function(t,e){this.element=t,this.options=e,this.hasBindedResize=!1,this.init()};function f(o){return this.each(function(){var t=i(this),e=t.data(s);if(!e){var n=i.extend({},r,t.data(),"object"==typeof o&&o);t.data(s,e=new p(t,n))}"string"==typeof o&&e.toggle()})}p.prototype.init=function(){i(this.element).is(t)||i(this).on("click",this.toggle),this.fix(),i(window).resize(function(){this.fix()}.bind(this))},p.prototype.toggle=function(t){t&&t.preventDefault(),this.fix(),i(e).is(n)||i("body").is(n)?this.collapse():this.expand()},p.prototype.expand=function(){this.options.slide?i(e).addClass(c):i("body").addClass(c),i(this.element).trigger(i.Event(h))},p.prototype.collapse=function(){i("body, "+e).removeClass(c),i(this.element).trigger(i.Event(l))},p.prototype.fix=function(){i("body").is(d)&&this._fixForBoxed(i(o))},p.prototype._fixForBoxed=function(t){t.css({position:"absolute",height:i(a).height()})};var u=i.fn.controlSidebar;i.fn.controlSidebar=f,i.fn.controlSidebar.Constructor=p,i.fn.controlSidebar.noConflict=function(){return i.fn.controlSidebar=u,this},i(document).on("click",t,function(t){t&&t.preventDefault(),f.call(i(this),"toggle")})}(jQuery),function(o){"use strict";var i="lte.directchat",t='[data-widget="chat-pane-toggle"]',e=".direct-chat",n="direct-chat-contacts-open",s=function(t){this.element=t};function r(n){return this.each(function(){var t=o(this),e=t.data(i);e||t.data(i,e=new s(t)),"string"==typeof n&&e.toggle(t)})}s.prototype.toggle=function(t){t.parents(e).first().toggleClass(n)};var a=o.fn.directChat;o.fn.directChat=r,o.fn.directChat.Constructor=s,o.fn.directChat.noConflict=function(){return o.fn.directChat=a,this},o(document).on("click",t,function(t){t&&t.preventDefault(),r.call(o(this),"toggle")})}(jQuery),function(a){"use strict";var i="lte.layout",s={slimscroll:!0,resetHeight:!0},d=".wrapper",c=".content-wrapper",l=".layout-boxed",h=".main-footer",p=".main-header",f=".sidebar",u=".control-sidebar",t=".sidebar-menu",e=".main-header .logo",g="fixed",n="hold-transition",r=function(t){this.options=t,this.bindedResize=!1,this.activate()};function o(o){return this.each(function(){var t=a(this),e=t.data(i);if(!e){var n=a.extend({},s,t.data(),"object"==typeof o&&o);t.data(i,e=new r(n))}if("string"==typeof o){if(void 0===e[o])throw new Error("No method named "+o);e[o]()}})}r.prototype.activate=function(){this.fix(),this.fixSidebar(),a("body").removeClass(n),this.options.resetHeight&&a("body, html, "+d).css({height:"auto","min-height":"100%"}),this.bindedResize||(a(window).resize(function(){this.fix(),this.fixSidebar(),a(e+", "+f).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix(),this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0),a(t).on("expanded.tree",function(){this.fix(),this.fixSidebar()}.bind(this)),a(t).on("collapsed.tree",function(){this.fix(),this.fixSidebar()}.bind(this))},r.prototype.fix=function(){a(l+" > "+d).css("overflow","hidden");var t=a(h).outerHeight()||0,e=a(p).outerHeight()||0,n=e+t,o=a(window).height(),i=a(f).height()||0;if(a("body").hasClass(g))a(c).css("min-height",o-t);else{var s;s=i+e<=o?(a(c).css("min-height",o-n),o-n):(a(c).css("min-height",i),i);var r=a(u);void 0!==r&&r.height()>s&&a(c).css("min-height",r.height())}},r.prototype.fixSidebar=function(){a("body").hasClass(g)?this.options.slimscroll&&void 0!==a.fn.slimScroll&&a(f).slimScroll({height:a(window).height()-a(p).height()+"px"}):void 0!==a.fn.slimScroll&&a(f).slimScroll({destroy:!0}).height("auto")};var v=a.fn.layout;a.fn.layout=o,a.fn.layout.Constuctor=r,a.fn.layout.noConflict=function(){return a.fn.layout=v,this},a(window).on("load",function(){o.call(a("body"))})}(jQuery),function(i){"use strict";var s="lte.pushmenu",r={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},t=".sidebar-collapse",e=".main-sidebar",n=".content-wrapper",o=".sidebar-form .form-control",a='[data-toggle="push-menu"]',d=".sidebar-mini",c=".sidebar-expanded-on-hover",l=".fixed",h="sidebar-collapse",p="sidebar-open",f="sidebar-expanded-on-hover",u="sidebar-mini-expand-feature",g="expanded.pushMenu",v="collapsed.pushMenu",b=function(t){this.options=t,this.init()};function y(o){return this.each(function(){var t=i(this),e=t.data(s);if(!e){var n=i.extend({},r,t.data(),"object"==typeof o&&o);t.data(s,e=new b(n))}"toggle"===o&&e.toggle()})}b.prototype.init=function(){(this.options.expandOnHover||i("body").is(d+l))&&(this.expandOnHover(),i("body").addClass(u)),i(n).click(function(){i(window).width()<=this.options.collapseScreenSize&&i("body").hasClass(p)&&this.close()}.bind(this)),i(o).click(function(t){t.stopPropagation()})},b.prototype.toggle=function(){var t=i(window).width(),e=!i("body").hasClass(h);t<=this.options.collapseScreenSize&&(e=i("body").hasClass(p)),e?this.close():this.open()},b.prototype.open=function(){i(window).width()>this.options.collapseScreenSize?i("body").removeClass(h).trigger(i.Event(g)):i("body").addClass(p).trigger(i.Event(g))},b.prototype.close=function(){i(window).width()>this.options.collapseScreenSize?i("body").addClass(h).trigger(i.Event(v)):i("body").removeClass(p+" "+h).trigger(i.Event(v))},b.prototype.expandOnHover=function(){i(e).hover(function(){i("body").is(d+t)&&i(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){i("body").is(c)&&this.collapse()}.bind(this))},b.prototype.expand=function(){setTimeout(function(){i("body").removeClass(h).addClass(f)},this.options.expandTransitionDelay)},b.prototype.collapse=function(){setTimeout(function(){i("body").removeClass(f).addClass(h)},this.options.expandTransitionDelay)};var m=i.fn.pushMenu;i.fn.pushMenu=y,i.fn.pushMenu.Constructor=b,i.fn.pushMenu.noConflict=function(){return i.fn.pushMenu=m,this},i(document).on("click",a,function(t){t.preventDefault(),y.call(i(this),"toggle")}),i(window).on("load",function(){y.call(i(a))})}(jQuery),function(i){"use strict";var s="lte.todolist",r={onCheck:function(t){return t},onUnCheck:function(t){return t}},e={data:'[data-widget="todo-list"]'},n="done",a=function(t,e){this.element=t,this.options=e,this._setUpListeners()};function t(o){return this.each(function(){var t=i(this),e=t.data(s);if(!e){var n=i.extend({},r,t.data(),"object"==typeof o&&o);t.data(s,e=new a(t,n))}if("string"==typeof e){if(void 0===e[o])throw new Error("No method named "+o);e[o]()}})}a.prototype.toggle=function(t){t.parents(e.li).first().toggleClass(n),t.prop("checked")?this.check(t):this.unCheck(t)},a.prototype.check=function(t){this.options.onCheck.call(t)},a.prototype.unCheck=function(t){this.options.onUnCheck.call(t)},a.prototype._setUpListeners=function(){var t=this;i(this.element).on("change ifChanged","input:checkbox",function(){t.toggle(i(this))})};var o=i.fn.todoList;i.fn.todoList=t,i.fn.todoList.Constructor=a,i.fn.todoList.noConflict=function(){return i.fn.todoList=o,this},i(window).on("load",function(){i(e.data).each(function(){t.call(i(this))})})}(jQuery),function(s){"use strict";var o="lte.tree",i={animationSpeed:500,accordion:!0,followLink:!1,trigger:".treeview a"},r=".treeview",a=".treeview-menu",d=".menu-open, .active",t='[data-widget="tree"]',n=".active",c="menu-open",l="tree",h="collapsed.tree",p="expanded.tree",f=function(t,e){this.element=t,this.options=e,s(this.element).addClass(l),s(r+n,this.element).addClass(c),this._setUpListeners()};function e(n){return this.each(function(){var t=s(this);if(!t.data(o)){var e=s.extend({},i,t.data(),"object"==typeof n&&n);t.data(o,new f(t,e))}})}f.prototype.toggle=function(t,e){var n=t.next(a),o=t.parent(),i=o.hasClass(c);o.is(r)&&(this.options.followLink&&"#"!==t.attr("href")||e.preventDefault(),i?this.collapse(n,o):this.expand(n,o))},f.prototype.expand=function(t,e){var n=s.Event(p);if(this.options.accordion){var o=e.siblings(d),i=o.children(a);this.collapse(i,o)}e.addClass(c),t.slideDown(this.options.animationSpeed,function(){s(this.element).trigger(n)}.bind(this))},f.prototype.collapse=function(t,e){var n=s.Event(h);e.removeClass(c),t.slideUp(this.options.animationSpeed,function(){s(this.element).trigger(n)}.bind(this))},f.prototype._setUpListeners=function(){var e=this;s(this.element).on("click",this.options.trigger,function(t){e.toggle(s(this),t)})};var u=s.fn.tree;s.fn.tree=e,s.fn.tree.Constructor=f,s.fn.tree.noConflict=function(){return s.fn.tree=u,this},s(window).on("load",function(){s(t).each(function(){e.call(s(this))})})}(jQuery);