PageSourceSearch

https://umix.dev/_next/static/chunks/1654-04961b2af15dd93f.js

js umix.dev collected 2026-10-06 08:09:53 UTC 8,566 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([["1654"],{80722(e,t,r){r.d(t,{e:()=>i});var n=r(74168),a=r(36537),l=r(71401);let i=()=>{let e=(0,n.useAtomValue)(l.KY);return(0,a.useCallback)(t=>{if(!e)return"";let r=new URL(e.replace(/\/$/,""));return`${r.protocol}//${r.host}${r.pathname}${t||""}${r.search}`},[e])}},12124(e,t,r){r.d(t,{f:()=>c});var n=r(27181),a=r(77382),l=r(42848),i=r(80722),o=r(17895);let c=e=>{let t=(0,a.c)("common"),r=(0,l.pq)(),c=(0,i.e)(),{id:s,type:u,className:d}=e;if(!r)return null;let h=c(`#/${u}/edit?id=${s}`);return h?(0,n.jsxs)("a",{"data-hide-print":!0,href:h,rel:"noreferrer",target:"_blank",className:(0,o.c)("flex size-8 rounded-full text-accent no-underline opacity-80 ring-1 ring-neutral-3 duration-200 center hover:opacity-100",d),children:[(0,n.jsx)("i",{className:"i-mingcute-quill-pen-line"}),(0,n.jsx)("span",{className:"sr-only",children:t("actions_edit")})]}):null}},83222(e,t,r){r.d(t,{TocHeadingStrategyProvider:()=>s,j:()=>c});var n=r(27181),a=r(36537);let l=e=>[...e.querySelectorAll("h1,h2,h3,h4,h5,h6")].filter(e=>"true"===e.dataset.markdownHeading),i=e=>[...e.querySelectorAll("h1.rich-heading-h1,h2.rich-heading-h2,h3.rich-heading-h3,h4.rich-heading-h4,h5.rich-heading-h5,h6.rich-heading-h6")].filter(e=>!e.closest(".rich-nestdoc-yohaku, .rich-nested-doc-content")),o=(0,a.createContext)(l),c=()=>(0,a.use)(o);function s({contentFormat:e,hasContent:t,children:r}){let c=(0,a.useMemo)(()=>"lexical"===e&&t?i:l,[e,t]);return(0,n.jsx)(o,{value:c,children:r})}},18772(e,t,r){r.d(t,{E:()=>c});var n=r(27181),a=r(36537),l=r(72336),i=r(17895);let o=(0,l.tv)({base:(0,i.c)("relative mb-[1.5px] inline-block min-w-0 max-w-full leading-normal","truncate text-left tabular-nums","transition-[opacity,color] duration-300 ease-in-out"),variants:{status:{active:"text-accent font-medium opacity-100","in-range":"text-neutral-8 opacity-70",inactive:"text-neutral-8 opacity-35 hover:opacity-80"}},defaultVariants:{status:"inactive"}}),c=(0,a.memo)(e=>{let{status:t,rootDepth:r,onClick:l,heading:c}=e,{$heading:s,anchorId:u,depth:d,index:h,title:p}=c,f=(0,a.useRef)(null),m=(0,a.useMemo)(()=>d-r,[d,r]);return(0,n.jsx)("a",{className:(0,i.c)(o({status:t})),"data-depth":d,"data-index":h,href:`#${u}`,ref:f,title:p,style:(0,a.useMemo)(()=>({paddingLeft:d>=r?`${.6*m+1}rem`:"1rem"}),[d,m,r]),onClick:(0,a.useCallback)(e=>{e.preventDefault(),l?.(h,s,u)},[l,h,s,u]),children:(0,n.jsx)("span",{className:"cursor-pointer",children:p})})});c.displayName="TocItem"},88629(e,t,r){r.d(t,{F:()=>g});var n=r(27181),a=r(83273),l=r(36537),i=r(94011),o=r(43389),c=r(17895),s=r(17493);let u=({containerRef:e,visibleIds:t,className:r})=>{let[a,i]=(0,l.useState)(null),o=(0,l.useRef)(0),s=(0,l.useRef)(void 0),u=(0,l.useCallback)(()=>{let r=e.current;if(!r||0===t.size)return void i(null);let n=r.querySelectorAll("li[data-anchor-id]"),a=null,l=null;for(let e of n){let r=e.dataset.anchorId;r&&t.has(r)&&(a||(a=e),l=e)}if(!a||!l)return void i(null);let o=r.getBoundingClientRect(),c=a.getBoundingClientRect(),s=l.getBoundingClientRect();i({top:c.top-o.top+r.scrollTop,height:s.bottom-c.top})},[e,t]);return((0,l.useEffect)(()=>{u()},[u]),(0,l.useEffect)(()=>{let t=e.current;if(!t)return;let r=()=>{cancelAnimationFrame(o.current),o.current=requestAnimationFrame(u)};t.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r,{passive:!0});let n=new MutationObserver(()=>{clearTimeout(s.current),s.current=setTimeout(()=>{cancelAnimationFrame(o.current),o.current=requestAnimationFrame(u)},450)});return n.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style"]}),()=>{cancelAnimationFrame(o.current),clearTimeout(s.current),t.removeEventListener("scroll",r),window.removeEventListener("resize",r),n.disconnect()}},[e,u]),a)?(0,n.jsx)("span",{className:(0,c.c)("absolute left-0 w-[2px] rounded-sm","bg-gradient-to-b from-accent from-80% to-transparent","transition-[top,height] duration-400",r),style:{top:a.top,height:a.height,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",boxShadow:"0 0 6px color-mix(in srgb, var(--color-accent) 35%, transparent), 1px 0 12px color-mix(in srgb, var(--color-accent) 12%, transparent)"}}):null};var d=r(99300);let h={duration:.4,ease:[.4,0,.2,1]},p=({expanded:e,children:t})=>(0,n.jsx)(d.m.div,{initial:!1,style:{overflow:"hidden"},transition:h,animate:{height:e?"auto":0,opacity:+!!e},children:t});var f=r(18772),m=r(41289);let g=({$headings:e,containerRef:t,className:r,scrollInNextTick:d,onItemClick:h,grouping:f=!0})=>{let{visibleIds:g,activeId:v}=(0,m.n)(e),b=(0,l.useMemo)(()=>Array.from(e).map((e,t)=>{let r=+e.tagName.slice(1),n=e.cloneNode(!0);
1return n.querySelectorAll("del, .katex-container").forEach(e=>{e.remove()}),{depth:r,index:t,title:n.textContent||"",anchorId:e.id,$heading:e}}),[e]),y=(0,l.useMemo)(()=>b.length?b.reduce((e,t)=>Math.min(e,t.depth),b[0].depth):0,[b]),I=(0,i.T)(b),w=(0,l.useCallback)((e,t)=>{if(h?.(I.current[e]),t){let e=()=>{(0,s.A)(t,-100)};d?requestAnimationFrame(e):e()}},[h,d,I]),k=(0,l.useMemo)(()=>{if(!f)return null;let e=[];for(let t of b)if(t.depth===y)e.push({parent:t,children:[]});else if(e.length>0){let r=e.at(-1);r&&r.children.push(t)}return e},[b,y,f]),[C,j]=(0,l.useState)(()=>new Set),A=(0,l.useRef)(new Map);(0,l.useEffect)(()=>{if(!k)return;let e=A.current;return j(t=>{let r=new Set;for(let n of k){let a=g.has(n.parent.anchorId),l=n.children.some(e=>g.has(e.anchorId));if(a||l){r.add(n.parent.anchorId);let t=e.get(n.parent.anchorId);t&&(clearTimeout(t),e.delete(n.parent.anchorId))}else if(t.has(n.parent.anchorId)){if(!e.has(n.parent.anchorId)){let t=setTimeout(()=>{j(e=>{let t=new Set(e);return t.delete(n.parent.anchorId),t}),e.delete(n.parent.anchorId)},300);e.set(n.parent.anchorId,t)}r.add(n.parent.anchorId)}}return r}),()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[g,k]);let E=(0,l.useCallback)(e=>e===v?"active":g.has(e)?"in-range":"inactive",[v,g]),M=(0,l.useMemo)(()=>{let e=b.findIndex(e=>e.anchorId===v);return -1===e?0:e},[b,v]),N=(0,l.useCallback)(e=>Math.min(450,50*Math.abs(e-M)),[M]),S=(0,l.useRef)(null),[,T]=(0,o.y)({ref:S});return(0,n.jsx)("ul",{ref:t,className:(0,c.c)("scrollbar-none flex grow flex-col scroll-smooth px-2",r),children:(0,n.jsxs)("ul",{className:(0,a.A)("scrollbar-none relative overflow-auto",T),ref:S,children:[(0,n.jsx)(u,{className:"transition-[top,height,opacity] group-data-[toc-focus]/toc:opacity-0",containerRef:S,visibleIds:g}),k?k.map(e=>(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)(x,{heading:e.parent,rippleDelayMs:N(e.parent.index),rootDepth:y,status:E(e.parent.anchorId),onClick:w}),e.children.length>0&&(0,n.jsx)(p,{expanded:C.has(e.parent.anchorId),children:e.children.map(e=>(0,n.jsx)(x,{heading:e,rippleDelayMs:N(e.index),rootDepth:y,status:E(e.anchorId),onClick:w},e.anchorId))})]},e.parent.anchorId)):b.map(e=>(0,n.jsx)(x,{heading:e,rippleDelayMs:N(e.index),rootDepth:y,status:E(e.anchorId),onClick:w},e.anchorId))]})})},x=(0,l.memo)(({heading:e,status:t,onClick:r,rootDepth:i,rippleDelayMs:o=0})=>{let c=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if("active"!==t)return;let e=c.current;if(!e)return;let r=e.closest("ul");if(!r)return;let n=r.clientHeight,a=e.clientHeight,l=e.offsetTop,{scrollTop:i}=r,o=l-i;(o<0||o+a>n)&&(r.scrollTop=l-n/2+a/2)},[t]),(0,n.jsx)("li",{"data-anchor-id":e.anchorId,ref:c,className:(0,a.A)("relative leading-none","transition-[opacity,translate] duration-[350ms] ease-[cubic-bezier(0.4,0,0.2,1)]","group-data-[toc-focus]/toc:-translate-x-2.5 group-data-[toc-focus]/toc:opacity-0","group-data-[toc-focus]/toc:[transition-delay:var(--toc-ripple-delay)]"),style:{"--toc-ripple-delay":`${o}ms`},children:(0,n.jsx)(f.E,{heading:e,rootDepth:i,status:t,onClick:r})})});x.displayName="MemoedItem"},41289(e,t,r){r.d(t,{m:()=>c,n:()=>o});var n=r(17328),a=r(74168),l=r(36537);let i=(0,n.eU)({visibleIds:new Set,activeId:null});function o(e){let[t,r]=(0,a.useAtom)(i);return(0,l.useEffect)(()=>{let t=new Set,n=new IntersectionObserver(n=>{n.forEach(e=>{let r=e.target.id;e.isIntersecting?t.add(r):t.delete(r)});let a=null;for(let r of e)if(t.has(r.id)){a=r.id;break}if(!a)for(let t of e)if(t.getBoundingClientRect().top<100)a=t.id;else break;(0,l.startTransition)(()=>{r({visibleIds:new Set(t),activeId:a})})},{rootMargin:"-100px 0px -100px 0px"});return e.forEach(e=>{n.observe(e)}),()=>{n.disconnect()}},[e,r]),t}function c(){let[e]=(0,a.useAtom)(i);return e}},33913(e,t,r){r.d(t,{C:()=>a});var n=r(36537);let a=()=>{let[e,t]=(0,n.useState)(0);return[(0,n.useCallback)(()=>t(e=>++e),[]),e]}}}]);

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.