PageSourceSearch

https://www.mukhachitram.com/assets/react-CuU2Z6Zn.js

js mukhachitram.com collected 2026-10-02 00:53:05 UTC 9,713 bytes, 1 lines download raw bytes

1import{r as l}from"./chunk-BV7QT456-CJO_OyEJ.js";if(typeof window<"u"){const e={NEXT_PUBLIC_ADMIN_HOST:"admin.mukhachitram.com",NEXT_PUBLIC_SUPABASE_URL:"https://oczkrsgrahmekkxgipeg.supabase.co",NEXT_PUBLIC_APP_URL:"https://mukhachitram.com",NEXT_PUBLIC_ADMIN_URL:"https://admin.mukhachitram.com",NEXT_PUBLIC_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9jemtyc2dyYWhtZWtreGdpcGVnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODAzNzA1NTgsImV4cCI6MjA5NTk0NjU1OH0.3MAY-SkbEw7yBMABaSwp55xgQvUwYjJkygh8hp1Q3cQ",NEXT_PUBLIC_VERCEL_OBSERVABILITY_CLIENT_CONFIG:'{"analytics":{"scriptSrc":"9c58371d38204403/script.js","viewEndpoint":"9c58371d38204403/view","eventEndpoint":"9c58371d38204403/event","sessionEndpoint":"9c58371d38204403/session"},"speedInsights":{"scriptSrc":"7d3eb60e4d657af7/script.js","endpoint":"7d3eb60e4d657af7/vitals"}}'};globalThis.process??={};const n=globalThis.process.env??{};globalThis.process.env=new Proxy(Object.assign({},e,n),{get(t,s){return s in t?t[s]:void 0},has(){return!0}})}class i extends Error{constructor(n,t){n instanceof Error?super(void 0,{cause:{err:n,...n.cause,...t}}):typeof n=="string"?(t instanceof Error&&(t={err:t,...t.cause}),super(n,t)):super(void 0,n),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);const s=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${s}`}}class h extends i{}h.kind="signIn";class x extends i{}x.type="AdapterError";class P extends i{}P.type="AccessDenied";class L extends i{}L.type="CallbackRouteError";class T extends i{}T.type="ErrorPageLoop";class N extends i{}N.type="EventError";class _ extends i{}_.type="InvalidCallbackUrl";class O extends h{constructor(){super(...arguments),this.code="credentials"}}O.type="CredentialsSignin";class R extends i{}R.type="InvalidEndpoints";class M extends i{}M.type="InvalidCheck";class $ extends i{}$.type="JWTSessionError";class B extends i{}B.type="MissingAdapter";class j extends i{}j.type="MissingAdapterMethods";class X extends i{}X.type="MissingAuthorize";class z extends i{}z.type="MissingSecret";class J extends h{}J.type="OAuthAccountNotLinked";class V extends h{}V.type="OAuthCallbackError";class D extends i{}D.type="OAuthProfileParseError";class Y extends i{}Y.type="SessionTokenError";class W extends h{}W.type="OAuthSignInError";class F extends h{}F.type="EmailSignInError";class G extends i{}G.type="SignOutError";class Q extends i{}Q.type="UnknownAction";class Z extends i{}Z.type="UnsupportedStrategy";class H extends i{}H.type="InvalidProvider";class K extends i{}K.type="UntrustedHost";class q extends i{}q.type="Verification";class ee extends h{}ee.type="MissingCSRF";class te extends i{}te.type="DuplicateConditionalUI";class ne extends i{}ne.type="MissingWebAuthnAutocomplete";class se extends i{}se.type="WebAuthnVerificationError";class ie extends h{}ie.type="AccountNotLinked";class re extends i{}re.type="ExperimentalFeatureNotEnabled";if(typeof window<"u"){const e={NEXT_PUBLIC_ADMIN_HOST:"admin.mukhachitram.com",NEXT_PUBLIC_SUPABASE_URL:"https://oczkrsgrahmekkxgipeg.supabase.co",NEXT_PUBLIC_APP_URL:"https://mukhachitram.com",NEXT_PUBLIC_ADMIN_URL:"https://admin.mukhachitram.com",NEXT_PUBLIC_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9jemtyc2dyYWhtZWtreGdpcGVnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODAzNzA1NTgsImV4cCI6MjA5NTk0NjU1OH0.3MAY-SkbEw7yBMABaSwp55xgQvUwYjJkygh8hp1Q3cQ",NEXT_PUBLIC_VERCEL_OBSERVABILITY_CLIENT_CONFIG:'{"analytics":{"scriptSrc":"9c58371d38204403/script.js","viewEndpoint":"9c58371d38204403/view","eventEndpoint":"9c58371d38204403/event","sessionEndpoint":"9c58371d38204403/session"},"speedInsights":{"scriptSrc":"7d3eb60e4d657af7/script.js","endpoint":"7d3eb60e4d657af7/vitals"}}'};globalThis.process??={};const n=globalThis.process.env??{};globalThis.process.env=new Proxy(Object.assign({},e,n),{get(t,s){return s in t?t[s]:void 0},has(){return!0}})}var oe=class extends i{},ae=class extends i{};async function b(e,n,t,s={}){const a=`${n.baseUrl}${n.basePath}/${e}`;try{const r={headers:{"Content-Type":"application/json",...s?.headers?.cookie?{cookie
1:s.headers.cookie}:{}},credentials:n.credentials};s?.body&&(r.body=JSON.stringify(s.body),r.method="POST");const o=await fetch(a,r),c=await o.json();if(!o.ok)throw c;return c}catch(r){return t.error(new oe(r.message,r)),null}}function ce(){const[e,n]=l.useState(typeof navigator<"u"?navigator.onLine:!1);return l.useEffect(()=>{const t=new AbortController,{signal:s}=t,a=()=>{n(!0)},r=()=>{n(!1)};return window.addEventListener("online",a,{signal:s}),window.addEventListener("offline",r,{signal:s}),()=>{t.abort()}},[]),e}function E(){return Math.floor(Date.now()/1e3)}function le(e){if(e.basePath&&/^https?:\/\//.test(e.basePath)){const n=new URL(e.basePath);return{...e,baseUrl:n.origin,basePath:n.pathname.replace(/\/$/,"")}}return e}function v(e){const n=new URL(e?e.startsWith("http")?e:`https://${e}`:"http://localhost:3000/api/auth"),t=n.pathname==="/"?"/api/auth":n.pathname.replace(/\/$/,""),s=`${n.origin}${t}`;return{origin:n.origin,host:n.host,path:t,base:s,toString:()=>s}}const w={debug:console.debug,error:console.error,warn:console.warn};var de=class g{static instance=null;config;constructor(){this.config=this.createDefaultConfig()}createDefaultConfig(){return{baseUrl:typeof window<"u"?v(window.location.origin).origin:"",basePath:typeof window<"u"?v(window.location.origin).path:"/api/auth",credentials:"same-origin",lastSync:0,session:null,fetchSession:async()=>{}}}static getInstance(){return g.instance||(g.instance=new g),g.instance}setConfig(n){const t=le(n);this.config={...this.config,...t}}getConfig(){return this.config}initializeConfig(n){this.config.lastSync=n?E():0}};const u=de.getInstance(),S=l.createContext(void 0);function ue(e,n){const t=u.getConfig(),[s,a]=l.useState(n),[r,o]=l.useState(!e);return l.useEffect(()=>(t.fetchSession=async({event:c}={})=>{try{if(c==="storage"||!t.session){t.lastSync=E(),t.session=await k(),a(t.session);return}if(!c||!t.session||E()<t.lastSync)return;t.lastSync=E(),t.session=await k(),a(t.session)}catch(d){w.error(new ae(d.message,d))}finally{o(!1)}},t.fetchSession(),()=>{t.lastSync=0,t.session=null,t.fetchSession=async()=>{}}),[]),{session:s,setSession:a,loading:r,setLoading:o}}function he(e,n){l.useEffect(()=>{const t=new AbortController,s=()=>{n&&document.visibilityState==="visible"&&e.fetchSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",s,{signal:t.signal}),()=>{t.abort()}},[n])}function fe(e,n,t){l.useEffect(()=>{if(n&&t){const s=setInterval(()=>{e.session&&e.fetchSession({event:"poll"})},n*1e3);return()=>{clearInterval(s)}}},[n,t])}async function k(e){const{baseUrl:n,basePath:t,credentials:s}=u.getConfig();return await b("session",{baseUrl:n,basePath:t,credentials:s},w,e)}async function m(){const{baseUrl:e,basePath:n,credentials:t}=u.getConfig();return(await b("csrf",{baseUrl:e,basePath:n,credentials:t},w))?.csrfToken??""}function we(e){if(!S)throw new Error("React Context is unavailable in Server Components");const{children:n,refetchInterval:t,refetchWhenOffline:s=!0}=e,a=u.getConfig(),r=!!e.session;u.initializeConfig(r);const{session:o,setSession:c,loading:d,setLoading:y}=ue(r,e.session??null);he(a,e.refetchOnWindowFocus??!0);const I=ce();fe(a,t,s||I);const C=l.useMemo(()=>({data:o,status:d?"loading":o?"authenticated":"unauthenticated",update:async f=>{if(d||!o)return;y(!0);const p=await b("session",a,w,f?{body:{csrfToken:await m(),data:f}}:void 0);return y(!1),p&&c(p),p}}),[o,d,c]);return l.createElement(S.Provider,{value:C},n)}function ye(e){if(!S)throw new Error("React Context is unavailable in Server Components");const n=u.getConfig(),t=l.useContext(S),{required:s,onUnauthenticated:a}={},r=s&&t?.status==="unauthenticated";return l.useEffect(()=>{if(r){const o=`${n.baseUrl}${n.basePath}/signin?${new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href})}`;a?a():window.location.href=o}},[r,a]),r?{data:t?.data,update:t?.update,status:"loading"}:t}async function pe(){return b("providers",u.getConfig(),w)}async function Ee(e,n={},t={}){const{callbackUrl:s=window.location.href,redirect:a=!0,...r}=n,o=u.getConfig(),c=`${o.baseUrl}${o.basePath}`,d=await pe();if(!d){window.location.href=`${c}/error`;return}if(!e||!(e in d)){window.location.href=`${c}/signin?${new URLSearchParams({callbackUrl:s})}`;return}const y=d[e].type==="credentials";d[e].type;const I=`${c}/${y?"callback":"signin"}/${e}`,C=await m(),f=await fetch(`${I}?${new URLSearchParams(t)}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"}
1,body:new URLSearchParams({...r,csrfToken:C,callbackUrl:s}),credentials:o.credentials}),p=await f.json();if(a){const U=p.url??s;window.location.href=U,U.includes("#")&&window.location.reload();return}const A=new URL(p.url).searchParams.get("error");return f.ok&&await o.fetchSession?.({event:"storage"}),{error:A,status:f.status,ok:f.ok,url:A?null:p.url}}async function Se(e){const{callbackUrl:n=window.location.href,redirect:t=!0}=e??{},s=u.getConfig(),a=await m(),r=await(await fetch(`${s.baseUrl}${s.basePath}/signout`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({csrfToken:a,callbackUrl:n}),credentials:s.credentials})).json();if(t){const o=r.url??n;window.location.href=o,o.includes("#")&&window.location.reload();return}return await s.fetchSession?.({event:"storage"}),r}export{we as S,Se as a,Ee as s,ye as u};

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.