Watch the Rick Owens Menswear Show

By
',i='
'+i+"
"),e=i+t,this.Xa&&(e=(this.v?t:"")+'
'+(this.v?i:e)+"
"),this.ga.innerHTML=('
'+e+"
").replace(/class=\"/g,'class="'+z.z+"-").replace(/id=\"/g,'id="'+z.z+"-")},z.prototype.Bc=function(){this.h="dark"===this.style?{Sa:"#1d1f25",aa:"#282b32",ua:"#3a4147",Bb:"#4a5157",Oc:"#32353c",Fb:"0.4",cb:"#2a3137",Ba:"#fff",hb:"#9498a3",Yb:"#464851",Aa:"#ddd"}:{Sa:"#fff",aa:"#e7eaee",ua:"#eceff3",Bb:"#f5f5f5",Oc:"#e4ecf2",Fb:"1.0",cb:"#fafafa",Ba:"#5c6578",hb:"#8b949b",Yb:"#ced9e6",Aa:"#7c8598"};var t="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",e=t,i=t,o=z.K+2*z.Fa,n=z.M/1e3+"s";this.v&&(t="none");var r={};r["@media only screen and (max-width: "+(z.Ea+20-1)+"px)"]={"#overlay":{display:"none"}},t={".flipped":{transform:"rotateY(180deg)"},"#overlay":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",overflow:"auto","text-align":"center","z-index":"10000","font-family":'"Helvetica", "Arial", sans-serif',"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"#overlay.mini":{height:"0",overflow:"visible"},"#overlay a":{width:"initial",padding:"0","text-decoration":"none","text-transform":"none",color:"inherit"},"#bgwrapper":{position:"relative",width:"100%",height:"100%"},"#bg":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","min-width":4*this.Xc+"px","min-height":4*this.Wc+"px","background-color":"black",opacity:"0.0","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)",filter:"alpha(opacity=60)",transition:"opacity "+n},"#bg.visible":{opacity:z.la},".mini #bg":{width:"0",height:"0","min-width":"0"},"#flipcontainer":{perspective:"1000px",position:"absolute",width:"100%"},"#flipper":{position:"relative","transform-style":"preserve-3d",transition:"0.3s"},"#takeover":{position:"absolute",left:"50%",width:z.Y+"px","margin-left":Math.round(-z.Y/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:z.oa+"px",transition:"opacity "+n+", top "+n},"#takeover.visible":{opacity:"1.0",top:z.I+"px"},"#takeover.exiting":{opacity:"0.0",top:z.oa+"px"},"#thumbspacer":{height:z.Ga+"px"},"#thumbborder-wrapper":{position:"absolute",top:-z.Fa+"px",left:z.Y/2-z.Ga-z.Fa+"px",width:o+"px",height:o/2+"px",overflow:"hidden"},"#thumbborder":{position:"absolute",width:o+"px",height:o+"px","border-radius":o+"px","background-color":this.h.aa,opacity:"0.5"},"#thumbnail":{position:"absolute",top:"0px",left:z.Y/2-z.Ga+"px",width:z.K+"px",height:z.K+"px",overflow:"hidden","z-index":"100","border-radius":z.K+"px"},"#mini":{position:"absolute",right:"20px",top:z.I+"px",width:this.kd+"px",height:2*z.A+"px","margin-top":20-z.A+"px","backface-visibility":"hidden",opacity:"0.0",transform:"rotateX(90deg)",transition:"opacity 0.3s, transform 0.3s, right 0.3s"},"#mini.visible":{opacity:"1.0",transform:"rotateX(0deg)"},"#mini.exiting":{opacity:"0.0",right:"-150px"},"#mainbox":{"border-radius":"4px","box-shadow":t,"text-align":"center","background-color":this.h.Sa,"font-size":"14px",color:this.h.hb},"#mini #mainbox":{height:z.A+"px","margin-top":z.A+"px","border-radius":"3px",transition:"background-color "+n},"#mini-border":{height:z.A+6+"px",width:z.Ea+6+"px",position:"absolute",top:"-3px",left:"-3px","margin-top":z.A+"px","border-radius":"6px",opacity:"0.25","background-color":"#fff","z-index":"-1","box-shadow":i},"#mini-icon":{position:"relative",display:"inline-block",width:"75px",height:z.A+"px","border-radius":"3px 0 0 3px","background-color":this.h.aa,background:"linear-gradient(135deg, "+this.h.Bb+" 0%, "+this.h.aa+" 100%)",transition:"background-color "+n},"#mini:hover #mini-icon":{"background-color":this.h.cb},"#mini:hover #mainbox":{"background-color":this.h.cb},"#mini-icon-img":{position:"absolute","background-image":"url("+this.L+")",width:"48px",height:"48px",top:"20px",left:"12px"},"#content":{padding:"30px 20px 0px 20px"},"#mini-content":{"text-align":"left",height:z.A+"px",cursor:"pointer"},"#img":{width:"328px","margin-top":"30px","border-radius":"5px"},"#title":{"max-height":"600px",overflow:"hidden","word-wrap":"break-word",padding:"25px 0px 20px 0px","font-size":"19px","font-weight":"bold",color:this.h.Ba},"#body":{"max-height":"600px","margin-bottom":"25px",overflow:"hidden","word-wrap":"break-word","line-height":"21px","font-size":"15px","font-weight":"normal","text-align":"left"},"#mini #body":{display:"inline-block","max-width":"250px",margin:"0 0 0 30px",height:z.A+"px","font-size":"16px","letter-spacing":"0.8px",color:this.h.Ba},"#mini #body-text":{display:"table",height:z.A+"px"},"#mini #body-text div":{display:"table-cell","vertical-align":"middle"},"#tagline":{"margin-bottom":"15px","font-size":"10px","font-weight":"600","letter-spacing":"0.8px",color:"#ccd7e0","text-align":"left"},"#tagline a":{color:this.h.Yb,transition:"color "+n},"#tagline a:hover":{color:this.h.Aa},"#cancel":{position:"absolute",right:"0",width:"8px",height:"8px",padding:"10px","border-radius":"20px",margin:"12px 12px 0 0","box-sizing":"content-box",cursor:"pointer",transition:"background-color "+n},"#mini #cancel":{margin:"7px 7px 0 0"},"#cancel-icon":{width:"8px",height:"8px",overflow:"hidden","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/cancel-x.png)",opacity:this.h.Fb},"#cancel:hover":{"background-color":this.h.ua},"#button":{display:"block",height:"60px","line-height":"60px","text-align":"center","background-color":this.h.aa,"border-radius":"0 0 4px 4px",overflow:"hidden",cursor:"pointer",transition:"background-color "+n},"#button-close":{display:"inline-block",width:"9px",height:"60px","margin-right":"8px","vertical-align":"top","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/close-x-"+this.style+".png)","background-repeat":"no-repeat","background-position":"0px 25px"},"#button-play":{display:"inline-block",width:"30px",height:"60px","margin-left":"15px","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/play-"+this.style+"-small.png)","background-repeat":"no-repeat","background-position":"0px 15px"},"a#button-link":{display:"inline-block","vertical-align":"top","text-align":"center","font-size":"17px","font-weight":"bold",overflow:"hidden","word-wrap":"break-word",color:this.h.Ba,transition:"color "+n},"#button:hover":{"background-color":this.h.ua,color:this.h.Aa},"#button:hover a":{color:this.h.Aa},"#video-noflip":{position:"relative",top:2*-this.X+"px"},"#video-flip":{"backface-visibility":"hidden",transform:"rotateY(180deg)"},"#video":{position:"absolute",width:this.ka-1+"px",height:this.X+"px",top:z.I+"px","margin-top":"100px",left:"50%","margin-left":Math.round(-this.ka/2)+"px",overflow:"hidden","border-radius":"5px","box-shadow":e,transform:"translateZ(1px)",transition:"opacity "+n+", top "+n},"#video.exiting":{opacity:"0.0",top:this.X+"px"},"#video-holder":{position:"absolute",width:this.ka-1+"px",height:this.X+"px",overflow:"hidden","border-radius":"5px"},"#video-frame":{"margin-left":"-1px",width:this.ka+"px"},"#video-controls":{opacity:"0",transition:"opacity 0.5s"},"#video:hover #video-controls":{opacity:"1.0"},"#video .video-progress-el":{position:"absolute",bottom:"0",height:"25px","border-radius":"0 0 0 5px"},"#video-progress":{width:"90%"},"#video-progress-total":{width:"100%","background-color":this.h.Sa,opacity:"0.7"},"#video-elapsed":{width:"0","background-color":"#6cb6f5",opacity:"0.9"},"#video #video-time":{width:"10%",right:"0","font-size":"11px","line-height":"25px",color:this.h.hb,"background-color":"#666","border-radius":"0 0 5px 0"}},this.O("ie",8)&&O.extend(t,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}}),this.O("ie",7)&&O.extend(t,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.h.ua},"#mini #body-text":{padding:"20px"},"#mini #mini-icon":{display:"none"}});var a,e="backface-visibility,border-radius,box-shadow,opacity,perspective,transform,transform-style,transition".split(","),i=["khtml","moz","ms","o","webkit"];for(a in t)for(o=0;o(D.__SV||0)?I.ca("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(O.a(D._i,function(t){t&&O.isArray(t)&&(q[t[t.length-1]]=c.apply(this,t)); }),a(),D.init(),O.a(q,function(t){t.sa()}),r())}()}()}()}!function(t,e){if(!e.__SV){var i=window;try{var n,r,a,s=i.location,c=s.hash;n=function(t,e){return(r=t.match(RegExp(e+"=([^&]*)")))?r[1]:null},c&&n(c,"state")&&(a=JSON.parse(decodeURIComponent(n(c,"state"))),"mpeditor"===a.action&&(i.sessionStorage.setItem("_mpcehash",c),history.replaceState(a.desiredHash||"",t.title,s.pathname+s.search)))}catch(p){}var d,u;window.mixpanel=e,e._i=[],e.init=function(t,i,o){function n(t,e){var i=e.split(".");2==i.length&&(t=t[i[0]],e=i[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}var r=e;for("undefined"!=typeof o?r=e[o]=[]:o="mixpanel",r.people=r.people||[],r.toString=function(t){var e="mixpanel";return"mixpanel"!==o&&(e+="."+o),t||(e+=" (stub)"),e},r.people.toString=function(){return r.toString(1)+".people (stub)"},d="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" "),u=0;u5?void 0:"Your password must contain at least 6 characters, including at least 1 number.":"Please enter a password."},confirmNewP:function(e){return e?o.querySelector(f("newP")).value!==e?"The confirm password field does not match the new password.":void 0:"Please confirm your password."}};t.preventDefault(),i(o),d(o,s,a)&&e.resetPassword(s,function(e){p(r),e?l(o.querySelector('[type="submit"]:last-of-type'),e):y(r,z)})},nymLogIn:function(t){var r=this.el,o=t.target,s=n.formValuesToObject(o),c={id:b("Please enter a username or password."),password:b("Please enter a password.")};t.preventDefault(),i(o),d(o,s,c)&&(v(r),e.nymAuth(s,function(e){var t,n;if(p(r),e){switch(t=a.findKey(e)){case"id":n="This username or email is not registered. Please try another or register.";break;case"password":n="Incorrect password.";break;default:n="Request failed, please try again"}l(o.querySelector(m(f(t))),n)}}))},nymRegister:function(t){var r=this.el,o=t.target,s=n.formValuesToObject(o),a={termsPrivacy:b("Please agree to the Terms of Service and Privacy Policy to register."),gender:b("Please select a gender."),email:function(e){if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return"Please enter a valid email address."},username:function(e){return e?/^[a-zA-Z0-9\.]+$/.test(e)?void 0:"Please enter a username that only consists of alphanumeric characters or periods.":"Please enter a username."},password:function(e){return e?/\d/.test(e)&&/[a-zA-Z]/.test(e)&&e.length>5?void 0:"Your password must contain at least 6 characters, including at least 1 number.":"Please enter a password."}};t.preventDefault(),i(o),d(o,s,a)&&(v(r),e.register(s,function(e,t){var n,a;p(r),e?(n=e.email?"email":"submit",a=e.email||e.form||"Error, please try again",l(o.querySelector(m(f(n))),a)):t&&(document.querySelector("."+N+" .email").innerHTML=s.email,y(r,N))}))},checkUsername:function(t){var r=t.target,n="This username already exists. Please choose another.";g(e.checkUsername,r,n)},checkEmail:function(t){var r=t.target,n="Your email is associated with a registered account. Please log in.";g(e.checkUserEmail,r,n)},fbLogIn:a.throttle(function(){e.trigger("open:facebook-auth")},2e3,{trailing:!1}),linkFbToNym:function(t){var r=this.el,o=t.target;t.preventDefault(),i(o),v(r),e.linkFbNymUser(n.formValuesToObject(o))},subscribeToNewsletters:function(r){var o=this.el,s=r.target,a=0!==window.location.hostname.indexOf("qa.");r.preventDefault(),i(s),v(o),t.send((a?"http://qa.nymag.com":"http://nymag.com")+"/newsletter/subscribe/new/?"+n.formValuesToString(s),function(t){p(o),t?l(s.querySelector('[type="submit"]:last-of-type'),"Error, please try again."):e.trigger("close")})}},D}]);"use strict";DS.controller("sailthru-personalization-pixel",[function(){function t(){function t(){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="http://ak.sail-horizon.com/horizon/v1.js",t.onload=function(){Sailthru.setup({domain:n,useStoredTags:!1})},e.appendChild(t)}var e=document.querySelector(".sailthru-personalization-pixel"),n=e.getAttribute("data-horizon");t()}return t}]);"use strict";function getElementsVerticalOverlap(e,t){var n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),o=!(n.top>a.bottom||n.righta.right);return o?a.bottom-n.top:0}function getElementsOverlapAmount(e,t){var n,a=[];return _.forEach(t,function(t){n=getElementsVerticalOverlap(e,t),a.push(n)}),_.max(a)}function appendSectionToDfpAds(){var e=document.querySelector("meta[property='og:site_name']"),t=document.querySelector("article[data-content-channel]"),n=document.querySelectorAll('[data-name^="/4088/"]');if(e&&(e=e.content),t&&(t=t.getAttribute("data-content-channel").toLowerCase()),"The Cut"===e&&t){switch(t){case"beauty":case"fashion":case"shopping":break;case"celebrity":t="fame";break;default:t="love-and-war"}_.forEach(n,function(e){e.setAttribute("data-name",e.getAttribute("data-name")+"/"+t)})}}function injectGoogleScripts(){var e=document.createElement("script"),t=document.createElement("script"),n=document.createDocumentFragment();e.src="//www.googletagservices.com/tag/js/gpt.js",e.async="async",t.src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",t.async="async",n.appendChild(e),n.appendChild(t),document.getElementsByTagName("body")[0].appendChild(n)}var flaggedComponentsOnPage=function(){var e,t=['.article-sidebar[data-width="large"]'],n=document.querySelector(".article-content"),a=[];return n&&_.forEach(t,function(t){e=n.querySelectorAll(t),_.forEach(e,function(e){a.push(e)})}),a}();appendSectionToDfpAds(),injectGoogleScripts(),DS.controller("ad",["adService","$visibility",function(e,t){var n=function(n){var a,o,r,c=e.create(n),i=new t.Visible(n,{preloadThreshhold:200});i.preload&&t.isElementNotHidden(n)&&e.load(c),i.on("preload",function(){!c.slot&&t.isElementNotHidden(n)&&(window.innerWidth>=1024&&n.parentElement.classList.contains("ad-repeat")&&flaggedComponentsOnPage.length&&(a=getElementsOverlapAmount(n,flaggedComponentsOnPage),o=parseInt(n.parentElement.getAttribute("data-gap")),r=30,n.style.marginTop=o+r+a+"px"),e.load(c))}),this.adData=c};return n}]);"use strict";DS.controller("ad-repeat",["$module","adService","dom","_",function(t,e,i,n){function o(t){var e,o,a,r,d,l,s,h,g,p=i.getPos(t);return!!p&&(e=0,o=0,g={marginTop:0,height:0,heightFilledWithAds:0},r=t.getAttribute("data-top-constraint"),a=n.head(document.querySelectorAll("."+r)),d=i.getPos(a),d&&(e=d.top,o=d.bottom),s=t.getAttribute("data-bottom-constraint"),l=n.last(document.querySelectorAll("."+s)),l&&(h=i.getPos(l)),h&&(o=h.bottom),!(p.top>o)&&(p.topl){for(n=document.createDocumentFragment(),o=Math.floor(h.height/(l+s)),h.heightFilledWithAds=o*(l+s),a=g.querySelectorAll(".ad").length;a=n&&(e=i,a(l,{gap:n,adHeight:d,dimensions:e,parentContainer:t}))}),document.addEventListener("nym.refreshAdRepeat",function(){l&&(i.clearChildren(t),e=o(t),a(l,{gap:n,adHeight:d,dimensions:e,parentContainer:t}))}))}return r}]);"use strict";DS.controller("taboola",["$document","$window",function(t,a){function e(e){a._taboola=a._taboola||[],_taboola.push({article:"auto"}),function(t,a,e){t.async=1,t.src=e,a.parentNode.insertBefore(t,a)}(t.createElement("script"),t.getElementsByTagName("script")[0],"//cdn.taboola.com/libtrc/"+e.getAttribute("data-taboolaId")+"/loader.js"),a.innerWidth>=600?_taboola.push({mode:"thumbnails-a",container:"taboola-below-article-thumbnails",placement:"Below Article Thumbnails",target_type:"mix"}):_taboola.push({mode:"thumbnails-e",container:"taboola-mobile-below-article-thumbnails",placement:"Mobile Below Article Thumbnails",target_type:"mix"}),_taboola.push({flush:!0})}return e}]);!function e(t,n,r){function i(a,l){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!l&&c)return c(a,!0);if(o)return o(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return i(n?n:e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;aCommenting Guidelines'),r.insertAdjacentHTML("beforeend",'Report Problem'),t.clearInterval(n))},100)}function f(t,n){var r=t.querySelector('.fyre-comment-article[data-message-id="'+n+'"] .fyre-comment-like-count'),i=r&&r.textContent,o=parseInt(i,10)||0,a=e.createElement("span"),l="You ";o>0&&(l+="and "+o.toString()+" other"+(o>1?"s":"")+" "),l+="like this.",a.className="lf-custom-comment-like-count",a.textContent=l,r.parentNode.appendChild(a)}function m(e){e.classList.add("show-comment-editor")}function v(e){var t=e.querySelector(".fyre-comment-count span"),n=t&&t.textContent,r=parseInt(n,10)||0;return r}function g(e,t){var n=e.querySelector(".fyre-stream-more-container .fyre-text");n&&(n.textContent=t)}function y(t,n){var r,i;n<=1&&(r=t.querySelector("div.fyre-stream-stats"),i=e.createElement("div"),i.className="fyre-add-a-comment",i.textContent="Add a Comment",i.addEventListener("click",function(){m(t)},!1),r.appendChild(i))}function h(e){var t=e.querySelector(".fyre-stream-content"),n=e.getAttribute("data-author-tag-link");t&&n&&t.addEventListener("click",function(e){"fyre-comment-author-tag"===e.target.className&&window.open(n,"_blank")},!1)}function p(e){var t=v(e);d(e),y(e,t),g(e,"Show More"),h(e)}function w(e){var t=v(e);t||e.classList.add("fyre-no-comments")}function b(e){var t,n,r={childList:!0};n=new MutationObserver(function(){t=new Event("nym.heightChange"),document.dispatchEvent(t)}),n.observe(e,r)}function I(e,n,r){var o=r.siteId;t.Livefyre.require(["fyre.conv#3","auth"],function(t,l){l.delegate({login:function(e){u({auth:l,isInteractive:!0,livefyreNetwork:n.network,livefyreId:o},e)},logout:function(e){a.unset(c(o)),i.isLoggedIn()&&i.logOut(),e(null)}}),new t(n,[r],function(t){t.on("commentLiked",function(t){f(e,t.targetId)}),t.on("initialRenderComplete",function(){var t=e.querySelector(".fyre-stream-content");p(e),w(e),b(t)}),t.on("showMore",function(){m(e)}),u({auth:l,isInteractive:!1,livefyreNetwork:n.network,livefyreId:o,articleId:r.articleId})})})}function k(e,t){o.sendJsonReceiveJson({method:"POST",url:"/livefyre/metadata/sign",dataType:"json",data:JSON.stringify(e)},function(e,n){var r=n&&n.token;e?console.warn("Error with Livefyre metadata sign."):t(r)})}function C(t){var r=e.createElement("SCRIPT");n.merge(r,t),e.body.appendChild(r)}function L(e,r){return function(){var i;e()?r():(i=n.throttle(function(){e()&&(r(),t.removeEventListener("scroll",i,!1))},400),t.addEventListener("scroll",i,!1))}}function S(n,r){var i=n&&n.getBoundingClientRect(),o=i&&i.bottom||0,a=t.innerHeight,l=parseInt(r,10)||100,c=a+l,s=o-c;return function(){return(e.documentElement.scrollTop||e.body.scrollTop)>s}}function E(e,t){return function(){var n=t.canonicalUrl,r=t.livefyreId,i=t.articleTitle,o=t.articleId,a={postAsButton:"Post Comment",signIn:"Sign in to comment",postEditButton:"Update",commentCountLabel:"%s Comment",commentCountLabelPlural:"%s Comments",featuredCommentsTag:"Editors' Pick",moderator:"Staff",follow:"+ Follow This Conversation",unfollow:"– Unfollow This Conversation",showMore:"Leave a Comment"},l={network:t.livefyreNetwork},c={url:n,articleId:o,type:"livecomments",title:i,siteId:r};k(c,function(n){var i={siteId:r,articleId:o,el:"livefyre",collectionMeta:n,disableAvatars:!t.avatars,initialNumVisible:t.initialVisible,strings:a};I(e,l,i)})}}function N(e){n.each(e,function(e,t){if(null===e||n.isUndefined(e)||""===e)throw new Error("Missing "+t+" for Livefyre.")})}function T(e){var t={triggerDistance:e.getAttribute("data-trigger-distance"),livefyreNetwork:e.getAttribute("data-livefyre-network"),livefyreId:e.getAttribute("data-livefyre-id"),articleTitle:document.title,canonicalUrl:n.get(document.querySelector('link[rel="canonical"]'),"href"),avatars:"yes"===e.getAttribute("data-avatars"),initialVisible:parseInt(e.getAttribute("data-initial-visible"),10)||1};return t.canonicalUrl=t.canonicalUrl.replace("localhost.dev.nymag.biz:3001","nymag.com").replace("localhost.dev.nymag.biz","nymag.com").replace("qa.nymag.com","nymag.com"),t.articleId=r(t.canonicalUrl),N(t),t}return function(e){var t=T(e),n=E(e,t),r=S(e,t.triggerDistance),i=L(r,n);C({src:"http://cdn.livefyre.com/Livefyre.js",onload:i})}}])},{}]},{},[1]);"use strict";DS.controller("ooyala-player",["$visibility","$ooyala",function(e,t){function o(o){function r(){var e="oo-control-bar-show",t="oo-control-bar-hidden",r=o.querySelector(".oo-player-skin-plugins");o.addEventListener("mouseenter",function(o){a.classList.add(e),a.classList.remove(t)}),o.addEventListener("mouseleave",function(o){var i=r.className.indexOf("oo-showing")>-1;i&&(a.classList.remove(e),a.classList.add(t))})}var a,i=o.getAttribute("data-element-id"),n=o.getAttribute("data-uri"),s=o.getAttribute("data-video-id"),d=o.getAttribute("data-site-path")||"",l=o.getAttribute("data-ad-unit"),u=!("false"===o.getAttribute("data-pre-roll")),c="//"+window.location.host+d+"/media/components/ooyala-player/iframe.html",p=window.self!==window.top,m=!!document.querySelector(".lede-video"),g=o.parentNode.classList.contains("video-promo-for-articles-player"),y=e.getViewportWidth(),w=y<750?"oo-video-mobile-play":y<1024?"oo-video-tablet-play":g?"oo-video-promo-desktop-article":"oo-video-desktop-play",b="%252C",h=(document.querySelector("meta[name=keywords]")||{content:""}).content.replace(/, /g,b).replace(/ /g,"-"),v=!1,f={pcode:o.getAttribute("data-pcode"),playerBrandingId:o.getAttribute("data-player-branding-id"),debug:!1,replayAds:!1,showNonLinearCloseButton:!1,showLinearAdSkipButton:!1,autoplay:"true"===o.getAttribute("data-auto-play")||m,initialVolume:m?.3:.5,docUrl:p&&document.referrer?document.referrer:null,skin:{config:"//player.ooyala.com/static/v4/stable/4.10.4/skin-plugin/skin.json",inline:{endScreen:{screenToShowOnEnd:"sponsored"===o.getAttribute("data-video-type")?"default":"discovery"},discoveryScreen:{showCountDownTimerOnEndScreen:!0,countDownTime:o.getAttribute("data-countdown-time")||"5"},pauseScreen:{screenToShowOnPause:o.getAttribute("data-pause-screen")||"discovery",showDescription:"true"===o.getAttribute("data-pause-screen-description")},startScreen:{showTitle:"true"===o.getAttribute("data-start-screen-title"),showDescription:!1},shareScreen:{embed:{source:''}},upNext:{showUpNext:"true"===o.getAttribute("data-up-next")},adScreen:{showAdMarquee:!0,showAdCountDown:!0,showControlBar:!0}}},"google-ima-ads-manager":u?{all_ads:[{position_type:"t",position:0,tag_url:"https://pubads.g.doubleclick.net/gampad/ads?sz=448x336&iu="+l+"&cust_params=kw%3Dabp%252C"+h+(h&&w?b:"")+w+"&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=0&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]"}],useGoogleAdUI:!0,showAdControls:!0}:{all_ads:[]}},A=new e.Visible(o,{preloadThreshhold:1e3});A.preload&&e.isElementNotHidden(o)?t.addVideo(i,s,f,d):A.on("preload",function(){e.isElementNotHidden(o)&&t.addVideo(i,s,f,d)}),t.on("ooyala-event:started-playing",function(e){var t=i===e;t&&(a=o.querySelector(".oo-control-bar")),a&&!v&&(a.style.height=0,r(),v=!0)})}return o}]);"use strict";DS.controller("article",["dom",function(o){var s;return s=function(o){this.el=o},s.prototype={events:{".sponsored-button mouseover":"showMessage",".sponsored-button mouseout":"hideMessage"},showMessage:function(){o.find(".sponsored-info").classList.add("on")},hideMessage:function(){o.find(".sponsored-info").classList.remove("on")}},s}]);"use strict";DS.controller("clay-share",["_","$popup","$visibility",function(e,t,a){function r(e){this.el=e}return r.prototype={events:{click:"shareTap","a click":"shareClick"},shareTap:function(){var e,t,r=this.el;a.getViewportWidth()<600&&(e=document.createElement("div"),t=r.cloneNode(!0),e.classList.add("clay-share-overlay-wrapper"),t.classList.remove("vertical"),t.classList.add("clay-share-overlay"),e.appendChild(t),document.body.appendChild(e),e.addEventListener("click",function(){var e=document.querySelector(".clay-share-overlay-wrapper");document.body.removeChild(e)}))},shareClick:function(e){var r=e.currentTarget,c=r.getAttribute("href"),i=r.getAttribute("data-handle"),l=t.getPopupClass(r.classList);a.getViewportWidth()>=600&&l&&(e.preventDefault(),t.popWindow(l,i,c))}},r}]),DS.get("clay-share",document.querySelector('[data-uri*="/components/clay-share"]'));"use strict";DS.controller("tags",["_",function(e){function t(e){this.el=e}return t.prototype={events:{"a.more click":"showAll"},showAll:function(t){var o=t.target,r=this.el.querySelectorAll("a.hidden");e.forEach(r,function(e){e.classList.remove("hidden")}),o.parentNode.removeChild(o),t.preventDefault()}},t}]);"use strict";DS.controller("share-button",["$visibility","$popup",function(t,e){function r(t){this.el=t}return r.prototype={events:{click:"clickHandler"},clickHandler:function(r){var i=r.currentTarget,n=i.querySelector("a"),c=n.getAttribute("href"),l=n.getAttribute("data-handle"),o=e.getPopupClass(i.classList);t.getViewportWidth()>=600&&o&&(r.preventDefault(),e.popWindow(o,l,c))}},r}]);"use strict";DS.controller("package-navigation",["_","$window",function(t,i){function e(e){var n,o,a,r,s,c,l=0,u=3,m=e.querySelector("ul");m&&(n=e.querySelector("li").offsetWidth,o=n*u,a=i.getComputedStyle(m),r=parseInt(a.width),s=0,c=n*m.childElementCount-r,this.el=e,this.increment=o,this.articles=m,this.minimumPosition=s,this.maximumPosition=c,Object.defineProperty(this,"position",{get:function(){return l},set:function(t){l=t,e.querySelector(".package-navigation-previous").disabled=l<=s,e.querySelector(".package-navigation-next").disabled=l>=c}}),i.addEventListener("scroll",t.throttle(function(){var t=e.parentNode.getBoundingClientRect().top<=0?"add":"remove";e.classList[t]("package-navigation-fixed")},33)))}return e.prototype={events:{".package-navigation-button click":"scroll"},scroll:function(t){var i=this.position,e=t.target.getAttribute("data-direction"),n=this.increment,o=this.minimumPosition,a=this.maximumPosition;i+=n*e,i=Math.max(i,o),i=Math.min(i,a),this.articles.setAttribute("style","transform: translateX("+-i+"px)"),this.position=i}},e}]);"use strict";DS.controller("ad-recirc",["dom","$window","_","$visibility",function(t,e,i,r){function s(t){var e=t.getAttribute("data-link-text"),i=t.getAttribute("href"),r={};return r.url=i,e?r.title=e:t.textContent?r.title=t.textContent.trim():r.title=i,r}function n(i){var r,n,l,h;if(i){if(r=t.find("."+i),n=r&&r.querySelectorAll("a"),l=n&&n[0],h=n&&n[1],l&&l.getAttribute("href")!==e.location.href)return s(l);if(h)return s(h)}return null}function l(t,e){t.setAttribute("href",e.url),t.innerHTML=e.title}function h(e,i){var r=e.parentNode,s=t.find(".ad-recirc-buffer");i&&(r.classList.remove("fixed"),s.style.height=0)}function o(t){var e=t.parentNode,i=e.parentNode,r=document.createElement("div");i.insertBefore(r,e),r.classList.add("ad-recirc-buffer"),r.style.height=0}function a(){this.timer&&(this.disableRecirc?(h(this.el,!0),e.removeEventListener("scroll",this.scrollHandler)):(this.showLink(),this.adRecirShown=!0))}function d(r){var s=r.getAttribute("data-component"),h=r.getAttribute("data-delay"),a=r.getAttribute("data-until-component"),d=r.getAttribute("data-disable-recirc"),c=n(s),u=e.innerWidth<600;this.untilComponent=a.length?a:null,this.untilComponentEl=this.untilComponent&&t.find("."+this.untilComponent),this.delay=1e3*parseFloat(h),this.disableRecirc="true"===d,this.el=r,this.linkEl=r.querySelector(".ad-recirc-link"),this.adEl=r.querySelector(".ad-wrapper"),this.itemEl=r.querySelector(".ad-recirc-item"),this.headerHeight=t.find(".page-header").clientHeight,this.adSplash=t.find(".ad-splash"),this.adSplashHeight=this.adSplash.clientHeight,this.firstTime=!0,this.hasAnchor=e.location.href.indexOf("#")>-1,c&&l(this.linkEl,c),u&&(o(r),this.buffer=t.find(".ad-recirc-buffer"),this.scrollHandler=i.throttle(this.onScroll.bind(this),200),e.addEventListener("scroll",this.scrollHandler))}return d.prototype.showLink=function(){var t=this.itemEl,e=this.adEl;e.classList.add("hide"),t.classList.add("show")},d.prototype.hideLink=function(){var t=this.itemEl,e=this.adEl,i=this.el;t.classList.remove("show"),e.classList.remove("hide"),h(i,!0)},d.prototype.onScroll=function(){var i=document.body.scrollTop,s=i<=this.headerHeight,n=0,l=function(){var i=t.find(".ad-splash");i.classList.add("fixed"),this.timer=e.setTimeout(a.bind(this),this.delay)};(this.adRecirShown&&s||this.untilComponentEl&&r.isElementInViewport(this.untilComponentEl))&&(this.hideLink(),e.clearTimeout(this.timer),this.timer=null,e.removeEventListener("scroll",this.scrollHandler)),this.firstTime&&i>=this.headerHeight&&(this.hasAnchor&&(n=5e3),e.setTimeout(l.bind(this),n),this.buffer.style.height=this.adSplashHeight+"px",this.firstTime=!1)},d}]);"use strict";DS.controller("cut-header",["dom",function(s){function n(n){this.el=n,this.isSublist=s.find(n,".is-sublist"),this.menubtn=s.find(n,".menu-btn"),this.menu=s.find(n,".nav")}return n.prototype={events:{".end focus":"removeDropdown",".menu-item focus":"removeDropdown",".has-sublist mouseout":"removeDropdown",".logo focus":"removeDropdown",".menu-btn click":"menuClickHandler",".sublist-parent focus":"addDropdown",".sub-nav-dropdown focus":"addDropdown"},menuClickHandler:function(){this.menu.classList.toggle("is-active"),this.menubtn.classList.toggle("mobile-nav-open")},addDropdown:function(){this.isSublist.classList.add("is-active")},removeDropdown:function(){this.isSublist.classList.remove("is-active"),this.menubtn.classList.remove("mobile-nav-open")}},n}]);"use strict";DS.controller("search",["dom","$window",function(e,t){function s(t){this.el=t,this.search=e.find(t,".search-form"),this.query=e.find(t,".search-query"),this.expand=e.find(t,".expand-button"),this.close=e.find(t,".close-button"),this.submit=e.find(t,".submit-button"),this.placeholderText=t.getAttribute("data-placeholder-text")||"",this.query.value=""}return s.prototype={events:{".search-form keypress":"expandSearch",".search-query keypress":"expandSearch",".search-query click":"expandSearch",".expand-button click":"expandSearch",".submit-button click":"submitHandler",".close-button click":"compressSearch",".search-query blur":"compressSearch"},compressSearch:function(){(t.innerWidth>=1024&&""==this.query.value||t.innerWidth<1024)&&(this.search.classList.remove("expanded"),this.query.placeholder=this.placeholderText,this.query.value="")},expandSearch:function(){this.search.classList.contains("expanded")||(this.search.classList.add("expanded"),this.query.value="",t.innerWidth<1024?this.query.placeholder="":this.query.placeholder=this.placeholderText,this.query.focus())},submitHandler:function(){this.search.submit()}},s}]);"use strict";DS.controller("follow",["_","$popup",function(t,e){function n(t){this.el=t}return n.prototype={events:{click:"openFollow"},openFollow:function(t){var n,o=e.position,a=e.params,r={},l={w:780,h:500},s=new o(l.w,l.h),w=this.el.classList;r.handle=t.target.getAttribute("data-handle"),l.left=s.left,l.top=s.top,w.contains("facebook")&&(r.url="https://facebook.com/"+r.handle,r.network="Facebook"),w.contains("twitter")&&(r.url="https://twitter.com/intent/follow?screen_name="+r.handle+"&tw_p=followbutton&variant=2.0",r.network="Twitter"),w.contains("pinterest")&&(r.url="http://www.pinterest.com/"+r.handle,r.network="Pinterest"),w.contains("instagram")&&(r.url="https://www.instagram.com/"+r.handle,r.network="Instagram"),r.name="Follow "+r.handle+" on "+r.network,n=new a(r,l),window.open(n.address,n.name,n.features),t.preventDefault()}},n}]);"use strict";DS.controller("global-nav",["login","_",function(n,e){function t(n){return"/"+n+"/"}function o(n,e){n.textContent=e}function r(n,o,r){e.each(n,function(n){n.href=(n.href||"").replace(t(o),t(r))})}function u(e){e.setAttribute(c,n.isLoggedIn()?a:f)}function l(e){var t=g;return function(){var l=n.getCred(),i=l&&l.username||g,c=e.querySelector("button.username"),a=e.querySelectorAll("a");o(c,i),r(a,t,i),u(e),t=i}}function i(e){var t,o=e.querySelector(".log-in-nav");o&&(t=l(o),t(),n.on("logged-in",t),n.on("logged-out",t))}var g="username",c="data-view",a="known",f="unknown";return i.prototype={events:{"button.log-in click":"logIn","button.reg click":"reg","button.log-out click":"logOut"},logIn:function(e){e.preventDefault(),n.trigger("open:log-in")},reg:function(e){e.preventDefault(),n.trigger("open:register")},logOut:function(e){e.preventDefault(),n.logOut()}},i}]);"use strict";DS.service("components",["$document","$module","_",function(e,t,n){var o=n.pickBy(t.definitions,function(e){return e.providerStrategy===t.providers.controller}),c=Object.keys(o);n.each(c,function(e){var o=document.querySelectorAll("."+e);n.each(o,function(n){t.get(e,n)})}),this.components=c}]),DS.get("components");