We begin with Steven Tyler looking straight into the camera and singing, kinda, “There’s something wrong with the world today ” Then abruptly stopping. I mean, he runs out of steam so fast on that tiny handful of words you think you’re seeing the prelude to a stroke. Steven then tells us that, STARS! THEY’RE JUST LIKE US! They watch disturbing news footage from Japan! His “singing” of that little scrap of one of his own songs (“Livin’ on the Edge,” as if I had to tell you [and had to look it up]) was a fun doorway into letting us know that we could help with all the devastation in Japan. The camera widens out to reveal J.Lo, amazingly hot and attired as the Princess of the Jungle, who tells us that if we go to iTunes and download the songs that will be performed on the show tonight, the money goes to Japan. Well, that settles that! I was on the fence about this relief effort until this special offer. I was like, “Oh, plenty of people are helping them already, and besides, what’s in it for me? I mean, it’s not like I get my own copy of an amateur’s heavily produced and manipulated cover of a song I don’t like in the first place. Hold on — what did you just say to me?!”
The show begins. My wife glances up from her laptop and says, “Ryan Seacrest still moves like a fat person.” The former fatty informs us that tonight, the Idols will each sing a song from the year he or she was born. Ah, but think of it, gentlemen: What if they sang a song from the year they will die? I put it to you that science can conquer time itself! Now, just to be clear, I’m only having some H.G. Wellsian fun. I am not wishing death on anyone. I just want to hear some future music! Don’t act like you don’t.
First, Naima sings 1984’s “What’s Love Got to Do With It,” which is not exactly a vocal showcase. The performance is not great, and there’s an odd jazz coda at the end out of absolutely nowhere. Maybe the rest of the song should have been jazzy, or at least sung while riding a Jazzy. Oh, I am warming to this idea! Is there any singer today using that as a gimmick? Soulfully singing whilst riding an old-lady scooter? Do I need to step into the breach? Because I will.
JUDGES: Steven likes it! J.Lo revokes her previous pitchy pass; now Naima must no longer be pitchy. Randy thinks it was all over the place.
ME: I liked Naima more before the competition got narrowed down. She started out unique and is becoming more and more mundane. I do not overstand why this is happening.
Let’s keep it locked in at 1984! Paul sings Elton John’s (and Bernie Taupin’s; no one escapes blame here) “I Guess That’s Why They Call It the Blues.” Really? Did that song come out in January of 1984, and Paul stopped reading the list? What a boring, successful song. As Paul performs, we see J.Lo singing along, like she’s into it or something. J.Lo, stop pushing me away. Paul has a cold and does his best, I guess, but it’s fairly ragged.
JUDGES: Steven likes it! J.Lo says it sounded good and you have enough soul to overcome a cold. Randy thinks a cold is no excuse! But he likes that Paul makes songs his own.
ME: Well, Paul did not make this song his own. He just sang it awkwardly. I don’t know if that falls under the umbrella of “style.” Paul just seems really uncomfortable with a lot of the covers. One neat thing: We get a very clear look at the backup singers, and can finally stop wondering, What if Jon Favreau became an Andrew “Dice” Clay impersonator and married two Kate Bosworths?
Thia was born into 1995, which I regard as a personal affront. Thia’s mother reveals that she used to sing lullabies to Thia, and busts one out that immediately puts her husband to sleep. This lady’s got powers, people. Thia has decided to sing “Colors of the Wind” by Vanessa Williams, from Pocahontas. Sure, why not. She can’t even vote yet, who cares what she does? I am so many hundreds of years older than Thia I forgot about both the song and that movie. At least it’s a tune that involves some singing. Thia is accompanied by a string quartet and an acoustic guitar. The guitar guy has to sit at the edge of the stage, while the strings get to sit on chairs, like people. Isn’t it time to stop coddling string quartets? They’re too classy to sit on the stage like the guitar guy? Go powder your wigs, is what I say (HUGE insult in string quartet circles).
JUDGES: Steven … likes it? He wants to know if that’s who Thia thinks she really is? Randy thinks the vocals were okay, and wants her to take some chances. J.Lo wants her to stop being so safe and push out of the box.
ME: Hey, geniuses, she is a child. How much sense of self is she supposed to have? “Thia, you have a nice voice, but I really need you to stare down into the dark recesses of your soul and pull something raw and bloody out of there. Run it by your on-set tutor; see if she cries.”
Kate Hudson’s in the audience! So.
James was born in 1989, with, presumably, plenty of diapers and food around, because his parents were not employed at “singing contest.” James sings Bon Jovi’s “I’ll Be There for You.” He hits a good-size clam right out of the gate, then rights himself and continues on, all James-y. It ends on a bit of a rough note, but! Sparks shoot up out of the floor! How come he gets sparks? “Colors of the Wind” couldn’t have used some sparks?
JUDGES: Steven … likes it? He warns James against poppiness. James assures him he is saving some hard-rockin’ Aerosmith for the finale. Steven agrees to sing with Jim should such a thing come to pass. J.Lo says James brings her joy. Randy says it was good, but he also says Bon Jovi’s “I’ll Be There for You “ is an amazing song, so, grain of salt, I guess.
ME: James bugs me. As soon as this “deal” was struck between him and Tyler, I just knew I was going to end up having to watch it and having to write about it. If this doesn’t happen I’ll eat my scarftail.
Haley was born in 1990, so she’ll sing Whitney Houston’s “I’m Your Baby Tonight.” We see her being coached by Ron Faire, who is apparently committed to that hat. As Haley sings, she manages to get lipstick all over her teeth and chin, somehow. This, I believe is unprecedented. Ladies, tell me. Has this happened to you? Have you gotten lipstick on your chin with a microphone? If so, how many times? Please fill out this comment card and rate our service. Your feedback is important to us.
JUDGES: Steven … likes it? He wants to hear “more blues.” Like “Love in an Elevator,” right? J.Lo wants Haley to become confident in her movements. Randy is confused by Haley’s song choices and suggests she doesn’t know who she is based on those choices. When will they drop this bullshit idea that these kids have absolute control over the songs they choose? It seems obvious that they have a short list of songs from which to choose, if they aren’t being handed songs outright. Maybe I’m too cynical. Or maybe the judges are too trusting. Only history can decide, and let’s hope it has more important things to make decisions about than this.
ME: I have not been the biggest Haley fan, which, as you know, is Haley’s face’s fault. But I actually liked her cover of this song better than the original. Even though I still kind of didn’t like it. Because it’s not a good song. My point is, I may be warming up to Haley, which vaguely annoys me. But she handles the lipstick business with great aplomb. Not just regular! Great!
Stefano was born in 1989 and, through a series of loopholes, gets to sing a good song, [Simply Red’s version of] “If You Don’t Know Me by Now.” It’s a good choice for him; J.Lo is enraptured! It all really makes sense until a misguided power note at the end. Surely someone could have told him it would sound dumb to sing the last word of the song as high and loudly as he could, just to do it. Jimmy Iovine, where were you? Adjusting the opacity of your glasses or something?
JUDGES: Steven likes it! Randy proclaims it the best performance of the night! So far. J.Lo says Stefano could take the whole thing if he sings into people’s eyes more.
ME: Well, Stefano did a good job. I think I said he wasn’t gonna be around long, but he proved me to be a poor fortune teller. So, word to the wise: I cannot predict the future. I am just trying to hold your hand.
Pia was a 1988 baby, and we see a clip of her as a child singing an absolutely furious version of “I Will Always Love You.” Spurred on by that long ago, anger-filled child, Pia sings Whitney Houston’s “Where Do Broken Hearts Go?” It’s a kind of disco arrangement, and it makes me think that song probably should have been a disco song anyway. It just got written too late or whatever. But this arrangement weirdly redeems it. Maybe more garbage eighties songs just need to be discofied to be enjoyable.
JUDGES: Steven likes it! J.Lo is thrilled to see Pia do something uptempo. Randy says, take note, other contestants: Pia is trying to win this contest!
ME: This was my favorite Pia-formance. Something about it seemed really right to me. I especially enjoyed Pia’s whole Jaclyn Smith seventies ensemble, for my own private reasons that are none of your business.
During Scotty’s clip package, his parents both proudly sing “The McCreery Family Anthem (Babylockthemdoorsandturnthelightsdownlow)” before we get to see Scotty stretch a bit and sing the 1993 Travis Tritt hit, “Can I Trust You With My Heart.” If you’re not familiar with this number, it sounds like a country song from the nineties.
JUDGES: Steven likes it! J.Lo commends him for pushing himself out there a little more. Randy likes it and lets us know that Travis Tritt is a personal friend. Well, la-di-da! Way to steal Scott’s thunder, Randy! WE GET IT, YOU HAVE A WHITE FRIEND!
ME: Okay, what are we dong here? Hasn’t country music been represented enough? Isn’t there already an all-country version of this show? Who’s being humored, here?
MySpace’s Karen Rodriguez sings 1989’s “Love Will Lead You Back” by Taylor “Not Selena” Dayne. And she is going for it! She’s got a crazy-ass outfit and hairdo, she looks great, and she is full-on performing this song! Too bad it’s a boring song that requires little in the way of theatrics. It’s as if she’s taking the theatricality of some other song and laying it on top of this one; like if someone sang “Happy Birthday” but acted as if they were singing “Paradise by the Dashboard Light.” She even slips some Spanish in there, too, because she’s not MySpace’s Karen Worthington.
JUDGES: Steven likes it! Randy thinks it started rough but was still better than last week. J.Lo likes that MySpace’s Karen Rodriguez attacked it!
ME: MySpace’s Karen Rodriguez seems really, really sweet and genuinely loves singing. She just doesn’t seem like that skilled of a performer. So she will probably be in the top two.
Casey is back from the hospital with his faulty Swiss-cheese guts and he is ready to do this. He sings 1991’s “Smells Like Teen Spirit” by Nirvana and accompanies himself on electric bass. It seems really short. I mean, all of these songs are truncated for TV timing, but this seems exceptionally brief for the show. I wonder it’s because of Casey’s stomach problems. I forgot to look for a bucket on the stage.
JUDGES: Steven likes it! J.Lo thinks it sometimes got screamy-screechy, but she loves him so much. Randy loves that Casey puts art first and commerce second. Wait, since when, Randy? He must mean he likes it as an amusing diversion to him, Randy Jackson, personally. This one time. But generally, COMMERCE No. 1 USA USA USA!
ME: Much as I like Casey and I feel I can relax when he’s on, I didn’t enjoy this so much. I give him credit for doing it, I guess. The iTunes Japan-helping download seems like the full song. I think even the iTunes preview is longer than what we saw on TV. Maybe he accused Courtney Love of murder during the bridge and they had to trim it.
Lauren has the flu and was born in 1994. These two facts are unrelated. Lauren opts to sing Melissa Etheridge’s “I’m the Only One.” As with seemingly every Idol song, it starts too low for human beings to properly sing. Who designed these diabolical songs?! But it’s not long before we get into some comfortable shouty parts. I’ve never liked this song and this version isn’t winning me over. This is what you call a “first-world” problem.
JUDGES: Steven likes it! J.Lo loves Melissa Etheridge and commends Lauren for making it her own. Randy says it was very nice, get a cold every week! I am pretty sure he is kidding, but who can say? He thought that one Bon Jovi song was “amazing,” remember?
ME: I find Lauren less and less likable as the contest wears on. I feel weird saying that, because she’s just a kid, but there are kids in my life that I don’t care for, so, what, I’m gonna draw the line at televised children? I sound my barbaric yawp over the roofs of those parts of the world that are familiar with Lauren from American Idol!
And at last, we come to Jacob. Born in 1989 in Compton, Jacob is compelled to sing “Alone” by Heart. It’s a great choice for his range, but it’s a ridiculous choice for all other reasons. He goes for it, of course, and it’s all over the place. It starts out seeming like an interesting change of pace, then is run through the emotive wood-chipper that is Jacob’s singing style.
JUDGES: Steven likes it! Randy likes that Jacob stepped out of his comfort zone and took control of difficult moments. J.Lo loves that Jacob gives himself to every performance.
ME: Did Jacob ever hear any quiet music growing up? I’d love to hear him take on “The Girl From Ipanema” or some Feist. Because even if he just does the same overwrought stuff he usually does, but with those songs, I think I’d still be entertained.
And that’s it. After a commercial, we are admonished to vote, then warned the Black Eyed Peas will be showing up tomorrow. Do what you have to do.
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();
// ]]