var Ut=Object.defineProperty;var Wt=(n,t,e)=>t in n?Ut(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var E=(n,t,e)=>Wt(n,typeof t!="symbol"?t+"":t,e);let $=Error||null;var dt,ht;let Jt=((ht=(dt=crypto==null?void 0:crypto.subtle)==null?void 0:dt.verify)==null?void 0:ht.bind(crypto==null?void 0:crypto.subtle))||null;var ut,ft;let jt=((ft=(ut=crypto==null?void 0:crypto.subtle)==null?void 0:ut.importKey)==null?void 0:ft.bind(crypto==null?void 0:crypto.subtle))||null;var pt;let Vt=((pt=crypto==null?void 0:crypto.getRandomValues)==null?void 0:pt.bind(crypto))||null;var mt;let rt=((mt=history==null?void 0:history.back)==null?void 0:mt.bind(history))||null,xt=(history==null?void 0:history.length)||null;var yt;let m=((yt=document==null?void 0:document.createElement)==null?void 0:yt.bind(document))||null;var gt;let Rt=((gt=document==null?void 0:document.getElementById)==null?void 0:gt.bind(document))||null;var St;let B=((St=document==null?void 0:document.querySelector)==null?void 0:St.bind(document))||null;var bt;let v=((bt=document==null?void 0:document.querySelectorAll)==null?void 0:bt.bind(document))||null;var vt;let x=((vt=ShadowRoot==null?void 0:ShadowRoot.prototype)==null?void 0:vt.querySelector)||null;var wt;let R=((wt=Element==null?void 0:Element.prototype)==null?void 0:wt.querySelector)||null;var Et;let H=((Et=Element==null?void 0:Element.prototype)==null?void 0:Et.querySelectorAll)||null;var At;let p=((At=Element==null?void 0:Element.prototype)==null?void 0:At.getElementsByTagName)||null;var Ct;let u=((Ct=ShadowRoot==null?void 0:ShadowRoot.prototype)==null?void 0:Ct.appendChild)||null;var Tt;let f=((Tt=Node==null?void 0:Node.prototype)==null?void 0:Tt.appendChild)||null,J=fetch||null,U=setTimeout||null,qt=clearTimeout||null,Xt=parseInt||null,W=parseFloat||null,Nt=(Math==null?void 0:Math.min)||null,Kt=(Math==null?void 0:Math.max)||null,O=(location==null?void 0:location.href)||null,Mt=(location==null?void 0:location.host)||null,L=(location==null?void 0:location.hostname)||null,j=(getComputedStyle==null?void 0:getComputedStyle.bind(window))||null;var Lt;let ot=((Lt=window==null?void 0:window.home)==null?void 0:Lt.bind(window))||null;const it={prod:0,dev:1,debug:2},Ds=it.prod||it.prod;const zt=/:-abp-(\w+)\((.+)\)/;function Gt(n){return n.startsWith(">")?`:scope ${n}`:n}function Yt(n){return n.startsWith(">")?n.slice(1):n}function Dt(n){const t=zt.exec(n);return t===null?{baseSelector:n,pseudoClass:null}:{baseSelector:n.slice(0,t.index)===""?"*":n.slice(0,t.index),pseudoClass:{name:t[1],value:t[2]}}}function Zt(n,t){return n.textContent.includes(t)}function Qt(n,t){const e=Dt(t),s=H==null?void 0:H.call(n,Gt(e.baseSelector));return Array.from(s).some(r=>V(r,e))}function te(n,t){return t.split(";").filter(s=>s.trim()).map(s=>s.split(":").map(r=>r.trim())).every(([s,r])=>n.style[s]===r||j(n).getPropertyValue(s)===r)}const ee={contains:Zt,has:Qt,properties:te};function V(n,t){if(!n||!t||!Object.prototype.hasOwnProperty.call(t,"baseSelector")||!Object.prototype.hasOwnProperty.call(t,"pseudoClass"))return!1;if(!t.pseudoClass)return n.matches(Yt(t.baseSelector));const e=ee[t.pseudoClass.name];return e?e(n,t.pseudoClass.value):!1}function Pt(n){const t=atob(n),e=t.length,s=new Uint8Array(e);for(let r=0;r{for(const e of n)if(await t(e))return!0;return!1};async function re(n,t,e){const s=await se(n),o=new TextEncoder().encode(e);return ne(t,i=>Jt({name:"RSA-PSS",hash:{name:"SHA-256"},saltLength:30},s,Pt(i.replace(/-/g,"+").replace(/_/g,"/")),o))}function oe(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,n=>(n^Vt(new Uint8Array(1))[0]&15>>n/4).toString(16))}function ie(){const t=Array.from(p==null?void 0:p.call(document,"link")).find(e=>e.rel.toLowerCase()==="alternate"&&e.hreflang&&e.href===O);return t?t.hreflang:null}function ae(){const t=Array.from(p==null?void 0:p.call(document,"meta")).find(e=>e.httpEquiv.toLowerCase()==="content-language");return t?t.content:null}function ce(){return document.documentElement.lang||document.documentElement.getAttribute("xml:lang")||ae()||ie()||"en"}function q(n){return n.includes(":-abp-")}function kt(n){return!n||!Array.isArray(n)||n.length===0?[]:n.filter(t=>!q(t))}function le(n){return!n||!Array.isArray(n)?{regular:[],extended:[]}:n.reduce((t,e)=>(q(e)?t.extended.push(e):t.regular.push(e),t),{regular:[],extended:[]})}function de(){try{const n=window.top.nativeWindowLocationHref;return!1}catch{return!0}}function Ot(){typeof ot=="function"?ot():O="about:blank"}function he(){const{host:t}=window.location,e=Nt(xt,5);let s=0;function r(){s++,Mt===t&&(s1?he():Ot()}function fe(){var e;const n='/TOBbmc8i5cglw7q7wAmnAToIkUvlwJbqBpmnKoYyRk4kvFDb9h-aHtpBTXIRzmgNk_E9LoktrZPxj28ujeBFtg==';if(Array.from(p==null?void 0:p.call(document.head,"link")).some(s=>s.href===n))return;const t=m("link");t.type="text/css",t.rel="stylesheet",t.href=n,(e=document.head instanceof ShadowRoot?u:f)==null||e.call(document.head,t)}function X(n){let{textContent:r}=n;if(r.length>=59){let o=r.lastIndexOf(" ",56);o<30&&(o=56),r=r.substring(0,o),r+=" ..."}return r}async function pe(n,t){try{const s=await(await J(n,{method:"POST"})).json();if(s&&s.status==="error")return}catch{}t()}const me="tp-loader-src";async function ye(n,t){const e=Object.getOwnPropertyNames(window.top).filter(s=>s.length===n.length);return e&&e.length!==0&&await re(t,e,`${me}${Mt}`)?!0:(window.top[n]=!0,!1)}class ge{constructor(){this.cachedURLSelectors=[],this.cachedURLExtendedSelectors=new Set,this.cachedSelectors=[],this.cacheIdsSet=new Set,this.cachedClassesSet=new Set}matches(t){return this.cachedSelectors.some(e=>{try{return t.matches(e)}catch{return!1}})?{match:!0,hide:!0}:this.elementMatches(t)?{match:!0,hide:!1}:this.cachedURLSelectors.some(e=>{try{return t.matches(e)}catch{return!1}})?{match:!0,hide:!0}:Array.from(this.cachedURLExtendedSelectors).some(e=>{try{return t.matches(e.baseSelector)&&V(t,e)}catch{return!1}})?{match:!0,hide:!0}:{match:!1,hide:!1}}elementMatches(t){if(!t.id||!t.classList||!this.cacheIdsSet.has(t.id))return!1;for(let e=0;e0&&(this.cachedURLSelectors=t)}addExtendedSelector(t){t&&this.cachedURLExtendedSelectors.add(t)}addSelectors(t,e){if(t&&t.length>0){this.cachedSelectors.push(t);return}e.ids.length>0&&e.ids.forEach(s=>{this.cacheIdsSet.add(s)}),e.classes.length>0&&e.classes.forEach(s=>{this.cachedClassesSet.add(s)})}addStyleSelectors(t){t&&Object.keys(t).length>0&&this.cachedSelectors.push(...kt(Object.keys(t)))}filterCachedIDs(t){return new Set([...t].filter(e=>!this.cacheIdsSet.has(e)))}filterCachedClasses(t){return new Set([...t].filter(e=>!this.cachedClassesSet.has(e)))}}class w{constructor(t){this.sessionURL=t,this.panicMode=!1}async nativeFetch(t){if(this.panicMode)return{};try{const e=await J(this.sessionURL,t);if(!e.ok)return this.panicMode=!0,{};try{return await e.json()}catch{return this.panicMode=!0,{}}}catch{return{}}}}const Se="e8de8485e2310ec9",be="bf4da9bb7c3a5140",ve="_4f76151c3477b8b6",we="_552544dbd670ff44",Ee="_67e5e72385f46319",Ae="a40574dc969d51dc",T={trustLevel:Se,trusted:be,untrusted:ve,title:we,unsafeCategoriesList:Ee,category:Ae},K="data:image/svg+xml;utf8,",Ce=K+encodeURIComponent(''),Te=K+encodeURIComponent(''),Le=K+encodeURIComponent('');function _t(n){return n.nodeName.toUpperCase()==="SPAN"&&n.name==="tp-shield"}function xe(n,t){const e=n;e.style.position="absolute",e.style.zIndex="10000",e.style.display="flex",e.style.width="401px",e.style.padding="16px",e.style.flexDirection="column",e.style.alignItems="flex-start",e.style.gap="16px",e.style.borderRadius="7px",e.style.background="#fff",e.style.boxShadow="4px 8px 8px 0px rgba(27, 27, 27, 0.12)",e.style.direction="ltr",t?e.style.border="1px solid var(--system-success-light, #27be56)":e.style.border="1px solid var(--system-attention-light, #f64f64)"}function Re(){return document.documentElement.clientWidth||document.body.clientWidth||document.documentElement.offsetWidth||document.body.offsetWidth||window.innerWidth}function Ne(){return document.documentElement.clientHeight||document.body.clientHeight||document.documentElement.offsetHeight||document.body.offsetHeight||window.innerHeight}function at(n,t){var s;const e=m("span");e.classList.add("category"),e.innerText=t,(s=n instanceof ShadowRoot?u:f)==null||s.call(n,e)}function Me(n){const t=m("div");return t.classList.add(T.unsafeCategoriesList),Array.isArray(n)?n.forEach(e=>{at(t,e)}):at(t,n||"unknown"),t}function De(n,t,e,s){var Y,Z,Q,tt,et,st,nt;const y=Re()-400-35,d=Ne();if(!e||!e.childNodes&&!(e.childNodes.length>0))return;const S=e.childNodes[0],A=`tp-ib-${n}`,l=m("div"),h=t.result==="Safe";l.setAttribute("id",A),xe(l,h);const g=m("div");g.classList.add("head"),g.style.display="flex",g.style.justifyContent="space-between",g.style.width="100%";const b=m("div");b.innerText=h?'Threats not found':'Unsafe',b.classList.add(T.trustLevel),b.classList.add(h?T.trusted:T.untrusted),(Y=g instanceof ShadowRoot?u:f)==null||Y.call(g,b);const N=m("img");N.setAttribute("src",Le),N.style.height="20px",N.style.width="auto",(Z=g instanceof ShadowRoot?u:f)==null||Z.call(g,N),(Q=l instanceof ShadowRoot?u:f)==null||Q.call(l,g);const _=m("div");_.classList.add(T.title),_.innerText=h?'This website looks safe to visit':'Warning: This website contains security threats',(tt=l instanceof ShadowRoot?u:f)==null||tt.call(l,_);const M=m("div");M.classList.add("body"),M.style.color="#222",M.innerText=t.explanation,(et=l instanceof ShadowRoot?u:f)==null||et.call(l,M),h||(st=l instanceof ShadowRoot?u:f)==null||st.call(l,Me(t.categories)),(nt=s.root instanceof ShadowRoot?u:f)==null||nt.call(s.root,l);const D=S.getBoundingClientRect(),Ft=D.left-400/2,$t=Nt(Kt(5,Ft),y);l.style.left=`${$t}px`;const Bt=d-l.offsetHeight-16;if(D.bottom{Pe(b,r,o,h,e)}),i.addEventListener("mouseout",b=>{ke(b,r,e)})}const ct=0,He=2,Fe=3,$e=4;class Be{constructor(){E(this,"callbacks",new Map);E(this,"isAttributesRequired",!1);E(this,"isCharacterDataRequired",!1);E(this,"isRunning",!1)}startObserver(){if(this.isRunning)return;new MutationObserver(this.observerCb.bind(this)).observe(document,{attributes:this.isAttributesRequired,childList:!0,subtree:!0,characterData:this.isCharacterDataRequired}),this.isRunning=!0}observerCb(t){const e=[];t.forEach(s=>{s.type==="childList"&&e.push(s)}),this.callbacks.forEach(s=>{s(t,e)})}subscribeToDomChanges(t,e,s=!1,r=!1){this.isRunning||(this.isAttributesRequired||(this.isAttributesRequired=s),this.isCharacterDataRequired||(this.isCharacterDataRequired=r),this.callbacks.set(t,e))}unsubscribeFromDomChanges(t){this.callbacks.delete(t)}}const Ue=["SCRIPT","META","LINK","STYLE","NOSCRIPT","TEMPLATE"],F={DOM:1,MUTATION:2};function We(n,t){t==null||t.hide_selectors==null&&t.selectors==null&&t.style_selectors==null}class Je{constructor(t,e){E(this,"getAllNodesAndChildren",t=>{const e=[],s=[t];for(;s.length;){const r=s.pop();if(this.isNodeHidden(r)||!this.isCosmeticNode(t)||_t(t))continue;e.push(r);const{children:o}=r;o&&o.length>0&&s.push(...o)}return e});this.JSONFetcher=new w(e),this.observer=t,this.lang=ce(),this.cachedRules=new ge}observe(){const t=this.getDOMElementIdentifiers();this.observer.subscribeToDomChanges(He,this.callbackPrettify.bind(this),!0),this.fetchAndApplyCosmeticRules(F.DOM,t)}callbackPrettify(t){const e=this.getMutatedElementsList(t);if(e.length===0)return;const s=this.filterOutCachedElements(e);if(s.length===0)return;const r=this.getUnmatchedSelectors(s);this.fetchAndApplyCosmeticRules(F.MUTATION,r)}getUnmatchedSelectors(t){const e=new Set,s=new Set;t.forEach(({id:i,classList:c})=>{i&&e.add(i),c&&s.add(...c)});const r=this.cachedRules.filterCachedIDs(e),o=this.cachedRules.filterCachedClasses(s);return{ids:Array.from(r),classes:Array.from(o)}}filterOutCachedElements(t){const e=[];return t.forEach(s=>{const r=this.cachedRules.matches(s);r.match?r.hide&&(s.className.includes("b_ad")?(s.style.setProperty("position","absolute"),s.style.setProperty("opacity","0")):s.style.setProperty("display","none","important")):e.push(s)}),e}async fetchAndApplyCosmeticRules(t,e){if(!this.JSONFetcher.panicMode)try{const s=await this.fetchCosmeticRules(t,e);We(`${t}: Cosmetic resources:`,s),this.updateCacheAndApplyRules(t,s,e)}catch{}}updateCacheAndApplyRules(t,e,s){if(e==null)return;if(t===F.DOM){const o=le(e.hide_selectors);this.cachedRules.setURLHideSelectors(o.regular),this.cosmeticHideElementsWithSelectors(o.regular),this.cosmeticHideElementsWithExtendedSelectors(o.extended)}const r=kt(e.selectors);this.cachedRules.addSelectors(r,s),this.cosmeticHideElementsWithSelectors(r),this.cachedRules.addStyleSelectors(e.style_selectors),this.cosmeticHideElementsWithStyleSelectors(e.style_selectors)}isCosmeticNode(t){return!Ue.includes(t.nodeName.toUpperCase())}getMutatedElementsList(t){const e=[];return t.forEach(s=>{s.type!=="childList"||s.target.getAttribute("scam-alert-overlay-change")||(s.addedNodes.length>0?this.appendMutatedAddedNodes(e,s):s.type==="attributes"&&this.appendMutatedAttributeChangeNode(e,s))}),e}isNodeHidden(t){const e=j(t),s=t.getBoundingClientRect();return t.offsetWidth<=0||t.offsetHeight<=0||e.display==="none"||e.visibility==="hidden"||W(e.opacity)<=0||s.top>window.innerHeight||s.bottom<0||s.left>window.innerWidth||s.right<0}appendMutatedAddedNodes(t,e){for(const s of e.addedNodes)if(typeof s.matches=="function"){const r=this.getAllNodesAndChildren(s);t.push(...r)}else s.className}appendMutatedAttributeChangeNode(t,e){if(typeof e.target.matches!="function"){e.target.id;return}this.hasCosmeticNodeVisibilityChanged(e)&&t.push(e.target)}extractClassNamesFromNode(t,e){t&&typeof t.className=="string"&&t.className.split(/\s+/).forEach(s=>{s&&e.push(s)})}hasCosmeticNodeVisibilityChanged(t){return t.target&&this.isCosmeticNode(t.target)&&t.oldValue&&(t.oldValue.includes("display:")||t.oldValue.includes("visibility:")||t.oldValue.includes("opacity:"))}getDOMElementIdentifiers(){const t=[],e=[];return v("*").forEach(s=>{s.id&&typeof s.id=="string"&&t.push(s.id.trim()),this.extractClassNamesFromNode(s,e)}),{ids:[...new Set(t)],classes:[...new Set(e)]}}hideMatchedElements(t){t!==void 0&&t.forEach(e=>{typeof e.className=="string"&&e.className.includes("b_ad")?(e.style.setProperty("position","absolute"),e.style.setProperty("opacity","0")):e.style.setProperty("display","none","important")})}cosmeticHideElementsWithSelectors(t){if(t==null||t.length===0)return;const e=t.join(", ");let s;try{s=v(e)}catch(r){r instanceof DOMException&&(s=[],t.forEach(o=>{try{const i=v(o);s.push(...i)}catch(i){i instanceof DOMException}}))}finally{this.hideMatchedElements(s)}}processStyleString(t){const e=t.split(":");return e.length<2?null:{property:e[0].trim(),value:e[1].replace("!important","").trim(),important:e[1].includes("!important")?"important":""}}cosmeticHideElementsWithStyleSelectors(t){if(!(t==null||t.length===0))try{Object.keys(t).forEach(e=>{const s=t[e];if(e==null||s==null||s.length===0||q(e))return;const r=v(e);if(r.length===0)return;const o=s.map(i=>this.processStyleString(i)).filter(i=>i.value!==null);r.forEach(i=>{o.forEach(c=>{i.style.setProperty(c.property,c.value,c.important)})})})}catch{}}cosmeticHideElementsWithExtendedSelectors(t){t==null||t.length===0||t.forEach(e=>{const s=Dt(e);if(!(!s||!s.pseudoClass)){this.cachedRules.addExtendedSelector(s);try{v(s.baseSelector).forEach(r=>{V(r,s)&&r.style.setProperty("display","none","important")})}catch{}}})}async fetchCosmeticRules(t,e){if(e.ids.length===0&&e.classes.length===0)return{};const s={rulesType:t,url:O,lang:this.lang,ids:e.ids,classes:e.classes},r={method:"POST",body:JSON.stringify({DOMIdentifiers:s}),headers:{"Content-type":"application/json; charset=UTF-8"},cache:"no-cache"},o=await this.JSONFetcher.nativeFetch(r);if(!o||o.status==="error")throw new $("Cosmetic rules fetch failed, response:",o);return o}}class je{constructor(){this.searchResultTag=B('main[aria-label="Search Results"]')}filterSearchResultsFunc(t){var i,c,y,d,S;const e=((i=t==null?void 0:t.parentNode)==null?void 0:i.nodeName)==="H2",s=(y=(c=t==null?void 0:t.parentNode)==null?void 0:c.parentNode)==null?void 0:y.classList.contains("explorehead"),r=(d=t==null?void 0:t.parentNode)==null?void 0:d.classList.contains("sa_tpContent"),o=(S=t==null?void 0:t.parentNode)==null?void 0:S.classList.contains("irphead");return e&&!s||r||o?{link:t,shieldParent:t}:null}trimTextContent(t){return X(t)}decodeURL(t){if(!t.startsWith("https://www.bing.com/ck"))return t;try{return Ve(t)}catch{return t}}}function Ve(n){const e=new URL(n).searchParams.get("u");if(!e)throw new $("u-param not found");const r=(e.startsWith("a1")?e.slice(2):e).replace(/-/g,"+").replace(/_/g,"/"),o=atob(r);if(!o.startsWith("http"))throw new $("decoded u-param has not HTTP prefix");return o}class qe{constructor(){this.searchResultTag=Rt("react-layout")}filterSearchResultsFunc(t){var e;return((e=t==null?void 0:t.parentNode)==null?void 0:e.nodeName)==="H2"?{link:t,shieldParent:t}:null}trimTextContent(t){return X(t)}decodeURL(t){return t}}class Xe{constructor(){this.searchResultTag=Rt("rcnt")}filterSearchResultsFunc(t){var e,s,r,o;if(((e=t.firstChild)==null?void 0:e.nodeName)==="BR"){const i={link:t,shieldParent:t},c=t.firstChild.nextSibling;return(c==null?void 0:c.nodeName)==="H3"&&(i.shieldParent=c),i}return(t.closest("#tadsb")||t.closest(".uEierd"))&&((s=t.firstElementChild)!=null&&s.matches('div[role="heading"]'))?{link:t,shieldParent:t.firstChild}:((r=t.parentNode)==null?void 0:r.nodeName)==="G-LINK"&&((o=t.firstChild)==null?void 0:o.nodeName)==="H3"?{link:t,shieldParent:t.firstChild}:null}trimTextContent(t){return X(t)}decodeURL(t){return t}}const Ke="_95a734b80fe39bd8",Ht={alertContainer:Ke},P="";function z(){if(typeof window[P]<"u")return window[P];const n=m("div");n.id=P;const s={root:n.attachShadow({mode:"closed"}),host:n};return window[P]=s,s}function ze(n,t){var s,r;const e=m("div");e.className=Ht.alertContainer,(s=e instanceof ShadowRoot?u:f)==null||s.call(e,t),(r=n instanceof ShadowRoot?u:f)==null||r.call(n,e)}function Ge(n,t){var s,r;const e=(s=n instanceof ShadowRoot?x:R)==null?void 0:s.call(n,`.${Ht.alertContainer}`);if(e){(r=e instanceof ShadowRoot?u:f)==null||r.call(e,t);return}ze(n,t)}function Ye(n,t,e){var r;const s=(r=n instanceof ShadowRoot?x:R)==null?void 0:r.call(n,t);s&&s.classList.toggle(e,!0)}function Ze(n){return L.includes("google")?new Xe(n):L.includes("bing")?new je(n):L.includes("duckduckgo")?new qe(n):null}class Qe{constructor(t){this.JSONFetcher=new w(t),this.mainShadowDOM=z(),this.searchEngine=Ze(t)}equalHost(t){return L===t}containsHost(t){return L.includes(t)}getPageLinks(){return this.searchEngine.searchResultTag===null?[]:Array.from(p==null?void 0:p.call(this.searchEngine.searchResultTag,"a"))}getUnhandledLinks(){if(this.searchEngine.searchResultTag===null)return[];const t=Array.from(p==null?void 0:p.call(this.searchEngine.searchResultTag,"a")),e=[];return t.forEach(s=>{const r=this.searchEngine.filterSearchResultsFunc(s);r!=null&&(It(r.shieldParent)||e.push(r))}),e}async scanLinks(){const t=this.getUnhandledLinks();if(t.length===0)return;const e=new Map(t.map(o=>[this.searchEngine.decodeURL(o.link.href),o])),s={method:"POST",body:JSON.stringify(Array.from(e.keys())),headers:{"Content-type":"application/json; charset=UTF-8"}},r=await this.JSONFetcher.nativeFetch(s);!r||r.status==="error"||r.forEach(o=>{Ie(e.get(o.URL),o,this.mainShadowDOM,this.searchEngine.trimTextContent)})}}class ts extends Qe{constructor(t,e){super(e),this.observer=t}observe(){try{this.searchEngine.searchResultTag==null,this.observer.subscribeToDomChanges($e,this.callback.bind(this)),this.scanLinks(this.getUnhandledLinks())}catch{}}isDOMModified(t){let e=!1;return t.forEach(s=>{s.addedNodes.length>0&&s.addedNodes.forEach(r=>{_t(r)||(e=!0)})}),e}callback(t,e){this.isDOMModified(e)&&this.scanLinks()}}const es="_4f714f8c217e8d10",ss="a86f57a27e8c7643",ns="_5f50c9ce50ac1566",rs="d0c250cbe636f1d7",os="b7e975b2ffed7c01",is="ffbe82a554934dab",as="efef57cd89b5ca8d",cs="b8fdab42a182b16f",ls="d5fa6dd791d2fa4b",ds="_3373bc8163bac7ae",hs="_3e76b0cdbb6c9585",us="_0b853ebfbb97f2ab",fs="_4a44dc813e688948",ps="fa01641802a4e7ef",ms="cbb85200606868ce",ys="_2edb2deeb4abe096",gs="_029f3dcaec3cb754",a={tpAlert:es,tpAlertHidden:ss,tpAlertTopBar:ns,tpAlertTopBarRow:rs,nordVpnLogo:os,tpAlertCloseButton:is,tpAlertDetails:as,tpAlertDetailsColumn:cs,tpSignWarning:ls,tpAlertDetailsHeader:ds,tpAlertDetailsText:hs,tpAlertDetailsTechnical:us,tpAlertDetailsTechnicalList:fs,tpAlertButtonsRow:ps,buttonTp:ms,buttonTpLeavePage:ys,buttonTpDontShow:gs};class G{constructor(t,e){this.whitelistURL=t,this.mainShadowDOM=z(),this.hideCallback=()=>{},this.alertHTML=e}show(){var t;(t=document.body instanceof ShadowRoot?u:f)==null||t.call(document.body,this.mainShadowDOM.host),fe(),this.createAlertElement(),this.addEventListeners()}isShown(){var t;return((t=this.mainShadowDOM.root instanceof ShadowRoot?x:R)==null?void 0:t.call(this.mainShadowDOM.root,`.${a.tpAlert}`))!==null}hide(){this.hideCallback(),Ye(this.mainShadowDOM.root,`.${a.tpAlert}`,a.tpAlertHidden)}addEventListeners(){this.addClickListener(`.${a.tpAlertCloseButton}`,this.hide.bind(this)),this.addClickListener(`.${a.buttonTpLeavePage}`,ue),this.addClickListener(`.${a.buttonTpDontShow}`,()=>pe(this.whitelistURL,this.hide.bind(this)))}addClickListener(t,e){var r;const s=(r=this.mainShadowDOM.root instanceof ShadowRoot?x:R)==null?void 0:r.call(this.mainShadowDOM.root,t);s&&s.addEventListener("click",e)}createAlertElement(){const t=m("div");return t.className=a.tpAlert,t.innerHTML=this.alertHTML,Ge(this.mainShadowDOM.root,t)}}const Ss={CLEAN:0,SCAM:1},k={MAX_EL_PER_SEC:100,MINIMUM_TOP:300,MAX_Z_INDEX:2147483647};class bs{constructor(t){this.alert=new G("/K7rqnvxa95W-Hvi_B6ejE7nn7MfLKKtmSE7KbBfRjyAPQJTnxrZVd6fCPsvB0PDTttf0FNou4eMkw20ibdRjcg==",this.getAlertHTML()),this.JSONFetcher=new w(t),this.overlayingElEditedLastSecond=0,this.alertOverlayObserver=new MutationObserver(this.filterAlertOverlayingElements.bind(this)),setInterval(()=>{this.overlayingElEditedLastSecond=0},1e3)}start(){this.scanForScam()}filterAlertOverlayingElements(t){t.forEach(e=>{e.type==="childList"?e.addedNodes.forEach(s=>{this.moveBellowIfOverlayingAlert(s)}):e.type==="attributes"&&this.moveBellowIfOverlayingAlert(e.target)}),this.overlayingElEditedLastSecond>k.MAX_EL_PER_SEC&&this.alertOverlayObserver.disconnect()}moveBellowIfOverlayingAlert(t){if(t.nodeType===1){const{zIndex:e,top:s,height:r}=j(t);if(Xt(e,10)>=k.MAX_Z_INDEX&&W(s)0){const o=t.cloneNode(!0);o.setAttribute("scam-alert-overlay-change","true"),o.style.zIndex=String(k.MAX_Z_INDEX-1),t.parentNode.replaceChild(o,t),this.overlayingElEditedLastSecond++}}}scanForScam(){this.fetchScamResult().then(t=>{t===Ss.SCAM&&(this.alert.isShown()||this.alert.show(),this.alertOverlayObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]}))})}async fetchScamResult(){try{const t=await this.JSONFetcher.nativeFetch({method:"POST"});return!t||t.status!=="success"?0:(t==null?void 0:t.result)??0}catch{return 0}}getAlertHTML(){return`
We've detected that the website you're visiting could be a scam. Only proceed if you're sure the site can be trusted.
`}}const lt={NoError:0,Error:1};class vs{constructor(t){this.alert=new G("",this.getAlertHTML()),this.JSONFetcher=new w(t)}start(){this.doFetches()}async doFetches(){await this.fetchTLSError()===lt.Error?this.alert.show():U(async()=>{await this.fetchTLSError()===lt.Error&&this.alert.show()},3e3)}async fetchTLSError(){try{const t=await this.JSONFetcher.nativeFetch({method:"POST"});return!t||t.status!=="success"?0:(t==null?void 0:t.result)??0}catch{return 0}}getAlertHTML(){return`
This page could be vulnerable to cyberattacks because it doesn't meet minimum security standards — personal data you enter could be stolen.
Technical details:
Outdated TLS
`}}const ws={NONLEAKED:0,LEAKED:1},Es=3e4;class As{constructor(t,e,s,r){this.alert=new G("",this.getAlertHTML()),this.JSONFetcher=new w(t),this.sessionCheckInterval=e,this.listOfCookies=s;let o=[...r];o.includes("")||(o=["",...o]),this.JSONFetchers=o.map(i=>new w(i+t)),this.sessionCheckInterval=Number(this.sessionCheckInterval),isNaN(this.sessionCheckInterval)&&(this.sessionCheckInterval=Es)}start(){this.setPeriodicChecker()}setPeriodicChecker(){const t=setInterval(()=>{this.checkCookiesForLeaks()},this.sessionCheckInterval);this.alert.hideCallback=()=>{qt(t)},this.checkCookiesForLeaks()}getMatchedDocumentCookies(){const t=document.cookie.split(";"),e={};return this.listOfCookies.map(s=>t.some(r=>{if(r.includes(s)){const[o,i]=r.split("=");return o&&i&&(e[o.trim()]=i.trim()),!0}return!1})),e}async fetchLeakedResult(){try{const t=this.getMatchedDocumentCookies();if(Object.keys(t).length===0)return 0;const e={method:"POST",body:JSON.stringify(t),headers:{"Content-type":"application/json; charset=UTF-8"}},s=await Promise.all(this.JSONFetchers.map(i=>i.nativeFetch(e)));return s.every(i=>!(!i||i.status!=="success"))?s.reduce((i,c)=>i|((c==null?void 0:c.result)??0),0):0}catch{return 0}}checkCookiesForLeaks(){this.fetchLeakedResult().then(t=>{t===ws.LEAKED&&!this.alert.isShown()&&this.alert.show()})}getAlertHTML(){return`
Its login session cookies were found for sale on the dark web. Change your password immediately.
`}}function Cs(){const n=v(".ytp-ad-image, .ytp-ad-action-interstitial-background, .video-ads, .ytp-ad-module, .ytp-ad-overlay-slot");n.length>0&&n.forEach(t=>t.remove())}function Ts(n){const e=B("video");if([...v(".ad-showing")][0]){if(e){if(e.duration-e.currentTime<.5)return;e.playbackRate=16,e.volume=0,B(".ytp-ad-action-interstitial")&&(Cs(),window.location.replace(O)),n.forEach(c=>{if(!c)return;const y=v(c);y&&y.length>0&&y.forEach(d=>{d==null||d.click()})}),e.play();const o=Math.random()*(.5-.1)+.1,i=e.duration-(o||0);isFinite(i)&&(e.currentTime=i)}}else e&&(e==null?void 0:e.playbackRate)===16&&(e.playbackRate=1)}class Ls{constructor(t,e){this.observer=t,this.skipButtons=e,this.playerObserver=new MutationObserver(this.playerCallback),this.playerSelectors="#player-container-inner, #player-container-outer, #player, #primary-inner"}observe(){this.observer.subscribeToDomChanges(ct,this.domCallback.bind(this))}domCallback(t,e){e.forEach(s=>{s.addedNodes.length>0&&s.addedNodes.forEach(r=>{var o;if(r.nodeType===Node.ELEMENT_NODE){const i=(o=r instanceof ShadowRoot?x:R)==null?void 0:o.call(r,this.playerSelectors);i&&this.observePlayer(i)}})})}observePlayer(t){this.playerObserver.observe(t,{childList:!0,subtree:!0}),this.observer.unsubscribeFromDomChanges(ct)}playerCallback(){Ts(this.skipButtons)}}const xs=new RegExp(["\\b(bc1[ac-hj-np-z02-9]{39,59}|[13][a-km-zA-HJ-NP-Z1-9]{25,34})\\b","\\b(0[xX][a-fA-F0-9]{40})\\b","\\b(ltc1[ac-hj-np-z02-9]{39,59}|[LM][a-km-zA-HJ-NP-Z1-9]{25,34})\\b","\\b([1-9A-HJ-NP-Za-km-z]{32,44})\\b","\\b(T[a-zA-Z0-9]{33})\\b"].join("|"),"gi"),Rs=new Set(["script","style","head","noscript","meta","title","link","template","iframe","embed","object","param","track","svg","canvas","applet","map","area","picture","audio","video","source","img","button","select","option","input","textarea"]),C={NotAnAddress:0,CleanAddress:1,MaliciousAddress:2};class Ns{constructor(t,e){this.JSONFetcher=new w(e),this.addressCache=new Map,this.observer=t}observe(){this.processCurrentDocument(),this.observer.subscribeToDomChanges(Fe,this.callbackCheckForCryptoAddresses.bind(this),!1,!0)}processCurrentDocument(){const t=this.extractAddressesFromNode(document.body);t.size>0&&this.fetchAddressScanResults(Array.from(t))}showAlert(t){}callbackCheckForCryptoAddresses(t){const e=new Set;t.forEach(s=>{s.addedNodes.forEach(r=>{this.extractAddressesFromNode(r).forEach(i=>e.add(i))}),s.type==="characterData"&&s.target.nodeType===Node.TEXT_NODE&&this.extractAddressesFromNode(s.target).forEach(o=>e.add(o))}),e.size>0&&this.fetchAddressScanResults(Array.from(e))}extractAddressesFromNode(t){const e=new Set,s=[t];for(;s.length>0;){const r=s.pop();r.nodeType===Node.TEXT_NODE?this.matchText(r.textContent).forEach(o=>{this.addressCache.has(o)?this.addressCache.get(o)===C.MaliciousAddress&&this.showAlert(o):e.add(o)}):r.nodeType===Node.ELEMENT_NODE&&!Rs.has(r.nodeName.toLowerCase())&&s.push(...r.childNodes)}return e}matchText(t){const e=t.match(xs);return new Set(e?e.map(s=>s.trim()):[])}async fetchAddressScanResults(t){const e={method:"POST",body:JSON.stringify(t),headers:{"Content-type":"application/json; charset=UTF-8"},cache:"no-cache"};try{const s=await this.JSONFetcher.nativeFetch(e);t.forEach(r=>{const o=s[r];if(o===void 0)this.addressCache.set(r,C.NotAnAddress);else{switch(o){case C.NotAnAddress:break;case C.CleanAddress:break;case C.MaliciousAddress:this.showAlert(r);break;default:return}this.addressCache.set(r,o)}})}catch{}}}(()=>{if(de())return;const n=()=>{const e={method:"HEAD",cache:"no-cache"},s=setInterval(async()=>{try{const r=await J("https://www.core3.com/hYC21Xm4WdnlBf_ChCAh747S_0HtST5gC7wQu3z7EfeS56g_0MKabMvXxYMFDRLi52Kt4cDtgbJuZSHgEIGAUQ==",e);if(!r||r.status==="error")throw new Error}catch{clearInterval(s)}},18e4)};ye("hYC21Xm4WdnlBf_ChCAh747S_0HtST5gC7wQu3z7EfeS56g_0MKabMvXxYMFDRLi52Kt4cDtgbJuZSHgEIGAUQ==","MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKNi1LzyGYFu8QCZerXYsXYaV99hRJmXwLZMattK+ZdLF/NIUZX5T0QsHfce9tPegzNOmTotuEkcqj2DJS8kvc8CAwEAAQ==").then(t=>{if(t)return;const e="active",s="",r="active",o="",i="",c="",y="",d=new Be;document.addEventListener("DOMContentLoaded",()=>{var l;if(e==="active"&&new Je(d,"/ZJoxHUhYRwLmGf1MuApaUubiVSYKtvY62kUwCItF15Ad0irS5LKTCcJoiyA3KnoL6TLKdWvv3S2A0y7Kq0K5IQ==").observe(),s==="active"&&new ts(d,"").observe(),r==="active"&&new bs("/i0ZBRbDBpj1hzf102JGefB5xSvH1I4bqq0xtPPDrQiDtncGVxIetFRUtnKQAw0r0ZDYH6yED7bOcvcu05W-hmw==").start(),o==="active"&&new vs("").start(),i==="active"&&new As("","","".split(","),"".split(",")).start(),c==="active"){const h="".split(",");new Ls(d,h).observe()}y==="active"&&new Ns(d,"").observe(),d.startObserver();const S=z();(l=document.body instanceof ShadowRoot?u:f)==null||l.call(document.body,S.host);const A=new CSSStyleSheet;A.replaceSync('.e8de8485e2310ec9{display:flex;height:20px;padding:0 8px;justify-content:center;align-items:center;gap:10px;border-radius:4px;color:var(--text-on-accent-primary-light, #fff);text-align:center;font-family:Inter,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:20px}.bf4da9bb7c3a5140{background:var(--system-success-light, #27be56)}._4f76151c3477b8b6{background:var(--system-attention-light, #f64f64)}._552544dbd670ff44{align-self:stretch;color:var(--text-primary-light, #1b1b1b);font-feature-settings:\"init\" on,\"fina\" on;font-family:Inter,Arial,Helvetica,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:20px}._67e5e72385f46319{align-self:stretch;background-color:#f64f641a;color:var(--text-primary-light, #000000);border-radius:4px;top:50%;font-family:Inter,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:32px;list-style:none;display:flex;align-items:center}._67e5e72385f46319>.a40574dc969d51dc{position:relative;display:flex;align-items:center;margin:0 12px;padding-top:6px;padding-bottom:6px}._67e5e72385f46319>.a40574dc969d51dc:before{content:\"\";display:inline-block;width:5px;height:5px;margin-right:12px;background-color:#f64f64;border-radius:50%}._95a734b80fe39bd8{position:fixed;width:100%;top:0;left:0;display:flex;flex-direction:column;margin:0;z-index:2147483647}._4f714f8c217e8d10{display:flex;flex-direction:column;margin:0}.a86f57a27e8c7643{display:none}._5f50c9ce50ac1566{width:100%;height:30px;display:flex;flex-direction:column;justify-content:center;background-color:#fff;border:none}.d0c250cbe636f1d7{display:flex;flex-direction:row;justify-content:space-between}.b7e975b2ffed7c01{order:1;align-self:center;width:68px;height:24px;margin-left:8px;background-image:url(\'/mhq6L9MzLeKby2pp9c_G9HiSWdS-ZukUqElYcg45hiNQ8t9eetBs3hBhsi97-IkfcAFcbzNrTCbevIZgFe40Tg==\');background-position:left 0 top 8px;background-repeat:no-repeat;background-size:auto 14px}.ffbe82a554934dab{order:2;justify-self:end;align-self:center;width:24px;height:24px;background-color:transparent;color:#555;border:none;text-align:center;text-decoration:none;font-size:14px;margin:0 8px 0 0;cursor:pointer}.efef57cd89b5ca8d{display:flex;align-items:center;justify-content:center;width:100%;padding-top:24px;padding-bottom:24px;gap:30px;background:var(--bg-bg-accent-subtle, #F3F7FC);margin:0}.b8fdab42a182b16f{display:flex;flex-direction:column;align-items:flex-start;padding-right:16px;margin:0}.d5fa6dd791d2fa4b{background-image:url(\'/dMHD7PP7EZ-9apJnb4Fx9Y49XMIhC5C0Co_-xPY4zJGwzstpJHWmwvCLQQv82ogt0il-AM94ewgSMHOLFBfLVg==\');background-position:center center;background-repeat:no-repeat;background-size:cover;width:75px;height:75px;flex-shrink:0;margin-left:16px;margin-top:0}._3373bc8163bac7ae{color:var(--text-text-primary, #2A2B32);font-feature-settings:\"clig\" off,\"liga\" off;font-family:Inter,Arial,Helvetica,sans-serif;font-size:28px;font-style:normal;font-weight:600;line-height:40px;letter-spacing:-.56px;margin:0}._3e76b0cdbb6c9585{color:var(--text-text-secondary, #4D4E56);font-feature-settings:\"clig\" off,\"liga\" off;font-family:Inter,Arial,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;text-align:left;max-width:875px;margin:0}._0b853ebfbb97f2ab{color:var(--text-text-secondary, #4D4E56);font-feature-settings:\"clig\" off,\"liga\" off;font-family:Inter,Arial,Helvetica,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:21px;text-align:left;max-width:875px;margin:6px 0 0}._4a44dc813e688948{text-align:left;margin:0 0 0 10px}._4a44dc813e688948:before{content:\"•\";padding-right:5px}.fa01641802a4e7ef{display:flex;flex-direction:row;align-items:flex-start;margin-top:16px;gap:12px}.cbb85200606868ce{font-feature-settings:\"clig\" off,\"liga\" off;font-family:Inter,Arial,Helvetica,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:18px;text-align:center;text-decoration:none;padding:8px 24px;cursor:pointer;transition-duration:.4s;border-radius:4px;margin:0}._2edb2deeb4abe096{background-color:#3e5fff;color:#fff;border:1px solid #3e5fff}._2edb2deeb4abe096:hover{background-color:#6e86fe}._029f3dcaec3cb754{background-color:#f3f7fc;color:#4687ff;font-weight:600;border:1px solid #3e5fff}._029f3dcaec3cb754:hover{color:#305eb2}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;line-height:1.5;letter-spacing:normal;text-transform:none;text-indent:0;text-shadow:none;box-shadow:none;outline:none;border-radius:0;background:transparent;opacity:1;filter:none;transform:none;transition:none;animation:none;font-style:normal;font-weight:400;font-variant:normal}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}input,textarea,select,button{font-family:inherit;font-size:100%;line-height:1;margin:0;padding:0;color:initial}a{text-decoration:none;color:initial;background-color:transparent}ul,ol{list-style:none}img,embed,object,iframe{max-width:100%}table{border-collapse:collapse;width:100%;border-spacing:0}'),S.root.adoptedStyleSheets=[...S.root.adoptedStyleSheets,A],n()})})})();export{$ as NativeError,f as nativeAppendChild,qt as nativeClearTimeout,m as nativeCreateElement,Vt as nativeCryptoGetRandomValues,jt as nativeCryptoSubtleImportKey,Jt as nativeCryptoSubtleVerify,B as nativeDocumentQuerySelector,v as nativeDocumentQuerySelectorAll,R as nativeElementQuerySelector,H as nativeElementQuerySelectorAll,J as nativeFetch,Rt as nativeGetElementById,p as nativeGetElementsByTagName,rt as nativeHistoryBack,xt as nativeHistoryLength,W as nativeParseFloat,Xt as nativeParseInt,U as nativeSetTimeout,x as nativeShadowDomQuerySelector,u as nativeShadowRootAppendChild,j as nativeWindowGetComputedStyle,ot as nativeWindowHome,Mt as nativeWindowLocationHost,L as nativeWindowLocationHostname,O as nativeWindowLocationHref,Kt as nativeWindowMathMax,Nt as nativeWindowMathMin};