An open drawer w/ granola bars and a hand reaching for them.
Photo illustration by Slate. Photos by t sableaux/iStock/Getty Images Plus, ConstantinosZ/iStock/Getty Images Plus, and NOPPAKHOON2016/iStock/Getty Images Plus.

Dear Prudence is online weekly to chat live with readers. Here’s an edited transcript of this week’s chat.

Danny Lavery: Just a few days left to try to ruin Christmas—let’s make them all count.

Q. I accidentally made everyone hate me: I’m a first-year teacher at an urban Title I middle school. As is common for many teachers in my position, I’m using my personal paycheck to cover the gaps that classroom funding doesn’t. After I realized at the beginning of the year that many of my students were having trouble concentrating, I started keeping a stash of healthy snacks near my desk. The students know they can come take a snack when they need one. The costs add up quickly, but it’s a sacrifice I’m willing to make if it helps my kids focus.

Not long after I started keeping the food in my room, I began noticing it disappearing dramatically between the time I left each afternoon and the time I clocked in the next morning. The only staff who have a key to my room are the custodians and the administrators—both of whom are fed a meal by the cafeteria if they work nights. Because I rarely stay late enough to see the night staff in person, I started leaving notes on the snacks, stating that they were for students. When that didn’t work, I eventually hid them in my desk or closet (neither of which lock). They were still being taken. I weighed my options and realized I was either going to have to stop buying food for the kids or tell someone, so I mentioned what was happening to our head of facilities. Unbeknownst to me, our head of security hid a camera in the classroom, caught the custodian who was stealing, and promptly fired him.

My students’ food is no longer disappearing, but now I have another problem: All my co-workers hate me! The administrative assistant told anyone who would listen what happened, and now everyone is angry that I caused someone to lose his job. Some of the other teachers had also grumbled in the teachers’ lounge about food going missing from their rooms, so I know I’m not the only one who was upset, but apparently I broke some unspoken rule about tolerating food theft. Was I wrong to report it? I’m seriously considering quitting because so many people are suddenly being hostile and treating me like an entitled Karen.

A: It’s safe to assume that the overnight custodial staff continued to take food from your classroom for the same reason your students do—because they or someone in their family needed it, and the single meal provided by the school was insufficient to meet their needs. People who steal food usually need food very badly, and while you’re not personally responsible for the collective social failure that’s led to so many of your students’ and colleagues’ food insecurity, I do think it’s important to “tolerate” food theft inasmuch as it seems to me an act of desperation that requires additional support, not punishment, and certainly not unemployment. Your former colleague was already struggling with hunger (or supporting a hungry relative) while working; now he’s got joblessness on top of that to contend with. You say the administration installed cameras and fired the man “unbeknownst to [you],” but you could reasonably have anticipated that reporting would lead to such a consequence, so I think it’s important to acknowledge your direct, intentional role in this man’s firing. The fact that your colleagues were also concerned about food going missing does not necessarily mean that you made the right choice. Yes, it’s frustrating and often expensive to lose food at work, but remember the circumstances—a night janitor at a school where many of the students are going hungry likely has limited options.

Let’s then consider the other options you had available to you, bearing in mind that you, your students, and all of your co-workers—faculty and staff alike—have been forced into very difficult situations: You could have taken the snacks home with you in your bag at the end of the day, which might have been inconvenient but not impossible. You could have purchased an inexpensive portable safe, or a cheap bike lock to shut your desk drawer with overnight. Alternatively, you could have banded together with your fellow teachers and set up a community “fridge” where anyone could leave food and anyone could take it as needed, or pushed the school administration to do so officially. You could have left a note for the night staff letting them know you’d set aside something in particular for them, since their regular overnight meal clearly isn’t enough. Reporting the loss of snacks was not the only choice you had, and it did result in your colleague losing his job and making his life significantly worse. Your fellow teachers’ anger is understandable, and I’d encourage you to use this discomfort to reconsider your position and look for ways to try to make amends (directly to this man if possible, and to others in need of help if not), rather than quitting in a fit of pique.

