My friend was fired for sexually harassing colleagues. | #facebookdating | #tinder | #pof

Photo illustration by Slate. Photos by BartekSzewczyk/iStock/Getty Images Plus.

Slate is now asking those who read the most to support our journalism more directly by subscribing to Slate Plus. Learn more.

Dear Prudence,

My close friend, “Will,” was fired due to a sexual harassment complaint against him at work. Will and the women involved are of similar ages and status in the company. I don’t work with him and don’t really know details, but from what I do know, it’s in the category of “hitting on women at work and continuing to after they said no.” He denies most of it. Without knowing what exactly happened, my guess at the truth would be that it happened and is possibly more severe than Will believes but maybe slightly exaggerated on the women’s part. Still, he shouldn’t have done it at all, and this is obviously not good behavior. Our friend group is divided: A few believe Will, a few don’t and have cut ties, and one friend who works in the same industry as Will (but not at the same company) fears his own professional reputation will suffer if he keeps the friendship. Another friend who used to work with both Will and the women involved is also unsure what to believe. I’ve been close with Will for years, and though he is a ladies’ man type, I also consider him a feminist (I’m a woman and also a feminist). He has always been a kind, respectful, and generous friend. Should I cut him off? Demote him to an acquaintance? Is losing his job enough of a punishment, or should he lose his friends too?

—Still Friends?

If you don’t really know details, why not ask Will for more of them? Tell him what you’ve told me—that this seems at odds with the version of him you’ve known for years, that you’re not clear exactly what happened—and ask him specifically what he denies. Does he deny doing any of it? Does he admit to hitting on colleagues after they told him they weren’t interested but objects to their characterization of his repeated attempts? Can he summarize his employers’ position and the reasons they gave for his dismissal? Then use your own judgment as you listen to his response. Do you find his answers compelling and thoughtful? Do you find him reflexively defensive? Do you find his characterization of his former company and the women who accused him of harassment to be fair, accurate, and reasonable? How many women filed complaints?

I realize you can only get Will’s side of the story, but you’re not being asked to offer up a legal ruling. You’re trying to get a better sense of your friend’s character, and you’ll have to rely on your own judgment as you evaluate his account of said character. Don’t avoid these questions in the uneasy hope that you can simply back off from a formerly close friendship without ever having to have a conversation on the subject. You’re not obligated to punish Will, even if you find his answers troubling, but if he’s really a close friend of yours, you should seek to learn more so that you can offer him useful advice and counsel—even if that counsel is, “Will, I love you, and I think you deserved to get fired because I believe you harassed those women, and you need to change your life.” Information is not your enemy here. It will help you make useful, clear decisions that are in line with your feminist values—values that are not incompatible with loving Will.

Dear Prudence,

On the last day of a family trip, my stepfather suddenly died. We knew he didn’t have long, but it was still pretty traumatic. My mother and I have always been close, and I was her rock for the first year after his death. Then she met someone and abruptly stopped talking to me, my brother, and our kids. I brought it up with her countless times, telling her how it felt, how much I missed her, and eventually warning her that it will affect her relationship with her children and grandchildren. This new guy was incredibly off-putting. We gave him a chance, but it was very clear that he was taking advantage of her generosity and large pension. She finally realized that he was not interested in a relationship with her, and they stayed friends.

Now she’s dating someone new, and I was recently at her home for the weekend. “Adam” was there, constantly interrupting me and talking over me. He tried to diagnose one of my family members with a common disorder because he took one psych course in college. This was only my second time meeting him, but I let it go. The next day, I mentioned one of my daughters quit horseback riding, and he interrupted to tell me a good parent would have made her get back on the horse. I let him know that she did get back on the horse and finished off her lessons for that month as well. He just kept putting his oar in all weekend—at one point he told me he thought my behavior is “maladaptive” and I should rethink my decisions. I looked at my mom, and she said nothing. I went to my room and started packing. Adam came in to apologize, touching my back to get my attention. I told him I didn’t ask for his opinion, that he was not my father, and that just because he was sleeping with my mother didn’t mean he was entitled to speak about situations he knows nothing about. He walked away, and my mom came in shouting that I was behaving like an adolescent and that I should have just told him when he was interrupting. I asked her when it became my house, because it’s the host’s responsibility to correct bad behavior. She lost it when I pointed out that she had abandoned her family for the last two years. It’s now been two weeks, and I haven’t spoken to my mother. I truly don’t want to. Is it wrong that I’m waiting for her to apologize?

