PageSourceSearch

https://www.wyattworks.ai/_next/static/chunks/0qer8u5as_p6b.js?dpl=dpl_6behjDta9ipsu7VwPwFScP3xXxh2

js wyattworks.ai collected 2026-10-05 13:23:55 UTC 27,036 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c529fa5e-1397-6005-5260-9369b355c72c")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,408374,e=>{"use strict";var t=e.i(982472),a=e.i(479800),n=e.i(304836);e.s(["useValueChanged",0,function(e,r){let i=t.useRef(e),o=(0,n.useStableCallback)(r);(0,a.useIsoLayoutEffect)(()=>{i.current!==e&&o(i.current)},[e,o]),(0,a.useIsoLayoutEffect)(()=>{i.current=e},[e])}])},480606,e=>{"use strict";var t=e.i(405680),a=e.i(484272);e.s(["Skeleton",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,a.cn)("bg-muted rounded-md animate-pulse",e),...n})}])},593865,e=>{"use strict";var t=e.i(405680),a=e.i(294237),n=e.i(484272);let r=(0,a.cva)("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden group/badge",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-muted-foreground underline-offset-4 hover:text-primary hover:underline transition-colors"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:a="default",...i}){return(0,t.jsx)("span",{"data-slot":"badge",className:(0,n.cn)(r({className:e,variant:a})),...i})}])},487122,511518,e=>{"use strict";let t=Symbol.for("constructDateFrom");e.s(["constructFromSymbol",0,t,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200],511518),e.s(["constructFrom",0,function(e,a){return"function"==typeof e?e(a):e&&"object"==typeof e&&t in e?e[t](a):e instanceof Date?new e.constructor(a):new Date(a)}],487122)},632713,516467,539392,731285,e=>{"use strict";var t=e.i(487122);function a(e,a){return(0,t.constructFrom)(a||e,e)}function n(e,...a){let r=t.constructFrom.bind(null,e||a.find(e=>"object"==typeof e));return a.map(r)}e.s(["toDate",0,a],516467),e.s(["getTimezoneOffsetInMilliseconds",0,function(e){let t=a(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}],632713),e.s(["normalizeDates",0,n],539392),e.s(["differenceInCalendarMonths",0,function(e,t,a){let[r,i]=n(a?.in,e,t);return 12*(r.getFullYear()-i.getFullYear())+(r.getMonth()-i.getMonth())}],731285)},492421,e=>{"use strict";let t={};e.s(["getDefaultOptions",0,function(){return t}])},936765,e=>{"use strict";var t=e.i(516467);e.s(["endOfMonth",0,function(e,a){let n=(0,t.toDate)(e,a?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}])},238153,244874,e=>{"use strict";var t;let a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function n(e){return (t={})=>{let a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}let r={date:n({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:n({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:n({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function o(e){return(t,a)=>{let n;if("formatting"===(a?.context?String(a.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=a?.width?String(a.width):t;n=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=a?.width?String(a.width):e.defaultWidth;n=e.values[r]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function s(e){return(t,a={})=>{let n,r=a.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;let s=o[0],d=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(d)?function(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}(d,e=>e.test(s)):function(e,t){for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}(d,e=>e.test(s));return n=e.valueCallback?e.valueCallback(l):l,{value:n=a.valueCallback?a.valueCallback(n):n,rest:t.slice(s.length)}}}let d={code:"en-US",formatDistance:(e,t,n)=>{let r,i=a[e];if(r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix)if(n.comparison&&n.comparison>0)return"in "+r;else return r+" ago";return r},formatLong:r,formatRelative:(e,t,a,n)=>i[e],localize:{ordinalNumber:(e,t)=>{let a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";
2case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:o({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:o({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:o({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:o({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:o({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(t={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,a={})=>{let n=e.match(t.matchPattern);if(!n)return null;let r=n[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];return{value:o=a.valueCallback?a.valueCallback(o):o,rest:e.slice(r.length)}}),era:s({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:s({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:s({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:s({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:s({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};e.s(["enUS",0,d],244874),e.s(["defaultLocale",0,d],238153)},23700,e=>{"use strict";var t=e.i(982472);e.s(["useIsMobile",0,function(){let[e,a]=t.useState(void 0);return t.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),t=()=>{a(window.innerWidth<768)};return e.addEventListener("change",t),a(window.innerWidth<768),()=>e.removeEventListener("change",t)},[]),!!e}])},697196,e=>{"use strict";let t=["block-selection","docs"],a=new Map,n=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]);function r(e){if("u"<typeof Element||!(e instanceof Element))return!1;if(e.closest('textarea, select, [role="textbox"], [data-hotkeys-editable="true"]'))return!0;let t=e.closest("[contenteditable]");if(t)return t.getAttribute("contenteditable")?.toLowerCase()!=="false";let a=e.closest("input");return!("u"<typeof HTMLInputElement)&&a instanceof HTMLInputElement&&!n.has(a.type.toLowerCase())}e.s(["WYATT_HOTKEY_REGISTRY",0,{commandPalette:{id:"commandPalette",hotkey:"Mod+K",description:"Open command palette",scope:"global"},docsSearch:{id:"docsSearch",hotkey:"Mod+K",description:"Search documentation",scope:"docs"}},"activateWyattHotkeyScope",0,function(e){return"global"===e?()=>{}:(a.set(e,(a.get(e)??0)+1),()=>{let t=(a.get(e)??0)-1;t>0?a.set(e,t):a.delete(e)})},"isEditableHotkeyTarget",0,r,"shouldRunWyattHotkey",0,function(e,n={}){return!(!("function"==typeof n.enabled?n.enabled():n.enabled??!0)||!function(e="global"){return function(){for(let e of t)if((a.get(e)??0)>0)return e;return"global"}()===e}(n.scope)||!n.allowInEditable&&r(e.target))}])},287680,e=>{"use strict";var t=e.i(405680),a=e.i(982472);e.i(478539);var n=e.i(495238),r=e.i(623128);e.i(253650);var i=e.i(187177);let o=(0,a.createContext)(null);e.s(["ConversationsProvider",0,function({children:e,enabled:s=!0}){let{user:d}=(0,n.useAuth)(),{workspaceId:l,isLoading:u}=(0,r.useActiveWorkspace)(),c=l?String(l):null,[m,f]=(0,a.useState)(null),[h,g]=(0,a.useState)(null),[b,p]=(0,a.useState)({}),v=(0,i.useConversationList)(l,d?.id,{enabled:s}),y=h??c,w=(0,i.useConversation)(m,y,{enabled:s||null!==m}),x=(0,i.useCreateConversation)(),S=(0,i.useUpdateConversation)(),k=(0,i.useDeleteConversation)(),M=(0,a.useCallback)((e,t=l)=>({id:e.id,title:e.title??null,workspaceId:t?String(t):"",userId:d?.id??"",contextType:e.context_type??null,parentId:e.parent_id??null,visibility:e.visibility??"sidebar",isAiProcessing:e.is_ai_processing??!1,createdAt:e.created_at,updatedAt:e.updated_at}),[l,d?.id]),C=(0,a.useMemo)(()=>(v.data??[]).map(e=>M(e)),[v.data,M]);(0,a.useEffect)(()=>
2{if(0===C.length)return;let e=new Set(C.map(e=>e.id));queueMicrotask(()=>{p(t=>{let a=Object.fromEntries(Object.entries(t).filter(([t])=>!e.has(t)));return Object.keys(a).length===Object.keys(t).length?t:a})})},[C]),(0,a.useEffect)(()=>{let e=Object.entries(b);if(0===e.length)return;let t=Date.now(),a=Math.max(0,Math.min(...e.map(([,e])=>e.expiresAt))-t),n=window.setTimeout(()=>{p(e=>{let t=Date.now(),a=Object.fromEntries(Object.entries(e).filter(([,e])=>e.expiresAt>t));return Object.keys(a).length===Object.keys(e).length?e:a})},a);return()=>window.clearTimeout(n)},[b]);let j=(0,a.useMemo)(()=>{let e=new Set(C.map(e=>e.id));return[...Object.values(b).filter(({conversation:t})=>!e.has(t.id)&&(!c||t.workspaceId===c)).map(({conversation:e})=>e),...C]},[C,b,c]),E=(0,a.useMemo)(()=>w.data&&m&&y&&w.data.id===m?M(w.data,y):null,[m,w.data,M,y]),I=(0,a.useMemo)(()=>E||(m?j.find(e=>e.id===m)??null:null),[j,m,E]),P=s&&(u||v.isPending),W=P||null!==m&&w.isLoading,N=v.error instanceof Error?v.error.message:w.error instanceof Error?w.error.message:null,T=v.error instanceof Error?v.error.message:null,A=(0,a.useCallback)(async(e,t)=>{let a=t?.workspaceId??l;if(!d||!a)return null;let n=String(a);try{let a=await x.mutateAsync({workspaceId:n,title:e,context_type:t?.contextType??void 0,context_id:t?.contextId,model:t?.model,system_prompt:t?.systemPrompt}),r=M(a.data,n);return p(e=>({...e,[r.id]:{conversation:r,expiresAt:Date.now()+3e4}})),f(r.id),g(n),r}catch(e){throw console.error("[Conversations] Failed to create conversation",e),e}},[x,M,d,l]),O=(0,a.useCallback)(e=>{let t=String(e);return j.find(e=>e.id===t)??(E?.id===t?E:void 0)},[j,E]),D=(0,a.useCallback)(async(e,t)=>{f(String(e)),g(null==t?null:String(t))},[]),F=(0,a.useCallback)(async(e,t)=>{l&&await S.mutateAsync({id:String(e),workspaceId:String(l),title:t.title})},[S,l]),z=(0,a.useCallback)(async e=>{l&&(await k.mutateAsync({id:String(e),workspaceId:String(l)}),p(t=>{if(!t[String(e)])return t;let a={...t};return delete a[String(e)],a}),m===String(e)&&(f(null),g(null)))},[m,k,l]),L=(0,a.useCallback)(()=>{f(null),g(null)},[]);return(0,t.jsx)(o.Provider,{value:{conversations:j,currentConversation:I,isLoading:W,isConversationListLoading:P,isConversationListEnabled:s,conversationListError:T,error:N,createConversation:A,getConversation:O,loadConversation:D,updateConversation:F,deleteConversation:z,clearCurrentConversation:L,refetch:async()=>{s&&(await v.refetch(),m&&await w.refetch())}},children:e})},"useConversations",0,function(){let e=(0,a.useContext)(o);if(!e)throw Error("useConversations must be used within a ConversationsProvider");return e}])},837849,e=>{"use strict";var t=e.i(909826);e.s(["useRender",0,function(e){return(0,t.useRenderElement)(e.defaultTagName??"div",e,e)}])},647875,e=>{"use strict";var t=e.i(405680),a=e.i(982472);e.i(28223),e.i(837849);var n=e.i(294237),r=e.i(484272),i=e.i(35259),o=e.i(174467);e.i(701946),e.i(958709);var s=e.i(461602);e.i(480606),e.i(949078);var d=e.i(23700),l=e.i(60446),u=e.i(697196);let c="sidebar_width",m="--sidebar-width-init";JSON.stringify(c),JSON.stringify(m);let f=a.createContext(null);function h(){let e=a.useContext(f);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}function g({side:e,isResizing:a,onResizeStart:n}){return(0,t.jsx)("div",{onMouseDown:e=>{e.preventDefault(),n()},"data-resizing":a,className:(0,r.cn)("absolute top-0 bottom-0 w-1 cursor-col-resize z-20","hover:bg-primary/20 data-[resizing=true]:bg-primary/30","transition-colors","left"===e?"-right-0.5":"-left-0.5")})}(0,n.cva)("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground gap-2 rounded-md p-2 text-left text-sm transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 data-active:font-medium peer/menu-button flex w-full items-center overflow-hidden outline-hidden group/menu-button disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-7 text-sm",sm:"h-6 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),e.s(["Sidebar",0,function({side:e="left",variant:n="sidebar",collapsible:i="offExamples",className:o,children:d,...l}
2){let{isMobile:u,state:c,openMobile:m,setOpenMobile:f,setSidebarWidth:b}=h(),[p,v]=a.useState(!1);return(a.useEffect(()=>{if(!p)return;let t=t=>{b("left"===e?t.clientX:window.innerWidth-t.clientX)},a=()=>v(!1);return document.body.style.userSelect="none",document.body.style.cursor="col-resize",document.addEventListener("mousemove",t),document.addEventListener("mouseup",a),()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",a)}},[p,b,e]),"none"===i)?(0,t.jsx)("div",{"data-slot":"sidebar",className:(0,r.cn)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),...l,children:d}):u?(0,t.jsx)(s.Sheet,{open:m,onOpenChange:f,...l,children:(0,t.jsxs)(s.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,t.jsxs)(s.SheetHeader,{className:"sr-only",children:[(0,t.jsx)(s.SheetTitle,{children:"Sidebar"}),(0,t.jsx)(s.SheetDescription,{children:"Displays the mobile sidebar."})]}),(0,t.jsx)("div",{className:"flex h-full w-full flex-col",children:d})]})}):(0,t.jsxs)("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":c,"data-collapsible":"collapsed"===c?i:"","data-variant":n,"data-side":e,"data-slot":"sidebar",children:[(0,t.jsx)("div",{"data-slot":"sidebar-gap",className:(0,r.cn)("relative w-(--sidebar-width) bg-transparent",!p&&"group-data-[width-ready=true]/sidebar-wrapper:transition-[width] group-data-[width-ready=true]/sidebar-wrapper:duration-200 group-data-[width-ready=true]/sidebar-wrapper:ease-linear","group-data-[collapsible=offExamples]:w-0","group-data-[side=right]:rotate-180","floating"===n||"inset"===n?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,t.jsxs)("div",{"data-slot":"sidebar-container",className:(0,r.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) md:flex",!p&&"group-data-[width-ready=true]/sidebar-wrapper:transition-[left,right,width] group-data-[width-ready=true]/sidebar-wrapper:duration-200 group-data-[width-ready=true]/sidebar-wrapper:ease-linear","left"===e?"left-0 group-data-[collapsible=offExamples]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offExamples]:right-[calc(var(--sidebar-width)*-1)]","floating"===n||"inset"===n?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...l,children:[(0,t.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:ring-border/50 group-data-[variant=floating]:rounded-2xl group-data-[variant=floating]:ring-1 flex size-full flex-col",children:d}),"expanded"===c&&(0,t.jsx)(g,{side:e,isResizing:p,onResizeStart:()=>v(!0)})]})]})},"SidebarContent",0,function({className:e,...n}){let o=a.useRef(null),{state:s}=h();return a.useEffect(()=>{let e=o.current;e&&("expanded"===s?i.default.to(e,{opacity:1,duration:.2,ease:"power2.out",delay:.1}):i.default.to(e,{opacity:.5,duration:.15,ease:"power2.in"}))},[s]),(0,t.jsx)("div",{ref:o,"data-slot":"sidebar-content","data-sidebar":"content",className:(0,r.cn)("no-scrollbar gap-0 flex min-h-0 flex-1 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n})},"SidebarFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,r.cn)("gap-2 p-2 flex flex-col",e),...a})},"SidebarGroup",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,r.cn)("px-2 py-1 relative flex w-full min-w-0 flex-col",e),...a})},"SidebarGroupContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:(0,r.cn)("text-sm w-full",e),...a})},"SidebarHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,r.cn)("gap-2 p-2 flex flex-col",e),...a})},"SidebarInset",0,function({className:e,...n}){let o=a.useRef(null);return a.useEffect(()=>{let e=o.current;e&&i.default.fromTo(e,{opacity:0}
2,{opacity:1,duration:.3,ease:"power2.out"})},[]),(0,t.jsx)("main",{ref:o,"data-slot":"sidebar-inset",className:(0,r.cn)("bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-2xl md:peer-data-[variant=inset]:ring-1 md:peer-data-[variant=inset]:ring-border/50 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 relative flex w-full flex-1 flex-col min-h-0 overflow-hidden",e),...n})},"SidebarMenu",0,function({className:e,...a}){return(0,t.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,r.cn)("gap-0 flex w-full min-w-0 flex-col",e),...a})},"SidebarMenuItem",0,function({className:e,...a}){return(0,t.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,r.cn)("group/menu-item relative",e),...a})},"SidebarProvider",0,function({defaultOpen:e=!0,open:n,onOpenChange:i,className:o,style:s,children:l,...h}){let g=(0,d.useIsMobile)(),[b,p]=a.useState(!1),[v,y]=a.useState(288),[w,x]=a.useState(!1);a.useLayoutEffect(()=>{let e=function(e){if(!e)return null;let t=Number.parseInt(e,10);return!Number.isFinite(t)||t<200||t>480?null:t}(localStorage.getItem(c));null!=e&&y(e),x(!0)},[]);let S=a.useCallback(e=>{let t=Math.max(200,Math.min(480,e));y(t),localStorage.setItem(c,String(t))},[]),[k,M]=a.useState(e),C=n??k,j=a.useCallback(e=>{let t="function"==typeof e?e(C):e;i?i(t):M(t),document.cookie=`sidebar_state=${t}; path=/; max-age=604800`},[i,C]),E=a.useCallback(()=>g?p(e=>!e):j(e=>!e),[g,j,p]);a.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&!(0,u.isEditableHotkeyTarget)(e.target)&&(e.preventDefault(),E())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[E]);let I=C?"expanded":"collapsed",P=a.useMemo(()=>({state:I,open:C,setOpen:j,isMobile:g,openMobile:b,setOpenMobile:p,toggleSidebar:E,sidebarWidth:v,setSidebarWidth:S}),[I,C,j,g,b,p,E,v,S]);return(0,t.jsx)(f.Provider,{value:P,children:(0,t.jsx)("div",{"data-slot":"sidebar-wrapper","data-width-ready":w?"true":"false",style:{"--sidebar-width":w?`${v}px`:`var(${m}, 288px)`,"--sidebar-width-icon":"3rem",...s},className:(0,r.cn)("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-svh w-full overflow-hidden",o),...h,children:l})})},"SidebarTrigger",0,function({className:e,onClick:a,...n}){let{toggleSidebar:i,open:s}=h();return(0,t.jsxs)(o.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:(0,r.cn)(e),onClick:e=>{a?.(e),i()},...n,children:[(0,t.jsx)(l.PanelLeft,{className:"transition-transform"}),(0,t.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})},"useOptionalSidebar",0,function(){return a.useContext(f)},"useSidebar",0,h],647875)},679848,e=>{"use strict";var t=e.i(19433),a=e.i(999e3);let n=["sidebar","search","link","recent","notification"],r=["sidebar","search","link","notification"],i="wyatt.analytics.entity-open-source";function o(e){try{return decodeURIComponent(e)}catch{return null}}function s(e){let a;try{let t=window.location.origin;if((a=new URL(e,t)).origin!==t)return null}catch{return null}let n=(0,t.parseEntityPath)(a.pathname);if(!n||"document"!==n.type&&"pdf"!==n.type&&"conversation"!==n.type)return null;let r=o(n.entityId);if(!r)return null;let i=a.pathname.match(/^\/workspaces\/([^/]+)\//),s=i?o(i[1]??""):null;return i&&!s?null:{type:n.type,entityId:r,workspaceId:s}}function d(e,t,a){let r=s(e),o=function(){try{var e;let t=window.sessionStorage.getItem(i);if(window.sessionStorage.removeItem(i),!t)return null;let a=JSON.parse(t);if("document"!==a.type&&"pdf"!==a.type&&"conversation"!==a.type||"string"!=typeof a.entity
2Id||null!==a.workspaceId&&"string"!=typeof a.workspaceId||(e=a.source,!("string"==typeof e&&n.includes(e)))||"number"!=typeof a.recordedAt)return null;return a}catch{return null}}();if(!r||!o)return"link";let d=a()-o.recordedAt;return d<0||d>6e4||o.type!==r.type||o.entityId!==r.entityId||o.workspaceId&&r.workspaceId&&o.workspaceId!==r.workspaceId||!t.includes(o.source)?"link":o.source}e.s(["consumeConversationOpenSource",0,function(e,t=Date.now){return d(e,r,t)},"consumeEntityOpenSource",0,function(e,t=Date.now){return d(e,n,t)},"recordEntityOpenSource",0,function(e,t,n=Date.now){if(!(0,a.hasAnalyticsConsent)()){try{window.sessionStorage.removeItem(i)}catch{}return}let r=s(e);if(!r)return;let o={...r,source:t,recordedAt:n()};try{window.sessionStorage.setItem(i,JSON.stringify(o))}catch{}}])}]);
3
4//# debugId=c529fa5e-1397-6005-5260-9369b355c72c

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.