How to Get Advice From Prudie:

• Send questions for publication to [email protected]. (Questions may be edited.)

• Join the live chat Mondays at noon. Submit your questions and comments here before or during the 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.

Q. Charity fatigue: My family is big on charity. My father donated his skills to build houses, my mother does free accounting for senior citizens, and both my older sisters work in non-profits. Maybe my city is just a cesspit of humanity, but every charitable endeavor I have done this year has crashed and burned in my face. The free kid-bike charity closed because half the bikes ended up on Craigslist by the parents; I got sexually harassed by homeless men at the outreach center; I tried to do free online tutoring only to be cursed out for not “reminding” the parents about tutoring times or tests; and someone threw a rock through my car window for seemingly no reason at the outreach center.

I am burnt out and generally bitter about the state of mankind. My family is unsympathetic. My older sister lectured me about my experience being sexually harassed. The man was mentally ill, so I need to “let it go” that he openly masturbated in front of me. My parents remind me to “count my blessings,” and it just makes me feel worse.

I have started avoiding talking to them. The holidays have been putting more pressure on me—my office has an Angel Tree; my social media feed is all sob stories and begging for donations; and my family keeps asking me what I am doing to “make the world brighter.” I want to hide under the covers until spring and cuddle my dog. How do I tell people the truth and avoid the Grinch label? Or should I just lie?

A: Let’s set aside for now the question of whether working for a non-profit is in fact the best way to help humanity! You have every right to object to sexual harassment, regardless of how much the person sexually harassing you may be suffering himself, and every right to decide not to return to an outreach center that can’t guarantee your safety. Your sister’s suggestion to “let it go” is a terrible one, and I’m so sorry she said that to you. She was wrong to say it, and she owes you an apology.

One of the problems with the charity model is exactly the kind of burnout and resentment you describe—people being “helped” by someone who’s not part of their day-to-day community and who expects, implicitly or explicitly, to be repaid in gratitude. Did the parents in your city really come together and decide that their most pressing need was bikes for their kids? Or did someone else—probably with the best of intentions, but perhaps with insufficient experience—decide that for them? Are their neighborhoods safe for kids to bike in? Do their parents have time and energy to teach them how to ride bikes? Are they food- or housing-insecure, such that a bike would be more of an albatross than a gift? If you need money to pay medical bills and get groceries and keep the electricity on, and some charity gives your kid a bike, the most logical thing in the world is to sell it on Craigslist so you can get the money you actually need instead of the bike you don’t. Your family’s apparently uncritical belief that any and all “charity” work is the end-all and be-all of justice is not one you need to buy into. And responding to someone’s real frustration (especially nine months into a pandemic) with pablum like “count your blessings” and relentless reminders to “make the world brighter” is maddening! I don’t wonder that you need a break from some of it.

Give yourself permission to take a break from social media, to unfollow the worst offenders, to cuddle your dog, to actually do things you enjoy, to cultivate relationships with people who don’t view free time as a problem to be funneled into charity immediately. While I hope you can reconsider the perspectives of the people these charities are “helping” such that you can think of them as real, frustrated human beings whose basic needs aren’t being met, instead of malfunctioning gratitude machines, you also don’t need to assign yourself the job of fixing all their problems, either.

Q. How do I deal with a jealous friend? I met one of my closest friends in college, and she’s a great person, most of the time. The one thing that really bothers me is that she’s jealous of people in our field who are successful. Anytime someone we know, or a random person that has a similar age to us, is remotely successful, she gets jealous. She’ll say things like “why isn’t that me” or just “ugh” and sigh. It’s making me more and more annoyed as time goes on and I notice it more. Of course, I also worry that she will direct that at me and I don’t need that in my life. I’ve been hesitant to tell her when I get job interviews or offers because I don’t know if she’s honest in her “congratulations!” What do I do? I really don’t know how to address this, or even if it’s worth trying.

