PageSourceSearch

https://www.lmms-lab.com/_next/static/chunks/app/layout-dcc03c4ca4…?dpl=dpl_7S5iyyUkNWjSAFfJ2CfdeXVqAchV

js lmms-lab.com collected 2026-10-03 23:13:38 UTC 17,243 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{1169:function(e,n,t){Promise.resolve().then(t.bind(t,9765)),Promise.resolve().then(t.bind(t,9820)),Promise.resolve().then(t.bind(t,2965)),Promise.resolve().then(t.bind(t,7597)),Promise.resolve().then(t.t.bind(t,9498,23)),Promise.resolve().then(t.t.bind(t,452,23)),Promise.resolve().then(t.t.bind(t,1572,23))},9765:function(e,n,t){"use strict";t.d(n,{default:function(){return U}});var r=t(3890),a=t(8779),i=t(8496),l=t(6060),o=t(1472),s=t.n(o);let u={bare:!0,alignX:"left",padX:8,eCell:24},c=null;function d(){let e=(0,i.useRef)(null),[n,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let n=!1,r=0,a=null;return(function(){if(window.LMMSRender)return Promise.resolve();if(!c){let e=e=>new Promise((n,t)=>{let r=document.createElement("script");r.src=e,r.async=!0,r.onload=()=>n(),r.onerror=()=>t(Error("failed to load ".concat(e))),document.head.appendChild(r)});c=e("/animation/lmms-pixelfont.js").then(()=>e("/animation/lmms-render.js"))}return c})().then(()=>{let i=e.current;if(n||!i||!window.LMMSRender)return;let l=i.getContext("2d");if(!l)return;let o=window.LMMSRender.make(),s=o.pal("light"),c=()=>{let e=window.devicePixelRatio||1,n=i.getBoundingClientRect(),t=Math.max(1,Math.round(n.width*e)),r=Math.max(1,Math.round(n.height*e));(i.width!==t||i.height!==r)&&(i.width=t,i.height=r)};c(),(a=new ResizeObserver(c)).observe(i);let d=performance.now(),m=!0,f=e=>{if(n)return;let a=i.height/390;l.setTransform(a,0,0,a,0,0),o.scene("b",l,2400,390,(e-d)%8e3/8e3,s,e,u),m&&(m=!1,t(!0)),r=requestAnimationFrame(f)};r=requestAnimationFrame(f)}).catch(()=>{}),()=>{n=!0,cancelAnimationFrame(r),null==a||a.disconnect()}},[]),(0,r.jsxs)("span",{className:s().wrap,"data-ready":n?"true":"false",children:[(0,r.jsx)(l.default,{src:"/assets/logo.png",alt:"LMMS Lab Logo",width:144,height:144,className:s().fallback,priority:!0}),(0,r.jsx)("canvas",{ref:e,className:s().canvas,width:2400,height:390,"aria-hidden":"true"})]})}var m=t(6524),f=t(6710),h=t(9749),p=t(9461);class _ extends i.Component{getSnapshotBeforeUpdate(e){let n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=n.offsetHeight||0,e.width=n.offsetWidth||0,e.top=n.offsetTop,e.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function v(e){let{children:n,isPresent:t}=e,a=(0,i.useId)(),l=(0,i.useRef)(null),o=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,i.useContext)(p._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:n,top:r,left:i}=o.current;if(t||!l.current||!e||!n)return;l.current.dataset.motionPopId=a;let u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(n,"px !important;\n            top: ").concat(r,"px !important;\n            left: ").concat(i,"px !important;\n          }\n        ")),()=>{document.head.removeChild(u)}},[t]),(0,r.jsx)(_,{isPresent:t,childRef:l,sizeRef:o,children:i.cloneElement(n,{ref:l})})}let b=e=>{let{children:n,initial:t,isPresent:a,onExitComplete:l,custom:o,presenceAffectsLayout:s,mode:u}=e,c=(0,f.h)(x),d=(0,i.useId)(),m=(0,i.useCallback)(e=>{for(let n of(c.set(e,!0),c.values()))if(!n)return;l&&l()},[c,l]),p=(0,i.useMemo)(()=>({id:d,initial:t,isPresent:a,custom:o,onExitComplete:m,register:e=>(c.set(e,!1),()=>c.delete(e))}),s?[Math.random(),m]:[a,m]);return(0,i.useMemo)(()=>{c.forEach((e,n)=>c.set(n,!1))},[a]),i.useEffect(()=>{a||c.size||!l||l()},[a]),"popLayout"===u&&(n=(0,r.jsx)(v,{isPresent:a,children:n})),(0,r.jsx)(h.O.Provider,{value:p,children:n})};function x(){return new Map}var y=t(3871);let w=e=>e.key||"";function g(e){let n=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&n.push(e)}),n}var N=t(6288);let j=e=>{let{children:n,custom:t,initial:a=!0,onExitComplete:l,presenceAffectsLayout:o=!0,mode:s="sync",propagate:u=!1}=e,[c,d]=(0,y.oO)(u),h=(0,i.useMemo)(()=>g(n),[n]),p=u&&!c?[]:h.map(w),_=(0,i.useRef)(!0),v=(0,i.useRef)(h),x=(0,f.h)(()=>new Map),[j,L]=(0,i.useState)(h),[M,k]=(0,i.useState)(h);(0,N.L)(()=>{_.current=!1,v.current=h;for(let e=0;e<M.length;e++){let n=w(M[e]);p.includes(n)?x.delete(n):!0!==x.get(n)&&x.set(n,!1)}},[M,p.length,p.join("-")]);let E=[];if(h!==j){let e=[...h];for(let n=0;n<M.length;n++){let t=M[n],r=w(t);p.includes(r)||(e.splice(n,0,t),E.push(t))}"wait"===s&&E.length&&(e=E),k(g(e)),L(h);return}let{forceRender:C}=(0,i.useContext)(m.p);return(0,r.jsx)(r.Fragment,{children:M.map(e=>{let n=w(e),i=(!u||!!c)&&(h===M||p.includes(n));return(0,r.jsx)(b,{isPresent:i,initial:(!_.current||!!a)&&void 0,custom:i?void 0:t,presenceAffectsLayout:o,mode:s,onExitComplete:i?void 0:()=>
1{if(!x.has(n))return;x.set(n,!0);let e=!0;x.forEach(n=>{n||(e=!1)}),e&&(null==C||C(),k(v.current),u&&(null==d||d()),l&&l())},children:e},n)})})};var L=t(3876),M=t(7248),k=t(3727),E=t(8796),C=t(135),I=t.n(C);function S(){var e;let n=(0,E.jv)(),[t,a]=(0,i.useState)("loading"),[l,o]=(0,i.useState)(null),[s,u]=(0,i.useState)(null),[c,d]=(0,i.useState)(!1),m=(0,i.useRef)(null),f=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!n)return;let e=(0,k.e)(),t=!1;async function r(n){let{data:r,error:a}=await e.from("profiles").select("display_name, avatar_url, role").eq("id",n).maybeSingle();if(a){console.error("[user-menu] loading profile failed: ".concat(a.message));return}t||u(null!=r?r:null)}function i(e){if(!t){if(e){var n;o({id:e.id,email:null!==(n=e.email)&&void 0!==n?n:null}),a("signed-in");let t=e.id;window.setTimeout(()=>void r(t),0)}else o(null),u(null),a("signed-out")}}e.auth.getUser().then(e=>{let{data:n}=e;return i(n.user)});let{data:{subscription:l}}=e.auth.onAuthStateChange((e,n)=>{var t;i(null!==(t=null==n?void 0:n.user)&&void 0!==t?t:null)});return()=>{t=!0,l.unsubscribe()}},[n]),(0,i.useEffect)(()=>{if(c)return document.addEventListener("mousedown",e),document.addEventListener("keydown",n),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",n)};function e(e){m.current&&!m.current.contains(e.target)&&d(!1)}function n(e){var n;"Escape"===e.key&&(d(!1),null===(n=f.current)||void 0===n||n.focus())}},[c]);let h=(0,i.useCallback)(async()=>{d(!1);let e=(0,k.e)(),{error:n}=await e.auth.signOut();n&&console.error("[user-menu] sign out failed: ".concat(n.message)),window.location.assign("/")},[]);if(!n||"loading"===t)return null;if("signed-out"===t)return(0,r.jsx)(M.default,{href:"/login/",className:I().signInLink,children:"Sign in"});let p=(null==s?void 0:s.display_name)||(null==l?void 0:l.email)||"Account",_=p.charAt(0).toUpperCase()||"A",v=null!==(e=null==s?void 0:s.role)&&void 0!==e?e:"reader";return(0,r.jsxs)("div",{ref:m,className:I().menu,children:[(0,r.jsx)("button",{ref:f,type:"button",className:I().trigger,"aria-haspopup":"menu","aria-expanded":c,"aria-label":"Account menu",onClick:()=>d(e=>!e),children:(null==s?void 0:s.avatar_url)?(0,r.jsx)("img",{src:s.avatar_url,alt:"",width:28,height:28,referrerPolicy:"no-referrer",className:I().avatar}):(0,r.jsx)("span",{className:I().initial,"aria-hidden":"true",children:_})}),(0,r.jsx)(j,{children:c&&(0,r.jsxs)(L.E.div,{className:I().panel,initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.18,ease:"easeOut"},children:[(0,r.jsxs)("div",{className:I().identity,children:[(0,r.jsx)("span",{className:I().identityName,children:p}),(null==l?void 0:l.email)&&(null==s?void 0:s.display_name)&&(0,r.jsx)("span",{className:I().identityMeta,children:l.email})]}),(0,r.jsxs)("ul",{className:I().list,role:"menu",children:[(0,r.jsx)("li",{role:"none",children:(0,r.jsx)(M.default,{href:"/account/",className:I().item,role:"menuitem",onClick:()=>d(!1),children:"Account"})}),("editor"===v||"admin"===v)&&(0,r.jsx)("li",{role:"none",children:(0,r.jsx)(M.default,{href:"/studio/",className:I().item,role:"menuitem",onClick:()=>d(!1),children:"Studio"})}),"admin"===v&&(0,r.jsx)("li",{role:"none",children:(0,r.jsx)(M.default,{href:"/admin/",className:I().item,role:"menuitem",onClick:()=>d(!1),children:"Admin"})}),(0,r.jsx)("li",{role:"none",children:(0,r.jsx)("button",{type:"button",className:I().item,role:"menuitem",onClick:()=>void h(),children:"Sign out"})})]})]})})]})}var P=t(91),A=t.n(P);let R=[{label:"Home",href:"/"},{label:"Posts",href:"/posts"},{label:"Notes",href:"/notes"}],H=[{label:"LMMS-Lab Writer",href:"https://writer.lmms-lab.com",description:"AI-native LaTeX editor"},{label:"Engram",href:"https://www.engram-encrypt.com/",description:"Secure-first AI memory layer"}];function U(){let[e,n]=(0,i.useState)(!1),[t,l]=(0,i.useState)(!1),[o,s]=(0,i.useState)(!1),u=(0,a.usePathname)(),c=(0,i.useRef)(null),m=(0,i.useRef)(null),f=(0,i.useRef)(null),h=(0,i.useRef)(null),p=(0,i.useCallback)(()=>{null!==h.current&&(window.clearTimeout(h.current),h.current=null)},[]),_=(0,i.useCallback)(()=>{p(),s(!0)},[p]),v=(0,i.useCallback)(()=>{p(),s(!1)},[p]),b=(0,i.useCallback)(()=>{p(),h.current=window.setTimeout(()=>{s(!1),h.current=null},180)},[p]),x=(0,i.useCallback)(e=>{let n=e.relatedTarget;n&&e.currentTarget.contains(n)||v()},[v]),y=(0,i.useCallback)(e=>{if("Escape"!==e.key)return;e.preventDefault(),v();let n=e.currentTarget.querySelector("button");null==n||n.focus()},[v]);(0,i.useEffect)(()=>
1{l(!0)},[]),(0,i.useEffect)(()=>()=>p(),[p]),(0,i.useEffect)(()=>{n(!1),v()},[u,v]),(0,i.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]);let w=(0,i.useCallback)(t=>{if(e){if("Escape"===t.key){var r;n(!1),null===(r=m.current)||void 0===r||r.focus();return}if("Tab"===t.key&&c.current){let e=c.current.querySelectorAll("a[href], button:not([disabled])"),n=e[0],r=e[e.length-1];t.shiftKey&&document.activeElement===n?(t.preventDefault(),null==r||r.focus()):t.shiftKey||document.activeElement!==r||(t.preventDefault(),null==n||n.focus())}}},[e]);(0,i.useEffect)(()=>(document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)),[w]),(0,i.useEffect)(()=>{if(!o)return;let e=e=>{f.current&&!f.current.contains(e.target)&&v()};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[o,v]),(0,i.useEffect)(()=>{if(e&&c.current){let e=c.current.querySelector("a[href]");null==e||e.focus()}},[e]);let g=e=>!!t&&("/"===e?"/"===u:u.startsWith(e));return(0,r.jsxs)("header",{className:A().masthead,"data-menu-open":e?"true":"false",children:[(0,r.jsxs)("div",{className:A().mastheadInner,children:[(0,r.jsx)("div",{className:A().mastheadBrand,children:(0,r.jsx)(M.default,{href:"/",className:A().brandLink,children:(0,r.jsx)(d,{})})}),(0,r.jsx)("button",{ref:m,onClick:()=>n(!e),"aria-label":"Toggle menu","aria-expanded":e,"aria-controls":"mobile-nav-menu",className:A().mobileMenuBtn,children:(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square",strokeLinejoin:"miter",children:e?(0,r.jsx)("path",{d:"M18 6L6 18M6 6l12 12"}):(0,r.jsx)("path",{d:"M3 12h18M3 6h18M3 18h18"})})}),(0,r.jsxs)("nav",{className:"".concat(A().navMenu," ").concat(A().desktopNav),children:[R.map(e=>(0,r.jsx)(M.default,{href:e.href,className:"".concat(A().navLink," ").concat(g(e.href)?A().active:""),children:e.label},e.href)),(0,r.jsxs)("div",{ref:f,className:A().dropdown,onMouseEnter:_,onMouseLeave:b,onBlur:x,onKeyDown:y,children:[(0,r.jsx)("button",{type:"button",className:"".concat(A().navLink," ").concat(A().dropdownTrigger," ").concat(o?A().active:""),"aria-haspopup":"menu","aria-expanded":o,onClick:()=>{p(),s(e=>!e)},onMouseEnter:_,onFocus:_,children:"Gallery"}),(0,r.jsx)(j,{children:o&&(0,r.jsx)(L.E.div,{className:A().dropdownPanel,initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.18,ease:"easeOut"},children:(0,r.jsx)("ul",{className:A().dropdownList,role:"menu",children:H.map(e=>(0,r.jsx)("li",{role:"none",children:(0,r.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:A().dropdownItem,role:"menuitem",onClick:v,children:[(0,r.jsx)("span",{className:A().dropdownItemLabel,children:e.label}),(0,r.jsx)("span",{className:A().dropdownItemMeta,children:e.description})]})},e.href))})})})]}),(0,r.jsx)(M.default,{href:"/about",className:"".concat(A().navLink," ").concat(g("/about")?A().active:""),children:"About"}),(0,r.jsx)(S,{})]})]}),(0,r.jsx)(j,{children:e&&(0,r.jsx)(L.E.div,{ref:c,initial:{opacity:0,y:-12},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.35,ease:[.25,.1,.25,1]},className:A().mobileNavOverlay,role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:(0,r.jsxs)("nav",{id:"mobile-nav-menu",className:A().mobileNavContent,children:[R.map(e=>(0,r.jsx)(M.default,{href:e.href,onClick:()=>n(!1),className:"".concat(A().mobileNavLink," ").concat(g(e.href)?A().active:""),children:e.label},e.href)),(0,r.jsxs)("div",{className:A().mobileGalleryGroup,children:[(0,r.jsx)("div",{className:A().mobileGalleryTitle,children:"Gallery"}),(0,r.jsx)("ul",{className:A().mobileGalleryList,children:H.map(e=>(0,r.jsx)("li",{children:(0,r.jsxs)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",onClick:()=>n(!1),className:A().mobileGalleryLink,children:[e.label,(0,r.jsx)("span",{className:A().mobileGalleryMeta,children:e.description})]})},e.href))})]}),(0,r.jsx)(M.default,{href:"/about",onClick:()=>n(!1),className:"".concat(A().mobileNavLink," ").concat(g("/about")?A().active:""),children:"About"}),(0,r.jsx)(S,{})]})})})]})}},9820:function(e,n,t){"use strict";t.d(n,{MotionProvider:function(){return u}});var r=t(3890),a=t(8496),i=t(9461),l=t(8594),o=t(6710);function s(e){let{children:n,isValidProp:t,...s}=e;t&&(0,l.K)(t),(s={...(0,a.useContext)(i._),...s}).isStatic=(0,o.h)(()=>s.isStatic);let u=(0,a.useMemo)(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion]);return(0,r.jsx)(i._.Provider,{value:u,children:n})}function u(e){let{children:n}=e;return(0,r.jsx)(s,{reducedMotion:"user",children:n})}},2965:function(e,n,t){"use strict";t.d(n,{default:function(){return l}});var r=t(3890),a=t(9801),i=t.n(a);function l(e){let{children:n}=e;return(0,r.jsx)("div",{className:i().transitionWrapper,children:n})}},3727:function(e,n,t){"use strict";t.d(n,{e:function(){return i}});var r=t(3528),a=t(8796);function i(){return(0,r.A)((0,a.NF)(),(0,a.WL)())}},8796:function(e,n,t){"use strict";t.d(n,{NF:function(){return o},WL:function(){return s},jv:function(){return l}});let r="https://lmms-lab.supabase.co",a="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRjYmRiZmJmZ2diZWpjZmx3eHRqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODYxOTE1NjYsImV4cCI6MjEwMTc2NzU2Nn0.QQkaNt_lTMMCdqzD2rWDgHiu0_UHgbrJvBl_6bMRwoA",i=!1;function l(){return!!r&&!!a||(i||(i=!0,console.warn("[supabase] NEXT_PUBLIC_SUPABASE_URL / NEXT_PUBLIC_SUPABASE_ANON_KEY are not set — accounts, publishing, and subscriptions are disabled. See docs/SUPABASE_SETUP.md.")),!1)}function o(){if(!r)throw Error("NEXT_PUBLIC_SUPABASE_URL is not set");return r}function s(){if(!a)throw Error("NEXT_PUBLIC_SUPABASE_ANON_KEY is not set");return a}},1572:function(){},452:function(){},1472:function(e){e.exports={wrap:"AnimatedLogo_wrap__L_Hpl",fallback:"AnimatedLogo_fallback__MA5_m",canvas:"AnimatedLogo_canvas__PdzK4"}},91:function(e){e.exports={masthead:"Header_masthead___8xTs",mastheadInner:"Header_mastheadInner__Jhiv6",mastheadBrand:"Header_mastheadBrand__f59uF",brandLink:"Header_brandLink__bcgzs",navMenu:"Header_navMenu__9IvfC",dropdown:"Header_dropdown__4_v0S",navLink:"Header_navLink__Rvw2c",dropdownTrigger:"Header_dropdownTrigger__VY6RQ",active:"Header_active__c7HdO",dropdownPanel:"Header_dropdownPanel__oXXC8",dropdownList:"Header_dropdownList__iwWl_",dropdownItem:"Header_dropdownItem__wO3vR",dropdownItemLabel:"Header_dropdownItemLabel__hClFt",dropdownItemMeta:"Header_dropdownItemMeta__GP7Z0",mobileMenuBtn:"Header_mobileMenuBtn__9N_AS",mobileNavOverlay:"Header_mobileNavOverlay__w8t0l",mobileNavContent:"Header_mobileNavContent__L06tt",mobileNavLink:"Header_mobileNavLink__Ai4_9",mobileGalleryGroup:"Header_mobileGalleryGroup__adGEu",mobileGalleryTitle:"Header_mobileGalleryTitle__3D1iQ",mobileGalleryList:"Header_mobileGalleryList__IbD49",mobileGalleryLink:"Header_mobileGalleryLink__l5KdU",mobileGalleryMeta:"Header_mobileGalleryMeta__9Uz1o",desktopNav:"Header_desktopNav__ye2RQ"}},135:function(e){e.exports={menu:"UserMenu_menu__32_i4",signInLink:"UserMenu_signInLink__F11cu",trigger:"UserMenu_trigger__Y8Ws6",avatar:"UserMenu_avatar__ML2y0",initial:"UserMenu_initial__7xefN",panel:"UserMenu_panel__iwL9d",identity:"UserMenu_identity__3C7mI",identityName:"UserMenu_identityName__Ep2P1",identityMeta:"UserMenu_identityMeta__zRHMF",list:"UserMenu_list__NYDWt",item:"UserMenu_item__KlIrK"}},9801:function(e){e.exports={transitionWrapper:"PageTransition_transitionWrapper__eWYFs"}}},function(e){e.O(0,[935,895,1,152,498,682,773,60,248,649,945,744],function(){return e(e.s=1169)}),_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.