—Bad Blood

It’s not wrong that you’re waiting for your mother to apologize. In your position I’d probably want an apology too. I just can’t promise you that you’re going to get one.

If you haven’t heard from her in another few weeks, but you’ve managed to cool off a bit yourself, I’d encourage you to drop her a brief line asking her if she’s willing to talk about what happened. But based on how the past few years have gone, she may respond angrily or not at all. While you’re taking that time to come down, it’s worth reflecting on whether you could have done anything differently that past weekend with Adam. That’s not to say that he wasn’t rude—he definitely was—but do you think saying something like, “Adam, I’m really not looking for advice right now. Could you please stop?” when you were only slightly frustrated would have altered the outcome? It might also help to open your note to your mother with “I’ve thought a lot about how that weekend went, and here’s what I wish I’d done differently.” It’s not an apology for your frustration, which was truly merited, but it might defuse her instinctive defensiveness long enough to make a real conversation possible. But you’re entitled to be angry with how Adam behaved, and you’re entitled to be hurt about her sudden absence from your life after she started dating again, and you don’t have to just let it go because she’s your mother.

How to Get Advice From Prudie

• Send questions for publication to (Questions may be edited.)
• Join the live chat every Monday at noon. Submit your questions and comments here before or during the live discussion.
• Call the voicemail of the Dear Prudence podcast at 401-371-DEAR (3327) to hear your question answered on a future episode of the show.

Dear Prudence,

My best friend has been dating someone new after ending a long-term relationship. A large factor in their relationship seems to be their shared love of drugs: ketamine, molly, opium, mescaline, poppers, and the like. Though I have my own concerns with my best friend using drugs frequently, my real issue is that her new partner is an ER doctor. This doctor routinely works several shifts in a row and then goes on drug benders with my friend for multiple days. Though I don’t think the doctor goes to work high, I feel a nagging concern that they should not be treating patients. Can someone provide excellent health care and also be a heavy drug user? I mean, I wouldn’t voluntarily choose a doctor who did drugs on the side. Should I write HR a confidential letter to drug-test the doctor (most hospitals don’t routinely drug-test physicians)? Should I mind my business?

—Doctored Doctor

One of those drugs is very much not like the others! That’s not to say there would be no reason for concern in an ER doctor recreationally using poppers, psychedelics, and club drugs, but they are in a very different class from opium, which is highly addictive and dangerous.

The potential for harm here—both to your friend’s partner’s patients and to her partner—is serious enough that I believe you may have an obligation to intervene. But that intervention should not begin with a letter to HR. You say you’ve had nagging concerns about both your friend’s drug use and her partner’s, but not whether you’ve ever expressed those concerns to her. Having a frank conversation with her (ideally both of them) is an indispensable first step, not least for the sake of your friendship but also for discussing practicalities like whether they have a safety plan for reversing potential overdoses, an important question for opiate use. If that conversation exacerbates your concerns about this doctor’s ability to work safely, you may then decide to escalate. Do prepare yourself, in that event, both for your friendship to suffer and for the possibility that your inquiry (if it’s based on secondhand reports) may stall.

Help! Am I Giving Up on My Troubled Daughter if I Send Her Away?

Danny M. Lavery takes a look at some of the many memorable letters of 2020 on this week’s episode of the Dear Prudence podcast.

Subscribe to the Dear Prudence Podcast on Apple Podcasts, Spotify, Stitcher, or wherever you get your podcasts.

Dear Prudence,

My husband and I separated during the pandemic as his drinking hit a critical point, and I just couldn’t deal with the emotional abuse and absenteeism in our son’s life anymore. Our son is 3 now, and I’ve felt like a single parent for much of that time. After a month in rehab and a couple of slip-ups later, my husband has been sober for almost three months now. Because of COVID and wanting to provide some stability for our son, we are living together until the spring. However, I have started seeing someone else. My soon-to-be ex-husband knows. I want to move forward with this other relationship. He’s invited me to go away for the weekend, and I really want to spend a night away with him. Is this OK? How can I broach this with my ex? The guy I’m seeing works from home and has minimal contacts, so I am not concerned about COVID exposure, but my ex is.

