if(!jQuery)throw new Error("Bootstrap requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]}}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(window.jQuery);+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;(r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=n(r),t&&t.preventDefault(),i.length||(i=u.hasClass("alert")?u:u.parent()),i.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented())||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(window.jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r)},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(n){var i="disabled",t=this.$element,r=t.is("input")?"val":"html",u=t.data();n=n+"Text";u.resetText||t.data("resetText",t[r]());t[r](u[n]||this.options[n]);setTimeout(function(){n=="loadingText"?t.addClass(i).attr(i,i):t.removeClass(i).removeAttr(i)},0)};t.prototype.toggle=function(){var n=this.$element.closest('[data-toggle="buttons"]'),t;n.length&&(t=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change"),t.prop("type")==="radio"&&n.find(".active").removeClass("active"));this.$element.toggleClass("active")};i=n.fn.button;n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})};n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn"));i.button("toggle");t.preventDefault()})}(window.jQuery);+function(n){"use strict";var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.pause=="hover"&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)};t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(t<0))return this.sliding?this.$element.one("slid",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition.end&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),s=this.interval,f=t=="next"?"left":"right",h=t=="next"?"first":"last",o=this,e;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}if(this.sliding=!0,s&&this.pause(),e=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),!r.hasClass("active")){if(this.$indicators.length){this.$indicators.find(".active").removeClass("active");this.$element.one("slid",function(){var t=n(o.$indicators.children()[o.getActiveIndex()]);t&&t.addClass("active")})}if(n.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;r.addClass(t);r[0].offsetWidth;u.addClass(f);r.addClass(f);u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));o.sliding=!1;setTimeout(function(){o.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;u.removeClass("active");r.addClass("active");this.sliding=!1;this.$element.trigger("slid")}return s&&this.cycle(),this}};i=n.fn.carousel;n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})};n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var i=n(this),f,r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1);r.carousel(e);(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u);t.preventDefault()});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(window.jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide");r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("in")[i]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-"));this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented())){if(t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},!n.support.transition)return r.call(this);this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};i=n.fn.collapse;n.fn.collapse=function(i){return this.each(function(){var r=n(this),u=r.data("bs.collapse"),f=n.extend({},t.DEFAULTS,r.data(),typeof i=="object"&&i);u||r.data("bs.collapse",u=new t(this,f));typeof i=="string"&&u[i]()})};n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this};n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var i=n(this),e,s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed"));r.collapse(h)})}(window.jQuery);+function(n){"use strict";function r(){n(e).remove();n(i).each(function(t){var i=u(n(this));i.hasClass("open")&&((i.trigger(t=n.Event("hide.bs.dropdown")),t.isDefaultPrevented())||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}var e=".dropdown-backdrop",i="[data-toggle=dropdown]",t=function(t){var i=n(t).on("click.bs.dropdown",this.toggle)},f;t.prototype.toggle=function(t){var f=n(this),i,e;if(!f.is(".disabled, :disabled")){if(i=u(f),e=i.hasClass("open"),r(),!e){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r);if(i.trigger(t=n.Event("show.bs.dropdown")),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown");f.focus()}return!1}};t.prototype.keydown=function(t){var e,o,s,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&t.keyCode==27)return t.which==27&&o.find(i).focus(),e.click();(f=n("[role=menu] li:not(.divider):visible a",o),f.length)&&(r=f.index(f.filter(":focus")),t.keyCode==38&&r>0&&r--,t.keyCode==40&&r<f.length-1&&r++,~r||(r=0),f.eq(r).focus())}};f=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("dropdown");u||r.data("dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+", [role=menu]",t.prototype.keydown)}(window.jQuery);+function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t);this.$backdrop=this.isShown=null;this.options.remote&&this.$element.load(this.options.remote)},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this[this.isShown?"hide":"show"](n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});if(this.$element.trigger(r),!this.isShown&&!r.isDefaultPrevented()){this.isShown=!0;this.escape();this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body);i.$element.show();u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)})}};t.prototype.hide=function(t){(t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.removeBackdrop();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var u=this,r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){i=n.support.transition&&r;this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body);this.$element.on("click.dismiss.modal",n.proxy(function(n){n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this));if(i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};i=n.fn.modal;n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})};n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());t.preventDefault();u.modal(f,this).one("hide",function(){i.is(":visible")&&i.focus()})});n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(window.jQuery);+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focus";s=u=="hover"?"mouseleave":"blur";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var o=n.Event("show.bs."+this.type),i,l;if(this.hasContent()&&this.enabled){if(this.$element.trigger(o),o.isDefaultPrevented())return;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,h=s.test(t);h&&(t=t.replace(s,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),u=i[0].offsetWidth,f=i[0].offsetHeight;if(h){var e=this.$element.parent(),a=t,c=document.documentElement.scrollTop||document.body.scrollTop,v=this.options.container=="body"?window.innerWidth:e.outerWidth(),y=this.options.container=="body"?window.innerHeight:e.outerHeight(),p=this.options.container=="body"?0:e.offset().left;t=t=="bottom"&&r.top+r.height+f-c>y?"top":t=="top"&&r.top-c-f<0?"bottom":t=="right"&&r.right+u>v?"left":t=="left"&&r.left-u<p?"right":t;i.removeClass(a).addClass(t)}l=this.getCalculatedOffset(t,r,u,f);this.applyPlacement(l,t);this.$element.trigger("shown.bs."+this.type)}};t.prototype.applyPlacement=function(n,t){var h,i=this.tip(),c=i[0].offsetWidth,f=i[0].offsetHeight,e=parseInt(i.css("margin-top"),10),o=parseInt(i.css("margin-left"),10),u,r,s;isNaN(e)&&(e=0);isNaN(o)&&(o=0);n.top=n.top+e;n.left=n.left+o;i.offset(n).addClass("in");u=i[0].offsetWidth;r=i[0].offsetHeight;t=="top"&&r!=f&&(h=!0,n.top=n.top+f-r);/bottom|top/.test(t)?(s=0,n.left<0&&(s=n.left*-2,n.left=0,i.offset(n),u=i[0].offsetWidth,r=i[0].offsetHeight),this.replaceArrow(s-c+u,u,"left")):this.replaceArrow(r-f,r,"top");h&&i.offset(n)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function r(){u.hoverState!="in"&&t.detach()}var u=this,t=this.tip(),i=n.Event("hide.bs."+this.type);if(this.$element.trigger(i),!i.isDefaultPrevented())return t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?t.one(n.support.transition.end,r).emulateTransitionEnd(150):r(),this.$element.trigger("hidden.bs."+this.type),this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;r||u.data("bs.tooltip",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(window.jQuery);+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle(),i=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](t);n.find(".popover-content")[this.options.html?"html":"text"](i);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;r||u.data("bs.popover",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(window.jQuery);+function(n){"use strict";function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(i).is("body")?n(window):n(i);this.$body=n("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||(u=n(i).attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.offsets=n([]);this.targets=n([]);this.activeTarget=null;this.refresh();this.process()}t.DEFAULTS={offset:10};t.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position",t,r;this.offsets=n([]);this.targets=n([]);t=this;r=this.$body.find(this.selector).map(function(){var f=n(this),r=f.data("target")||f.attr("href"),u=/^#\w/.test(r)&&n(r);return u&&u.length&&[[u[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parents(".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=i,this};n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(window.jQuery);+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.attr("data-target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})}))};t.prototype.activate=function(t,i,r){function e(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");f?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),f=r&&n.support.transition&&u.hasClass("fade");f?u.one(n.support.transition.end,e).emulateTransitionEnd(150):e();u.removeClass("in")};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(window.jQuery);+function(n){"use strict";var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$window=n(window).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=null;this.checkPosition()},i;t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i;if(this.$element.is(":visible")){var s=n(document).height(),e=this.$window.scrollTop(),o=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top()),typeof u=="function"&&(u=r.bottom()),i=this.unpin!=null&&e+this.unpin<=o.top?!1:u!=null&&o.top+this.$element.height()>=s-u?"bottom":f!=null&&e<=f?"top":!1,this.affixed!==i)&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin=i=="bottom"?o.top-e:null,this.$element.removeClass(t.RESET).addClass("affix"+(i?"-"+i:"")),i=="bottom"&&this.$element.offset({top:document.body.offsetHeight-u-this.$element.height()}))}};i=n.fn.affix;n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=i,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.affix(t)})})}(window.jQuery),function(n){n.extend({showBsModal:function(t){var i=n.extend({title:"Alert",content:"",noHeader:!1,noFooter:!1,bootstrapOptions:null,buttons:null,width:null,size:null,marginTop:null,onClose:null,id:"myModalID"+n(".modal").length,className:null,ajaxLoadingMessage:"",ajaxContent:null,ajaxCallBack:null},t),r="",e=i.noHeader===!0&&i.noFooter===!0?".modal-content":".modal-body",u,f;i.ajaxContent!==null&&(i.content="<div class='modal-loading-msg'>"+(i.ajaxLoadingMessage?i.ajaxLoadingMessage:"")+"<div class='modal-loading-img'><\/div><\/div>"),function(){r+='<div class="modal fade" id="'+i.id+'" tabindex="-1" role="dialog" aria-labelledby="'+i.title.replace(/ /g,"")+'ModalLabel" aria-hidden="true"><div class="modal-dialog';i.className&&(r+=" "+i.className);i.size&&(r+=" "+i.size);r+='"';(i.width||i.marginTop)&&(r+=' style="',i.width&&(r+="width:"+i.width+";"),i.marginTop&&(r+="margin-top:"+i.marginTop+";"),r+='"');r+='><div class="modal-content';i.ajaxContent!==null&&(r+=" ab-modal-loading",i.noFooter===!1&&(r+=" loading-with-footer"),i.noHeader===!1&&(r+=" loading-with-header"));r+='"';r+=' id="'+i.id+'-content"';r+=">";i.noHeader!==!0&&(r+='<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;<\/button><h4 class="modal-title" id="'+i.title.replace(/ /g,"")+'ModalLabel">'+i.title+"<\/h4><\/div>");r+=i.noHeader===!0&&i.noFooter===!0?i.content:'<div class="modal-body">'+i.content+"<\/div>";i.noFooter!==!0&&(r+='<div class="modal-footer">',i.buttons?n.each(i.buttons,function(n,t){r+='<button type="button" class="';r+=t.className?t.className:"btn btn-default";r+='" id="';r+=t.id?t.id:i.id+t.text+"button";t.onClick&&(r+='" onClick="',r+=t.onClick);r+='"';t.data&&(r+=" "+t.data);r+=">"+t.text+"<\/button>"}):r+='<button type="button" id="'+i.id+'closeButton" class="btn btn-default" data-dismiss="modal">Close<\/button>',r+="<\/div>");r+="<\/div><\/div><\/div>"}();n("body").append(r);n("#"+i.id).modal(i.bootstrapOptions&&i.bootstrapOptions);i.ajaxContent!==null&&(u=i.ajaxContent instanceof Array?!0:!1,f=u?i.ajaxContent[0]:i.ajaxContent,n("#"+i.id+" "+e).load(f,u?i.ajaxContent[1]:null,function(t,r,u){n("#"+i.id+" .modal-content").removeClass("ab-modal-loading").removeClass("loading-with-footer").removeClass("loading-with-header");i.ajaxCallBack!==null&&i.ajaxCallBack(t,r,u)}));n("#"+i.id).on("hidden.bs.modal",function(){i.onClose&&i.onClose();n(this).remove()})}})}(jQuery),function(n,t,i){n.ichecked||(n.ichecked=function(){var f,st;i=n.jQuery||n.Zepto;f={autoInit:!0,autoAjax:!1,tap:!0,checkboxClass:"icheckbox",radioClass:"iradio",checkedClass:"checked",disabledClass:"disabled",indeterminateClass:"indeterminate",hoverClass:"hover",callbacks:{ifCreated:!1},classes:{base:"icheck",div:"#-item",area:"#-area-",input:"#-input",label:"#-label"}};n.icheck=i.extend(f,n.icheck);var u=n.navigator.userAgent,ht=/MSIE [5-8]/.test(u)||9>t.documentMode,c=/Opera Mini/.test(u),e=f.classes.base,b=f.classes.div.replace("#",e),ct=f.classes.area.replace("#",e),k=f.classes.input.replace("#",e),d=f.classes.label.replace("#",e);delete f.classes;var lt={},r={},kt=new RegExp(e+"\\[(.*?)\\]"),l=function(n,t,i){return n&&(t=kt.exec(n))&&r[t[1]]&&(i=t[1]),i},at=n.getComputedStyle,ft=n.PointerEvent||n.MSPointerEvent,h="ontouchend"in n,a=/mobile|tablet|phone|ip(ad|od)|android|silk|webos/i.test(u),u=["mouse","down","up","over","out"],o=n.PointerEvent?["pointer",u[1],u[2],u[3],u[4]]:["MSPointer","Down","Up","Over","Out"],g=["touch","start","end"],nt=h&&a||ft,tt=nt?h?g[0]+g[1]:o[0]+o[3]:u[0]+u[3],et=nt?h?g[0]+g[2]:o[0]+o[4]:u[0]+u[4],p=nt?h?!1:o[0]+o[1]:u[0]+u[1],ot=nt?h?!1:o[0]+o[2]:u[0]+u[2],u=c?"":tt+".i "+et+".i ",o=!c&&p?p+".i "+ot+".i":"",v,it,vt=!1!==f.areaStyle?'position:absolute;display:block;content:"";top:#;bottom:#;left:#;right:#;':0,rt=function(i,r,u){v||(v=t.createElement("style"),(t.head||t.getElementsByTagName("head")[0]).appendChild(v),n.createPopup||v.appendChild(t.createTextNode("")),it=v.sheet||v.styleSheet);r||(r="div."+(u?ct+u+":after":b+" input."+k));i=i.replace(/!/g," !important");it.addRule?it.addRule(r,i,0):it.insertRule(r+"{"+i+"}",0)};rt("position:absolute!;display:block!;outline:none!;"+(f.debug?"":"opacity:0!;z-index:-99!;clip:rect(0 0 0 0)!;"));(h&&a||c)&&rt("cursor:pointer!;","label."+d+",div."+b);rt("display:none!","iframe.icheck-frame");var s=function(n,t,i,r,u,f,e){if(r=n.className)return u=" "+r+" ",1===i?f=t:0===i?e=t:(f=t[0],e=t[1]),f&&0>u.indexOf(" "+f+" ")&&(u+=f+" "),e&&~u.indexOf(" "+e+" ")&&(u=u.replace(" "+e+" "," ")),u=u.replace(/^\s+|\s+$/g,""),u!==r&&(n.className=u),u},yt=function(n,t,u,f,e,o){r[t]&&(f=r[t],e=f.className,o=i(y(n,"div",e)),o.length&&(i(n).removeClass(k+" "+e).attr("style",f.style),i("label."+f.esc).removeClass(d+" "+e),i(o).replaceWith(i(n)),u&&w(n,t,u)),r[t]=!1)},pt=function(n,t,r,u,f){for(r=[],u=n.length;u--;)if(t=n[u],t.type)~"input[type=checkbox],input[type=radio]".indexOf(t.type)&&r.push(t);else for(t=i(t).find("input[type=checkbox],input[type=radio]"),f=t.length;f--;)r.push(t[f]);return r},y=function(n,t,i,r){for(;n&&9!==n.nodeType;)if((n=n.parentNode)&&n.tagName==t.toUpperCase()&&~n.className.indexOf(i)){r=n;break}return r},w=function(n,t,u){u="if"+u;r[t].callbacks&&!1!==r[t].callbacks[u]&&(i(n).trigger(u),"function"==typeof r[t].callbacks[u])&&r[t].callbacks[u](n,r[t])},wt=function(u,o,h,c){var bt,ni;for(u=pt(u),bt=u.length;bt--;){var tt=u[bt],v=tt.attributes,et={},a=v.length,p,it,ht={},ti={},kt,nt=tt.id,dt=tt.className,ii,ri=tt.type,gt=i.cache?i.cache[tt[i.expando]]:0,ft=l(dt),st,g,wt="",ot=!1;for(g=[],ni=n.FastClick?" needsclick":"";a--;)p=v[a].name,it=v[a].value,~p.indexOf("data-")&&(ht[p.substr(5)]=it),"style"==p&&(ii=it),et[p]=it;gt&&gt.data&&(ht=i.extend(ht,gt.data));for(kt in ht)it=ht[kt],("true"==it||"false"==it)&&(it="true"==it),ti[kt.replace(/checkbox|radio|class|id|label/g,function(n,t){return 0===t?n:n.charAt(0).toUpperCase()+n.slice(1)})]=it;if(v=i.extend({},f,n.icheck,ti,o),a=v.handle,"checkbox"!==a&&"radio"!==a&&(a="input[type=checkbox],input[type=radio]"),!1!==v.init&&~a.indexOf(ri)){for(ft&&yt(tt,ft);!r[ft];)if(ft=Math.random().toString(36).substr(2,5),!r[ft]){st=e+"["+ft+"]";break}if(delete v.autoInit,delete v.autoAjax,v.style=ii||"",v.className=st,v.esc=st.replace(/(\[|\])/g,"\\$1"),r[ft]=v,(a=y(tt,"label",""))&&(!a.htmlFor&&nt&&(a.htmlFor=nt),g.push(a)),nt)for(p=i('label[for="'+nt+'"]');p.length--;)nt=p[p.length],nt!==a&&g.push(nt);for(it=g.length;it--;)nt=g[it],p=nt.className,p=(a=l(p))?s(nt,e+"["+a+"]",0):(p?p+" ":"")+d,nt.className=p+" "+st+ni;if(g=t.createElement("div"),v.inherit)for(nt=v.inherit.split(/\s*,\s*/),p=nt.length;p--;)a=nt[p],void 0!==et[a]&&("class"==a?wt+=et[a]+" ":g.setAttribute(a,"id"==a?e+"-"+et[a]:et[a]));wt+=v[ri+"Class"];wt+=" "+b+" "+st;v.area&&vt&&(ot=(""+v.area).replace(/%|px|em|\+|-/g,"")|0)&&(lt[ot]||(rt(vt.replace(/#/g,"-"+ot+"%"),!1,ot),lt[ot]=!0),wt+=" "+ct+ot);g.className=wt+ni;tt.className=(dt?dt+" ":"")+k+" "+st;tt.parentNode.replaceChild(g,tt);g.appendChild(tt);v.insert&&i(g).append(v.insert);ot&&(et=at?at(g,null).getPropertyValue("position"):g.currentStyle.position,"static"==et&&(g.style.position="relative"));ut(tt,g,ft,"updated",!0,!1,h);r[ft].done=!0;c||w(tt,ft,"Created")}}},ut=function(n,t,i,u,f,e,o){var c=r[i],s={},h={};s.checked=[n.checked,"Checked","Unchecked"];e&&!o||"click"===u||(s.disabled=[n.disabled,"Disabled","Enabled"],s.indeterminate=["true"==n.getAttribute("indeterminate")||!!n.indeterminate,"Indeterminate","Determinate"]);"updated"==u||"click"==u?(h.checked=e?!s.checked[0]:s.checked[0],e&&!o||"click"===u||(h.disabled=s.disabled[0],h.indeterminate=s.indeterminate[0])):"checked"==u||"unchecked"==u?h.checked="checked"==u:"disabled"==u||"enabled"==u?h.disabled="disabled"==u:"indeterminate"==u||"determinate"==u?h.indeterminate="determinate"!==u:h.checked=!s.checked[0];bt(n,t,s,h,i,c,u,f,e,o)},bt=function(n,t,u,f,e,o,h,c,v,p,b){var rt=n.type,ut="radio"==rt?"Radio":"Checkbox",k,nt,d,g,it,tt,ft,et,ot,st;if(t||(t=y(n,"div",o.className)),t){for(k in f)if(nt=f[k],u[k][0]!==nt&&"updated"!==h&&"click"!==h&&(n[k]=nt),p&&(nt?n.setAttribute(k,k):n.removeAttribute(k)),o[k]!==nt){if(o[k]=nt,ot=!0,"checked"==k&&(st=!0,!b&&nt&&(r[e].done||p)&&"radio"==rt&&n.name))for(g=y(n,"form",""),d='input[name="'+n.name+'"]',d=g&&!p?i(g).find(d):i(d),g=d.length;g--;)it=d[g],tt=l(it.className),n!==it&&r[tt]&&r[tt].checked&&(ft={checked:[!0,"Checked","Unchecked"]},et={checked:!1},bt(it,!1,ft,et,tt,r[tt],"updated",c,v,p,!0));if(d=[o[k+"Class"],o[k+ut+"Class"],o[u[k][1]+"Class"],o[u[k][1]+ut+"Class"],o[k+"LabelClass"]],g=[d[3]||d[2],d[1]||d[0]],nt&&g.reverse(),s(t,g),o.mirror&&d[4])for(g=i("label."+o.esc);g.length--;)s(g[g.length],d[4],nt?1:0);c&&!b||w(n,e,u[k][nt?1:2])}(!c||b)&&(ot&&w(n,e,"Changed"),st&&w(n,e,"Toggled"));o.cursor&&!a&&(o.disabled||o.pointer?o.disabled&&o.pointer&&(t.style.cursor="default",o.pointer=!1):(t.style.cursor="pointer",o.pointer=!0));r[e]=o}};i.fn.icheck=function(n,t){var f,e,i,u;if(/^(checked|unchecked|indeterminate|determinate|disabled|enabled|updated|toggle|destroy|data|styler)$/.test(n)){for(f=pt(this),e=f.length;e--;)if(i=f[e],u=l(i.className),u){if("data"==n)return r[u];if("styler"==n)return y(i,"div",r[u].className);"destroy"==n?yt(i,u,"Destroyed"):ut(i,!1,u,n);"function"==typeof t&&t(i)}}else"object"!=typeof n&&n||wt(this,n||{});return this};i(t).on("click.i "+u+o,"label."+d+",div."+b,function(n){var v=this,o=l(v.className);if(o){var f=n.type,t=r[o],w=t.esc,o="DIV"==v.tagName,b,k,e,y,u=[["label",t.activeLabelClass,t.hoverLabelClass],["div",t.activeClass,t.hoverClass]];if(o&&u.reverse(),f==p||f==ot){if(u[0][1]&&s(v,u[0][1],f==p?1:0),t.mirror&&u[1][1])for(e=i(u[1][0]+"."+w);e.length--;)s(e[e.length],u[1][1],f==p?1:0);o&&f==ot&&t.tap&&a&&ft&&!c&&(y=!0)}else if(f==tt||f==et){if(u[0][2]&&s(v,u[0][2],f==tt?1:0),t.mirror&&u[1][2])for(e=i(u[1][0]+"."+w);e.length--;)s(e[e.length],u[1][2],f==tt?1:0);o&&f==et&&t.tap&&a&&h&&!c&&(y=!0)}else o&&(a&&(h||ft)&&t.tap&&!c||(y=!0));y&&setTimeout(function(){k=n.currentTarget||{};"LABEL"!==k.tagName&&(!t.change||100<+new Date-t.change)&&(b=i(v).find("input."+w).click(),(ht||c)&&b.change())},2)}}).on("click.i change.i focusin.i focusout.i keyup.i keydown.i","input."+k,function(n){var u=l(this.className);if(u){var f=n.type,t=r[u],o=t.esc,e="click"==f?!1:y(this,"div",t.className);if("click"==f)r[u].change=+new Date,n.stopPropagation();else if("change"==f)e&&!this.disabled&&ut(this,e,u,"click");else if(~f.indexOf("focus")){if(n=[t.focusClass,t.focusLabelClass],n[0]&&e&&s(e,n[0],"focusin"==f?1:0),t.mirror&&n[1])for(t=i("label."+o);t.length--;)s(t[t.length],n[1],"focusin"==f?1:0)}else e&&!this.disabled&&("keyup"==f?(("checkbox"==this.type&&32==n.keyCode&&t.keydown||"radio"==this.type&&!this.checked)&&ut(this,e,u,"click",!1,!0),r[u].keydown=!1,r[st]&&(r[st].keydown=!1)):(st=u,r[u].keydown=!0))}}).ready(function(){if(n.icheck.autoInit&&i("."+e).icheck(),n.jQuery){var r=t.body||t.getElementsByTagName("body")[0];i.ajaxSetup({converters:{"text html":function(u){if(n.icheck.autoAjax&&r){var o=t.createElement("iframe"),f;ht||(o.style="display:none");o.className="iframe.icheck-frame";o.src="about:blank";r.appendChild(o);f=o.contentDocument?o.contentDocument:o.contentWindow.document;f.open();f.write(u);f.close();r.removeChild(o);f=i(f);wt(f.find("."+e),{},!0);f=f[0];u=(f.body||f.getElementsByTagName("body")[0]).innerHTML}return u}}})}})},"function"==typeof define&&define.amd?define("icheck",[n.jQuery?"jquery":"zepto"],n.ichecked):n.ichecked())}(window,document);var UTILITIES=function(){return{generateGuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n=="x"?t:t&3|8;return i.toString(16)})},parseQueryString:function(n){var e=decodeURIComponent(n.toLowerCase()),u={},i,r,t,f;for(i=e.split(/&(?:amp;)?/gi),t=0,f=i.length;t<f;t++)r=i[t].split("="),u[r[0]]=r[1];return u},getQueryStringValue:function(n){for(var u=window.location.search.substring(1),r=u.split("&"),i="",t=0,t=0;t<r.length;t++)if(i=r[t].split("="),i[0].toLowerCase()===n.toLowerCase())return i[1]},isUnique:function(n,t){try{return t.indexOf(n)>=0?!1:!0}catch(i){console.error("error checking array for uniqueness")}},objectIsNullOrEmptyOrUndefined:function(n){var t=!0,i;if(typeof n!="undefined"&&n!==null)for(i in n)n.hasOwnProperty(i)&&(t=!1);return t},makeSafeForCSS:function(n){return n.replace(/[^a-z0-9]/g,function(n){var t=n.charCodeAt(0);return t==32?"-":t>=65&&t<=90?"_"+n.toLowerCase():"__"+("000"+t.toString(16)).slice(-4)})},scrubQueryParams:function(n,t){function u(){for(var n="",r=0;r<t.length;r++)t[r]in i&&(n!==""&&(n+="&"),n+=t[r]+"="+i[t[r]]);return n!==""?"?"+n:""}var i=this.parseQueryString(n.search.substring(1)),r=typeof t!="undefined"&&typeof i!="undefined"?u():"";return[n.protocol,"//",n.host,n.pathname,r].join("")}}}();(function(n,t){"use strict";function g(){this.$get=["$$sanitizeUri",function(n){return function(t){var i=[];return at(t,k(i,function(t,i){return!/^unsafe/.test(n(t,i))})),i.join("")}}]}function nt(n){var i=[],r=k(i,t.noop);return r.chars(n),i.join("")}function i(n,i){for(var f={},u=n.split(","),r=0;r<u.length;r++)f[i?t.lowercase(u[r]):u[r]]=!0;return f}function at(n,i){function g(n,u,f,e){if(u=t.lowercase(u),l[u])while(s.last()&&a[s.last()])w("",s.last());c[u]&&s.last()==u&&w("",u);e=o[u]||!!e;e||s.push(u);var h={};f.replace(tt,function(n,t,i,u,f){var e=i||u||f||"";h[t]=r(e)});i.start&&i.start(u,h,e)}function w(n,r){var u=0,f;if(r=t.lowercase(r),r)for(u=s.length-1;u>=0;u--)if(s[u]==r)break;if(u>=0){for(f=s.length-1;f>=u;f--)i.end&&i.end(s[f]);s.length=u}}typeof n!="string"&&(n=n===null||typeof n=="undefined"?"":""+n);var y,p,h,s=[],k=n,b;for(s.last=function(){return s[s.length-1]};n;){if(b="",p=!0,s.last()&&v[s.last()]?(n=n.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+s.last()+"[^>]*>","i"),function(n,t){return t=t.replace(ut,"$1").replace(ft,"$1"),i.chars&&i.chars(r(t)),""}),w("",s.last())):(n.indexOf("<!--")===0?(y=n.indexOf("--",4),y>=0&&n.lastIndexOf("-->",y)===y&&(i.comment&&i.comment(n.substring(4,y)),n=n.substring(y+3),p=!1)):e.test(n)?(h=n.match(e),h&&(n=n.replace(h[0],""),p=!1)):rt.test(n)?(h=n.match(f),h&&(n=n.substring(h[0].length),h[0].replace(f,w),p=!1)):it.test(n)&&(h=n.match(u),h?(h[4]&&(n=n.substring(h[0].length),h[0].replace(u,g)),p=!1):(b+="<",n=n.substring(1))),p&&(y=n.indexOf("<"),b+=y<0?n:n.substring(0,y),n=y<0?"":n.substring(y),i.chars&&i.chars(r(b)))),n==k)throw d("badparse","The sanitizer was unable to parse the following block of html: {0}",n);k=n}w()}function r(n){return n?(w.innerHTML=n.replace(/</g,"&lt;"),w.textContent):""}function b(n){return n.replace(/&/g,"&amp;").replace(et,function(n){var t=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((t-55296)*1024+(i-56320)+65536)+";"}).replace(ot,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function k(n,i){var u=!1,r=t.bind(n,n.push);return{start:function(n,f,e){n=t.lowercase(n);!u&&v[n]&&(u=n);u||y[n]!==!0||(r("<"),r(n),t.forEach(f,function(u,f){var e=t.lowercase(f),o=n==="img"&&e==="src"||e==="background";lt[e]===!0&&(p[e]!==!0||i(u,o))&&(r(" "),r(f),r('="'),r(b(u)),r('"'))}),r(e?"/>":">"))},end:function(n){n=t.lowercase(n);u||y[n]!==!0||(r("<\/"),r(n),r(">"));n==u&&(u=!1)},chars:function(n){u||r(b(n))}}}var d=t.$$minErr("$sanitize"),u=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,f=/^<\/\s*([\w:-]+)[^>]*>/,tt=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,it=/^</,rt=/^<\//,ut=/<!--(.*?)-->/g,e=/<!DOCTYPE([^>]*?)>/i,ft=/<!\[CDATA\[(.*?)]]>/g,et=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ot=/([^\#-~| |!])/g,o=i("area,br,col,hr,img,wbr"),s=i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),h=i("rp,rt"),c=t.extend({},h,s),l=t.extend({},s,i("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),a=t.extend({},h,i("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),st=i("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),v=i("script,style"),y=t.extend({},o,l,a,c,st),p=i("background,cite,href,longdesc,src,usemap,xlink:href"),ht=i("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),ct=i("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),lt=t.extend({},p,ct,ht),w=document.createElement("pre");t.module("ngSanitize",[]).provider("$sanitize",g);t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i;return function(u,f){function l(n){n&&o.push(nt(n))}function a(n,i){o.push("<a ");t.isDefined(f)&&o.push('target="',f,'" ');o.push('href="',n.replace(/"/g,"&quot;"),'">');l(i);o.push("<\/a>")}if(!u)return u;for(var e,s=u,o=[],h,c;e=s.match(i);)h=e[0],e[2]||e[4]||(h=(e[3]?"http://":"mailto:")+h),c=e.index,l(s.substr(0,c)),a(h,e[0].replace(r,"")),s=s.substring(c+e[0].length);return l(s),n(o.join(""))}}])})(window,window.angular),function(n,t,i){"use strict";function u(n,i){i=i||{};t.forEach(i,function(n,t){delete i[t]});for(var r in n)n.hasOwnProperty(r)&&("$"!==r.charAt(0)||"$"!==r.charAt(1))&&(i[r]=n[r]);return i}var r=t.$$minErr("$resource"),f=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;t.module("ngResource",["ng"]).provider("$resource",function(){var n=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}};this.$get=["$http","$q",function(e,o){function l(t,i){this.template=t;this.defaults=h({},n.defaults,i);this.urlParams={}}function a(p,w,b,k){function g(n,t){var u={};return t=h({},w,t),s(t,function(t,e){var s,o,l;if(c(t)&&(t=t()),t&&t.charAt&&"@"==t.charAt(0)){if(s=n,o=t.substr(1),null==o||""===o||"hasOwnProperty"===o||!f.test("."+o))throw r("badmember",o);for(var o=o.split("."),h=0,a=o.length;h<a&&s!==i;h++)l=o[h],s=null!==s?s[l]:i}else s=t;u[e]=s}),u}function nt(n){return n.resource}function d(n){u(n||{},this)}var tt=new l(p,k);return b=h({},n.defaults.actions,b),d.prototype.toJSON=function(){var n=h({},this);return delete n.$promise,delete n.$resolved,n},s(b,function(n,f){var l=/^(POST|PUT|PATCH)$/i.test(n.method);d[f]=function(a,p,w,b){var it={},rt,ut,et;switch(arguments.length){case 4:et=b;ut=w;case 3:case 2:if(c(p)){if(c(a)){ut=a;et=p;break}ut=p;et=w}else{it=a;rt=p;ut=w;break}case 1:c(a)?ut=a:l?rt=a:it=a;break;case 0:break;default:throw r("badargs",arguments.length);}var ot=this instanceof d,k=ot?rt:n.isArray?[]:new d(rt),ft={},st=n.interceptor&&n.interceptor.response||nt,ht=n.interceptor&&n.interceptor.responseError||i;return s(n,function(n,t){"params"!=t&&"isArray"!=t&&"interceptor"!=t&&(ft[t]=y(n))}),l&&(ft.data=rt),tt.setUrlParams(ft,h({},g(rt,n.params||{}),it),n.url),it=e(ft).then(function(i){var e=i.data,o=k.$promise;if(e){if(t.isArray(e)!==!!n.isArray)throw r("badcfg",f,n.isArray?"array":"object",t.isArray(e)?"array":"object",ft.method,ft.url);n.isArray?(k.length=0,s(e,function(n){"object"==typeof n?k.push(new d(n)):k.push(n)})):(u(e,k),k.$promise=o)}return k.$resolved=!0,i.resource=k,i},function(n){return k.$resolved=!0,(et||v)(n),o.reject(n)}),it=it.then(function(n){var t=st(n);return(ut||v)(t,n.headers),t},ht),ot?it:(k.$promise=it,k.$resolved=!1,k)};d.prototype["$"+f]=function(n,t,i){return c(n)&&(i=t,t=n,n={}),n=d[f].call(this,n,this,t,i),n.$promise||n}}),d.bind=function(n){return a(p,h({},w,n),b)},d}var v=t.noop,s=t.forEach,h=t.extend,y=t.copy,c=t.isFunction;return l.prototype={setUrlParams:function(n,i,u){var e=this,f=u||e.template,o,h,c=e.urlParams={};s(f.split(/\W/),function(n){if("hasOwnProperty"===n)throw r("badname");!/^\d+$/.test(n)&&n&&new RegExp("(^|[^\\\\]):"+n+"(\\W|$)").test(f)&&(c[n]=!0)});f=f.replace(/\\:/g,":");i=i||{};s(e.urlParams,function(n,r){o=i.hasOwnProperty(r)?i[r]:e.defaults[r];t.isDefined(o)&&null!==o?(h=encodeURIComponent(o).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"%20").replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+"),f=f.replace(new RegExp(":"+r+"(\\W|$)","g"),function(n,t){return h+t})):f=f.replace(new RegExp("(/?):"+r+"(\\W|$)","g"),function(n,t,i){return"/"==i.charAt(0)?i:t+i})});e.defaults.stripTrailingSlashes&&(f=f.replace(/\/+$/,"")||"/");f=f.replace(/\/\.(?=\w+($|\?))/,".");n.url=f.replace(/\/\\\./,"/.");s(i,function(t,i){e.urlParams[i]||(n.params=n.params||{},n.params[i]=t)})}},a}]})}(window,window.angular),function(n,t,i){"use strict";function r(n,r,u){function o(n,u,e){var h,o,s,c;return e=e||{},o=e.expires,h=t.isDefined(e.path)?e.path:f,u===i&&(o="Thu, 01 Jan 1970 00:00:00 GMT",u=""),t.isString(o)&&(o=new Date(o)),s=encodeURIComponent(n)+"="+encodeURIComponent(u),s+=h?";path="+h:"",s+=e.domain?";domain="+e.domain:"",s+=o?";expires="+o.toUTCString():"",s+=e.secure?";secure":"",c=s.length+1,c>4096&&r.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+c+" > 4096 bytes)!"),s}var f=u.baseHref(),e=n[0];return function(n,t,i){e.cookie=o(n,t,i)}}t.module("ngCookies",["ng"]).provider("$cookies",[function(){function r(i){return i?t.extend({},n,i):n}var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,u){return{get:function(t){return n()[t]},getObject:function(n){var i=this.get(n);return i?t.fromJson(i):i},getAll:function(){return n()},put:function(n,t,i){u(n,t,r(i))},putObject:function(n,i,r){this.put(n,t.toJson(i),r)},remove:function(n,t){u(n,i,r(t))}}}]}]);t.module("ngCookies").factory("$cookieStore",["$cookies",function(n){return{get:function(t){return n.getObject(t)},put:function(t,i){n.putObject(t,i)},remove:function(t){n.remove(t)}}}]);r.$inject=["$document","$log","$browser"];t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=r})}(window,window.angular),function(n){n.event.special.destroyed={remove:function(n){n.handler&&n.handler()}}}(jQuery);$(document).ready(function(){function u(n,u){var c=$(window).width(),f=$(window).scrollTop()+$(window).height(),e=n.outerHeight()+i,o=n.outerWidth()+i,s=0,h=0;return h=u.pageY+e<f?u.pageY-r:f-e-r,s=u.pageX+o+t<c?u.pageX+t:u.pageX-(o-i+t),{top:h+"px",left:s+"px"}}function f(t){var i=$.grep(n,function(n){return n.id==t}),r=n.indexOf(i[0]);n.splice(r,1)}var t=10,r=10,i=10,n=[],e={version:function(){var n=999;return navigator.appVersion.indexOf("MSIE")!=-1&&(n=parseFloat(navigator.appVersion.split("MSIE")[1])),n}};Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i++)if(this[i]===n)return i;return-1}),function(){var i=!1,t;$("body").on("mouseenter","[data-tooltip]",function(r){if(!$(this).hasClass("prevent-tooltip")){this.tooltipData=this.getAttribute("data-tooltip");this.tempTitle=this.title;this.title="";this.timestamp=(new Date).getTime();i=!0;$("body").append("<div id='tooltip"+this.timestamp+"' class='tooltipBox'>"+this.tooltipData+"<\/div>");t=$("#tooltip"+this.timestamp);n.push({id:this.timestamp,parent:$(this),tooltip:t});t.css(u(t,r)).fadeIn(100);$(this).on("mousemove",function(n){i&&!$(this).hasClass("prevent-tooltip")&&t.css(u(t,n))}).on("mouseleave",function(){$(this).hasClass("prevent-tooltip")||(t.fadeOut(100,function(){$(this).remove()}),f(this.timestamp),this.title=this.tempTitle)})}}).bind("destroyed",function(){if(!$(this).hasClass("prevent-tooltip"))for(var t=0;t<n.length;t++)n[t].parent.closest("body").length>0&&(n[t].tooltip.fadeOut(100,function(){$(this).remove()}),f(n[t].parent.timestamp))})}()});Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(n){var i,r,u,t,f;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),r=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(u=arguments[1],t=0;t<r;){if(f=i[t],n.call(u,f,t,i))return t;t++}return-1}}),function(){"use strict";angular.module("dataServices",["core","ngResource"])}(),function(){"use strict";angular.module("tree",["core"])}(),function(){"use strict";angular.module("core",[])}(),function(){"use strict";function n(n){n.interceptors.push("myHttpInterceptor")}var t=angular.module("core");t.config(n);n.$inject=["$httpProvider"]}(),function(){"use strict";angular.module("core").constant("ServerSettings",serverSettings)}(),function(){"use strict";angular.module("core").constant("UTILITIES",UTILITIES)}(),function(){"use strict";function n(n,t){return{responseError:function(i){if(i.status===401)window.location.href=t.applicationRoot+"SubscriptionManagement?loggedOut=true";else return n.reject(i)}}}angular.module("core").factory("myHttpInterceptor",n);n.$inject=["$q","ServerSettings"]}();$(document).ready(function(){$(document).on("click","button.ga-unsubscribe-single",function(){gtag("event","click",{event_category:"button",event_label:"unsubscribe single"})});$(document).on("click","a.ga-unsubscribe-node",function(){gtag("event","click",{event_category:"button",event_label:"unsubscribe node"})});$(document).on("click","a.ga-opt-out-global",function(){gtag("event","click",{event_category:"button",event_label:"opt-out global"})});$(document).on("click","a.ga-opt-in-global",function(){gtag("event","click",{event_category:"button",event_label:"opt-in global"})});$(document).on("click","button.ga-update-subscriptions",function(){gtag("event","click",{event_category:"button",event_label:"update subscriptions"})});$(document).on("click","button.ga-update-info",function(){gtag("event","click",{event_category:"button",event_label:"update info"})})})