"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3882],{80821:function(e,t,r){r.d(t,{dG:function(){return s},m3:function(){return o}});var n=r(49698);let o=()=>"undefined"!=typeof window?(window.pageloadId||(window.pageloadId=(0,n.Z)()),window.pageloadId):null,i={install:function(e){return e.disableRefresh={method:this.handleRefreshRequest.bind(this),context:this},e},handleRefreshRequest(e,t,r){let n=t.refreshImmediately?"refreshImmediately":"refreshEligibilityToggle",o=new CustomEvent(n,{bubbles:!0,detail:t});e.el.dispatchEvent(o),r()}},a={install:function(e){return e.reverbPlayer={method:this.handleReverbPlugin.bind(this),context:this},e},handleReverbPlugin(e,t,r){let n=e.el,o=document.createElement("div");o.id="reverb-main",n.parentNode?.insertBefore(o,n);let i=document.createElement("script");i.type="text/javascript",i.src=`https://cdn.concert.io/reverb-video/${t}.js`,n.parentNode?.insertBefore(i,n),n.style.display="none",r()}},s=e=>{if(!window.ConcertConcierge||Date.now(){let e=(0,o.e)("_gaexp"),t=e.split(".");if(0===e.length)return null;let r=[],n=[];return t.forEach((e,t)=>{t<=1||(22===e.length?r.push(e):1===e.length&&n.push(e))}),{"Google Optimize Experiment ID":r.join(","),"Google Optimize Experiment Variant":n.join(",")}},s=()=>{let e=function(){let e=(0,o.e)(n.Sp);if(!e||""===e)return null;let{user:t}=function(e){let t=JSON.parse(i.from(e,"base64").toString("utf-8"));if(!t.s||!t.u)throw Error("invalid session key");return{key:`duet:memberful-session:${t.s}`,user:t.u}}(e);return t}();if(!e)return{"Memberful ID":null,"Subscription Plan":null};let t=e.subscriptions.filter(e=>e.active);return{"Memberful ID":e.id,"Subscription Plan":t.map(e=>e.plan.name).join(",")}}},68140:function(e,t,r){r.d(t,{L:function(){return v}});var n=r(52983),o=r(61198),i=r(13700);class a extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),Error.captureStackTrace&&Error.captureStackTrace(this,a),this.name="DuetError",this.cause=t.cause,this.extra=t.extra,this.extraStringified=JSON.stringify(this.extra,null,2)}}var s=e=>{let t=[...e.responses];return e=>r=>{if("query"!==r.request.operationKind)return e(r);let n=t.findIndex(e=>e.operationName===r.operation.operationName&&/*! * Check if two objects or arrays are equal * (c) 2021 Chris Ferdinandi, MIT License, https://gomakethings.com * @param {*} obj1 The first item * @param {*} obj2 The second item * @return {Boolean} Returns true if they're equal in value */function e(t,r){function n(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}let o=n(t);return o===n(r)&&("array"===o?function(){if(t.length!==r.length)return!1;for(let n=0;nt=>e(t);let n={};return t&&(n["client-name"]=t),r&&(n["client-version"]=r.substring(0,7)),e=>t=>(t.fetchOpts.headers={...t.fetchOpts.headers,...n},e(t))},p=r(32875),f=r.n(p),d=r(73656);let h=f()({enabled:"true"!==d.env.DISABLE_GRAPHQL_LOGGING,browser:{write(e){try{console.log(JSON.stringify(e))}catch(e){e instanceof Error&&console.log(JSON.stringify(e,["name","message","stack"])),console.log(JSON.stringify({message:"Unknown error type"}))}}},level:d.env.LOG_LEVEL||"info"}),m=h.child({name:"duet-framework"});var y=e=>async t=>{let r=await e(t);if(r.errors){let e={operationName:t.operation.operationName,variables:t.operation.variables,errors:r.errors,hasData:!!r.data};if(!r.data||r.errors.some(e=>{if(!e.path||!e.path[0]||"INTERNAL_SERVER_ERROR"===e.extensions.code&&!e.message.includes("EntryScorecard.score")||"NOT_FOUND"!==e.extensions.code&&null===r.data[e.path[0]])return!0}))throw new a("GraphQL Response with critical errors",{extra:e});m.warn(e,"GraphQL Response with errors")}return r},b=r(73656),g=r(97458),v=function(e){return t=>{let r=(0,n.useMemo)(()=>(function(e,t){let r=new i.RecordSource(void 0),n=new i.Store(r);return new i.Environment({store:n,network:e,isServer:"undefined"==typeof window})})(function(e,t,r){let n=function(e,t){let{NEXT_PUBLIC_APP_NAME:r,NEXT_PUBLIC_VERSION:n}=b.env;return[e=>t=>{if("subscription"===t.request.operationKind)throw Error("GraphQL subscriptions are not supported.");return t.fetchOpts.method="mutation"===t.request.operationKind?"POST":"GET","GET"===t.fetchOpts.method&&(t.url+=`?id=${t.operation.id}&variables=${encodeURIComponent(u()(t.operation.variables))}`,t.cacheConfig.cdnCacheKey&&(t.url+=`&cacheKey=${encodeURIComponent(t.cacheConfig.cdnCacheKey)}`)),e(t)},s(e),y,e=>r=>{if(!t&&"undefined"==typeof window)throw new a(`Unexpected GraphQL network request for '${r.operation.operationName}'`,{extra:{operationName:r.operation.operationName,variables:r.operation.variables}});return t&&(r.fetchOpts.headers.Authorization=`Bearer ${t}`),e(r)},c({name:r,commit:n})]}(e,t),o="/api/graphql";return r&&(o=`${r}${o}`),i.Network.create(function(e,t){let r=async e=>{let t;let r={...e.fetchOpts},n={...e.fetchOpts.headers,Accept:"application/json"};"POST"===e.fetchOpts.method&&(r.body=JSON.stringify(e.operation),n["Content-Type"]="application/json"),r.headers={...r.headers,...n};let o=await fetch(e.url,r),i=await o.text();if(!o.ok)throw new a(`response wasn't ok, it was: ${o.status} ${i}`,{extra:{status:o.status,text:i}});try{t=JSON.parse(i)}catch(e){throw new a("Couldn't parse GraphQL Response JSON",{cause:e,extra:{text:i}})}return t},n=(function(e){if(0===e.length)return e=>e;let t=e[e.length-1],r=e.slice(0,-1);return e=>r.reduceRight((e,t)=>t(e),t(e))})(t)(r);return(t,r,o)=>{if(!t.id)throw Error("Missing request id");return i.Observable.create(a=>{let s={url:e,fetchOpts:{method:"POST",headers:{}},request:t,operation:{id:t.id,operationName:t.name,variables:r},cacheConfig:o},l=n(s);if(!(0,i.isPromise)(l)){a.next(l),a.complete();return}l.then(e=>{a.next(e),a.complete()},e=>{a.error(e),a.complete()})})}}(o,n))}(t.hydration,t.token)),[t.hydration,t.token]);return(0,g.jsx)(o.RelayEnvironmentProvider,{environment:r,children:(0,g.jsx)(e,{...t})})}}},70094:function(e,t,r){r.d(t,{Z:function(){return f}});var n=r(97458),o=r(28934),i=r(55541),a=r.n(i),s=r(52983),l=r(89),u=r(9326),c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let p=(e,t)=>{let r=RegExp(`(href\\s*=\\s*['"])(${a()(t)})`,"gi");return e.replace(r,"$1")};var f=e=>{var{html:t,component:r="p",className:i}=e,a=c(e,["html","component","className"]);let{communityOrigin:f}=(0,u.q)().communityConfig,d=(0,s.useMemo)(()=>p(t,f),[t,f]),h=Object.assign({className:(0,o.Z)(l.I.DangerouslySetCMSMarkup,i),dangerouslySetInnerHTML:{__html:d}},a);return(0,n.jsx)(r,Object.assign({},h))}},22865:function(e,t,r){r.d(t,{Z:function(){return u}});var n=r(97458),o=r(14498),i=r.n(o);let a="duet-cdn.vox-cdn.com";function s({src:e,width:t}){var r;let n=new URL(e,`https://${a}`),o=n.pathname.split("/"),i=null===(r=o[4])||void 0===r?void 0:r.split("x"),s=parseInt((null==i?void 0:i[0])||"0")/parseInt((null==i?void 0:i[1])||"0");return s&&isFinite(s)?(o[4]=[t,t/s].map(Math.round).join("x"),o[5]=`${o[5]||""}:format(webp)`,o.splice(2,1),n.hostname=a,n.pathname=o.join("/"),n.toString()):e}var l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},u=e=>{var{layout:t="fill",objectFit:r="cover",lazyBoundary:o="100%",sizes:a}=e,u=l(e,["layout","objectFit","lazyBoundary","sizes"]);return(0,n.jsx)(i(),Object.assign({},u,{layout:t,objectFit:r,lazyBoundary:o,sizes:a,loader:s}))}},19421:function(e,t,r){r.d(t,{Z:function(){return n.Z}});var n=r(22865)},89:function(e,t,r){r.d(t,{I:function(){return n.Z}});var n=r(20672)},80604:function(e,t,r){r.d(t,{F:function(){return n}});let n=(e=[],t)=>{for(let r of e)if(r)return`${r} - ${t}`;return t}}}]);