PageSourceSearch

https://carregados.com.br/assets/theme-BwbOxQcV.js

js carregados.com.br collected 2026-10-05 19:01:22 UTC 3,954 bytes, 3 lines download raw bytes

1;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fa893b1c-a906-4020-aa5b-905de6db9c26",e._sentryDebugIdIdentifier="sentry-dbid-fa893b1c-a906-4020-aa5b-905de6db9c26")}catch(e){}}();
2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`f777207a0f961c32cbc69820b15e81ea9e6e6038`}}catch{}})();import{G as e,J as t}from"./utils-91Vp9uMe.js";import{t as n}from"./jsx-runtime-NE9WiRe8.js";var r=t(e(),1),i=n(),a=`en_theme`,o=`carregados:theme`,s=`carregados:theme`,c=`(prefers-color-scheme: dark)`;function l(e){return e===`light`||e===`dark`?e:`system`}function u(){return window.location.pathname.replace(/\/$/,``)===`/embed`}function d(){if(u())return l(document.documentElement.dataset.embedThemePreference??new URLSearchParams(window.location.search).get(`theme`));let e=document.documentElement.dataset.themeSessionPreference;if(e)return l(e);try{return l(document.cookie.split(`; `).find(e=>e.startsWith(`${a}=`))?.split(`=`)[1])}catch{return`system`}}function f(e){return e===`system`?window.matchMedia(c).matches?`dark`:`light`:e}function p(e){let t=document.documentElement,n=!t.classList.contains(e);n&&t.setAttribute(`data-theme-changing`,``),t.classList.toggle(`dark`,e===`dark`),t.classList.toggle(`light`,e===`light`),t.style.colorScheme=e,t.dataset.colorMode=e,document.querySelector(`meta[name="theme-color"]`)?.setAttribute(`content`,e===`dark`?`#121416`:`#ffffff`),n&&(t.getBoundingClientRect(),window.requestAnimationFrame(()=>t.removeAttribute(`data-theme-changing`)))}function m(){let e=d();return`${e}:${f(e)}`}function h(e){let t=window.matchMedia(c),n=()=>{p(f(d())),e()},r=e=>{(e.key===s||e.key===null)&&n()};return t.addEventListener(`change`,n),window.addEventListener(o,n),window.addEventListener(`storage`,r),window.addEventListener(`pageshow`,n),window.addEventListener(`focus`,n),()=>{t.removeEventListener(`change`,n),window.removeEventListener(o,n),window.removeEventListener(`storage`,r),window.removeEventListener(`pageshow`,n),window.removeEventListener(`focus`,n)}}function g(e){if(u()){document.documentElement.dataset.embedThemePreference=e,p(f(e)),window.dispatchEvent(new Event(o));return}delete document.documentElement.dataset.themeSessionPreference;try{document.cookie=`${a}=${e===`system`?``:e}; Path=/; Max-Age=${e===`system`?0:31536e3}; SameSite=Lax${location.protocol===`https:`?`; Secure`:``}`}catch{}d()!==e&&(document.documentElement.dataset.themeSessionPreference=e),p(f(e)),window.dispatchEvent(new Event(o));try{localStorage.setItem(s,`${e}:${Date.now()}`)}catch{}}var _=(0,r.createContext)({theme:`light`,preference:`system`,setPreference:g});function v({children:e,initialPreference:t=`system`}){let[n,a]=(0,r.useSyncExternalStore)(h,m,()=>`${t}:${t===`dark`?`dark`:`light`}`).split(`:`);return(0,r.useEffect)(()=>{p(f(d()))},[a]),(0,i.jsx)(_,{value:{theme:a,preference:n,setPreference:g},children:e})}function y(){return(0,r.useContext)(_)}function b(){return y().theme}var x=`(()=>{let p='system';try{const v=document.cookie.split('; ').find(c=>c.startsWith('en_theme='))?.split('=')[1];if(v==='light'||v==='dark')p=v}catch{}if(location.pathname.replace(/\\/$/,'')==='/embed'){const v=new URLSearchParams(location.search).get('theme');p=v==='light'||v==='dark'?v:'system'}const t=p==='system'?(matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light'):p;const r=document.documentElement;r.classList.remove('light','dark');r.classList.add(t);r.style.colorScheme=t;r.dataset.colorMode=t;document.querySelector('meta[name="theme-color"]')?.setAttribute('content',t==='dark'?'#121416':'#ffffff')})()`;export{b as a,y as i,l as n,x as r,v as t};
3//# debugId=fa893b1c-a906-4020-aa5b-905de6db9c26

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.