—Separated, Together

Your desire to spend a night away with your new boyfriend makes a great deal of sense, especially after months spent in isolation with your soon-to-be ex-husband. But the most important question is whether you think your ex can handle being your son’s sole caregiver for that long. You say he’s been mostly absent for your son’s life, that his recent bout of sobriety has been marked by a few slip-ups, and that he’s been emotionally abusive. Has he ever spent time alone with your son safely before? If so, for how long? If he hasn’t, or if even a small part of you worries about how your son might fare in your absence, I think it’s better to postpone overnight trips for another few months and to spend the intervening time consulting with your divorce lawyer and preparing to seek primary custody, so that when you finally do get that night away, you can leave with real peace of mind (and with a trustworthy babysitter).

I’ll also point out that though your ex’s failings as a partner and a parent sound fairly serious, they don’t automatically preclude him from having legitimate concerns about what constitutes an unacceptable COVID risk. If you do talk to him about future trips during the pandemic and he expresses concern, you should take that concern seriously, especially while you two are still living together.

Dear Prudence Uncensored

“You still got to shut them up and knock them down a peg, but it’s not about that.”

Danny Lavery and Zoë Selengut discuss a letter in this week’s Dear Prudence Uncensored—only for Slate Plus members.

Dear Prudence,

Over 10 years ago, I started a career I was really excited about. For years, I put my all into it. I moved up through the ranks, which meant stakes were higher and the burden heavier. I still enjoyed it, because I believed in my work. I greatly admire the people who have worked in my office for decades. But now I’m tired. Maybe it’s because the pandemic has put things into perspective, but it’s also true that social changes have made our work increasingly difficult over the last few years. I just want to slow down. I can do that, but my work won’t be quite as meaningful, and I won’t have the same success that the people I look up to have.

That makes me feel like a failure, like I’m giving up. I don’t look down on the people in my office who do other types of work—it’s just my own internal judgment of myself. This also isn’t about wanting more of a life outside of work. Despite sometimes working long hours, I’m still able to have a social life. I just hate feeling like I can give this job my all, and sometimes, through absolutely no fault of my own, my all won’t matter. How do I come to terms with wanting to scale back?

—Striving for Mediocrity

Wanting to give your job “a lot” instead of “your all” is still, you know, a lot. That might sound pat, but it’s true. And it says something about a workaholic, profit-driven culture that you feel embarrassed about wanting to scale back after a breakneck decade because you’re already “able” to have a social life. A social life isn’t a little dollop you earn through good behavior, and the part of your life spent away from the office, whether you dedicate it to rest, to hobbies, to volunteer work, to community organizing, to friendships, or to nothing at all is deeply important. What you propose here is a life where you continue to work diligently and capably, but you no longer put your career over everything else—a life where you pay attention to something as serious as feeling tired all the time! Real rest, real relaxation, and a real sense of scale are all worthy achievements, not impediments to success. Your job should not demand your all. No job should. What you are proposing is a good thing, something you can be proud of, not a compromise of your ideals.

Now available in your podcast player: the audiobook edition of Danny M. Lavery’s latest book, Something That May Shock and Discredit YouGet it from Slate

Dear Prudence,

We’ll be in contact with my brother and his girlfriend this holiday season. I’m delighted they’re a couple. She’s deeply kind and has made him very happy. She also wears masks everywhere and follows COVID safety protocols. The “but … ” is that she is a bit of a conspiracy theorist. Just throw a dart at a map of Big Pharma, the Illuminati, or aliens and she’ll find some way they’re planning humanity’s downfall. What’s especially weird is this country’s evildoers are not exactly subtle about it, yet somehow she thinks there is a big, secret conspiracy just waiting to be uncovered. This is going to be a bit much this year, but I can’t seem to think of the right exit. Could you please hand me a conversational get-out-of-jail card that I can use without hurting her feelings?

—“I Think You’re Daft,” but Nicely

“Oh, I think that’s awfully unlikely,” “I think the people in power who harm humanity the most are usually pretty obvious about it,” and “I disagree!” are all polite summations of what you’ve written here, but more gentle than rolling your eyes or telling someone you think they’re stupid. You are allowed to disagree with your brother’s girlfriend, even if it’s a holiday, and so long as you don’t take the opportunity as an excuse to indirectly communicate contempt or try to embarrass her, you can just say what you think, perhaps followed by a change of subject.

