1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9925],{99388:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},41905:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},73247:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},18930:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},64954:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(57437);r(2265);var o=r(93448),i=r(51028);function s(e){let{title:t,description:r,action:s,badge:a,size:l="md",className:c="",iconSize:d,animate:u=!0}=e,f="sm"===l,m="lg"===l;return(0,n.jsxs)("div",{className:(0,o.cn)("group relative flex flex-col items-center justify-center text-center select-none",f?"py-8 px-4":m?"py-20 px-8":"py-16 px-6",c),children:[a&&(0,n.jsx)("span",{className:"mb-3.5 inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-zinc-100 dark:bg-white/[0.06] text-zinc-600 dark:text-zinc-300 border border-zinc-200/80 dark:border-white/10",children:a}),(0,n.jsx)("div",{className:(0,o.cn)("relative flex items-center justify-center transition-transform duration-300 ease-out",u&&"group-hover:scale-105",f?"mb-3":m?"mb-5":"mb-4"),children:(0,n.jsx)(i.w,{size:null!=d?d:f?48:m?80:64,showGlow:!1})}),(0,n.jsx)("h3",{className:(0,o.cn)("font-bold text-zinc-800 dark:text-zinc-100 tracking-tight",f?"text-sm":m?"text-[20px]":"text-base"),children:t}),r&&(0,n.jsx)("div",{className:(0,o.cn)("text-zinc-500 dark:text-zinc-400 font-normal leading-relaxed",f?"text-xs mt-1.5 max-w-xs":m?"text-[14px] mt-2 max-w-lg":"text-[13px] mt-1.5 max-w-md"),children:r}),s&&(0,n.jsx)("div",{className:(0,o.cn)("flex items-center justify-center",f?"mt-4":"mt-6"),children:s})]})}},51028:function(e,t,r){r.d(t,{w:function(){return i}});var n=r(57437),o=r(2265);function i(e){let{size:t=64,accentColor:r="#d97757",showGlow:i=!0,className:s="",...a}=e,l=o.useId(),c=o.useId();return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 430 430",fill:"none",className:s,...a,children:[(0,n.jsxs)("defs",{children:[(0,n.jsxs)("linearGradient",{id:c,x1:"90",y1:"90",x2:"300",y2:"300",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:r,stopOpacity:"0.15"}),(0,n.jsx)("stop",{offset:"50%",stopColor:"#38bdf8",stopOpacity:"0.08"}),(0,n.jsx)("stop",{offset:"100%",stopColor:r,stopOpacity:"0.03"})]}),i&&(0,n.jsx)("filter",{id:l,x:"-20%",y:"-20%",width:"140%",height:"140%",children:(0,n.jsx)("feDropShadow",{dx:"0",dy:"4",stdDeviation:"8",floodColor:r,floodOpacity:"0.25"})})]}),(0,n.jsxs)("g",{strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"14",children:[(0,n.jsx)("circle",{cx:"191",cy:"192",r:"102",fill:"url(#".concat(c,")"),className:"transition-colors duration-300"}),(0,n.jsx)("path",{className:"stroke-zinc-700 dark:stroke-zinc-200 transition-colors duration-200",strokeWidth:"13",d:"M293.7 89.4c56.7 56.7 56.7 148.6 0 205.3s-148.6 56.7-205.3 0-56.7-148.7 0-205.3 148.6-56.7 205.3 0"}),(0,n.jsx)("path",{stroke:r,strokeWidth:"13",d:"M82.1 147.5c5.7-14.1 14.2-27.3 25.7-38.7 13.7-13.7 29.9-23.2 47.1-28.7",filter:i?"url(#".concat(l,")"):void 0}),(0,n.jsx)("path",{className:"stroke-zinc-700 dark:stroke-zinc-200 transition-colors duration-200",strokeWidth:"15",d:"m296.1 296.6 88 86.5"})]})]})}},43232:function(e,t,r){r.d(t,{O:function(){return o}});var n=r(57437);let o=e=>{let{size:t=32,className:r="",strokeWidth:o=1.9}=e;return(0,n.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:o,strokeLinecap:"square",strokeLinejoin:"miter",className:r,children:(0,n.jsx)("path",{d:"M12 7 L17 12 L12 17 L7 12 Z"})})}},53834:function(e,t,r){r.d(t,{W:function(){return l}});var n=r(57437),o=r(29),i=r.n(o),s=r(93448),a=r(43232);let l=e=>{let{size:t=32,speed:r=1.5,className:o="",withPulse:l=!1}=e;return(0,n.jsxs)("div",{style:{animation:"spin ".concat(r,"s linear infinite").concat(l?", pulse 2s ease-in-out infinite":"")},className:"jsx-ba9b38e61bef3f8b "+((0,s.cn)("inline-flex items-center justify-center",o)||""),children:[(0,n.jsx)(a.O,{size:t}),(0,n.jsx)(i(),{id:"ba9b38e61bef3f8b",children:"@-webkit-keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spin{from{-moz-transform:rotate(0deg);transform:rotate(0deg)}to{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spin{from{-o-transform:rotate(0deg);transform:rotate(0deg)}to{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{from{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}@-moz-keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}@-o-keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}"})]})}},21751:function(e,t,r){r.d(t,{jM:function(){return l},nD:function(){return a},rr:function(){return c}});var n=r(57437),o=r(2265),i=r(21652);let s=(0,o.createContext)(void 0);function a(e){let{children:t}=e,[r,a]=(0,o.useState)(null),l=(0,o.useRef)(()=>{}),c=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=()=>{c.current&&(c.current=!1,l.current())};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let d=(0,o.useCallback)((e,t)=>{l.current=t;let r=(0,i.UM)();if(null!==e){let e=window.history.state||{},t=c.current||!!(e&&e.isMobileSubHeader);r&&!t?(window.history.pushState({...e,isMobileSubHeader:!0},""),c.current=!0):t&&(c.current=!0)}else c.current=!1;a(t=>t===e?t:e)},[]),u=(0,o.useCallback)(()=>{c.current&&(c.current=!1,window.history.back()),l.current()},[]),f=(0,o.useMemo)(()=>({subHeaderTitle:r,goBackFromSubHeader:u,registerSubHeader:d}),[r,u,d]);return(0,n.jsx)(s.Provider,{value:f,children:t})}function l(){var e,t;let r=(0,o.useContext)(s);return{subHeaderTitle:null!==(e=null==r?void 0:r.subHeaderTitle)&&void 0!==e?e:null,goBackFromSubHeader:null!==(t=null==r?void 0:r.goBackFromSubHeader)&&void 0!==t?t:()=>{}}}function c(e,t){let r=(0,o.useContext)(s),n=null==r?void 0:r.registerSubHeader,i=(0,o.useRef)(t);(0,o.useEffect)(()=>{i.current=t},[t]),(0,o.useEffect)(()=>{n&&n(e,()=>i.current())},[n,e]),(0,o.useEffect)(()=>()=>{null==n||n(null,()=>{})},[n])}},58819:function(e,t,r){r.d(t,{d:function(){return i}});var n=r(2265),o=r(21652);
1function i(){let[e,t]=(0,n.useState)(()=>(0,o.UM)());return(0,n.useEffect)(()=>{let e=()=>t((0,o.UM)());e(),window.addEventListener("resize",e),window.addEventListener("orientationchange",e);let r="function"==typeof window.matchMedia?window.matchMedia(o.RS):null;return(null==r?void 0:r.addEventListener)?r.addEventListener("change",e):null==r||r.addListener(e),()=>{window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e),(null==r?void 0:r.removeEventListener)?r.removeEventListener("change",e):null==r||r.removeListener(e)}},[]),e}},86267:function(e,t,r){r.d(t,{X:function(){return s}});var n=r(3011),o=r(89134),i=r(83008);let s=(0,n.U)()((0,o.tJ)((e,t)=>({linkedNotes:[],targetNoteId:null,isLoaded:!1,syncWithDB:async()=>{if(!t().isLoaded){console.warn("[workNoteShortcut] ìë²ìì ìì§ ë¶ë¬ì¤ì§ ëª»í´ ì ì¥ì ë³´ë¥í©ëë¤.");return}let{linkedNotes:e}=t();try{await (0,i.X)("saveWorkNoteShortcut",{linkedNotes:e},{user:{id:"",name:"",role:""}})}catch(e){console.error("Failed to sync work note shortcuts with DB:",e)}},loadFromDB:async()=>{try{let o=await (0,i.X)("getWorkNoteShortcut",{},{user:{id:"",name:"",role:""}});if(o.success){var r,n;e({linkedNotes:null!==(n=null===(r=o.data)||void 0===r?void 0:r.linkedNotes)&&void 0!==n?n:t().linkedNotes,isLoaded:!0})}else console.warn("[workNoteShortcut] ë¶ë¬ì¤ê¸° ì¤í¨, ì´ ê¸°ê¸° ë°ì´í°ë¥¼ ì ì§í©ëë¤.")}catch(e){console.error("Failed to load work note shortcuts from DB:",e)}},addLinkedNote:(r,n)=>{e(e=>e.linkedNotes.some(e=>e.id===r)?e:{linkedNotes:[...e.linkedNotes,{id:r,title:n}]}),t().syncWithDB()},removeLinkedNote:r=>{e(e=>({linkedNotes:e.linkedNotes.filter(e=>e.id!==r)})),t().syncWithDB()},setTargetNoteId:t=>e({targetNoteId:t}),clearTargetNoteId:()=>e({targetNoteId:null}),clear:()=>e({linkedNotes:[],targetNoteId:null,isLoaded:!1})}),{name:"work-note-shortcut-v2",partialize:e=>({linkedNotes:e.linkedNotes})}))},89134:function(e,t,r){r.d(t,{tJ:function(){return o}});let n=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>n(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>n(t)(e)}}},o=(e,t)=>(r,o,i)=>{let s,a={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var t;let n=e=>null===e?null:JSON.parse(e,void 0),o=null!=(t=r.getItem(e))?t:null;return o instanceof Promise?o.then(n):n(o)},setItem:(e,t)=>r.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>r.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,c=0,d=new Set,u=new Set,f=a.storage;if(!f)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)},o,i);let m=()=>{let e=a.partialize({...o()});return f.setItem(a.name,{state:e,version:a.version})},h=i.setState;i.setState=(e,t)=>(h(e,t),m());let y=e((...e)=>(r(...e),m()),o,i);i.getInitialState=()=>y;let k=()=>{var e,t;if(!f)return;let i=++c;l=!1,d.forEach(e=>{var t;return e(null!=(t=o())?t:y)});let h=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=o())?e:y))||void 0;return n(f.getItem.bind(f))(a.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return[!1,e.state];if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(i!==c)return;let[n,l]=e;if(r(s=a.merge(l,null!=(t=o())?t:y),!0),n)return m()}).then(()=>{i===c&&(null==h||h(s,void 0),s=o(),l=!0,u.forEach(e=>e(s)))}).catch(e=>{i===c&&(null==h||h(void 0,e))})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(f=e.storage)},clearStorage:()=>{null==f||f.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>k(),hasHydrated:()=>l,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},a.skipHydration||k(),s||y}},3011:function(e,t,r){r.d(t,{U:function(){return l}});var n=r(2265);let o=e=>{let t;let r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,i={setState:n,getState:o,getInitialState:()=>s,subscribe:e=>(r.add(e),()=>r.delete(e))},s=t=e(n,o,i);return i},i=e=>e?o(e):o,s=e=>e,a=e=>{let t=i(e),r=e=>(function(e,t=s){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},l=e=>e?a(e):a}}]);
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.