"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[8792],{1549:function(e,t,n){n.d(t,{EB:function(){return o},KV:function(){return s},OU:function(){return r},gj:function(){return i},rW:function(){return c}});const o="url:change",r="url:scrolled",i="page:loaded",c="read-article:click",s="post:shared"},1682:function(e,t,n){n.d(t,{A:function(){return s}});var o=n(8943),r=n(1775),i=n(5633);let c=null;function s(){return null==c&&(c={intersectionObserverProvider:r.A,eventBus:o.A,settings:window.REBELMOUSE_BOOTSTRAP_DATA,path:window.location.pathname,pathParams:(0,i.A)(window.location.search)}),c}},8943:function(e,t){const n={};t.A={subscribe:function(e,t){n[e]=n[e]||[],n[e].push(t)},publish:function(e,t){(n[e]||[]).forEach((e=>{e(t)}))}}},1775:function(e,t,n){var o=n(4361);t.A={addTask:function(e){function t(t){const{target:n}=t;return t.isIntersecting?e.firstOnly&&e._reportedIntersections>0?null:(e._reportedIntersections++,e.firstOnly?(e.observer.disconnect(),e.mutationObserver.disconnect()):e.oneTime&&(e.observer.unobserve(n),e.finished.add(n)),void(e.onIntersect&&e.onIntersect(t))):(function(t){e.onNonIntersect&&e.onNonIntersect(t);const{target:n}=t;if(e.onBellowViewport||e.onAboveViewport){const{top:t}=n.getBoundingClientRect();t<0&&e.onAboveViewport&&e.onAboveViewport(n),t>=0&&e.onBellowViewport&&e.onBellowViewport(n)}}(t),null)}e._reportedIntersections=e._reportedIntersections||0,e.threshold=e.threshold||0,e.finished=e.finished||new Set([]);const n=e.rootMargin||`0px 0px ${e.threshold}px 0px`;return e.observer=new IntersectionObserver(e.entriesHandler||function(e){e.forEach(t)},{rootMargin:n}),e.selector&&(e.mutationObserver=(0,o.A)(e.selector,(t=>{e.finished.has(t)||(e.onAppear&&e.onAppear(t),e.observer.observe(t))}))),e.rawNodes&&e.rawNodes.forEach((t=>{e.observer.observe(t)})),[e.observer,e.mutationObserver]}}},4361:function(e,t,n){function o(e,t,n,o){const r=new Set([]);let i=!1;const c=o||document,s=o||document.body;c.querySelectorAll(e).forEach((e=>{n&&i||(i=!0,t(e),r.add(e))}));const a=new MutationObserver((()=>{c.querySelectorAll(e).forEach((e=>{n&&i||r.has(e)||(i=!0,t(e),r.add(e),n&&a.disconnect())}))}));return n&&i||a.observe(s,{childList:!0,subtree:!0}),a}n.d(t,{A:function(){return o}})},1639:function(e,t,n){var o={};n.r(o),n.d(o,{isPostPublished:function(){return qe}});var r=n(1549),i=n(2320);const c=()=>n.e(2030).then(n.bind(n,2030)),s=()=>n.e(243).then(n.bind(n,243)),a=()=>n.e(3636).then(n.bind(n,3636)),u=()=>n.e(8482).then(n.bind(n,8482));var d=n(3967),l=n(4361);const f="menu-opened";function m(){document.body.classList.toggle(f)}function h(e){e.addEventListener("click",m)}function p(){document.body.classList.remove(f)}const g=()=>n.e(4842).then(n.bind(n,4842)),w=()=>n.e(7246).then(n.bind(n,7246)),v=()=>n.e(6400).then(n.bind(n,6400));var b=n(696);const A=()=>n.e(4386).then(n.bind(n,4386));var y=n(6172),E=n(1916);function S(e){E.E(1500).then((function(t){const n=e.target;window.FB.XFBML.parse(n.parentElement,(function(){E._(t)}))}))}function _(){const e=window.REBELMOUSE_BOOTSTRAP_DATA;window.FB.init({appId:e.fbId,version:e.fbAppVersion,status:!0,cookie:!0})}function T(e){E.E(1500).then((function(t){const{target:n}=e;n.addEventListener("load",(function(){E._(t)}));const{runnerSrc:o}=n.dataset;o&&(n.src=o,delete n.dataset.runnerSrc)}))}var L=n(6975),k=n(5633);const O=[".rm-container-resized",".rebellt-item",".body-description",".widget__img","article"];function P([e,t]){return`${e}=${t}`}const I={"4g":window.REBELMOUSE_BOOTSTRAP_DATA.engine.image_quality_level||80,"2g":60,"slow-2g":60,"3g":75};function x(e,t,n){let o=n[e];const r=t.getAttribute(e);return r&&!isNaN(r)?o=r:"dataset"in t&&e in t.dataset&&(o=t.dataset[e]),o&&parseInt(o,10)}function C(e,t,n,o){const r=parseInt(n,10),i=o?parseInt(o,10):null,c=new URL(e),s=(0,k.A)(c.search),a=x("width",t,s),u=x("height",t,s),{maxWidth:d,maxHeight:l}=function(e,t,n,o){if(n>e)return{maxWidth:e,maxHeight:t};let r=n,i=parseInt(r*t/e,10);return o&&i>o&&(i=o,r=parseInt(i*e/t,10)),{maxWidth:r,maxHeight:i}}(a,u,r,i),f=function(){let e=window.devicePixelRatio?parseInt(window.devicePixelRatio,10):1;return void 0!==window.REBELMOUSE_BOOTSTRAP_DATA.engine.override_device_pixel_ratio&&(e=parseInt(window.REBELMOUSE_BOOTSTRAP_DATA.engine.override_device_pixel_ratio,10)),Math.min(3,Math.max(e,1))}(),m={...s,quality:I[(0,L.ZB)()]};if("coordinates"in s&&"height"in s&&(m.coordinates=s.coordinates,m.height=parseInt(l*f)),"width"in s&&(m.width=parseInt(d*f)),Object.keys(m).length>1){const e=(h=m,`?${Object.entries(h).map(P).join("&")}`);return c.search=e,c.href}return null;var h}function B(e){const t=function(e){return O.reduce((function(t,n){if(t)return t;const o=e.closest(n);if(!o)return null;if(o.dataset&&o.dataset.rmCalcWidth)return o;const r=100*Math.ceil(o.offsetWidth/100);return r>0?(o.dataset.rmCalcWidth=r,o):null}),null)}(e);if(!t)return;const n=t.dataset.rmCalcWidth||t.offsetWidth,o=C(e.dataset.runnerSrc,e,n);o&&(e.dataset.runnerSrc=o,e.dataset.adjustedSrc=!0)}function D(e){return function(){E._(e)}}function R(e){E.E(1e3).then((function(t){const n=e.target;n.dataset.adjustedSrc||B(n);const o=n.dataset.runnerSrc,r=D(t);n.addEventListener("load",r),n.src=o,n.removeAttribute("data-runner-src"),n.removeAttribute("type")}))}function M(e){E.E(1e3).then((function(t){const n=e.target;let o=n.dataset.runnerImgHd;if(window.REBELMOUSE_BOOTSTRAP_DATA.engine.lazyLoadShortcodeImages){const e=C(o,n,n.offsetWidth,n.offsetHeight);e&&(o=e)}const r=D(t),i=new Image;i.addEventListener("load",r),i.src=o,n.style.backgroundImage=`url(${o})`}))}const q={"4g":function(){return 300},"3g":function(){return 700},"2g":function(){return 900},"slow-2g":function(){return 900}};function U(e,t){if(!t||!e)return!1;const{bottom:n,height:o}=e.getBoundingClientRect(),{bottom:r,height:i}=t.getBoundingClientRect();return n<0&&r<0||!(o>i+10)||(t.classList.add("rm-off"),!1)}const j="instagram-media",$="lazy-instagram-media";function N(e){E.E(1700).then((async function(t){const o=e.target;o.classList.add(j),o.classList.remove($);try{const{renderInstagramEmbed:e}=await n.e(9476).then(n.bind(n,9476));e(o,(function(e){const n=o.closest(".rm-embed-container.rm-loading");n&&(n.classList.remove("rm-loading"),n.classList.add("rm-loaded"),setTimeout((()=>{U(e,n)}),500)),E._(t)}))||E._(t)}catch(e){E._(t)}}),(()=>{}))}function V(e){e.classList.remove(j),e.classList.add($)}const z="text-post-media",H="lazy-text-post-media";function F(e){const t=e.target;E.E(1700).then((async function(e){t.classList.add(z),t.classList.remove(H);try{const{renderThreadsEmbed:o}=await n.e(9476).then(n.bind(n,9476));o(t,(function(n){const o=t.closest(".rm-embed-container.rm-loading");o&&(o.classList.remove("rm-loading"),o.classList.add("rm-loaded"),setTimeout((()=>{U(n,o)}),500)),E._(e)}))||E._(e)}catch(t){E._(e)}}),(()=>{}))}function W(e){e.classList.remove(z),e.classList.add(H)}function G(){}const J=[];function K(e){const t=J.shift();t&&E._(t);const n=e.target.closest(".rm-embed-container.rm-loading");n&&(n.classList.remove("rm-loading"),n.classList.add("rm-loaded"),U(e.target,n))&&(e.target.querySelector("iframe").style.height=`${n.getBoundingClientRect().height}px`)}function Q(e){E.E(1200).then((function(t){let n=e.target;n.matches(".rm-embed-twitter")&&(n=n.querySelector("blockquote.twitter-custom-tweet")),n.dataset.loading?E._(t):(n.dataset.twitterTweetId||(n.dataset.twitterTweetId=n.dataset.lazyTweetId),n.dataset.loading=!0,J.push(t),n.classList.add("twitter-tweet"),window.twttr.widgets.load(n.parentElement))}))}function X(){twttr.ready((function(){twttr.events.bind("rendered",K)}))}function Y(e){e.classList.remove("twitter-tweet"),e.dataset.lazyTweetId=e.dataset.twitterTweetId,delete e.dataset.twitterTweetId}function Z(){document.querySelectorAll("blockquote.twitter-custom-tweet").forEach(Y)}async function ee(e){return!(e<0)&&(window.tiktokEmbed&&"lib"in window.tiktokEmbed?window.tiktokEmbed.lib:(await new Promise((function(e){setTimeout(e,100)})),ee(--e)))}function te(e){const{target:t}=e;E.E(1700).then((async function(e){function n(){E._(e)}const o=await ee(50);t.classList.add("tiktok-embed"),t.classList.remove("tiktok_lazy_shortcode"),o?o.render([t]).then(n).then((function(){const e=t.closest(".rm-embed-container.rm-loading");e&&(e.classList.remove("rm-loading"),e.classList.add("rm-loaded"),setTimeout((()=>{U(t,e)}),1500))})):n()}))}var ne=n(9879);function oe(e){const{target:t}=e,{account:n,player:o}=t.dataset,r=function(e,t){return`https://players.brightcove.net/${e}/${t}_default/index.min.js`}(n,o);E.E(1500).then((function(e){function n(){E._(e)}(0,ne.A)(r,(function(){bc(t).on("loadedmetadata",n)}))}))}function re(e){const t=document.querySelector("script.lazy-style");if(!t)return;const n=document.createElement("style");n.type="text/css",n.classList.add("lazy-style"),n.textContent=t.textContent,document.head.appendChild(n),t.remove()}function ie(e){E.E(2e3).then((function(){const t=e.target,n=t.closest(".rm-embed-container.rm-loading");n&&(n.classList.remove("rm-loading"),n.classList.add("rm-loaded")),t.dataset.id||(t.classList.add("imgur-embed-pub"),t.dataset.id=t.dataset.lazyId),"createIframe"in window.imgurEmbed&&window.imgurEmbed.createIframe(t.parentElement)}))}function ce(e){e.classList.remove("imgur-embed-pub"),e.dataset.lazyId=e.dataset.id,delete e.dataset.id}function se(){document.querySelectorAll("blockquote.imgur-custom-embed-pub").forEach(ce)}var ae=n(5845);const ue=()=>n.e(7890).then(n.bind(n,7890)),de=()=>n.e(5067).then(n.bind(n,5067)),le=()=>Promise.all([n.e(959),n.e(6442)]).then(n.bind(n,6442));var fe=n(8437),me=n(367),he=n(7611),pe=n(2140),ge=n(48);const we=()=>n.e(9027).then(n.bind(n,9027)),ve=()=>n.e(7452).then(n.bind(n,7452));function be(e){ve().then((function(t){t.showFlexibleSticky(e)}))}const Ae="show-search";var ye={trackPageView:function({url:e,customDimensions:t,headline:n,id:o}){const r=document.querySelector(`[elid="${o}"] .headline`),i={page_title:r?r.innerText:n,page_location:e};Se(t,((e,t,n,o)=>e(t,"page_view",{...i,...o})))},trackEvent:_e,trackPostCardClick:function(e){_e({...e,eventType:"post_interaction",action:"post_card_click"})},trackPostShare:function({customDimensions:e,provider:t}){Se(e,((e,n)=>e(n,"share",{method:t,content_type:"post"}))),_e({customDimensions:e,eventType:"share_click-post",action:"click-post"})}};function Ee(e){"function"==typeof window.gtag?e(window.gtag):setTimeout((()=>{Ee(e)}),100)}function Se(e,t){Ee((n=>{const o=e?(r=e,Object.entries(r).reduce(((e,[t,n])=>({...e,[`dimension${t}`]:n.toString()})),{})):{};var r;t(n,"event","send",o)}))}function _e({eventType:e,action:t,customDimensions:n}){Se(n,((n,o,r,i)=>n(o,t,{event_category:e,...i})))}var Te=n(3989),Le=n(4465);const ke={"page-view":"user"},Oe={dp:"post",pp:"post",fp:"section",sp:"section",tp:"tag"};function Pe(){const[e]=window.REBELMOUSE_BOOTSTRAP_DATA.resourceId.split("_");return Oe[e]||"public"}function Ie(){const e=(0,Te.A)();return{site_id:window.REBELMOUSE_BOOTSTRAP_DATA.site.id,roar_id:window.REBELMOUSE_BOOTSTRAP_DATA.runner.id,client:"tablet"!==e?e:"other",referrer:document.referrer}}function xe(e,t,n){const o=n?{site_id:window.REBELMOUSE_BOOTSTRAP_DATA.site.id,...t}:{...Ie(),...t},r={event:e,version:1,format:"json",data:JSON.stringify(o)},i=n?"split-testing":ke[e]||"pages",c=new URLSearchParams(r).toString(),s=`https://${i}-stats.rbl.ms/spacer.gif?${Date.now()}&${c}`,a=`https://pages-stats.rbl.ms/spacer.gif?${Date.now()}&${c}`;fetch(s),n&&"post-page-view"==e&&fetch(a)}function Ce(e,t){const{current:{campaign_id:n,hypothesis_id:o}}=t;return{...e,campaign_id:n,hypothesis_id:o}}function Be(e){return e&&e.split_testing&&e.split_testing.current}function De(e){return(e||[]).map((e=>e&&"object"==typeof e?e.id:e))}var Re={trackPageView:function(e){const{post:t}=e,n=window.REBELMOUSE_BOOTSTRAP_DATA;let o,r=Pe(),i=!1;if(t)r="post",o={post_id:e.id,provider_id:t.providerId,sections:De(t.sections),authors:De(t.authors)},i=Be(t),i&&(o=Ce(o,t.split_testing));else if("section"!==r||n.site.isCommunitySite)o="tag"===r?{tag:n.tag.slug,sections:[]}:{sections:[]};else{const e=n.section.id||0;o={section_id:e,sections:[e]}}xe(i||`${r}-page-view`,o,i)},trackTimeOnPage:function({timeMarker:e}){xe(`${Pe()}-page-view-duration`,{duration:e})},trackUser:function(){const{engine:{enableLoggedOutUserTracking:e}}=window.REBELMOUSE_BOOTSTRAP_DATA;if(!e&&!(0,Le.x3)())return;const t=window.REBELMOUSE_BOOTSTRAP_DATA.post;(function(){const e=localStorage.getItem("userTrackingId"),t="true"===localStorage.getItem("userTrackingLoggedStatus");return e&&t===(0,Le.x3)()?Promise.resolve(e):(n=`${window.REBELMOUSE_BASE_SSL_DOMAIN}/core/users/tracking/`,o={user_tracking_id:null,last_page_view_timestamp:null,user_type:"casual"},fetch(n,{method:"POST",body:JSON.stringify(o)}).then((e=>e.json()))).then((e=>{const{user_tracking_id:t}=e;return localStorage.setItem("userTrackingId",t),localStorage.setItem("userTrackingLoggedStatus",(0,Le.x3)()),t}));var n,o})().then((e=>{!function(e,t){const n=`history-${e}`,o=localStorage.getItem(n),r=o?JSON.parse(o):[],i=!r.some((e=>e.id===t));if(t&&i){const e=(new Date).getTime();r.push({id:t,timestamp:e});const o=864e5,i=(new Date).getTime()-30*o,c=r.filter((e=>e.timestamp>i));c.length>50&&c.splice(0,c.length-50),localStorage.setItem(n,JSON.stringify(c))}!function(e){const t=Object.keys(localStorage).filter((function(t){return t.startsWith("history-")&&t!=="history-"+e}));t&&t.forEach((function(e){localStorage.removeItem(e)}))}(e)}(e,t.id);const n={user_tracking_id:e};Object.keys(t).length>0&&(n.post_id=t.id,n.sections=De(t.sections),n.tags=t.tags),xe("page-view",n)}))},trackPostCardClick:function({id:e,post:t}){const n={post_id:e,provider_id:t.providerId,sections:De(t.sections)};Be(t)?xe("post-card-click",Ce(n,t.split_testing),!0):xe("post-card-click",n)},trackPostCardView:function({id:e,post:t}){xe("batch-post-card-view",{site_id:window.REBELMOUSE_BOOTSTRAP_DATA.site.id,roar_id:window.REBELMOUSE_BOOTSTRAP_DATA.runner.id,sections:De(t.sections),posts:[{post_id:e,authors:De(t.authors),provider_id:t.providerId}]})},batchPostCardView:function(e){xe("batch-post-card-view",{posts:e},!0)}};const Me=[0,1,2];function qe(e){const{status:t}=e;return Me.includes(parseInt(t,10))}function Ue(e,[t,n]){return e[`_${t}`]=n,e}const je=20265424,$e={[je](){window.PARSELY.updateDefaults({data:{level:(0,Le.x3)()&&localStorage.getItem("userMembershipStatus")?localStorage.getItem("userMembershipStatus"):"anonymous"}})}};function Ne(e,t){if(!function(){const e=window.PARSELY&&window.PARSELY.beacon&&"function"==typeof window.PARSELY.beacon.trackPageView,t=Object.keys(window.REBELMOUSE_BOOTSTRAP_DATA.post).length>0,n=t&&qe(window.REBELMOUSE_BOOTSTRAP_DATA.post);return e&&(!t||n)}())return;window.REBELMOUSE_BOOTSTRAP_DATA.site.id in $e&&$e[window.REBELMOUSE_BOOTSTRAP_DATA.site.id]();const n=t&&t.url||document.URL,o=t&&t.previousUrl||document.referrer;window.PARSELY.beacon.trackPageView({...e,url:n,urlref:o})}function Ve(e,t){var n;Ne({action:e,data:(n=t,"object"!=typeof n?{}:Object.entries(n).reduce(Ue,{}))})}var ze={trackPageView:function(e){Ne({js:1},e)},trackPageLoad:function(e){Ve("_pageLoad",e)},trackPostMouseOver:function(e){Ve("_post_mouse_over",e)},trackTimeOnPage:function({timeMarker:e}){Ve("_page-view-duration",e)},trackPostCardClick:function(e){Ve("_post_card_click",e)}},He=n(1682);const Fe=1;function We(e,{id:t,streams:n}){!function(e,t,n){setTimeout((function(){!function(e,t,n){const o=(0,He.A)().settings.runner.id,r=n.map((function(t){const[n,{period:o,events:r}]=Object.entries(t)[0];return{[n]:{period:o,score:(i=r,Object.entries(i).reduce(((t,[n,o])=>(n===e&&(t+=o),t)),0))}};var i})).filter((e=>0!==e[Object.keys(e)[0]].score));for(;r.length>0;)Ge({entity:t,site_id:o,streams:r.splice(0,16)})}(e,t,n)}),0)}(e,{post:t},n)}function Ge(e){const t=(0,He.A)().settings.engine.sendEventsToCurrentDomain?`${window.location.origin}/core/stats/tracking/streams-scores`:"https://streams-scores.rbl.ms/spacer.gif";fetch(`${t}?version=${Fe}&format=json&data=${JSON.stringify(e)}`)}var Je=function(e){(function(){const[e]=(0,He.A)().settings.resourceId.split("_");return"dp"===e||"pp"===e})()&&function({id:e,streams:t}){We("post-page-view",{id:e,streams:t})}(e)},Ke=function({id:e,streams:t}){We("post-teaser-view",{id:e,streams:t})},Qe=function({id:e,streams:t}){We("post-teaser-click",{id:e,streams:t})},Xe=n(88),Ye=n(3964);const Ze=(0,Ye.A)((function(e,t,n,o){if(!o[n])return;const r=document.querySelector(e);r&&(r[t]=o[n])})),et=Ze("title","textContent","headline"),tt=Ze('link[rel="canonical"]',"href","url"),nt=[Re,ye,ze];function ot(e){const t=e.getAttribute("elid");return{id:t,...(0,Xe.A)(`.post-context-${t}`)}}var rt={trackPageView(e){const t=(0,Xe.A)(`.post-context-${e.id}`),n={...e,...t};!function(e){et(e),tt(e)}(n),nt.forEach((e=>{e.trackPageView({...n})})),t.post&&Je(t.post)},trackPageLoad(e){const t=(0,Xe.A)(`.post-context-${e.id}`);Re.trackPageView({...e,...t}),ze.trackPageLoad({...e,...t}),t.post&&Je(t.post)},trackTimeOnPage(e){Re.trackTimeOnPage({timeMarker:e}),ze.trackTimeOnPage({timeMarker:e})},trackUser(e){Re.trackUser({...e})},trackPostCardClick(e){nt.forEach((t=>{t.trackPostCardClick(ot(e))}));const t=ot(e);t.post&&Qe(t.post)},trackEvent(e){const t=(0,Xe.A)(`.post-context-${e.id}`);ye.trackEvent({...e,...t})},trackSocialShare(e){const t=(0,Xe.A)(`.post-context-${e.id}`);ye.trackPostShare({...t,...e})},batchPostCardView(e){Re.batchPostCardView(e)},trackPostCardView(e){Re.trackPostCardView(ot(e));const t=ot(e);t.post&&Ke(t.post)}};function it(e){function t(t){t.isIntersecting&&(!ct.length||ct.length&&!function(e){const t=e.getAttribute("elid");return ct.some((e=>e.post_id===t))}(e))&&rt.trackPostCardView(e)}const n=new IntersectionObserver((function(e,n){e.forEach(t)}),{root:null,rootMargin:"0px",threshold:.8});e.querySelectorAll("article:not(.rm-stats-tracked)").forEach((function(e){e.classList.contains("rm-stats-tracked")||(e.classList.add("rm-stats-tracked"),n.observe(e))}))}const ct=[];function st(e){const t=JSON.parse(e.text);if("current"in t.post.split_testing){const{campaign_id:n,hypothesis_id:o}=t.post.split_testing.current;ct.push({post_id:parseInt(e.closest("article[elid]").getAttribute("elid"),10),campaign_id:n,hypothesis_id:o})}}function at(e){ct.length>0&&("pagehide"===e.type||"hidden"===document.visibilityState)&&(rt.batchPostCardView(ct),ct.length=0)}var ut=n(5312);const dt=()=>n.e(4585).then(n.bind(n,4585)),lt=()=>n.e(3929).then(n.bind(n,3929)),ft=()=>n.e(8318).then(n.bind(n,8318));function mt(e){e.addEventListener("click",(function t(){e.removeEventListener("click",t,!1),e.removeChild(e.firstElementChild),"theo"===window.REBELMOUSE_BOOTSTRAP_DATA.engine.defaultVideoPlayer&&n.e(7430).then(n.bind(n,7430)).then((t=>t.default(e)))}),!1)}const ht=()=>n.e(5604).then(n.bind(n,5604)),pt=()=>n.e(2379).then(n.bind(n,2379)),gt=()=>n.e(5172).then(n.bind(n,5172)),wt=()=>n.e(7953).then(n.bind(n,7953)),vt=()=>n.e(5134).then(n.bind(n,5134));function bt(e){const t=document.createElement("script"),n=e.getAttribute("data-src");n?t.src=n:t.text=e.text,e.replaceWith(t)}function At(){(0,l.A)('[type="text/lazy-javascript"]',bt)}var yt=n(906);function Et(e){try{e()}catch(t){console.error("Error in user code",t),console.error(e)}}var St=n(5258),_t=n(8908),Tt=n(7041),Lt=n(7344);function kt(e){n.e(6818).then(n.bind(n,6818)).then((t=>{t.default(e)}))}var Ot=n(8704),Pt=n(1775),It=n(2142);const xt={timeout:600},{add:Ct,run:Bt}=(0,It.A)((function(){"complete"!==document.readyState?window.addEventListener("load",qt):qt()}),!0);let Dt=!1;function Rt(e){e.timeRemaining()>49||e.didTimeout?Bt():(0,yt.B)(Rt,xt)}function Mt(){(0,yt.B)(Rt,xt)}function qt(){Dt=!0,setTimeout(Mt,2500)}function Ut(e){document.fonts.add(e),function(e){const t=`rm-fl-${e.family.toLowerCase().replace(/ /g,"_")}-${e.weight}`;document.body.classList.add(t)}(e)}function jt(e,t,{selector:n,...o}){const r=function(e,t,{weight:n,style:o,unicodeRange:r}){return function(){const i=n.split(",").map((function(n){return new FontFace(e,`url(${t})`,{style:o,unicodeRange:r,display:"swap",weight:n})}));i[0].load().then((function(){!function(e){localStorage.setItem(`rmFont-${e}`,"1")}(t),i.forEach(Ut)}))}}(e,t,o);var i;n?Pt.A.addTask({selector:n,firstOnly:!0,oneTime:!0,threshold:200,onIntersect:r}):function(e){return"1"===localStorage.getItem(`rmFont-${e}`)}(t)?r():(i=r,Dt?i():Ct(i))}function $t(e){return function(t){return t[e]}}let Nt=null;function Vt(){return Nt||(Nt=n.e(8323).then(n.bind(n,8323)).catch((function(e){throw Nt=null,e}))),Nt}const zt={draggable:{name:"Draggable",loader:function(){return n.e(929).then(n.bind(n,929)).then($t("Draggable"))},requires:[]},drawsvg:{name:"DrawSVG",loader:function(){return n.e(4565).then(n.bind(n,4565)).then($t("DrawSVGPlugin"))},requires:[]},easel:{name:"Easel",loader:function(){return n.e(7875).then(n.bind(n,7875)).then($t("EaselPlugin"))},requires:[]},flip:{name:"Flip",loader:function(){return n.e(4863).then(n.bind(n,4863)).then($t("Flip"))},requires:[]},gsdevtools:{name:"GSDevTools",loader:function(){return Promise.all([n.e(929),n.e(6356)]).then(n.bind(n,6356)).then($t("GSDevTools"))},requires:[]},inertia:{name:"Inertia",loader:function(){return n.e(4423).then(n.bind(n,4423)).then($t("InertiaPlugin"))},requires:[]},motionpath:{name:"MotionPath",loader:function(){return Promise.all([n.e(8344),n.e(7270)]).then(n.bind(n,7270)).then($t("MotionPathPlugin"))},requires:[]},motionpathhelper:{name:"MotionPathHelper",loader:function(){return Promise.all([n.e(8344),n.e(5865)]).then(n.bind(n,5865)).then($t("MotionPathHelper"))},requires:["MotionPath"]},morphsvg:{name:"MorphSVG",loader:function(){return Promise.all([n.e(8344),n.e(9519)]).then(n.bind(n,9519)).then($t("MorphSVGPlugin"))},requires:[]},observer:{name:"Observer",loader:function(){return n.e(8022).then(n.bind(n,8022)).then($t("Observer"))},requires:[]},physics2d:{name:"Physics2D",loader:function(){return n.e(818).then(n.bind(n,818)).then($t("Physics2DPlugin"))},requires:[]},physicsprops:{name:"PhysicsProps",loader:function(){return n.e(1498).then(n.bind(n,1498)).then($t("PhysicsPropsPlugin"))},requires:[]},pixi:{name:"Pixi",loader:function(){return n.e(8311).then(n.bind(n,8311)).then($t("PixiPlugin"))},requires:[]},scrambletext:{name:"ScrambleText",loader:function(){return n.e(5127).then(n.bind(n,5127)).then($t("ScrambleTextPlugin"))},requires:[]},scrollto:{name:"ScrollTo",loader:function(){return n.e(7571).then(n.bind(n,7571)).then($t("ScrollToPlugin"))},requires:[]},scrollsmoother:{name:"ScrollSmoother",loader:function(){return n.e(6216).then(n.bind(n,6216)).then($t("ScrollSmoother"))},requires:["ScrollTrigger"]},scrolltrigger:{name:"ScrollTrigger",loader:function(){return Promise.all([n.e(8022),n.e(9709)]).then(n.bind(n,9709)).then($t("ScrollTrigger"))},requires:[]},splittext:{name:"SplitText",loader:function(){return n.e(9373).then(n.bind(n,9373)).then($t("SplitText"))},requires:[]},text:{name:"Text",loader:function(){return n.e(5228).then(n.bind(n,5228)).then($t("TextPlugin"))},requires:[]},roughease:{name:"RoughEase",loader:function(){return Vt().then($t("RoughEase"))},requires:[]},exposcaleease:{name:"ExpoScaleEase",loader:function(){return Vt().then($t("ExpoScaleEase"))},requires:[]},slowmo:{name:"SlowMo",loader:function(){return Vt().then($t("SlowMo"))},requires:[]},customease:{name:"CustomEase",loader:function(){return Promise.all([n.e(8344),n.e(7549)]).then(n.bind(n,7549)).then($t("CustomEase"))},requires:[]},custombounce:{name:"CustomBounce",loader:function(){return n.e(3383).then(n.bind(n,3383)).then($t("CustomBounce"))},requires:["CustomEase"]},customwiggle:{name:"CustomWiggle",loader:function(){return n.e(6334).then(n.bind(n,6334)).then($t("CustomWiggle"))},requires:["CustomEase"]}},Ht={eases:["RoughEase","ExpoScaleEase","SlowMo"]};let Ft=null;const Wt={},Gt={};function Jt(e){return String(e).toLowerCase().replace(/[^a-z0-9]/g,"")}function Kt(e){return e.default||e.gsap}function Qt(e,t){const n=function(e){const t=Jt(e),n=Ht[t];if(n)return n;const o=zt[t];return o?[o.name]:[]}(t);return 0===n.length?{knownNames:e.knownNames,unknownNames:[...e.unknownNames,t]}:{knownNames:[...e.knownNames,...n],unknownNames:e.unknownNames}}function Xt(e,t,n){const o=zt[Jt(n)];o&&!t[o.name]&&(t[o.name]=!0,o.requires.forEach((function(n){Xt(e,t,n)})),e.push(o.name))}function Yt(e){const t=[],n={};return e.forEach((function(e){Xt(t,n,e)})),t}function Zt(e){return Wt[e]||(Wt[e]=zt[Jt(e)].loader().catch((function(t){throw delete Wt[e],t}))),Wt[e]}function en(e,t,n){const o={};return t.forEach((function(t,r){!function(e,t,n){Gt[t]||(Gt[t]=!0,e.registerPlugin(n))}(e,t,n[r]),o[t]=n[r]})),o}function tn(e,t){const o=(Array.isArray(e)?e:[]).reduce(Qt,{knownNames:[],unknownNames:[]});var r;0!==(r=o.unknownNames).length&&console.warn(`loadGsap: skipped unknown plugin name(s): ${r.join(", ")}`);const i=Yt(o.knownNames);return(Ft||(Ft=n.e(5880).then(n.bind(n,5880)).then(Kt).catch((function(e){throw Ft=null,e}))),Ft).then((function(e){return function(e){return Promise.all(e.map(Zt))}(i).then((function(t){return{gsap:e,plugins:en(e,i,t)}}))})).then((function(e){return function(e,t,n){if("function"==typeof e)try{e(t,n)}catch(e){console.error("loadGsap: error in user callback",e)}}(t,e.gsap,e.plugins),e})).catch((function(e){throw console.error("loadGsap: failed to load GSAP module(s)",e),e}))}var nn=n(9124),on=n(6382),rn=n(3582),cn=n(254),sn=n(2245);const an=[];var un=n(298);const dn="core",ln="res",fn="load_more_component/data.js";function mn(e,t,n,o,r){const i=function(e,t,n,o,r){const i=function(e,t,n,o,r){const i=(0,He.A)(),c=new URLSearchParams(i.pathParams);return c.set("formats","html"),c.set("pn_strategy",""),c.set("site_id",i.settings.site.id),c.set("resource_id",i.settings.resourceId),c.set("path_params",JSON.stringify(i.settings.pathParams)),c.set("pn",n),c.set("component_node_id",e),c.set("lazy_deps",t),o&&c.set("exclude_post_ids",o),r&&c.set("last_post_id",r),i.settings.is_section_tag&&c.set("is_section_tag",1),c}(e,t,n,o,r);return`/${(0,Le.x3)()?dn:ln}/${fn}?${i.toString()}`}(e,t,n,o,r);return(0,un.mQ)(i)}var hn=n(893);function pn(e){const t=document.createElement("script");t.textContent=e,document.head.appendChild(t),setTimeout((()=>{t.remove()}),1)}class gn extends Error{}const wn=new DOMParser;function vn(e){pn(e.component_javascript),(0,hn.A)(e.css),(0,hn.A)(e.component_styles)}function bn(e,t){const n=e.querySelector(`.rm-component[data-node-id="${t}"]`);if(n)return n;throw new gn(`Component ${t} not found`)}const An=".rm-component",yn=".rm-slot";async function En(e){const t=bn(window.document,e),n=function(e){return Array.from(e.querySelectorAll(`${yn}[loading="lazy"]`)).filter((t=>t.closest(An)===e)).map((e=>e.dataset.slotName))}(t);if(0===n.length)throw new gn("This component has no lazy children");if("eager"===t.getAttribute("loading"))throw new gn("This component was already eagerly loaded");const o=t.dataset.lazyDeps,r=await mn(e,o,1);return vn(r),function(e,t,n){const o=wn.parseFromString(e,"text/html"),r=bn(o,t);return n.reduce((function(e,t){const n=Array.from(o.querySelectorAll(`${yn}[data-slot-name="${t}"]`)).find((e=>e.closest(An)===r));return n?{...e,[t]:n.cloneNode(!0)}:n}),{})}(r.component_html,e,n)}async function Sn(e,t,n,o){const r=bn(window.document,e).dataset.lazyDeps,i=await mn(e,r,t,n,o);return vn(i),bn(wn.parseFromString(i.component_html,"text/html"),e)}function _n(){return n.e(8945).then(n.bind(n,8945)).then((e=>e.initializeChannel(document)))}function Tn(...e){try{!function(e,t){an.includes(e)||(an.push(e),(0,l.A)(`.${e}`,(function(n){let o={};try{o=function(e){const t=e.querySelector(':scope > script[type="application/rmprops+json"]').textContent;return JSON.parse(t)}(n)}catch(t){console.error(`Error finding or parsing component props ${e}`,t)}try{t(n,o)}catch(t){console.error(`Error executing component handler ${e}`,t)}})))}(...e)}catch(t){console.error("Error wiring component",[...e])}}var Ln=n(8879),kn=n(1163);let On,Pn;const In=new Set,xn=(0,kn.A)(),Cn=(0,Ln.A)((function(e,t){const{dependencies:n}=e,o=n.length;let r=0;function i(){r++,r===o&&qn(e,t)}o>0?n.forEach((function(e){(0,ne.A)(e,i)})):qn(e,t)})),Bn=(0,Ye.A)((function(e,t,n){e.delete(n),t.add(n)})),Dn=(0,Ye.A)((function(e,t){e(t)})),Rn=(0,Ye.A)((function(e,t){!function(e){e.dataset.isStatic=1}(t),e(t)}));function Mn(e){const{onInit:t}=e,n=t.call(window);(0,fe.A)(Cn(e,n))}function qn(e,t){const{options:n,staticSelectors:o=[],dynamicSelectors:r=[],disableIdleLoader:i,disableVisibilityWatcher:c}=e,{displayOnElement:s,refreshOnElement:a,destroyOnElement:u,onDependanciesLoaded:d}=function(e){const{displayOnElement:t=he.A,refreshOnElement:n=he.A,destroyOnElement:o=he.A,onDependanciesLoaded:r=he.A}=e;return{displayOnElement:t.bind(window),refreshOnElement:n.bind(window),destroyOnElement:o.bind(window),onDependanciesLoaded:r.bind(window)}}(e);let l,f,m,h,p,g,w,v,b=Date.now(),A=[],y=[],E=C;const S=new Set,_=new Set,T=new Set,k=r.join(","),O=Bn(S,T),P=Dn(B),I=Bn(T,S),x=Dn(R);function C(e){v=e}function B(e){_.add(e),e.dataset.rmLastViewed=Date.now(),e.dataset.initiated=!0,s(e,t,E)}function D(e){Date.now()-parseInt(e.dataset.rmLastViewed,10)=f)U();else{const t=f-e;t<=f/4&&(h=setTimeout(U,t))}}else clearTimeout(h),clearInterval(m)}document.addEventListener("visibilitychange",W)}}function Un(e){In.add(e),clearTimeout(On),(0,yt.G)(Pn),On=setTimeout(jn,64)}function jn(){Pn=(0,yt.B)($n,{timeout:100})}function $n(){In.forEach(xn),In.clear()}function Nn(e){e.disconnect()}function Vn(e,t){e.forEach(t),e.clear()}const zn="_rm_smartlinks_",Hn=36e5;function Fn(e,t){return t.length>e.length?Fn(t,e):e.some((function(e){return t.includes(e)}))}function Wn(e,t){const[n,o]=t;try{"class"===n?o.split(" ").forEach((function(t){try{e.classList.add(t)}catch(e){console.error(e)}})):e.setAttribute(n,o)}catch(e){console.error(e)}return e}function Gn(e){try{(0,l.A)(e.find_phrase,(async function(t){await(0,sn.B)();const n=t.closest("article[elid]");if(!n)return;const o=(0,Xe.A)(`#post-context-${n.getAttribute("elid")}`);if(0===Object.keys(o).length)return;const r=function(e,t){const{post:n}=e,{sections:o,tags:r,id:i}=n,{excluded_post_ids:c,excluded_section_ids:s,excluded_tags:a,included_section_ids:u,included_tags:d}=t;return!(Fn(s,o)||Fn(a,r)||Fn(c,[i]))&&(u.length>0?Fn(u,o):!(d.length>0)||Fn(u,r))}(o,e);r&&function(e,t){const{extra:n}=t;Object.entries(n.attributes||{}).reduce(Wn,e)}(t,e)}))}catch(e){console.error(e)}}async function Jn(e){e.forEach(Gn)}async function Kn(){const e=await async function(){return(0,un.mQ)("/res/find_and_replace/customizations","GET","omit")}();return await async function(e){localStorage.setItem(zn,JSON.stringify({customizations:e,age:Date.now()}))}(e).catch(console.error),e}function Qn(){Kn().then(Jn).catch(console.error)}async function Xn(){const e=await async function(){const e=localStorage.getItem(zn);if(!e)return null;try{const t=JSON.parse(e);if(t&&Array.isArray(t.customizations))return t}catch{return null}return null}();var t;e?((0,fe.A)((t=e.age,function(){(async function(e){if(!e||Date.now()-e>Hn)return Kn()})(t).catch(console.error)})),Jn(e.customizations).catch(console.error)):(0,fe.A)(Qn)}function Yn(e,t){return function(n){return e.pushTask(n,t)}}function Zn(e,t,n,o){return function(){n(),t&&t.length&&(t.forEach(Yn(e,o)),t.length=0)}}function eo(e){return function(){const t=document.querySelector(e);t&&t.textContent&&(pn(t.textContent),t.remove())}}function to(e,t,n,o){const r=function(e){const t=[];function n(e){const t=function([e,t,n,o],r){let i=n||r,c=t;if(i){const e=r-i;c=Math.max(1,t-e)}return[e,t,i,c]}(e,Date.now());(0,yt.B)(o(t),{timeout:t[3]})}const o=(0,Ye.A)(((e,o)=>{let i=e;if(o.timeRemaining()>=1){do{Et(i[0]),t.shift(),i=t[0]}while(o.timeRemaining()>=1&&i);r(i)}else o.didTimeout?(Et(i[0]),t.shift(),r(t[0])):n(i)}));function r(t){t?n(t):e()}return{pushTask:function(e,n){t.push([e,n]),1===t.length&&r(t[0])}}}(he.A);return function(i){e.forEach(Yn(r,200));const c=Zn(r,o,eo("script#user-javascript-active"),200),s=eo("script#user-javascript-components"),a=Zn(r,n,eo("script#user-javascript-lowest"),700);t.push(a),n.push(At);const u=(0,me.A)(c,s,function(e,t){return function(){t.forEach(Yn(e,700))}}(r,t));return(0,fe.A)(u),i}}window.REBELMOUSE_INIT_IDLE_QUEUE=to;const no=[function(e){return window.addEventListener("load",(()=>{const e=`[data-href="https://${location.host}${location.pathname}"]`,t=document.querySelector(e);t&&t.scrollIntoView({block:"nearest"})})),e},function(e){(0,l.A)(".rebelbar__menu-toggle",h);const t=document.querySelector(".menu-overlay");return t&&t.addEventListener("click",p),e},function(e){return(0,ae.A)(e),function(e){window.REBELMOUSE_BOOTSTRAP_DATA.engine.lazyLoadShortcodeImages&&(0,l.A)("img[data-runner-src]",B),(0,y.A)(e,{treshholdCalculator:q,initialThreshold:50,selector:"img[data-runner-src]",onIntersect:R}),(0,y.A)(e,{treshholdCalculator:q,initialThreshold:50,selector:"[data-runner-img-hd]",onIntersect:M})}(e.intersectionObserverProvider),function(e){(0,y.A)(e,{onIntersect:T,selector:"iframe[data-runner-src]",initialThreshold:500})}(e.intersectionObserverProvider),function(e){(0,y.A)(e,{onIntersect:N,onAppear:V,initialThreshold:300,selector:"blockquote.instagram-media,blockquote.lazy-instagram-media"})}(e.intersectionObserverProvider),function(e){(0,y.A)(e,{onIntersect:F,onAppear:W,initialThreshold:300,selector:"blockquote.text-post-media,blockquote.lazy-text-post-media"})}(e.intersectionObserverProvider),function(e){(0,y.A)(e,{onIntersect:S,onDependencyLoad:_,initialThreshold:500,selector:".fb-post, .fb-page, .fb-video, .fb-comments, .fb-like",dependencySrc:"https://connect.facebook.net/en_US/sdk.js"})}(e.intersectionObserverProvider),function(e){(0,y.A)(e,{onIntersect:G,initialThreshold:500,dependencySrc:"https://embed.redditmedia.com/widgets/platform.js",selector:"blockquote.reddit-card"})}(e.intersectionObserverProvider),function(e){(0,y.A)(e,{onIntersect:Q,onDependencyLoad:X,beforeDependencyLoad:Z,selector:".rm-embed-twitter,blockquote.twitter-custom-tweet",dependencySrc:"https://platform.twitter.com/widgets.js",initialThreshold:400})}(e.intersectionObserverProvider),function(e){(0,y.A)(e,{onIntersect:te,initialThreshold:400,selector:".tiktok_lazy_shortcode",dependencySrc:"https://www.tiktok.com/embed.js"})}(e.intersectionObserverProvider),function(e){(0,y.A)(e,{onIntersect:oe,initialThreshold:500,dependencySrc:"https://embed.redditmedia.com/widgets/platform.js",selector:".rm-embed-brightcove video-js"})}(e.intersectionObserverProvider),function(e){e.addTask({onIntersect:re,threshold:500,selector:".viewport-css-anchor",firstOnly:!0})}(e.intersectionObserverProvider),function(e){(0,y.A)(e,{onIntersect:ie,beforeDependencyLoad:se,selector:"blockquote.imgur-custom-embed-pub",dependencySrc:"https://s.imgur.com/min/embed.js",initialThreshold:400})}(e.intersectionObserverProvider),(0,d.A)((()=>{n.e(6606).then(n.bind(n,6606)).then((e=>{e.default()}))})),e},function(e){return(0,d.A)((()=>{const e=document.querySelector("[data-toggle-class=with-fixed-header]");var t;e&&document.addEventListener("scroll",(t=e,(0,ut.A)((()=>{const{toggleClass:e}=t.dataset;t.getBoundingClientRect().top<=0?document.body.classList.add(e):document.body.classList.remove(e)}))),{passive:!0})})),e},function(e){const t=document.querySelector(".search-form__open"),n=document.querySelector(".search-form");return n&&t&&t.addEventListener("click",(()=>{n.classList.toggle(Ae)})),document.addEventListener("keypress",(e=>{13===e.keyCode&&document.body.classList.contains(Ae)&&document.querySelector(".search-form > form").submit()})),e},function(e){return(0,l.A)(".share-panel .share",(t=>{!function(e,t){e.dataset.clipboardText?function(e){e.addEventListener("click",(e=>{e.preventDefault(),navigator.clipboard.writeText(e.currentTarget.dataset.clipboardText),(0,ge.A)("copied to clipboard","success")}))}(e):e.classList.contains("share-plus")?function(e){const t=e.parentElement.children;let n=!1;const o=Array.from(t).reduce(((t,o)=>(n&&t.push(o),n=n||o===e,t)),[]);o.forEach((e=>e.style.display="none")),e.addEventListener("click",(e=>{e.currentTarget.remove(),o.forEach((e=>e.style.display="inline-block"))}))}(e):function(e,t){e.addEventListener("click",(e=>{const{currentTarget:n}=e,{trackShare:o}=n.dataset,i=n.dataset.href||n.href;return"Email"!=o&&"Sms"!=o&&(e.preventDefault(),e.stopPropagation()),(0,pe.P)(i,(o||"").toLowerCase()),t.publish(r.KV,{url:i,provider:(o||"").toLowerCase()}),!1}),!0)}(e,t)}(t,e.eventBus)})),e},function(e){return(0,i.A)(".js-keep-reading",w,e,!0),e},function(e){function t(t){t.default(e)}return(0,d.A)((()=>{n.e(5185).then(n.bind(n,5185)).then(t)})),(0,fe.A)((()=>{n.e(1919).then(n.bind(n,1919)).then(t)})),e},function(e){return(0,d.A)((()=>{n.e(4836).then(n.bind(n,4836)).then((t=>t.default(e.settings)))})),e},function(e){return(0,i.A)(".rm-top-sticky",ve,e),e},function(e){return(0,i.A)(".js-scroll-trigger[data-toggle-class], .js-scroll-trigger[data-triggers]",we,e),e},function(e){return(0,d.A)((()=>{n.e(5453).then(n.bind(n,5453)).then((t=>{t.default(e)}))})),e},function(e){return(0,i.A)(".listicle-slideshow",c,e),(0,i.A)(".js--fullscreen-preview",s,e),(0,i.A)(".js-listicle-switch-page",a,e),(0,i.A)(".listicle-voting",u,e),e},function(e){return(0,d.A)((()=>{const e=document.querySelectorAll(".js-hidden-panel");e.length&&n.e(865).then(n.bind(n,865)).then((t=>{t.default(e)}))})),e},function(e){return(0,i.A)(".live-section-update",v,e),e},function(e){return(0,i.A)(".get-alerts",dt,e),e},function(e){return(0,i.A)(".js-show-video",ft,e),e},function(e){(0,l.A)(".uplynk-container",mt,!1)},function(e){return(0,i.A)(".community-native-wrp",le,e),e},b.A,function(e){return(0,i.A)(".rm-user-behavior-script",A,e),e},function(e){return(0,l.A)(".login-signup-wrapper",(function(t){!function(e,t){let n;n=t.children.length?de:ue,n().then((n=>n.default(e,t)))}(e,t)})),e},function(e){return(0,i.A)(".tabs",lt,e),e},function(e){return(0,i.A)('img[usemap ^="#image-map-"], [data-use-product-map="true"] .widget__head .widget__image',g,e),e},function(e){return(0,i.A)(".rebellt-item.has_voting",ht,e),e},function(e){return window.localStorage.getItem("gdpr-cookie")||((0,l.A)(".gdpr-cookie",(e=>{e.classList.remove("hidden")})),(0,l.A)(".gdpr-cookie-accept",(e=>{e.addEventListener("click",(()=>{window.localStorage.setItem("gdpr-cookie","accepted"),document.querySelectorAll(".gdpr-cookie").forEach((e=>{e.classList.add("hidden")}))}))}))),e},function(e){return(0,i.A)(".follow-button",pt,e),e},function(e){return(0,i.A)(".like-button",gt,e),e},function(e){return(0,i.A)(".rm-folders-button",wt,e),e},function(e){return(0,i.A)(".rm-folders-manage-posts article[elid]",vt,e),e}],oo=to(window.REBELMOUSE_TASKS_QUEUE,window.REBELMOUSE_LOW_TASKS_QUEUE,window.REBELMOUSE_LOWEST_TASKS_QUEUE,window.REBELMOUSE_ACTIVE_TASKS_QUEUE);var ro=(0,me.A)((function(e){return function(e){const{eventBus:t}=e;let n="";t.subscribe(r.rW,(e=>{e.trackPageView?rt.trackPageView(e):rt.trackEvent({...e,eventType:"keep_reading",action:"view_more"})})),t.subscribe(r.gj,(e=>{rt.trackPageLoad(e,!0),rt.trackUser(e),n=e.url})),t.subscribe(r.EB,(e=>{e.url!==n&&e.trackPageView&&(e.previousUrl=n,rt.trackPageView(e),n=e.url)}))}(e),(0,l.A)("[elid]",(e=>{!function(e){function t(t){const n=t.currentTarget,o="_blank"===n.getAttribute("target"),r=n.classList.contains("js-listicle-switch-page");o||t.preventDefault(),setTimeout((()=>rt.trackPostCardClick(e)),0),o||r||(t.metaKey||t.ctrlKey?window.open(n.href):document.location.href=n.href)}e.querySelectorAll("a[href]:not(.rm-stats-tracked)").forEach((function(e){/^(https?:)?\/\/\w+/.exec(e.href)&&!e.classList.contains("rm-stats-tracked")&&(e.classList.add("rm-stats-tracked"),e.addEventListener("click",t))}))}(e),it(e)})),function(){const e=[1,2,5,10,20,30].map((e=>1e3*e)),t=function(e,t,n){const o=+new Date;let r,i=0,c=t[0];const s=()=>{clearTimeout(r)},a=n=>{i=+new Date,r=setTimeout((()=>{n=n||0,i-o>18e5||(e(c),c=t[n+=1]||t[t.length-1],a(n))}),c)};return{start:a,pause:()=>{s(),c-=new Date-i},stop:s}}(rt.trackTimeOnPage,e);t.start(),document.addEventListener("visibilitychange",(()=>{"visible"===document.visibilityState?t.start():t.pause()}))}(),function({eventBus:e,settings:t}){e.subscribe(r.KV,(e=>{rt.trackSocialShare({provider:e.provider,id:t.post.id})}))}(e),(0,l.A)("script.post-context-split-testing",st),window.addEventListener("visibilitychange",at,{passive:!0}),window.addEventListener("pagehide",at,{passive:!0}),e}),(function(e){let t={url:location.href};return e.settings.post&&(t.id=e.settings.post.id),e.eventBus.publish(r.gj,t),e}),(function(e){const t={[r.EB]:["rebelmouse.urlChange",e=>{window.history.replaceState({},e.headline||"",e.url)}],[r.OU]:["rebelmouse.urlScrolled"],[r.KV]:["rebelmouse.postShared"]};return Object.keys(t).forEach((n=>{const o=t[n];e.eventBus.subscribe(n,(e=>{const[t,n]=o,r=new CustomEvent(t,{detail:e});document.dispatchEvent(r),n&&n(e)}))})),e}),(function(e){return window.REBELMOUSE_STDLIB={context:e,getDevice:Te.A,loadContextData:Xe.A,initClickHandler:Tt.f,htmlDecode:Lt.A,createElementChangeListener:l.A,spawnTask:sn.B,runAsTasks:sn.C,createSmartIntersector:(0,cn.A)(y.A,e.intersectionObserverProvider),rebelSlider:kt,loadExternalScript:ne.A,loadExternalStylesheet:Ot.A,loadFontFace:jt,loadGsap:tn,getRenderer:on.A,postStatus:o,raiseNotification:ge.A,components:{loadLazySlots:En,loadNextPage:Sn,loadComponentChannelManager:_n,wireComponent:Tn},onElementInViewport:e.intersectionObserverProvider.addTask,widgetControl:{doubleSticky:{showFlexibleSticky:be}},showInformer:t=>{(0,nn.A)(e,t)},getBootstrap:()=>(0,rn.A)(e)},e}),(function(e){return window.RM_AD_LOADER.forEach(Mn),window.RM_AD_LOADER={push:Mn},e}),(function(e){return e.settings.engine.useSmartLinks2&&Xn().catch(console.error),e}),(function(e){function t(){oo(e)}return document.prerendering?document.addEventListener("prerenderingchange",t,{once:!0}):t(),e}),(0,_t.A)(no),St.A,(function(e){const t=new URLSearchParams(document.location.search);if(t.has("debugld")){const o=t.get("debugld");o&&n.e(7589).then(n.bind(n,7589)).then((t=>t.default(e,o.split(","))))}}));function io(){ro((0,He.A)())}n.p=window.REBELMOUSE_BASE_ASSETS_URL;var co=0;function so(){"loading"!==document.readyState?io():window.addEventListener("DOMContentLoaded",io)}function ao(){0==--co&&so()}function uo(e,t){if(!e){co++;var n=document.createElement("script");n.src=`${window.REBELMOUSE_BASE_SSL_DOMAIN}/static/polyfills/${t}.js`,n.addEventListener("load",ao),document.head.appendChild(n)}}uo(window.requestAnimationFrame,"requestAnimationFrame"),uo(window.MutationObserver,"mutationobserver-polyfill"),uo(window.IntersectionObserver,"intersection-observer"),uo("function"==typeof URL,"url-polyfill"),uo(window.URLSearchParams,"urlsearchparams-polyfill"),uo(window.Array.from,"arrayfrom-polyfill"),uo(window.Array.prototype.find,"find-polyfill"),uo(Element.prototype.replaceWith,"replace-with-polyfill"),uo("content"in document.createElement("template"),"template-v2"),uo(window.NodeList.prototype.forEach,"polyfill-ie11-nodelist-foreach"),uo("function"==typeof window.CustomEvent,"event-polyfill"),uo(Element.prototype.closest&&Element.prototype.matches,"closest-polyfill"),uo(Object.values,"object-values-polyfill"),uo(Object.entries,"entries-polyfill"),uo(Object.fromEntries,"fromEntries-polyfill"),uo(Element.prototype.remove,"remove-polyfill"),uo("classList"in Element.prototype,"classList-polyfill"),uo(window.Promise,"promise-polyfill"),uo(window.fetch,"fetch-polyfill-v3"),uo(Array.prototype.flatMap,"flatMap-polyfill"),uo(Array.prototype.includes,"includes-polyfills"),0===co&&so()},1163:function(e,t,n){function o(...e){return function(t){return t.call(null,...e)}}n.d(t,{A:function(){return o}})},3964:function(e,t,n){function o(e){const t=e.length;return function(...n){return n.length===t?e.call(null,...n):e.bind(null,...n)}}n.d(t,{A:function(){return o}})},90:function(e,t){t.A=e=>new Promise(((t,n)=>null==e?n(e):t(e)))},7611:function(e,t,n){function o(){}n.d(t,{A:function(){return o}})},254:function(e,t,n){function o(e,...t){return function(...n){return e.apply(null,t.concat(n))}}n.d(t,{A:function(){return o}})},367:function(e,t,n){function o(...e){return t=>e.reduce(((e,t)=>t(e)),t)}n.d(t,{A:function(){return o}})},8879:function(e,t,n){function o(e){return function(...t){return function(){return e.apply(null,t)}}}n.d(t,{A:function(){return o}})},6382:function(e,t,n){function o(){return n.e(1790).then(n.bind(n,1790)).then((e=>e.default()))}n.d(t,{A:function(){return o}})},3582:function(e,t,n){n.d(t,{A:function(){return u}});var o=n(90),r=n(8879),i=n(298);let c;const s=(0,r.A)((e=>(0,i.mQ)(e)));function a(e){return c=e,c}function u(e){return(0,o.A)(c).catch(s(e.settings.fullBootstrapUrl)).then(a)}},298:function(e,t,n){n.d(t,{MF:function(){return i},af:function(){return s},kX:function(){return c},mQ:function(){return a}});var o=n(3964);function r(e,t){const[n,o]=u(e,t);return fetch(n,o).then(b).catch(y)}function i(e,t,n){return r(e,{method:t,body:n})}function c(e,t,n){return r(e,{method:t,body:n,headers:{...d}})}function s(e,t,n){return r(e,{method:t,body:JSON.stringify(n),headers:{...l}})}function a(e,t,n){const o={method:t||"GET"};return n&&(o.credentials=n),r(e,o)}const u=(e,t)=>{const n={...t}||{};return e=(window.REBELMOUSE_BASE_SSL_DOMAIN||"https://"+location.host)+e,n.credentials="include",[e,n]},d={"X-Requested-With":"XMLHttpRequest"},l={Accept:"application/json","Content-Type":"application/json"},f={message:"It wasn't possible to fulfil this request"};function m(e){return e&&"object"==typeof e}const h=[(e,t)=>!1===t&&{...f},(e,t)=>!e.ok&&t,(e,t)=>!(!m(t)||!("error"in t))&&{...t,message:t.error},(e,t)=>!!(m(t)&&"message"in t&&"code"in t)&&t,(e,t)=>!!(m(t)&&"errors"in t&&t.errors&&Array.isArray(t.errors.email))&&{...t,message:t.errors.email[0]}],p=[(e,t)=>!0===t&&{},(e,t)=>t];function g(e,t,n){let o;return n.some((n=>{try{o=n(e,t)}catch{o=!1}return o})),o}const w=(0,o.A)(((e,t)=>{const n=g(e,t,h);if(n)throw n;return g(e,t,p)})),v=(0,o.A)(((e,t)=>{let n;try{n=JSON.parse(t)}catch{return e.ok?{message:t}:{error:t}}return n}));function b(e){return e.text().then(v(e)).then(w(e))}const A={message:"There was a network error, please try again"};function y(e){if(e instanceof TypeError)throw A;throw e}},5258:function(e,t,n){n.d(t,{A:function(){return d},c:function(){return u}});var o=n(7611),r=n(4465);const i=new Error("User is not logged in"),c=[],s=[];function a(e){(0,r.x3)()&&n.e(5598).then(n.bind(n,5598)).then((t=>t.default(e,c,s)))}function u(e){return(0,r.x3)()||((0,r.Hb)(!0,e),a(e)),e}function d(e){return e.refreshUserInfo=o.A,e.getUserInfo=()=>new Promise(((e,t)=>{(0,r.x3)()?c.push([e,t]):t(i)})),e.listenForUserInfo=e=>{s.push(e),(0,r.x3)()||e(i,null)},a(e),e}},893:function(e,t,n){function o(e){const t=document.createElement("style");t.innerHTML=e,document.head.appendChild(t)}n.d(t,{A:function(){return o}})},2142:function(e,t,n){n.d(t,{A:function(){return r}});var o=n(2245);function r(e,t){const n=[];let r=!1;function i(){n.length=0}return{add:function(o){t&&r?o():(n.push(o),1==n.length&&e())},run:function(){r=!0,(0,o.C)(...n).then(i)},hasRun:function(){return r}}}},6975:function(e,t,n){n.d(t,{Ev:function(){return f},ZB:function(){return d},a1:function(){return l}});const o=navigator.connection||navigator.mozConnection||navigator.webkitConnection,r=["4g","3g","2g","slow-2g"],i={};let c=[];function s(e){return r.includes(e)?e:"4g"}function a([e,t]){return e(s(o.effectiveType)),!t}function u(){c=c.filter(a)}function d(){return o?s(o.effectiveType):"4g"}function l(e){if(!(e in i))return;const t=i[e];delete i[e];const n=c.indexOf(t);c.splice(n,1),0===c.length&&o.removeEventListener("change",u)}function f(e,t){if(!o)return;const n=[e,t||!1];c.push(n),i[e]=n,1===c.length&&o.addEventListener("change",u)}},5312:function(e,t,n){function o(e){let t=!1;const n=()=>{e(),t=!1};return function(){t||(t=!0,setTimeout(n,1))}}n.d(t,{A:function(){return o}})},6172:function(e,t,n){n.d(t,{A:function(){return l}});var o=n(3964),r=n(8879),i=n(4361),c=n(6975),s=n(3967),a=n(9879);const u=()=>{},d={"4g":function(){return Math.max(1.5*window.innerHeight,700)},"3g":function(){return Math.max(2*window.innerHeight,900)},"2g":function(){return 3*window.innerHeight},"slow-2g":function(){return 3*window.innerHeight}};function l(e,{dependencySrc:t,selector:n,onIntersect:o,onAppear:r,beforeDependencyLoad:i=u,onDependencyLoad:c=u,oneTime:a=!0,initialThreshold:l=500,thresholdCalculator:m={}}){const h=function({dependencySrc:e,onDependencyLoad:t,beforeDependencyLoad:n}){let o=!1,r=!1;return{dependencySrc:e,onDependencyLoad(){o||(o=!0,t())},beforeDependencyLoad(){r||(r=!0,n())},needsDependency:null!=e,hasLoadedDependency:null==e}}({dependencySrc:t,onDependencyLoad:c,beforeDependencyLoad:i}),v=function(e,t){return e.needsDependency?p(e,t):t}(h,o),b={...d,...m},A=f(g(e,l,n,v,r,a),l,b,e,n,v,r,a);(0,s.A)(A),t&&(0,s.A)(w(h,n))}function f(e,t,n,o,r,i,s,a){return function(){const u=function(e){return e[(0,c.ZB)()]()}(n);let d=e;u!==t&&(e.observers.flatMap(m).forEach(h),d=g(o,u,r,i,s,a,e.task));const l=f(d,u,n,o,r,i,s,a);(0,c.Ev)(l,!0)}}function m(e){return e}function h(e){e.disconnect()}const p=(0,o.A)(((e,t,n)=>{e.hasLoadedDependency?t(n):v(e,(function(){t(n)}))()}));function g(e,t,n,o,r,i,c={}){const s={...c,selector:n,threshold:t,onAppear:r,oneTime:i,onIntersect:o};return{task:s,observers:e.addTask(s)}}const w=(0,r.A)(((e,t)=>{e.needsDependency&&!e.hasLoadedDependency&&(0,i.A)(t,v(e,e.onDependencyLoad),!0)})),v=(0,r.A)(((e,t)=>{e.beforeDependencyLoad(),(0,a.A)(e.dependencySrc,(function(){e.hasLoadedDependency=!0,e.onDependencyLoad(),t()}))}))},3989:function(e,t,n){n.d(t,{A:function(){return r}});const o=navigator.userAgent;function r(){return/Android|webOS|iPhone|iPod|BlackBerry/i.test(o)?"mobile":/iPad/i.test(o)?"tablet":"desktop"}},7344:function(e,t,n){n.d(t,{A:function(){return r}});const o=new DOMParser;function r(e){return o.parseFromString(e,"text/html").documentElement.childNodes[1].innerHTML}},906:function(e,t,n){n.d(t,{B:function(){return o},G:function(){return r}});const o=window.requestIdleCallback||function(e){return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return 50}})}),1)},r=window.cancelIdleCallback||function(e){clearTimeout(e)}},7041:function(e,t,n){function o(e,t){e.addEventListener("click",(e=>{e.preventDefault(),t(e)}))}function r(e,t){e.forEach((e=>o(e,t)))}n.d(t,{K:function(){return r},f:function(){return o}})},88:function(e,t,n){n.d(t,{A:function(){return r}});const o={};function r(e,t){if(o[e])return o[e];{const n=(t||document).querySelector(e);return o[e]=n?JSON.parse(n.text):{}}}},7144:function(e,t,n){n.d(t,{A:function(){return y}});var o=n(3964),r=n(8879),i=n(8498),c=n(6975);const s={"4g":5,"3g":3,"2g":2,"slow-2g":2,...window.RM_EXT_DL_LIMIT||{}},{request:a,release:u,changeSettings:d,onEmpty:l}=(0,i.A)(s["4g"]),f={},m={},h={"4g":()=>d(s["4g"]),"slow-2g":()=>d(s["slow-2g"]),"2g":()=>d(s["2g"]),"3g":()=>d(s["3g"])};l((function(){const e=new CustomEvent("externalresourcesqueue:finished");window.dispatchEvent(e)})),(0,c.Ev)((function(e){(h[e]||h["4g"])()}));const p=(0,o.A)((function(e,t,n){e&&u(e),t(n)})),g=(0,o.A)(((e,t,n)=>{e.addEventListener("load",p(n,t)),e.addEventListener("error",p(n,t)),document.head.insertBefore(e,document.head.firstChild)}));function w(e){f[e]=!0,localStorage.setItem(`rmEx-${e}`,"1")}const v=(0,o.A)((function(e,t,n){const o=n[t];if(o)try{o()}catch(t){console.error(`Error on user JS after loading ${e}`),console.error(t),console.error(o)}else console.log(`Callback for index ${t} not found in pair.`)})),b=(0,r.A)(((e,t)=>{t instanceof ErrorEvent||"error"===t.type?m[e].forEach(v(e,1)):(w(e),m[e].forEach(v(e,0))),m[e].length=0})),A=(0,o.A)(((e,t)=>{setTimeout(b(e,t),1)}));function y(e,t,n,o){const r=[n,o];if(e in f)return void v(e,0,r);if(e in m)return void m[e].push(r);if(document.querySelector(e))return w(e),void v(e,0,r);m[e]=[r];const i=g(t,A(e));!function(e){return"1"===localStorage.getItem(`rmEx-${e}`)}(e)?a().then(i):i(!1)}},9879:function(e,t,n){n.d(t,{A:function(){return i}});var o=n(7611),r=n(7144);function i(e,t,n){!function(e,t,n){const i=`script[src="${e}"]`,c=document.createElement("script");c.src=e,c.async=!0,(0,r.A)(i,c,t||o.A,n||o.A)}(e,t,n)}},8704:function(e,t,n){n.d(t,{A:function(){return i}});var o=n(7611),r=n(7144);function i(e,t,n){const i=`stylesheet[href="${e}"]`,c=document.createElement("link");c.href=e,c.rel="stylesheet",(0,r.A)(i,c,t,n||o.A)}},2320:function(e,t,n){n.d(t,{A:function(){return r}});var o=n(4361);function r(e,t,n,r){(0,o.A)(e,(e=>{t().then((t=>{t.default(n,e)}))}),r)}},3967:function(e,t,n){n.d(t,{A:function(){return s}});var o=n(2142);const{add:r,run:i}=(0,o.A)((function(){window.addEventListener("scroll",c,{passive:!0})}));function c(){window.removeEventListener("scroll",c,{passive:!0}),i()}function s(e){r(e)}},4465:function(e,t,n){function o(){return document.cookie.split("; ").some((e=>"__ulleli=true"===e))}function r(){return window.REBELMOUSE_BOOTSTRAP_DATA.isUserLoggedIn||o()}function i(e,t){window.REBELMOUSE_BOOTSTRAP_DATA.isUserLoggedIn=e,t&&t.settings&&(t.settings.isUserLoggedIn=e)}n.d(t,{Hb:function(){return i},ux:function(){return o},x3:function(){return r}})},8908:function(e,t,n){const o=(0,n(3964).A)((function(e,t){return e.map((e=>e.then?e.then((e=>e.default(t))):e(t))),t}));t.A=o},8437:function(e,t,n){n.d(t,{A:function(){return S}});var o=n(3237),r=n(7611),i=n(2142),c=n(906),s=n(2245);const a=["scroll","click","keydown"],u=".rm-lcp-element",d=window.innerWidth*window.innerHeight*.2,{add:l,run:f,hasRun:m}=(0,i.A)(r.A,!0);let h,p,g=0;const w=14,v=!(new URLSearchParams(document.location.search).has("sleepy_time")||navigator.userAgent.indexOf("Lighthouse")>=0);function b(e){m()||((0,s.B)().then(f),(0,c.G)(p),clearTimeout(h),a.forEach(A))}function A(e){window.removeEventListener(e,b,{passive:!0})}function y(e){e.timeRemaining()>w?b():p=(0,c.B)(y)}function E(){(0,c.G)(p),p=(0,c.B)(y)}function S(e){v&&l(e)}a.forEach((function(e){window.addEventListener(e,b,{passive:!0})})),"PerformanceObserver"in window&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")?(0,o.fK)((function(e){if(clearTimeout(h),m())return;const{entries:t}=e,n=t[t.length-1];var o;g++,g>=2||n.url||n.size>d||(o=n.element)&&("matches"in o&&o.matches(u)||"closest"in o&&o.closest(u))?E():h=setTimeout(E,4001)}),{reportAllChanges:!0}):setTimeout(E,2001)},48:function(e,t,n){function o(e,t,n){let o=document.querySelector("#notification"),r=document.createElement("li");o||(o=document.createElement("ul"),o.setAttribute("id","notification"),o.classList.add("notification"),document.body.prepend(o)),t=t||"",n=n||5e3,r.innerText=e,r.classList.add(t),o.append(r),o.style.display="block",setTimeout((()=>{o.removeChild(r)}),n)}n.d(t,{A:function(){return o}})},8498:function(e,t,n){n.d(t,{A:function(){return i}});var o=n(3964);const r=([e,t])=>!t;function i(e){const t={},n=[];let i=()=>{},c=e,s=0;const a=(0,o.A)(((e,t,o)=>{n.push([t,o,e])}));function u(e){t[e]&&(s--,t[e]=!1,function(){const e=n.shift();if(e){const[t,n,o]=e;d(o)(t)}else i()}())}const d=(0,o.A)(((e,n,o)=>{s++;const i=!(c=s)in t||!t[c]?c:Object.entries(t).find(r)[0];var c;if(t[i]=!0,n(i),e){function a(){u(i)}setTimeout(a,e)}}));return{release:u,request:function(e){return new Promise(s0;){if(navigator&&"scheduling"in navigator&&"isInputPending"in navigator.scheduling&&navigator.scheduling.isInputPending()||performance.now()>=t){await r(),t=performance.now()+50;continue}const n=e.shift();await n()}}n.d(t,{B:function(){return r},C:function(){return i}})},5633:function(e,t,n){n.d(t,{A:function(){return i}});const o=e=>e.split("="),r=(e,[t,n])=>(e[t]=n,e);function i(e){return e?e.substr(1).split("&").map(o).reduce(r,{}):{}}},9124:function(e,t,n){function o(e){return n.e(3128).then(n.bind(n,3128)).then((t=>t.renderAsModule(e)))}function r(e,t){return n.e(3128).then(n.bind(n,3128)).then((n=>n.default(e,t))),e}n.d(t,{A:function(){return r},r:function(){return o}})},696:function(e,t,n){n.d(t,{A:function(){return i}});var o=n(2320);const r=()=>Promise.all([n.e(2274),n.e(613)]).then(n.bind(n,613));function i(e){return(0,o.A)(".live-updates-wrapper",r,e),e}},1916:function(e,t,n){n.d(t,{E:function(){return a},_:function(){return s}});var o=n(8498),r=n(6975);const i=(0,o.A)(9),c={"4g":()=>i.changeSettings(15),"slow-2g":()=>i.changeSettings(3),"2g":()=>i.changeSettings(3),"3g":()=>i.changeSettings(6)};(0,r.Ev)((function(e){(c[e]||c["4g"])()})),i.onEmpty((function(){const e=new CustomEvent("mediaqueue:finished");window.dispatchEvent(e)}));const s=i.release,a=i.request},5845:function(e,t,n){n.d(t,{A:function(){return c},g:function(){return i}});var o=n(2320);const r=()=>n.e(7118).then(n.bind(n,7118)),i=".rm-lazy-jwplayer-media";function c(e){return(0,o.A)(i,r,e),e}},2140:function(e,t,n){n.d(t,{P:function(){return r}});const o={twitter:[450,240],pinterest:[750,546],default:[550,425]};function r(e,t){if(e){const[n,r]=o[t]||o.default,i=`width=${n},height=${r},left=${Math.max((window.innerWidth-n)/2,0)},top=${Math.max((window.innerHeight-r)/2,0)},resizable=yes,scrollbars=yes`;if("tel:"!==e.substr(0,4)&&"mailto:"!==e.substr(0,7)&&"sms:"!==e.substr(0,4))return window.open(e,"_blank",i)}}},3237:function(e,t,n){n.d(t,{IN:function(){return S},fK:function(){return j},rH:function(){return M}});var o,r=-1,i=function(e){addEventListener("pageshow",(function(t){t.persisted&&(r=t.timeStamp,e(t))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},s=function(){var e=c();return e&&e.activationStart||0},a=function(e,t){var n=c(),o="navigate";return r>=0?o="back-forward-cache":n&&(document.prerendering||s()>0?o="prerender":document.wasDiscarded?o="restore":n.type&&(o=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:o}},u=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var o=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch(e){}},d=function(e,t,n,o){var r,i;return function(c){t.value>=0&&(c||o)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},l=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},f=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},m=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},h=-1,p=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},g=function(e){"hidden"===document.visibilityState&&h>-1&&(h="visibilitychange"===e.type?e.timeStamp:0,v())},w=function(){addEventListener("visibilitychange",g,!0),addEventListener("prerenderingchange",g,!0)},v=function(){removeEventListener("visibilitychange",g,!0),removeEventListener("prerenderingchange",g,!0)},b=function(){return h<0&&(h=p(),w(),i((function(){setTimeout((function(){h=p(),w()}),0)}))),{get firstHiddenTime(){return h}}},A=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},y=[1800,3e3],E=[.1,.25],S=function(e,t){t=t||{},function(e,t){t=t||{},A((function(){var n,o=b(),r=a("FCP"),c=u("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(c.disconnect(),e.startTimeo.value&&(o.value=r,o.entries=c,n())},m=u("layout-shift",s);m&&(n=d(e,o,E,t.reportAllChanges),f((function(){s(m.takeRecords()),n(!0)})),i((function(){r=0,o=a("CLS",0),n=d(e,o,E,t.reportAllChanges),l((function(){return n()}))})),setTimeout(n,0))})))},_=(new Date,0),T=1/0,L=0,k=function(e){e.forEach((function(e){e.interactionId&&(T=Math.min(T,e.interactionId),L=Math.max(L,e.interactionId),_=L?(L-T)/7+1:0)}))},O=function(){return o?_:performance.interactionCount||0},P=function(){"interactionCount"in performance||o||(o=u("event",k,{type:"event",buffered:!0,durationThreshold:0}))},I=[200,500],x=0,C=function(){return O()-x},B=[],D={},R=function(e){var t=B[B.length-1],n=D[e.interactionId];if(n||B.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var o={id:e.interactionId,latency:e.duration,entries:[e]};D[o.id]=o,B.push(o)}B.sort((function(e,t){return t.latency-e.latency})),B.splice(10).forEach((function(e){delete D[e.id]}))}},M=function(e,t){t=t||{},A((function(){var n;P();var o,r=a("INP"),c=function(e){e.forEach((function(e){e.interactionId&&R(e),"first-input"===e.entryType&&!B.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&R(e)}));var t,n=(t=Math.min(B.length-1,Math.floor(C()/50)),B[t]);n&&n.latency!==r.value&&(r.value=n.latency,r.entries=n.entries,o())},s=u("event",c,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});o=d(e,r,I,t.reportAllChanges),s&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&s.observe({type:"first-input",buffered:!0}),f((function(){c(s.takeRecords()),r.value<0&&C()>0&&(r.value=0,r.entries=[]),o(!0)})),i((function(){B=[],x=O(),r=a("INP"),o=d(e,r,I,t.reportAllChanges)})))}))},q=[2500,4e3],U={},j=function(e,t){t=t||{},A((function(){var n,o=b(),r=a("LCP"),c=function(e){var t=e[e.length-1];t&&t.startTime