Classic Prudie

 I’ve been dating my boyfriend, “Mark,” for a few months now, but we’ve been casual friends for more than five years. He is overall a kindhearted person, a hard worker and provider, a fantastic father (to his daughter from a previous relationship), and a supportive and passionate partner. I feel very strongly that he could be “the one.” After he disclosed some not-so-great things about his past to me, none of which is an issue for me, I went snooping online (to see if there was anything he wasn’t telling me) and found public records that generally corroborated what he told me. I also found a request for a restraining order against him for domestic violence around the time he split with his child’s mom before we met. I didn’t know about this, but it doesn’t surprise me given what I know about her. However, I also found a potential other name for him on one of those background check sites. The first name is very close to his current name (think Mark vs. Matt), and the last name is his mother’s maiden name. She raised Mark as a single mom, and he didn’t know his dad until he was older. This discovery could be harmless, such as he changed his name when he finally got to know his dad, or something more serious, such as he has a really bad past he wants to escape. What do I do with this information? Do I bring it up and ask? Do I let it go and see if he brings it up?

')}function tryGetCriteoFastBid(){try{var fastBidStorageKey="criteo_fast_bid",hashPrefix="// Hash: ",fastBidFromStorage=storage.getDataFromLocalStorage(fastBidStorageKey),firstLineEndPosition,firstLine,publisherTagHash,publisherTag;null!==fastBidFromStorage&&(firstLineEndPosition=fastBidFromStorage.indexOf("n"),firstLine=fastBidFromStorage.substr(0,firstLineEndPosition).trim(),firstLine.substr(0,hashPrefix.length)!==hashPrefix?(__WEBPACK_IMPORTED_MODULE_4__src_utils_js__.logWarn("No hash found in FastBid"),storage.removeDataFromLocalStorage(fastBidStorageKey)):(publisherTagHash=firstLine.substr(hashPrefix.length),publisherTag=fastBidFromStorage.substr(firstLineEndPosition+1),Object(__WEBPACK_IMPORTED_MODULE_6_criteo_direct_rsa_validate_build_verify_js__.verify)(publisherTag,publisherTagHash,FAST_BID_PUBKEY_N,FAST_BID_PUBKEY_E)?(__WEBPACK_IMPORTED_MODULE_4__src_utils_js__.logInfo("Using Criteo FastBid"),eval(publisherTag)):(__WEBPACK_IMPORTED_MODULE_4__src_utils_js__.logWarn("Invalid Criteo FastBid found"),storage.removeDataFromLocalStorage(fastBidStorageKey))))}catch(e){}}Object(__WEBPACK_IMPORTED_MODULE_1__src_adapters_bidderFactory_js__.registerBidder)(spec)},377:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(378),i=r(379);t.verify=function(e,t,r,o){var a=new n.BigInteger(n.b64toHex(t)),s=new n.BigInteger(n.b64toHex(r)),c=a.modPowInt(o,s);return n.removeExtraSymbols(c.toHexString())===i.Sha256.hash(e)}},378:function(e,t,r){var n;Object.defineProperty(t,"__esModule",{value:!0});var i=(o.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var e,t=!1,r="",n=this.t,i=this.DB-n*this.DB%4;if(0>i)&&(t=!0,r=l(e));0<=n;)i<4?(e=(this[n]&(1<>(i+=this.DB-4)):(e=this[n]>>(i-=4)&15,i<=0&&(i+=this.DB,--n)),0this.DB?(this[this.t-1]|=(i&(1<>this.DB-n):this[this.t-1]|=i<=this.DB&&(n-=this.DB))}this.clamp(),r&&o.ZERO.subTo(this,this)}},o.prototype.negate=function(){var e=a();return o.ZERO.subTo(this,e),e},o.prototype.abs=function(){return this.s<0?this.negate():this},o.prototype.mod=function(e){var t=a();return this.abs().divRemTo(e,null,t),this.s<0&&0>n|a,a=(this[s]&i)<=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}0>this.F2:0),m=this.FV/g,b=(1<=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,o=(1<>n;for(var a=r+1;a>n;0>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:0>15;0<=--o;){var c=32767&this[e],d=this[e++]>>15,u=s*c+d*a;i=((c=a*c+((32767&u)<<15)+r[n]+(1073741823&i))>>>30)+(u>>>15)+s*d+(i>>>30),r[n++]=1073741823&c}return i},o.prototype.am3=function(e,t,r,n,i,o){for(var a=16383&t,s=t>>14;0<=--o;){var c=16383&this[e],d=this[e++]>>14,u=s*c+d*a;i=((c=a*c+((16383&u)<<14)+r[n]+i)>>28)+(u>>14)+s*d,r[n++]=268435455&c}return i},o);function o(e){null!==e&&this.fromHexString(e)}function a(){return new i(null)}function s(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}t.BigInteger=i,t.nbi=a,t.nbits=s;for(var c=[],d="0".charCodeAt(0),u=0;u<=9;++u)c[d++]=u;for(d="a".charCodeAt(0),u=10;u<36;++u)c[d++]=u;for(d="A".charCodeAt(0),u=10;u<36;++u)c[d++]=u;function p(e,t){var r=c[e.charCodeAt(t)];return null==r?-1:r}t.intAt=p;var f="0123456789abcdefghijklmnopqrstuvwxyz";function l(e){return f.charAt(e)}t.int2char=l,t.b64toHex=function(e){for(var t="",r=0,n=0,i=0;i>2),n=3&o,1):1==r?(t+=l(n<<2|o>>4),n=15&o,2):2==r?(t+=l(n),t+=l(o>>2),n=3&o,3):(t+=l(n<<2|o>>4),t+=l(15&o),0))}return 1==r&&(t+=l(n<<2)),t},t.removeExtraSymbols=function(e){return e.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var g=(m.prototype.convert=function(e){return e.s<0""0<=e.compareTo(this.m)?e.mod(this.m):e},m.prototype.revert=function(e){return e},m.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},m.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},m.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},m);function m(e){this.m=e}var b=(v.prototype.convert=function(e){var t=a();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&0>15)*this.mpl&<<15)&e.DM;for(e[r=t+this.m.t],n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),0<=e.compareTo(this.m)&&e.subTo(this.m,e)},v.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},v.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},v);function v(e){this.m=e,,this.mpl=32767&,>>15,<>>0;for(a[o-1][14]=Math.floor(d),a[o-1][15]=u,s=0;s>>0;var l=r[0],g=r[1],m=r[2],b=r[3],v=r[4],y=r[5],h=r[6],_=r[7];for(f=0;f<64;f++){var S=_+i.z1(v)+i.Ch(v,y,h)+t[f]+p[f],I=i.z0(l)+i.Maj(l,g,m);_=h,h=y,y=v,v=b+S>>>0,b=m,m=g,g=l,l=S+I>>>0}r[0]=r[0]+l>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+b>>>0,r[4]=r[4]+v>>>0,r[5]=r[5]+y>>>0,r[6]=r[6]+h>>>0,r[7]=r[7]+_>>>0}var A=new Array(r.length);for(_=0;_>>e|t<<32-e},i.z0=function(e){return i.ROTR(2,e)^i.ROTR(13,e)^i.ROTR(22,e)},i.z1=function(e){return i.ROTR(6,e)^i.ROTR(11,e)^i.ROTR(25,e)},i.q0=function(e){return i.ROTR(7,e)^i.ROTR(18,e)^e>>>3},i.q1=function(e){return i.ROTR(17,e)^i.ROTR(19,e)^e>>>10},i.Ch=function(e,t,r){return e&t^~e&r},i.Maj=function(e,t,r){return e&t^e&r^t&r},i);function i(){}t.Sha256=n}},[375]),pbjsChunk([218],{501:function(e,t,r){e.exports=r(502)},502:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"spec",function(){return A});var n=r(0),i=r(2),o=r(3),a=r(10),s=r.n(a),c=r(503),d=r.n(c),u=r(1);function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)""function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)""function(e,t){if(e){if("string"==typeof e)return f(e,t);var,-1);return"Object"===r&&e.constructor&&(,"Map"===r"""Set"===r?Array.from(e):"Arguments"===r""/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e)""function(){throw new TypeError("Invalid attempt to spread non-iterable instance.nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t""t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);rnnnx3c!-- Rubicon Project Ad Tag --x3en


