PageSourceSearch

https://referencetovideo.link/_next/static/chunks/app/%5Blocale%5D…?dpl=dpl_CZPTwpS2gcUrWmXiump5BL5ZASsC

js referencetovideo.link collected 2026-10-05 05:47:19 UTC 11,549 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{10665:(e,t,r)=>{"use strict";function s(){return new Date().toISOString()}r.d(t,{MI:()=>n,iq:()=>s,lg:()=>a});let a=()=>Date.parse(new Date().toUTCString())/1e3,n=()=>{let e=new Date,t=new Date(e);return t.setFullYear(e.getFullYear()+1),t.toISOString()}},13910:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>l});var s=r(68812),a=r(51456),n=r(47469),o=r(43798),i=r(58981);let l=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:o,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,s.jsx)(u,{className:(0,i.cn)(l({variant:a,size:o,className:r})),ref:t,...c})});d.displayName="Button"},14493:(e,t,r)=>{"use strict";r.d(t,{NextAuthSessionProvider:()=>n});var s=r(68812),a=r(93546);function n(e){let{children:t}=e;return(0,s.jsx)(a.CP,{children:t})}},22776:(e,t,r)=>{"use strict";r.d(t,{AppContextProvider:()=>m,U:()=>g});var s=r(68812),a=r(51456),n=r(55138),o=r(37013),i=r(32674),l=r.n(i),d=r(53043),c=r.n(d),u=r(93546);let f=(0,a.createContext)({}),g=()=>(0,a.useContext)(f),m=e=>{let{children:t}=e;!function(){let{data:e,status:t}=(0,u.wV)(),r=async function(){c()({client_id:"33722208539-l0b45ejf48nd7e6cbmq3r4mqkm24dgm0.apps.googleusercontent.com",auto_select:!1,cancel_on_tap_outside:!1,context:"signin"},e=>{console.log("onetap login ok",e),n(e.credential)})},n=async function(e){console.log("signIn ok",await (0,u.Jv)("google-one-tap",{credential:e,redirect:!1}))};(0,a.useEffect)(()=>{if("unauthenticated"===t){r();let e=setInterval(()=>{r()},3e3);return()=>{clearInterval(e)}}},[t]),s.Fragment}();let{data:r}=(0,u.wV)(),[i,d]=(0,a.useState)(()=>"dark"),[g,m]=(0,a.useState)(!1),[p,x]=(0,a.useState)(null),[h,v]=(0,a.useState)(!1),b=async function(){try{let e=await fetch("/api/get-user-info",{method:"POST"});if(!e.ok)throw Error("fetch user info failed with status: "+e.status);let{code:t,message:r,data:s}=await e.json();if(0!==t)throw Error(r);x(s),y(s)}catch(e){console.log("fetch user info failed")}},y=async e=>{try{if(e.invited_by){console.log("user already been invited",e.invited_by);return}let t=(0,n.pr)(o.wD.InviteCode);if(!t)return;let r=l()(e.created_at).unix(),s=l()().unix(),a=Number(s-r);if(a<=0||a>7200){console.log("user created more than 2 hours");return}console.log("update invite",t,e.uuid);let i={invite_code:t,user_uuid:e.uuid},d=await fetch("/api/update-invite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!d.ok)throw Error("update invite failed with status: "+d.status);let{code:c,message:u,data:f}=await d.json();if(0!==c)throw Error(u);x(f),(0,n.np)(o.wD.InviteCode)}catch(e){console.log("update invite failed: ",e)}};return(0,a.useEffect)(()=>{r&&r.user&&b()},[r]),(0,s.jsx)(f.Provider,{value:{theme:i,setTheme:d,showSignModal:g,setShowSignModal:m,user:p,setUser:x,showFeedback:h,setShowFeedback:v},children:t})}},37013:(e,t,r)=>{"use strict";r.d(t,{wD:()=>s});let s={Theme:"THEME",InviteCode:"INVITE_CODE"}},40944:()=>{},55138:(e,t,r)=>{"use strict";r.d(t,{PW:()=>n,np:()=>o,pr:()=>a});var s=r(10665);let a=e=>{let t=localStorage.getItem(e);if(!t)return null;let r=t.split(":");if(!r||r.length<2)return null;let a=Number(r[0]),n=(0,s.lg)();if(-1!==a&&a<n)return o(e),null;let i=r[0]+":";return t.replace(i,"")},n=(e,t,r)=>{localStorage.setItem(e,r+":"+t)}
1,o=e=>{localStorage.removeItem(e)}},58981:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var s=r(97780),a=r(22849);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,s.$)(t))}},78325:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>T});var s=r(68812),a=r(80846);function n(){let e="G-QGN9MLKVJP";return e?(0,s.jsx)(a.GoogleAnalytics,{gaId:e}):null}function o(){return null}function i(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o,{}),(0,s.jsx)(n,{})]})}r(92621);var l=r(37013),d=r(14397),c=r(51456),u=r(94210),f=r(38130),g=r(58981);let m=e=>{let{shouldScaleBackground:t=!0,...r}=e;return(0,s.jsx)(f._s.Root,{shouldScaleBackground:t,...r})};m.displayName="Drawer",f._s.Trigger;let p=f._s.Portal,x=f._s.Close,h=c.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(f._s.Overlay,{ref:t,className:(0,g.cn)("fixed inset-0 z-50 bg-black/80",r),...a})});h.displayName=f._s.Overlay.displayName;let v=c.forwardRef((e,t)=>{let{className:r,children:a,...n}=e;return(0,s.jsxs)(p,{children:[(0,s.jsx)(h,{}),(0,s.jsxs)(f._s.Content,{ref:t,className:(0,g.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",r),...n,children:[(0,s.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),a]})]})});v.displayName="DrawerContent";let b=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,g.cn)("grid gap-1.5 p-4 text-center sm:text-left",t),...r})};b.displayName="DrawerHeader";let y=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,g.cn)("mt-auto flex flex-col gap-2 p-4",t),...r})};y.displayName="DrawerFooter";let j=c.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(f._s.Title,{ref:t,className:(0,g.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})});j.displayName=f._s.Title.displayName;let N=c.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(f._s.Description,{ref:t,className:(0,g.cn)("text-sm text-muted-foreground",r),...a})});N.displayName=f._s.Description.displayName;var w=r(91753),_=r(13910),k=r(93546),C=r(22776),D=r(53837);function E(){let e=(0,D.c3)(),{showSignModal:t,setShowSignModal:r}=(0,C.U)(),[a,n]=c.useState(!1);return!function(e){let[t,r]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let t=window.matchMedia(e);r(t.matches);let s=e=>{r(e.matches)};return t.addEventListener("change",s),()=>{t.removeEventListener("change",s)}},[e]),t}("(min-width: 768px)")?(0,s.jsx)(m,{open:t,onOpenChange:r,children:(0,s.jsxs)(v,{children:[(0,s.jsxs)(b,{className:"text-left",children:[(0,s.jsx)(j,{children:e("sign_modal.sign_in_title")}),(0,s.jsx)(N,{children:e("sign_modal.sign_in_description")})]}),(0,s.jsx)(S,{className:"px-4"}),(0,s.jsx)(y,{className:"pt-4",children:(0,s.jsx)(x,{asChild:!0,children:(0,s.jsx)(_.$,{variant:"outline",children:e("sign_modal.cancel_title")})})})]})}):(0,s.jsx)(u.lG,{open:t,onOpenChange:r,children:(0,s.jsxs)(u.Cf,{className:"sm:max-w-[425px]",children:[(0,s.jsxs)(u.c7,{children:[(0,s.jsx)(u.L3,{children:e("sign_modal.sign_in_title")}),(0,s.jsx)(u.rr,{children:e("sign_modal.sign_in_description")})]}),(0,s.jsx)(S,{})]})})}function S(e){let{className:t}=e,r=(0,D.c3)();return(0,s.jsxs)("div",{className:(0,g.cn)("grid items-start gap-4",t),children:[(0,s.jsxs)(_.$,{variant:"outline",className:"w-full flex items-center gap-2",onClick:()=>{(0,k.Jv)("google")},children:[(0,s.jsx)(w.UKz,{className:"w-4 h-4"}),r("sign_modal.google_sign_in")]}),!1]})}var P=r(71563);let I=e=>{let{...t}=e,{theme:r="system"}=(0,d.D)();return(0,s.jsx)(P.l$,{theme:r,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var O=r(55138);function T(e){let{children:t,...r}=e,{theme:a,setTheme:n}=(0,C.U)();return(0,c.useEffect)(()=>{let e="dark";
1if(e&&["dark","light"].includes(e)){n(e);return}{let e=(0,O.pr)(l.wD.Theme);if(e&&["dark","light"].includes(e)){n(e);return}}let t=window.matchMedia("(prefers-color-scheme: dark)");n(t.matches?"dark":"light");let r=()=>{n(t.matches?"dark":"light")};return t.addListener(r),()=>{t.removeListener(r)}},[]),(0,s.jsxs)(d.N,{forcedTheme:a,...r,children:[t,(0,s.jsx)(I,{position:"top-center",richColors:!0}),(0,s.jsx)(E,{}),(0,s.jsx)(i,{})]})}},93921:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,40944,23)),Promise.resolve().then(r.bind(r,14493)),Promise.resolve().then(r.bind(r,22776)),Promise.resolve().then(r.bind(r,20656)),Promise.resolve().then(r.bind(r,83083)),Promise.resolve().then(r.t.bind(r,25029,23)),Promise.resolve().then(r.bind(r,78325))},94210:(e,t,r)=>{"use strict";r.d(t,{Cf:()=>f,Es:()=>m,HM:()=>c,L3:()=>p,c7:()=>g,lG:()=>l,rr:()=>x});var s=r(68812),a=r(51456),n=r(98091),o=r(33493),i=r(58981);let l=n.bL;n.l9;let d=n.ZL,c=n.bm,u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...a})});u.displayName=n.hJ.displayName;let f=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,s.jsxs)(d,{children:[(0,s.jsx)(u,{}),(0,s.jsxs)(n.UC,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...l,children:[a,(0,s.jsxs)(n.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,s.jsx)(o.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=n.UC.displayName;let g=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};g.displayName="DialogHeader";let m=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};m.displayName="DialogFooter";let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})});p.displayName=n.hE.displayName;let x=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...a})});x.displayName=n.VY.displayName}},e=>{var t=t=>e(e.s=t);e.O(0,[1978,9285,9053,8548,2285,6420,1563,2472,6834,3546,1975,7463,7303,5783,7775,7358],()=>t(93921)),_N_E=e.O()}]);

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.