PageSourceSearch

https://allenblog.icu/_next/static/chunks/app/layout-b446072e2cbeff84.js

js allenblog.icu collected 2026-10-06 14:14:37 UTC 14,668 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{84122:(e,t,r)=>{Promise.resolve().then(r.bind(r,79025)),Promise.resolve().then(r.bind(r,48370)),Promise.resolve().then(r.bind(r,91777)),Promise.resolve().then(r.t.bind(r,40628,23)),Promise.resolve().then(r.t.bind(r,48173,23)),Promise.resolve().then(r.t.bind(r,53704,23)),Promise.resolve().then(r.t.bind(r,62692,23)),Promise.resolve().then(r.bind(r,57672)),Promise.resolve().then(r.bind(r,3105)),Promise.resolve().then(r.bind(r,17969)),Promise.resolve().then(r.t.bind(r,8928,23)),Promise.resolve().then(r.t.bind(r,85103,23))},79025:(e,t,r)=>{"use strict";r.d(t,{ThemeProviders:()=>i});var a=r(95155),l=r(35611),s=r(81466),n=r.n(s);function i(e){let{children:t}=e;return(0,a.jsx)(l.N,{attribute:"class",defaultTheme:n().theme,enableSystem:!0,themes:["light","dark","system","gradient"],children:t})}},48370:(e,t,r)=>{"use strict";r.d(t,{default:()=>L});var a,l,s,n,i,o,c,d=r(95155),h=r(12115),g=r(81466),m=r.n(g);let x=[{href:"/",title:"Home"},{href:"/blog",title:"Blog"},{href:"/tags",title:"Tags"},{href:"/projects",title:"Projects"},{href:"/about",title:"About"}];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(null,arguments)}let p=function(e){return h.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:52,height:48,"aria-label":"Allen Blog Logo - Neural Network A",viewBox:"-2 0 52 48"},e),h.createElement("defs",null,h.createElement("linearGradient",{id:"logo_svg__a",x1:"0%",x2:"100%",y1:"0%",y2:"100%"},h.createElement("stop",{offset:"0%",style:{stopColor:"#06b6d4",stopOpacity:1}}),h.createElement("stop",{offset:"100%",style:{stopColor:"#3b82f6",stopOpacity:1}})),h.createElement("linearGradient",{id:"logo_svg__b",x1:"0%",x2:"100%",y1:"100%",y2:"0%"},h.createElement("stop",{offset:"0%",style:{stopColor:"#8b5cf6",stopOpacity:1}}),h.createElement("stop",{offset:"100%",style:{stopColor:"#06b6d4",stopOpacity:1}}))),a||(a=h.createElement("circle",{cx:24,cy:24,r:22,fill:"none",stroke:"url(#logo_svg__a)",strokeWidth:2,opacity:.3})),l||(l=h.createElement("path",{fill:"url(#logo_svg__a)",d:"M24 8 12 38h4l2-6h12l2 6h4zm-4 20 4-12 4 12Z"})),s||(s=h.createElement("circle",{cx:24,cy:20,r:2,fill:"url(#logo_svg__b)"})),n||(n=h.createElement("circle",{cx:18,cy:32,r:1.5,fill:"url(#logo_svg__b)",opacity:.7})),i||(i=h.createElement("circle",{cx:30,cy:32,r:1.5,fill:"url(#logo_svg__b)",opacity:.7})),o||(o=h.createElement("path",{stroke:"url(#logo_svg__b)",strokeWidth:.8,d:"m24 20-6 12M24 20l6 12",opacity:.5})),c||(c=h.createElement("path",{fill:"none",stroke:"url(#logo_svg__a)",strokeLinecap:"round",strokeWidth:1.5,d:"m6 18-4 6 4 6M42 18l4 6-4 6",opacity:.6})))};var v=r(74312),f=r(53313),y=r(38767),b=r(74278);let w=()=>{let[e,t]=(0,h.useState)(!1),r=(0,h.useRef)(null),a=()=>{t(e=>(e?(0,b.fY)(r.current):(0,b.mh)(r.current),!e))};return(0,h.useEffect)(()=>b.qY),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("button",{"aria-label":"Toggle Menu",onClick:a,className:"sm:hidden",children:(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"h-8 w-8 text-gray-900 hover:text-primary-500 dark:text-gray-100 dark:hover:text-primary-400 [.gradient_&]:hover:text-pink-500 dark:[.gradient_&]:hover:text-pink-400",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"})})}),(0,d.jsx)(f.e,{appear:!0,show:e,as:h.Fragment,unmount:!1,children:(0,d.jsxs)(y.lG,{as:"div",onClose:a,unmount:!1,children:[(0,d.jsx)(f.e.Child,{as:h.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",unmount:!1,children:(0,d.jsx)("div",{className:"fixed inset-0 z-60 bg-black/25"})}),(0,d.jsx)(f.e.Child,{as:h.Fragment,enter:"transition ease-in-out duration-300 transform",enterFrom:"translate-x-full opacity-0",enterTo:"translate-x-0 opacity-95",leave:"transition ease-in duration-200 transform",leaveFrom:"translate-x-0 opacity-95",leaveTo:"translate-x-full opacity-0",unmount:!1,children:(0,d.jsxs)(y.lG.Panel,{className:"fixed left-0 top-0 z-70 h-full w-full bg-white opacity-95 duration-300 dark:bg-gray-950 dark:opacity-[0.98]",children:[(0,d.jsx)("nav",{ref:r,className:"mt-8 flex h-full basis-0 flex-col items-start overflow-y-auto pl-12 pt-2 text-left",children:x.map(e=>(0,d.jsx)(v.A,{href:e.href,className:"mb-4 py-2 pr-4 text-2xl font-bold tracking-widest text-gray-900 outline outline-0 hover:text-primary-500 dark:text-gray-100 dark:hover:text-primary-400 [.gradient_&]:hover:text-pink-500 dark:[.gradient_&]:hover:text-pink-400",onClick:a,children:e.title},e.title))}),(0,d.jsx)("button",{className:"fixed right-4 top-7 z-80 h-16 w-16 p-4 text-gray-900 hover:text-primary-500 dark:text-gray-100 dark:hover:text-primary-400 [.gradient_&]:hover:text-pink-500 dark:[.gradient_&]:hover:text-pink-400","aria-label":"Toggle Menu",onClick:a,children:(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})})]})})]})};var k=r(35611),j=r(26804),_=r(82871);let N=()=>(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"group:hover:text-gray-100 h-6 w-6",children:(0,d.jsx)("path",{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",clipRule:"evenodd"})}),E=()=>(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"group:hover:text-gray-100 h-6 w-6",children:(0,d.jsx)("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"})}),z=()=>(0,d.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"group:hover:text-gray-100 h-6 w-6",children:[(0,d.jsx)("rect",{x:"3",y:"3",width:"14",height:"10",rx:"2",ry:"2"}),(0,d.jsx)("line",{x1:"7",y1:"17",x2:"13",y2:"17"}),(0,d.jsx)("line",{x1:"10",y1:"13",x2:"10",y2:"17"})]}),A=()=>(0,d.jsx)("svg",{className:"h-6 w-6"}),C=()=>{let[e,t]=(0,h.useState)(!1),{theme:r,setTheme:a,resolvedTheme:l}=(0,k.D)();return(0,h.useEffect)(()=>t(!0),[]),(0,d.jsx)("div",{className:"mr-5 flex items-center",children:(0,d.jsxs)(j.W1,{as:"div",className:"relative inline-block text-left",children:[(0,d.jsx)("div",{className:"flex items-center justify-center hover:text-primary-500 dark:hover:text-primary-400 [.gradient_&]:hover:text-pink-500 dark:[.gradient_&]:hover:text-pink-400",children:(0,d.jsx)(j.IU,{"aria-label":"Theme switcher",children:e?"gradient"===r?(0,d.jsx)(N,{}):"dark"===l?(0,d.jsx)(E,{}):(0,d.jsx)(N,{}):(0,d.jsx)(A,{})})}),(0,d.jsx)(f.e,{as:h.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,d.jsx)(j.c,{className:"absolute right-0 z-50 mt-2 w-32 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:bg-gray-800",children:(0,d.jsx)(_.z6,{value:r,onChange:a,children:(0,d.jsxs)("div",{className:"p-1",children:[(0,d.jsx)(_.sx,{value:"light",children:(0,d.jsx)(j.Dr,{children:e=>{let{focus:t}=e;return(0,d.jsxs)("button",{className:"".concat(t?"bg-primary-600 text-white [.gradient_&]:bg-pink-600":""," group flex w-full items-center rounded-md px-2 py-2 text-sm"),children:[(0,d.jsx)("div",{className:"mr-2",children:(0,d.jsx)(N,{})}),"Light"]})}})}),(0,d.jsx)(_.sx,{value:"dark",children:(0,d.jsx)(j.Dr,{children:e=>{let{focus:t}=e;return(0,d.jsxs)("button",{className:"".concat(t?"bg-primary-600 text-white [.gradient_&]:bg-pink-600":""," group flex w-full items-center rounded-md px-2 py-2 text-sm"),children:[(0,d.jsx)("div",{className:"mr-2",children:(0,d.jsx)(E,{})}),"Dark"]}
1)}})}),(0,d.jsx)(_.sx,{value:"system",children:(0,d.jsx)(j.Dr,{children:e=>{let{focus:t}=e;return(0,d.jsxs)("button",{className:"".concat(t?"bg-primary-600 text-white [.gradient_&]:bg-pink-600":""," group flex w-full items-center rounded-md px-2 py-2 text-sm"),children:[(0,d.jsx)("div",{className:"mr-2",children:(0,d.jsx)(z,{})}),"System"]})}})}),(0,d.jsx)(_.sx,{value:"gradient",children:(0,d.jsx)(j.Dr,{children:e=>{let{focus:t}=e;return(0,d.jsxs)("button",{className:"".concat(t?"bg-primary-600 text-white [.gradient_&]:bg-pink-600":""," group flex w-full items-center rounded-md px-2 py-2 text-sm"),children:[(0,d.jsx)("div",{className:"mr-2",children:(0,d.jsx)(N,{})}),"Gradient"]})}})})]})})})})]})})};var M=r(38001),T=r(32076);let P=()=>{if(m().search&&("algolia"===m().search.provider||"kbar"===m().search.provider)){let e="algolia"===m().search.provider?M.U:T.Z;return(0,d.jsx)(e,{"aria-label":"Search",children:(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6 text-gray-900 hover:text-primary-500 dark:text-gray-100 dark:hover:text-primary-400 [.gradient_&]:hover:text-pink-500 dark:[.gradient_&]:hover:text-pink-400",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})})})}},L=()=>{let[e,t]=(0,h.useState)(!1);(0,h.useEffect)(()=>{let e=()=>{t(window.scrollY>10)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let r="flex items-center w-full justify-between py-4 transition-all duration-300 ".concat(m().stickyNav?"sticky top-0 z-50":""," ").concat(e?"bg-white/80 backdrop-blur-lg shadow-lg dark:bg-gray-950/80 [.gradient_&]:bg-white/60 dark:[.gradient_&]:bg-gray-950/60":"bg-white dark:bg-gray-950 [.gradient_&]:bg-transparent dark:[.gradient_&]:bg-transparent");return(0,d.jsxs)("header",{className:r,children:[(0,d.jsx)(v.A,{href:"/","aria-label":m().headerTitle,children:(0,d.jsxs)("div",{className:"group flex items-center justify-between",children:[(0,d.jsx)("div",{className:"mr-3 transition-transform duration-300 group-hover:scale-110",children:(0,d.jsx)(p,{className:"h-10 w-10"})}),"string"==typeof m().headerTitle?(0,d.jsx)("div",{className:"hidden bg-gradient-to-r from-gray-900 to-gray-600 bg-clip-text text-2xl font-bold text-transparent transition-all duration-300 group-hover:from-cyan-600 group-hover:to-blue-600 dark:from-white dark:to-gray-300 dark:group-hover:from-cyan-400 dark:group-hover:to-blue-400 sm:block [.gradient_&]:group-hover:from-pink-400 [.gradient_&]:group-hover:to-rose-400",children:m().headerTitle}):m().headerTitle]})}),(0,d.jsxs)("div",{className:"flex items-center space-x-3 leading-5 sm:space-x-5",children:[(0,d.jsx)("nav",{className:"no-scrollbar hidden max-w-40 items-center space-x-1 overflow-x-auto sm:flex md:max-w-72 lg:max-w-96",children:x.filter(e=>"/"!==e.href).map(e=>(0,d.jsx)(v.A,{href:e.href,className:"relative rounded-lg px-3 py-2 font-medium text-gray-700 transition-all duration-300 hover:bg-gray-100 hover:text-cyan-600 dark:text-gray-200 dark:hover:bg-gray-800 dark:hover:text-cyan-400 [.gradient_&]:hover:text-pink-500",children:e.title},e.title))}),(0,d.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,d.jsx)(P,{}),(0,d.jsx)(C,{}),(0,d.jsx)(w,{})]})]})]})}},74312:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(95155),l=r(48173),s=r.n(l);let n=e=>{let{href:t,...r}=e,l=t&&t.startsWith("/"),n=t&&t.startsWith("#");return l?(0,a.jsx)(s(),{className:"break-words",href:t,...r}):n?(0,a.jsx)("a",{className:"break-words",href:t,...r}):(0,a.jsx)("a",{className:"break-words",target:"_blank",rel:"noopener noreferrer",href:t,...r})}},91777:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var a=r(95155),l=r(12115);function s(){let[e,t]=(0,l.useState)(0);return(0,l.useEffect)(()=>{let e=()=>{let e=window.scrollY,r=document.documentElement.scrollHeight-window.innerHeight;t(Math.min(100,Math.max(0,r>0?e/r*100:0)))};return window.addEventListener("scroll",e,{passive:!0}
1),e(),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsx)("div",{className:"fixed left-0 top-0 z-50 h-1 w-full bg-gray-200 dark:bg-gray-800",children:(0,a.jsx)("div",{className:"h-full bg-gradient-to-r from-cyan-500 via-blue-500 to-purple-500 transition-all duration-150 ease-out [.gradient_&]:from-pink-500 [.gradient_&]:via-rose-400 [.gradient_&]:to-purple-500",style:{width:"".concat(e,"%")}})})}},81466:(e,t,r)=>{"use strict";var a=r(2818);let l={title:"Allen's Blog",author:"Allen Wang",headerTitle:"Allen's Blog",description:"The purpose of this blog is to share his insights and experiences in the field of technology, programming, and personal thoughts.",language:"en-us",theme:"gradient",siteUrl:"https://allenblog.icu",siteRepo:"https://github.com/kkkano/allen_blog",siteLogo:"".concat(a.env.BASE_PATH||"","/static/images/logo.png"),socialBanner:"".concat(a.env.BASE_PATH||"","/static/images/twitter-card.png"),email:"[email protected]",github:"https://github.com/kkkano",linkedin:"https://www.linkedin.com/in/AllenWangQWQ/",locale:"en-US",stickyNav:!1,analytics:{umamiAnalytics:{umamiWebsiteId:a.env.NEXT_UMAMI_ID}},newsletter:{provider:"buttondown",buttondownUsername:"carsonmalcolm253631"},comments:{provider:"giscus",giscusConfig:{repo:"kkkano/allen_blog",repositoryId:"R_kgDONxOD7A",category:"General",categoryId:"DIC_kwDONxOD7M4CmjqM",mapping:"url",strict:"0",reactionsEnabled:"1",emitMetadata:"0",inputPosition:"bottom",theme:"light",lang:"en"}},search:{provider:"kbar",kbarConfig:{searchDocumentsPath:"".concat(a.env.BASE_PATH||"","/search.json")}}};e.exports=l},40628:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[701,3498,2545,8173,9053,8441,1517,7358],()=>t(84122)),_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.