1import{r as l,j as x}from"./vendor-react-DdEP1kCQ.js";import{a as P,j as J}from"./vendor-shared-ShLQKC4n.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="22881325-2ae4-4d5c-9aab-eac934d43d8a",e._sentryDebugIdIdentifier="sentry-dbid-22881325-2ae4-4d5c-9aab-eac934d43d8a")}catch{}})();function he(e={},i=""){if(typeof window>"u")return;let{reset:a,...t}=B(i||window.location.search);a&&$();let r={...e,...t};Q(r,e)}function Se(){try{return K()}catch{return null}}function B(e=""){return[...e.matchAll(/flag=([^&#]+)/g)].reduce((i,[a,t])=>{let r=t,s=!0,n=t.indexOf(":");return n>0&&(r=t.slice(0,n),s=t.slice(n+1)),i[r]=s||!0,i},{})}var $=()=>{try{Object.keys(localStorage).forEach(e=>e.startsWith(N)&&localStorage.removeItem(e))}catch(e){console.error("Error clearing local storage flags:",e)}},K=()=>Object.fromEntries(Object.entries(localStorage).filter(([e])=>e.startsWith(N)).map(([e,i])=>[e.slice(N.length),i==="true"||i])),N="sciam:";function Q(e={},i={}){if(!(typeof window>"u"))for(let[a,t]of Object.entries(e))try{t==="reset"?i[a]?localStorage.setItem(N+a,JSON.stringify(i[a])):localStorage.removeItem(N+a):localStorage.setItem(N+a,JSON.stringify(t))}catch(r){console.error(`Error setting local storage flag ${N+a}:`,r)}}function E(e){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var t in a)e[t]=a[t]}return e}var X={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function C(e,i){function a(r,s,n){if(!(typeof document>"u")){n=E({},i,n),typeof n.expires=="number"&&(n.expires=new Date(Date.now()+n.expires*864e5)),n.expires&&(n.expires=n.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var _="";for(var d in n)n[d]&&(_+="; "+d,n[d]!==!0&&(_+="="+n[d].split(";")[0]));return document.cookie=r+"="+e.write(s,r)+_}}function t(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var s=document.cookie?document.cookie.split("; "):[],n={},_=0;_<s.length;_++){var d=s[_].split("="),p=d.slice(1).join("=");try{var u=decodeURIComponent(d[0]);if(n[u]=e.read(p,u),r===u)break}catch{}}return r?n[r]:n}}return Object.create({set:a,get:t,remove:function(r,s){a(r,"",E({},s,{expires:-1}))},withAttributes:function(r){return C(this.converter,E({},this.attributes,r))},withConverter:function(r){return C(E({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(e)}})}C(X,{path:"/"});var q=typeof window<"u"?l.useLayoutEffect:l.useEffect;function Pe(e="",i=!1){let[a,t]=l.useState(i);return q(()=>{let r=window.matchMedia(e);t(r.matches);let s=n=>t(n.matches);return r.addEventListener("change",s,{passive:!0}),()=>r.removeEventListener("change",s)},[e]),a}var z={x:0,y:0},O=()=>typeof window>"u"?z:{x:window.scrollX,y:window.scrollY},Ae=(e,i=100)=>{let a=l.useRef(O()),t=null,r=()=>{let s=a.current,n=O();e(n,s),a.current=n,t=null};l.useEffect(()=>{let s=()=>{i?t===null&&(t=setTimeout(r,i)):r()};return window.addEventListener("scroll",s,{passive:!0}),()=>{window.removeEventListener("scroll",s),t&&clearTimeout(t)}},[])},Re=()=>new Promise((e,i)=>{window.__hydrated__?window.__hydrated__==="error"?i():e():(window.addEventListener("hydration",e,{once:!0}),window.addEventListener("hydration-error",i,{once:!0}))}),Z=(e,i)=>Object.entries(i).forEach(([a,t])=>e.setAttribute(a,t)),G=(e="",i={})=>{window.dispatchEvent(new CustomEvent(e,{detail:i}))},ee=(...e)=>{},ie=(e="")=>{let i=performance,a=e+"-start",t=e+"-end";return i.mark(a),()=>(i.mark(t),i.measure(e,a,t))},w=e=>typeof e=="function"?e():e;function Le({onBeforeLoad:e,onLoad:i,onError:a,readyWhen:t,...r}){let s=F(),n=F(),_=ae({...r,onLoad:y,onError:D}),d,p=w(t),u={script:r.id,element:_},I=(b="")=>ee(`[${r.id}]`,b);async function y(){try{I("Load Success"),i&&i(_),G("script-load",u),s.resolve(_),p&&await p,I("Ready"),G("script-ready",u),n.resolve(_)}catch{a&&a(_),G("script-error",u),n.reject()}d()}function D(){I("Load Error"),a&&a(_),G("script-error",u),s.reject(_),n.reject(_),d()}
1function f(){return e?.(_),document.body.appendChild(_),I("Load Start"),G("script-loadstart",u),d=ie(`loader-${r.id}`),r.inline&&y(),{element:_,loaded:s.promise,ready:n.promise}}return f}var F=(e=()=>{})=>{let i,a;return{promise:new Promise((t,r)=>{i=t,a=r}).catch(e),resolve:i,reject:a}};function ae({src:e,inline:i,id:a,onLoad:t,onError:r,attrs:s}){let n=document.createElement("script");return n.id=a,s&&Z(n,w(s)),i?(n.innerHTML=i,n):(n.src=w(e),n.defer=s?.defer??!1,n.async=s?.async??!0,n.onload=t,n.onerror=r,n)}var te=["a","span","strong","em","i","b","u","s","sub","sup","code"];function Ce(e="",{inline:i=!1,normalize:a=!0,stripEntities:t=!0,stripNewlines:r=!0}){if(!e)return"";let s=r?" ":` 2`;return e=i?e.replace(/(<([^>]+)>)/gi,""):e.replace(/<\/?(\w*)[^>]*>/g,(n,_)=>te.includes(_)?"":s),a&&(e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),t&&(e=e.replace(/ /g," ").replace(/&\w+;/g,"")),e=r?e.replace(/\s+/g," "):e.replace(/[^\S\n]+/g," ").replace(/\s*(\n)\s*/g,"$1"),e=e.trim(),e}const we=[{name:"Test",slug:"test",siteId:"sciam-test",hostedDomain:"sciam-test.chargebee.com",customDomain:"billing-test.scientificamerican.com",fallbackPortal:"https://sciam-test.chargebeeportal.com",publishableKey:"test_mGMI28Ta6kAjqU0mvqepOIow4J3wI8SL"},{name:"Migration",slug:"migration",siteId:"sciam-migration",hostedDomain:"sciam-migration.chargebee.com",customDomain:"billing-migration.scientificamerican.com",fallbackPortal:"https://sciam-migration.chargebeeportal.com",publishableKey:"test_HrKBeAl81CooX4cdCibROUdyVQCfCp0IX"},{name:"Production",slug:"prod",siteId:"sciam",hostedDomain:"sciam.chargebee.com",customDomain:"billing.scientificamerican.com",fallbackPortal:"https://sciam.chargebeeportal.com",publishableKey:"live_fCSVH92m3m2p1cVuCcd9JMukyGVC5lYAh"}],xe=[{internalId:1,slug:"ad-free",id:"ad-free-access",name:"Ad Free Access",type:"switch",levels:[],customFields:{}},{internalId:2,id:"digital-access",slug:"digital",name:"Digital Access",description:"Access to all digital content except for special editions",type:"switch",levels:[],customFields:{}},{internalId:3,slug:"special-edition",id:"special-edition-access",name:"Special Edition Access",description:"Special Edition access for Unlimited subscriptions",type:"switch",levels:[],customFields:{}},{internalId:4,slug:"shared-subscription",id:"unlimited-shared-subscription",name:"Unlimited Shared Subscription",description:"Unlimited Shared Subscription benefit",type:"switch",levels:[],customFields:{}},{internalId:5,slug:"print",id:"print-issues",name:"Print Issues",description:"Print issues delivered to your door",type:"switch",levels:[],customFields:{}}],Me=[{name:"Test",slug:"test",tenant:"sciam-test",domain:"test-id.scientificamerican.com",clientId:"949krH8ZEE0TwdIJxgIxuiQOVIT8nBJS",issuer:"https://test-id.scientificamerican.com/",apiIssuer:"https://test-id.scientificamerican.com/",apiAudience:"https://sciam-test.us.auth0.com/api/v2/"},{name:"Staging",slug:"stage",tenant:"sciam-staging",domain:"staging-id.scientificamerican.com",clientId:"NOT_SET",issuer:"https://staging-id.scientificamerican.com/",apiIssuer:"https://staging-id.scientificamerican.com/",apiAudience:"https://staging-id.scientificamerican.com/api/v2/"},{name:"Production",slug:"prod",tenant:"sciam-prod",domain:"id.scientificamerican.com",clientId:"C1VZnhgUJaCUJCEC1aqmm6bg6I9L48fW",issuer:"https://id.scientificamerican.com/",apiIssuer:"https://id.scientificamerican.com/",apiAudience:"https://sciam-prod.us.auth0.com/api/v2/"}],Oe=JSON.parse('[{"id":"30-Days-Free-Trial-Gift","name":"30 Days Free Trial Gift","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":[],"price":{}},{"id":"access_granted_digital","name":"access_granted_digital","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":false,"enabled_
2in_portal":false,"features":["digital-access"],"default_price_id":"access_granted_digital-USD-Yearly","price":{"year":"access_granted_digital-USD-Yearly"}},{"id":"ACCESSGRANTED_1MO","name":"Access Granted 1 Month","external_name":"Complementary Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"ACCESSGRANTED_1MO-USD-Monthly","price":{"month":"ACCESSGRANTED_1MO-USD-Monthly"}},{"id":"ACCESSGRANTED_1YEAR","name":"Access Granted 1 Year","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"ACCESSGRANTED_1YEAR-USD-Yearly","price":{"year":"ACCESSGRANTED_1YEAR-USD-Yearly"}},{"id":"ACCESSGRANTED_3MO","name":"Access Granted 3 Months","external_name":"Complimentary Digital Access","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_
2in_portal":true,"features":["digital-access"],"default_price_id":"ACCESSGRANTED_3MO-USD-Every-3-months","price":{"month":"ACCESSGRANTED_3MO-USD-Every-3-months"}},{"id":"ACCESSGRANTED_6MO","name":"Access Granted 6 Months","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"ACCESSGRANTED_6MO-USD-Every-6-months","price":{"month":"ACCESSGRANTED_6MO-USD-Every-6-months"}},{"id":"ACCESSGRANTED_9MO","name":"Access Granted 9 Months","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"ACCESSGRANTED_9MO-USD-Every-9-months","price":{"month":"ACCESSGRANTED_9MO-USD-Every-9-months"}},{"id":"DIGITAL","name":"Digital","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_P","price":{"year":"DIGITAL_P"}},{"id":"DIGITAL_1YEARDISCOUNT","name":"Annual Subscription - 27.99 TRIAL","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":true,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_1YEARDISCOUNT_P","attachments":[{"item_id":"Initial-Charge_1yearannu","charge_on_event":"subscription_creation"}],"price":{"initial":"Initial-Charge_1yearannu-USD","year":"DIGITAL_1YEARDISCOUNT_P"}},{"id":"DIGITAL_2YEAR","name":"Digital 2 Year","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":true,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_2YEAR-USD-Yearly","attachments":[{"item_id":"Initial-Charge_digital2years","charge_on_event":"subscription_creation"}],"price":{"initial":"Initial-Charge_digital2years-USD","year":"DIGITAL_2YEAR-USD-Yearly"}},{"id":"DIGITAL_30DAY","name":"30-Day Trial Digital Access","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":true,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_30DAY_P","price":{"year":"DIGITAL_30DAY_P"}},{"id":"DIGITAL_5FOR5","name":"5 Months for $5 Digital Subscription","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":true,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_5FOR5-USD-Yearly","attachments":[{"item_id":"Initial-Charge-5for5","charge_on_event":"subscription_creation"}],"price":{"initial":"Initial-Charge-5for5-USD","year":"DIGITAL_5FOR5-USD-Yearly"}},{"id":"DIGITAL_5MO","name":"5 Months for 10$ Digital Subscription","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":true,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_5MO_P","attachments":[{"item_id":"Initial-Charge_5months","charge_on_event":"subscription_creation"}],"price":{"initial":"Initial-Charge_5months-USD","year":"DIGITAL_5MO_P"}},{"id":"DIGITAL_60DAY","name":"60-Day Access","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":true,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_60DAY_P","attachments":[{"item_id":"Initial-Charge_60days","charge_on_event":"subscription_creation"}],"price":{"initial":"Initial-Charge_60days-USD","year":"DIGITAL_60DAY_P"}},{"id":"DIGITAL_90DAY","name":"90-Day Trial","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":true,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_
2in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_90DAY_P","attachments":[{"item_id":"Initial-Charge_90days","charge_on_event":"subscription_creation"}],"price":{"initial":"Initial-Charge_90days-USD","year":"DIGITAL_90DAY_P"}},{"id":"DIGITAL_CDS","name":"CDS SAD New","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":true,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":false,"enabled_in_portal":false,"features":["digital-access"],"default_price_id":"DIGITAL_CDS_P","price":{"year":"DIGITAL_CDS_P"}},{"id":"DIGITAL_CDS_OLD","name":"CDS SAD","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":true,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":false,"enabled_in_portal":false,"features":["digital-access"],"default_price_id":"DIGITAL_CDS_OLD_P","price":{"year":"DIGITAL_CDS_OLD_P"}},{"id":"DIGITAL_GIFT","name":"Digital Gift","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_GIFT_P","price":{"year":"DIGITAL_GIFT_P"}},{"id":"DIGITAL_GIFT_6MO","name":"6 Month digital gift","external_name":"Digital Gift","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_GIFT_6MO-USD-Every-6-months","price":{"month":"DIGITAL_GIFT_6MO-USD-Every-6-months"}},{"id":"DIGITAL_GIFT_ARCHIVE","name":"Digital Gift Archive","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_
2in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_GIFT_ARCHIVE-USD-Yearly","price":{"year":"DIGITAL_GIFT_ARCHIVE-USD-Yearly"}},{"id":"DIGITAL_NONRENEWING","name":"Digital Nonrenewing","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL_NONRENEWING-USD-Yearly","price":{"year":"DIGITAL_NONRENEWING-USD-Yearly"}},{"id":"DIGITAL-GIFT-UNREDEEMED","name":"Digital Gift Unredeemed","external_name":"Digital Gift","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":false,"enabled_in_portal":true,"features":["digital-access"],"default_price_id":"DIGITAL-GIFT-UNREDEEMED-USD-Yearly","price":{"year":"DIGITAL-GIFT-UNREDEEMED-USD-Yearly"}},{"id":"Digital-Shared-Subscription","name":"Digital Shared Subscription","external_name":"Digital","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_
2in_portal":false,"features":["digital-access"],"default_price_id":"Digital-Shared-Subscription-USD-Yearly","price":{"year":"Digital-Shared-Subscription-USD-Yearly"}},{"id":"Digital-Shared-Subscription-New","name":"Digital Shared Subscription New","external_name":"Digital Access","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":false,"enabled_in_portal":false,"features":["digital-access"],"default_price_id":"Digital-Shared-Subscription-New-USD-Yearly","price":{"year":"Digital-Shared-Subscription-New-USD-Yearly"}},{"id":"REDEEMED_DIGITAL_GIFT","name":"Redeemed Digital Gift","external_name":"Digital Gift","legacy_resource_id":"DIGITAL","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_in_portal":false,"features":[],"default_price_id":"REDEEMED_DIGITAL_GIFT-USD-Yearly","price":{"year":"REDEEMED_DIGITAL_GIFT-USD-Yearly"}},{"id":"access_granted_print","name":"access_granted_print","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":false,"enabled_
2in_portal":false,"features":["digital-access","print-issues"],"default_price_id":"access_granted_print-USD-Yearly","price":{"year":"access_granted_print-USD-Yearly"}},{"id":"PRINTDIG","name":"[New] Print & Digital","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_P","price":{"year":"PRINTDIG_P"}},{"id":"PRINTDIG_1YEAR","name":"Print & Digital 1 Year","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"US","is_trial":true,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_1YEAR_P","attachments":[{"item_id":"Initial-Charge_PD1year","charge_on_event":"subscription_creation"}],"price":{"initial":"Initial-Charge_PD1year-USD","year":"PRINTDIG_1YEAR_P"}},{"id":"PRINTDIG_2YEAR","name":"Print & Digital 2 Year","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"US","is_trial":true,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_2YEAR_P","attachments":[{"item_id":"Initial-Charge_pd2years","charge_on_event":"subscription_creation"}],"price":{"initial":"Initial-Charge_pd2years-USD","year":"PRINTDIG_2YEAR_P"}},{"id":"PRINTDIG_CA","name":"[Canada New] Print & Digital","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"CA","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_CA_P","price":{"year":"PRINTDIG_CA_P"}},{"id":"PRINTDIG_CA_GIFT","name":"[Canada Gift New] Print & Digital","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"CA","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_CA_GIFT_P","price":{"year":"PRINTDIG_CA_GIFT_P"}},{"id":"PRINTDIG_CA_GIFT_OLD","name":"[Canada Gift] Print & Digital","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"CA","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_CA_GIFT_OLD_P","price":{"year":"PRINTDIG_CA_GIFT_OLD_P"}},{"id":"PRINTDIG_CA_NONRENEWING","name":"Print & Digital Canada Nonrenewing","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"CA","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_CA_NONRENEWING-USD-Yearly","price":{"year":"PRINTDIG_CA_NONRENEWING-USD-Yearly"}},{"id":"PRINTDIG_CA_OLD","name":"[Canada] Print & Digital 1","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"CA","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_CA_OLD_P","price":{"year":"PRINTDIG_CA_OLD_P"}},{"id":"PRINTDIG_CDS","name":"CDS Print","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","is_trial":false,"is_cds":true,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":false,"enabled_
2in_portal":false,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_CDS_P","price":{"year":"PRINTDIG_CDS_P"}},{"id":"PRINTDIG_GIFT","name":"[New] Print & Digital Gift","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_GIFT_P","price":{"year":"PRINTDIG_GIFT_P"}},{"id":"PRINTDIG_GIFT_ARCHIVE","name":"Print and Digital Gift Archive","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_GIFT_ARCHIVE-USD-Yearly","price":{"year":"PRINTDIG_GIFT_ARCHIVE-USD-Yearly"}},{"id":"PRINTDIG_GIFT_OLD","name":"Print & Digital Gift","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_GIFT_OLD_P","price":{"year":"PRINTDIG_GIFT_OLD_P"}},{"id":"PRINTDIG_GIFT_UNREDEEMED","name":"Print & Digital Gift Unredeemed","external_name":"Print & Digital Gift","legacy_resource_id":"DIGPRINT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":false,"enabled_
2in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_GIFT_UNREDEEMED-USD-Yearly","price":{"year":"PRINTDIG_GIFT_UNREDEEMED-USD-Yearly"}},{"id":"PRINTDIG_INT","name":"[International New] Print & Digital","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"INT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_INT_P","price":{"year":"PRINTDIG_INT_P"}},{"id":"PRINTDIG_INT_GIFT","name":"[International Gift New] Print & Digital","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"INT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_INT_GIFT_P","price":{"year":"PRINTDIG_INT_GIFT_P"}},{"id":"PRINTDIG_INT_GIFT_OLD","name":"[International Gift] Print & Digital","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"INT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_INT_GIFT_OLD_P","price":{"year":"PRINTDIG_INT_GIFT_OLD_P"}},{"id":"PRINTDIG_INT_NONRENEWING","name":"Print & Digital International Nonrenewing","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"INT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_INT_NONRENEWING-USD-Yearly","price":{"year":"PRINTDIG_INT_NONRENEWING-USD-Yearly"}},{"id":"PRINTDIG_INT_OLD","name":"[International] Print & Digital","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"INT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_INT_OLD_P","price":{"year":"PRINTDIG_INT_OLD_P"}},{"id":"PRINTDIG_NONRENEWING","name":"Print & Digital Nonrenewing","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_NONRENEWING-USD-Yearly","price":{"year":"PRINTDIG_NONRENEWING-USD-Yearly"}},{"id":"PRINTDIG_OLD","name":"Print & Digital","external_name":"Print & Digital","legacy_resource_id":"DIGPRINT","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["digital-access","print-issues"],"default_price_id":"PRINTDIG_OLD_P","price":{"year":"PRINTDIG_OLD_P"}},{"id":"access_granted_unlimited","name":"access_granted_unlimited","external_name":"Unlimited","legacy_resource_id":"UNLMTD","is_trial":false,"is_cds":false,"is_shippable":false,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":false,"enabled_
2in_portal":false,"features":["ad-free-access","digital-access","print-issues","special-edition-access","unlimited-shared-subscription"],"default_price_id":"access_granted_unlimited-USD-Yearly","price":{"year":"access_granted_unlimited-USD-Yearly"}},{"id":"UNLIMITED","name":"Unlimited","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","tote-bag","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_P","price":{"year":"UNLIMITED_P"}},{"id":"UNLIMITED_6MO","name":"6-Months Offer","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"US","is_trial":true,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_6MO_P","attachments":[{"item_id":"Initial-Charge_6months","charge_on_event":"subscription_creation"}],"price":{"initial":"Initial-Charge_6months-USD","year":"UNLIMITED_6MO_P"}},{"id":"UNLIMITED_CA","name":"[Canada] Unlimited","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"CA","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_CA-USD-Yearly","price":{"year":"UNLIMITED_CA-USD-Yearly"}},{"id":"UNLIMITED_CA_GIFT","name":"[Canada Gift] Unlimited","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"CA","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_CA_GIFT-USD-Yearly","price":{"year":"UNLIMITED_CA_GIFT-USD-Yearly"}},{"id":"UNLIMITED_CA_NONRENEWING","name":"Unlimited Canada Nonrenewing","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"CA","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_CA_NONRENEWING-USD-Yearly","price":{"year":"UNLIMITED_CA_NONRENEWING-USD-Yearly"}},{"id":"UNLIMITED_CDS","name":"CDS Unlimited","external_name":"Unlimited","legacy_resource_id":"UNLMTD","is_trial":false,"is_cds":true,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":false,"enabled_
2in_portal":false,"features":["ad-free-access","digital-access","print-issues","special-edition-access"],"default_price_id":"UNLIMITED_CDS_P","price":{"year":"UNLIMITED_CDS_P"}},{"id":"UNLIMITED_GIFT","name":"Unlimited Gift","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","tote-bag","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_GIFT_P","price":{"year":"UNLIMITED_GIFT_P"}},{"id":"UNLIMITED_GIFT_ARCHIVE","name":"Unlimited Gift Archive","external_name":"Unlimited","legacy_resource_id":"UNLMTD","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":false,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","tote-bag","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_GIFT_ARCHIVE-USD-Yearly","price":{"year":"UNLIMITED_GIFT_ARCHIVE-USD-Yearly"}},{"id":"UNLIMITED_GIFT_UNREDEEMED","name":"Unlimited Gift Unredeemed","external_name":"Unlimited Gift","legacy_resource_id":"UNLMTD","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":false,"enabled_
2in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","tote-bag","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_GIFT_UNREDEEMED-USD-Yearly","price":{"year":"UNLIMITED_GIFT_UNREDEEMED-USD-Yearly"}},{"id":"UNLIMITED_INT","name":"[International] Unlimited","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"INT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_INT-USD-Yearly","price":{"year":"UNLIMITED_INT-USD-Yearly"}},{"id":"UNLIMITED_INT_GIFT","name":"[International Gift] Unlimited","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"INT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_INT_GIFT-USD-Yearly","price":{"year":"UNLIMITED_INT_GIFT-USD-Yearly"}},{"id":"UNLIMITED_INT_NONRENEWING","name":"Unlimited International Nonrenewing","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"INT","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_INT_NONRENEWING-USD-Yearly","price":{"year":"UNLIMITED_INT_NONRENEWING-USD-Yearly"}},{"id":"UNLIMITED_NONRENEWING","name":"Unlimited Nonrenewing","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","tote-bag","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_NONRENEWING-USD-Yearly","price":{"year":"UNLIMITED_NONRENEWING-USD-Yearly"}},{"id":"UNLIMITED_UPGRADE","name":"Unlimited - Special Upgrade","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":false,"is_renewable":true,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","tote-bag","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_UPGRADE_P","price":{"year":"UNLIMITED_UPGRADE_P"}},{"id":"UNLIMITED_UPGRADE_GIFT","name":"Unlimited - Special Upgrade Gift","external_name":"Unlimited","legacy_resource_id":"UNLMTD","region":"US","is_trial":false,"is_cds":false,"is_shippable":true,"is_giftable":true,"is_renewable":false,"enabled_for_checkout":true,"enabled_in_portal":true,"features":["ad-free-access","digital-access","print-issues","special-edition-access","tote-bag","unlimited-shared-subscription"],"default_price_id":"UNLIMITED_UPGRADE_GIFT_P","price":{"year":"UNLIMITED_UPGRADE_GIFT_P"}}]'),v={name:"Production",slug:"prod",aid:"FU52w9tupu",authProvider:"auth0",authExternalClientId:"C1VZnhgUJaCUJCEC1aqmm6bg6I9L48fW",loaderUrl:"https://experience.tinypass.com/xbuilder/experience/load?aid=FU52w9tupu",cxenseSiteId:"4731406317427036748",endpointUrl:"https://buy.tinypass.com/api/v3",pianoIdUrl:"https://id.tp.scientificamerican.com",sdkUrl:"https://cdn.tp.scientificamerican.com/api/tinypass.min.js",defaultOffer:"OFU8RMQESTD8",winbackOffer:"OFJRF90GW1OM",terms:{winbackTerm1Year:"TMQPDNMS7RJV",winbackTerm2Year:"TM37JC43RWHD"}},k={name:"Pre-Production",slug:"preprod",aid:"zb26Lrf5pu",authProvider:"auth0",authExternalClientId:"949krH8ZEE0TwdIJxgIxuiQOVIT8nBJS",loaderUrl:"https://experience.tinypass.com/xbuilder/experience/load?aid=zb26Lrf5pu",endpointUrl:"https://buy.tinypass.com/api/v3",pianoIdUrl:"https://id.tinypass.com",sdkUrl:"https://cdn.tinypass.com/api/tinypass.min.js",defaultOffer:"OF85KSMYIFWO"},W={name:"Sandbox",slug:"sandbox",aid:"I2n3TREbsu",authProvider:"auth0",authExternalClientId:"949krH8ZEE0TwdIJxgIxuiQOVIT8nBJS",loaderUrl:"https://sandbox.tinypass.com/xbuilder/experience/load?aid=I2n3TREbsu",endpointUrl:"https://sandbox.tinypass.com/api/v3",pianoIdUrl:"https://sandbox.piano.io",sdkUrl:"https://sandbox.tinypass.com/api/tinypass.min.js",defaultOffer:"OFLWOLQY3245",winbackOffer:"OFBEBVV63VVA",terms:{winbackTerm1Year:"TMTAJO1X5L5A",winbackTerm2Year:"TM2EY1ESEFD9"}},re=[v,k,W],ne=()=>document.cookie.match(/(?:^|;
2)\s*__utp\s*=\s*([^;]+)/)?.[1]||"",se=e=>{e=e||ne();const i=e?J(e):null;return i?{...i,firstName:i.given_name,lastName:i.family_name,uid:i.sub,confirmed:void 0,valid:void 0,dirty:!0}:null},le=()=>{if(typeof window>"u")return!1;const e=localStorage,i="piano-debug",a=location.search.match(/debug=piano(?:-(prod|preprod|sandbox|log|reset))*/);if(!a?.[0])return e.getItem(i)||!1;const t=a[1]||"log";return t==="reset"?(e.removeItem(i),!1):(e.setItem(i,t),t)},_e=()=>{const e={prod:v.sdkUrl,preprod:k.sdkUrl,sandbox:W.sdkUrl};if(typeof window>"u")return;if(window.location.hostname.match(/^(?:www|blogs)\./))return e.prod;try{const a=le();if(a&&a!=="log")return e[a]}catch{}return e.sandbox},V=()=>{const e=_e();return re.find(i=>i.sdkUrl===e)},ce=(e,i)=>new Promise((a,t)=>{try{window.tp.api.callApi(e,i,r=>a(r))}catch(r){t(r)}});function Fe(){return V().defaultOffer}const Ye=(e,i,a)=>{(window.tp||{}).offer?.startCheckout({offerId:e,termId:i,promoCode:a||void 0})},L="_active_piano_purchase",ve={start:()=>P.set(L,"1",{expires:1/24/60*.5}),end:()=>P.remove(L),isActive:()=>P.get(L)==="1"},m=(e="",i)=>{const a=l.useState(!1),[t,r]=a;return l.useEffect(()=>{if(!e||!i)return;if(e==="init")throw new Error("usePianoCallback: 'init' isn't a valid callback. Use usePianoInit instead.");window.tp=window.tp||[];const s=window.tp.push(["addHandler",e,(...n)=>t?void 0:i(...n)]);return()=>{s&&window.tp[s-1]&&(window.tp[s-1][1]=()=>{}),r(!0)}},[]),a},de=e=>{const i=l.useState(!1),[a,t]=i;return l.useEffect(()=>{if(!e)return;window.tp=window.tp||[];const r=window.tp.push(["init",(...s)=>a?void 0:e(...s)]);return()=>{r&&window.tp[r-1]&&(window.tp[r-1][1]=()=>{}),t(!0)}},[]),i},oe=(e="",i)=>{function a(t){if(!(!t.data||!t.origin.includes("piano.io")&&!t.origin.includes("tinypass.com")))try{const r=JSON.parse(t.data);r.event===e&&i(r)}catch(r){console.error("[usePianoMessage] ",r)}}l.useEffect(()=>{if(!(!e||!i))return window.addEventListener("message",a),()=>window.removeEventListener("message",a)},[])},h=e=>console.warn("caught in noop",e),H=l.createContext({loadStatus:"loading",authStatus:"logged-out",user:null,setLoadError:h,isMaybeLoggedIn:!1,isLoggedIn:!1,isLoggedOut:!1,isLoaded:!1,isLoading:!1,isReady:!1,isError:!1,pianoMeterCount:null,logout:h,showLoginModal:h,showRegisterModal:h});function ke({children:e}){const i=Ie();return x.jsx(H.Provider,{value:i,children:e})}const ue=()=>l.useContext(H);function Ie(){const[e,i]=l.useState("loading"),[a,t]=l.useState("loading"),[r,s]=l.useState(null),n=a==="logged-in"||!!(a==="loading"&&r?.dirty),_=a==="logged-in",d=a==="logged-out"||a==="error",p=e!=="loading",u=a==="loading",I=e==="success",y=a==="error"||e==="error",D=()=>{t("logged-in"),s(window.tp.pianoId.getUser()||null)},f=(o=!1)=>{t(o?"error":"logged-out"),s(null)},b=()=>{if(e!=="loading"||a!=="loading"||window.tp.user)return;i("error"),f(!!r)};l.useEffect(()=>{s(se())},[]),m("loggedIn",()=>D()),m("loggedOut",()=>f()),m("loginFailed",()=>f(!0)),m("loginSuccess",()=>D()),m("registrationSuccess",()=>D()),m("registrationFailed",()=>f(!0)),m("profileUpdated",()=>D());const[A,U]=l.useState(null);function c(o){U(o.views)}return m("meterActive",c),m("meterExpired",c),de(()=>{const o=window.tp;i("success"),t(o.user.isUserValid()?"logged-in":"logged-out"),s(o.pianoId.getUser()||null),setTimeout(()=>s(o.pianoId.getUser()||r||null),5e3)}),oe("closed",()=>{setTimeout(()=>{t(o=>o!=="loading"?o:window.tp.user.isUserValid()?"logged-in":"logged-out")},50)}),{loadStatus:e,authStatus:a,pianoMeterCount:A,user:r,setLoadError:b,isMaybeLoggedIn:n,isLoggedIn:_,isLoggedOut:d,isLoaded:I,isLoading:u,isReady:p,isError:y,logout:o=>{t("loading"),window.location.href="/logout/?returnTo="+window.location.pathname},showLoginModal:o=>{t("loading"),window.location.href="/login/?returnTo="+window.location.pathname},showRegisterModal:o=>{t("loading"),window.location.href="/register/?returnTo="+window.location.pathname}}}const j=l.createContext(null);function We(){return l.useContext(j)}function Ve({children:e}){const[i,a]=l.useState(null);return l.useEffect(()=>a(V()),[]),x.jsx(j.Provider,{value:i,children:e})}let T=(...e)=>{};typeof window<"u"&&window?.location.search.match(/debug=access/)&&(T=console.debug.bind(window.console));async function pe(e=!0){let i;try{i=(await ce("/access/list"))?.data?.map?.(({resource:t})=>
2t).filter(Boolean)||[]}catch(a){if(console.error("[access] Error fetching user resource list",a),e)return[];throw a}return i}const g=(e=[],...i)=>e?.some?.(({rid:a})=>i.includes(a))||!1,S=(e=[])=>{const i=["UNLMTD","DIGPRINT","DIGITAL"];for(let a of i){const t=e.find(r=>r.rid===a);if(t)return t}return e[0]||null};function De(){if(typeof window===void 0)return;const e=window?.dataLayer.find(i=>i?.content?.publishedAtDate);if(e)return e.content.publishedAtDate;if(window?.__NEXT_DATA__)return window?.__NEXT_DATA__?.props?.pageProps.dataLayerContent?.publishedAtDate;if(window?.__DATA__)return window?.__DATA__?.initialData?.dataLayerContent?.content?.publishedAtDate}function fe(){if(typeof window>"u")return!1;const e=De();let i={};try{const t=P.get("idp_details");t&&(i=JSON.parse(t))}catch(t){console.error(t)}if(i?.BPID){if(!e)return!0;if(i.active_contracts===null)return T("[access] IDP accesss denied because there are no active entitlements"),!1;if(i.active_contracts===void 0)return T("[access] IDP accesss granted because the entitlements are undefined, failing open"),!0;const t=new Date(e);let r=!1;return i.active_contracts.forEach(s=>{let{to:n,from:_}=s;const d=new Date(_),p=new Date(n);t>=d&&t<=p&&(r=!0)}),T(`[access] IDP access ${r?"GRANTED":"DENIED"} for this page based on its release date`,{pubDate:t,active_contracts:i.active_contracts}),r}if(document.cookie.match("idp_magic="))return T("[access] IDP accesss granted because of a magic word"),!0;if(document.cookie.match("ezproxy_bpid="))return T("[access] IDP accesss granted because of a magic work"),!0;const a=!!document.cookie.match(/_pc_instaccess=1/);return a&&T("[access] IDP accesss granted on IP alone"),a}const me=l.createContext({hasAccess:void 0,hasSub:void 0,hasAdFree:void 0,hasIdpAccess:void 0,hasUnlimitedAccess:void 0,terms:[],resources:[],checkAccess:()=>Promise.resolve([])});function He({children:e}){const i=Ne();return x.jsx(me.Provider,{value:i,children:e})}const M="_sciamLastSeenResources";function Y(){let e=localStorage.getItem(M);if(!e)return[];try{return JSON.parse(e)}catch(i){return console.warn("[piano] Parsing recent entitlements failed",[i,e]),[]}}function ge(e){try{localStorage.setItem(M,JSON.stringify(e))}catch(i){console.warn("[piano] access: could not store resources to localstorage",i)}}function Te(){localStorage.removeItem(M)}function Ne(){const{isReady:e,authStatus:i}=ue(),[a,t]=l.useState([]),[r,s]=l.useState(void 0),[n,_]=l.useState(void 0),[d,p]=l.useState(void 0),[u,I]=l.useState(void 0),[y,D]=l.useState(()=>S(a)),[f,b]=l.useState(null),A=d||r;l.useEffect(()=>{function c(){const R=fe();p(R),R&&I(!0)}return c(),window.addEventListener("ipd-update",c),()=>{window.removeEventListener("idp-update",c)}},[]),l.useEffect(()=>{a.length&&(s(g(a,"DIGITAL","DIGPRINT","UNLMTD")),_(g(a,"ADFREE","UNLMTD")),I(d||g(a,"UNLMTD")),D(S(a)))},[a.map(c=>c.rid).join(",")]);async function U(){i==="logged-in"&&r===!1&&s(void 0);let c=await pe();return c.length?(ge(c),f&&(console.log("[piano] access: race condition detected"),clearTimeout(f))):c=Y(),t(c),s(g(c,"DIGITAL","DIGPRINT","UNLMTD")),_(g(c,"ADFREE","UNLMTD")),D(S(c)),!c?.length&&!d&&I(!1),c}return l.useEffect(()=>{if(!e){s(void 0);return}if(i==="error"){let c=Y();s(g(c,"DIGITAL","DIGPRINT","UNLMTD")),_(g(c,"ADFREE","UNLMTD")),D(S(c))}if(i!=="loading"){if(i==="logged-out"){s(!1),I(!!d),t([]);const c=setTimeout(()=>{Te()},1e4);b(c);return}U()}},[e,i]),{hasAccess:A,hasSub:r,hasAdFree:n,hasIdpAccess:d,hasUnlimitedAccess:u,resources:a,terms:a,primaryResource:y,checkAccess:U}}const je=JSON.parse('[{"id":"ARCHIVAL_GIFT_CHARGE_1YR-USD","name":"Archival Gift Charge 1 Year USD","item_id":"ARCHIVAL_GIFT_CHARGE_1YR","external_name":"Gift Subscription","price":0,"currency_code":"USD","is_taxable":false,"item_type":"charge"},{"id":"Initial-Charge_1yearannu-USD","name":"Initial Charge_1yearannu USD","item_id":"Initial-Charge_1yearannu","external_name":"Initial Charge","price":2700,"currency_code":"USD","is_taxable":true,"item_type":"charge"},{"id":"Initial-Charge_5months-USD","name":"Initial Charge_5months USD","item_id":"Initial-Charge_5months","external_name":"Initial Charge","price":1000,"currency_code":"USD","is_taxable":true,"item_type":"charge"},{"id":"Initial-Charge_60days-USD","name":"Initial Charge_60days USD","item_id":"Initial-Charge_60days","external_name":"Initial Charge","price":100,"currency_code":"USD","is_taxable":true,"item_type":"charge"},{"id":"Initial-Charge_6months-USD","name":"Initial Charge_6months USD","item_id":"Initial-Charge_6months","external_name":"Initial Charge","price":3000,"currency_code":"USD","is_taxable":true,"item_type":"charge"},{"id":"Initial-Charge_90days-USD","name":"Initial-Charge_90days USD","item_id":"Initial-Charge_90days","external_name":"Promotional Price","price":100,"currency_code":"USD","is_taxable":true,"item_type":"charge"},{"id":"Initial-Charge_digital2years-USD","name":"Initial-Charge_digital2years USD","item_id":"Initial-Charge_digital2years","external_name":"Initial Charge","price":3900,"currency_code":"USD","is_taxable":true,"item_type":"charge"},{"id":"Initial-Charge_PD1year-USD","name":"Initial Charge_PD1year USD","item_id":"Initial-Charge_PD1year","external_name":"Initial Charge","price":2849,"currency_code":"USD","is_taxable":true,"item_type":"charge"},{"id":"Initial-Charge_pd2years-USD","name":"Initial Charge_pd2years USD","item_id":"Initial-Charge_pd2years","external_name":"Initial Charge","price":5224,"currency_code":"USD","is_taxable":true,"item_type":"charge"},{"id":"Initial-Charge-5for5-USD","name":"Initial Charge 5for5 USD","item_id":"Initial-Charge-5for5","external_name":"Promotional Period","price":500,"currency_code":"USD","is_taxable":true,"item_type":"charge"},{"id":"REDEEMED_DIGITAL_GIFT1-USD","name":"Redeemed Digital Gift1 USD","item_id":"REDEEMED_DIGITAL_GIFT1","external_name":"Digital Gift","price":0,"currency_code":"USD","is_taxable":false,"item_type":"charge"},{"id":"REDEEMED_PRINTDIG_GIFT-USD","name":"REDEEMED_PRINTDIG_GIFT USD","item_id":"REDEEMED_PRINTDIG_GIFT","external_name":"Print & Digital Gift","price":0,"currency_code":"USD","is_taxable":false,"item_type":"charge"},{"id":"REDEEMED_UNLIMITED_GIFT-USD","name":"Redeemed Unlimited Gift USD","item_id":"REDEEMED_UNLIMITED_GIFT","external_name":"Unlimited Gift","price":0,"currency_code":"USD","is_taxable":false,"item_type":"charge"},{"id":"UNREDEEMED_DIGITAL_GIFT-USD","name":"Unredeemed Digital Gift USD","item_id":"UNREDEEMED_DIGITAL_GIFT","external_name":"Digital Gift","price":0,"currency_code":"USD","is_taxable":false,"item_type":"charge"},{"id":"UNREDEEMED_PRINTDIG_GIFT-USD","name":"Unredeemed Print & Digital Gift USD","item_id":"UNREDEEMED_PRINTDIG_GIFT","external_name":"Print & Digital Gift","price":0,"currency_code":"USD","is_taxable":false,"item_type":"charge"},{"id":"UNREDEEMED_UNLIMITED_GIFT-USD","name":"Unredeemed Unlimited Gift USD","item_id":"UNREDEEMED_UNLIMITED_GIFT","external_name":"Unlimited Gift","price":0,"currency_code":"USD","is_taxable":false,"item_type":"charge"},{"id":"ACCESSGRANTED_1MO-USD-Monthly","name":"Digital Access Granted - 1 month","item_id":"ACCESSGRANTED_1MO","external_name":"Digital","price":0,"currency_code":"USD","period":1,"period_unit":"month","is_taxable":false,"item_type":"plan","billing_cycles":1},{"id":"ACCESSGRANTED_3MO-USD-Every-3-months","name":"Digital Access Granted - 3 months","item_id":"ACCESSGRANTED_3MO","external_name":"Complimentary Digital Access","price":0,"currency_code":"USD","period":3,"period_unit":"month","is_taxable":false,"item_type":"plan","billing_cycles":1},{"id":"ACCESSGRANTED_6MO-USD-Every-6-months","name":"Digital Access Granted - 6 months","item_id":"ACCESSGRANTED_6MO","external_name":"Digital","price":0,"currency_code":"USD","period":6,"period_unit":"month","is_taxable":false,"item_type":"plan","billing_cycles":1},{"id":"ACCESSGRANTED_9MO-USD-Every-9-months","name":"Digital Access Granted - 9 months","item_id":"ACCESSGRANTED_9MO","external_name":"Digital","price":0,"currency_code":"USD","period":9,"period_unit":"month","is_taxable":false,"item_type":"plan","billing_cycles":1}
2,{"id":"DIGITAL_GIFT_6MO-USD-Every-6-months","name":"6 Month digital gift USD Every 6 months","item_id":"DIGITAL_GIFT_6MO","external_name":"Digital Gift","price":0,"currency_code":"USD","period":6,"period_unit":"month","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"access_granted_digital-USD-Yearly","name":"access_granted_digital USD Yearly","item_id":"access_granted_digital","external_name":"Access Granted: Digital","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan"},{"id":"access_granted_print-USD-Yearly","name":"access_granted_print USD Yearly","item_id":"access_granted_print","external_name":"Print & Digital","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan"},{"id":"access_granted_unlimited-USD-Yearly","name":"access_granted_unlimited USD Yearly","item_id":"access_granted_unlimited","external_name":"Unlimited","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan"},{"id":"ACCESSGRANTED_1YEAR-USD-Yearly","name":"Digital Access Granted - 1 Year","item_id":"ACCESSGRANTED_1YEAR","external_name":"Digital","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan","billing_cycles":1},{"id":"DIGITAL_1YEARDISCOUNT_P","name":"Annual Subscription - 27.99 TRIAL","item_id":"DIGITAL_1YEARDISCOUNT","external_name":"Digital","price":3900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":12,"trial_period_unit":"month","is_taxable":true,"item_type":"plan"},{"id":"DIGITAL_2YEAR-USD-Yearly","name":"Digital 2 Year","item_id":"DIGITAL_2YEAR","external_name":"Digital","price":3900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":24,"trial_period_unit":"month","is_taxable":true,"item_type":"plan"},{"id":"DIGITAL_30DAY_P","name":"30-Day Trial Digital Access","item_id":"DIGITAL_30DAY","external_name":"Digital","price":3900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":30,"trial_period_unit":"day","is_taxable":true,"item_type":"plan"},{"id":"DIGITAL_5FOR5-USD-Yearly","name":"5 Months for $5 Digital Subscription USD Yearly","item_id":"DIGITAL_5FOR5","external_name":"Digital","price":3900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":5,"trial_period_unit":"month","is_taxable":true,"item_type":"plan"},{"id":"DIGITAL_5MO_P","name":"5 Months for 10$ Digital Subscription","item_id":"DIGITAL_5MO","external_name":"Digital","price":3900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":5,"trial_period_unit":"month","is_taxable":true,"item_type":"plan"},{"id":"DIGITAL_60DAY_P","name":"60-Day Access","item_id":"DIGITAL_60DAY","external_name":"Digital","price":3900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":60,"trial_period_unit":"day","is_taxable":true,"item_type":"plan"},{"id":"DIGITAL_90DAY_P","name":"90-Day Trial","item_id":"DIGITAL_90DAY","external_name":"Digital","price":3900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":90,"trial_period_unit":"day","is_taxable":true,"item_type":"plan"},{"id":"DIGITAL_CDS_OLD_P","name":"CDS SAD","item_id":"DIGITAL_CDS_OLD","external_name":"Digital","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan"},{"id":"DIGITAL_CDS_P","name":"CDS SAD New","item_id":"DIGITAL_CDS","external_name":"Digital","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan"},{"id":"DIGITAL_GIFT_ARCHIVE-USD-Yearly","name":"Digital Gift Archive USD Yearly","item_id":"DIGITAL_GIFT_ARCHIVE","external_name":"Digital Gift Subscription","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"DIGITAL_GIFT_P","name":"Digital gift subscription","item_id":"DIGITAL_GIFT","external_name":"Digital","price":3900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"DIGITAL_NONRENEWING-USD-Yearly","name":"Digital Nonrenewing USD Yearly","item_id":"DIGITAL_NONRENEWING","external_name":"Digital","price":3900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"DIGITAL_P","name":"Digital","item_id":"DIGITAL","external_name":"Digital Subscription","price":3900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"DIGITAL-GIFT-UNREDEEMED-USD-Yearly","name":"Digital Gift Unredeemed USD Yearly","item_id":"DIGITAL-GIFT-UNREDEEMED","external_name":"Digital Gift","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"Digital-Shared-Subscription-New-USD-Yearly","name":"Digital Shared Subscription New USD Yearly","item_id":"Digital-Shared-Subscription-New","external_name":"Digital Access","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan","billing_cycles":1},{"id":"Digital-Shared-Subscription-USD-Yearly","name":"Digital Shared Subscription USD Yearly","item_id":"Digital-Shared-Subscription","external_name":"Digital","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_1YEAR_P","name":"Print & Digital 1 Year","item_id":"PRINTDIG_1YEAR","external_name":"Print & Digital","price":5900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":12,"trial_period_unit":"month","is_taxable":true,"item_type":"plan"},{"id":"PRINTDIG_2YEAR_P","name":"Print & Digital 2 Year","item_id":"PRINTDIG_2YEAR","external_name":"Print & Digital","price":5900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":24,"trial_period_unit":"month","is_taxable":true,"item_type":"plan"},{"id":"PRINTDIG_CA_GIFT_OLD_P","name":"[Canada Gift] Print & Digital","item_id":"PRINTDIG_CA_GIFT_OLD","external_name":"Print & Digital","price":7200,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_CA_GIFT_P","name":"[Canada Gift New] Print & Digital","item_id":"PRINTDIG_CA_GIFT","external_name":"Print & Digital","price":8900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_CA_NONRENEWING-USD-Yearly","name":"Print & Digital Canada Nonrenewing USD Yearly","item_id":"PRINTDIG_CA_NONRENEWING","external_name":"Print & Digital","price":8900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_CA_OLD_P","name":"[Canada] Print & Digital 1","item_id":"PRINTDIG_CA_OLD","external_name":"Print & Digital","price":7200,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"PRINTDIG_CA_P","name":"[Canada New] Print & Digital","item_id":"PRINTDIG_CA","external_name":"Print & Digital","price":8900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"PRINTDIG_CDS_P","name":"CDS Print","item_id":"PRINTDIG_CDS","external_name":"Print & Digital","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan"},{"id":"PRINTDIG_GIFT_ARCHIVE-USD-Yearly","name":"Print and Digital Gift Archive USD Yearly","item_id":"PRINTDIG_GIFT_ARCHIVE","external_name":"Print & Digital","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_GIFT_OLD_P","name":"Print & Digital gift subscription","item_id":"PRINTDIG_GIFT_OLD","external_name":"Print & Digital","price":5900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_GIFT_P","name":"[New] Print & Digital Gift","item_id":"PRINTDIG_GIFT","external_name":"Print & Digital","price":7900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_GIFT_UNREDEEMED-USD-Yearly","name":"Print & Digital Gift Unredeemed USD Yearly","item_id":"PRINTDIG_GIFT_UNREDEEMED","external_name":"Print & Digital Gift","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_INT_GIFT_OLD_P","name":"[International Gift] Print & Digital","item_id":"PRINTDIG_INT_GIFT_OLD","external_name":"Print & Digital","price":8200,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_INT_GIFT_P","name":"[International Gift New] Print & Digital","item_id":"PRINTDIG_INT_GIFT","external_name":"Print & Digital","price":9900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_INT_NONRENEWING-USD-Yearly","name":"Print & Digital International Nonrenewing USD Yearly","item_id":"PRINTDIG_INT_NONRENEWING","external_name":"Print & Digital","price":9900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_INT_OLD_P","name":"[International] Print & Digital","item_id":"PRINTDIG_INT_OLD","external_name":"Print & Digital","price":8200,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"PRINTDIG_INT_P","name":"[International New] Print & Digital","item_id":"PRINTDIG_INT","external_name":"Print & Digital","price":9900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"PRINTDIG_NONRENEWING-USD-Yearly","name":"Print & Digital Nonrenewing USD Yearly","item_id":"PRINTDIG_NONRENEWING","external_name":"Print & Digital","price":7900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"PRINTDIG_OLD_P","name":"Print & Digital","item_id":"PRINTDIG_OLD","external_name":"Print & Digital","price":5900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"PRINTDIG_P","name":"[New] Print & Digital","item_id":"PRINTDIG","external_name":"Print & Digital","price":7900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"REDEEMED_DIGITAL_GIFT-USD-Yearly","name":"Redeemed Digital Gift USD Yearly","item_id":"REDEEMED_DIGITAL_GIFT","external_name":"Digital Gift Subscription","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan","billing_cycles":1}
2,{"id":"UNLIMITED_6MO_P","name":"6-Months Offer","item_id":"UNLIMITED_6MO","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","trial_period":6,"trial_period_unit":"month","is_taxable":true,"item_type":"plan"},{"id":"UNLIMITED_CA_GIFT-USD-Yearly","name":"[Canada Gift] Unlimited","item_id":"UNLIMITED_CA_GIFT","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"UNLIMITED_CA_NONRENEWING-USD-Yearly","name":"Unlimited Canada Nonrenewing USD Yearly","item_id":"UNLIMITED_CA_NONRENEWING","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"UNLIMITED_CA-USD-Yearly","name":"[Canada] Unlimited","item_id":"UNLIMITED_CA","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"UNLIMITED_CDS_P","name":"CDS Unlimited","item_id":"UNLIMITED_CDS","external_name":"Unlimited","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":false,"item_type":"plan"},{"id":"UNLIMITED_GIFT_ARCHIVE-USD-Yearly","name":"Unlimited Gift Archive USD Yearly","item_id":"UNLIMITED_GIFT_ARCHIVE","external_name":"Unlimited","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"UNLIMITED_GIFT_P","name":"Unlimited gift subscription","item_id":"UNLIMITED_GIFT","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"UNLIMITED_GIFT_UNREDEEMED-USD-Yearly","name":"Unlimited Gift Unredeemed USD Yearly","item_id":"UNLIMITED_GIFT_UNREDEEMED","external_name":"Unlimited Gift","price":0,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"UNLIMITED_INT_GIFT-USD-Yearly","name":"Unlimited Gift","item_id":"UNLIMITED_INT_GIFT","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"UNLIMITED_INT_NONRENEWING-USD-Yearly","name":"Unlimited International Nonrenewing USD Yearly","item_id":"UNLIMITED_INT_NONRENEWING","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"UNLIMITED_INT-USD-Yearly","name":"[International] Unlimited","item_id":"UNLIMITED_INT","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"UNLIMITED_NONRENEWING-USD-Yearly","name":"Unlimited Nonrenewing USD Yearly","item_id":"UNLIMITED_NONRENEWING","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"UNLIMITED_P","name":"Unlimited","item_id":"UNLIMITED","external_name":"Unlimited Subscription","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"},{"id":"UNLIMITED_UPGRADE_GIFT_P","name":"Unlimited - Special Upgrade Gift","item_id":"UNLIMITED_UPGRADE_GIFT","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan","billing_cycles":1},{"id":"UNLIMITED_UPGRADE_P","name":"Unlimited - Special Upgrade","item_id":"UNLIMITED_UPGRADE","external_name":"Unlimited","price":19900,"currency_code":"USD","period":1,"period_unit":"year","is_taxable":true,"item_type":"plan"}]'),Je=["US","AS","GU","MP","PR","VI","UM","MH","FM","PW"],Be=["US","CA","IN"],$e={renewing:{DIGITAL:{default:"DIGITAL"},DIGPRINT:{US:"PRINTDIG",CA:"PRINTDIG_CA",INT:"PRINTDIG_INT"},UNLMTD:{US:"UNLIMITED",CA:"UNLIMITED_CA",INT:"UNLIMITED_INT"}},nonrenewing:{DIGITAL:{default:"DIGITAL_NONRENEWING"},DIGPRINT:{US:"PRINTDIG_NONRENEWING",CA:"PRINTDIG_CA_NONRENEWING",INT:"PRINTDIG_INT_NONRENEWING"},UNLMTD:{US:"UNLIMITED_NONRENEWING",CA:"UNLIMITED_CA_NONRENEWING",INT:"UNLIMITED_INT_NONRENEWING"}},gift:{DIGITAL:{default:"DIGITAL_GIFT"},DIGPRINT:{US:"PRINTDIG_GIFT",CA:"PRINTDIG_CA_GIFT",INT:"PRINTDIG_INT_GIFT"},UNLMTD:{US:"UNLIMITED_GIFT",CA:"UNLIMITED_CA_GIFT",INT:"UNLIMITED_INT_GIFT"}}},Ke=[{US:"PRINTDIG",CA:"PRINTDIG_CA",INT:"PRINTDIG_INT"},{US:"PRINTDIG_1YEAR"},{US:"PRINTDIG_2YEAR"},{US:"PRINTDIG_GIFT",CA:"PRINTDIG_CA_GIFT",INT:"PRINTDIG_INT_GIFT"},{US:"PRINTDIG_GIFT_OLD",CA:"PRINTDIG_CA_GIFT_OLD",INT:"PRINTDIG_INT_GIFT_OLD"},{US:"PRINTDIG_NONRENEWING",CA:"PRINTDIG_CA_NONRENEWING",INT:"PRINTDIG_INT_NONRENEWING"},{US:"PRINTDIG_OLD",CA:"PRINTDIG_CA_OLD",INT:"PRINTDIG_INT_OLD"},{US:"UNLIMITED",CA:"UNLIMITED_CA",INT:"UNLIMITED_INT"},{US:"UNLIMITED_6MO"},{US:"UNLIMITED_GIFT",CA:"UNLIMITED_CA_GIFT",INT:"UNLIMITED_INT_GIFT"},{US:"UNLIMITED_NONRENEWING",CA:"UNLIMITED_CA_NONRENEWING",INT:"UNLIMITED_INT_NONRENEWING"},{US:"UNLIMITED_UPGRADE"},{US:"UNLIMITED_UPGRADE_GIFT"}];function Qe(e={}){console.log("[piano] OneTrust consent state:",null);const a=null.performance&&null.functional?"opt-in":"essential";ye({AM:null.targeting?"opt-in":"opt-out",CP:a,AD:null.targeting&&null.social?"opt-in":null.targeting?"essential":"opt-out",PR:a,DL:a,...e})}function ye(e){const i=window.tp?.consent?.setByPurpose;Object.entries(e).forEach(([a,t])=>i?.(a,t))}export{Re as J,Ve as P,he as W,Se as X,Le as _,Me as a,we as b,je as c,ke as d,He as e,xe as f,We as g,m as h,Ye as i,Fe as j,Pe as k,Ae as l,ve as m,Ce as n,Ke as o,Oe as p,$e as q,Je as r,Qe as s,Be as t,ue as u,ie as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.