nn")),c=d(m[i.size_id].split("x").map(function(e){return Number(e)}),2),s.width=c[0],s.height=c[1]),s.rubiconTargeting=(Array.isArray(i.targeting)?i.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:f.adUnitCode}),t.push(s)):n.logError("Rubicon: bidRequest undefined at index position:".concat(o),r,e),t},[]).sort(function(e,t){return(t.cpm""0)-(e.cpm""0)})},getUserSyncs:function(e,t,r,n){if(!x&&e.iframeEnabled){var i="";return r&&"string"==typeof r.consentString&&("boolean"==typeof r.gdprApplies?i+="?gdpr=".concat(Number(r.gdprApplies),"&gdpr_consent=").concat(r.consentString):i+="?gdpr_consent=".concat(r.consentString)),n&&(i+="".concat(i?"&":"?","us_privacy=").concat(encodeURIComponent(n))),x=!0,{type:"iframe",url:"https://".concat(g.syncHost"""eus","")+i}}},transformBidParams:function(e){return n.convertTypes({accountId:"number",siteId:"number",zoneId:"number"},e)}};function v(e,t){var r=o.b.getConfig("pageUrl");r=e.params.referrer?e.params.referrer:r""t.refererInfo.referer;return^http:/i,"https:"):r}function y(e,t){var r=e.params;if("video"===t){var i=[];return[,]:Array.isArray(n.deepAccess(e,""))&&[0]:Array.isArray(e.sizes)&&0e.length)&&(t=e.length);for(var r=0,n=new Array(t);r‘;var i,o}},h=function(e){var t=0=e&&t.innerWidth‘+v.vast_url+”“:v.vast_string&&(y=v.vast_string),g.pre_market_bids.push({id:v.deal_id,seatbid:[{bid:[{,dealid:v.deal_id,price:v.price,adm:y}]}],cur:v.currency,ext:{event_log:[{}]}})}}var h=n.getBidIdParameter(“mimes”,e.params)””[“application/javascript”,”video/mp4″,”video/webm”],_={id:e.bidId,secure:l,video:{w:p,h:f,ext:g,mimes:h}};””!=n.getBidIdParameter(“price_floor”,e.params)&&(_.bidfloor=n.getBidIdParameter(“price_floor”,e.params)),””!=n.getBidIdParameter(“start_delay”,e.params)&&(“start_delay”,e.params))),””!=n.getBidIdParameter(“min_duration”,e.params)&&(“min_duration”,e.params)),””!=n.getBidIdParameter(“max_duration”,e.params)&&(“max_duration”,e.params)),””!=n.getBidIdParameter(“placement_type”,e.params)&&(“placement_type”,e.params)),””!=n.getBidIdParameter(“position”,e.params)&&(“position”,e.params)),e.crumbs&&e.crumbs.pubcid&&(c=e.crumbs.pubcid);var S=navigator.language?”language”:”userLanguage”,I={id:s,imp:_,site:{id:””,page:a,content:”content”},device:{h:screen.height,w:screen.width,dnt:n.getDNT()?1:0,language:navigator[S].split(“-“)[0],make:navigator.vendor?navigator.vendor:””,ua:navigator.userAgent},ext:{wrap_response:1}};n.getBidIdParameter(“number_of_ads”,e.params)&&(I.ext.number_of_ads=n.getBidIdParameter(“number_of_ads”,e.params));var A={};return 1==n.getBidIdParameter(“spotx_all_google_consent”,e.params)&&(A.consented_providers_settings=u),t&&t.gdprConsent&&(A.consent=t.gdprConsent.consentString,void 0!==t.gdprConsent.gdprApplies&&n.deepSetValue(I,”regs.ext.gdpr”,t.gdprConsent.gdprApplies?1:0)),t&&t.uspConsent&&n.deepSetValue(I,”regs.ext.us_privacy”,t.uspConsent),n.deepAccess(e,”userId.id5id.uid”)&&(A.eids=A.eids””[],A.eids.push({source:””,uids:[{id:e.userId.id5id.uid}],ext:e.userId.id5id.ext””{}})),c&&(A.fpc=c),e&&e.schain&&(I.source={ext:{schain:e.schain}}),e&&e.userId&&e.userId.tdid&&(A.eids=A.eids””[],A.eids.push({source:””,uids:[{id:e.userId.tdid,ext:{rtiPartner:”TDID”}}]})),n.isEmpty(A)””(I.user={ext:A}),{method:”POST”,url:””+s,data:I,bidRequest:t}})},interpretResponse:function(e,t){var r=[],i=e.body;return i&&n.isArray(i.seatbid)&&n._each(i.seatbid,function(e){n._each(,function(e){var a={};for(var c in t.bidRequest.bids)e.impid==t.bidRequest.bids[c].bidId&&(a=t.bidRequest.bids[c]);n._each(a.params.pre_market_bids,function(t){,i.cur=t.currency)});var d={requestId:a.bidId,currency:i.cur”””USD”,cpm:e.price,creativeId:e.crid””””,dealId:e.dealid””””,ttl:360,netRevenue:!0,,cache_key:e.ext.cache_key,vastUrl:””+e.ext.cache_key,videoCacheKey:e.ext.cache_key,mediaType:s.d,width:e.w,height:e.h};d.meta=d.meta””{},e&&e.adomain&&0e.length)&&(t=e.length);for(var r=0,n=new Array(t);rt?e:t}function d(e,t,n){!e.preload&&e.preloadThreshhold&&function(e,t,n,i){return<=i+n&&u(e)}(,t.rect,e.preloadThreshhold,n)&&(e.preload=!0,setTimeout(function(){e.trigger("preload",new r("preload",t))},15))}function c(n){var i=n.el.getBoundingClientRect(),o=t.innerHeight""e.documentElement.clientHeight,h=f(i,o),s=h/(i.height""o),l={target:n.el,rect:i,visiblePx:h,visiblePercent:s};!function(e,t){var n=t.visiblePx,i=t.visiblePercent;n&&i>=e.shownThreshold&&!e.seen?(e.seen=!0,setTimeout(function(){e.trigger(“shown”,new r(“shown”,t))},15)):(!n””i1&&(h+=e(r,Math.floor(n/o),i-1,o)),h},this.getVerticallyVisiblePixels=f,this.getViewportHeight=function(){return t.innerHeight””e.documentElement.clientHeight””e.body.clientHeight},this.getViewportWidth=function(){return t.innerWidth””e.documentElement.clientWidth””e.body.clientWidth},this.isElementNotHidden=u,this.isElementInViewport=function(n){var i=n.getBoundingClientRect();return>=0&&i.left>=0&&i.bottom<=(t.innerHeight""e.documentElement.clientHeight)&&i.right<=(t.innerWidth""e.documentElement.clientWidth)},this.Visible=o}]); }, {}]; 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= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(“Invalid attempt to iterate non-iterable instance.nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.”); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step =; normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === “string”) return _arrayLikeToArray(o, minLen); var n =, -1); if (n === “Object” && o.constructor) n =; if (n === “Map””” n === “Set”) return Array.from(o); if (n === “Arguments””” /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null “” len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function mountLegacyServices() { Object.keys(window.modules).filter(function (key) { return typeof key === 'string' && key.match(/.legacy$/); }).forEach(function (key) { return window.require(key); }); } function tryToMount(fn, el, name) { try { fn(el); // init the controller } catch (e) { var elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML)); console.error("Error initializing controller for "".concat(name, "" on "").concat(elementTag, """), e); } } /** * mount client.js component controllers */ function mountComponentModules() { Object.keys(window.modules).filter(function (key) { return typeof key === 'string' && key.match(/.client$/); }).forEach(function (key) { var controllerFn = window.require(key); if (typeof controllerFn === 'function') { var name = key.replace('.client",""), instancesSelector = "[data-uri*="_components/".concat(name, "/"]"), defaultSelector = "[data-uri$="_components".concat(name, ""]"), instances = document.querySelectorAll(instancesSelector), defaults = document.querySelectorAll(defaultSelector); var _iterator = _createForOfIteratorHelper(instances), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var el = _step.value; tryToMount(controllerFn, el, name); } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } var _iterator2 = _createForOfIteratorHelper(defaults), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var _el = _step2.value; tryToMount(controllerFn, _el, name); } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } } }); } // 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(); // ]]

Source link

.  .  .  .  .  .  . .  .  .  .  .  .  .  .  .  .   .   .   .    .    .   .   .   .   .   .  .   .   .   .  .  .   .  .