A: It may be impossible for you to address how your friend feels internally when good things happen to other people, but it’s relatively easy to say to her, “I want you to stop sighing and complaining whenever someone else has good news. It’s exhausting and rude.” (Feel free to paraphrase that scene from Father of the Bride, when Diane Keaton has to bail Steve Martin out for stealing hot dog buns, and tells him she’ll only take him home if he first promises to pull it together “and stop hyperventilating, rolling your eyes, unbuttoning your top collar button, making faces in general, telling everyone you meet how much this wedding is costing, and try to remember that with every roll of your eyes, you are taking away a piece of [your daughter]’s happiness.”) You can offer her the opportunity to have a real conversation about her fears, anxieties, or insecurities. You’re not asking her to pretend to be happy all of the time! But you can, and should, ask her to bring them up directly, instead of appending them passive-aggressively to everybody else’s good news. It’s very much worth trying, especially because if you don’t say anything now, you’re only going to resent her more and more, until you find conversation with one of your “closest friends” totally unbearable.

Q. Passing the boss’s test? My partner and I are in our early 30s and have a close relationship with her younger sister, “Diane,” who is in her mid 20s and lives in a different state. Diane called us for support after a difficult doctor’s appointment. Later on in the conversation, she casually disclosed that her boss is making her pose as him to take his recertification test in exchange for two additional (unpaid) days off work to quarantine before she goes home to be with her grandmother as she recovers from a major surgery. We were shocked and enraged that this man would put Diane in this position and shared that we felt it was abusive and wrong of him. Diane agreed that it was unfair, but claims her lawyer friend told her it was unlikely that she would get in trouble and that she fears losing her job during the pandemic. Prudie, we do not share her optimism that she is unlikely to face any legal repercussions if caught and fear that the abusive requests from her boss will not end here. What can we do to help?

A: Encourage her to get a second opinion from another lawyer; not one she’s already friends with, but someone who works in employment law and is offering her actual counsel. If she’s receptive, you can offer to help her look for a lawyer to consult, and to discuss her other options if she wants to go over his head and report what he’s asking her to do to upper management, as well as what risks she might be running if she does get caught. Maybe it is “unlikely” that she’ll get in trouble, but that’s not the same thing as “impossible.” Beyond that, you should let her make her own decision—you really don’t have another option, since you live out of state and don’t work at the same company.

Q. She won’t let me date her sister: I’m trying to date this girl but her older sister seems to get upset every time I see her. I know exactly why, as I was very close with the older sister before I met my girlfriend. To be honest, I was in love with the older sister but she was dating someone and is now married. The problem is, we also slept together a few times but agreed to stop for obvious reasons.

I’m trying to move on but I think it bothers her seeing me with someone else, especially her sister. It kills me that it hurts her. I don’t know if I should just end it and cut myself out of both of their lives, saving us all the trouble, or if I should try to make it work?

A: End it, stop seeing both sisters, and save yourselves a lot of trouble.

Q. Snoring: I snore. My previous spouse, who died, used to tell me it was comforting. But when camping with friends, there were jokes about loud snoring coming from my tent. I always thought it might be my husband. I am now in the dating world and although I’ve had sex, I haven’t spent the night with anyone because I am terrified about my snoring. I recently traveled with friends and shared a hotel room; they said the snoring was pretty quiet. But I just did one of those phone app tests and got a pretty high score with an hour of “epic” snoring. I don’t have sleep apnea but my dentist tells me I have a larger-than-usual uvula. I don’t think the snoring will go away, but I’m in my 50s and would really like to spend the night with someone someday and not be immediately shunned. How should I approach this?

A: Talk to your doctor! There are a number of possible treatments for snoring, and if you’ve already talked to your dentist about the subject, it shouldn’t be too different to raise the issue with your doctor and ask about other options. You can also give future dates a heads-up in advance so they can bring earplugs. Lots of people snore, so it’s not as if you’ll be bringing up a previously unheard-of or insurmountable challenge. You’ve got this!

