function UpdateQueryStringParameter(n,t,i){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),u=n.indexOf("?")!==-1?"&":"?";return n.match(r)?n.replace(r,"$1"+t+"="+i+"$2"):n+u+t+"="+i}function onPinIt(n,t){var u=$("meta[name=contentType]").attr("content"),f,r,e,o,i;if(u==33||u==34||u==35)r=$(".col-xs-12.col-ml-8.col-md-8.marqueeimg img").attr("src"),f=$("#pnlHeader h1").text(),(r==undefined||r=="")&&(r="http://cdn1.tmbi.com/images/TFH/Home/family_handyman_logo.gif",f="The FamilyHandyman"),i=$(n).attr("data-pinit-url"),t=="false"&&(i=UpdateQueryStringParameter(i,"media",r)),i=UpdateQueryStringParameter(i,"description",f),window.open(i,"_blank");else if(u==30){if(r=$("#Container .carousel .carousel-inner .item.active .slideimg img").attr("src"),r!=""&&r!=undefined&&r!="undefined"){var s=$("#Container .carousel .carousel-inner .item.active .slidecontent h2").text(),f=$("#Container .carousel .carousel-inner .item.active .slidecontent :not(h2)").text(),i=$(n).attr("data-pinit-url");t=="false"&&(i=UpdateQueryStringParameter(i,"media",r)),i=UpdateQueryStringParameter(i,"description",s.trim()+" - "+f.trim()),window.open(i,"_blank")}}else u==6?(e=$("article.leftcolumn section.container-fluid").find("img:first"),i=$(n).attr("data-pinit-url"),e.attr("src")!=undefined&&t=="false"&&(i=UpdateQueryStringParameter(i,"media",e.attr("src"))),window.open(i,"_blank")):u==32||u==36?(o=$("meta[name=description]").attr("content"),i=$(n).attr("data-pinit-url"),i=UpdateQueryStringParameter(i,"description",encodeURIComponent(decodeHtml(o))),window.open(i,"_blank")):window.open($(n).attr("data-pinit-url"),"_blank")}function onPinItStandAlone(n){window.open($(n).attr("data-pinit-url"),"_blank")}function decodeHtml(n){var t=document.createElement("textarea");return t.innerHTML=n,t.value}function menuToggle(){$("#searchBoxPhone").is(":visible")&&$("#searchBoxPhone").hide(),$("#menuBtn").hasClass("menuOpened")?($("#menuBtn").removeClass("menuOpened"),$(".navHolder").removeClass("expanded"),$("body").find(".header_10UP").length>0&&($("#menuLnk").html("Menu"),$(".menu > li > .subMenu").attr("style",""),$(".navHolder .menu > li > .subMenu > li > .subSubMenu").attr("style",""),$(".menu > li > .subMenu > li > .inMenuNavigation .back").css("left","64px"))):($("#menuBtn").addClass("menuOpened"),$(".navHolder").addClass("expanded"),$(".menu").height("auto"),$(".menu").attr("class","menu level0"),$(".menu > li > .inMenuNavigation").show(),$("body").find(".header_10UP").length>0&&($(".navHolder ul > li").css("position","relative"),$("#menuLnk").html("Close")))}function menuTogglePhone(){$("#searchBoxPhone").is(":visible")&&$("#searchBoxPhone").hide(),$("#menuBtnPhone").hasClass("menuOpened")?($("#menuBtnPhone").removeClass("menuOpened"),$(".navHolder").removeClass("expanded"),$("#menuLnk").html("Menu"),$(".menu > li > .subMenu").attr("style",""),$(".navHolder .menu > li > .subMenu > li > .subSubMenu").attr("style",""),$(".menu > li > .subMenu > li > .inMenuNavigation .back").css("left","64px")):($("#menuBtnPhone").addClass("menuOpened"),$(".navHolder").addClass("expanded"),$(".menu").height("auto"),$(".menu").attr("class","menu level0"),$(".menu > li > .inMenuNavigation").show(),$(".navHolder ul > li").css("position","relative"))}function menuSignupSubmit(){var n=/^[A-Za-z0-9._]*\@[A-Za-z]*\.[A-Za-z]{2,5}$/;if(n.test($("#subsEmail").val()))$(subsEmail!="")&&$("form[id='newsletterSignup']").submit();else return $("#subsEmail").focus(),$("#errorBox").html("Enter a valid email."),!1}function ExecuteCallBackFunctions(){for(var t,i=!0,n=0;n1024?n&&t&&(n.style.width="990px",n.style.margin="0 auto",$(".container").css("width","990px")):(n.style.width="100%",t.disabled=!1,$(".container").css("width","inherit"))}function adjustmarqueearrow(){var n=$("#homemarqueecont .item.active .marqueeimg"),t=$("#homemarqueecont .carousel-control"),r=$("#homemarqueecont .carousel-control.left"),u=$("#homemarqueecont .carousel-control.right"),f=$("#homemarqueecont .item.active .marqueeimg img"),e=$("#homemarqueecont .marqueeindicator");if(n[0]||(n=$("#homemarqueecont .item.active .thirdslide")),n[0]){var o=n[0].offsetTop+n.height()/2,i=n.width()-f.width(),s=n[0].offsetTop+(n.height()+10);t.css({top:o-15}),r.css({left:n[0].offsetLeft+15}),u.css({right:i}),e.css({right:i,top:s}),t.show()}}function adjustslideshowcontent(){var n=$("#slideshowcont").width(),t,i;$("#slideshowcont .slideimg a").width(n),$("#slideshowcont .slideimg").css({width:n,"max-width":n,height:n,"max-height":n}),$("#slideshowcont .slideimg img").css({"max-height":n}),t=$("#slideshowcont .carousel-control"),i=n/2-25,t.css({top:i+46})}function locationHashChanged(){var n=parseInt(window.location.hash.replace("#",""));isNaN(n)||window.currentslide!=n&&$("#slideshowcont").carousel(n-1)}function replaceSpecialCharactors(n){var i="",r="",t=escape(n),u;return t=t.replace(/%u2013/g,i),r=t.replace(/%27/g,i),u=unescape(r)}function ReplaceUnsupportedChars(n){return typeof n=="string"&&(n=n.replace(/[^a-zA-Z0-9-_.+ :()/\\|,&]+/g,""),n=encodeURIComponent(n)),n}function GetComscoreLabelFromEvents(n){var t="",r,i;if(n!="None")for(r=n.split(","),i=0;i=0||v.indexOf("dev.")>=0||v.indexOf("test.")>=0||v.indexOf("staging.")>=0||v.indexOf("beta.")>=0||v.indexOf("test2.")>=0||v.indexOf("staging2.")>=0||v.indexOf("beta2.")>=0)&&(w="rdna-dev"),n=replaceSpecialCharactors(n),t=replaceSpecialCharactors(t),a="http"+b+".scorecardresearch.com/b?c1=2&c2="+k+"&_site=familyhandyman&ns_site="+w+"&link_pos="+ReplaceUnsupportedChars(n)+"&link_name="+ReplaceUnsupportedChars(t)+"&link_page="+ReplaceUnsupportedChars(i),y!=""&&y!=undefined&&(a=a+"&ns_type="+y),s!=null&&s!=undefined&&(a=a+"&link_module="+ReplaceUnsupportedChars(s)),h!=null&&h!=undefined&&(a=a+"&rwd_template="+ReplaceUnsupportedChars(h)),c!=null&&c!=undefined&&(a=a+"&placement_location="+ReplaceUnsupportedChars(c)),u!="None"&&(a=a+"&content_type="+ReplaceUnsupportedChars(u)),f!="None"&&(a=a+"&form_sub_pref="+ReplaceUnsupportedChars(f)),e!=null&&(p=e.href,p!=undefined&&(a=a+"&link_target="+ReplaceUnsupportedChars(p))),o!="None"&&(a=a+GetComscoreLabelFromEvents(o)),a=a.toLowerCase(),r==!0?udm_(a):setTimeout(function(){udm_(a)},1005)}function trackLink(n,t,i,r){var u=null;trackLinkWithEvents(n,t,i,r,"None","",u)}function trackLinkDom(n,t,i,r,u){trackLinkWithEvents(t,i,r,u,"None","",n)}function trackLinkWithEvents(n,t,i,r,u,f,e,o,s,h,c){var l="None",a="None",v=u;f!="None"&&(l=f),trackLinkComscore(n,t,i,r,l,a,e,v,o,s,h,c)}function trackLinkWithEventsWithFormSubmissionPreference(n,t,i,r,u,f){var e=s_gi(s_account);e.linkTrackVars="prop34,prop11,prop12,prop24,eVar12,eVar13,eVar14,events",e.linkTrackEvents=u,e.prop34=t,e.prop11=n,e.prop12=i,e.prop24=f,e.eVar12=i,e.eVar13=t,e.eVar14=n;var o="None",s=f,h=null,c=u;trackLinkComscore(n,t,i,r,o,s,h,c),r==!0?e.tl(this,"o",t):setTimeout('s.tl(this,"o","'+t+'")',1e3)}function trackExitLink(n,t,i,r,u){var f=s_gi(s_account);f.linkTrackVars="prop11,prop12,prop34,eVar12,eVar13,eVar14",f.linkTrackEvents="None",f.trackExternalLinks=!1,f.prop34=i,t=replaceSpecialChars(t,"OMNITURE"),f.prop11=t,f.prop12=r,f.eVar12=i,f.eVar13=t,f.eVar14=r;var e="None",o="None",s="None";trackLinkComscore(t,i,r,u,e,o,n,s),f.tl(this,"e",i)}function replaceSpecialChars(n,t){var r="",i="",u=escape(n);switch(t){case"Analytics":i=u.replace(/%u2013/g,r);break;case"COMSCORE":i=u.replace(/%27/g,r)}return varUesc=unescape(i)}function TrackLinkCustom(n,t,i,r,u,f,e){var o=s_gi(s_account);(e="")&&(e="None"),o.linkTrackVars="",u!=""&&(o.linkTrackVars=u),f!=""&&(linkTrackVars!=""&&(o.linkTrackVars=o.linkTrackVars+","),o.linkTrackVars=o.linkTrackVars+f),e!="None"&&(linkTrackVars!=""&&(o.linkTrackVars=o.linkTrackVars+","),o.linkTrackVars=o.linkTrackVars+"events"),o.linkTrackEvents=e,n=replaceSpecialChars(n,"OMNITURE"),f.indexOf("prop34")>0&&(o.prop34=t),f.indexOf("prop11")>0&&(o.prop11=n),f.indexOf("prop12")>0&&(o.prop12=i),u.indexOf("eVar12")>0&&(o.eVar12=t),u.indexOf("eVar13")>0&&(o.eVar13=n),u.indexOf("eVar14")>0&&(o.eVar14=i),u.indexOf("prop24")>0&&(o.prop24=GetOmnitureCustomValue("prop24",u)),r==!0?o.tl(this,"o",t):setTimeout('s.tl(this,"o","'+t+'")',1e3)}function getQueryParamKeycode(){var n;return(n=getParameterByName("PMCode"),typeof n!="null"&&typeof n!="undefined"&&n.valueOf()!="")?n:(n=getParameterByName("cds_response_key"),typeof n!="null"&&typeof n!="undefined"&&n.valueOf()!="")?n:(n=getParameterByName("keycode"),typeof n!="null"&&typeof n!="undefined"&&n.valueOf()!="")?n:(n=getParameterByName("refurl"),typeof n!="null"&&typeof n!="undefined"&&n.valueOf()!=""?n:void 0)}function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function readCookie(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i=0||i.indexOf("dev.")>=0||i.indexOf("test.")>=0||i.indexOf("staging.")>=0||i.indexOf("beta.")>=0||i.indexOf("test2.")>=0||i.indexOf("staging2.")>=0||i.indexOf("beta2.")>=0)&&(u="rdna-dev"),r="http"+f+".scorecardresearch.com/b?c1=2&c2="+e+"&_site=familyhandyman&ns_site="+u,r=r+n,r=r.toLowerCase(),t==!0?udm_(r):setTimeout(function(){udm_(r)},1005)}function tlComscore(n){function k(n,i){(n=$.trim(n),i=ReplaceUnsupportedChars(i),t.indexOf("&"+n+"=")>0)||$.trim(i)!=""&&(n=="page_template"?(t=t+"&"+n+"="+i,i.toLowerCase()=="slideshow"&&(s=="previous"||s=="next")&&(t=t+"&slideshow_event=true")):n=="rb_search_term"?(t=t+"&"+n+"="+i,t=t+"&rb_search_event=true"):n=="leave_page"?h=i:n=="link_location"?t.indexOf("&link_pos=")==-1&&(t=t+"&link_pos="+i):n=="link_module"?t.indexOf("&link_module=")==-1&&(t=t+"&link_module="+i):t=t+"&"+n+"="+i)}var i=$(n),s=i.attr("data-analytics-link_name"),l=i.attr("href"),h=i.attr("data-analytics-leave_page"),t="",f,o,e,c,u,b,a,v,tt,d,r,w,nt;if(s=replaceSpecialCharactors(s),s==undefined)return!1;var g=$("[data-analytics-breadcrumb_level='subcat']").attr("data-analytics-link_name"),y=$("[data-analytics-breadcrumb_level='subsubcat']").attr("data-analytics-link_name"),p=$("[data-analytics-breadcrumb_level='subsubsubcat']").attr("data-analytics-link_name");if(g!=undefined&&g!=""&&i.attr("data-analytics-subcat",g),y!=undefined&&y!=""&&i.attr("data-analytics-subsubcat",y),p!=undefined&&p!=""&&i.attr("data-analytics-subsubsubcat",p),f=i.attr("data-analytics-content_id"),o=i.attr("data-analytics-content_name"),(f==null||f==undefined||f=="")&&(f=$("meta[name='contentId']").attr("content"),i.attr("data-analytics-content_id",f)),(o==null||o==undefined||o=="")&&(o=$("meta[name='pageName']").attr("content")),e=i.attr("data-analytics-category"),(e==null||e==undefined||e=="")&&(e=$("[data-analytics-breadcrumb_level='category']").attr("data-analytics-link_name"),i.attr("data-analytics-category",e)),h==undefined&&(h=!0),i.each(function(){$.each(this.attributes,function(){this.specified&&this.name.indexOf("data-analytics-")!=-1&&this.name!="data-analytics-metrics"&&this.name!="data-analytics-link-manual"&&k(this.name.replace("data-analytics-",""),this.value)})}),i.attr("data-analytics-metrics")!=undefined&&(c=i.attr("data-analytics-metrics"),u=JSON.parse(c),u!=undefined))if(c.indexOf("key")!=-1&&c.indexOf("value")!=-1)for(b in u)k(u[b].key,u[b].value);else Object.getOwnPropertyNames(u).forEach(function(n){k(n,u[n])});epid=getEPidCookie(),epid!=null&&epid!=undefined&&(t=t+"&epid="+epid),tmbiAb=getTmbiAbCookie(),tmbiAb!=null&&tmbiAb!=undefined&&tmbiAb!=""&&(t=t+"&tmbi_ab="+tmbiAb,t=t+SetIndividualTests(tmbiAb)),t.indexOf("&link_module=")==-1&&(a=$("#projectTabs li.active a").text(),(a==undefined||a=="")&&(t=t+"&link_module="+a)),t.indexOf("&link_page=")<0&&(v=window.location.pathname,v!=undefined&&v!=""&&(t+="&link_page="+ReplaceUnsupportedChars(v))),t.indexOf("ns_type=")<0&&t.indexOf("slideshow_event=")<0&&(tt="hidden",t=t+"&ns_type="+tt),t.indexOf("content_type=")<0&&(d=$("meta[name='contentType']").attr("content"),d!=undefined&&(t=t+"&content_type="+d)),t.indexOf("link_target=")<0&&l!=undefined&&(t=l.indexOf("void")<0&&l!="#"?t+"&link_target="+ReplaceUnsupportedChars(l):t+"&link_target="+document.location.href),typeof slidepagecounter!="undefined"&&(slidepagecounter!=null&&slidepagecounter%3==0&&(t=t+"&slideshow_ad_event=true"),r=slidepagecounter+1,w=$("#slideshowcont .carousel-inner"),w.length&&(nt=$("div.active",w).index(),i.attr("data-analytics-link_name")=="next slide"?r=nt+2:(r=nt,r==0&&(r=$(".carousel-inner > div").length))),$.inArray(r,slideViewArr)==-1&&slideViewArr.push(r),slideViewArr.length==2&&(i.attr("data-analytics-link_name")=="next slide"?r-1!=0?slideViewArr.push(r-1):slideViewArr.push($(".carousel-inner > div").length):slideViewArr.push(r+1)),$("meta[name='contentType']").attr("content")=="30"&&(t=t+"&number_slideshow_viewed="+(slideViewArr.length-1)+" of "+$(".carousel-inner > div").length,slideViewArr.length-1==$(".carousel-inner > div").length&&(t=t+"&slideshow_completed=true"))),ComscoreTrackLinkSend(t,h)}function getEPidCookie(){var r,u,i,n,t;if(r=readCookie("epid"),r!=null){for(u=name+"=",i=document.cookie.split(";"),n=0;n-1)return t.substr(t.indexOf("=")+1)}else return null}function getTmbiAbCookie(){var r,u,i,n,t;if(r=readCookie("tmbi_ab"),r!=null){for(u=name+"=",i=document.cookie.split(";"),n=0;n-1)return t.substr(t.indexOf("=")+1)}else return null}function SetIndividualTests(n){for(var o="",i=n.split("__"),u,f="",e="",r=0,t=0;t0&&(r=i[t].indexOf("_"),e=i[t].substring(0,r),u>r+1&&(f=i[t].substring(r+1)),(e!=""||f!="")&&(o+="&tmbi_ab_"+e+"="+f)));return o}function SetEhid(){var n=getUrlVars().ehid;n!=""&&n!=undefined&&n!="undefined"&&(digitalData.newsletter={},digitalData.newsletter={ehid:n},_satellite.track("ehidvalue"))}function callAdobeMetrics(n){digitalData.click={};var t=JSON.parse($(n).attr("data-adobe-metrics"));t&&(digitalData.click=t,document.cookie.indexOf("tmbi_ab")>-1&&_satellite.track("abtesting click"),typeof digitalData.click.slideClick!="undefined"&&digitalData.click.slideClick?(digitalData.click.slideShowNumber=slideViewArr.length-1+" of "+$(".carousel-inner > div").length,slideViewArr.length-1==$(".carousel-inner > div").length?_satellite.track("slide click completed"):_satellite.track("slide click")):typeof digitalData.click.printClick!="undefined"&&digitalData.click.printClick?(digitalData.print={},digitalData.print=t,_satellite.track("print click")):typeof digitalData.click.module!="undefined"&&typeof digitalData.click.name!="undefined"&&(digitalData.click.module=="social share"||digitalData.click.module=="follow us")&&digitalData.click.name!="Print"&&digitalData.click.name!="Email"?(_satellite.track("link click"),_satellite.track("socialshareclick")):_satellite.track("link click"))}function getUrlVars(){for(var i=[],n,r=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),t=0;t0&&(t="/search?q="+n,window.location=encodeURI(t)),!1}function ShowEntryPopUp(){for(var f=window.location.href.toLowerCase(),i=!0,e="pagedoesnotexist1,pagedoesnotexist2",r=e.split(","),u,t,n=0;n=0){i=!1;break}document.cookie&&document.cookie.indexOf("TFH=entry_pop_up")<0&&i==!0&&(u=new Date,t=new Date,t.setTime(u.getTime()+864e5),document.cookie="TFH=entry_pop_up;domain=familyhandyman.com;expires="+t.toGMTString()+"; path=/",popunder())}function popunder(){function u(){var n=document.createElement("a"),t;n.href="about:blank",n.target="PopHelper",document.getElementsByTagName("body")[0].appendChild(n),n.parentNode.removeChild(n),t=document.createEvent("MouseEvents"),t.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!0,!1,!1,!0,0,null),n.dispatchEvent(t),window.open("about:blank","PopHelper").close()}var t=self,i="width=320,height=270,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes",r=navigator.userAgent.indexOf("Chrome")!=-1,n;if(top!=self)try{top.document.location.toString()&&(t=top)}catch(f){}return n=t.window.open("","pop",i),n.document.write($("#entryPopupContent").val()),n.document.close(),n&&(r?(n.blur(),n.opener.window.focus(),window.self.window.blur(),window.focus(),u()):(n.init=function(n){with(n)(function(){if(typeof window.mozPaintCount!="undefined"){var n=window.open("about:blank");n.close()}try{opener.window.focus()}catch(t){}})()},n.init(n))),this}function setBreadcrumb(){var n="",t=$("[data-analytics-breadcrumb_level='home']").attr("data-analytics-link_name"),i=$("[data-analytics-breadcrumb_level='category']").attr("data-analytics-link_name"),r=$("[data-analytics-breadcrumb_level='subcat']").attr("data-analytics-link_name"),u=$("[data-analytics-breadcrumb_level='subsubcat']").attr("data-analytics-link_name"),f=$("[data-analytics-breadcrumb_level='subsubsubcat']").attr("data-analytics-link_name"),e=$("[data-analytics-breadcrumb_level='subsubsubsubcat']").attr("data-analytics-link_name");return i!=undefined&&i!=""&&(t!=undefined&&t!=""&&(n=t+" : "),n+=i,r!=undefined&&r!=""&&(n+=" : "+r,u!=undefined&&u!=""&&(n+=" : "+u,f!=undefined&&f!=""&&(n+=" : "+f,e!=undefined&&e!=""&&n+" : "+n)))),n}var swipetrackadoberight,swipetrackadobeleft,dMPlayer,RD,onloadCallback,LogInFunctionsToRun,CallBackFunctionsToRun,bodyobj,responsivecss,adcontent,isFixedMenu,slideViewArr;if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}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()})}(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)),"string"==typeof i&&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)}(jQuery),+function(n){"use strict";var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.isLoading=!1},i;t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var r="disabled",i=this.$element,u=i.is("input")?"val":"html",f=i.data();t+="Text",f.resetText||i.data("resetText",i[u]()),i[u](f[t]||this.options[t]),setTimeout(n.proxy(function(){"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)},t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length&&(n=this.$element.find("input"),"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")),t&&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="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f)),"toggle"==i?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()})}(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,"hover"==this.options.pause&&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)&&!(0>t))return this.sliding?this.$element.one("slid.bs.carousel",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&&(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="next"==t?"left":"right",h="next"==t?"first":"last",e=this,o;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}return r.hasClass("active")?this.sliding=!1:(o=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),this.$element.trigger(o),o.isDefaultPrevented()?void 0:(this.sliding=!0,s&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var t=n(e.$indicators.children()[e.getActiveIndex()]);t&&t.addClass("active")})),n.support.transition&&this.$element.hasClass("slide")?(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(" ")),e.sliding=!1,setTimeout(function(){e.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*u.css("transition-duration").slice(0,-1))):(u.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),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(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f)),"number"==typeof i?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 f,i=n(this),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())})})}(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("collapse 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()))return 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?void this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350):r.call(this)},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 u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&"show"==i&&(i=!i),r||u.data("bs.collapse",r=new t(this,f)),"string"==typeof i&&r[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 e,i=n(this),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)})}(jQuery),+function(n){"use strict";function r(t){n(e).remove(),n(i).each(function(){var i=u(n(this)),r={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown",r)),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown",r))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.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){n(t).on("click.bs.dropdown",this.toggle)},f;t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(''}),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(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i),n.find(".popover-content")[this.options.html?"string"==typeof t?"html":"append":"text"](t),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")||("function"==typeof n.content?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="object"==typeof i&&i;(r||"destroy"!=i)&&(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})},n.fn.popover.Constructor=t,n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery),+function(n){"use strict";function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(n(i).is("body")?window: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;this.offsets=n([]),this.targets=n([]),t=this,this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),r=/^#./.test(u)&&n(u);return r&&r.length&&r.is(":visible")&&[[r[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),u]]||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 n,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;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);if(u&&i<=t[0])return u!=(n=r[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).parentsUntil(this.options.target,".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.bs.scrollspy")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f)),"string"==typeof i&&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())})})}(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.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 f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),e?(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"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one(n.support.transition.end,f).emulateTransitionEnd(150):f(),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)),"string"==typeof i&&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")})}(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=this.pinnedOffset=null,this.checkPosition()},i;t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$window.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n},t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){var i,e,h;if(this.$element.is(":visible")){var c=n(document).height(),o=this.$window.scrollTop(),s=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;"top"==this.affixed&&(s.top+=o),"object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=null!=this.unpin&&o+this.unpin<=s.top?!1:null!=u&&s.top+this.$element.height()>=c-u?"bottom":null!=f&&f>=o?"top":!1,this.affixed!==i&&(this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),h=n.Event(e+".bs.affix"),this.$element.trigger(h),h.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(n.Event(e.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:c-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="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f)),"string"==typeof i&&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)})})}(jQuery),function(){function u(n){throw n;}function s(n){return function(){return n}}function h(h){function ei(n,i,u,f,e){var o=[];return n=l.j(function(){var n=i(u,e)||[];0",v[0];);return s=4l.a.i(i,n[t])&&i.push(n[t]);return i},V:function(n,t){n=n||[];for(var r=[],i=0,u=n.length;is?n.setAttribute("selected",t):n.selected=t},D:function(n){return(n||"").replace(d,"")},Rb:function(n,t){for(var r,u=[],f=(n||"").split(t),i=0,e=f.length;in.length?i:n.substring(0,t.length)===t},tb:function(r,u){if(u.compareDocumentPosition)return 16==(u.compareDocumentPosition(r)&16);for(;r!=t;){if(r==u)return n;r=r.parentNode}return i},X:function(n){return l.a.tb(n,n.ownerDocument)},u:function(n){return n&&n.tagName&&n.tagName.toLowerCase()},n:function(t,r,e){var o=s&&k[r],h;o||"undefined"==typeof f?!o&&"function"==typeof t.addEventListener?t.addEventListener(r,e,i):"undefined"!=typeof t.attachEvent?t.attachEvent("on"+r,function(n){e.call(t,n)}):u(Error("Browser doesn't support addEventListener or attachEvent")):(p(t,r)&&(h=e,e=function(t,i){var r=this.checked;i&&(this.checked=i.nb!==n),h.call(this,t),this.checked=r}),f(t).bind(r,e))},Ba:function(t,r){if((!t||!t.nodeType)&&u(Error("element must be a DOM node when calling triggerEvent")),"undefined"!=typeof f){var s=[];p(t,r)&&s.push({nb:t.checked}),f(t).trigger(r,s)}else"function"==typeof e.createEvent?"function"==typeof t.dispatchEvent?(s=e.createEvent(w[r]||"HTMLEvents"),s.initEvent(r,n,n,o,0,0,0,0,0,i,i,i,i,0,t),t.dispatchEvent(s)):u(Error("The supplied element doesn't support dispatchEvent")):"undefined"!=typeof t.fireEvent?(p(t,r)&&(t.checked=t.checked!==n),t.fireEvent("on"+r)):u(Error("Browser doesn't support triggering events"))},d:function(n){return l.$(n)?n():n},ua:function(n){return l.$(n)?n.t():n},da:function(n,t,i){if(t){var u=/[\w-]+/g,r=n.className.match(u)||[];l.a.o(t.match(u),function(n){var t=l.a.i(r,n);0<=t?i||r.splice(t,1):i&&r.push(n)}),n.className=r.join(" ")}},cb:function(n,i){var u=l.a.d(i),f;(u===t||u===r)&&(u=""),3===n.nodeType?n.data=u:(f=l.e.firstChild(n),!f||3!=f.nodeType||l.e.nextSibling(f)?l.e.N(n,[e.createTextNode(u)]):f.data=u,l.a.wb(n))},ab:function(n,t){if(n.name=t,7>=s)try{n.mergeAttributes(e.createElement(""),i)}catch(r){}},wb:function(n){9<=s&&(n=1==n.nodeType?n:n.parentNode,n.style&&(n.style.zoom=n.style.zoom))},ub:function(n){if(9<=s){var t=n.style.width;n.style.width=0,n.style.width=t}},Lb:function(n,t){n=l.a.d(n),t=l.a.d(t);for(var r=[],i=n;i<=t;i++)r.push(i);return r},L:function(n){for(var i=[],t=0,r=n.length;t",""]||!i.indexOf("",""]||(!i.indexOf("",""]||[0,"",""],n="ignored
"+i[1]+n+i[2]+"
","function"==typeof o.innerShiv?t.appendChild(o.innerShiv(n)):t.innerHTML=n;i[0]--;)t=t.lastChild;t=l.a.L(t.lastChild.childNodes)}return t},l.a.ca=function(n,i){if(l.a.ka(n),i=l.a.d(i),i!==t&&i!==r)if("string"!=typeof i&&(i=i.toString()),"undefined"!=typeof f)f(n).html(i);else for(var e=l.a.ta(i),u=0;u"},hb:function(i,f){var e=w[i];e===r&&u(Error("Couldn't find any memo with ID "+i+". Perhaps it's already been unmemoized."));try{return e.apply(t,f||[]),n}finally{delete w[i]}},ib:function(n,t){var u=[],r,e,i,f;for(dt(n,u),r=0,e=u.length;rt;t++)n=n();return n})},l.toJSON=function(n,t,i){return n=l.gb(n),l.a.xa(n,t,i)},l.b("toJS",l.gb),l.b("toJSON",l.toJSON),l.k={q:function(t){switch(l.a.u(t)){case"option":return t.__ko__hasDomDataOptionValue__===n?l.a.f.get(t,l.c.options.sa):7>=l.a.Z?t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?l.k.q(t.options[t.selectedIndex]):r;default:return t.value}},T:function(i,u){switch(l.a.u(i)){case"option":switch(typeof u){case"string":l.a.f.set(i,l.c.options.sa,r),"__ko__hasDomDataOptionValue__"in i&&delete i.__ko__hasDomDataOptionValue__,i.value=u;break;default:l.a.f.set(i,l.c.options.sa,u),i.__ko__hasDomDataOptionValue__=n,i.value="number"==typeof u?u:""}break;case"select":for(var f=i.options.length-1;0<=f;f--)if(l.k.q(i.options[f])==u){i.selectedIndex=f;break}break;default:(u===t||u===r)&&(u=""),i.value=u}}},l.b("selectExtensions",l.k),l.b("selectExtensions.readValue",l.k.q),l.b("selectExtensions.writeValue",l.k.T);var ni=/\@ko_token_(\d+)\@/g,ti=["true","false"],ii=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i;l.g={Q:[],aa:function(n){var i=l.a.D(n),f,e,r,u;if(3>i.length)return[];for("{"===i.charAt(0)&&(i=i.substring(1,i.length-1)),n=[],f=t,r=0;r=l.a.Z&&f in d?(f=d[f],o?n.removeAttribute(f):n[f]=e):o||n.setAttribute(f,e.toString()),"name"===f&&l.a.ab(n,o?"":e.toString()))}},l.c.checked={init:function(t,i,r){l.a.n(t,"click",function(){var u,f,e;if("checkbox"==t.type)u=t.checked;else if("radio"==t.type&&t.checked)u=t.value;else return;f=i(),e=l.a.d(f),"checkbox"==t.type&&e instanceof Array?(u=l.a.i(e,t.value),t.checked&&0>u?f.push(t.value):!t.checked&&0<=u&&f.splice(u,1)):l.g.ea(f,r,"checked",u,n)}),"radio"==t.type&&!t.name&&l.c.uniqueName.init(t,s(n))},update:function(n,t){var i=l.a.d(t());"checkbox"==n.type?n.checked=i instanceof Array?0<=l.a.i(i,n.value):i:"radio"==n.type&&(n.checked=n.value==i)}},l.c.css={update:function(t,r){var u=l.a.d(r()),f,e;if("object"==typeof u)for(f in u)e=l.a.d(u[f]),l.a.da(t,f,e);else u=String(u||""),l.a.da(t,t.__ko__cssValue,i),t.__ko__cssValue=u,l.a.da(t,u,n)}},l.c.enable={update:function(t,i){var r=l.a.d(i());r&&t.disabled?t.removeAttribute("disabled"):!r&&!t.disabled&&(t.disabled=n)}},l.c.disable={update:function(n,t){l.c.enable.update(n,function(){return!l.a.d(t())})}},l.c.event={init:function(t,r,u,f){var o=r()||{},e;for(e in o)(function(){var o=e;"string"==typeof o&&l.a.n(t,o,function(t){var s,h=r()[o],c,e;if(h){c=u();try{e=l.a.L(arguments),e.unshift(f),s=h.apply(f,e)}finally{s!==n&&(t.preventDefault?t.preventDefault():t.returnValue=i)}c[o+"Bubble"]===i&&(t.cancelBubble=n,t.stopPropagation&&t.stopPropagation())}})})()}},l.c.foreach={Sa:function(n){return function(){var i=n(),t=l.a.ua(i);return!t||"number"==typeof t.length?{foreach:i,templateEngine:l.C.oa}:(l.a.d(i),{foreach:t.data,as:t.as,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:l.C.oa})}},init:function(n,t){return l.c.template.init(n,l.c.foreach.Sa(t))},update:function(n,t,i,r,u){return l.c.template.update(n,l.c.foreach.Sa(t),i,r,u)}},l.g.Q.foreach=i,l.e.I.foreach=n,l.c.hasfocus={init:function(r,u,f){function e(t){r.__ko_hasfocusUpdating=n;var e=r.ownerDocument;"activeElement"in e&&(t=e.activeElement===r),e=u(),l.g.ea(e,f,"hasfocus",t,n),r.__ko_hasfocusUpdating=i}var o=e.bind(t,n),s=e.bind(t,i);l.a.n(r,"focus",o),l.a.n(r,"focusin",o),l.a.n(r,"blur",s),l.a.n(r,"focusout",s)},update:function(n,i){var r=l.a.d(i());n.__ko_hasfocusUpdating||(r?n.focus():n.blur(),l.r.K(l.a.Ba,t,[n,r?"focusin":"focusout"]))}},l.c.html={init:function(){return{controlsDescendantBindings:n}},update:function(n,t){l.a.ca(n,t())}},k="__ko_withIfBindingData",g("if"),g("ifnot",i,n),g("with",n,i,function(n,t){return n.createChildContext(t)}),l.c.options={update:function(t,i,f){var c,h,a,s;"select"!==l.a.u(t)&&u(Error("options binding applies only to SELECT elements"));for(var p=0==t.length,w=l.a.V(l.a.fa(t.childNodes,function(n){return n.tagName&&"option"===l.a.u(n)&&n.selected}),function(n){return l.k.q(n)||n.innerText||n.textContent}),b=t.scrollTop,o=l.a.d(i());0",t)})},kb:function(n){return l.s.ra(function(t,i){t.nextSibling&&l.Fa(t.nextSibling,n,i)})}},l.b("__tr_ambtns",l.za.kb),l.l={},l.l.h=function(n){this.h=n},l.l.h.prototype.text=function(){var n=l.a.u(this.h),n="script"===n?"text":"textarea"===n?"value":"innerHTML",t;if(0==arguments.length)return this.h[n];t=arguments[0],"innerHTML"===n?l.a.ca(this.h,t):this.h[n]=t},l.l.h.prototype.data=function(n){if(1===arguments.length)return l.a.f.get(this.h,"templateSourceData_"+n);l.a.f.set(this.h,"templateSourceData_"+n,arguments[1])},l.l.O=function(n){this.h=n},l.l.O.prototype=new l.l.h,l.l.O.prototype.text=function(){if(0==arguments.length){var n=l.a.f.get(this.h,"__ko_anon_template__")||{};return n.Aa===r&&n.ia&&(n.Aa=n.ia.innerHTML),n.Aa}l.a.f.set(this.h,"__ko_anon_template__",{Aa:arguments[0]})},l.l.h.prototype.nodes=function(){if(0==arguments.length)return(l.a.f.get(this.h,"__ko_anon_template__")||{}).ia;l.a.f.set(this.h,"__ko_anon_template__",{ia:arguments[0]})},l.b("templateSources",l.l),l.b("templateSources.domElement",l.l.h),l.b("templateSources.anonymousTemplate",l.l.O),l.wa=function(n){n!=r&&!(n instanceof l.v)&&u(Error("templateEngine must inherit from ko.templateEngine")),tt=n},l.va=function(n,i,f,e,o){if(f=f||{},(f.templateEngine||tt)==r&&u(Error("Set a template engine before calling renderTemplate")),o=o||"replaceChildren",e){var s=rt(e);return l.j(function(){var t=i&&i instanceof l.z?i:new l.z(l.a.d(i)),r="function"==typeof n?n(t.$data,t):n,t=ot(e,o,r,t,f);"replaceNode"==o&&(e=t,s=rt(e))},t,{Ka:function(){return!s||!l.a.X(s)},W:s&&"replaceNode"==o?s.parentNode:s})}return l.s.ra(function(t){l.va(n,i,f,t,"replaceNode")})},l.Mb=function(n,i,u,f,e){function s(n,t){ht(t,o),u.afterRender&&u.afterRender(t,n)}function h(i,r){o=e.createChildContext(l.a.d(i),u.as),o.$index=r;var f="function"==typeof n?n(i,o):n;return ot(t,"ignoreTargetNode",f,o,u)}var o;return l.j(function(){var n=l.a.d(i)||[];"undefined"==typeof n.length&&(n=[n]),n=l.a.fa(n,function(n){return u.includeDestroyed||n===r||n===t||!l.a.d(n._destroy)}),l.r.K(l.a.$a,t,[f,n,h,u,s])},t,{W:f})},l.c.template={init:function(t,i){var r=l.a.d(i());return"string"==typeof r||r.name||1!=t.nodeType&&8!=t.nodeType||(r=1==t.nodeType?t.childNodes:l.e.childNodes(t),r=l.a.Hb(r),new l.l.O(t).nodes(r)),{controlsDescendantBindings:n}},update:function(i,u,f,e,o){u=l.a.d(u()),f={},e=n;var s,h=t;"string"!=typeof u&&(f=u,u=f.name,"if"in f&&(e=l.a.d(f["if"])),e&&"ifnot"in f&&(e=!l.a.d(f.ifnot)),s=l.a.d(f.data)),"foreach"in f?h=l.Mb(u||i,e&&f.foreach||[],f,i,o):e?(o="data"in f?o.createChildContext(s,f.as):o,h=l.va(u||i,o,f,i)):l.e.Y(i),o=h,(s=l.a.f.get(i,"__ko__templateComputedDomDataKey__"))&&"function"==typeof s.B&&s.B(),l.a.f.set(i,"__ko__templateComputedDomDataKey__",o&&o.pa()?o:r)}},l.g.Q.template=function(n){return n=l.g.aa(n),1==n.length&&n[0].unknown||l.g.Eb(n,"name")?t:"This template engine does not support anonymous templates nested within its templates"},l.e.I.template=n,l.b("setTemplateEngine",l.wa),l.b("renderTemplate",l.va),l.a.Ja=function(n,t,i){return n=n||[],t=t||[],n.length<=t.length?et(n,t,"added","deleted",i):et(t,n,"deleted","added",i)},l.b("utils.compareArrays",l.a.Ja),l.a.$a=function(t,i,u,f,e){function rt(n,t){o=tt[t],d!==t&&(nt[n]=o),o.na(d++),it(o.M),k.push(o),y.push(o)}function p(n,t){if(n)for(var i=0,r=t.length;il.a.Z)&&i.nodes?i.nodes():t;return r?l.a.L(r.cloneNode(n).childNodes):(i=i.text(),l.a.ta(i))},l.C.oa=new l.C,l.wa(l.C.oa),l.b("nativeTemplateEngine",l.C),l.qa=function(){var n=this.Db=function(){if("undefined"==typeof f||!f.tmpl)return 0;try{if(0<=f.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(n){}return 1}();this.renderTemplateSource=function(i,r,o){o=o||{},2>n&&u(Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later."));var s=i.data("precompiled");return s||(s=i.text()||"",s=f.template(t,"{{ko_with $item.koBindingContext}}"+s+"{{/ko_with}}"),i.data("precompiled",s)),i=[r.$data],r=f.extend({koBindingContext:r},o.templateOptions),r=f.tmpl(s,i,r),r.appendTo(e.createElement("div")),f.fragments={},r},this.createJavaScriptEvaluatorBlock=function(n){return"{{ko_code ((function() { return "+n+" })()) }}"},this.addTemplate=function(n,t){e.write("