A nova voz do Brasil na América
"open",((e,o,n)=>e?r(e,o,n):t.call(document,e,o,n)),document,!0)},o=document.createElement,n=(t,r)=>{const n=o.call(document,t,r),s=Element.prototype.setAttribute,c=Element.prototype.setAttributeNS;if("iframe"===e(t)){globalThis.defineStrictProperty("srcdoc",{get:()=>{},set:()=>{console.error("`srcdoc` is not allowed in iframe elements.")}},n,!1);const e=function(e,t){"srcdoc"!==e.toLowerCase()?s.call(n,e,t):console.error("`srcdoc` attribute is not allowed to be set.")},t=function(e,t,r){"srcdoc"!==t.toLowerCase()?c.call(n,e,t,r):console.error("`srcdoc` attribute is not allowed to be set.")};n.setAttribute=e,n.setAttributeNS=t}return n},s="client-binding",c="security_overrideGlobals",i=["/_api/v1/access-tokens","/_api/v2/dynamicmodel"],a=e=>(e instanceof Headers?e.forEach(((t,r)=>{decodeURIComponent(r).toLowerCase()===s&&e.delete(r)})):Object.keys(e).forEach((t=>{decodeURIComponent(t).toLowerCase()===s&&delete e[t]})),e),l=t=>{let r=!0;const o=(e=>{let t,r;if(globalThis.Request&&e instanceof Request)t=e.url;else{if("function"!=typeof e?.toString)throw new Error("Unsupported type for url");t=e.toString()}try{return new URL(t).pathname}catch(e){return r=t.replace(/#.+/gi,"").split("?").shift(),r.startsWith("/")?r:`/${r}`}})(t),n=e(o);return i.some((e=>n.includes(e)))&&(r=!1),r},d=(e=globalThis)=>{const t=fetch;e.defineStrictProperty("fetch",(function(){const r=(o=arguments,globalThis.Request&&o[0]instanceof Request&&o[0]?.headers?a(o[0].headers):o[1]?.headers&&a(o[1].headers),o);var o;return l(arguments[0])?t.apply(e,Array.from(r)):new Promise(((e,t)=>{const r=new Error("TB002");window.fedops?.reportError(r,c),t(r)}))}))};performance.mark("overrideGlobals started");const{isExcludedFromSecurityExperiments:p,experiments:u}=window.viewerModel;try{((e=globalThis)=>{Object.defineProperty(e,"defineStrictProperty",{value:t,writable:!1,enumerable:!1,configurable:!1})})(),u["specs.thunderbolt.hardenWindowOpen"]&&r(),u["specs.thunderbolt.hardenIFrames"]&&!p&&globalThis.defineStrictProperty("createElement",n,document,!0),u["specs.thunderbolt.hardenFetchAndXHR"]&&!p&&(d(),((e=globalThis)=>{const t=XMLHttpRequest;e.defineStrictProperty("XMLHttpRequest",(function(){const e=new t,r=e.open,o=e.setRequestHeader;return e.open=function(){if(arguments.length<2||l(arguments[1]))return r.apply(e,Array.from(arguments));{const e=new Error("TB002");throw window.fedops?.reportError(e,c),e}},e.setRequestHeader=function(t,r){decodeURIComponent(t).toLowerCase()!==s&&o.call(e,t,r)},e}))})()),(e=>{let t=[];const{experiments:r}=window.viewerModel;r["specs.thunderbolt.hardenClientGlobals_Text"]&&(t=t.concat(["TextEncoder","TextDecoder"])),r["specs.thunderbolt.hardenClientGlobals_EventTarget"]&&!e&&(t=t.concat(["XMLHttpRequestEventTarget","EventTarget"])),r["specs.thunderbolt.hardenClientGlobals_Array_URL_JSON"]&&(t=t.concat(["Array","URL","JSON"])),r["specs.thunderbolt.hardenClientGlobals_EventListener"]&&!e&&(t=t.concat(["addEventListener","removeEventListener"])),r["specs.thunderbolt.hardenEncodingDecoding"]&&(t=t.concat(["encodeURI","encodeURIComponent","decodeURI","decodeURIComponent"])),r["specs.thunderbolt.hardenStringAndNumber"]&&(t=t.concat(["String","Number"])),r["specs.thunderbolt.hardenObject"]&&t.push("Object"),t.forEach((t=>{const r=Object.freeze(globalThis[t]);r.hasOwnProperty("prototype")&&"Array"!==t&&Object.freeze(r.prototype),["addEventListener","removeEventListener"].includes(t)&&!e&&globalThis.defineStrictProperty(t,document[t],document,!0),globalThis.defineStrictProperty(t,globalThis[t],globalThis,!0)}))})(p),u["specs.thunderbolt.hardenTimeout"]&&!p&&(defineStrictProperty("preventStringArgument",((e,t,r)=>{const o=r||globalThis,n=o[e];defineStrictProperty(e,(function(){const r=Array.from(arguments);if("string"!=typeof r[t])return n.apply(o,r);console.warn(`Calling ${e} with a String Argument at index ${t} is not allowed`)}),o)})),preventStringArgument("setTimeout",0),preventStringArgument("setInterval",0))}catch(e){window?.viewerModel?.mode.debug&&console.error(e);const t=new Error("TB006");window.fedops?.reportError(t,"security_overrideGlobals"),window.Sentry?window.Sentry.captureException(t):globalThis.defineStrictProperty("sentryBuffer",[t],window,!1)}performance.mark("overrideGlobals ended")}(); //# sourceMappingURL=https://static.parastorage.com/services/wix-thunderbolt/dist/overrideGlobals.inline.15d3b9a0.bundle.min.js.map
A nova voz do Brasil na América