((f,h,g,u)=>{function w(a){["click","load","resize","scroll","visibilitychange"].forEach(b=>a(b,G,{capture:!0,passive:!0}))}function G(){f.clearTimeout(x);x=f.setTimeout(y,32)}function z(a){let b=-1,c=h.createElement("iframe"),d=JSON.parse(a.getAttribute(g+"-iframe"));for(;++b{e=""+e.data;B(c,e);try{if(.1>Math.random()&&k instanceof Storage){var m=k.length||0;if(100Math.random()&&k.removeItem(l)}}k[A(d)]=e}catch{}};c.contentWindow.postMessage("s9e:init","*",[b.port2])}function K(a){a=a.getBoundingClientRect();if(a.bottom>f.innerHeight)return 2;let b=-1;!C&&location.hash&&(b=n(location.hash,"top"));0>b&&(b=n(".p-navSticky","bottom"));return a.top{l.transition=""},32);l.height=b+"px";c&&(l.width=c+"px");e&&((a=n("html","height")-f.scrollY-m)&&f.scrollBy(0,a),q=f.scrollY)}function y(){if("hidden"!==h.visibilityState){q===f.scrollY?p=0:(C=!0,p=q>(q=f.scrollY)?1:0);"complete"===h.readyState&&(v=2*f.innerHeight,D=-v/(0===p?4:2));var a=[];r.forEach(b=>{var c=b.getBoundingClientRect();if(c.bottomv||!c.width)c=!1;else{let d=b.parentElement,e=d;for(;d;)/bbCodeBlock-expandContent/.test(d.className)&&(e=d),d=d.parentElement;c=c.top<=e.getBoundingClientRect().bottom}c?b.hasAttribute(g+"-c2l")?M(b):z(b):a.push(b)});r=a;r.length||w(f.removeEventListener)}}function H(a){a=a.target;const b=a.firstChild,c=a.getBoundingClientRect(),d=h.documentElement,e=b.style;e.bottom=d.clientHeight-c.bottom+"px";e.height=c.height+"px";e.width=c.width+"px";"rtl"===d.dir?e.left=c.left+"px":e.right=d.clientWidth-c.right+"px";b.offsetHeight&&/inactive/.test(a.className)?(a.className=u+"-active-tn",b.removeAttribute("style"),t&&t.click(),t=a):(a.className=u+"-inactive-tn",t=null)}function I(a){a=a.target;const b=a.parentElement;/-tn/.test(b.className)&&(b.className=b.className.replace("-tn",""),a.removeAttribute("style"))}function M(a){a.hasAttribute(g+"-c2l-background")&&((a.hasAttribute(g)?a:a.parentElement.parentElement).style.background=a.getAttribute(g+"-c2l-background"));a.onclick=b=>{b.stopPropagation();z(a)}}function A(a){return a.replace(/.*?ifram(e\/\d+\/\w+)[^#]*(#[^#]+).*/,"s9$1$2")}let E=h.querySelectorAll("span["+g+"-iframe]"),F=0,r=[],D=0,v=f.innerHeight,x=0,C=!1,q=f.scrollY,p=0,t=null,k={};for(;F