Q. Re: I accidentally made everyone hate me: You acknowledge that the custodian’s food stealing represents a “collective social failure” and then proceed, in the very next breath, to excoriate a 20-something first-year teacher and blame that teacher personally for the custodian’s job loss and hunger.  This person is just out of college and isn’t responsible for feeding students, let alone staff, on what is presumably a meager first-year salary. This teacher will have to live with regrets for what happened, but the teacher certainly does not deserve to be singled out by you for opprobrium for what you admit is a societal failure.

A: I think there’s a lot of room between “you were put in an impossible situation when your students were coming to class hungry and unable to focus, and your decision to offer snacks was kindly meant” and “you had reason to expect the custodian might get fired when you alerted the administration,” and I commend the letter writer on the first and think they were wrong on the second. I think they should not have made that choice, and hope they don’t make a similar choice in the future. This is a story where someone’s desperate case has been made all the more desperate for the letter writer’s intervention, and the letter writer asked for my judgment on their case, so I feel quite comfortable singling them out for my judgment here. I think they acted wrongly, but I do not think they’re an irredeemable monster, either.

Q. Re. Charity fatigue: This may not be the answer the letter writer wants, but there are many meaningful ways to volunteer and contribute without having to interact with people or even leave your house! Many small organizations desperately need help with data entry, design, website updates, and other tasks. The need for volunteering that doesn’t make for a feel-good story or a social media post is dire, and it could be the writer just hasn’t found the right fit.

A: Right, I don’t want to make a ruling on ever “helping other people generally” again. But the sense I got from this letter was that the letter writer was looking for reassurance that it’s OK to take a few months to look after oneself in a crisis without taking on new volunteer work, and I’m more than prepared to offer such reassurance. I hope someday they’re able to find kinds of work that are genuinely meaningful and transformative, both for the letter writer and for others. But for right now, they want to hang out with their dog and hibernate a little, and that’s a lovely, necessary part of life too.

Q. Re: Charity fatigue: I have sympathy for the letter writer because I too was raised in a privileged family where the unspoken rule was basically that if you arrived home at the end of the day with enough energy left over to pursue a creative hobby you enjoyed, it must mean you weren’t volunteering enough and were a bad person. I think it’s worth reminding yourself, and possibly your family, that there are more ways to make the world brighter than to run yourself ragged volunteering. I don’t think that just giving up on humanity will make you feel better, but you absolutely deserve to find something positive to do that fulfills and sustains you as well. Art is meaningful; being a good friend to the people in your life is meaningful; civic engagement like calling your city councilperson and giving them a piece of your mind about the things you’ve witnessed while volunteering is meaningful. If volunteering isn’t making you happy, you can stop and it doesn’t mean you’re a bad or worthless person.

A: That’s a really good point, especially when you consider that the letter writer’s sister responded to a report of serious sexual harassment with “Get over it.” There seems to be a shared sense that having limits or boundaries is a privilege they’re morally required to abdicate. That’s worth pushing back against!

Discuss this column on our Facebook page!

Classic Prudie

Q. Grandma’s secret Christmas: I am fortunate to have a large extended family living in close proximity, including four grandparents. My mother-in-law sees my children regularly and never forgets their birthdays, which is wonderful. Traditionally, our families gather the weekend before Christmas for a gift exchange. We always have a nice time. This year I discovered, through a conversation with my niece, that Grandma travels to their home on Christmas morning to cook them a special breakfast and celebrate what my niece describes as “real Christmas when Grandma brings our big gifts.” This year, my niece explained, she expects some expensive electronics and gift cards from my MIL in addition to the gifts she’d opened that day at our gathering. My feelings were hurt, and I told my husband. He admitted that he knew about these other Christmas celebrations but sees no need to confront his mother about them because “our children don’t need those gifts.” I agree that we do not need any more gifts, but this “secret Christmas” celebration seems wrong and hurtful to me, and I worry about what might happen when my daughters are old enough to feel left out if they discover them, too. Should I confront my MIL? If not, what do I tell my children when they inevitably hear about this? Read what Prudie had to say.

')}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 Article