The magic of Downton Abbey’s first season — besides the house, and the Edwardian chic, and of course Dame Maggie Smith’s acid one-liners — was that unlike most other costume dramas, you watched an episode without any clue about what might happen. With Austen or Merchant Ivory drama, we’ve usually already read the book, and if not, we assume that duty and love will prevail (and then everyone will dress for dinner.) But on Downton, there were actual surprises — delicious, soapy, “Turkish diplomat dying in someone’s bed” surprises. Sometimes a war even pops up to ruin a garden party. If you have “somehow” already seen Downton’s second season, which originally aired in the UK last fall, you will be aware that this second season stays very committed to high drama: if you, the responsible television viewer, are starting fresh with PBS, you will perhaps have read that things get a little nuts this season. Vulture will be recapping the show along with the Masterpiece schedule, and so we won’t spoil the twists ahead of time, except to say, get ready, because so much crazy stuff is about to go down, you won’t even remember that time Lady Edith called Lady Mary a slut in the hallway.
“So much crazy stuff” is also an apt description of the season’s first episode, which, at a running length of two hours, offers an overwhelming amount of exposition and romantic developments to cry over. Julian Fellowes: wasting no time in screwing up everyone’s love life. Amy Heckerling thanks you, Sir Julian! And the rest of us are sitting over here in agony, wondering why in God’s name Matthew couldn’t use his two years in the trenches to realize that he really loves Lady Mary and should just get over himself already, because there’s a freaking war going on. But we’re ahead of ourselves; we’ll get to the heartbreak soon enough. First, a quick roll call of all the major character developments, because there are so very many.
When we last left Downton, Lord Grantham was announcing the start of World War I to the guests assembled at his garden party; season two begins in 1916, at The Somme, where a very grimy Matthew Crawley is trying to navigate his way through an onslaught of enemy fire. Since it is the first minute of the second season, and losing Matthew Crawley at this point would be a bummer from a plot perspective, he does, in fact, make it into the bunker, where he announces that he’s up for a few days leave. Where will he go? Oh, you can probably guess. [Roll titles.]
The scene at Downton is majorly hectic, as Cousin Isobel has apparently convinced the Granthams to host a charity concert to raise money for the local hospital. Everyone is helping, and they all have very useful personal information to share while hanging banners or moving chairs or staging an attack on truly hideous floral arrangements. (Never change, Dowager Countess.) In brief, we learn that Anna and Bates are still in love, but Bates is MIA because his mother died. Ethel, a salty new maid, has been pulled in to replace Gwen, who went to be a secretary; Thomas peaced out to join the military health corps (and avoid theft charges). O’Brien is still around, smoking and looking mean, as are Carson, Mrs. Hughes, William, Daisy, Mrs. Padmore, and Branson the chauffeur, who has the unenviable task of having to teach Lady Edith to drive, and therefore having to be inside a car with Lady Edith.
Upstairs, Lord Grantham is bummed that he can’t really be in the army, so he’s dressing like it, instead. Cora, for her part, is supporting the troops by getting out of bed for breakfast. Sibyl has apparently been getting a lot of bad news from the front, and wants to do something more, so she asks Isobel about training to be a nurse; the increasingly pushy Isobel agrees to help her and suggests that she start by learning some basic kitchen skills. Edith is still at home and is still hateful; it’s not immediately clear where Mary is, but this becomes less worrying when the Dowager Countess shows up to help with the fundraiser and starts doubting Cora’s ability with the flowers. (“Cora’s flowers always look more suited to a first Communion in Southern Italy.” To be fair, the sea green hydrangea situation going on in the library is actually very ugly.)
And with that, we are eight minutes into the season. Good lord. As mentioned before, so much happens in this episode that it seems fairly impossible, or at least wildly masochistic, to try to rehash it in chronological order. So we’ll divide it up like the Granthams before us, breaking down the Downstairs drama and the Upstairs drama separately (though the stories often meet during the dressing hour. It’s not a perfect system, but then, neither was the whole landed gentry/life of service thing. We will do our best.)
Downstairs, the major concern is the love affair between saintly Anna and still-married Bates. Bates returns from London to announce that his mother has left him a decent chunk of money–enough, he thinks, to finally convince his missing wife to consent to a divorce. He tells Anna as much, which is fairly unromantic as far as proposals go, but she doesn’t care, because she is bright-eyed and pure of heart, and so she says yes. Great! Cue Bates’ wife, who shows up almost immediately to ruin everyone’s plan. Not only is Vera Bates a spoil sport, but as played by Maria Doyle Kennedy, she is almost laughably evil: the wild horse-y eye-rolls, the maniacal laugh, that frumpy hat? Okay, crazy cartoon lady. The walking plot device wants Bates and his money back, and so she blackmails him with the worst-kept secret in 1910s London: Lady Mary’s pre-marital dalliance with the devastatingly handsome (and now unfortunately dead) Mr. Pamuk. Not only would the scandal disgrace the Granthams, but Anna, too–Vera knows that she helped carry the body–and so Bates agrees to leave Downton, in order to protect his lady love. He of course plays the hero, refusing to tell Anna just why he’s ditching her, and she of course suspects that he’s being noble, and everyone cries in the courtyard. Then Bates disappears for the rest of the episode, which is maybe more distressing than the fact that he and Anna have to deal with a psycho who looks like the evil twin of Kathy Bates’ Titanic character.
The other major downstairs drama involves William, who, having never seen a television show, is blithely unaware that the sweet, dopey guy is always the one who gets killed off during sweeps, and so he’s very anxious to join up with the army. William! No. You have had “death at Verdun” written across your forehead since the Archduke got assassinated back in season one. Mrs. Patmore at least seems aware of this fact, and harangues him about his misguided sense of duty, but William’s having none of it. Things get worse when some old-school Code PINK types bust up the charity concert and hand him a white “coward” feather. Clueless Daisy tries to cheer him up by kissing him in the kitchen, but when William finally does get called up, he thinks she actually “fancies” him, and so he saunters into the kitchen in uniform asking for a picture to take with him. William with Swagger is hugely entertaining (“Pinch me, I’m your dream come true”), but Daisy immediately freaks out, telling Mrs. Patmore she didn’t mean it like that, and she definitely doesn’t want to be his sweetheart. Oh Daisy, too late, says Mrs. Patmore and everyone who has ever been in junior high.
The rest of our friends in the servants quarters are busy trying to keep Downton running despite the reduced staff. Carson, in particular, is super uptight and keeps bitching about not having enough footmen to serve a proper dinner. He gets so wound up that he has a panic attack mid-service–he’s fine!--but he lands in bed for the duration of the episode. Mrs. Hughes, awesomely, spends her time telling Carson to chill out and eavesdropping on the conversation between Bates and Vera, then spreading the gossip far and wide so that everyone knows wonderful Bates is. Ethel, the new maid, is a pill, inspiring O’Brien to haze her by sending her unannounced into the drawing room after dinner. (Frankly, Ethel deserves it.) O’Brien also helps engineer Thomas’s return to Downton, as a staffer at the hospital, but Thomas has to pull an Owen Meany to land the reassignment. Meanwhile, Lang, the new valet to Lord Grantham, has a major PTSD breakdown and gives O’Brien the opportunity to actually have a heart, when she confronts him about his shellshock. Is it possible that O’Brien will not be the most hateful Downton Abbey employee in season two? Only Ethel can know for sure!
Upstairs, the war is ruining everyone’s good time, but to the credit of the Granthams, they are all eager to actually do something to help, rather than just canceling their hunting season. Lord Grantham is delighted to be offered a position in the army, then devastated when he learns it’s only an honorary title; he tells anyone who will listen (William, Cora, even Matthew) that he feels like a fool sitting around at Downton. Cousin Isobel remains hugely committed to (and slightly obnoxious about) her work at the local hospital, but as mentioned before, she’s now joined by Thomas and new nurse Sybil.
That’s right: new nurse Sybil! The youngest Grantham has ditched her harem pants and is now the village Clara Barton. To become a nurse, Sybil naturally had to go to training school, which sets up two of the most delightful scenes from this episode: Sybil, learning how to make tea (“Everyone knows how to fill a kettle”), and Sybil, getting dropped off at school by Branson, who totally confesses that he’s in love with her! He plays it with equal parts agony and authority, which is a pretty genius strategy: how could a politically-conscious third daughter resist an over-confident Irish radical who also wants to make out with her? Change the social order by marrying me. Too smart. Sybil says no for the moment, but she promises not to give him away, and then she stares at him like she just realized that he’s a boy and she’s a girl and this is a thing that could happen. (Really, Sybil, how did you not see that one coming? Has Mary taught you nothing?)
Speaking of Lady Mary, it is time to address the hellscape that is her current love life. It pains us to even type the words, but we understand how storytelling works, sort of, and so it had to be expected: Matthew is engaged. To someone else. Fine, now you know. The woman in question is named Lavinia Swire, and she is, in the words of Carson, “not to be found in Burke’s Peerage, or even Burke’s Landed Gentry.” Edith, ever the shrew, drops the fiance bomb on an unsuspecting Lady Mary, but Mary plays it cool, announcing instead that she also has a new romantic interest: Sir Richard Carlisle, a newspaper magnate. And here are our ill-advised parallel love stories for the season: Matthew and his mousey Lavinia vs. Mary and the vulgar Carlisle. Both parties are invited to Downton, so that Mary and Matthew can peacock around announcing how happy they are for the other couple. Soon we learn that Lavinia and Carlisle actually know each other already, and have reason to be bickering in the garden. (Did they have an affair? Please say they had an affair. And are still in love. And are going to run off together and not bother us with this competing engagement nonsense anymore.)
The situation looks bleak, especially for Mary, who is quite obviously still in love with Matthew and admits as much in private to Anna and Carson. (Carson, adorably, tells her that no man would ever reasonably choose Miss Swire over Lady Mary.) But since it is wartime, and because beneath that icy exterior Lady Mary has feelings to rival Adele’s, she can’t totally suppress her desperation, and so we are treated to two heartbreaking encounters between Mary and Matthew. The second, in which Mary prepares to confess her feelings for Matthew, only to meet a weepy Lavinia and chicken out, is a triumph of sad-eye-acting. But we’d like to focus on the goodbye at the train station, which channels Brief Encounter and is a reliable litmus test of whether or not you have a functioning heart. (If you are crying: yes. If you are dry-eyed: no.) Mary hands Matthew her good luck charm–a stuffed donkey, it looks like–and tells him, while barely keeping it together, that he “must promise to bring it back without a scratch.” Matthew tears up, and tells Mary how glad he is that they’ve made peace. He asks her to take care of his mother and Lavinia should the worst happen. At this point even the steely Mary starts to crack, and there’s legitimate terror in her eyes as she kisses him goodbye. Michelle Dockery kills this scene, cloche hat and all, and it would almost be painful to watch, if it weren’t so excruciatingly wonderful. (Watch it again! It’s so great.) But can we stand a whole season of train station goodbyes? Can the human heart bear so much longing? We sincerely hope it doesn’t have to.
The B-side upstairs drama involves Lady Edith getting it on with a married farmer, and then being dumped by a married farmer, which, congrats to her, we guess. (Congrats also to Lady Mary for getting to say the line, “She’s found her metier; farm laboring.”) Isobel and the Dowager Countess have a standoff over military deferrals, and nobody comes out a winner–especially not Molesley, who begs Dr. Clarkson to spare him from service, even after the Dowager Countess’s shady letter-writing campaign has been revealed. Meanwhile, Lord Grantham goes ballistic at Bates for quitting without an explanation, then is chastened when Carson informs him that Bates was falling on his sword for the family. (Mrs. Hughes’s eavesdropping at work!) Carson refuses to explain why exactly the family would be shamed, but Lord Grantham is that much closer to learning about the time that a Turkish guy died while taking his daughter’s virginity. That should go well.
Two more plot-relevant details: Carlisle does, in fact, propose to Mary, in a depressing reprisal of train station goodbyes, and Mary announces to Anna that she plans to accept him. On the home front, Sybil and Isobel join forces to demand that Downton be turned into a convalescent home for the duration of the war. More gossipmongers and wounded soldiers, coming soon to a landed estate near you!
Finally, a round-up of all the relevant Dowager Countess quotables from this episode, because we understand why you actually watch Downton Abbey:
”War makes early risers of us all.”
”Anna, help me do battle with this monstrosity. It looks like a creature from the Lost World.”
”Oh, that’s a relief. I hate Greek drama, when everything happens off stage.”
Dowager Countess: “So, that’s Mary’s replacement. Well, I suppose looks aren’t everything.” Cora: “I’m afraid meeting us all together must be very intimidating.” Dowager Countess: “I do hope so.”
in response to the news that Lavinia’s father is a lawyer, like Matthew: “My my, you’re very well placed if you ever in trouble with the law.”
“Remember your great aunt Roberta. She loaded the guns at Lucknow.”
”Edith! You are a lady, not Toad of Toad Hall.”
“I am not a romantic, but even I will concede that the heart does not exist solely for the purpose of pumping blood.”
See you next week, when hopefully Julian Fellowes will indulge at least a small amount of Greek drama.
By submitting your email, you agree to our
Terms and Privacy Notice
and to receive email correspondence from us. This site is protected by reCAPTCHA and the Google
Privacy Policy and
Terms of Service apply.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
Already a subscriber?
Already a subscriber?
`;
// integrate Sub(x) scripts and elements
if (hostname !== 'subs.nymag.com') { // do not integrate on this subdomain
document.head.appendChild(trackingScript);
document.body.insertAdjacentHTML('beforeend', subXAnimationElements);
}
There was an error processing the request. Please try again later."}).catch(e=>console.error("Error verifying email: ",e)))(r.querySelector(".content"),o.bannerCTAVerification)})):(l.remove(),s.remove()),o.dismissable||n.remove(),o.useAlertIcon||a.remove(),r.classList.add("show"),n.addEventListener("click",()=>{u(),r.classList.remove("show")})}else r.remove()}});
}, {"1":1,"6":6,"12":12,"35":35,"40":40}];
window.modules["global-nav.client"] = [function(require,module,exports){"use strict";const dom=require(4),auth=require(12),signInButton=dom.find(".user-signin"),signOutButton=dom.find(".user-signout"),globalNav=dom.find('[class^="global-nav"]'),body=dom.find("body"),dropdownItems=dom.findAll(".dropdown-wrap"),gtm=require(1),appendLandingPageParams=require(135),pageUri=require(124).getPageUri(),subscriptionPromoLinks=dom.findAll(".persist-params"),searchString=window.location.search||"";function closeDropdowns(e){let n=globalNav.querySelectorAll(".dropdown.open");dropdownItems.forEach(function(t){let o=t.querySelector(".dropdown");!n||t.contains(e.target)&&27!==e.keyCode||o.classList.remove("open")})}function gtmSendReport(e,n,t){let o={eventCategory:"ecommerce",eventAction:"componentClick",brand:e,dimension23:"global-nav",list:pageUri,pageZone:"header",variant:"nav-link"};"global-nav-link"===t&&(o.eventLabel=n.href),gtm.reportNow(o)}function updateElementTargetUrlsIfQueryStrings(e){if(searchString){const n=new URLSearchParams(searchString);let t=e.href;if(t.includes("?")){const o=t.split("?"),i=new URLSearchParams(o[1]);for(let e of n.entries())i.set(e[0],e[1]);t=`${o[0]}?${i.toString()}`,e.href=t}else e.href=`${t}?${n.toString()}`}}function init(e){const n=e.querySelectorAll(".to-landing-page");window.addEventListener("auth:init",()=>{signInButton.addEventListener("click",function(e){e.preventDefault(),auth.showEmbeddedLoginFlow("top navigation")}),signOutButton.addEventListener("click",function(e){e.preventDefault(),gtmSendReport("Sign Out",e.target,"user-info-link"),auth.logout()}),auth.isAuthenticated()&&e.classList.add("signed-in"),auth.isSubscriber()&&e.classList.add("subscribed"),e.querySelectorAll(".user-link").forEach(e=>{e.classList.add("active")}),subscriptionPromoLinks.forEach(e=>{updateElementTargetUrlsIfQueryStrings(e)}),appendLandingPageParams(n)})}dropdownItems.forEach(function(e){e.addEventListener("click",function(){e.querySelector(".dropdown").classList.toggle("open")})}),body.addEventListener("click",closeDropdowns),document.addEventListener("keydown",closeDropdowns),globalNav.addEventListener("click",function(e){let n=e.target;n.classList.contains("global-nav-track")&>mSendReport(n.text,n,"global-nav-link")}),module.exports=init;
}, {"1":1,"4":4,"12":12,"124":124,"135":135}];
window.modules["aaa-module-mounting.legacy"] = [function(require,module,exports){"use strict";const _pickBy=require(221),_each=require(406),Fingerprint2=require(408),DS=require(407),Eventify=require(246);function registerGlobals(){window.DS=DS,window.Eventify=Eventify,window.Fingerprint2=Fingerprint2,DS.value("Eventify",Eventify),DS.value("Fingerprint2",Fingerprint2),DS.value("$document",window.document),DS.value("$window",window)}function mountDollarSliceComponents(){DS.service("components",["$document","$module",function(e,n){var o=_pickBy(n.definitions,e=>e.providerStrategy===n.providers.controller),r=Object.keys(o);function t(e){return o=>{try{n.get(e,o)}catch(e){logMountError(o,e)}}}_each(r,n=>{var o=e.querySelectorAll('[data-uri*="/_components/'+n+'/"]'),r=e.querySelectorAll('[data-uri$="/_components/'+n+'"]');_each(o,t(n)),_each(r,t(n))}),this.components=r}]),DS.get("components")}function logMountError(e,n){const o=e.outerHTML.slice(0,e.outerHTML.indexOf(e.innerHTML));console.error("Error attaching controller to "+o,n)}registerGlobals(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{mountDollarSliceComponents()}):mountDollarSliceComponents();
}, {"221":221,"246":246,"406":406,"407":407,"408":408}];
window.modules["ads.legacy"] = [function(require,module,exports){"use strict";const _map=require(118),_forEach=require(107),_isString=require(268),_intersectionWith=require(409),_isEqual=require(274),_each=require(406),_debounce=require(182),_sortBy=require(205),page=require(124),visit=require(114);DS.service("adService",["Eventify","$cid","$document","$window",function(e,t,a,i){var o,n,s,r,d,c,u,l,g={},p=this,h=[],f=visit.getQueryParamsObject(["utm_campaign"]),m=document.querySelector('script[data-type="ad-a9"]'),b=[],w=!1,v=[],y=document.querySelector('script[data-name="ad-doubleverify"]');document.querySelector('script[data-name="concert-ads"]')||(i.NYM={},i.NYM.analytics={},i.NYM.analytics.adStartTime=i.performance.now(),i.googletag=i.googletag||{},i.googletag.cmd=i.googletag.cmd||[],u=i.googletag,(m||y)&&(i.googletag.cmd=i.googletag.cmd||[],i.googletag.cmd.push(function(){i.googletag.pubads().disableInitialLoad()})),m&&(l=i.setInterval(function(){void 0!==window.apstag&&void 0!==window.apstag.timeout&&(i.clearInterval(l),window.apstag.cleared=!0,l=null)},10),setTimeout(function(){l&&(i.clearInterval(l),i.googletag.pubads().refresh(),window.apstag||console.log("MESSAGE: Timeout for A9 load exceeded, aborting"))},500)),y&&(b.push(new Promise(function(e){w?e():v.push(e)})),c=i.setTimeout(T,2500)),o=function(e){var t,a,o=e.data,n=[];return o.loaded?e:(o.loaded=!0,t=null,(t=o.sizes?u.defineSlot(o.name,o.sizes,o.id).addService(u.pubads()):u.defineOutOfPageSlot(o.name,o.id).addService(u.pubads())).setTargeting("adid",o.id),f.hasOwnProperty("utm_campaign")&&t.setTargeting("utmcamp",f.utm_campaign),a=p.getAdCount(o.label),t.setTargeting("label",o.label+"_"+o.site+"-"+a),u.display(o.id),u.pubads().addEventListener("slotOnload",function(){i.NYM.analytics.firstAdLoadTime||(i.NYM.analytics.firstAdLoadTime=i.performance.now(),i.NYM.analytics.firstAdLoadLabel=e.data.label)}),n=_(o),Promise.all(b).then(function(){n?window.apstag&&window.apstag.cleared?window.apstag.fetchBids({slots:[n],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([t],{changeCorrelator:!1})})}):y&&u.pubads().refresh([t],{changeCorrelator:!1}):u.pubads().refresh([t],{changeCorrelator:!1})}),e.slot=t,e)},n=function(e){var a,i,o,n=t(),s=e.getAttribute("data-name"),r=e.getAttribute("data-sizes"),d=e.getAttribute("data-label"),c=e.getAttribute("data-site");n=e.id,r&&r.length?(r=r.split(","),a=[],_map(r,function(e){e=e.split("x"),i=parseInt(e[0]),o=parseInt(e[1]),a.push([i,o])})):(e.classList.add("oop"),a=!1),this.data={id:n,name:s,sizes:a,loaded:!1,label:d,site:c},g[n]=this},r=function(e){u.cmd.push(function(){var t=o(e);g[e.data.id]=t})},s=function(e){var t=[];e.slot?(t=_(e))&&window.apstag&&window.apstag.cleared&&window.apstag.fetchBids({slots:[t],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([e.slot],{changeCorrelator:!1})})}):e&&r(e)},u.cmd.push(function(){var e,t,o,n=page.getMeta("article:tag"),s=page.getMeta("author"),r=i.location.href,d=(e=a.head.querySelector(".head-gtm"),t=a.body.querySelector(".gtm"),e&&"top"===e.getAttribute("data-gtm")?"gtmtop":t&&"bottom"===t.getAttribute("data-gtm")?"gtmbottom":"");o=[],_forEach([n,s,d],function(e){_forEach(e.split(","),function(e){(e=e.trim().toLowerCase().replace(/\s/g,"-").replace(/\'|\’/g,"")).length&&o.push(e)})}),u.pubads().setTargeting("kw",o),u.pubads().setTargeting("entry_group",o),r=r.slice(r.lastIndexOf("/")+1),u.pubads().setTargeting("pn",r),u.companionAds().setRefreshUnfilledSlots(!0),u.pubads().enableAsyncRendering(),u.enableServices()}),this.load=r,this.create=function(e){return new n(e)},this.refresh=function(e){var t;_isString(e)?(t=this.getById(e),s(t)):s(e)},this.remove=function(e){var t=e.data.id;a.getElementById(t).innerHTML=""},this.getAdCount=function(e){var t,a=0,i=Object.keys(g);return _each(i,function(i){(t=g[i]).data.loaded&&t.data.label===e&&a++}),a},this.getById=function(e){return g[e]},d=_debounce(function(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:99,"homepageTakeover/TopLeaderboard":1},t=_sortBy(h,function(t){return e[t.data.label]||10});_forEach(t,function(e){return e.data.sizes?r(e):i.setTimeout(function(){r(e)},2e3)}),y&&window.PQ.cmd.push(()=>{try{window.PQ.loadSignals(["ids","bsc","vlp"],T)}catch(e){T(),console.error(`There has been an error loading Double Verify signals: ${e}`)}}),h=[]},10),this.addToPageLoadQueue=function(e){h.push(e),d()});function _(e){var t,a=e.sizes;return a=_intersectionWith(a,[[970,250],[970,90],[728,90],[300,600],[300,250],[320,100],[320,50]],_isEqual),e.sizes&&e.sizes.length&&(t={slotID:e.id,sizes:a,slotName:e.label}),t}function T(){i.clearTimeout(c),w=!0,_forEach(v,function(e){e()})}}]);
}, {"107":107,"114":114,"118":118,"124":124,"182":182,"205":205,"268":268,"274":274,"406":406,"409":409}];
window.modules["cid.legacy"] = [function(require,module,exports){"use strict";DS.service("$cid",function(){var r=Math.floor(100*Math.random());return function(){return"cid-"+ ++r}});
}, {}];
window.modules["client.legacy"] = [function(require,module,exports){"use strict";require("cid.legacy"),require("ads.legacy"),require("facebook.legacy"),require("aaa-module-mounting.legacy");
}, {"cid.legacy":"cid.legacy","ads.legacy":"ads.legacy","facebook.legacy":"facebook.legacy","aaa-module-mounting.legacy":"aaa-module-mounting.legacy"}];
window.modules["facebook.legacy"] = [function(require,module,exports){"use strict";DS.service("facebook",[function(){this.fb=function(i){window.FB&&window.FB[i].apply(this,Array.prototype.slice.call(arguments,1))}}]);
}, {}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o typeof key === 'string' && key.match(/\.legacy$/)).forEach(key => window.require(key));
}
function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));
console.error(`Error initializing controller for "${name}" on "${elementTag}"`, e);
}
}
/**
* mount client.js component controllers
*/
function mountComponentModules() {
Object.keys(window.modules).filter(key => typeof key === 'string' && key.match(/\.client$/)).forEach(key => {
let controllerFn = window.require(key);
if (typeof controllerFn === 'function') {
const name = key.replace('.client', ''),
instancesSelector = `[data-uri*="_components/${name}/"]`,
defaultSelector = `[data-uri$="_components${name}"]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);
for (let el of instances) {
tryToMount(controllerFn, el, name);
}
for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}
// Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies,
// services, or components that could require it
// note: the `` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js
window.process = window.process || {};
window.process.env = window.process.env || {};
if (!window.process.env.NODE_ENV) {
window.process.env.NODE_ENV = '';
}
// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();
// ]]