1/*! @version: todo */ 2"use strict";(self.webpackChunktemplate_renderer=self.webpackChunktemplate_renderer||[]).push([[69],{1069:(e,o,l)=>{l.r(o),l.d(o,{PaywallOverlayModule:()=>a});const t="paywall-fallback-content",n=(e,o)=>new Promise((l=>{let t=!1;const n=[],r=[],a=e=>{t||(t=!0,n.forEach((e=>e.disconnect())),r.forEach((e=>e())),window.clearTimeout(c),l(e))},i=e=>{const o=e.querySelector("iframe");o&&(e=>{var o;try{if("complete"===(null==(o=e.contentDocument)?void 0:o.readyState))return void a(e)}catch(e){}const l=()=>a(e);e.addEventListener("load",l,{once:!0}),r.push((()=>e.removeEventListener("load",l)))})(o)};e.forEach((e=>{const o=new MutationObserver((()=>i(e)));o.observe(e,{childList:!0,subtree:!0}),n.push(o),i(e)}));const c=window.setTimeout((()=>{for(const o of e){const e=o.querySelector("iframe");if(e)return void a(e)}a(null)}),o)})),r=e=>{var o,l,n;if(document.getElementById(t))return;const r=document.getElementById("pw_fallback"),a=null!=(n=null==(o=null==r?void 0:r.textContent)?void 0:o.trim())?n:null==(l=e.innerHTML)?void 0:l.trim();if(!a)return;const i=document.createElement("div");i.id=t,i.innerHTML=a,i.classList.add("fixed","w-full","bottom-0"),document.body.appendChild(i)},a=e=>{return o=void 0,l=null,t=function*(){window.COPLA.console.log("PaywallOverlayModule initialized");const o=e.getAttribute("data-paywall-selector"),l=(null==o?void 0:o.replaceAll(">",">"))||"#piano-sticky-paywall";var t;window.COPLA.console.log("PaywallOverlayModule selector",l),yield new Promise((e=>{"complete"!==document.readyState?window.addEventListener("load",(()=>e()),{once:!0}):e()})),yield(t=2e3,new Promise((e=>setTimeout(e,t))));const a=Array.from(document.querySelectorAll(l));if(window.COPLA.console.log("PaywallOverlayModule containers found",a.length),0===a.length)return window.COPLA.console.log("PaywallOverlayModule no containers, showing fallback"),void r(e);const i=yield n(a,5e3);window.COPLA.console.log("PaywallOverlayModule iframe result",i),i||(window.COPLA.console.log("PaywallOverlayModule no iframe loaded, showing fallback"),r(e))},new Promise(((e,n)=>{var r=e=>{try{i(t.next(e))}catch(e){n(e)}},a=e=>{try{i(t.throw(e))}catch(e){n(e)}},i=o=>o.done?e(o.value):Promise.resolve(o.value).then(r,a);i((t=t.apply(o,l)).next())}));var o,l,t}}}]);
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.