1/*! 2 * hoverIntent v1.8.0 // 2014.06.29 // jQuery v1.9.1+ 3 * http://cherne.net/brian/resources/jquery.hoverIntent.html 4 * 5 * You may use hoverIntent under the terms of the MIT license. Basically that 6 * means you are free to use hoverIntent as long as this header is left intact. 7 * Copyright 2007, 2014 Brian Cherne 8 */(function(e){e.fn.hoverIntent=function(t,n,s){var l={interval:100,sensitivity:6,timeout:0};typeof t=="object"?l=e.extend(l,t):e.isFunction(n)?l=e.extend(l,{over:t,out:n,selector:s}):l=e.extend(l,{over:t,out:t,selector:n});var f,m,r,w,h=function(o){f=o.pageX,m=o.pageY},a=function(o,c){if(c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.sqrt((r-f)*(r-f)+(w-m)*(w-m))<l.sensitivity)return e(c).off("mousemove.hoverIntent",h),c.hoverIntent_s=!0,l.over.apply(c,[o]);r=f,w=m,c.hoverIntent_t=setTimeout(function(){a(o,c)},l.interval)},u=function(o,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),c.hoverIntent_s=!1,l.out.apply(c,[o])},p=function(o){var c=e.extend({},o),v=this;v.hoverIntent_t&&(v.hoverIntent_t=clearTimeout(v.hoverIntent_t)),o.type==="mouseenter"?(r=c.pageX,w=c.pageY,e(v).on("mousemove.hoverIntent",h),v.hoverIntent_s||(v.hoverIntent_t=setTimeout(function(){a(c,v)},l.interval))):(e(v).off("mousemove.hoverIntent",h),v.hoverIntent_s&&(v.hoverIntent_t=setTimeout(function(){u(c,v)},l.timeout)))};return this.on({"mouseenter.hoverIntent":p,"mouseleave.hoverIntent":p},l.selector)}})(jQuery);/*! 9 Colorbox 1.6.3 10 license: MIT 11 http://www.jacklmoore.com/colorbox 12*/(function(e,t,n){function s(d,b,R){var k=t.createElement(d);return b&&(k.id=P+b),R&&(k.style.cssText=R),e(k)}function l(){return n.innerHeight?n.innerHeight:e(n).height()}function f(d,b){b!==Object(b)&&(b={}),this.cache={},this.el=d,this.value=function(R){var k;return this.cache[R]===void 0&&(k=e(this.el).attr("data-cbox-"+R),k!==void 0?this.cache[R]=k:b[R]!==void 0?this.cache[R]=b[R]:ge[R]!==void 0&&(this.cache[R]=ge[R])),this.cache[R]},this.get=function(R){var k=this.value(R);return e.isFunction(k)?k.call(this.el,this):k}}function m(d){var b=C.length,R=(_+d)%b;return 0>R?b+R:R}function r(d,b){return Math.round((/%/.test(d)?(b==="x"?S.width():l())/100:1)*parseInt(d,10))}function w(d,b){return d.get("photo")||d.get("photoRegex").test(b)}function h(d,b){return d.get("retinaUrl")&&n.devicePixelRatio>1?b.replace(d.get("photoRegex"),d.get("retinaSuffix")):b}function a(d){"contains"in T[0]&&!T[0].contains(d.target)&&d.target!==L[0]&&(d.stopPropagation(),T.focus())}function u(d){u.str!==d&&(T.add(L).removeClass(u.str).addClass(d),u.str=d)}function p(d){_=0,d&&d!==!1&&d!=="nofollow"?(C=e("."+re).filter(function(){var b=e.data(this,J),R=new f(this,b);return R.get("rel")===d}),_=C.index(i.el),_===-1&&(C=C.add(i.el),_=C.length-1)):C=e(i.el)}function o(d){e(t).trigger(d),X.triggerHandler(d)}function c(d){var b;if(!se){if(b=e(d).data(J),i=new f(d,b),p(i.get("rel")),!ne){ne=ae=!0,u(i.get("className")),T.css({visibility:"hidden",display:"block",opacity:""}),g=s(q,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),W.css({width:"",height:""}).append(g),G=ie.height()+I.height()+W.outerHeight(!0)-W.height(),Y=oe.width()+Z.width()+W.outerWidth(!0)-W.width(),ee=g.outerHeight(!0),te=g.outerWidth(!0);var R=r(i.get("initialWidth"),"x"),k=r(i.get("initialHeight"),"y"),N=i.get("maxWidth"),j=i.get("maxHeight");i.w=Math.max((N!==!1?Math.min(R,r(N,"x")):R)-te-Y,0),i.h=Math.max((j!==!1?Math.min(k,r(j,"y")):k)-ee-G,0),g.css({width:"",height:i.h}),A.position(),o(Te),i.get("onOpen"),me.add(F).hide(),T.focus(),i.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",a,!0),X.one(ye,function(){t.removeEventListener("focus",a,!0)})),i.get("returnFocus")&&X.one(ye,function(){e(i.el).focus()})}var M=parseFloat(i.get("opacity"));L.css({opacity:M===M?M:"",cursor:i.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),i.get("closeButton")?ue.html(i.get("close")).appendTo(W):ue.appendTo("<div/>"),y()}}function v(){T||(ve=!1,S=e(n),T=s(q).attr({id:J,class:e.support.opacity===!1?P+"IE":"",role:"dialog",tabindex:"-1"}).hide(),L=s(q,"Overlay").hide(),E=e([s(q,"LoadingOverlay")[0],s(q,"LoadingGraphic")[0]]),V=s(q,"Wrapper"),W=s(q,"Content").append(F=s(q,"Title"),H=s(q,"Current"),K=e('<button type="button"/>').attr({id:P+"Previous"}),U=e('<button type="button"/>').attr({id:P+"Next"}),O=s("button","Slideshow"),E),ue=e('<button type="button"/>').attr({id:P+"Close"}),V.append(s(q).append(s(q,"TopLeft"),ie=s(q,"TopCenter"),s(q,"TopRight")),s(q,!1,"clear:left").append(oe=s(q,"MiddleLeft"),W,Z=s(q,"MiddleRight")),s(q,!1,"clear:left").append(s(q,"BottomLeft"),I=s(q,"BottomCenter"),s(q,"BottomRight"))).find("div div").css({float:"left"}),x=s(q,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),me=U.add(K).add(H).add(O)),t.body&&!T.parent().length&&e(t.body).append(L,T.append(V,x))}function D(){function d(b){b.which>1||b.shiftKey||b.altKey||b.metaKey||b.ctrlKey||(b.preventDefault(),c(this))}return T?(ve||(ve=!0,U.click(function(){A.next()}),K.click(function(){A.prev()}),ue.click(function(){A.close()}),L.click(function(){i.get("overlayClose")&&A.close()}),e(t).bind("keydown."+P,function(b){var R=b.keyCode;ne&&i.get("escKey")&&R===27&&(b.preventDefault(),A.close()),ne&&i.get("arrowKey")&&C[1]&&!b.altKey&&
vendor: 5,118 bytes, line 12
12(R===37?(b.preventDefault(),K.click()):R===39&&(b.preventDefault(),U.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+P,"."+re,d):e("."+re).live("click."+P,d)),!0):!1}function y(){var d,b,R,k=A.prep,N=++be;if(ae=!0,B=!1,o(pe),o(fe),i.get("onLoad"),i.h=i.get("height")?r(i.get("height"),"y")-ee-G:i.get("innerHeight")&&r(i.get("innerHeight"),"y"),i.w=i.get("width")?r(i.get("width"),"x")-te-Y:i.get("innerWidth")&&r(i.get("innerWidth"),"x"),i.mw=i.w,i.mh=i.h,i.get("maxWidth")&&(i.mw=r(i.get("maxWidth"),"x")-te-Y,i.mw=i.w&&i.w<i.mw?i.w:i.mw),i.get("maxHeight")&&(i.mh=r(i.get("maxHeight"),"y")-ee-G,i.mh=i.h&&i.h<i.mh?i.h:i.mh),d=i.get("href"),xe=setTimeout(function(){E.show()},100),i.get("inline")){var j=e(d);R=e("<div>").hide().insertBefore(j),X.one(pe,function(){R.replaceWith(j)}),k(j)}else i.get("iframe")?k(" "):i.get("html")?k(i.get("html")):w(i,d)?(d=h(i,d),B=i.get("createImg"),e(B).addClass(P+"Photo").bind("error."+P,function(){k(s(q,"Error").html(i.get("imgError")))}).one("load",function(){N===be&&setTimeout(function(){var M;i.get("retinaImage")&&n.devicePixelRatio>1&&(B.height=B.height/n.devicePixelRatio,B.width=B.width/n.devicePixelRatio),i.get("scalePhotos")&&(b=function(){B.height-=B.height*M,B.width-=B.width*M},i.mw&&B.width>i.mw&&(M=(B.width-i.mw)/B.width,b()),i.mh&&B.height>i.mh&&(M=(B.height-i.mh)/B.height,b())),i.h&&(B.style.marginTop=Math.max(i.mh-B.height,0)/2+"px"),C[1]&&(i.get("loop")||C[_+1])&&(B.style.cursor="pointer",e(B).bind("click."+P,function(){A.next()})),B.style.width=B.width+"px",B.style.height=B.height+"px",k(B)},1)}),B.src=d):d&&x.load(d,i.get("data"),function(M,z){N===be&&k(z==="error"?s(q,"Error").html(i.get("xhrError")):e(this).contents())})}var L,T,V,W,ie,oe,Z,I,C,S,g,x,E,F,H,O,U,K,ue,me,i,G,Y,ee,te,_,B,ne,ae,se,xe,A,ve,ge={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return e(this).attr("href")},title:function(){return this.title},createImg:function(){var d=new Image,b=e(this).data("cbox-img-attrs");return typeof b=="object"&&e.each(b,function(R,k){d[R]=k}),d},createIframe:function(){var d=t.createElement("iframe"),b=e(this).data("cbox-iframe-attrs");return typeof b=="object"&&e.each(b,function(R,k){d[R]=k}),"frameBorder"in d&&(d.frameBorder=0),"allowTransparency"in d&&(d.allowTransparency="true"),d.name=new Date().getTime(),d.allowFullscreen=!0,d}},J="colorbox",P="cbox",re=P+"Element",Te=P+"_open",fe=P+"_load",he=P+"_complete",we=P+"_cleanup",ye=P+"_closed",pe=P+"_purge",X=e("<a/>"),q="div",be=0,De={},ke=(function(){function d(){clearTimeout(M)}function b(){(i.get("loop")||C[_+1])&&(d(),M=setTimeout(A.next,i.get("slideshowSpeed")))}function R(){O.html(i.get("slideshowStop")).unbind(Q).one(Q,k),X.bind(he,b).bind(fe,d),T.removeClass(z+"off").addClass(z+"on")}function k(){d(),X.unbind(he,b).unbind(fe,d),O.html(i.get("slideshowStart")).unbind(Q).one(Q,function(){A.next(),R()}),T.removeClass(z+"on").addClass(z+"off")}function N(){j=!1,O.hide(),d(),X.unbind(he,b).unbind(fe,d),T.removeClass(z+"off "+z+"on")}var j,M,z=P+"Slideshow_",Q="click."+P;return function(){j?i.get("slideshow")||(X.unbind(we,N),N()):i.get("slideshow")&&C[1]&&(j=!0,X.one(we,N),i.get("slideshowAuto")?R():k(),O.show())}})();e[J]||(e(v),A=e.fn[J]=e[J]=function(d,b){var R,k=this;return d=d||{},e.isFunction(k)&&(k=e("<a/>"),d.open=!0),k[0]&&(v(),D()&&(b&&(d.onComplete=b),k.each(function(){var N=e.data(this,J)||{};e.data(this,J,e.extend(N,d))}).addClass(re),R=new f(k[0],d),R.get("open")&&c(k[0]))),k},A.position=function(d,b){function R(){ie[0].style.width=I[0].style.width=W[0].style.width=parseInt(T[0].style.width,10)-Y+"px",W[0].style.height=oe[0].style.height=Z[0].style.height=parseInt(T[0].style.height,10)-G+"px"}var k,N,j,M=0,z=0,Q=T.offset();if(S.unbind("resize."+P),T.css({top:-9e4,left:-9e4}),N=S.scrollTop(),j=S.scrollLeft(),i.get("fixed")?(Q.top-=N,Q.left-=j,T.css({position:"fixed"})):(M=N,z=j,T.css({position:"absolute"})),z+=i.get("right")!==!1?Math.max(S.width()-i.w-te-Y-r(i.get("right"),"x"),0):i.get("left")!==!1?r(i.get("left"),"x"):Math.round(Math.max(S.width()-i.w-te-Y,0)/2),M+=i.get("bottom")!==!1?Math.max(l()-i.h-ee-G-r(i.get("bottom"),"y"),0):i.get("top")!==!1?r(i.get("top"),"y"):Math.round(Math.max(l()-i.h-ee-G,0)/2),T.css({top:Q.top,left
12:Q.left,visibility:"visible"}),V[0].style.width=V[0].style.height="9999px",k={width:i.w+te+Y,height:i.h+ee+G,top:M,left:z},d){var le=0;e.each(k,function(ce){return k[ce]!==De[ce]&&(le=d),void 0}),d=le}De=k,d||T.css(k),T.dequeue().animate(k,{duration:d||0,complete:function(){R(),ae=!1,V[0].style.width=i.w+te+Y+"px",V[0].style.height=i.h+ee+G+"px",i.get("reposition")&&setTimeout(function(){S.bind("resize."+P,A.position)},1),e.isFunction(b)&&b()},step:R})},A.resize=function(d){var b;ne&&(d=d||{},d.width&&(i.w=r(d.width,"x")-te-Y),d.innerWidth&&(i.w=r(d.innerWidth,"x")),g.css({width:i.w}),d.height&&(i.h=r(d.height,"y")-ee-G),d.innerHeight&&(i.h=r(d.innerHeight,"y")),d.innerHeight||d.height||(b=g.scrollTop(),g.css({height:"auto"}),i.h=g.height()),g.css({height:i.h}),b&&g.scrollTop(b),A.position(i.get("transition")==="none"?0:i.get("speed")))},A.prep=function(d){function b(){return i.w=i.w||g.width(),i.w=i.mw&&i.mw<i.w?i.mw:i.w,i.w}function R(){return i.h=i.h||g.height(),i.h=i.mh&&i.mh<i.h?i.mh:i.h,i.h}if(ne){var k,N=i.get("transition")==="none"?0:i.get("speed");g.remove(),g=s(q,"LoadedContent").append(d),g.hide().appendTo(x.show()).css({width:b(),overflow:i.get("scrolling")?"auto":"hidden"}).css({height:R()}).prependTo(W),x.hide(),e(B).css({float:"none"}),u(i.get("className")),k=function(){function j(){e.support.opacity===!1&&T[0].style.removeAttribute("filter")}var M,z,Q=C.length;ne&&(z=function(){clearTimeout(xe),E.hide(),o(he),i.get("onComplete")},F.html(i.get("title")).show(),g.show(),Q>1?(typeof i.get("current")=="string"&&H.html(i.get("current").replace("{current}",_+1).replace("{total}",Q)).show(),U[i.get("loop")||Q-1>_?"show":"hide"]().html(i.get("next")),K[i.get("loop")||_?"show":"hide"]().html(i.get("previous")),ke(),i.get("preloading")&&e.each([m(-1),m(1)],function(){var le,ce=C[this],Ce=new f(ce,e.data(ce,J)),de=Ce.get("href");de&&w(Ce,de)&&(de=h(Ce,de),le=t.createElement("img"),le.src=de)})):me.hide(),i.get("iframe")?(M=i.get("createIframe"),i.get("scrolling")||(M.scrolling="no"),e(M).attr({src:i.get("href"),class:P+"Iframe"}).one("load",z).appendTo(g),X.one(pe,function(){M.src="//about:blank"}),i.get("fastIframe")&&e(M).trigger("load")):z(),i.get("transition")==="fade"?T.fadeTo(N,1,j):j())},i.get("transition")==="fade"?T.fadeTo(N,0,function(){A.position(0,k)}):A.position(N,k)}},A.next=function(){!ae&&C[1]&&(i.get("loop")||C[_+1])&&(_=m(1),c(C[_]))},A.prev=function(){!ae&&C[1]&&(i.get("loop")||_)&&(_=m(-1),c(C[_]))},A.close=function(){ne&&!se&&(se=!0,ne=!1,o(we),i.get("onCleanup"),S.unbind("."+P),L.fadeTo(i.get("fadeOut")||0,0),T.stop().fadeTo(i.get("fadeOut")||0,0,function(){T.hide(),L.hide(),o(pe),g.remove(),setTimeout(function(){se=!1,o(ye),i.get("onClosed")},1)}))},A.remove=function(){T&&(T.stop(),e[J].close(),T.stop(!1,!0).remove(),L.remove(),se=!1,T=null,e("."+re).removeData(J).removeClass(re),e(t).unbind("click."+P).unbind("keydown."+P))},A.element=function(){return e(i.el)},A.settings=ge)})(jQuery,document,window),window.DRF=window.DRF||{},window.DRF.showModal=window.drfShowModal=function(e){e=e||{};var t=e.buttons||[],n=[],s=(function(){var v=0;return function(D){var y=++v+"";return D?D+y:y}})(),l={dialog:null};t.length==0&&t.push(e.buttonText||"OK");var f=$('<dialog class="drf-modal-inner"><div class="drf-modal-message"></div><div class="drf-modal-input"></div><div class="drf-modal-buttons"></div></dialog>').css({"font-size":"16px","text-align":"center","background-color":"white",border:"none",padding:"1em"}),m=f[0];if(l.dialog=m,e.messageStyles&&(typeof e.messageStyles=="object"&&!(e.messageStyles instanceof String)?f.find(".drf-modal-message").css(e.messageStyles):f.find(".drf-modal-message").attr("style",String(e.messageStyles))),e.whiteSpace&&f.find(".drf-modal-message").css("white-space",e.whiteSpace),e.messageElements?f.find(".drf-modal-message").append(e.messageElements):e.messageHtml?f.find(".drf-modal-message").html(e.messageHtml):e.message?f.find(".drf-modal-message").text(e.message):f.find(".drf-modal-message").remove(),e.label)f.attr("aria-label",e.label);else if(f.find(".drf-modal-message").length>0){var r=f.find(".drf-modal-message").attr("id");r||f.find(".drf-modal-message").attr("id",r=s("drf-modal-message-")),f.attr("aria-labelledby",r)}if(e.input){var w=Object.assign({},e.input);delete w.autofocus;var h=$("<input>").attr(w).appendTo(f.find(".drf-modal-input"));if(e.input.autofocus&&h.addClass("drf-modal-autofocus"),!h.attr("aria-label")&&!h.attr("aria-labelledby")){var a=h.attr("id");if(!a){var u=!1;if(h.attr("id",a=s("drf-modal-input-")),f.find(".drf-modal-message label").each(function(v,D){D.htmlFor?D.htmlFor==a&&(u=!0):(D.setAttribute("for",a),u=!0)}),!u){var r=f.find(".drf-modal-message").attr("id");r||f.find(".drf-modal-message").attr("id",r=s("drf-modal-message-")),h.attr("aria-labelledby",r)}}}}else f.find(".drf-modal-input").remove();t.forEach(function(v,D){var y=$("<button></button>").attr("data-index",""+D).css({margin:"0 15px"});typeof v=="string"||v instanceof String?(y.text(v),y.attr("class","df-primary-button"),n.push(null)):(v.html?y.html(v.html):v.text?y.text(v.text):y.text("OK"),v.class?y.attr("class",v.class):y.attr("class","df-primary-button"),v.autofocus&&y.addClass("drf-modal-autofocus"),n.push(v.callback)),f.find(".drf-modal-buttons").append(y)}),f.children(":not(:first-child)").css({"margin-top":"16px"});var p=$('<div class="drf-modal-overlay"></div>').append(f).css({"background-color":"rgba(0,0,0,0.9)",position:"fixed",width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center",left:0,top:0,transition:"all 250ms ease-out","z-index":99999}).appendTo("body");p.on("click",function(v){if($(v.target).is(".drf-modal-overlay")){var D=f.find(".drf-modal-input input"),y={button:null,input:D.length>0?D[0]:null,modal:l,abort:!1};e.callback&&e.callback.call(l,y),y.abort||c()}}),f.on("cancel",function(v){var D=f.find(".drf-modal-input input"),y={button:null,input:D.length>0?D[0]:null,modal:l,abort:!1};e.callback&&e.callback.call(l,y),y.abort?v.preventDefault():c()}),f.on("click","button",function(){var v=parseInt($(this).attr("data-index"),10),D=t[v],y=n[v],L=f.find(".drf-modal-input input"),T={button:D,input:L.length>0?L[0]:null,modal:l,abort:!1};y&&!D.lateCallback&&y.call(l,T),e.callback&&!e.lateCallback&&e.callback.call(l,T),T.abort||(c(),y&&D.lateCallback&&y.call(l,T),e.callback&&e.lateCallback&&e.callback.call(l,T))});var o=f.find(".drf-modal-autofocus");o.length==0&&(o=f.find("button, input")),o=o.first(),m.showModal?(o.attr("autofocus","autofocus"),m.showModal()):(f.attr("open","open"),o.focus());function c(){m.close&&m.close(),p.remove()}return l},String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(t===void 0||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),window.jQuery(function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'"};function n(s){return s.replace(/[&<>'"]/g,function(l){return t[l]})}e("body").on("click",".ContentRevision-Container .ContentRevision-References .ContentRevision-References-Label",function(){var s=e(this).closest(".ContentRevision-References");s.hasClass("ReferencesCollapsed")?s.removeClass("ReferencesCollapsed"):s.addClass("ReferencesCollapsed")}),e("body").on("click",".ContentRevision-ReferenceLink",function(){e(this).closest(".ContentRevision-Container").find(".ContentRevision-References").removeClass("ReferencesCollapsed");for(var s=e(e(this).attr("href")),l=JSON.parse(e(this).attr("data-linkto")),f=[],m=0;m<l.length;m+=1)f.push(document.getElementById(l[m]));return e("html,body").animate({scrollTop:s.offset().top-e("#header").height()-90},"slow"),e(f).effect("highlight",{},4e3),!1}),e(".ContentRevision-Container > .ContentRevision-Body").each(function(){var s=/^,?(\d+(\-\d+)?)(,\d+(\-\d+)?)*,?$/,l=e(this),f=l.closest(".ContentRevision-Container").children(".ContentRevision-References").find("li").uniqueId();l.find("sup").each(function(){var m=e(this),r=m.text();/\d\s+\d/.test(r)||(r=r.replace(/\s+/g,""),s.test(r)&&(r=r.replace(/(\d+)(?:\-(\d+)?)?/g,function(w,h,a){if(h&&a){if(h=parseInt(h)-1,a=parseInt(a)-1,h>=0&&h<f.length&&a>=0&&a<f.length){for(var u=[],p=h;p<=a;p+=1)u.push(e(f[p]).attr("id"));return'<a href="#'+n(u[0])+'" class="ContentRevision-ReferenceLink" data-linkto="'+n(JSON.stringify(u))+'">'+w+"</a>"}}else if(h&&(h=parseInt(h)-1,h>=0&&h<f.length)){var u=[e(f[h]).attr("id")];return'<a href="#'+n(u[0])+'" class="ContentRevision-ReferenceLink" data-linkto="'+n(JSON.stringify(u))+'">'+w+"</a>"}return w}),m.html(r)))})})}),(function(e){var t=/^#([A-Za-z0-9\-_]+)$/;function n(r,w){var h=t.exec(r);if(h){var a=e(h[0]+",a[name="+h[1]+"]");if(a.length>0){if(!w)e(document).scrollTop(a.offset().top-e("#header").height());else{var u=e("html, body").scrollTop(),p=a.offset().top-e("#header").height(),o=Math.abs(p-u)/3.5;e("html, body").animate({scrollTop:p},o,function(){s(a[0]),r!=window.location.hash&&history.pushState({},"",r)})}return!0}}}e(window).on("load hashchange",function(r){window.location.hash&&(n(window.location.hash,!1),r.type=="load"&&(setTimeout(function(){n(window.location.hash,!1)},200),setTimeout(function(){n(window.location.hash,!1)},1e3)))}),e(function(){e("a[href]").click(function(r){var w=e(this).attr("href");t.test(w)&&n(w,!0)&&r.preventDefault()})});function s(r){for(var w={};;){if(!r)return;if(f(r)){if(l(r,w)){r.focus();return}else if(w.belowBottom)return}r=m(r)}}function l(r,w){var h=r.getBoundingClientRect(),a=window.visualVie
12wport,u=!1;return h.right<a.offsetLeft&&(u=!0),h.left>a.offsetLeft+a.width&&(u=!0),h.bottom<a.offsetTop&&(u=!0),h.top>a.offsetTop+a.height&&(u=!0,w.belowBottom=!0),!u}function f(r){if(r.tabIndex>=0||r.isContentEditable||r.delegatesFocus){if(r.inert)return!1;for(var w=r.parentElement;w;w=w.parentElement)if(w.inert)return!1;if(r.checkVisibility){if(!r.checkVisibility({checkVisibilityCSS:!0,visibilityProperty:!0}))return!1}else if(!e(r).is(":visible"))return!1;return!0}return!1}function m(r){if(!r)return null;if(r.children.length>0&&r.children[0])return r.children[0];for(;;){if(r.nextElementSibling)return r.nextElementSibling;if(r=r.parentElement,!r)return null}}})(jQuery),window.jQuery(function(e){e("body").on("click",".Categories-AutoCollapseOnMobile .Categories-Heading",function(){var t=e(this).closest(".Categories-AutoCollapseOnMobile");t.hasClass("AutoCollapsedOnMobile")?t.removeClass("AutoCollapsedOnMobile"):t.addClass("AutoCollapsedOnMobile")})}),window.jQuery(function(e){e("#mainSidebar, .mobileSidebarNavWrap").find(".shop-menuitem-collapsible").each(function(t,n){var s=e(n),l=s.hasClass("shop-menuitem-collapsed");s.children(".menuContainer").toggle(!l),s.children("a").after('<span class="drop"></span>'),s.children().first().click(function(){return l=!l,s.children(".menuContainer").toggle(!l),l?s.addClass("shop-menuitem-collapsed"):s.removeClass("shop-menuitem-collapsed"),!1})})}),$.fn.extend({scrollAnimateToTarget:function(e,t){var n=$(this.attr("data-target"));return $("html, body").animate({scrollTop:n.offset().top-t},e),!1}}),(function(e){var t=[],n=null,s=!1,l=window.MutationObserver||window.WebKitMutationObserver,f=!1;e("script[src]").each(function(a,u){!u.async&&!u.defer&&(u.drfReadyState="complete")}),e(window).on("load",function(){setTimeout(function(){f=!0},1e4)}),e.afterPixels=function(a){t.push(a),m(!0)},m();function m(a){if(n&&(clearTimeout(n),n=null),f){r();return}var u=document.readyState=="complete";e("img").each(function(p,o){if(o.complete===!1)return u=!1,!1}),e("script[src]").each(function(p,o){if(h(o),o.drfReadyState==="unknown")return u=!1,!1}),u?s&&!a?r():(s=!0,n=setTimeout(m,200)):(s=!1,n=setTimeout(m,200))}function r(){for(var a=0;a<t.length;a+=1)t[a].call(window);t.length=0}if(l){var w=new l(function(a){e.each(a,function(u,p){e.each(p.addedNodes,function(o,c){c.nodeType==1&&c.nodeName.toUpperCase()=="SCRIPT"&&h(c)})})});w.observe(document,{childList:!0,attributes:!1,characterData:!1,subtree:!0})}function h(a){a.drfReadyState||(a.drfReadyState="unknown",e(a).on("load",function(){a.drfReadyState="complete"}))}})(jQuery);var global={setScrollTopIcon:function(e,t){var n=$(".scroll2Top");return n!==void 0&&n.click(function(){$(this).scrollAnimateToTarget(e,t)}),!1},setScroll2TopPosition:function(e,t){var n=$(".scroll2Top");if(e!==void 0&&e.offset()!==null){var s=e.offset().top-$(window).height();$(document).scroll(function(){$(window).scrollTop()>=s?n.show():n.hide()})}if(t!==void 0&&t.offset()!==null){var l=t.offset().top,f=400;$(document).scroll(function(){$(window).scrollTop()+$(window).height()-f>=l&&n.hide()})}}
12,checkIfPageNotFound:function(){var e=$(".pageErrorNotFound");e!==void 0&&e.length>0&&(this.hideSidebar(),this.listToColumn(".linkContainer"),$(window).resize(function(){setTimeout(function(){window.location.reload()},500)}))},hideSidebar:function(){$("#mainSidebar").hide(),$("#mainSidebarMobile").hide(),$(".mainContent").addClass("pageError")},detectBrowser:function(){var e=this.browserInfo().split(" "),t=this.browserInfo().replace(" ","-");e.length>0&&$("html").addClass(e[0].toLowerCase()),t.length>0&&$("html").addClass(t.toLowerCase())},browserInfo:function(){var e=navigator.userAgent,t,n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(t=/\brv[ :]+(\d+)/g.exec(e)||[],"IE "+(t[1]||"")):n[1]==="Chrome"&&(t=e.match(/\b(OPR|Edge)\/(\d+)/),t!=null)?t.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],(t=e.match(/version\/(\d+)/i))!=null&&n.splice(1,1,t[1]),n.join(" "))},popupToFrame:function(e){e!==void 0&&$.colorbox(e)},popupToHTML:function(e,t,n,s){t!==void 0?$.colorbox({iframe:!1,html:e,width:t.width,height:t.height}):$.colorbox({iframe:!1,html:e,width:"100%",height:"100%"})},getCurrentSize:function(){var e=document,t=e.documentElement,n=e.body,s=window.innerWidth||t.clientWidth||n.clientWidth,l=window.innerHeight||t.clientHeight||n.clientHeight;return s=parseInt(s),l=parseInt(l),[s,l]},listToColumn:function(e){var t=this.getCurrentSize(),n=2;t[0]>=1200?n=2:t[0]<=480&&(n=1);var s=$(e);s.find("section, li.mainItemLink").addClass("dontsplit"),s.find("h1, h2, h3, h4, h5, h6, li.mainItemLink > span").addClass("dontend"),s.find("br").addClass("removeiflast").addClass("removeiffirst"),s.columnize({columns:n,buildOnce:!0,lastNeverTallest:!0})},setActiveLink:function(e){var t=$(e).find("a");t.removeClass("active"),t.click(function(){var n=$(this);return $(this).scrollAnimateToTarget(1e3,50),!1})},slideAnimation:function(e,t,n,s,l){$(e).hover(function(){$(t,$(this)).stop().animate(n,500)},function(){$(t,$(this)).stop().animate(s,500)})},setViewAllAlphabet:function(){$(".viewall-alphabet a").on("click",function(){var e=$
12(this).attr("href"),t=$(e);return $("html,body").animate({scrollTop:t.offset().top-$("#header").height()-10},"slow"),$(t).closest("section").effect("highlight",{},4e3),!1})},autoScroll:function(){var e=/^#scroll(\d{1,15})$/.exec(window.location.hash);if(e&&e[1]){var t=parseInt(e[1]);t&&$("html,body").scrollTop(t)}},setupRoyalSlider:function(e){$(e).royalSlider({addActiveClass:!0,arrowsNav:!1,controlNavigation:"bullets",autoScaleSlider:!0,autoScaleSliderWidth:480,autoScaleSliderHeight:320,loop:!0,fadeinLoadedSlide:!1,globalCaption:!1,keyboardNavEnabled:!0,globalCaptionInside:!1})}};window.DRF=window.DRF||{},window.DRF.enablePostBackSpinner=function(e){var t=window.jQuery;new Image().src="/images/postback-spinner.gif",t("#pageContentInner .mainContent").on("submit","form",function(n){n.isDefaultPrevented()||t("<div></div>").css({"z-index":999999,position:"fixed",top:0,left:0,width:"100%",height:"100%",margin:0,padding:0,border:"none",background:'no-repeat center rgba(0, 0, 0, 0.7) url("/images/postback-spinner.gif")'}).appendTo(document.body).focus()})},window.DRF.regExpEscape=function(e){return String(e).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")},window.DRF.promptForLogin=function(e){var t=!1,n=!1,s=!1,l=!0,f=!1,m=$.type(e);m=="string"?t=e:m=="object"&&(t=e.redirectAfter,n=e.messageName,s=e.freeAccountRequired,e.hasOwnProperty("membershipRequired")?l=e.membershipRequired:s&&(l=!1),f=e.restrictedAccess);var r=["/membership"];t=t||window.location.pathname+window.location.search,!/#/.test(t)&&!r.some(function(v){return v==window.location.pathname.toLowerCase()})&&(t=t+"#scroll"+$(window).scrollTop()),/^\?/.test(t)&&(t=window.location.pathname+t);var w="";n&&(w="&msg="+encodeURIComponent(n));var h;l?h="&mreq=1":h="&mreq=0";var a;s?a="&fareq=1":a="&fareq=0";var u;f?u="&restricted=1":u="";var p="ReturnUrl="+encodeURIComponent(t)+w+h+a+u;if(typeof Fancybox<"u"&&Fancybox){var o=Fancybox.show([{type:"iframe",src:"/login.aspx?popup=1&"+p,preload:!1,width:320,height:350}],{l10n:{MODAL:"Log in"},Html:{iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",title:"Log in"}}}),c=o.getContainer();c.style.setProperty("--f-html-padding","20px")}else window.location.href="/login?"+p},window.DRF.confirmClick=function(e,t,n){var s="DRF_confirmClick_confirmed";if(typeof t=="function"&&typeof n!="function"&&(n=t,t=null),!$(e).data(s)){var l=function(){$(e).data(s,!0),e.click()};return t&&t.preventDefault&&t.preventDefault(),n(l),!1}},DRF.tooltip=function(){var e=!1,t=$(".drf-tooltip-overlay");t.length==0&&(t=$('<div class="ui-widget-overlay drf-tooltip-overlay" style="position:fixed"></div>').appendTo("body").hide(),e=!0),$(".drf-tooltip").not(":has(> .fa-question-circle)").append('<i class="far fa-question-circle"></i>'),e&&$(document).click(function(n){var s=$(n.target).closest(".drf-tooltip"),l=s.children(".drf-tooltip-comment");l.length>0&&l.css("display")=="none"?($(".drf-tooltip-comment").css("display","none"),l.css("display","block"),$(window).width()<480?(l.addClass("drf-tooltip-comment-centered").css({top:"",left:""}),t.show()):(l.removeClass("drf-tooltip-comment-centered"),t.hide(),l.position({my:"left center",at:"right center",of:s,collision:"flipfit",using:function(f){var m=5;l.css(f);var r=$("#header").offset().top+$("#header").height(),w=r-(l.offset().top-m);w>0&&(f.top+=w,l.css(f));var h=$(".at4-share-outer-right #at4-share:visible");if(h.length){var a=l.offset().left+l.outerWidth()-h.offset().left;a>0&&(f.left-=a,l.css(f))}var u=$("#at-share-dock.atss-bottom:visible");if(u.length){var a=l.offset().top+l.outerHeight()-u.offset().top;a>0&&(f.top-=a,l.css(f))}}}))):($(".drf-tooltip-comment").css("display","none"),t.hide())})},window.DRF.isScrolledVisible=function(e,t){e=m(e);var n=e.getBoundingClientRect();if(n.bottom<0||n.right<0)return!1;var s=document.documentElement.clientWidth,l=document.documentElement.clientHeight;if(n.top>l||n.left>s)return!1;if(t=m(t),t){var f=t.getBoundingClientRect();if(n.bottom<f.top||n.right<f.left||n.top>f.bottom||n.left>f.right)return!1}return!0;function m(r){return jQuery&&r instanceof jQuery?r.length>0?r[0]:null:r}},(function(){var e=0;window.DRF.uniqueId=function(t){var n=++e+"";return t?t+n:n}})(),window.DRF.useWhenAvailable=function(e){e=jQuery.extend({},e,{validate:function(s){return s!=null},timeout:1e3,interval:100});var t=0;n();function n(){var s=e.get();e.validate(s)?e.call(s):t<e.timeout&&(t+=e.interval,setTimeout(n,e.interval))}},setInterval(function(){jQuery.ajax({url:"/query/keepalive.ashx",cache:!1})},9e5),$(window).on("load",function(){var e,t,n,s;if($("body.design2025").length>0||(e=$("#pageContent").next("#footer"),e.length!==1||!window.getComputedStyle))return;t=window.getComputedStyle(e[0]),$(window).on("resize mouseup keyup",function(){r(),n||(n=setTimeout(function(){n=null,r()},1))});var l=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(l){var f=new l(function(a){r()});f.observe(document.body,{attributes:!0,childList:!0,characterData:!0}
12)}if(ResizeObserver){var m=new ResizeObserver(function(){r()});m.observe(document.getElementById("pageContent"))}r();function r(){var a=w(!1),u=e;a.length>0&&(u=a);var p=u.offset().top+u.outerHeight(),o=$(window).height();p<o?a.length==0&&h(!0):a.length>0&&h(!1)}function w(a){var u=$("#footerPlaceholder");if(u.length==0&&a&&(u=$('<div id="footerPlaceholder"></div>').insertAfter(e)),u.length>0){u.height(e.outerHeight());var p=parseFloat(t.getPropertyValue("margin-top"));u.css("margin-top",p+"px")}return u}function h(a){if(a=!!a,s!==a&&e.is(":visible")){var u=w(a);a?(e.css({position:"fixed",bottom:0}),s=!0):a||(u.remove(),e.css({position:"",bottom:""}),s=!1)}}}),$(document).ready(function(){$("body").removeClass("supports-no-js").addClass("supports-js"),global.autoScroll(),global.checkIfPageNotFound(),global.detectBrowser(),global.setViewAllAlphabet()}),$.fn.autogrow=function(e){return this.filter("textarea").each(function(){var t=this,n=$(t),s=n.height(),l=n.hasClass("autogrow-short")?0:parseInt(n.css("lineHeight"))||0,f=$.extend({preGrowCallback:null,postGrowCallback:null},e),m=$("<div></div>").css({position:"absolute",top:-1e4,left:-1e4,width:n.width(),fontSize:n.css("fontSize"),fontFamily:n.css("fontFamily"),fontWeight:n.css("fontWeight"),lineHeight:n.css("lineHeight"),resize:"none","word-wrap":"break-word"}).appendTo(document.body),r=function(w){var h=function(p,o){for(var c=0,v="";c<o;c++)v+=p;return v},a=t.value.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\n$/,"<br/> ").replace(/\n/g,"<br/>").replace(/ {2,}/g,function(p){return h(" ",p.length-1)+" "});w&&w.data&&w.data.event==="keydown"&&w.keyCode===13&&(a+="<br />"),m.css("width",n.width()),m.html(a+(l===0?"...":""));var u=Math.max(m.height()+l,s);f.preGrowCallback!=null&&(u=f.preGrowCallback(n,m,u,s)),n.height(u),f.postGrowCallback!=null&&f.postGrowCallback(n)};n.change(r).keyup(r).keydown({event:"keydown"},r),$(window).resize(r),r()})},(function(){var e=new Intl.DateTimeFormat().resolvedOptions().timeZone;document.cookie="tz="+e})(),DRF.setupNeiCourseEnrollmentBox=function(e){var t=window.jQuery,n=t(e);if(n.attr("data-setup-nei-course-enrollment-box"))return;var s=parseInt(n.attr("data-nei-course-id"),10);if(isNaN(s)||s<1){l("Course ID is out of range or not a number");return}n.attr("data-setup-nei-course-enrollment-box","1"),t.ajax({url:"/query/nei-course-enrollment-box.ashx?id="+s,dataType:"json",success:function(a){a.success?f(a.data):l(a.message||"Unexpected error")},error:function(a){var u=null;try{u=JSON.parse(a.responseText)}catch{u=null}u&&u.message&&l(u.message)}});function l(a){n.addClass("red-alert"),n.text("[Error: "+a+"]")}function f(a){n.addClass("EnrollmentBox EnrollmentBox-"+s+" respond");var u=t("<form></form>").appendTo(n).append('<div><span class="EnrollMessage"></span></div>').append('<div class="NeiEnrollmentPicker ButtonContainer"></div>').append('<div class="PreviousCourseListDescription">You must complete the following '+a.typeNameLower+"⁠(s) prior to starting this one:</div>").append('<div class="PreviousCourseList quickLinks ProgramList"></div>').append('<div class="UnmetPrerequisiteListDescription">You must complete the following prerequisite⁠(s) prior to enrolling in this '+a.typeNameLower+":</div>").append('<div class="UnmetPrerequisiteList quickLinks ProgramList"></div>').append('<div class="ProgramListDescription">This course can be taken standalone or as part of a program.</div>').append('<div class="RealProgramList quickLinks ProgramList"></div>').append('<div class="ClassroomLink" id="ClassroomLink">Already enrolled? <a href="/nei/classroom">Enter the Classroom</a></div>');w(n.find(".EnrollMessage"),a.EnrollMessage),m(n.find(".ButtonContainer"),a.ButtonContainer),w(n.find(".PreviousCourseListDescription"),a.PreviousCourseListDescription),r(n.find(".PreviousCourseList"),a.PreviousCourseList),w(n.find(".UnmetPrerequisiteListDescription"),a.UnmetPrerequisiteListDescription),r(n.find(".UnmetPrerequisiteList"),a.UnmetPrerequisiteList),w(n.find(".ProgramListDescription"),a.ProgramListDescription),r(n.find(".RealProgramList"),a.ProgramList),w(n.find(".ClassroomLink"),a.ClassroomLink)}function m(a,u){function p(g,x,E){var F=document.createElement(g);return t(F).attr(x),E?t(F).appendTo(E):t(F).appendTo(a),t(F)}var o=p("div",{class:"productDropDownDiv"}),c=p("select",{class:"productDropDown product-dropdown"},o),v=p("div",{class:"creditTypeDropDownDiv"}),D=p("select",{class:"creditTypeDropDown product-dropdown"},v),y=p("div",{class:"otherTextBoxDiv NeiEnrollmentPicker-OtherField"}),L=p("label",{class:"otherTextBoxLabel form-label"},y),T=p("input",{type:"text",class:"otherTextBox"},y),V=p("div",{class:"enrollButtonDiv"}),W=p("button",{type:"button",class:"enrollButton df-primary-button"},V);u.EnterClassroom?ie():oe();function ie(){o.remove(),v.remove(),y.remove(),W.text("Enter the Classroom")}function oe(){var g=u.Products;g.length>1?(t("<option></option>
12",{value:"",text:"Choose enrollment option"}).appendTo(c),t.each(g,function(O,U){t("<option>",{value:U.ID,text:U.Name+" "+U.Price}).appendTo(c)}),W.text("Enroll Now")):(o.remove(),g.length==1?W.text("Enroll Now "+g[0].Price):V.remove());for(var x=null,E=0;E<g.length;E++)if(g[E].HasCreditTypes){x=g[E];break}if(x!=null){if(t("<option></option>",{value:"",text:x.CreditTypesLabel}).appendTo(D),t.each(x.CreditTypes,function(O,U){t("<option>",{value:U.Key,text:U.Value}).appendTo(D)}),x.HasOther&&x.OtherLabel){L.attr("for",h(T));var F=x.OtherLabel.trim();F.endsWith(":")||(F+=":"),L.text(F)}else L.remove();x.ID==c.val()?x.HasOther&&D.val()==x.OtherOptionId||y.hide():(v.hide(),y.hide())}else v.hide(),y.hide();c.on("change input",H),D.on("change input",H),H();function H(){var O=null;g.length==1?O=g[0]:g.length>1&&t.each(g,function(U,K){if(K.ID==c.val())return O=K,!1}),O&&O.HasCreditTypes?(v.show(),O.HasOther&&D.find("option:last-child").is(":selected")?y.show():y.hide()):(v.hide(),y.hide())}}function Z(){n.find(".controlerror-error").remove()}function I(g,x,E){var F=h(g),H=t('.controlerror-error[data-for="'+F+'"]');H.length==0&&(H=t('<div class="controlerror-error"><div class="controlerror-list"></div></div>').attr("data-for",F).insertAfter(g));var O=t('<div class="controlerror-message" role="alert"></div>');E?O.html(x):O.text(x),H.find(".controlerror-list").append(O)}W.click(function(){if(u.EnterClassroom){window.location.href="/nei/classroom";return}Z();var g=u.Products,x=null;if(g.length==1)x=g[0];else if(g.length>1){for(var E=0;E<g.length;E++)if(g[E].ID==c.val()){x=g[E];break}}else return;var F=null,H=!1,O=null;if(x!=null&&(x.HasCreditTypes&&x.CreditTypes.some(function(K){return K.Key==D.val()})&&(F=D.val(),H=x.HasOther&&x.CreditTypes[x.CreditTypes.length-1].Key==D.val()),x.HasOther&&F!=null&&H&&(O=T.val().trim())),!DRF.login.isLoggedIn){var U=JSON.stringify({c:s,p:x?x.ID:null,ct:F,ot:O});DRF.promptForLogin({redirectAfter:"?enroll="+encodeURIComponent(U),messageName:"enroll",freeAccountRequired:!0,membershipRequired:!1});return}x==null?I(c,"Please choose an enrollment option."):x.HasCreditTypes&&F==null?I(D,"Please choose an option."):x.HasOther&&H&&!O?I(T,"Please complete this field."):t.ajax({url:"/query/nei-course-enrollment-box.ashx",data:{id:s,a:"add-to-cart",url:window.location.href,productDropDown:c.val(),creditTypeDropDown:D.val(),otherTextBox:T.val()},dataType:"json",success:function(K){K.success&&(window.location.href=K.redirectTo)}})});var C=null;if("URLSearchParams"in window?C=new URLSearchParams(location.search).get("enroll"):DRF.queryArgs&&(C=DRF.queryArgs.enroll),C){var S=null;try{S=JSON.parse(C)}catch{S=null}S&&S.c==s&&(c.val(S.p),D.val(S.ct),T.val(S.ot),W.click())}}function r(a,u){w(a,u),u&&u.Visible&&t.each(u.Controls,function(p,o){t("<a></a>").attr({href:o.HRef}).text(o.InnerText).appendTo(a)})}function w(a,u){!u||!u.Visible?a.remove():(u.Text&&a.text(u.Text),u.CssClass&&a.addClass(u.CssClass))}function h(a){return a.id||(a.id=DRF.uniqueId("nei-course-enrollment-box-el")),a.id}},DRF.ready(function(e){e(".nei-course-enrollment-box").each(function(t,n){DRF.setupNeiCourseEnrollmentBox(n)})}),DRF.setupNeiVideoEnrollmentBox=function(e){var t=window.jQuery,n=t(e);if(n.attr("data-setup-nei-video-enrollment-box"))return;var s=parseInt(n.attr("data-nei-video-id"),10);if(isNaN(s)||s<1){l("VoD ID is out of range or not a number");return}n.attr("data-setup-nei-video-enrollment-box","1"),t.ajax({url:"/query/nei-video-enrollment-box.ashx?id="+s,dataType:"json",success:function(o){o.success?f(o.data):l(o.message||"Unexpected error")},error:function(o){var c=null;try{c=JSON.parse(o.responseText)}catch{c=null}c&&c.message&&l(c.message)}});function l(o){n.addClass("red-alert"),n.text("[Error: "+o+"]")}function f(o){n.addClass("EnrollmentBox EnrollmentBox-"+s+" vod-enrollbox respond");var c=t("<form></form>").appendTo(n).append('<div class="enroll-msg"><span class="EnrollMessage"></span></div>').append('<div class="ButtonContainer"></div>').append('<div class="WatchNowDiv"><button type="button" class="df-primary-button WatchNowButton">Watch Now</button></div>').append('<div class="ClassroomLink" id="ClassroomLink">Already purchased? <a href="/nei/classroom">Watch Now</a></div>');t('<div class="RentDiv rent-div"></div>').append('<button type="button" class="df-primary-button stream-msg RentButton"></button>').append('<p class="access-msg AccessPeriod"></p>').append('<span class="access-msg RentCredits"><em></em></span>').append('<div class="DropDownRentContainer"><select class="ProductRentDropDown ddContainer"></select></div>').appendTo(c.find(".ButtonContainer")),t('<div class="BuyDiv buy-div"></div>').append('<button type="button" class="df-primary-button stream-msg buy-button BuyButton"></button>').append('<p class="access-msg">Access anytime</p>').append('<span class="access-msg BuyCredits"></span>').append('<div class="access-msg">Not available for download</div>').append('<div class="DropDownBuyContainer"><select class="ProductBuyDropDown ddContainer"></select></div>').appendTo(c.find(".ButtonContainer")),n.find(".RentButton").html("Rent Now"),n.find(".AccessPeriod").text("Access period: "+o.AvailableFor),n.find(".RentCredits").toggle(!!o.canRentWithCredits).find("em").text("(also available for credits: "+o.displayRentCostWithCredit+")"),n.find(".BuyButton").html("Buy Now"),n.find(".BuyCredits").toggle(!!o.canBuyWithCredits).find("em").text("(also available for credits: "+o.displayBuyCostWithCredit+")"),h(n.find(".EnrollMessage"),o.EnrollMessage),h(n.find(".ButtonContainer"),o.ButtonContainer),h(n.find(".BuyButton"),o.BuyButton),h(n.find(".RentButton"),o.RentButton),h(n.find(".DropDownRentContainer"),o.DropDownRentContainer),h(n.find(".DropDownBuyContainer"),o.DropDownBuyContainer),a(n.find(".ProductRentDropDown"),o.ProductRentDropDown),a(n.find(".ProductBuyDropDown"),o.ProductBuyDropDown),h(n.find(".RentDiv"),o.RentDiv),h(n.find(".BuyDiv"),o.BuyDiv),h(n.find(".WatchNowDiv"),o.WatchNowDiv),h(n.find(".WatchNowButton"),o.WatchNowButton),h(n.find(".ClassroomLink"),o.ClassroomLink),n.find(".WatchNowButton").click(function(){m("watch-now",{})}),n.find(".RentButton").click(function(){n.find(".DropDownBuyContainer").hide(),o.canRentWithCredits&&o.canRentWithoutCredits?n.find(".DropDownRentContainer").show():o.canRentWithCredits?m("purchase",{purch:"rc"}):o.canRentWithoutCredits&&m("purchase",{purch:"rnc"})}),n.find(".BuyButton").click(function(){n.find(".DropDownRentContainer").hide(),o.canBuyWithCredits&&o.canBuyWithoutCredits?n.find(".DropDownBuyContainer").show():o.canBuyWithCredits?m("purchase",{purch:"bc"}):o.canBuyWithoutCredits&&m("purchase",{purch:"bnc"})}),n.find(".ProductRentDropDown").on("input change",function(){var y=n.find(".ProductRentDropDown");y.val()==o.productLinkWithCeus&&o.canRentWithCredits?m("purchase",{purch:"rc"}):y.val()==o.productLinkWithoutCeus&&o.canRentWithoutCredits?m("purchase",{purch:"rnc"}):w(y,"Please choose a purchase option.")}),n.find(".ProductBuyDropDown").on("input change",function(){var y=n.find(".ProductBuyDropDown");y.val()==o.productLinkBuyWithCeus&&o.canBuyWithCredits?m("purchase",{purch:"bc"}):y.val()==o.productLinkBuyWithoutCeus&&o.canBuyWithoutCredits?m("purchase",{purch:"bnc"}):w(y,"Please choose a purchase option.")});var v=null;
12if("URLSearchParams"in window?v=new URLSearchParams(location.search).get("purch"):DRF.queryArgs&&(v=DRF.queryArgs.purch),v){var D=null;try{D=JSON.parse(v)}catch{D=null}D&&D.v==s&&m("purchase",{purch:D.p},{replace:!0})}}function m(o,c,v){var D=!1;v&&(D=v.replace),c=t.extend({},c),c.page=window.location.href,t.ajax({url:"/query/nei-video-enrollment-box.ashx?id="+s+"&a="+encodeURIComponent(o),type:"POST",method:"POST",data:c,dataType:"json",success:function(y){if(y.success)y.redirectTo&&(D?window.location.replace(y.redirectTo):window.location.href=y.redirectTo);else var L=y.message||"Unexpected error"},error:function(y){var L=null;try{L=JSON.parse(y.responseText)}catch{L=null}if(L&&L.message)var T=L.message}})}function r(){n.find(".controlerror-error").remove()}function w(o,c,v){var D=u(o),y=t('.controlerror-error[data-for="'+D+'"]');y.length==0&&(y=t('<div class="controlerror-error"><div class="controlerror-list"></div></div>').attr("data-for",D).insertAfter(o));var L=t('<div class="controlerror-message" role="alert"></div>');v?L.html(c):L.text(c),y.find(".controlerror-list").append(L)}function h(o,c){!c||!c.Visible?o.remove():(c.Text&&o.text(c.Text),c.CssClass&&o.addClass(c.CssClass))}function a(o,c){!c||!c.Visible?o.remove():(c.CssClass&&o.addClass(c.CssClass),c.Items&&c.Items.length>0&&c.Items.forEach(function(v){t("<option>",{value:v.Value,text:v.Text}).appendTo(o)}))}function u(o){return o.id||(o.id=DRF.uniqueId("nei-video-enrollment-box-el")),o.id}function p(o){if(o){var c=document.createElement("div");return c.textContent=o,c.innerHTML}else return""}},DRF.ready(function(e){e(".nei-video-enrollment-box").each(function(t,n){DRF.setupNeiVideoEnrollmentBox(n)})}),(function(){window.DRF&&window.DRF.ready&&typeof window.DRF.ready=="function"?DRF.ready(e):document.readyState!="loading"?e():document.addEventListener("DOMContentLoaded",function(){e()});function e(){var t="drf-resubscribe-form-helped",n="hubspot-resubscribe-helper-email",s=new MutationObserver(function(){l(),f(),w()});s.observe(document.body,{subtree:!0,childList:!0}),l(),f();function l(){var p=document.querySelectorAll(".hbspt-form:not(."+t+")");Array.prototype.forEach.call(p,r)}function f(){var p=document.querySelectorAll(".hs-form-iframe:not(."+t+")");Array.prototype.forEach.call(p,m)}function m(p){if(!p.classList.contains(t)){var o=p.contentDocument.querySelector(".hbspt-form");if(o)p.classList.add(t),r(o),DRF&&DRF.hubspotIframeCssInject&&p.contentDocument.head.insertAdjacentHTML("beforeend",'<link href="'+DRF.hubspotIframeCssInject+'" rel="stylesheet">');else{setTimeout(function(){m(p)},1e3);return}}}function r(p){if(p.classList.contains(t))return;var o;if(p.matches("form")?o=p:o=p.querySelector("form"),!o){setTimeout(function(){r(p)},1e3);return}p.classList.add(t);var c={},v=null,D=null;if(a()&&(D=sessionStorage.getItem(n)),D){var y=o.querySelector("[name=email]");y.value=D,y.dispatchEvent(new Event("change")),sessionStorage.removeItem(n)}o.addEventListener("input",function(I){var C=o.querySelector("[name=email]").value.trim();if(C.indexOf("@")!=-1){var S;c.hasOwnProperty(C)?S=c[C]:c[C]=S={};var g=!S.denySubmit;Array.prototype.forEach.call(o.querySelectorAll("input[type=submit], button"),function(x){x.disabled=!g}),S.hasOwnProperty("fieldLink")?Z(S.fieldLink):(Z(null),oe(C,S))}}),o.addEventListener("submit",function(I){var C=o.querySelector("[name=email]").value.trim();if(C.indexOf("@")!=-1){var S;if(c.hasOwnProperty(C)?S=c[C]:c[C]=S={},S.submitting){S.submitting=!1;return}if(I.preventDefault(),I.stopImmediatePropagation(),S.denySubmit){Array.from(o.querySelectorAll("a.drf-hs-resubscribe-link")).forEach(function(g){h(g,!0)});return}dfajax({handler:"hubspot-resubscribe-helper",crossOrigin:"auto",method:"POST",action:"capture-submit",payload:{email:C,formId:o.getAttribute("data-form-id"),portalId:o.getAttribute("data-portal-id")},successCallback:function(g){S.denySubmit=g.denySubmit;var x=o.querySelector(".hs-submit .hs-button");if(g.denySubmit){x.ariaDisabled="true";var E=window.getComputedStyle(x),F=Number(E.opacity);F>.6&&(x.style.opacity="0.6"),x.style.cursor="default",x.style.backgroundColor=E.backgroundColor,x.style.color=E.color,Array.from(o.querySelectorAll("a.drf-hs-resubscribe-link")).forEac
12h(function(H){h(H,!0)})}else x.ariaDisabled="false",x.style.removeProperty("opacity"),x.style.removeProperty("cursor"),x.style.removeProperty("background-color"),x.style.removeProperty("color");g.allowSubmit?(S.submitting=!0,L(I.submitter)):g.askOptOut?V(C,g.optOutToken):g.sendToManageSubscriptions&&T(C,g.sendToManageSubscriptions)}})}},!0);function L(I){I||(I=o.querySelector("input[type=submit]")),I?I.click():o.submit()}function T(I,C){var S=C.url,g=C.messageHtml,x=DRF.showModal({messageHtml:g,buttons:[{text:"Manage Email Subscriptions",class:"df-primary-button",callback:function(){window.location.href=S}},{text:"Cancel",class:"df-outline-button"}]});x.dialog.style.maxWidth="700px",W(x)}function V(I,C){var S=DRF.showModal({messageHtml:["<p>You will not be able to receive the email to update your preferences because you have opted-out of too many subscription types.</p>","<p>If you click Continue, you will opt-out of everything.","Then you will be able to click a link to get an email and opt back in.</p>"].join(" "),buttons:[{text:"Continue",class:"df-primary-button",callback:function(){ie(I,C)}},{text:"Cancel",class:"df-outline-button"}]});S.dialog.style.maxWidth="700px",W(S)}function W(I){var C=I.dialog.querySelector(".drf-modal-message");C.querySelector("p").style.marginTop="0",C.querySelector("p").style.marginBottom="0",C.querySelector("p:not(:last-child)").style.marginBottom="1em"}function ie(I,C){dfajax({handler:"hubspot-resubscribe-helper",crossOrigin:"auto",method:"POST",action:"opt-out",payload:{email:I,optOutToken:C},successCallback:function(S){a()&&sessionStorage.setItem(n,I),window.location.reload()},errorCallback:function(S){var g=S.data;g&&g.message?DRF.showModal({message:g.message}):DRF.showModal({message:"An unexpected error has occurred."})}})}var oe=u(function I(C,S){I.xhrs||(I.xhrs={});var g=I.xhrs;g[C]||(g[C]=dfajax({handler:"hubspot-resubscribe-helper",crossOrigin:"auto",method:"POST",action:"get-email-field-link",payload:{email:C,formId:o.getAttribute("data-form-id"),portalId:o.getAttribute("data-portal-id")},successCallback:function(x){S.fieldLink=x.fieldLink;var E=o.querySelector("[name=email]");E.value==C&&Z(S.fieldLink)},finallyCallback:function(){delete g[C]}}))},500);function Z(I){var C=o.querySelector("[name=email]"),S=C.closest("div.input");if(I){var g=I.message,x=I.url,E=$('<ul class="no-list hs-error-msgs inputs-list drf-hs-email-field-link-container" style="display:block"><li><label><a class="drf-hs-email-field-link"></a></label></li></ul>');E.insertAfter(S);var F=E.find("a");F.attr("href",x).text(g)}else $(o).find(".drf-hs-email-field-link-container").remove()}}function w(){var p=document.querySelectorAll(".hbspt-form .hs-error-msgs a");p.forEach(function(o){var c=o.textContent;/\bopted out of email\b.*\bopt back in\b/.test(c)&&(o.classList.add("drf-hs-resubscribe-link"),o.getAttribute("href")||o.setAttribute("href","javascript:void(0)"),h(o))})}function h(p,o){if(!window.matchMedia("(prefers-reduced-motion)").matches){var c=window.getComputedStyle(p).getPropertyValue("display")=="inline";c&&(p.style.display="inline-block"),p.animate([{transform:"scale(1)",easing:"ease-in-out"},{transform:"scale(1.2)",easing:"ease-in-out"},{transform:"scale(1)",easing:"ease-in-out"},{transform:"scale(1.2)",easing:"ease-in-out"},{transform:"scale(1)",easing:"ease-in-out"}],1500).finished.then(function(){c&&document.activeElement!==p&&p.style.removeProperty("display")})}o&&p.focus({focusVisible:!0})}function a(){var p="modernizr";try{return sessionStorage.setItem(p,p),sessionStorage.removeItem(p),!0}catch{return!1}}function u(p,o,c){var v;return function(){var D=this,y=arguments,L=function(){v=null,c||p.apply(D,y)},T=c&&!v;clearTimeout(v),v=setTimeout(L,o),T&&p.apply(D,y)}}}})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.