https://www.missouriwestern.edu/wp-content/plugins/ax-social-stream/public/js/utils.min.js?ver=3.8.6
vendor: 23,528 bytes, lines 1-2
1!function(d,a,s){function l(t,e,i){var n=a.createElement(t);return e&&(n.id=tt+e),i&&(n.style.cssText=i),d(n)}function c(){return s.innerHeight?s.innerHeight:d(s).height()}function g(t,i){i!==Object(i)&&(i={}),this.cache={},this.el=t,this.value=function(t){var e;return void 0===this.cache[t]&&(void 0!==(e=d(this.el).attr("data-cbox-"+t))?this.cache[t]=e:void 0!==i[t]?this.cache[t]=i[t]:void 0!==Y[t]&&(this.cache[t]=Y[t])),this.cache[t]},this.get=function(t){var e=this.value(t);return d.isFunction(e)?e.call(this.el,this):e}}function h(t){var e=E.length,i=(z+t)%e;return i<0?e+i:i}function u(t,e){return Math.round((/%/.test(t)?("x"===e?I.width():c())/100:1)*parseInt(t,10))}function f(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function p(t,e){return t.get("retinaUrl")&&1<s.devicePixelRatio?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function m(t){"contains"in y[0]&&!y[0].contains(t.target)&&t.target!==x[0]&&(t.stopPropagation(),y.focus())}function w(t){w.str!==t&&(y.add(x).removeClass(w.str).addClass(t),w.str=t)}function v(t){d(a).trigger(t),st.triggerHandler(t)}function n(t){var e;if(!$){if(e=d(t).data(Z),function(t){z=0,t&&!1!==t&&"nofollow"!==t?(E=d("."+et).filter(function(){return new g(this,d.data(this,Z)).get("rel")===t}),-1===(z=E.index(O.el))&&(E=E.add(O.el),z=E.length-1)):E=d(O.el)}((O=new g(t,e)).get("rel")),!q){q=U=!0,w(O.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),M=l(lt,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),T.css({width:"",height:""}).append(M),_=C.height()+W.height()+T.outerHeight(!0)-T.height(),j=H.width()+k.width()+T.outerWidth(!0)-T.width(),D=M.outerHeight(!0),N=M.outerWidth(!0);var i=u(O.get("initialWidth"),"x"),n=u(O.get("initialHeight"),"y"),o=O.get("maxWidth"),h=O.get("maxHeight");O.w=Math.max((!1!==o?Math.min(i,u(o,"x")):i)-N-j,0),O.h=Math.max((!1!==h?Math.min(n,u(h,"y")):n)-D-_,0),M.css({width:"",height:O.h}),Q.position(),v(it),O.get("onOpen"),B.add(R).hide(),y.focus(),O.get("trapFocus")&&a.addEventListener&&(a.addEventListener("focus",m,!0),st.one(rt,function(){a.removeEventListener("focus",m,!0)})),O.get("returnFocus")&&st.one(rt,function(){d(O.el).focus()})}var r=parseFloat(O.get("opacity"));x.css({opacity:r==r?r:"",cursor:O.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),O.get("closeButton")?P.html(O.get("close")).appendTo(T):P.appendTo("<div/>"),function(){var t,e,i,n=Q.prep,o=++dt;if(A=!(U=!0),v(at),v(nt),O.get("onLoad"),O.h=O.get("height")?u(O.get("height"),"y")-D-_:O.get("innerHeight")&&u(O.get("innerHeight"),"y"),O.w=O.get("width")?u(O.get("width"),"x")-N-j:O.get("innerWidth")&&u(O.get("innerWidth"),"x"),O.mw=O.w,O.mh=O.h,O.get("maxWidth")&&(O.mw=u(O.get("maxWidth"),"x")-N-j,O.mw=O.w&&O.w<O.mw?O.w:O.mw),O.get("maxHeight")&&(O.mh=u(O.get("maxHeight"),"y")-D-_,O.mh=O.h&&O.h<O.mh?O.h:O.mh),t=O.get("href"),G=setTimeout(function(){F.show()},100),O.get("inline")){var h=d(t).eq(0);i=d("<div>").hide().insertBefore(h),st.one(at,function(){i.replaceWith(h)}),n(h)}else O.get("iframe")?n(" "):O.get("html")?n(O.get("html")):f(O,t)?(t=p(O,t),A=O.get("createImg"),d(A).addClass(tt+"Photo").bind("error."+tt,function(){n(l(lt,"Error").html(O.get("imgError")))}).one("load",function(){o===dt&&setTimeout(function(){var t;O.get("retinaImage")&&1<s.devicePixelRatio&&(A.height=A.height/s.devicePixelRatio,A.width=A.width/s.devicePixelRatio),O.get("scalePhotos")&&(e=function(){A.height-=A.height*t,A.width-=A.width*t},O.mw&&A.width>O.mw&&(t=(A.width-O.mw)/A.width,e()),O.mh&&A.height>O.mh&&(t=(A.height-O.mh)/A.height,e())),O.h&&(A.style.marginTop=Math.max(O.mh-A.height,0)/2+"px"),E[1]&&(O.get("loop")||E[z+1])&&(A.style.cursor="pointer",d(A).bind("click."+tt,function(){Q.next()})),A.style.width=A.width+"px",A.style.height=A.height+"px",n(A)},1)}),A.src=t):t&&L.load(t,O.get("data"),function(t,e){o===dt&&n("error"===e?l(lt,"Error").html(O.get("xhrError")):d(this).contents())})}()}}function o(){y||(J=!1,I=d(s),y=l(lt).attr({id:Z,class:!1===d.support.opacity?tt+"IE":"",role:"dialog",tabindex:"-1"}).hide(),x=l(lt,"Overlay").hide(),F=d([l(lt,"LoadingOverlay")[0],l(lt,"LoadingGraphic")[0]]),b=l(lt,"Wrapper"),T=l(lt,"Content").append(R=l(lt,"Title"),r=l(lt,"Current"),K=d('<button type="button"/>').attr({id:tt+"Previous"}),S=d('<button type="button"/>').attr({id:tt+"Next"}),t=d('<button type="button"/>').attr({id:tt+"Slideshow"}),F),P=d('<button type="button"/>').attr({id:tt+"Close"}),b.append(l(lt).append(l(lt,"TopLeft"),C=l(lt,"TopCenter"),l(lt,"TopRight")),l(lt,!1,"clear:left").append(H=l(lt,"MiddleLeft"),T,k=l(lt,"MiddleRight")),l(lt,!1,"clear:left").append(l(lt,"BottomLeft"),W=l(lt,"BottomCenter"),l(lt,"BottomRight"))).find("div div").css({float:"left"}),L=l(lt,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),B=S.add(K).add(r).add(t)),a.body&&!y.parent().length&&d(a.body).append(x,y.append(b,L))}var x,y,b,T,C,H,k,W,E,I,M,L,F,R,r,t,S,K,P,B,O,_,j,D,N,z,A,q,U,$,G,Q,J,e,i,V,X,Y={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 d(this).attr("href")},title:function(){return this.title},createImg:function(){var i=new Image,t=d(this).data("cbox-img-attrs");return"object"==typeof t&&d.each(t,function(t,e){i[t]=e}),i},createIframe:function(){var i=a.createElement("iframe"),t=d(this).data("cbox-iframe-attrs");return"object"==typeof t&&d.each(t,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Z="colorbox",tt="cbox",et=tt+"Element",it=tt+"_open",nt=tt+"_load",ot=tt+"_complete",ht=tt+"_cleanup",rt=tt+"_closed",at=tt+"_purge",st=d("<a/>"),lt="div",dt=0,ct={},gt=(V=tt+"Slideshow_",X="click."+tt,function(){e?O.get("slideshow")||(st.unbind(ht,wt),wt()):O.get("slideshow")&&E[1]&&(e=!0,st.one(ht,wt),O.get("slideshowAuto")?pt():mt(),t.show())});function ut(){clearTimeout(i)}function ft(){(O.get("loop")||E[z+1])&&(ut(),i=setTimeout(Q.next,O.get("slideshowSpeed")))}function pt(){t.html(O.get("slideshowStop")).unbind(X).one(X,mt),st.bind(ot,ft).bind(nt,ut),y.removeClass(V+"off").addClass(V+"on")}function mt(){ut(),st.unbind(ot,ft).unbind(nt,ut),t.html(O.get("slideshowStart")).unbind(X).one(X,function(){Q.next(),pt()}),y.removeClass(V+"on").addClass(V+"off")}function wt(){e=!1,t.hide(),ut(),st.unbind(ot,ft).unbind(nt,ut),y.removeClass(V+"off "+V+"on")}d[Z]||(d(o),(Q=d.fn[Z]=d[Z]=function(e,t){var i=this;return e=e||{},d.isFunction(i)&&(i=d("<a/>"),e.open=!0),i[0]&&(o(),function(){function t(t){1<t.which||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),n(this))}return!!y&&(J||(J=!0,S.click(function(){Q.next()}),K.click(function(){Q.prev()}),P.click(function(){Q.close()}),x.click(function(){O.get("overlayClose")&&Q.close()}),d(a).bind("keydown."+tt,function(t){var e=t.keyCode;q&&O.get("escKey")&&27===e&&(t.preventDefault(),Q.close()),q&&O.get("arrowKey")&&E[1]&&!t.altKey&&(37===e?(t.preventDefault(),K.click()):39===e&&(t.preventDefault(),S.click()))}),d.isFunction(d.fn.on)?d(a).on("click."+tt,"."+et,t):d("."+et).live("click."+tt,t)),!0)}()&&(t&&(e.onComplete=t),i.each(function(){var t=d.data(this,Z)||{};d.data(this,Z,d.extend(t,e))}).addClass(et),new g(i[0],e).get("open")&&n(i[0]))),i}).position=function(e,t){function i(){C[0].style.width=W[0].style.width=T[0].style.width=parseInt(y[0].style.width,10)-j+"px",T[0].style.height=H[0].style.height=k[0].style.height=parseInt(y[0].style.height,10)-_+"px"}var n,o,h,r=0,a=0,s=y.offset();if(I.unbind("resize."+tt),y.css({top:-9e4,left:-9e4}),o=I.scrollTop(),h=I.scrollLeft(),O.get("fixed")?(s.top-=o,s.left-=h,y.css({position:"fixed"})):(r=o,a=h,y.css({position:"absolute"})),a+=!1!==O.get("right")?Math.max(I.width()-O.w-N-j-u(O.get("right"),"x"),0):!1!==O.get("left")?u(O.get("left"),"x"):Math.round(Math.max(I.width()-O.w-N-j,0)/2),r+=!1!==O.get("bottom")?Math.max(c()-O.h-D-_-u(O.get("bottom"),"y"),0):!1!==O.get("top")?u(O.get("top"),"y"):Math.round(Math.max(c()-O.h-D-_,0)/2),y.css({top:s.top,left:s.left,visibility:"visible"}),b[0].style.width=b[0].style.height="9999px",n={width:O.w+N+j,height:O.h+D+_,top:r,left:a},e){var l=0;d.each(n,function(t){return n[t]!==ct[t]?void(l=e):void 0}),e=l}ct=n,e||y.css(n),y.dequeue().animate(n,{duration:e||0,complete:function(){i(),U=!1,b[0].style.width=O.w+N+j+"px",b[0].style.height=O.h+D+_+"px",O.get("reposition")&&setTimeout(function(){I.bind("resize."+tt,Q.position)},1),d.isFunction(t)&&t()},step:i})},Q.resize=function(t){var e;q&&((t=t||{}).width&&(O.w=u(t.width,"x")-N-j),t.innerWidth&&(O.w=u(t.innerWidth,"x")),M.css({width:O.w}),t.height&&(O.h=u(t.height,"y")-D-_),t.innerHeight&&(O.h=u(t.innerHeight,"y")),t.innerHeight||t.height||(e=M.scrollTop(),M.css({height:"auto"}),O.h=M.height()),M.css({height:O.h}),e&&M.scrollTop(e),Q.position("none"===O.get("transition")?0:O.get("speed")))},Q.prep=function(t){if(q){var e,o="none"===O.get("transition")?0:O.get("speed");M.remove(),(M=l(lt,"LoadedContent").append(t)).hide().appendTo(L.show()).css({width:(O.w=O.w||M.width(),O.w=O.mw&&O.mw<O.w?O.mw:O.w,O.w),overflow:O.get("scrolling")?"auto":"hidden"}).css({height:(O.h=O.h||M.height(),O.h=O.mh&&O.mh<O.h?O.mh:O.h,O.h)}).prependTo(T),L.hide(),d(A).css({float:"none"}),w(O.get("className")),e=function(){function t(){!1===d.support.opacity&&y[0].style.removeAttribute("filter")}var e,i,n=E.length;q&&(i=function(){clearTimeout(G),F.hide(),v(ot),O.get("onComplete")},R.html(O.get("title")).show(),M.show(),1<n?("string"==typeof O.get("current")&&r.html(O.get("current").replace("{current}",z+1).replace("{total}",n)).show(),S[O.get("loop")||z<n-1?"show":"hide"]().html(O.get("next")),K[O.get("loop")||z?"show":"hide"]().html(O.get("previous")),gt(),O.get("preloading")&&d.each([h(-1),h(1)],function(){var t=E[this],e=new g(t,d.data(t,Z)),i=e.get("href");i&&f(e,i)&&(i=p(e,i),a.createElement("img").src=i)})):B.hide(),O.get("iframe")?(e=O.get("createIframe"),O.get("scrolling")||(e.scrolling="no"),d(e).attr({src:O.get("href"),class:tt+"Iframe"}).one("load",i).appendTo(M),st.one(at,function(){e.src="//about:blank"}),O.get("fastIframe")&&d(e).trigger("load")):i(),"fade"===O.get("transition")?y.fadeTo(o,1,t):t())},"fade"===O.get("transition")?y.fadeTo(o,0,function(){Q.position(0,e)}):Q.position(o,e)}},Q.next=function(){!U&&E[1]&&(O.get("loop")||E[z+1])&&(z=h(1),n(E[z]))},Q.prev=function(){!U&&E[1]&&(O.get("loop")||z)&&(z=h(-1),n(E[z]))},Q.close=function(){q&&!$&&(q=!($=!0),v(ht),O.get("onCleanup"),I.unbind("."+tt),x.fadeTo(O.get("fadeOut")||0,0),y.stop().fadeTo(O.get("fadeOut")||0,0,function(){y.hide(),x.hide(),v(at),M.remove(),setTimeout(function(){$=!1,v(rt),O.get("onClosed")},1)}))},Q.remove=function(){y&&(y.stop(),d[Z].close(),y.stop(!1,!0).remove(),x.remove(),$=!1,y=null,d("."+et).removeData(Z).removeClass(et),d(a).unbind("click."+tt).unbind("keydown."+tt))},Q.element=function(){return d(O.el)},Q.settings=Y)}(jQuery,document,window); 2!function(d,a,s){var l,c,g,u,f,p,m,w,v,x,y,b,T,C,h,t,r,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,n,o={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 d(this).attr("href")},title:function(){return this.title},createImg:function(){var i=new Image,t=d(this).data("cbox-img-attrs");return"object"==typeof t&&d.each(t,function(t,e){i[t]=e}),i},createIframe:function(){var i=a.createElement("iframe"),t=d(this).data("cbox-iframe-attrs");return"object"==typeof t&&d.each(t,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},j="colorbox",D="cbox",N=D+"Element",z=D+"_open",A=D+"_load",q=D+"_complete",e=D+"_cleanup",U=D+"_closed",$=D+"_purge",G=d("<a/>"),Q="div",J=0,V={};function X(t,e,i){var n=a.createElement(t);return e&&(n.id=D+e),i&&(n.style.cssText=i),d(n)}function Y(){return s.innerHeight?s.innerHeight:d(s).height()}function Z(t,i){i!==Object(i)&&(i={}),this.cache={},this.el=t,this.value=function(t){var e;return void 0===this.cache[t]&&(void 0!==(e=d(this.el).attr("data-cbox-"+t))?this.cache[t]=e:void 0!==i[t]?this.cache[t]=i[t]:void 0!==o[t]&&(this.cache[t]=o[t])),this.cache[t]},this.get=function(t){var e=this.value(t);return d.isFunction(e)?e.call(this.el,this):e}}function tt(t){var e=v.length,i=(R+t)%e;return i<0?e+i:i}function et(t,e){return Math.round((/%/.test(t)?("x"===e?x.width():Y())/100:1)*parseInt(t,10))}function it(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function nt(t,e){return t.get("retinaUrl")&&1<s.devicePixelRatio?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function ot(t){"contains"in c[0]&&!c[0].contains(t.target)&&t.target!==l[0]&&(t.stopPropagation(),c.focus())}function ht(t){ht.str!==t&&(c.add(l).removeClass(ht.str).addClass(t),ht.str=t)}function rt(t){d(a).trigger(t),G.triggerHandler(t)}var i,at,st,lt,dt=(st=D+"Slideshow_",lt="click."+D,function(){i?E.get("slideshow")||(G.unbind(e,pt),pt()):E.get("slideshow")&&v[1]&&(i=!0,G.one(e,pt),E.get("slideshowAuto")?ut():ft(),t.show())});function ct(){clearTimeout(at)}function gt(){(E.get("loop")||v[R+1])&&(ct(),at=setTimeout(_.next,E.get("slideshowSpeed")))}function ut(){t.html(E.get("slideshowStop")).unbind(lt).one(lt,ft),G.bind(q,gt).bind(A,ct),c.removeClass(st+"off").addClass(st+"on")}function ft(){ct(),G.unbind(q,gt).unbind(A,ct),t.html(E.get("slideshowStart")).unbind(lt).one(lt,function(){_.next(),ut()}),c.removeClass(st+"on").addClass(st+"off")}function pt(){i=!1,t.hide(),ct(),G.unbind(q,gt).unbind(A,ct),c.removeClass(st+"off "+st+"on")}function mt(t){var e;if(!B){if(e=d(t).data(j),function(t){R=0,t&&!1!==t&&"nofollow"!==t?(v=d("."+N).filter(function(){return new Z(this,d.data(this,j)).get("rel")===t}),-1===(R=v.index(E.el))&&(v=v.add(E.el),R=v.length-1)):v=d(E.el)}((E=new Z(t,e)).get("rel")),!K){K=P=!0,ht(E.get("className")),c.css({visibility:"hidden",display:"block",opacity:""}),y=X(Q,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),u.css({width:"",height:""}).append(y),I=f.height()+w.height()+u.outerHeight(!0)-u.height(),M=p.width()+m.width()+u.outerWidth(!0)-u.width(),L=y.outerHeight(!0),F=y.outerWidth(!0);var i=et(E.get("initialWidth"),"x"),n=et(E.get("initialHeight"),"y"),o=E.get("maxWidth"),h=E.get("maxHeight");E.w=Math.max((!1!==o?Math.min(i,et(o,"x")):i)-F-M,0),E.h=Math.max((!1!==h?Math.min(n,et(h,"y")):n)-L-I,0),y.css({width:"",height:E.h}),_.position(),rt(z),E.get("onOpen"),W.add(C).hide(),c.focus(),E.get("trapFocus")&&a.addEventListener&&(a.addEventListener("focus",ot,!0),G.one(U,function(){a.removeEventListener("focus",ot,!0)})),E.get("returnFocus")&&G.one(U,function(){d(E.el).focus()})}var r=parseFloat(E.get("opacity"));l.css({opacity:r==r?r:"",cursor:E.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),E.get("closeButton")?k.html(E.get("close")).appendTo(u):k.appendTo("<div/>"),function(){var t,e,i,n=_.prep,o=++J;S=!(P=!0),rt($),rt(A),E.get("onLoad"),E.h=E.get("height")?et(E.get("height"),"y")-L-I:E.get("innerHeight")&&et(E.get("innerHeight"),"y"),E.w=E.get("width")?et(E.get("width"),"x")-F-M:E.get("innerWidth")&&et(E.get("innerWidth"),"x"),E.mw=E.w,E.mh=E.h,E.get("maxWidth")&&(E.mw=et(E.get("maxWidth"),"x")-F-M,E.mw=E.w&&E.w<E.mw?E.w:E.mw);E.get("maxHeight")&&(E.mh=et(E.get("maxHeight"),"y")-L-I,E.mh=E.h&&E.h<E.mh?E.h:E.mh);if(t=E.get("href"),O=setTimeout(function(){T.show()},100),E.get("inline")){var h=d(t).eq(0);i=d("<div>").hide().insertBefore(h),G.one($,function(){i.replaceWith(h)}),n(h)}else E.get("iframe")?n(" "):E.get("html")?n(E.get("html")):it(E,t)?(t=nt(E,t),S=E.get("createImg"),d(S).addClass(D+"Photo").bind("error."+D,function(){n(X(Q,"Error").html(E.get("imgError")))}).one("load",function(){o===J&&setTimeout(function(){var t;E.get("retinaImage")&&1<s.devicePixelRatio&&(S.height=S.height/s.devicePixelRatio,S.width=S.width/s.devicePixelRatio),E.get("scalePhotos")&&(e=function(){S.height-=S.height*t,S.width-=S.width*t},E.mw&&S.width>E.mw&&(t=(S.width-E.mw)/S.width,e()),E.mh&&S.height>E.mh&&(t=(S.height-E.mh)/S.height,e())),E.h&&(S.style.marginTop=Math.max(E.mh-S.height,0)/2+"px"),v[1]&&(E.get("loop")||v[R+1])&&(S.style.cursor="pointer",d(S).bind("click."+D,function(){_.next()})),S.style.width=S.width+"px",S.style.height=S.height+"px",n(S)},1)}),S.src=t):t&&b.load(t,E.get("data"),function(t,e){o===J&&n("error"===e?X(Q,"Error").html(E.get("xhrError")):d(this).contents())})}()}}function wt(){c||(n=!1,x=d(s),c=X(Q).attr({id:j,class:!1===d.support.opacity?D+"IE":"",role:"dialog",tabindex:"-1"}).hide(),l=X(Q,"Overlay").hide(),T=d([X(Q,"LoadingOverlay")[0],X(Q,"LoadingGraphic")[0]]),g=X(Q,"Wrapper"),u=X(Q,"Content").append(C=X(Q,"Title"),h=X(Q,"Current"),H=d('<button type="button"/>').attr({id:D+"Previous"}),r=d('<button type="button"/>').attr({id:D+"Next"}),t=d('<button type="button"/>').attr({id:D+"Slideshow"}),T),k=d('<button type="button"/>').attr({id:D+"Close"}),g.append(X(Q).append(X(Q,"TopLeft"),f=X(Q,"TopCenter"),X(Q,"TopRight")),X(Q,!1,"clear:left").append(p=X(Q,"MiddleLeft"),u,m=X(Q,"MiddleRight")),X(Q,!1,"clear:left").append(X(Q,"BottomLeft"),w=X(Q,"BottomCenter"),X(Q,"BottomRight"))).find("div div").css({float:"left"}),b=X(Q,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),W=r.add(H).add(h).add(t)),a.body&&!c.parent().length&&d(a.body).append(l,c.append(g,b))}d[j]||(d(wt),(_=d.fn[j]=d[j]=function(e,t){var i=this;return e=e||{},d.isFunction(i)&&(i=d("<a/>"),e.open=!0),i[0]&&(wt(),function(){function t(t){1<t.which||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),mt(this))}return!!c&&(n||(n=!0,r.click(function(){_.next()}),H.click(function(){_.prev()}),k.click(function(){_.close()}),l.click(function(){E.get("overlayClose")&&_.close()}),d(a).bind("keydown."+D,function(t){var e=t.keyCode;K&&E.get("escKey")&&27===e&&(t.preventDefault(),_.close()),K&&E.get("arrowKey")&&v[1]&&!t.altKey&&(37===e?(t.preventDefault(),H.click()):39===e&&(t.preventDefault(),r.click()))}),d.isFunction(d.fn.on)?d(a).on("click."+D,"."+N,t):d("."+N).live("click."+D,t)),!0)}()&&(t&&(e.onComplete=t),i.each(function(){var t=d.data(this,j)||{};d.data(this,j,d.extend(t,e))}).addClass(N),new Z(i[0],e).get("open")&&mt(i[0]))),i}).position=function(e,t){var i,n,o,h=0,r=0,a=c.offset();function s(){f[0].style.width=w[0].style.width=u[0].style.width=parseInt(c[0].style.width,10)-M+"px",u[0].style.height=p[0].style.height=m[0].style.height=parseInt(c[0].style.height,10)-I+"px"}if(x.unbind("resize."+D),c.css({top:-9e4,left:-9e4}),n=x.scrollTop(),o=x.scrollLeft(),E.get("fixed")?(a.top-=n,a.left-=o,c.css({position:"fixed"})):(h=n,r=o,c.css({position:"absolute"})),!1!==E.get("right")?r+=Math.max(x.width()-E.w-F-M-et(E.get("right"),"x"),0):!1!==E.get("left")?r+=et(E.get("left"),"x"):r+=Math.round(Math.max(x.width()-E.w-F-M,0)/2),!1!==E.get("bottom")?h+=Math.max(Y()-E.h-L-I-et(E.get("bottom"),"y"),0):!1!==E.get("top")?h+=et(E.get("top"),"y"):h+=Math.round(Math.max(Y()-E.h-L-I,0)/2),c.css({top:a.top,left:a.left,visibility:"visible"}),g[0].style.width=g[0].style.height="9999px",i={width:E.w+F+M,height:E.h+L+I,top:h,left:r},e){var l=0;d.each(i,function(t){i[t]===V[t]||(l=e)}),e=l}V=i,e||c.css(i),c.dequeue().animate(i,{duration:e||0,complete:function(){s(),P=!1,g[0].style.width=E.w+F+M+"px",g[0].style.height=E.h+L+I+"px",E.get("reposition")&&setTimeout(function(){x.bind("resize."+D,_.position)},1),d.isFunction(t)&&t()},step:s})},_.resize=function(t){var e;K&&((t=t||{}).width&&(E.w=et(t.width,"x")-F-M),t.innerWidth&&(E.w=et(t.innerWidth,"x")),y.css({width:E.w}),t.height&&(E.h=et(t.height,"y")-L-I),t.innerHeight&&(E.h=et(t.innerHeight,"y")),t.innerHeight||t.height||(e=y.scrollTop(),y.css({height:"auto"}),E.h=y.height()),y.css({height:E.h}),e&&y.scrollTop(e),_.position("none"===E.get("transition")?0:E.get("speed")))},_.prep=function(t){if(K){var e,o="none"===E.get("transition")?0:E.get("speed");y.remove(),(y=X(Q,"LoadedContent").append(t)).hide().appendTo(b.show()).css({width:(E.w=E.w||y.width(),E.w=E.mw&&E.mw<E.w?E.mw:E.w,E.w),overflow:E.get("scrolling")?"auto":"hidden"}).css({height:(E.h=E.h||y.height(),E.h=E.mh&&E.mh<E.h?E.mh:E.h,E.h)}).prependTo(u),b.hide(),d(S).css({float:"none"}),ht(E.get("className")),e=function(){var t,e,i=v.length;function n(){!1===d.support.opacity&&c[0].style.removeAttribute("filter")}K&&(e=function(){clearTimeout(O),T.hide(),rt(q),E.get("onComplete")},C.html(E.get("title")).show(),y.show(),1<i?("string"==typeof E.get("current")&&h.html(E.get("current").replace("{current}",R+1).replace("{total}",i)).show(),r[E.get("loop")||R<i-1?"show":"hide"]().html(E.get("next")),H[E.get("loop")||R?"show":"hide"]().html(E.get("previous")),dt(),E.get("preloading")&&d.each([tt(-1),tt(1)],function(){var t=v[this],e=new Z(t,d.data(t,j)),i=e.get("href");i&&it(e,i)&&(i=nt(e,i),a.createElement("img").src=i)})):W.hide(),E.get("iframe")?(t=E.get("createIframe"),E.get("scrolling")||(t.scrolling="no"),d(t).attr({src:E.get("href"),class:D+"Iframe"}).one("load",e).appendTo(y),G.one($,function(){t.src="//about:blank"}),E.get("fastIframe")&&d(t).trigger("load")):e(),"fade"===E.get("transition")?c.fadeTo(o,1,n):n())},"fade"===E.get("transition")?c.fadeTo(o,0,function(){_.position(0,e)}):_.position(o,e)}},_.next=function(){!P&&v[1]&&(E.get("loop")||v[R+1])&&(R=tt(1),mt(v[R]))},_.prev=function(){!P&&v[1]&&(E.get("loop")||R)&&(R=tt(-1),mt(v[R]))},_.close=function(){K&&!B&&(K=!(B=!0),rt(e),E.get("onCleanup"),x.unbind("."+D),l.fadeTo(E.get("fadeOut")||0,0),c.stop().fadeTo(E.get("fadeOut")||0,0,function(){c.hide(),l.hide(),rt($),y.remove(),setTimeout(function(){B=!1,rt(U),E.get("onClosed")},1)}))},_.remove=function(){c&&(c.stop(),d[j].close(),c.stop(!1,!0).remove(),l.remove(),B=!1,c=null,d("."+N).removeData(j).removeClass(N),d(a).unbind("click."+D).unbind("
2keydown."+D))},_.element=function(){return d(E.el)},_.settings=o)}(jQuery,document,window); 3!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e:e(jQuery)}(function(M){M.expander={version:"2.0.1",defaults:{slicePoint:100,sliceOn:null,preserveWords:!0,normalizeWhitespace:!0,showWordCount:!1,detailPrefix:" ",wordCountText:" ({{count}} words)",widow:4,expandText:"read more",expandPrefix:"… ",expandAfterSummary:!1,wordEnd:/(&(?:[^;]+;)?|[0-9a-zA-Z\u00C0-\u0100]+|[^\u0000-\u007F]+)$/,summaryClass:"summary",detailClass:"details",moreClass:"read-more",lessClass:"read-less",moreLinkClass:"more-link",lessLinkClass:"less-link",collapseTimer:0,expandEffect:"slideDown",expandSpeed:250,collapseEffect:"slideUp",collapseSpeed:200,userCollapse:!0,userCollapseText:"read less",userCollapsePrefix:" ",onSlice:null,beforeExpand:null,afterExpand:null,onCollapse:null,afterCollapse:null}},M.fn.expander=function(e){var a="init";"string"==typeof e&&(a=e,e={});var L,D=M.extend({},M.expander.defaults,e),I=/^<(?:area|br|col|embed|hr|img|input|link|meta|param).*>$/i,l=D.wordEnd,$=/<\/?(\w+)[^>]*>/g,A=/<(\w+)[^>]*>/g,W=/<\/(\w+)>/g,z=/(<\/([^>]+)>)\s*$/,F=/^(<[^>]+>)+.?/,H=/\s\s+/g,s={init:function(){this.each(function(){var e,a,l,s,n,t,r,i,o,d,c,p,f,u,m=[],x=[],h="",C={},v=this,y=M(this),g=M([]),w=M.extend({},D,y.data("expander")||M.meta&&y.data()||{}),E=!!y.find("."+w.detailClass).length,T=!!y.find("*").filter(function(){var e=M(this).css("display");return/^block|table|list/.test(e)}).length,S=(T?"div":"span")+"."+w.detailClass,b=w.moreClass+"",k=w.lessClass+"",P=w.expandSpeed||0,O=function(e){return D.normalizeWhitespace?M.trim(e||"").replace(H," "):e}(y.html()),j=O.slice(0,w.slicePoint);if(w.moreSelector="span."+b.split(" ").join("."),w.lessSelector="span."+k.split(" ").join("."),!M.data(this,"expanderInit")){for(M.data(this,"expanderInit",!0),M.data(this,"expander",w),M.each(["onSlice","beforeExpand","afterExpand","onCollapse","afterCollapse"],function(e,a){C[a]=M.isFunction(w[a])}),n=(j=U(j)).replace($,"").length;n<w.slicePoint;)"<"===(s=O.charAt(j.length))&&(s=O.slice(j.length).match(F)[0]),j+=s,n++;for(w.sliceOn&&(j=function(e){var a="ExpandMoreHere374216623",l=e.summaryText.replace(e.sliceOn,a),s=(l=M("<div>"+l+"</div>").text()).indexOf(a),n=e.summaryText.indexOf(e.sliceOn);-1!==s&&s<e.slicePoint&&(e.summaryText=e.allHtml.slice(0,n));return e}({sliceOn:w.sliceOn,slicePoint:w.slicePoint,allHtml:O,summaryText:j}).summaryText),t=(j=U(j,w.preserveWords&&O.slice(j.length).length)).match(A)||[],r=j.match(W)||[],l=[],M.each(t,function(e,a){I.test(a)||l.push(a)}),t=l,a=r.length,e=0;e<a;e++)r[e]=r[e].replace(W,"$1");if(M.each(t,function(e,a){var l=a.replace(A,"$1"),s=M.inArray(l,r);-1===s?(m.push(a),x.push("</"+l+">")):r.splice(s,1)}),x.reverse(),E)o=y.find(S).remove().html(),O=(j=y.html())+o,i="";else{if(o=O.slice(j.length),""===(d=M.trim(o.replace($,"")))||d.split(/\s+/).length<w.widow)return;i=x.pop()||"",j+=x.join(""),o=m.join("")+o}w.moreLabel=y.find(w.moreSelector).length?"":function(e,a){var l='<span class="'+e.moreClass+'">'+e.expandPrefix;e.showWordCount?e.wordCountText=e.wordCountText.replace(/\{\{count\}\}/,a.replace($,"").replace(/\&(?:amp|nbsp);/g,"").replace(/(?:^\s+|\s+$)/,"").match(/\w+/g).length):e.wordCountText="";return l+='<a href="#" class="'+e.moreLinkClass+'">'+e.expandText+e.wordCountText+"</a></span>"}(w,o),T?o=O:"&"===j.charAt(j.length-1)&&(h=/^[#\w\d\\]+;/.exec(o))&&(o=o.slice(h[0].length),j+=h[0]),j+=i,w.summary=j,w.details=o,w.lastCloseTag=i,C.onSlice&&(w=(l=w.onSlice.call(v,w))&&l.details?l:w),c=function(e,a){var l="span",s=e.summary,n=z.exec(s),t=n?n[2].toLowerCase():"";a?(l="div",n&&"a"!==t&&!e.expandAfterSummary?s=s.replace(z,e.moreLabel+"$1"):s+=e.moreLabel,s='<div class="'+e.summaryClass+'">'+s+"</div>"):s+=e.moreLabel;return[s,e.detailPrefix||"","<",l+' class="'+e.detailClass+'"',">",e.details,"</"+l+">"].join("")}(w,T),y.empty().append(c),f=y.find(S),u=y.find(w.moreSelector),"slideUp"===w.collapseEffect&&"slideDown"!==w.expandEffect||y.is(":hidden")?f.css({display:"none"}):f[w.collapseEffect](0),g=y.find("div."+w.summaryClass),p=function(e){e.preventDefault();var a=e.startExpanded?0:P;
3u.hide(),g.hide(),C.beforeExpand&&w.beforeExpand.call(v),f.stop(!1,!0)[w.expandEffect](a,function(){f.css({zoom:""}),C.afterExpand&&w.afterExpand.call(v),function(e,a,l){e.collapseTimer&&(L=setTimeout(function(){q(e,a),M.isFunction(e.onCollapse)&&e.onCollapse.call(l,!1)},e.collapseTimer))}(w,f,v)})},u.find("a").off("click.expander").on("click.expander",p),w.userCollapse&&!y.find(w.lessSelector).length&&y.find(S).append('<span class="'+w.lessClass+'">'+w.userCollapsePrefix+'<a href="#" class="'+w.lessLinkClass+'">'+w.userCollapseText+"</a></span>"),y.find(w.lessSelector+" a").off("click.expander").on("click.expander",function(e){e.preventDefault(),clearTimeout(L);var a=M(this).closest(S);q(w,a),C.onCollapse&&w.onCollapse.call(v,!0)}),w.startExpanded&&p({preventDefault:function(){},startExpanded:!0})}})},destroy:function(){this.each(function(){var e,a,l=M(this);l.data("expanderInit")&&(e=M.extend({},l.data("expander")||{},D),a=l.find("."+e.detailClass).contents(),l.removeData("expanderInit"),l.removeData("expander"),l.find(e.moreSelector).remove(),l.find("."+e.summaryClass).remove(),l.find("."+e.detailClass).after(a).remove(),l.find(e.lessSelector).remove())})}};function U(e,a){return e.lastIndexOf("<")>e.lastIndexOf(">")&&(e=e.slice(0,e.lastIndexOf("<"))),a&&(e=e.replace(l,"")),M.trim(e)}function q(e,a){a.stop(!0,!0)[e.collapseEffect](e.collapseSpeed,function(){a.prev("span."+e.moreClass).show().length||a.parent().children("div."+e.summaryClass).show().find("span."+e.moreClass).show(),e.afterCollapse&&e.afterCollapse.call(a)})}return s[a]&&s[a].call(this),this},M.fn.expander.defaults=M.expander.defaults}); 4!function(a,i,n,l){var c=a(i);a.fn.lazyload=function(e){var t,r=this,f={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:i,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};function o(){var t=0;r.each(function(){var e=a(this);if(!f.skip_invisible||e.is(":visible"))if(a.abovethetop(this,f)||a.leftofbegin(this,f));else if(a.belowthefold(this,f)||a.rightoffold(this,f)){if(++t>f.failure_limit)return!1}else e.trigger("appear"),t=0})}return o(),e&&(l!==e.failurelimit&&(e.failure_limit=e.failurelimit,delete e.failurelimit),l!==e.effectspeed&&(e.effect_speed=e.effectspeed,delete e.effectspeed),a.extend(f,e)),t=f.container===l||f.container===i?c:a(f.container),0===f.event.indexOf("scroll")&&t.bind(f.event,function(){return o()}),this.each(function(){var i=this,n=a(i);i.loaded=!1,n.is("img")?n.attr("src")!==l&&!1!==n.attr("src")||n.attr("src",f.placeholder):"none"!==n.css("background-image")&&!1!==n.css("background-image")||n.css("background-image","url('"+f.placeholder+"')"),n.one("appear",function(){if(!this.loaded){if(f.appear){var e=r.length;f.appear.call(i,e,f)}a("<img />").bind("load",function(){var e=n.attr("data-"+f.data_attribute);n.hide(),n.is("img")?n.attr("src",e):n.css("background-image","url('"+e+"')"),n[f.effect](f.effect_speed),i.loaded=!0;var t=a.grep(r,function(e){return!e.loaded});if(r=a(t),f.load){var o=r.length;f.load.call(i,o,f)}}).attr("src",n.attr("data-"+f.data_attribute))}}),0!==f.event.indexOf("scroll")&&n.bind(f.event,function(){i.loaded||n.trigger("appear")})}),c.bind("resize",function(){o()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&c.bind("pageshow",function(e){e.originalEvent&&e.originalEvent.persisted&&r.each(function(){a(this).trigger("appear")})}),a(n).ready(function(){o()}),this},a.belowthefold=function(e,t){return(t.container===l||t.container===i?(i.innerHeight?i.innerHeight:c.height())+c.scrollTop():a(t.container).offset().top+a(t.container).height())<=a(e).offset().top-t.threshold},a.rightoffold=function(e,t){return(t.container===l||t.container===i?c.width()+c.scrollLeft():a(t.container).offset().left+a(t.container).width())<=a(e).offset().left-t.threshold},a.abovethetop=function(e,t){return(t.container===l||t.container===i?c.scrollTop():a(t.container).offset().top)>=a(e).offset().top+t.threshold+a(e).height()},a.leftofbegin=function(e,t){return(t.container===l||t.container===i?c.scrollLeft():a(t.container).offset().left)>=a(e).offset().left+t.threshold+a(e).width()},a.inviewport=function(e,t){return!(a.rightoffold(e,t)||a.leftofbegin(e,t)||a.belowthefold(e,t)||a.abovethetop(e,t))},a.extend(a.expr[":"],{"below-the-fold":function(e){return a.belowthefold(e,{threshold:0})},"above-the-top":function(e){return!a.belowthefold(e,{threshold:0})},"right-of-screen":function(e){return a.rightoffold(e,{threshold:0})},"left-of-screen":function(e){return!a.rightoffold(e,{threshold:0})}
4,"in-viewport":function(e){return a.inviewport(e,{threshold:0})},"above-the-fold":function(e){return!a.belowthefold(e,{threshold:0})},"right-of-fold":function(e){return a.rightoffold(e,{threshold:0})},"left-of-fold":function(e){return!a.rightoffold(e,{threshold:0})}})}(jQuery,window,document); 5!function(s){s.fn.SbShowMore=function(o){var e=s.extend({},{btnText:"Show More",w768:3,w600:2,w480:2,w320:1},o),t=s(this).children(".sb-item");if(!t.length)return!1;var h=jQuery(window).width();if(s(".sb-item:hidden").length&&s(".sb-item:hidden").show(),s("#sb_show_more").length&&s("#sb_show_more").remove(),s(".sb-loadmore").length&&s(".sb-loadmore").show(),h<=768){var i;if(s(this).width()<=768&&(i=e.w768),s(this).width()<=600&&(i=e.w600),s(this).width()<=480&&(i=e.w480),s(this).width()<=320&&(i=e.w320),i=i||12,t.length<=i)return!1;t.hide(),t.each(function(o,e){if(i-1<o)return!1;s(this).show()}),s(".sb-loadmore").length&&s(".sb-loadmore").hide(),s(".sboard").after('<div id="sb_show_more" class="sb-loadshowmore"><p> '+e.btnText+" </p></div>")}s(document).on("click","#sb_show_more",function(){s(".sb-item").show(),s(this).remove(),s(".sb-loadmore").length&&s(".sb-loadmore").show(0,function(){s(window).scrollTop(s(window).scrollTop()+1)})})}}(jQuery);
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.