PageSourceSearch

https://dynamiclearning.ai/assets/v1-C4HWnVv9.js

js dynamiclearning.ai collected 2026-10-05 12:07:23 UTC 98,783 bytes, 8 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D1_F4cg-.js","assets/main-CYl_zR7c.js","assets/index-D5JxrdXk.js","assets/index-BJxbYdMH.js","assets/index-z9TxhOjO.js","assets/index-CZJTNgH-.js"])))=>i.map(i=>d[i]);
2import{ba as v1,r as n,c as pe,j as e,bb as le,h as H,bc as y1,y as j1,bd as L1,x as he,W as Fe,Y as k1,be as w1,aB as $e,a5 as be,B as Q,aC as o1,aD as M1,b8 as N1,bf as a1,b9 as S1,bg as ze,bh as _e,bi as i1,bj as l1,bk as c1,bl as ie,n as Z1,b1 as E1,a$ as H1,u as Ce,bm as O1,bn as R1,b2 as $1,L as Be,aQ as z1,b3 as _1,b4 as B1,X as D1,bo as F1,bp as V1,ac as A1,U as P1,b as T1,bq as I1,d as W1,A as U1,g as q1}from"./main-CYl_zR7c.js";import{S as ge}from"./skeleton-CIB2_C6x.js";import{u as Q1,f as K1,a as G1,g as Y1,l as X1,h as J1,z as Pe,i as Re,j as et,b as tt,S as rt,k as ye,d as st,e as nt,c as ot,A as at,E as it,m as ve}from"./extractMarkdownHeaders-1IZRRkZs.js";import{w as d1}from"./TrashBinMinimalistic-lsvBYKED.js";import{M as lt,m as ct,a as dt,n as ut,C as pt}from"./chat-message-DYA-b2I5.js";import{A as je,a as Le,b as ke,c as we,d as Me,e as Ne,f as Se,g as Ze}from"./alert-dialog-DhpdSvHa.js";import{F as ht}from"./file-text-DFCrG0Bi.js";import{b as Ct,c as xt}from"./useLessonDetailQuery-DrMpcqVJ.js";import{u as ft,S as mt,g as bt,a as gt,b as vt}from"./chatThread-Br9raENk.js";import{u as yt}from"./useDeleteLessonMutation-CnvU8r8A.js";import{u as jt}from"./useApplyCreditDeduction-bcTC2wcb.js";import{S as Lt,B as kt}from"./send-horizontal-DxDQOH_O.js";import{T as wt}from"./triangle-alert-CouZ9uKK.js";import{B as Mt}from"./book-open-exKQ0bin.js";function Nt(r,t){if(r===void 0)return{shouldBlockFn:()=>!0,withResolver:!1};if("shouldBlockFn"in r)return r;if(typeof r=="function")return{shouldBlockFn:async()=>await r(),enableBeforeUnload:!0,withResolver:!1};const s=!!(r.condition??!0),o=r.blockerFn;return{shouldBlockFn:async()=>s&&o!==void 0?await o():s,enableBeforeUnload:s,withResolver:o===void 0}}function St(r,t){const{shouldBlockFn:s,enableBeforeUnload:o=!0,disabled:i=!1,withResolver:c=!1}=Nt(r),d=v1(),{history:a}=d,[u,m]=n.useState({status:"idle",current:void 0,next:void 0,action:void 0,proceed:void 0,reset:void 0});return n.useEffect(()=>{const k=async w=>{function b(_){const B=d.parseLocation(_),F=d.getMatchedRoutes(B.pathname);return F.foundRoute===void 0?{routeId:"__notFound__",fullPath:B.pathname,pathname:B.pathname,params:F.routeParams,search:d.options.parseSearch(_.search)}:{routeId:F.foundRoute.id,fullPath:F.foundRoute.fullPath,pathname:B.pathname,params:F.routeParams,search:d.options.parseSearch(_.search)}}const L=b(w.currentLocation),O=b(w.nextLocation);if(L.routeId==="__notFound__"&&O.routeId!=="__notFound__")return!1;const A=await s({action:w.action,current:L,next:O});if(!c)return A;if(!A)return!1;const P=await new Promise(_=>{m({status:"blocked",current:L,next:O,action:w.action,proceed:()=>_(!1),reset:()=>_(!0)})});return m({status:"idle",current:void 0,next:void 0,action:void 0,proceed:void 0,reset:void 0}),P};return i?void 0:a.block({blockerFn:k,enableBeforeUnload:o})},[s,o,i,c,a,d]),u}const Zt=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Et=pe("code-xml",Zt);const Ht=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ot=pe("eye",Ht);const Rt=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],$t=pe("loader-circle",Rt);
2const zt=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],_t=pe("pencil-line",zt);const Bt=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Dt=pe("save",Bt),Ft=new Map([["Bold",e.jsxs(e.Fragment,{children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.25C11.5858 1.25 11.25 1.58579 11.25 2V12.9726L9.56944 11.0119C9.29988 10.6974 8.8264 10.661 8.51191 10.9306C8.19741 11.2001 8.16099 11.6736 8.43056 11.9881L11.4306 15.4881C11.573 15.6543 11.7811 15.75 12 15.75C12.2189 15.75 12.427 15.6543 12.5694 15.4881L15.5694 11.9881C15.839 11.6736 15.8026 11.2001 15.4881 10.9306C15.1736 10.661 14.7001 10.6974 14.4306 11.0119L12.75 12.9726L12.75 2C12.75 1.58579 12.4142 1.25 12 1.25Z",fill:"currentColor"}),e.jsx("path",{d:"M14.25 9V9.37828C14.9836 9.11973 15.8312 9.2491 16.4642 9.79167C17.4077 10.6004 17.517 12.0208 16.7083 12.9643L13.7083 16.4643C13.2808 16.963 12.6568 17.25 12 17.25C11.3431 17.25 10.7191 16.963 10.2916 16.4643L7.29163 12.9643C6.48293 12.0208 6.5922 10.6004 7.53568 9.79167C8.16868 9.2491 9.01637 9.11973 9.74996 9.37828V9H8C5.17157 9 3.75736 9 2.87868 9.87868C2 10.7574 2 12.1716 2 15V16C2 18.8284 2 20.2426 2.87868 21.1213C3.75736 22 5.17157 22 7.99999 22H16C18.8284 22 20.2426 22 21.1213 21.1213C22 20.2426 22 18.8284 22 16V15C22 12.1716 22 10.7574 21.1213 9.87868C20.2426 9 18.8284 9 16 9H14.25Z",fill:"currentColor"})]})],["BoldDuotone",e.jsxs(e.Fragment,{children:[e.jsx("path",{opacity:"0.5",d:"M22 16.0003V15.0003C22 12.1718 21.9998 10.7581 21.1211 9.8794C20.2424 9.00072 18.8282 9.00072 15.9998 9.00072H7.99977C5.17135 9.00072 3.75713 9.00072 2.87845 9.8794C2 10.7579 2 12.1711 2 14.9981V15.0003V16.0003C2 18.8287 2 20.2429 2.87868 21.1216C3.75736 22.0003 5.17157 22.0003 8 22.0003H16H16C18.8284 22.0003 20.2426 22.0003 21.1213 21.1216C22 20.2429 22 18.8287 22 16.0003Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.25C11.5858 1.25 11.25 1.58579 11.25 2L11.25 12.9726L9.56943 11.0119C9.29986 10.6974 8.82639 10.661 8.51189 10.9306C8.1974 11.2001 8.16098 11.6736 8.43054 11.9881L11.4305 15.4881C11.573 15.6543 11.781 15.75 12 15.75C12.2189 15.75 12.4269 15.6543 12.5694 15.4881L15.5694 11.9881C15.839 11.6736 15.8026 11.2001 15.4881 10.9306C15.1736 10.661 14.7001 10.6974 14.4305 11.0119L12.75 12.9726L12.75 2C12.75 1.58579 12.4142 1.25 12 1.25Z",fill:"currentColor"})]})],["Broken",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M8 22.0002H16C18.8284 22.0002 20.2426 22.0002 21.1213 21.1215C22 20.2429 22 18.8286 22 16.0002V15.0002C22 12.1718 22 10.7576 21.1213 9.8789C20.3529 9.11051 19.175 9.01406 17 9.00195M7 9.00195C4.82497 9.01406 3.64706 9.11051 2.87868 9.87889C2 10.7576 2 12.1718 2 15.0002L2 16.0002C2 18.8286 2 20.2429 2.87868 21.1215C3.17848 21.4213 3.54062 21.6188 4 21.749",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M12 2L12 15M12 15L9 11.5M12 15L15 11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["LineDuotone",e.jsxs(e.Fragment,{children:[e.jsx("path",{opacity:"0.5",d:"M17 9.00195C19.175 9.01406 20.3529 9.11051 21.1213 9.8789C22 10.7576 22 12.1718 22 15.0002V16.0002C22 18.8286 22 20.2429 21.1213 21.1215C20.2426 22.0002 18.8284 22.0002 16 22.0002H8C5.17157 22.0002 3.75736 22.0002 2.87868 21.1215C2 20.2429 2 18.8286 2 16.0002L2 15.0002C2 12.1718 2 10.7576 2.87868 9.87889C3.64706 9.11051 4.82497 9.01406 7 9.00195",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M12 2L12 15M12 15L9 11.5M12 15L15 11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["Linear",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M17 9.00195C19.175 9.01406 20.3529 9.11051 21.1213 9.8789C22 10.7576 22 12.1718 22 15.0002V16.0002C22 18.8286 22 20.2429 21.1213 21.1215C20.2426 22.0002 18.8284 22.0002 16 22.0002H8C5.17157 22.0002 3.75736 22.0002 2.87868 21.1215C2 20.2429 2 18.8286 2 16.0002L2 15.0002C2 12.1718 2 10.7576 2.87868 9.87889C3.64706 9.11051 4.82497 9.01406 7 9.00195",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M12 2L12 15M12 15L9 11.5M12 15L15 11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["Outline",e.jsx(e.Fragment,{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.25C12.4142 1.25 12.75 1.58579 12.75 2V12.9726L14.4306 11.0119C14.7001 10.6974 15.1736 10.661 15.4881 10.9306C15.8026 11.2001 15.839 11.6736 15.5694 11.9881L12.5694 15.4881C12.427 15.6543 12.2189 15.75 12 15.75C11.7811 15.75 11.573 15.6543 11.4306 15.4881L8.43056 11.9881C8.16099 11.6736 8.19741 11.2001 8.51191 10.9306C8.8264 10.661 9.29988 10.6974 9.56944 11.0119L11.25 12.9726V2C11.25 1.58579 11.5858 1.25 12 1.25ZM6.99583 8.25196C
27.41003 8.24966 7.74768 8.58357 7.74999 8.99778C7.7523 9.41199 7.41838 9.74964 7.00418 9.75194C5.91068 9.75803 5.1356 9.78643 4.54735 9.89448C3.98054 9.99859 3.65246 10.1658 3.40901 10.4092C3.13225 10.686 2.9518 11.0746 2.85315 11.8083C2.75159 12.5637 2.75 13.5648 2.75 15.0002V16.0002C2.75 17.4356 2.75159 18.4367 2.85315 19.1921C2.9518 19.9259 3.13225 20.3144 3.40901 20.5912C3.68577 20.868 4.07435 21.0484 4.80812 21.1471C5.56347 21.2486 6.56458 21.2502 8 21.2502H16C17.4354 21.2502 18.4365 21.2486 19.1919 21.1471C19.9257 21.0484 20.3142 20.868 20.591 20.5912C20.8678 20.3144 21.0482 19.9259 21.1469 19.1921C21.2484 18.4367 21.25 17.4356 21.25 16.0002V15.0002C21.25 13.5648 21.2484 12.5637 21.1469 11.8083C21.0482 11.0746 20.8678 10.686 20.591 10.4092C20.3475 10.1658 20.0195 9.99859 19.4527 9.89448C18.8644 9.78643 18.0893 9.75803 16.9958 9.75194C16.5816 9.74964 16.2477 9.41199 16.25 8.99778C16.2523 8.58357 16.59 8.24966 17.0042 8.25196C18.0857 8.25799 18.9871 8.28387 19.7236 8.41916C20.4816 8.55839 21.1267 8.82364 21.6517 9.34857C22.2536 9.95048 22.5125 10.7084 22.6335 11.6085C22.75 12.4754 22.75 13.5778 22.75 14.9453V16.0551C22.75 17.4227 22.75 18.525 22.6335 19.392C22.5125 20.2921 22.2536 21.0499 21.6517 21.6519C21.0497 22.2538 20.2919 22.5127 19.3918 22.6337C18.5248 22.7503 17.4225 22.7502 16.0549 22.7502H7.94513C6.57754 22.7502 5.47522 22.7503 4.60825 22.6337C3.70814 22.5127 2.95027 22.2538 2.34835 21.6519C1.74643 21.0499 1.48754 20.2921 1.36652 19.392C1.24996 18.525 1.24998 17.4227 1.25 16.0551V14.9453C1.24998 13.5778 1.24996 12.4754 1.36652 11.6085C1.48754 10.7084 1.74643 9.95048 2.34835 9.34857C2.87328 8.82363 3.51835 8.55839 4.27635 8.41916C5.01291 8.28387 5.9143 8.25798 6.99583 8.25196Z",fill:"currentColor"})})]]),Vt=new Map([["Bold",e.jsx(e.Fragment,{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 7C3.25 6.58579 3.58579 6.25 4 6.25H20C20.4142 6.25 20.75 6.58579 20.75 7C20.75 7.41421 20.4142 7.75 20 7.75H4C3.58579 7.75 3.25 7.41421 3.25 7ZM3.25 12C3.25 11.5858 3.58579 11.25 4 11.25H15C15.4142 11.25 15.75 11.5858 15.75 12C15.75 12.4142 15.4142 12.75 15 12.75H4C3.58579 12.75 3.25 12.4142 3.25 12ZM3.25 17C3.25 16.5858 3.58579 16.25 4 16.25H9C9.41421 16.25 9.75 16.5858 9.75 17C9.75 17.4142 9.41421 17.75 9 17.75H4C3.58579 17.75 3.25 17.4142 3.25 17Z",fill:"currentColor"})})],["BoldDuotone",e.jsxs(e.Fragment,{children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 7C3.25 6.58579 3.58579 6.25 4 6.25H20C20.4142 6.25 20.75 6.58579 20.75 7C20.75 7.41421 20.4142 7.75 20 7.75H4C3.58579 7.75 3.25 7.41421 3.25 7Z",fill:"currentColor"}),e.jsx("path",{opacity:"0.7",d:"M3.25 12C3.25 11.5858 3.58579 11.25 4 11.25H15C15.4142 11.25 15.75 11.5858 15.75 12C15.75 12.4142 15.4142 12.75 15 12.75H4C3.58579 12.75 3.25 12.4142 3.25 12Z",fill:"currentColor"}),e.jsx("path",{opacity:"0.4",d:"M3.25 17C3.25 16.5858 3.58579 16.25 4 16.25H9C9.41421 16.25 9.75 16.5858 9.75 17C9.75 17.4142 9.41421 17.75 9 17.75H4C3.58579 17.75 3.25 17.4142 3.25 17Z",fill:"currentColor"})]})],["Broken",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M20 7L4 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M15 12L4 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M9 17H4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M20 7L4 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{opacity:"0.7",d:"M15 12L4 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{opacity:"0.4",d:"M9 17H4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M20 7L4 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M15 12L4 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M9 17H4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",e.jsx(e.Fragment,{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 7C3.25 6.58579 3.58579 6.25 4 6.25H20C20.4142 6.25 20.75 6.58579 20.75 7C20.75 7.41421 20.4142 7.75 20 7.75H4C3.58579 7.75 3.25 7.41421 3.25 7ZM3.25 12C3.25 11.5858 3.58579 11.25 4 11.25H15C15.4142 11.25 15.75 11.5858 15.75 12C15.75 12.4142 15.4142 12.75 15 12.75H4C3.58579 12.75 3.25 12.4142 3.25 12ZM3.25 17C3.25 16.5858 3.58579 16.25 4 16.25H9C9.41421 16.25 9.75 16.5858 9.75 17C9.75 17.4142 9.41421 17.75 9 17.75H4C3.58579 17.75 3.25 17.4142 3.25 17Z",fill:"currentColor"})})]]),At=new Map([["Bold",e.jsx(e.Fragment,{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.6288 20.4718L13.0867 21.3877C12.6035 22.204 11.3965 22.204 10.9133 21.3877L10.3712 20.4718C9.95073 19.7614 9.74049 19.4063 9.40279 19.2098C9.06509 19.0134 8.63992 19.0061 7.78958 18.9915C6.53422 18.9698 5.74689 18.8929 5.08658 18.6194C3.86144 18.1119 2.88807 17.1386 2.3806 15.9134C2 14.9946 2 13.8297 2 11.5V10.5C2 7.22657 2 5.58985 2.7368 4.38751C3.14908 3.71473 3.71473 3.14908 4.38751 2.7368C5.58985 2 7.22657 2 10.5 2H13.5C16.7734 2 18.4101 2 19.6125 2.7368C20.2853 3.14908 20.8509 3.71473 21.2632 4.38751C22 5.58985 22 7.22657 22 10.5V11.5C22 13.8297 22 14.9946 21.6194 15.9134C21.1119 17.1386 20.1386 18.1119 18.9134 18.6194C18.2531 18.8929 17.4658 18.9698 16.2104 18.9915C15.36 19.0061 14.9349 19.0134 14.5972 19.2098C14.2595 19.4062 14.0492 19.7614 13.6288 20.4718ZM8 11.75C7.58579 11.75 7.25 12.0858 7.25 12.5C7.25 12.9142 7.58579 13.25 8 13.25H13.5C13.9142 13.25 14.25 12.9142 14.25 12.5C14.25 12.0858 13.9142 11.75 13.5 11.75H8ZM7.25 9C7.25 8.58579 7.58579 8.25 8 8.25H16C16.4142 8.25 16.75 8.58579 16.75 9C16.75 9.41421 16.4142 9.75 16 9.75H8C7.58579 9.75 7.25 9.41421 7.25 9Z",fill:"currentColor"})})],["BoldDuotone",e.jsxs(e.Fragment,{children:[e.jsx("path",{opacity:"0.5",d:"M13.6288 20.4718L13.0867 21.3877C12.6035 22.204 11.3965 22.204 10.9133 21.3877L10.3712 20.4718C9.95073 19.7614 9.74049 19.4063 9.40279 19.2098C9.06509 19.0134 8.63992 19.0061 7.78958 18.9915C6.53422 18.9698 5.74689 18.8929 5.08658 18.6194C3.86144 18.1119 2.88807 17.1386 2.3806 15.9134C2 14.9946 2 13.8297 2 11.5V10.5C2 7.22657 2 5.58985 2.7368 4.38751C3.14908 3.71473 3.71473 3.14908 4.38751 2.7368C5.58985 2 7.22657 2 10.5 2H13.5C16.7734 2 18.4101 2 19.6125 2.7368C20.2853 3.14908 20.8509 3.71473 21.2632 4.38751C22 5.58985 22 7.22657 22 10.5V11.5C22 13.8297 22 14.9946 21.6194 15.9134C21.1119 17.1386 20.1386 18.1119 18.9134 18.6194C18.2531 18.8929 17.4658 18.9698 16.2104 18.9915C15.36 19.0061 14.9349 19.0134 14.5972 19.2098C14.2595 19.4062 14.0492 19.7614 13.6288 20.4718Z",fill:"currentColor"}),e.jsx("path",{d:"M7.25 9C7.25 8.58579 7.58579 8.25 8 8.25H16C16.4142 8.25 16.75 8.58579 16.75 9C16.75 9.41421 16.4142 9.75 16 9.75H8C7.58579 9.75 7.25 9.41421 7.25 9Z",fill:"currentColor"}),e.jsx("path",{d:"M7.25 12.5C7.25 12.0858 7.58579 11.75 8 11.75H13.5C13.9142 11.75 14.25 12.0858 14.25 12.5C14.25 12.9142 13.9142 13.25 13.5 13.25H8C7.58579 13.25 7.25 12.9142 7.25 12.5Z",fill:"currentColor"})]})],["Broken",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M8 9H16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M8 12.5H13.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M13.0867 21.3877L13.7321 21.7697L13.0867 21.3877ZM13.6288 20.4718L12.9833 20.0898L13.6288 20.4718ZM10.3712 20.4718L9.72579 20.8539H9.72579L10.3712 20.4718ZM10.9133 21.3877L11.5587 21.0057L10.9133 21.3877ZM1.25 10.5C1.25 10.9142 1.58579 11.25 2 11.25C2.41421 11.25 2.75 10.9142 2.75 10.5H1.25ZM3.07351 15.6264C2.915 15.2437 2.47627 15.062 2.09359 15.2205C1.71091 15.379 1.52918 15.8177 1.68769 16.2004L3.07351 15.6264ZM7.78958 18.9915L7.77666 19.7413L7.78958 18.9915ZM5.08658 18.6194L4.79957 19.3123H4.79957L5.08658 18.6194ZM21.6194 15.9134L22.3123 16.2004V16.2004L21.6194 15.9134ZM16.2104 18.9915L16.1975 18.2416L16.2104 18.9915ZM18.9134 18.6194L19.2004 19.3123H19.2004L18.9134 18.6194ZM19.6125 2.7368L19.2206 3.37628L19.6125 2.7368ZM21.2632 4.38751L21.9027 3.99563V3.99563L21.2632 4.38751ZM4.38751 2.7368L3.99563 2.09732V2.09732L4.38751 2.7368ZM2.7368 4.38751L2.09732 3.99563H2.09732L2.7368 4.38751ZM9.40279 19.2098L9.77986 18.5615L9.77986 18.5615L9.40279 19.2098ZM13.7321 21.7697L14.2742 20.8539L12.9833 20.0898L12.4412 21.0057L13.7321 21.7697ZM9.72579 20.8539L10.2679 21.7697L11.5587 21.0057L11.0166 20.0898L9.72579 20.8539ZM12.4412 21.0057C12.2485 21.3313 11.7515 21.3313 11.5587 21.0057L10.2679 21.7697C11.0415 23.0767 12.9585 23.0767 13.7321 21.7697L12.4412 21.0057ZM10.5 2.75H13.5V1.25H10.5V2.75ZM21.25 10.5V11.5H22.75V10.5H21.25ZM7.8025 18.2416C6.54706 18.2199 5.88923 18.1401 5.37359 17.9265L4.79957 19.3123C5.60454 19.6457 6.52138 19.7197 7.77666 19.7413L7.8025 18.2416ZM1.68769 16.2004C2.27128 17.6093 3.39066 18.7287 4.79957 19.3123L5.3736 17.9265C4.33223 17.4951 3.50486 16.66
278 3.07351 15.6264L1.68769 16.2004ZM21.25 11.5C21.25 12.6751 21.2496 13.5189 21.2042 14.1847C21.1592 14.8438 21.0726 15.2736 20.9265 15.6264L22.3123 16.2004C22.5468 15.6344 22.6505 15.0223 22.7007 14.2868C22.7504 13.5581 22.75 12.6546 22.75 11.5H21.25ZM16.2233 19.7413C17.4786 19.7197 18.3955 19.6457 19.2004 19.3123L18.6264 17.9265C18.1108 18.1401 17.4529 18.2199 16.1975 18.2416L16.2233 19.7413ZM20.9265 15.6264C20.4951 16.6678 19.6678 17.4951 18.6264 17.9265L19.2004 19.3123C20.6093 18.7287 21.7287 17.6093 22.3123 16.2004L20.9265 15.6264ZM13.5 2.75C15.1512 2.75 16.337 2.75079 17.2619 2.83873C18.1757 2.92561 18.7571 3.09223 19.2206 3.37628L20.0044 2.09732C19.2655 1.64457 18.4274 1.44279 17.4039 1.34547C16.3915 1.24921 15.1222 1.25 13.5 1.25V2.75ZM22.75 10.5C22.75 8.87781 22.7508 7.6085 22.6545 6.59611C22.5572 5.57256 22.3554 4.73445 21.9027 3.99563L20.6237 4.77938C20.9078 5.24291 21.0744 5.82434 21.1613 6.73809C21.2492 7.663 21.25 8.84876 21.25 10.5H22.75ZM19.2206 3.37628C19.7925 3.72672 20.2733 4.20752 20.6237 4.77938L21.9027 3.99563C21.4286 3.22194 20.7781 2.57144 20.0044 2.09732L19.2206 3.37628ZM10.5 1.25C8.87781 1.25 7.6085 1.24921 6.59611 1.34547C5.57256 1.44279 4.73445 1.64457 3.99563 2.09732L4.77938 3.37628C5.24291 3.09223 5.82434 2.92561 6.73809 2.83873C7.663 2.75079 8.84876 2.75 10.5 2.75V1.25ZM2.75 10.5C2.75 8.84876 2.75079 7.663 2.83873 6.73809C2.92561 5.82434 3.09223 5.24291 3.37628 4.77938L2.09732 3.99563C1.64457 4.73445 1.44279 5.57256 1.34547 6.59611C1.24921 7.6085 1.25 8.87781 1.25 10.5H2.75ZM3.99563 2.09732C3.22194 2.57144 2.57144 3.22194 2.09732 3.99563L3.37628 4.77938C3.72672 4.20752 4.20752 3.72672 4.77938 3.37628L3.99563 2.09732ZM11.0166 20.0898C10.8136 19.7468 10.6354 19.4441 10.4621 19.2063C10.2795 18.9559 10.0702 18.7304 9.77986 18.5615L9.02572 19.8582C9.07313 19.8857 9.13772 19.936 9.24985 20.0898C9.37122 20.2564 9.50835 20.4865 9.72579 20.8539L11.0166 20.0898ZM7.77666 19.7413C8.21575 19.7489 8.49387 19.7545 8.70588 19.7779C8.90399 19.7999 8.98078 19.832 9.02572 19.8582L9.77986 18.5615C9.4871 18.3912 9.18246 18.3215 8.87097 18.287C8.57339 18.2541 8.21375 18.2487 7.8025 18.2416L7.77666 19.7413ZM14.2742 20.8539C14.4916 20.4865 14.6287 20.2564 14.7501 20.0898C14.8622 19.936 14.9268 19.8857 14.9742 19.8582L14.2201 18.5615C13.9298 18.7304 13.7204 18.9559 13.5379 19.2063C13.3646 19.4441 13.1864 19.7468 12.9833 20.0898L14.2742 20.8539ZM16.1975 18.2416C15.7862 18.2487 15.4266 18.2541 15.129 18.287C14.8175 18.3215 14.5129 18.3912 14.2201 18.5615L14.9742 19.8582C15.0192 19.832 15.096 19.7999 15.2941 19.7779C15.5061 19.7545 15.7842 19.7489 16.2233 19.7413L16.1975 18.2416Z",fill:"currentColor"})]})],["LineDuotone",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M13.0867 21.3877L13.7321 21.7697L13.0867 21.3877ZM13.6288 20.4718L12.9833 20.0898L13.6288 20.4718ZM10.3712 20.4718L9.72579 20.8539H9.72579L10.3712 20.4718ZM10.9133 21.3877L11.5587 21.0057L10.9133 21.3877ZM2.3806 15.9134L3.07351 15.6264V15.6264L2.3806 15.9134ZM7.78958 18.9915L7.77666 19.7413L7.78958 18.9915ZM5.08658 18.6194L4.79957 19.3123H4.79957L5.08658 18.6194ZM21.6194 15.9134L22.3123 16.2004V16.2004L21.6194 15.9134ZM16.2104 18.9915L16.1975 18.2416L16.2104 18.9915ZM18.9134 18.6194L19.2004 19.3123H19.2004L18.9134 18.6194ZM19.6125 2.7368L19.2206 3.37628L19.6125 2.7368ZM21.2632 4.38751L21.9027 3.99563V3.99563L21.2632 4.38751ZM4.38751 2.7368L3.99563 2.09732V2.09732L4.38751 2.7368ZM2.7368 4.38751L2.09732 3.99563H2.09732L2.7368 4.38751ZM9.40279 19.2098L9.77986 18.5615L9.77986 18.5615L9.40279 19.2098ZM13.7321 21.7697L14.2742 20.8539L12.9833 20.0898L12.4412 21.0057L13.7321 21.7697ZM9.72579 20.8539L10.2679 21.7697L11.5587 21.0057L11.0166 20.0898L9.72579 20.8539ZM12.4412 21.0057C12.2485 21.3313 11.7515 21.3313 11.5587 21.0057L10.2679 21.7697C11.0415 23.0767 12.9585 23.0767 13.7321 21.7697L12.4412 21.0057ZM10.5 2.75H13.5V1.25H10.5V2.75ZM21.25 10.5V11.5H22.75V10.5H21.25ZM2.75 11.5V10.5H1.25V11.5H2.75ZM1.25 11.5C1.25 12.6546 1.24959 13.5581 1.29931 14.2868C1.3495 15.0223 1.45323 15.6344 1.68769 16.2004L3.07351 15.6264C2.92737 15.2736 2.84081 14.8438 2.79584 14.1847C2.75041 13.5189 2.75 12.6751 2.75 11.5H1.25ZM7.8025 18.2416C6.54706 18.2199 5.88923 18.1401 5.37359 17.9265L4.79957 19.3123C5.60454 19.6457 6.52138 19.7197 7.77666 19.7413L7.8025 18.2416ZM1.68769 16.2004C2.27128 17.6093 3.39066 18.7287 4.79957 19.3123L5.3736 17.9265C4.33223 17.4951 3.50486 16.66
278 3.07351 15.6264L1.68769 16.2004ZM21.25 11.5C21.25 12.6751 21.2496 13.5189 21.2042 14.1847C21.1592 14.8438 21.0726 15.2736 20.9265 15.6264L22.3123 16.2004C22.5468 15.6344 22.6505 15.0223 22.7007 14.2868C22.7504 13.5581 22.75 12.6546 22.75 11.5H21.25ZM16.2233 19.7413C17.4786 19.7197 18.3955 19.6457 19.2004 19.3123L18.6264 17.9265C18.1108 18.1401 17.4529 18.2199 16.1975 18.2416L16.2233 19.7413ZM20.9265 15.6264C20.4951 16.6678 19.6678 17.4951 18.6264 17.9265L19.2004 19.3123C20.6093 18.7287 21.7287 17.6093 22.3123 16.2004L20.9265 15.6264ZM13.5 2.75C15.1512 2.75 16.337 2.75079 17.2619 2.83873C18.1757 2.92561 18.7571 3.09223 19.2206 3.37628L20.0044 2.09732C19.2655 1.64457 18.4274 1.44279 17.4039 1.34547C16.3915 1.24921 15.1222 1.25 13.5 1.25V2.75ZM22.75 10.5C22.75 8.87781 22.7508 7.6085 22.6545 6.59611C22.5572 5.57256 22.3554 4.73445 21.9027 3.99563L20.6237 4.77938C20.9078 5.24291 21.0744 5.82434 21.1613 6.73809C21.2492 7.663 21.25 8.84876 21.25 10.5H22.75ZM19.2206 3.37628C19.7925 3.72672 20.2733 4.20752 20.6237 4.77938L21.9027 3.99563C21.4286 3.22194 20.7781 2.57144 20.0044 2.09732L19.2206 3.37628ZM10.5 1.25C8.87781 1.25 7.6085 1.24921 6.59611 1.34547C5.57256 1.44279 4.73445 1.64457 3.99563 2.09732L4.77938 3.37628C5.24291 3.09223 5.82434 2.92561 6.73809 2.83873C7.663 2.75079 8.84876 2.75 10.5 2.75V1.25ZM2.75 10.5C2.75 8.84876 2.75079 7.663 2.83873 6.73809C2.92561 5.82434 3.09223 5.24291 3.37628 4.77938L2.09732 3.99563C1.64457 4.73445 1.44279 5.57256 1.34547 6.59611C1.24921 7.6085 1.25 8.87781 1.25 10.5H2.75ZM3.99563 2.09732C3.22194 2.57144 2.57144 3.22194 2.09732 3.99563L3.37628 4.77938C3.72672 4.20752 4.20752 3.72672 4.77938 3.37628L3.99563 2.09732ZM11.0166 20.0898C10.8136 19.7468 10.6354 19.4441 10.4621 19.2063C10.2795 18.9559 10.0702 18.7304 9.77986 18.5615L9.02572 19.8582C9.07313 19.8857 9.13772 19.936 9.24985 20.0898C9.37122 20.2564 9.50835 20.4865 9.72579 20.8539L11.0166 20.0898ZM7.77666 19.7413C8.21575 19.7489 8.49387 19.7545 8.70588 19.7779C8.90399 19.7999 8.98078 19.832 9.02572 19.8582L9.77986 18.5615C9.4871 18.3912 9.18246 18.3215 8.87097 18.287C8.57339 18.2541 8.21375 18.2487 7.8025 18.2416L7.77666 19.7413ZM14.2742 20.8539C14.4916 20.4865 14.6287 20.2564 14.7501 20.0898C14.8622 19.936 14.9268 19.8857 14.9742 19.8582L14.2201 18.5615C13.9298 18.7304 13.7204 18.9559 13.5379 19.2063C13.3646 19.4441 13.1864 19.7468 12.9833 20.0898L14.2742 20.8539ZM16.1975 18.2416C15.7862 18.2487 15.4266 18.2541 15.129 18.287C14.8175 18.3215 14.5129 18.3912 14.2201 18.5615L14.9742 19.8582C15.0192 19.832 15.096 19.7999 15.2941 19.7779C15.5061 19.7545 15.7842 19.7489 16.2233 19.7413L16.1975 18.2416Z",fill:"currentColor"}),e.jsx("path",{opacity:"0.5",d:"M8 9H16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{opacity:"0.5",d:"M8 12.5H13.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M13.0867 21.3877L13.7321 21.7697L13.0867 21.3877ZM13.6288 20.4718L12.9833 20.0898L13.6288 20.4718ZM10.3712 20.4718L9.72579 20.8539H9.72579L10.3712 20.4718ZM10.9133 21.3877L11.5587 21.0057L10.9133 21.3877ZM2.3806 15.9134L3.07351 15.6264V15.6264L2.3806 15.9134ZM7.78958 18.9915L7.77666 19.7413L7.78958 18.9915ZM5.08658 18.6194L4.79957 19.3123H4.79957L5.08658 18.6194ZM21.6194 15.9134L22.3123 16.2004V16.2004L21.6194 15.9134ZM16.2104 18.9915L16.1975 18.2416L16.2104 18.9915ZM18.9134 18.6194L19.2004 19.3123H19.2004L18.9134 18.6194ZM19.6125 2.7368L19.2206 3.37628L19.6125 2.7368ZM21.2632 4.38751L21.9027 3.99563V3.99563L21.2632 4.38751ZM4.38751 2.7368L3.99563 2.09732V2.09732L4.38751 2.7368ZM2.7368 4.38751L2.09732 3.99563H2.09732L2.7368 4.38751ZM9.40279 19.2098L9.77986 18.5615L9.77986 18.5615L9.40279 19.2098ZM13.7321 21.7697L14.2742 20.8539L12.9833 20.0898L12.4412 21.0057L13.7321 21.7697ZM9.72579 20.8539L10.2679 21.7697L11.5587 21.0057L11.0166 20.0898L9.72579 20.8539ZM12.4412 21.0057C12.2485 21.3313 11.7515 21.3313 11.5587 21.0057L10.2679 21.7697C11.0415 23.0767 12.9585 23.0767 13.7321 21.7697L12.4412 21.0057ZM10.5 2.75H13.5V1.25H10.5V2.75ZM21.25 10.5V11.5H22.75V10.5H21.25ZM2.75 11.5V10.5H1.25V11.5H2.75ZM1.25 11.5C1.25 12.6546 1.24959 13.5581 1.29931 14.2868C1.3495 15.0223 1.45323 15.6344 1.68769 16.2004L3.07351 15.6264C2.92737 15.2736 2.84081 14.8438 2.79584 14.1847C2.75041 13.5189 2.75 12.6751 2.75 11.5H1.25ZM7.8025 18.2416C6.54706 18.2199 5.88923 18.1401 5.37359 17.9265L4.79957 19.3123C5.60454 19.6457 6.52138 19.7197 7.77666 19.7413L7.8025 18.2416ZM1.68769 16.2004C2.27128 17.6093 3.39066 18.7287 4.79957 19.3123L5.3736 17.9265C4.33223 17.4951 3.50486 16.66
278 3.07351 15.6264L1.68769 16.2004ZM21.25 11.5C21.25 12.6751 21.2496 13.5189 21.2042 14.1847C21.1592 14.8438 21.0726 15.2736 20.9265 15.6264L22.3123 16.2004C22.5468 15.6344 22.6505 15.0223 22.7007 14.2868C22.7504 13.5581 22.75 12.6546 22.75 11.5H21.25ZM16.2233 19.7413C17.4786 19.7197 18.3955 19.6457 19.2004 19.3123L18.6264 17.9265C18.1108 18.1401 17.4529 18.2199 16.1975 18.2416L16.2233 19.7413ZM20.9265 15.6264C20.4951 16.6678 19.6678 17.4951 18.6264 17.9265L19.2004 19.3123C20.6093 18.7287 21.7287 17.6093 22.3123 16.2004L20.9265 15.6264ZM13.5 2.75C15.1512 2.75 16.337 2.75079 17.2619 2.83873C18.1757 2.92561 18.7571 3.09223 19.2206 3.37628L20.0044 2.09732C19.2655 1.64457 18.4274 1.44279 17.4039 1.34547C16.3915 1.24921 15.1222 1.25 13.5 1.25V2.75ZM22.75 10.5C22.75 8.87781 22.7508 7.6085 22.6545 6.59611C22.5572 5.57256 22.3554 4.73445 21.9027 3.99563L20.6237 4.77938C20.9078 5.24291 21.0744 5.82434 21.1613 6.73809C21.2492 7.663 21.25 8.84876 21.25 10.5H22.75ZM19.2206 3.37628C19.7925 3.72672 20.2733 4.20752 20.6237 4.77938L21.9027 3.99563C21.4286 3.22194 20.7781 2.57144 20.0044 2.09732L19.2206 3.37628ZM10.5 1.25C8.87781 1.25 7.6085 1.24921 6.59611 1.34547C5.57256 1.44279 4.73445 1.64457 3.99563 2.09732L4.77938 3.37628C5.24291 3.09223 5.82434 2.92561 6.73809 2.83873C7.663 2.75079 8.84876 2.75 10.5 2.75V1.25ZM2.75 10.5C2.75 8.84876 2.75079 7.663 2.83873 6.73809C2.92561 5.82434 3.09223 5.24291 3.37628 4.77938L2.09732 3.99563C1.64457 4.73445 1.44279 5.57256 1.34547 6.59611C1.24921 7.6085 1.25 8.87781 1.25 10.5H2.75ZM3.99563 2.09732C3.22194 2.57144 2.57144 3.22194 2.09732 3.99563L3.37628 4.77938C3.72672 4.20752 4.20752 3.72672 4.77938 3.37628L3.99563 2.09732ZM11.0166 20.0898C10.8136 19.7468 10.6354 19.4441 10.4621 19.2063C10.2795 18.9559 10.0702 18.7304 9.77986 18.5615L9.02572 19.8582C9.07313 19.8857 9.13772 19.936 9.24985 20.0898C9.37122 20.2564 9.50835 20.4865 9.72579 20.8539L11.0166 20.0898ZM7.77666 19.7413C8.21575 19.7489 8.49387 19.7545 8.70588 19.7779C8.90399 19.7999 8.98078 19.832 9.02572 19.8582L9.77986 18.5615C9.4871 18.3912 9.18246 18.3215 8.87097 18.287C8.57339 18.2541 8.21375 18.2487 7.8025 18.2416L7.77666 19.7413ZM14.2742 20.8539C14.4916 20.4865 14.6287 20.2564 14.7501 20.0898C14.8622 19.936 14.9268 19.8857 14.9742 19.8582L14.2201 18.5615C13.9298 18.7304 13.7204 18.9559 13.5379 19.2063C13.3646 19.4441 13.1864 19.7468 12.9833 20.0898L14.2742 20.8539ZM16.1975 18.2416C15.7862 18.2487 15.4266 18.2541 15.129 18.287C14.8175 18.3215 14.5129 18.3912 14.2201 18.5615L14.9742 19.8582C15.0192 19.832 15.096 19.7999 15.2941 19.7779C15.5061 19.7545 15.7842 19.7489 16.2233 19.7413L16.1975 18.2416Z",fill:"currentColor"}),e.jsx("path",{d:"M8 9H16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M8 12.5H13.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",e.jsx(e.Fragment,{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4606 1.25H13.5394C15.1427 1.24999 16.3997 1.24999 17.4039 1.34547C18.4274 1.44279 19.2655 1.64457 20.0044 2.09732C20.7781 2.57144 21.4286 3.22194 21.9027 3.99563C22.3554 4.73445 22.5572 5.57256 22.6545 6.59611C22.75 7.60029 22.75 8.85725 22.75 10.4606V11.5278C22.75 12.6691 22.75 13.564 22.7007 14.2868C22.6505 15.0223 22.5468 15.6344 22.3123 16.2004C21.7287 17.6093 20.6093 18.7287 19.2004 19.3123C18.3955 19.6457 17.4786 19.7197 16.2233 19.7413C15.7842 19.7489 15.5061 19.7545 15.2941 19.7779C15.096 19.7999 15.0192 19.832 14.9742 19.8582C14.9268 19.8857 14.8622 19.936 14.7501 20.0898C14.6287 20.2564 14.4916 20.4865 14.2742 20.8539L13.7321 21.7697C12.9585 23.0767 11.0415 23.0767 10.2679 21.7697L9.72579 20.8539C9.50835 20.4865 9.37122 20.2564 9.24985 20.0898C9.13772 19.936 9.07313 19.8857 9.02572 19.8582C8.98078 19.832 8.90399 19.7999 8.70588 19.7779C8.49387 19.7545 8.21575 19.7489 7.77666 19.7413C6.52138 19.7197 5.60454 19.6457 4.79957 19.3123C3.39066 18.7287 2.27128 17.6093 1.68769 16.2004C1.45323 15.6344 1.3495 15.0223 1.29932 14.2868C1.24999 13.564 1.25 12.6691 1.25 11.5278L1.25 10.4606C1.24999 8.85726 1.24999 7.60029 1.34547 6.59611C1.44279 5.57256 1.64457 4.73445 2.09732 3.99563C2.57144 3.22194 3.22194 2.57144 3.99563 2.09732C4.73445 1.64457 5.57256 1.44279 6.59611 1.34547C7.60029 1.24999 8.85726 1.24999 10.4606 1.25ZM6.73809 2.83873C5.82434 2.92561 5.24291 3.09223 4.77938 3.37628C4.20752 3.72672 3.72672 4.20752 3.37628 4.77938C3.09223 5.24291 2.92561 5.82434 2.83873 6.73809C2.75079 7.663 2.75 8.84876 2.75 10.5V11.5C2.75 12.6751 2.75041 13.5189 2.79584 14.1847C2.84081 14.8438 2.92737 15.2736 3.07351 15.6264C3.50486 16.66
278 4.33223 17.4951 5.3736 17.9265C5.88923 18.1401 6.54706 18.2199 7.8025 18.2416L7.83432 18.2421C8.23232 18.249 8.58109 18.2549 8.87097 18.287C9.18246 18.3215 9.4871 18.3912 9.77986 18.5615C10.0702 18.7304 10.2795 18.9559 10.4621 19.2063C10.6307 19.4378 10.804 19.7306 11.0004 20.0623L11.5587 21.0057C11.7515 21.3313 12.2485 21.3313 12.4412 21.0057L12.9996 20.0623C13.1959 19.7306 13.3692 19.4378 13.5379 19.2063C13.7204 18.9559 13.9298 18.7304 14.2201 18.5615C14.5129 18.3912 14.8175 18.3215 15.129 18.287C15.4189 18.2549 15.7676 18.249 16.1656 18.2421L16.1975 18.2416C17.4529 18.2199 18.1108 18.1401 18.6264 17.9265C19.6678 17.4951 20.4951 16.6678 20.9265 15.6264C21.0726 15.2736 21.1592 14.8438 21.2042 14.1847C21.2496 13.5189 21.25 12.6751 21.25 11.5V10.5C21.25 8.84876 21.2492 7.663 21.1613 6.73809C21.0744 5.82434 20.9078 5.24291 20.6237 4.77938C20.2733 4.20752 19.7925 3.72672 19.2206 3.37628C18.7571 3.09223 18.1757 2.92561 17.2619 2.83873C16.337 2.75079 15.1512 2.75 13.5 2.75H10.5C8.84876 2.75 7.663 2.75079 6.73809 2.83873ZM7.25 9C7.25 8.58579 7.58579 8.25 8 8.25H16C16.4142 8.25 16.75 8.58579 16.75 9C16.75 9.41421 16.4142 9.75 16 9.75H8C7.58579 9.75 7.25 9.41421 7.25 9ZM7.25 12.5C7.25 12.0858 7.58579 11.75 8 11.75H13.5C13.9142 11.75 14.25 12.0858 14.25 12.5C14.25 12.9142 13.9142 13.25 13.5 13.25H8C7.58579 13.25 7.25 12.9142 7.25 12.5Z",fill:"currentColor"})})]]),Pt=new Map([["Bold",e.jsx(e.Fragment,{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12.75 9C12.75 8.58579 12.4142 8.25 12 8.25C11.5858 8.25 11.25 8.58579 11.25 9L11.25 11.25H9C8.58579 11.25 8.25 11.5858 8.25 12C8.25 12.4142 8.58579 12.75 9 12.75H11.25V15C11.25 15.4142 11.5858 15.75 12 15.75C12.4142 15.75 12.75 15.4142 12.75 15L12.75 12.75H15C15.4142 12.75 15.75 12.4142 15.75 12C15.75 11.5858 15.4142 11.25 15 11.25H12.75V9Z",fill:"currentColor"})})],["BoldDuotone",e.jsxs(e.Fragment,{children:[e.jsx("path",{opacity:"0.5",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",fill:"currentColor"}),e.jsx("path",{d:"M12.75 9C12.75 8.58579 12.4142 8.25 12 8.25C11.5858 8.25 11.25 8.58579 11.25 9L11.25 11.25H9C8.58579 11.25 8.25 11.5858 8.25 12C8.25 12.4142 8.58579 12.75 9 12.75H11.25V15C11.25 15.4142 11.5858 15.75 12 15.75C12.4142 15.75 12.75 15.4142 12.75 15L12.75 12.75H15C15.4142 12.75 15.75 12.4142 15.75 12C15.75 11.5858 15.4142 11.25 15 11.25H12.75V9Z",fill:"currentColor"})]})],["Broken",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M15 12L12 12M12 12L9 12M12 12L12 9M12 12L12 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M7 3.33782C8.47087 2.48697 10.1786 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 10.1786 2.48697 8.47087 3.33782 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",e.jsxs(e.Fragment,{children:[e.jsx("circle",{opacity:"0.5",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("path",{d:"M15 12L12 12M12 12L9 12M12 12L12 9M12 12L12 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("path",{d:"M15 12L12 12M12 12L9 12M12 12L12 9M12 12L12 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M12.75 9C12.75 8.58579 12.4142 8.25 12 8.25C11.5858 8.25 11.25 8.58579 11.25 9L11.25 11.25H9C8.58579 11.25 8.25 11.5858 8.25 12C8.25 12.4142 8.58579 12.75 9 12.75H11.25V15C11.25 15.4142 11.5858 15.75 12 15.75C12.4142 15.75 12.75 15.4142 12.75 15L12.75 12.75H15C15.4142 12.75 15.75 12.4142 15.75 12C15.75 11.5858 15.4142 11.25 15 11.25H12.75V9Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.25C6.06294 1.25 1.25 6.06294 1.25 12C1.25 17.9371 6.06294 22.75 12 22.75C17.9371 22.75 22.75 17.9371 22.75 12C22.75 6.06294 17.9371 1.25 12 1.25ZM2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12Z",fill:"currentColor"})]})]]),Tt=new Map([["Bold",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12Z",fill:"currentColor"}),e.jsx("path",{d:"M14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12Z",fill:"currentColor"}),e.jsx("path",{d:"M21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12Z",fill:"currentColor"})]})],["BoldDuotone",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12Z",fill:"currentColor"}),e.jsx("path",{d:"M21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12Z",fill:"currentColor"}),e.jsx("path",{opacity:"0.5",d:"M14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12Z",fill:"currentColor"})]})],["Broken",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M5 14
2C6.10457 14 7 13.1046 7 12C7 10.8954 6.10457 10 5 10C3.89543 10 3 10.8954 3 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("circle",{cx:"12",cy:"12",r:"2",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("path",{d:"M21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12C17 10.8954 17.8954 10 19 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"5",cy:"12",r:"2",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("circle",{opacity:"0.5",cx:"12",cy:"12",r:"2",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("circle",{cx:"19",cy:"12",r:"2",stroke:"currentColor",strokeWidth:"1.5"})]})],["Linear",e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"5",cy:"12",r:"2",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("circle",{cx:"12",cy:"12",r:"2",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("circle",{cx:"19",cy:"12",r:"2",stroke:"currentColor",strokeWidth:"1.5"})]})],["Outline",e.jsxs(e.Fragment,{children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.25 12C2.25 10.4812 3.48122 9.25 5 9.25C6.51878 9.25 7.75 10.4812 7.75 12C7.75 13.5188 6.51878 14.75 5 14.75C3.48122 14.75 2.25 13.5188 2.25 12ZM5 10.75C4.30964 10.75 3.75 11.3096 3.75 12C3.75 12.6904 4.30964 13.25 5 13.25C5.69036 13.25 6.25 12.6904 6.25 12C6.25 11.3096 5.69036 10.75 5 10.75Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.25 12C9.25 10.4812 10.4812 9.25 12 9.25C13.5188 9.25 14.75 10.4812 14.75 12C14.75 13.5188 13.5188 14.75 12 14.75C10.4812 14.75 9.25 13.5188 9.25 12ZM12 10.75C11.3096 10.75 10.75 11.3096 10.75 12C10.75 12.6904 11.3096 13.25 12 13.25C12.6904 13.25 13.25 12.6904 13.25 12C13.25 11.3096 12.6904 10.75 12 10.75Z",fill:"currentColor"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 9.25C17.4812 9.25 16.25 10.4812 16.25 12C16.25 13.5188 17.4812 14.75 19 14.75C20.5188 14.75 21.75 13.5188 21.75 12C21.75 10.4812 20.5188 9.25 19 9.25ZM17.75 12C17.75 11.3096 18.3096 10.75 19 10.75C19.6904 10.75 20.25 11.3096 20.25 12C20.25 12.6904 19.6904 13.25 19 13.25C18.3096 13.25 17.75 12.6904 17.75 12Z",fill:"currentColor"})]})]]),It=new Map([["Bold",e.jsx(e.Fragment,{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.803 5.33333C13.803 3.49238 15.3022 2 17.1515 2C19.0008 2 20.5 3.49238 20.5 5.33333C20.5 7.17428 19.0008 8.66667 17.1515 8.66667C16.2177 8.66667 15.3738 8.28596 14.7671 7.67347L10.1317 10.8295C10.1745 11.0425 10.197 11.2625 10.197 11.4872C10.197 11.9322 10.109 12.3576 9.94959 12.7464L15.0323 16.0858C15.6092 15.6161 16.3473 15.3333 17.1515 15.3333C19.0008 15.3333 20.5 16.8257 20.5 18.6667C20.5 20.5076 19.0008 22 17.1515 22C15.3022 22 13.803 20.5076 13.803 18.6667C13.803 18.1845 13.9062 17.7255 14.0917 17.3111L9.05007 13.9987C8.46196 14.5098 7.6916 14.8205 6.84848 14.8205C4.99917 14.8205 3.5 13.3281 3.5 11.4872C3.5 9.64623 4.99917 8.15385 6.84848 8.15385C7.9119 8.15385 8.85853 8.64725 9.47145 9.41518L13.9639 6.35642C13.8594 6.03359 13.803 5.6896 13.803 5.33333Z",fill:"currentColor"})})],["BoldDuotone",e.jsx(e.Fragment,{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.803 5.33333C13.803 3.49238 15.3022 2 17.1515 2C19.0008 2 20.5 3.49238 20.5 5.33333C20.5 7.17428 19.0008 8.66667 17.1515 8.66667C16.2177 8.66667 15.3738 8.28596 14.7671 7.67347L10.1317 10.8295C10.1745 11.0425 10.197 11.2625 10.197 11.4872C10.197 11.9322 10.109 12.3576 9.94959 12.7464L15.0323 16.0858C15.6092 15.6161 16.3473 15.3333 17.1515 15.3333C19.0008 15.3333 20.5 16.8257 20.5 18.6667C20.5 20.5076 19.0008 22 17.1515 22C15.3022 22 13.803 20.5076 13.803 18.6667C13.803 18.1845 13.9062 17.7255 14.0917 17.3111L9.05007 13.9987C8.46196 14.5098 7.6916 14.8205 6.84848 14.8205C4.99917 14.8205 3.5 13.3281 3.5 11.4872C3.5 9.64623 4.99917 8.15385 6.84848 8.15385C7.9119 8.15385 8.85853 8.64725 9.47145 9.41518L13.9639 6.35642C13.8594 6.03359 13.803 5.6896 13.803 5.33333Z",fill:"currentColor"})})],["Broken",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M4 12C4 13.3807 5.11929 14.5 6.5 14.5C7.88071 14.5 9 13.3807 9 12C9 10.6193 7.88071 9.5 6.5 9.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M14 6.5L9 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M14 17.5L9 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M16.5 21C17.8807 21 19 19.8807 19 18.5C19 17.1193 17.8807 16 16.5 16C15.1193 16 14 17.1193 14 18.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M18.665 6.74993C17.9746 7.94566 16.4457 8.35535 15.2499 7.66499C14.0542 6.97464 13.6445 5.44566 14.3349 4.24993C15.0252 3.0542 16.5542 2.64451 17.7499 3.33487",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M9 11.5C9 12.8807 7.88071 14 6.5 14C5.11929 14 4 12.8807 4 11.5C4 10.1193 5.
211929 9 6.5 9C7.88071 9 9 10.1193 9 11.5Z",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("path",{opacity:"0.5",d:"M14.3206 16.8017L9 13.29",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{opacity:"0.5",d:"M14.4207 6.83984L9.1001 10.3515",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M19 18.5C19 19.8807 17.8807 21 16.5 21C15.1193 21 14 19.8807 14 18.5C14 17.1193 15.1193 16 16.5 16C17.8807 16 19 17.1193 19 18.5Z",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("path",{d:"M19 5.5C19 6.88071 17.8807 8 16.5 8C15.1193 8 14 6.88071 14 5.5C14 4.11929 15.1193 3 16.5 3C17.8807 3 19 4.11929 19 5.5Z",stroke:"currentColor",strokeWidth:"1.5"})]})],["Linear",e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M9 12C9 13.3807 7.88071 14.5 6.5 14.5C5.11929 14.5 4 13.3807 4 12C4 10.6193 5.11929 9.5 6.5 9.5C7.88071 9.5 9 10.6193 9 12Z",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("path",{d:"M14 6.5L9 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M14 17.5L9 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M19 18.5C19 19.8807 17.8807 21 16.5 21C15.1193 21 14 19.8807 14 18.5C14 17.1193 15.1193 16 16.5 16C17.8807 16 19 17.1193 19 18.5Z",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("path",{d:"M19 5.5C19 6.88071 17.8807 8 16.5 8C15.1193 8 14 6.88071 14 5.5C14 4.11929 15.1193 3 16.5 3C17.8807 3 19 4.11929 19 5.5Z",stroke:"currentColor",strokeWidth:"1.5"})]})],["Outline",e.jsx(e.Fragment,{children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 2.25C14.7051 2.25 13.25 3.70507 13.25 5.5C13.25 5.69591 13.2673 5.88776 13.3006 6.07412L8.56991 9.38558C8.54587 9.4024 8.52312 9.42038 8.50168 9.43939C7.94993 9.00747 7.25503 8.75 6.5 8.75C4.70507 8.75 3.25 10.2051 3.25 12C3.25 13.7949 4.70507 15.25 6.5 15.25C7.25503 15.25 7.94993 14.9925 8.50168 14.5606C8.52312 14.5796 8.54587 14.5976 8.56991 14.6144L13.3006 17.9259C13.2673 18.1122 13.25 18.3041 13.25 18.5C13.25 20.2949 14.7051 21.75 16.5 21.75C18.2949 21.75 19.75 20.2949 19.75 18.5C19.75 16.7051 18.2949 15.25 16.5 15.25C15.4472 15.25 14.5113 15.7506 13.9174 16.5267L9.43806 13.3911C9.63809 12.9694 9.75 12.4978 9.75 12C9.75 11.5022 9.63809 11.0306 9.43806 10.6089L13.9174 7.4733C14.5113 8.24942 15.4472 8.75 16.5 8.75C18.2949 8.75 19.75 7.29493 19.75 5.5C19.75 3.70507 18.2949 2.25 16.5 2.25ZM14.75 5.5C14.75 4.5335 15.5335 3.75 16.5 3.75C17.4665 3.75 18.25 4.5335 18.25 5.5C18.25 6.4665 17.4665 7.25 16.5 7.25C15.5335 7.25 14.75 6.4665 14.75 5.5ZM6.5 10.25C5.5335 10.25 4.75 11.0335 4.75 12C4.75 12.9665 5.5335 13.75 6.5 13.75C7.4665 13.75 8.25 12.9665 8.25 12C8.25 11.0335 7.4665 10.25 6.5 10.25ZM16.5 16.75C15.5335 16.75 14.75 17.5335 14.75 18.5C14.75 19.4665 15.5335 20.25 16.5 20.25C17.4665 20.25 18.25 19.4665 18.25 18.5C18.25 17.5335 17.4665 16.75 16.5 16.75Z",fill:"currentColor"})})]]);var Wt=Object.defineProperty,Ut=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,Ie=(r,t,s)=>t in r?Wt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,Gt=(r,t)=>{for(var s in t||(t={}))Qt.call(t,s)&&Ie(r,s,t[s]);if(Te)for(var s of Te(t))Kt.call(t,s)&&Ie(r,s,t[s]);return r},Yt=(r,t)=>Ut(r,qt(t));const u1=n.forwardRef((r,t)=>e.jsx(le,Yt(Gt({ref:t},r),{weights:Ft})));u1.displayName="Download";var Xt=Object.defineProperty,Jt=Object.defineProperties,e2=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,t2=Object.prototype.hasOwnProperty,r2=Object.prototype.propertyIsEnumerable,Ue=(r,t,s)=>t in r?Xt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,s2=(r,t)=>{for(var s in t||(t={}))t2.call(t,s)&&Ue(r,s,t[s]);if(We)for(var s of We(t))r2.call(t,s)&&Ue(r,s,t[s]);return r},n2=(r,t)=>Jt(r,e2(t));const p1=n.forwardRef((r,t)=>e.jsx(le,n2(s2({ref:t},r),{weights:Vt})));p1.displayName="List";var o2=Object.defineProperty,a2=Object.defineProperties,i2=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,l2=Object.prototype.hasOwnProperty,c2=Object.prototype.propertyIsEnumerable,Qe=(r,t,s)=>t in r?o2(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,d2=(r,t)=>{for(var s in t||(t={}))l2.call(t,s)&&Qe(r,s,t[s]);if(qe)for(var s of qe(t))c2.call(t,s)&&Qe(r,s,t[s]);return r},u2=(r,t)=>a2(r,i2(t));const h1=n.forwardRef((r,t)=>e.jsx(le,u2(d2({ref:t},r),{weights:At})));h1.displayName="ChatLine";var p2=Object.defineProperty,h2=Object.defineProperties,C2=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,x2=Object.prototype.hasOwnProperty,f2=Object.prototype.propertyIsEnumerable,Ge=(r,t,s)=>t in r?p2(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,m2=(r,t)=>{for(var s in t||(t={}))x2.call(t,s)&&Ge(r,s,t[s]);if(Ke)for(var s of Ke(t))f2.call(t,s)&&Ge(r,s,t[s]);return r},b2=(r,t)=>h2(r,C2(t));const C1=n.forwardRef((r,t)=>e.jsx(le,b2(m2({ref:t},r),{weights:Pt})));C1.displayName="AddCircle";var g2=Object.defineProperty,v2=Object.defineProperties,y2=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,j2=Object.prototype.hasOwnProperty,L2=Object.prototype.propertyIsEnumerable,Xe=(r,t,s)=>t in r?g2(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,k2=(r,t)=>{for(var s in t||(t={}))j2.call(t,s)&&Xe(r,s,t[s]);if(Ye)for(var s of Ye(t))L2.call(t,s)&&Xe(r,s,t[s]);return r},w2=(r,t)=>v2(r,y2(t));const Ve=n.forwardRef((r,t)=>e.jsx(le,w2(k2({ref:t},r),{weights:Tt})));Ve.displayName="MenuDots";var M2=Object.defineProperty,N2=Object.defineProperties,S2=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Z2=Object.prototype.hasOwnProperty,E2=Object.prototype.propertyIsEnumerable,e1=(r,t,s)=>t in r?M2(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,H2=(r,t)=>{for(var s in t||(t={}))Z2.call(t,s)&&e1(r,s,t[s]);if(Je)for(var s of Je(t))E2.call(t,s)&&e1(r,s,t[s]);return r},O2=(r,t)=>N2(r,S2(t));const x1=n.forwardRef((r,t)=>e.jsx(le,O2(H2({ref:t},r),{weights:It})));x1.displayName="Share";const R2=y1("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-(--status-red) *:data-[slot=alert-description]:text-(--status-red) [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function $2({className:r,variant:t,...s}){return e.jsx("div",{"data-slot":"alert",role:"alert",className:H(R2({variant:t}),r),...s})}function z2({className:r,...t}){return e.jsx("div",{"data-slot":"alert-description",className:H("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",r),...t})}const f1=n.forwardRef(function({mode:t="standalone",className:s,type:o="button",children:i,...c},d){return e.jsx("button",{ref:d,type:o,className:H(t==="standalone"?"dl-fab dl-fab--bottom-right":"grid h-full w-full place-items-center rounded-full bg-transparent p-0","motion-reduce:transition-none",s),...c,children:i})});function m1(r,t){return["lesson",r,"slide",t,"source"]}function _2(r,t,s){return j1({queryKey:m1(r,t),queryFn:()=>L1(r,t,{baseUrl:he}),enabled:s&&!!r&&!!t,staleTime:1/0,refetchOnWindowFocus:!1})}function B2(r){const t=Fe();return k1({mutationFn:({slideId:s,fields:o})=>w1(r,s,o,{baseUrl:he}),onSuccess:(s,{slideId:o})=>{t.invalidateQueries({queryKey:["lesson",r,"slide",o]}),t.invalidateQueries({queryKey:m1(r,o)}),t.invalidateQueries({queryKey:["lesson",r]})}})}const oe=()=>{},D2={canEdit:!1,isEditing:!1,startEditing:oe,stopEditing:oe,discardAll:oe,registerBaseline:oe,getDraft:()=>{},setContent:oe,setCode:oe,isSlideDirty:()=>!1,savedRev:()=>0,isDirty:!1,dirtyCount:0,isSaving:!1,saveError:null,saveAll:async()=>{}},b1=n.createContext(null);function F2(r,t){const s={};return r.content!==t.content&&(s.content=r.content),r.code!==t.code&&(s.code=r.code),s}function V2(r,t){const[s,o]=n.useState(!1),[i,c]=n.useState({}),[d,a]=n.useState({}),[u,m]=n.useState({}),[k,w]=n.useState(!1),[b,L]=n.useState(null),O=B2(r),A=n.useMemo(()=>Object.keys(d).filter(y=>{const Z=d[y],j=i[y];
2return!Z||!j?!1:Z.content!==j.content||Z.code!==j.code}),[d,i]),P=n.useMemo(()=>new Set(A),[A]),_=A.length>0,B=A.length,F=n.useCallback(()=>o(!0),[]),S=n.useCallback(()=>{o(!1),a({}),c({}),L(null)},[]),q=n.useCallback(()=>{a({...i}),L(null)},[i]),T=n.useCallback((y,Z)=>{c(j=>j[y]?j:{...j,[y]:Z}),a(j=>j[y]?j:{...j,[y]:Z})},[]),J=n.useCallback(y=>d[y],[d]),K=n.useCallback((y,Z)=>{a(j=>{const R=j[y]??{content:"",code:""};return R.content===Z?j:{...j,[y]:{...R,content:Z}}})},[]),G=n.useCallback((y,Z)=>{a(j=>{const R=j[y]??{content:"",code:""};return R.code===Z?j:{...j,[y]:{...R,code:Z}}})},[]),W=n.useCallback(y=>P.has(y),[P]),v=n.useCallback(y=>u[y]??0,[u]),U=n.useCallback(async()=>{const y=[];for(const E of Object.keys(d)){const C=d[E],x=i[E];if(!C||!x)continue;const M=F2(C,x);(M.content!==void 0||M.code!==void 0)&&y.push({id:E,draft:C,fields:M})}if(y.length===0)return;w(!0),L(null);const Z=await Promise.allSettled(y.map(async({id:E,fields:C})=>(await O.mutateAsync({slideId:E,fields:C}),E))),j=new Set(Z.flatMap(E=>E.status==="fulfilled"?[E.value]:[])),R=y.filter(E=>j.has(E.id)),I=y.length-R.length;R.length>0&&(c(E=>{const C={...E};for(const{id:x,draft:M}of R)C[x]=M;return C}),m(E=>{const C={...E};for(const{id:x}of R)C[x]=(E[x]??0)+1;return C})),w(!1),I>0?(L(`Couldn't save ${I} slide${I>1?"s":""}. Try again.`),$e(`Saved ${R.length} of ${y.length} — ${I} failed.`)):$e(R.length===1?"Slide saved.":`Saved ${R.length} slides.`)},[d,i,O]);return n.useMemo(()=>({canEdit:t,isEditing:s,startEditing:F,stopEditing:S,discardAll:q,registerBaseline:T,getDraft:J,setContent:K,setCode:G,isSlideDirty:W,savedRev:v,isDirty:_,dirtyCount:B,isSaving:k,saveError:b,saveAll:U}),[t,s,F,S,q,T,J,K,G,W,v,_,B,k,b,U])}function A2(){const{isEditing:r,isDirty:t,discardAll:s}=xe(),o=r&&t,i=St({shouldBlockFn:()=>o,enableBeforeUnload:()=>o,withResolver:!0}),c=i.status==="blocked";return e.jsx(je,{open:c,onOpenChange:d=>{!d&&c&&i.reset()},children:e.jsxs(Le,{children:[e.jsxs(ke,{children:[e.jsx(we,{children:"Discard unsaved changes?"}),e.jsx(Me,{children:"You have edits that haven't been saved. Leaving this page will lose them."})]}),e.jsxs(Ne,{children:[e.jsx(Se,{onClick:()=>c&&i.reset(),children:"Keep editing"}),e.jsx(Ze,{onClick:()=>{c&&(s(),i.proceed())},children:"Discard & leave"})]})]})})}function P2({lessonId:r,canEdit:t,children:s}){const o=V2(r,t);return e.jsxs(b1.Provider,{value:o,children:[s,t?e.jsx(A2,{}):null]})}function xe(){return n.useContext(b1)??D2}const De="ui-monospace, 'JetBrains Mono', 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace",T2=n.lazy(async()=>{const[{default:r,EditorView:t},{html:s},o,i]=await Promise.all([be(()=>import("./index-D1_F4cg-.js"),__vite__mapDeps([0,1,2,3,4])),be(()=>import("./index-CZJTNgH-.js"),__vite__mapDeps([5,3,2,4])),be(()=>import("./index-D5JxrdXk.js").then(b=>b.aQ),__vite__mapDeps([2,3])),be(()=>import("./index-BJxbYdMH.js").then(b=>b.i),[])]),{HighlightStyle:c,syntaxHighlighting:d}=o,{tags:a}=i,u=typeof document<"u"&&document.documentElement.classList.contains("light"),m=t.theme({"&":{backgroundColor:"var(--code-bg)",color:"var(--code-text)",fontSize:"13px",height:"100%"},".cm-content":{fontFamily:De,caretColor:"var(--code-cursor)"},".cm-scroller":{fontFamily:De,lineHeight:"1.6"},".cm-cursor, .cm-dropCursor":{borderLeftColor:"var(--code-cursor)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"var(--code-selection)"},".cm-gutters":{backgroundColor:"transparent",color:"var(--code-gutter)",border:"none"},".cm-activeLine":{backgroundColor:"var(--code-active-line)"},".cm-activeLineGutter":{backgroundColor:"var(--code-active-line)",color:"var(--code-text)"},".cm-lineNumbers .cm-gutterElement":{padding:"0 8px 0 14px"},".cm-foldGutter":{color:"var(--code-gutter)"},"&.cm-focused":{outline:"none"}},{dark:!u}),k=d(c.define([{tag:[a.comment,a.lineComment,a.blockComment],color:"var(--code-comment)",fontStyle:"italic"},{tag:[a.tagName,a.keyword,a.operatorKeyword,a.modifier,a.controlKeyword],color:"var(--code-keyword)"},{tag:[a.function(a.variableName),a.function(a.propertyName)],color:"var(--code-keyword)"},{tag:[a.angleBracket,a.bracket,a.punctuation,a.separator,a.operator],color:"var(--code-attr)"},{tag:[a.attributeName,a.propertyName],color:"var(--code-attr)"},{tag:[a.attributeValue,a.string,a.special(a.string)],color:"var(--code-string)"},{tag:[a.number,a.bool,a.null,a.atom,a.unit,a.typeName,a.className],color:"var(--code-number)"},{tag:[a.variableName,a.definition(a.variableName)],color:"var(--code-text)"}]));function w({value:b,onChange:L,ariaLabel:O}){return e.jsx(r,{value:b,onChange:L,theme:m,extensions:[s(),k],height:"100%","aria-label":O,basicSetup:{lineNumbers:!0,foldGutter:!0,highlightActiveLine:!0,highlightActiveLineGutter:!0,autocompletion:!0,bracketMatching:!0},style:{height:"100%"}})}return{default:w}});function I2({value:r,onChange:t,ariaLabel:s}){return e.jsx("textarea",{value:r,onChange:o=>t(o.target.value),"aria-label":s,spellCheck:!1,style:{fontFamily:De},className:"h-full w-full resize-none bg-(--code-bg) p-3 text-[13px] leading-[1.6] text-(--code-text) focus:outline-none"})}function W2({value:r,onChange:t,className:s,ariaLabel:o="Visualization code"}){const[i,c]=n.useState(!1);n.useEffect(()=>c(!0),[]);const d=e.jsx(I2,{value:r,onChange:t,ariaLabel:o});return e.jsx("div",{className:H("h-full w-full overflow-hidden text-left",s),children:i?e.jsx(n.Suspense,{fallback:d,children:e.jsx(T2,{value:r,onChange:t,ariaLabel:o})}):d})}function U2({code:r,onCodeChange:t,title:s}){const[o,i]=n.useState("preview"),[c,d]=n.useState(!1);async function a(){try{await navigator.clipboard.writeText(r),d(!0),setTimeout(()=>d(!1),1500)}catch{}}return e.jsxs("div",{className:"overflow-hidden rounded-[24px] border border-(--border-strong) bg-(--surface-overlay) shadow-[var(--shadow-viz)]",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-(--border-subtle) px-3 py-2",children:[e.jsxs("div",{role:"tablist","aria-label":"Visualization editor view",className:"inline-flex items-center gap-1",children:[e.jsx(t1,{active:o==="preview",onClick:()=>i("preview"),icon:e.jsx(Ot,{className:"size-4","aria-hidden":!0}),label:"Preview"}),e.jsx(t1,{active:o==="code",onClick:()=>i("code"),icon:e.jsx(Et,{className:"size-4","aria-hidden":!0}),label:"Code"})]}),o==="code"?e.jsxs(Q,{type:"button",variant:"ghost",size:"sm",onClick:a,className:"gap-1.5 text-(--text-secondary)",children:[c?e.jsx(o1,{className:"size-4 text-(--brand-dynamiclearning)","aria-hidden":!0}):e.jsx(M1,{className:"size-4","aria-hidden":!0}),c?"Copied":"Copy code"]}):e.jsx("span",{className:"pr-1 text-[11px] font-bold uppercase tracking-[0.14em] text-(--text-muted)",children:"Live preview"})]}),e.jsx("div",{className:"dl-viz-frame aspect-[4/5] w-full bg-(--surface-sidebar) sm:aspect-video",children:o==="preview"?e.jsx("iframe",{title:`${s} preview`,srcDoc:r,className:"h-full w-full border-0",sandbox:"allow-scripts allow-pointer-lock allow-popups allow-forms",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"}):e.jsx(W2,{value:r,onChange:t,ariaLabel:`${s} visualization code`})})]})}function t1({active:r,onClick:t,icon:s,label:o}){return e.jsxs("button",{type:"button",role:"tab","aria-selected":r,onClick:t,className:H("inline-flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-sm font-medium transition-colors",r?"bg-(--surface-overlay) text-(--text-primary)":"text-(--text-secondary) hover:bg-(--surface-overlay) hover:text-(--text-primary)"),children:[s,o]})}function q2({value:r,onChange:t}){return e.jsxs("div",{className:"island-shell rounded-2xl p-1",children:[e.jsxs("div",{className:"flex items-center gap-1.5 px-3 pt-2 text-[11px] font-bold uppercase tracking-[0.14em] text-(--text-muted)",children:[e.jsx(ht,{className:"size-3.5","aria-hidden":!0}),"Slide text · Markdown"]}),e.jsx("textarea",{value:r,onChange:s=>
2t(s.target.value),"aria-label":"Slide text (Markdown)",spellCheck:!0,rows:6,className:"mt-1 min-h-[8rem] w-full resize-y rounded-xl bg-transparent px-3 py-2 text-sm leading-[1.6] text-(--text-primary) placeholder:text-(--text-muted) focus:outline-none",placeholder:"Write the slide narrative in Markdown…"})]})}function Q2({lessonId:r,slide:t}){const{isEditing:s,registerBaseline:o,getDraft:i,setContent:c,setCode:d}=xe(),a=t.title?.trim()||`Slide ${t.order}`,{data:u,isPending:m,isError:k,error:w}=_2(r,t.id,s);n.useEffect(()=>{u&&o(t.id,{content:u.content??"",code:u.code??""})},[u,t.id,o]);const b=i(t.id);return m||!b?e.jsxs("div",{className:"space-y-3",children:[e.jsx(ge,{className:"aspect-video w-full rounded-[24px] bg-(--surface-overlay-strong)"}),e.jsx(ge,{className:"h-32 w-full rounded-2xl bg-(--surface-overlay-strong)"})]}):k?e.jsxs("p",{className:"rounded-2xl border border-(--status-red)/40 bg-(--surface-overlay) px-4 py-3 text-sm text-(--status-red)",children:["Couldn't load this slide's source",w instanceof Error?`: ${w.message}`:"."]}):e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(U2,{code:b.code,onCodeChange:L=>d(t.id,L),title:a}),e.jsx(q2,{value:b.content,onChange:L=>c(t.id,L)})]})}const g1="about:blank";function K2({status:r,lessonId:t,slideId:s}){if(r!=="ready")return null;const o=he.trim().replace(/\/+$/,"");return o?`${o}/lessons/${t}/slides/${s}/view`:g1}function G2({lessonId:r,slide:t,lessonSlides:s,lessonWithAudio:o,isOwner:i,isActive:c,playingSlideId:d,setPlayingSlideId:a,registerSection:u,registerIframe:m,onHeadersChange:k,onScrollToSlide:w,onAttachToChat:b}){const L=n.useRef(null),{selection:O,clear:A}=Q1(L),P=n.useRef(null),_=n.useRef(null),[B,F]=n.useState(!1),{isFullscreen:S,toggle:q}=K1(_),T=G1(),{used:J,markUsed:K}=Y1(),G=T&&!J,W=n.useCallback(()=>{K(),q()},[K,q]),[v,U]=n.useState(!0),{canEdit:y,isEditing:Z,savedRev:j}=xe(),R=y&&Z,I=j(t.id);n.useEffect(()=>{if(B)return;const l=L.current;if(!l)return;const h=new IntersectionObserver(f=>{for(const N of f)if(N.isIntersecting){F(!0),h.disconnect();return}},{rootMargin:"150% 0px 150% 0px"});return h.observe(l),()=>h.disconnect()},[B]);const E=Ct(r,B&&t.status!=="pending"&&t.status!=="failed"?t.id:null),C=E.data?.content??null,x=E.data?.audioData??null,M=E.data?.actions??null,g=n.useMemo(()=>C!==null?N1(C,t.title):null,[C,t.title]),$=n.useMemo(()=>g!==null?X1(g):[],[g]);n.useEffect(()=>{k(t.id,$)},[$,k,t.id]);const z=n.useCallback(l=>{L.current=l,u(t.id,l)},[u,t.id]),D=a1(),Ee=n.useCallback(l=>{const h=P.current;if(h&&h!==l&&D.unregister(h),P.current=l,m(t.id,l),l){D.register(l);const f=()=>D.register(l);l.addEventListener("load",f,{once:!0})}},[m,t.id,D]);n.useEffect(()=>()=>{const l=P.current;l&&D.unregister(l)},[D]);const He=n.useCallback(l=>{P.current?.contentWindow?.postMessage(l,"*")},[]),ee=J1({slideId:t.id,audioData:x,actions:M,playingSlideId:d,setPlayingSlideId:a,onAction:He,fireOnSeek:l=>"type"in l&&l.type==="reveal"});n.useEffect(()=>{if(!S){U(!0);return}const l=_.current;if(!l)return;let h=null;function f(){U(!0),h!==null&&window.clearTimeout(h),h=window.setTimeout(()=>U(!1),2500)}function N(V){const X=V.data;X&&X.type==="dl-viz-activity"&&f()}return f(),l.addEventListener("pointermove",f),l.addEventListener("pointerdown",f),window.addEventListener("message",N),()=>{l.removeEventListener("pointermove",f),l.removeEventListener("pointerdown",f),window.removeEventListener("message",N),h!==null&&window.clearTimeout(h)}},[S]);const se=K2({status:t.status,lessonId:r,slideId:t.id}),te=se&&I>0?`${se}${se.includes("?")?"&":"?"}v=${I}`:se,ce=o&&t.status==="ready"&&E.data?.status!=="ready",fe=!!te&&!ce,Y=t.title?.trim()||`Slide ${t.order}`,re=g!==null?S1(g):[],de=re.some(l=>l.type==="viz"),ne=e.jsx("div",{className:de?"dl-inline-viz":void 0,"data-slide-viz":t.id,children:e.jsx(ze,{ref:_,className:H("group/viz-card overflow-hidden p-0",S?"fixed inset-0 z-[60] flex h-screen h-[100dvh] w-screen touch-none flex-col rounded-none border-0 bg-black shadow-none":"rounded-[24px] border-[color:var(--border-strong)] bg-[color:var(--surface-overlay)] shadow-[var(--shadow-viz)]",S&&!v&&"curs
2or-none"),children:e.jsxs(_e,{className:H("relative p-0",S&&"flex h-full flex-1 flex-col"),children:[e.jsx("div",{className:H("dl-viz-frame w-full overflow-hidden bg-[color:var(--surface-sidebar)]",S?"h-full flex-1":"aspect-[4/5] border-b border-(--border-subtle) sm:aspect-video"),children:fe?e.jsx("iframe",{ref:Ee,title:`${Y} visualization`,src:te??g1,className:"h-full w-full",sandbox:"allow-scripts allow-pointer-lock",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):e.jsx(Y2,{status:ce?"generating":t.status,slideId:t.id,lessonId:r})}),ee.src?e.jsx("audio",{ref:ee.audioRef,src:ee.src,preload:"auto",...ee.audioEventHandlers}):null,S?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:H("pointer-events-none absolute left-4 top-4 z-20 transition-opacity duration-200",v?"opacity-100":"opacity-0"),children:e.jsx("span",{className:"inline-flex items-center rounded-md bg-black/60 px-3 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:Y})}),T&&e.jsx("button",{type:"button",onClick:W,"aria-label":"Exit fullscreen",title:"Exit fullscreen",className:H("absolute right-4 top-4 z-20 grid size-10 place-items-center rounded-full bg-black/60 text-white backdrop-blur-sm transition-opacity duration-200 hover:bg-black/75",v?"opacity-100":"pointer-events-none opacity-0"),children:e.jsx(Pe,{size:16,weight:"Bold","aria-hidden":!0})}),!T&&e.jsx("div",{className:H("absolute inset-x-0 bottom-0 z-10 bg-gradient-to-t from-black/80 to-transparent pt-12 transition-opacity duration-200",v?"opacity-100":"opacity-0"),children:e.jsxs("div",{className:H("flex items-center gap-3 px-3 py-2",!v&&"pointer-events-none"),children:[x?e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx(Re,{controller:ee})}):e.jsx("div",{className:"min-w-0 flex-1"}),e.jsx("button",{type:"button",onClick:W,"aria-label":"Exit fullscreen",title:"Exit fullscreen",className:"bottom-0 grid size-10 shrink-0 place-items-center rounded-full bg-black/60 text-white backdrop-blur-sm transition-colors hover:bg-black/75",children:e.jsx(Pe,{size:16,weight:"Bold","aria-hidden":!0})})]})}),T&&x&&e.jsx("div",{className:H("absolute inset-x-0 bottom-0 z-10 bg-gradient-to-t from-black/80 to-transparent pt-12 transition-opacity duration-200",v?"opacity-100":"pointer-events-none opacity-0"),children:e.jsx(Re,{controller:ee})})]}):e.jsxs(e.Fragment,{children:[fe&&e.jsx("button",{type:"button",onClick:W,"aria-label":"Enter fullscreen",title:"Enter fullscreen",className:H("absolute bottom-3 right-3 z-20 grid size-10 place-items-center rounded-full backdrop-blur-sm transition-opacity duration-200 sm:size-9","opacity-100 sm:opacity-0 sm:group-hover/viz-card:opacity-100 sm:focus-visible:opacity-100","mb-[env(safe-area-inset-bottom,0)]",G?"bg-(--primary) text-(--primary-foreground) shadow-[0_0_0_4px_color-mix(in_oklab,var(--primary)_30%,transparent)] hover:brightness-110 dl-wiggle-attn":"bg-(--stage-chip-bg) text-(--stage-glyph) hover:bg-(--stage-chip-bg-hover)"),children:e.jsx(et,{size:16,weight:"Bold","aria-hidden":!0})}),te&&x?e.jsx("div",{className:"bg-(--surface-sidebar)",children:e.jsx(Re,{controller:ee})}):null]})]})})});let ue=0;const me=l=>{for(;ue<$.length;){const h=$[ue];if(ue+=1,h.depth===l)return h}return null},Oe={...tt(l=>{const h=s.find(f=>f.order===l);h&&w(h.id)}),h2:({children:l,node:h,...f})=>{const N=me(2),V=N?ve(t.id,N.slug):void 0;return e.jsx("h2",{id:V,...f,children:l})},h3:({children:l,node:h,...f})=>{const N=me(3),V=N?ve(t.id,N.slug):void 0;return e.jsx("h3",{id:V,...f,children:l})}},p=(l,h)=>e.jsx("article",{className:"dl-slide-transcript prose max-w-none px-1 text-sm",children:e.jsx(lt,{skipHtml:!0,remarkPlugins:dt,rehypePlugins:ct,components:Oe,children:ut(E1(H1(l)))})},h);return e.jsxs("section",{ref:z,id:ye(t.id),"data-slide-id":t.id,"data-slide-order":t.order,className:H("dl-slide-section flex flex-col gap-5 scroll-mt-24 transition-opacity duration-200 motion-reduce:transition-none",c?"opacity-100":"opacity-[0.78] hover:opacity-95"),"aria-label":Y,children:[e.jsxs("header",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("span",{"aria-hidden":!0,
2className:H("inline-flex size-6 shrink-0 items-center justify-center rounded-full text-[11px] font-medium transition-colors",c?"bg-(--sidebar-primary) text-(--text-on-primary)":"bg-(--surface-overlay) text-(--text-secondary)"),children:t.order}),e.jsx("h2",{className:"display-title min-w-0 flex-1 text-[28px] leading-[1.15] tracking-[-0.01em] text-(--text-primary)",children:Y}),e.jsx("div",{className:"flex items-center gap-2",children:i&&!R?e.jsx(X2,{lessonId:r,slide:t}):null})]}),R?e.jsx(Q2,{lessonId:r,slide:t}):de?re.map((l,h)=>l.type==="viz"?e.jsx("div",{children:ne},`viz-${t.id}-${l.id}-${h}`):p(l.content,`md-${t.id}-${h}`)):e.jsxs(e.Fragment,{children:[ne,g!==null&&p(g,`legacy-${t.id}`),g===null&&B&&(t.status==="ready"||t.status==="text_ready")?e.jsx("p",{className:"px-4 text-xs text-(--text-muted)",children:"Loading transcript…"}):null]}),O&&b?e.jsx(rt,{text:O.text,rect:O.rect,onAttach:l=>{b(l),A()},onDismiss:A}):null]})}function Y2({status:r,slideId:t,lessonId:s}){const o=r==="failed",i=st(s);return r==="text_ready"?e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-2 bg-[color:var(--surface-sidebar)] px-8 py-6",children:[e.jsx("span",{className:"text-xs font-medium text-[color:var(--text-muted)]",children:"Visuals pending"}),e.jsx("p",{className:"text-xs text-[color:var(--text-muted)]",children:"The visuals haven't been built yet."})]}):e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 bg-[color:var(--surface-sidebar)] px-8 py-6",children:[e.jsxs("span",{className:`flex items-center gap-1.5 text-xs font-medium ${o?"text-[color:var(--status-red)]":"text-amber-400"}`,children:[!o&&e.jsx("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-amber-400"}),r==="pending"&&"Queued",r==="generating"&&"Building",r==="failed"&&"Build failed"]}),e.jsx("p",{className:"text-xs text-[color:var(--text-muted)]",children:o?"Something went wrong while building this slide.":"This slide is being built — it will fill in here when ready."}),o&&e.jsx(Q,{variant:"outline",size:"sm",disabled:i.isPending,onClick:()=>i.mutate(t),children:i.isPending?"Retrying…":"Retry"}),!o&&e.jsx("div",{className:"aspect-[16/9] w-full max-w-md",children:e.jsx(nt,{slideId:t})})]})}function X2({lessonId:r,slide:t}){const[s,o]=n.useState(!1),[i,c]=n.useState(!1),[d,a]=n.useState(!1),u=ot(r),m=t.status==="ready";return e.jsxs(e.Fragment,{children:[e.jsxs(i1,{children:[e.jsx(l1,{asChild:!0,children:e.jsx(Q,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Slide options",className:"h-7 w-7 rounded-md text-(--text-muted) hover:bg-(--surface-overlay) hover:text-(--text-primary) data-[state=open]:bg-(--surface-overlay)",children:e.jsx(Ve,{size:14,weight:"Bold","aria-hidden":!0})})}),e.jsxs(c1,{align:"end",sideOffset:6,className:"w-44",children:[e.jsxs(ie,{onSelect:()=>o(!0),children:[e.jsx(C1,{size:14,weight:"Outline","aria-hidden":!0}),"Add slide after"]}),e.jsxs(ie,{onSelect:()=>c(!0),disabled:!m,children:[e.jsx(Z1,{size:14,weight:"Outline","aria-hidden":!0}),"Edit slide"]}),e.jsxs(ie,{variant:"destructive",onSelect:()=>a(!0),disabled:u.isPending,children:[e.jsx(d1,{size:14,weight:"Outline","aria-hidden":!0}),"Delete slide"]})]})]}),e.jsx(at,{lessonId:r,open:s,onOpenChange:o}),e.jsx(it,{lessonId:r,slideId:t.id,slideTitle:t.title??null,open:i,onOpenChange:c}),e.jsx(je,{open:d,onOpenChange:a,children:e.jsxs(Le,{children:[e.jsxs(ke,{children:[e.jsx(we,{children:"Delete slide"}),e.jsx(Me,{children:"Are you sure you want to delete this slide? This action cannot be undone."})]}),e.jsxs(Ne,{children:[e.jsx(Se,{children:"Cancel"}),e.jsx(Ze,{onClick:()=>u.mutate(t.id),children:"Delete"})]})]})})]})}function J2({outline:r,activeSlideId:t,activeHeaderId:s,onJump:o}){const[i,c]=n.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"dl-floating-toc-wrap pointer-events-auto fixed right-6 top-1/2 z-20 hidden -translate-y-1/2 xl:block",children:e.jsxs("div",{className:"group",children:[e.jsx(er,{outline:r,activeSlideId:t,onJump:o}),e.jsx("div",{className:"dl-toc-expanded pointer-events-none absolute right-0 top-0 w-72 max-h-[calc(100vh-8rem)] flex-col overflow-hidden rounded-2xl border border-(--border-subtle) bg-(--surface-raised)/95 o
2pacity-0 shadow-[var(--shadow-e3)] backdrop-blur transition-opacity duration-150 supports-[backdrop-filter]:bg-(--surface-raised)/80 group-hover:pointer-events-auto group-hover:opacity-100 flex",children:e.jsx(r1,{outline:r,activeSlideId:t,activeHeaderId:s,onJump:o})})]})}),e.jsxs("div",{className:"xl:hidden",children:[e.jsx(f1,{"aria-label":"Open table of contents","aria-expanded":i,onClick:()=>c(d=>!d),style:{bottom:"calc(72px + 44px + 12px + env(safe-area-inset-bottom, 0px))"},children:e.jsx(p1,{size:18,weight:"Outline","aria-hidden":!0})}),i?e.jsx("div",{className:"fixed inset-0 z-40 bg-black/40",onClick:()=>c(!1),"aria-hidden":!0,children:e.jsx("aside",{"aria-label":"Lesson contents",onClick:d=>d.stopPropagation(),className:"absolute right-3 bottom-3 top-3 flex w-[min(20rem,calc(100vw-1.5rem))] flex-col overflow-hidden rounded-2xl border border-(--border-subtle) bg-(--surface-raised) shadow-[var(--shadow-e3)]",children:e.jsx(r1,{outline:r,activeSlideId:t,activeHeaderId:s,onJump:d=>{o(d),c(!1)}})})}):null]})]})}function er({outline:r,activeSlideId:t,onJump:s}){return r.length===0?null:e.jsx("nav",{"aria-label":"Lesson outline",className:"dl-toc-rail flex flex-col items-end gap-2 py-3 pr-2 transition-opacity duration-150 group-hover:opacity-0",children:r.map(o=>{const i=o.slide.id===t,c=o.slide.title?.trim()||`Slide ${o.slide.order}`;return e.jsxs("button",{type:"button",onClick:()=>s(ye(o.slide.id)),"aria-label":c,className:"group/dash relative flex items-center justify-end py-1",children:[e.jsx("span",{className:"pointer-events-none absolute right-full top-1/2 mr-3 max-w-[180px] -translate-y-1/2 truncate whitespace-nowrap rounded-md bg-(--surface-sidebar) px-2 py-0.5 text-[11px] font-medium text-(--text-primary) opacity-0 shadow-[var(--shadow-e2)] transition-opacity group-hover/dash:opacity-100",children:c}),e.jsx("span",{className:H("block h-[2px] rounded-full transition-all",i?"w-6 bg-(--brand-dynamiclearning)":"w-3 bg-(--border-strong) group-hover/dash:w-4 group-hover/dash:bg-(--text-secondary)")})]},o.slide.id)})})}function r1({outline:r,activeSlideId:t,activeHeaderId:s,onJump:o}){return e.jsxs(e.Fragment,{children:[e.jsx("header",{className:"flex items-center justify-between gap-2 border-b border-(--border-subtle) px-4 py-2.5",children:e.jsx("p",{className:"text-[11px] font-medium uppercase tracking-[0.14em] text-(--text-muted)",children:"On this lesson"})}),e.jsx("nav",{className:"flex-1 overflow-y-auto px-2 py-2",children:r.length===0?e.jsx("p",{className:"px-2 py-2 text-xs italic text-(--text-muted)",children:"No slides to show yet."}):e.jsx("ul",{className:"flex flex-col gap-0.5",children:r.map(i=>{const c=i.slide.id===t,d=ye(i.slide.id),a=i.slide.title?.trim()||`Slide ${i.slide.order}`;return e.jsxs("li",{children:[e.jsxs("button",{type:"button",onClick:()=>o(d),className:H("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs transition-colors",c?"bg-(--surface-overlay) text-(--text-primary)":"text-(--sidebar-text-default) hover:bg-(--surface-overlay)"),children:[e.jsx("span",{"aria-hidden":!0,className:H("inline-block size-1.5 shrink-0 rounded-full",c?"bg-(--brand-dynamiclearning)":"bg-(--border-strong)")}),e.jsx("span",{className:"min-w-0 flex-1 truncate font-medium",children:a})]}),i.headers.length>0?e.jsx("ul",{className:"mb-1 ml-4 mt-0.5 flex flex-col gap-0.5 border-l border-(--border-subtle) pl-2",children:i.headers.map((u,m)=>{const k=ve(i.slide.id,u.slug),w=k===s;return e.jsx("li",{children:e.jsx("button",{type:"button",onClick:()=>o(k),className:H("block w-full truncate rounded px-2 py-1 text-left text-[11px] transition-colors",u.depth===3?"pl-4":"",w?"text-(--text-primary)":"text-(--text-muted) hover:text-(--text-secondary)"),title:u.text,children:u.text})},`${k}-${m}`)})}):null]},i.slide.id)})})})]})}function tr({lessonId:r}){const t=Ce(),s=ft(r),o=s.data?.id??null;n.useEffect(()=>{s.isSuccess&&o&&t({to:"/lessons/$lessonId",params:{lessonId:o}})},[s.isSuccess,o,t]);function i(){s.isPending||s.isSuccess||s.mutate()}const c=s.isPending||s.isSuccess;return e.jsxs(Q,{type:"button",variant:"outline",size:"sm",onClick:i,disabled:c,"aria-label":c?"Saving":"Save to library",children:[e.jsx(O1,{size:14,weight:"Outline","aria-hidden":!0}),c?"Saving…":"Save to library"]})}function rr({lessonId:r,lessonTitle:t,isPublic:s}){const o=Ce(),i=yt(),[c,d]=n.useState(!1),[a,u]=n.useState(!1),[m,k]=n.useState(!1);async function w(){k(!0);try{const L=await $1(r,{baseUrl:he,sourceUrl:window.location.href}),O=document.createElement("a");O.href=URL.createObjectURL(L),O.download=`${t}.md`,O.click(),URL.revokeObjectURL(O.href)}finally{k(!1)}}function b(){i.mutate(r,{onSuccess:()=>{o({to:"/library",search:{scope:"owned",sort:"recent",q:"",page:1}})}})}return e.jsxs(e.Fragment,{children:[e.jsxs(i1,{children:[e.jsx(l1,{asChild:!0,children:e.jsx(Q,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Lesson options",className:"h-8 w-8 rounded-md text-(--text-muted) hover:bg-(--surface-overlay) hover:text-(--text-primary) data-[state=open]:bg-(--surface-overlay)",children:e.jsx(Ve,{size:16,weight:"Bold","aria-hidden":!0})})}),e.jsxs(c1,{align:"end",sideOffset:6,className:"w-44",children:[e.jsxs(ie,{onSelect:L=>{L.preventDefault(),w()},disabled:m,children:[e.jsx(u1,{size:14,weight:"Outline","aria-hidden":!0}),m?"Exporting…":"Export notes"]}),e.jsxs(ie,{onSelect:()=>d(!0),children:[e.jsx(x1,{size:14,weight:"Outline","aria-hidden":!0}),"Share"]}),e.jsx(R1,{}),e.jsxs(ie,{variant:"destructive",onSelect:()=>u(!0),disabled:i.isPending,children:[e.jsx(d1,{size:14,weight:"Outline","aria-hidden":!0}),"Delete lesson"]})]})]}),e.jsx(mt,{lessonId:r,isPublic:s,open:c,onOpenChange:d}),e.jsx(je,{open:a,onOpenChange:u,children:e.jsxs(Le,{children:[e.jsxs(ke,{children:[e.jsx(we,{children:"Delete lesson"}),e.jsx(Me,{children:"Are you sure you want to delete this lesson? All slides and chat history will be removed. This action cannot be undone."})]}),e.jsxs(Ne,{children:[e.jsx(Se,{children:"Cancel"}),e.jsx(Ze,{onClick:b,disabled:i.isPending,children:i.isPending?"Deleting…":"Delete"})]})]})})]})}const sr="Anonymous";function nr({clonedFromLessonId:r,clonedFromDisplayName:t,clonedFromAvailable:s}){const o=t||sr;return s===!0&&!!r?e.jsxs("p",{className:"text-xs text-(--text-secondary)",children:["Saved from"," ",e.jsx("a",{href:`/lessons/${r}`,target:"_blank",rel:"noopener noreferrer",className:"text-(--brand-dynamiclearning) hover:underline",children:o})]}):e.jsxs("p",{className:"text-xs text-(--text-secondary)",children:["Saved from ",o," ",e.jsx("span",{className:"text-(--text-muted)",children:"· Original no longer available"})]})}function or(r){const t=new Date(r);return Number.isNaN(t.getTime())?null:t.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}function ar({authorDisplayName:r,authorDisplaySlug:t,viewCount:s,saveCount:o,createdAt:i}){const c=r??"Anonymous",d=i?or(i):null,a=[];typeof s=="number"&&s>0&&a.push(`${s} view${s===1?"":"s"}`),typeof o=="number"&&o>0&&a.push(`${o} save${o===1?"":"s"}`);
2const u=[d,...a].filter(Boolean).join(" · ");return e.jsxs("p",{className:"text-[13px] text-(--text-muted)",children:[e.jsx("span",{className:"font-medium uppercase tracking-[0.08em] text-(--text-secondary)",children:t?e.jsx(Be,{to:"/u/$slug",params:{slug:t},className:"hover:text-(--text-primary)",children:c}):c}),u?e.jsxs(e.Fragment,{children:[" · ",u]}):null]})}function ir(r){let t=r.parentElement;for(;t;){const s=getComputedStyle(t).overflowY;if(s==="auto"||s==="scroll")return t;t=t.parentElement}return window}function lr({title:r,targetEl:t}){const[s,o]=n.useState(!1);return n.useEffect(()=>{if(!t)return;const i=ir(t),c=()=>o(t.getBoundingClientRect().bottom<=0);return c(),i.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),()=>{i.removeEventListener("scroll",c),window.removeEventListener("resize",c)}},[t]),e.jsx("div",{className:H("sticky top-0 z-40 -mx-3 border-b border-(--border-subtle) bg-(--bg)/85 backdrop-blur-md transition-opacity duration-150 sm:-mx-4",s?"opacity-100":"pointer-events-none h-0 overflow-hidden opacity-0"),"aria-hidden":!s,children:e.jsx("div",{className:"mx-auto flex max-w-[56rem] items-center px-3 py-2.5 sm:px-4",children:e.jsx("span",{className:"display-title truncate text-[14px] font-semibold leading-tight text-(--text-primary)",children:r})})})}function cr({value:r,onChange:t,onSend:s,disabled:o,textareaRef:i,autoFocus:c}){const d=r.trim(),a=d.length>0&&!o;function u(){a&&(s(d),t(""))}return e.jsx("footer",{"data-testid":"slide-chat-composer",className:"border-t border-[color:var(--border-subtle)] p-3",children:e.jsxs("div",{className:"dl-slide-chat-composer island-shell flex flex-col gap-1 rounded-[16px] p-2",children:[e.jsx("textarea",{ref:i,autoFocus:c,"aria-label":"Chat message input",placeholder:"Ask about this slide…",value:r,disabled:o,rows:1,onChange:m=>t(m.target.value),onKeyDown:m=>{m.key==="Enter"&&!m.shiftKey&&a&&(m.preventDefault(),u())},className:"min-h-9 w-full resize-none bg-transparent px-2 py-1 text-base leading-[1.5] text-[color:var(--text-primary)] outline-none placeholder:text-[color:var(--text-muted)] sm:text-[14px]"}),e.jsx("div",{className:"flex items-center justify-end px-1",children:e.jsx("button",{type:"button","aria-label":"Send message",disabled:!a,onClick:u,className:H("inline-flex size-7 shrink-0 items-center justify-center rounded-md transition-colors motion-reduce:transition-none",a?"dl-slide-chat-send-active bg-[color:var(--sidebar-primary)] text-[color:var(--text-on-primary)] hover:opacity-90":"dl-slide-chat-send-muted bg-[color:var(--surface-overlay)] text-[color:var(--text-muted)]"),children:e.jsx(Lt,{className:"dl-icon size-3.5","aria-hidden":!0})})})]})})}function s1(r,t,s,o){const i=new Audio(`data:audio/mpeg;base64,${r}`),c=new Set;t?.length&&i.addEventListener("timeupdate",()=>{const d=i.currentTime;t.forEach((a,u)=>{const m=`${a.type}::${u}`;d>=a.timestamp&&!c.has(m)&&(c.add(m),a.type==="interact"&&a.id?s?.({id:a.id,value:a.value}):a.type==="navigate_slide"&&a.slide_order!=null&&o?.(a.slide_order))})}),i.play().catch(()=>{})}function dr(r){return r.split(`
3`).map(s=>`> ${s}`).join(`
4`)+`
5
6`}function ae(){return crypto.randomUUID()}const n1="Sorry, something went wrong. Please try again.";function ur({lessonId:r,slideId:t,className:s,onClose:o,onNavigateSlide:i,onInteractAction:c,panelId:d,headerId:a,panelRef:u,ref:m}){const k=a??(d?`${d}-heading`:void 0),[w,b]=n.useState([]),[L,O]=n.useState(""),A=n.useRef(!1),P=n.useRef(null),_=n.useRef(null);n.useImperativeHandle(m,()=>({attachContext:C=>{const x=dr(C);O(M=>{const g=M.trim().length===0?x:`${M}
7
8${x}`;return setTimeout(()=>{const $=_.current;if(!$)return;$.focus();const z=g.length;$.setSelectionRange(z,z)},0),g})},focusInput:()=>{_.current?.focus()}}),[]);const B=n.useMemo(()=>bt(r),[r]),F=gt(r,B);n.useEffect(()=>{if(A.current||!F.data)return;A.current=!0;const C=F.data.messages.map(x=>({id:ae(),role:x.role,type:"text",text:x.content}));b(C)},[F.data]);const S=vt(r,t,B),q=jt(),T=Fe(),J=Ce(),{openPaywall:K}=z1(),[G,W]=n.useState(!1),v=n.useRef(null),U=n.useRef(null);n.useEffect(()=>()=>{U.current?.abort()},[]);const y=S.isPending||G&&v.current===null;n.useEffect(()=>{P.current?.scrollIntoView({behavior:"smooth"})},[w,S.isPending,G]);const Z=n.useCallback(C=>{const x={id:ae(),role:"user",type:"text",text:C};b(M=>[...M,x])},[]),j=n.useCallback(()=>{b(C=>[...C,{id:ae(),role:"assistant",type:"text",text:n1}])},[]),R=n.useCallback(()=>{const C=v.current;C!==null&&b(x=>x.map(M=>M.id===C&&M.type==="assistant_response"?{...M,error:!0}:M))},[]),I=n.useCallback(C=>{Z(C),v.current=null,W(!0),U.current?.abort();const x=new AbortController;U.current=x,_1(r,t,C,B,{onToken:g=>{if(v.current===null){const $=ae();v.current=$,b(z=>[...z,{id:$,role:"assistant",type:"assistant_response",text:g,actions:[]}])}else{const $=v.current;b(z=>z.map(D=>D.id===$&&D.type==="assistant_response"?{...D,text:D.text+g}:D))}},onActions:g=>{if(v.current===null){const $=ae();v.current=$,b(z=>[...z,{id:$,role:"assistant",type:"assistant_response",text:"",actions:g.actions,audioData:g.audio_data,actionTimeline:g.action_timeline}
8])}else b($=>$.map(z=>z.id===v.current&&z.type==="assistant_response"?{...z,actions:g.actions,audioData:g.audio_data,actionTimeline:g.action_timeline}:z));g.audio_data&&s1(g.audio_data,g.action_timeline,c,i)},onBalance:g=>q({creditBalance:g}),onError:()=>{v.current===null?j():R()}},{baseUrl:he,signal:x.signal}).then(()=>{T.invalidateQueries({queryKey:["chatHistory",r]})}).catch(g=>{if(!x.signal.aborted){if(g instanceof B1&&g.status===402){const $=g.body?.requiredCredits;K({trigger:"slide_chat",requiredCredits:$??0});return}v.current===null?j():R()}}).finally(()=>W(!1))},[Z,j,R,q,T,J,r,t,B,c,i]);n.useCallback(C=>{Z(C),S.mutate(C,{onSuccess:x=>{const M={id:ae(),role:"assistant",type:"assistant_response",text:x.text,actions:x.actions,audioData:x.audio_data,actionTimeline:x.action_timeline};b(g=>[...g,M]),x.audio_data&&s1(x.audio_data,x.action_timeline,c,i)},onError:j})},[Z,j,S,c,i]);const E=I;return e.jsxs("aside",{ref:u,id:d,"aria-label":"Slide chat panel","aria-labelledby":k,tabIndex:-1,className:`dl-slide-chat-panel flex flex-col overflow-hidden rounded-[24px] border border-[color:var(--border-strong)] bg-[color:var(--surface-sidebar)] shadow-[var(--shadow-e3)] motion-reduce:transition-none ${s??""}`,children:[e.jsxs("header",{"data-testid":"slide-chat-header",className:"flex items-center justify-between gap-2 border-b border-[color:var(--border-subtle)] px-4 py-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{"aria-hidden":!0,className:"inline-flex size-7 items-center justify-center rounded-full bg-[color:var(--surface-overlay)]",children:e.jsx(kt,{className:"size-4 text-[color:var(--brand-dynamiclearning)]"})}),e.jsx("h2",{id:k,className:"text-sm font-semibold text-[color:var(--text-primary)]",children:"Tutor"})]}),o?e.jsx(Q,{type:"button",size:"icon-sm",variant:"ghost",onClick:o,"aria-label":"Close",className:"text-[color:var(--text-secondary)] transition-colors motion-reduce:transition-none hover:text-[color:var(--text-primary)]",children:e.jsx(D1,{className:"size-4"})}):null]}),e.jsxs("div",{"aria-label":"Chat messages","data-testid":"slide-chat-body",className:"dl-slide-chat-body min-h-0 flex-1 overflow-y-auto px-4 py-3",children:[w.length===0?e.jsx("div",{"data-testid":"slide-chat-welcome",className:"flex min-h-full w-full flex-col items-center justify-center px-4 py-8",children:e.jsx("p",{className:"display-title max-w-[18rem] text-center text-3xl font-medium leading-tight text-[color:var(--text-secondary)]",children:"What would you like to explore?"})}):e.jsxs("ul",{className:"space-y-3",children:[w.map(C=>e.jsx("li",{children:e.jsx(pt,{role:C.role,text:C.text,className:"max-w-[85%]",variant:C.type==="assistant_response"&&C.error?"error":"default",icon:C.type==="assistant_response"&&C.error?e.jsx(wt,{className:"size-4 shrink-0 text-[color:var(--figma-status-red)]","aria-hidden":!0}):void 0,footer:C.type==="assistant_response"&&C.error?e.jsx("p",{className:"text-xs text-[color:var(--text-muted)]",children:n1}):void 0,children:C.type==="assistant_response"&&C.actions.length>0?e.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5",children:C.actions.map((x,M)=>e.jsx(pr,{action:x,onNavigateSlide:i,onInteractAction:c},M))}):null})},C.id)),y?e.jsx("li",{className:"flex",children:e.jsxs("span",{className:"inline-flex items-center gap-1 px-1 text-sm text-[color:var(--text-muted)]","aria-label":"Assistant is thinking",children:["Thinking",e.jsxs("span",{"aria-hidden":!0,className:"inline-flex gap-0.5",children:[e.jsx("span",{className:"size-1 animate-bounce rounded-full bg-[color:var(--text-muted)] [animation-delay:-0.2s]"}),e.jsx("span",{className:"size-1 animate-bounce rounded-full bg-[color:var(--text-muted)] [animation-delay:-0.1s]"}),e.jsx("span",{className:"size-1 animate-bounce rounded-full bg-[color:var(--text-muted)]"})]})]})}):null]}),e.jsx("div",{ref:P})]}),e.jsx(cr,{value:L,onChange:O,onSend:E,disabled:S.isPending||G,textareaRef:_,autoFocus:!0})]})}function pr({action:r,onNavigateSlide:t,onInteractAction:s}){return r.type==="navigate_slide"&&r.slide_order!=null?e.jsx(Q,{type:"button",size:"sm",variant:"secondary",onClick:()=>t?.(r.slide_order),className:"h-7 rounded-full border border-(--border-strong) bg-(--surface-raised) text-(--text-secondary) hover:border-(--brand-dynamiclearning) hover:text-(--brand-dynamiclearning) transition-colors",children:r.name??`Slide ${r.slide_order}`}):r.type==="interact"&&r.id?e.jsx(Q,{type:"button",size:"sm",variant:"secondary",onClick:()=>s?.({id:r.id,value:r.value}),className:"h-7 rounded-full border border-(--border-strong) bg-(--surface-raised) text-(--text-secondary) hover:border-(--brand-dynamiclearning) hover:text-(--brand-dynamiclearning) transition-colors",children:r.name??r.id}):null}function hr(){const{canEdit:r,isEditing:t,startEditing:s}=xe();return!r||t?null:e.jsx(Q,{type:"button",variant:"outline",size:"icon-sm",onClick:s,"aria-label":"Edit lesson",title:"Edit lesson",children:e.jsx(_t,{className:"size-4","aria-hidden":!0})})}function Cr(){const{canEdit:r,isEditing:t,isDirty:s,dirtyCount:o,isSaving:i,saveError:c,saveAll:d,stopEditing:a}=xe(),[u,m]=n.useState(!1);if(!r||!t)return null;function k(){s?m(!0):a()}return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"sticky top-3 z-40 mx-auto mb-6 flex w-full max-w-[56rem] 
8justify-start",children:e.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-(--border-strong) bg-(--surface-sidebar) px-2 py-1.5 shadow-[var(--shadow-fab)]",children:[e.jsxs("span",{className:"flex items-center gap-1.5 pl-2 pr-1 text-xs font-medium text-(--text-secondary)",children:[e.jsx("span",{className:H("inline-block size-2 rounded-full",s?"bg-amber-400":"bg-(--brand-dynamiclearning)"),"aria-hidden":!0}),s?`${o} unsaved`:i?"Saving…":"All changes saved"]}),e.jsxs(Q,{type:"button",size:"sm",onClick:()=>{d()},disabled:!s||i,className:"gap-1.5",children:[i?e.jsx($t,{className:"size-4 animate-spin","aria-hidden":!0}):s?e.jsx(Dt,{className:"size-4","aria-hidden":!0}):e.jsx(o1,{className:"size-4","aria-hidden":!0}),i?"Saving":"Save"]}),e.jsx(Q,{type:"button",variant:"ghost",size:"icon-sm",onClick:k,disabled:i,"aria-label":"Switch to reading view",title:"Reading view",className:"text-(--text-secondary)",children:e.jsx(Mt,{className:"size-4","aria-hidden":!0})})]})}),c?e.jsx("div",{className:"mx-auto mb-4 max-w-[56rem]",children:e.jsx("p",{className:"rounded-xl border border-(--status-red)/40 bg-(--surface-overlay) px-3 py-2 text-xs text-(--status-red)",children:c})}):null,e.jsx(je,{open:u,onOpenChange:m,children:e.jsxs(Le,{children:[e.jsxs(ke,{children:[e.jsx(we,{children:"Discard unsaved changes?"}),e.jsxs(Me,{children:["You have ",o," slide",o>1?"s":""," with unsaved edits. Leaving edit mode will discard them."]})]}),e.jsxs(Ne,{children:[e.jsx(Se,{children:"Keep editing"}),e.jsx(Ze,{onClick:()=>{m(!1),a()},children:"Discard"})]})]})})]})}function xr(r){return!!r?.canEditContent}function fr(r){const t=Ce(),s=F1(),o=V1(),i=n.useRef(null),c=s.data??[],d=c.find(u=>u.isActive)??null,a=d?.id??null;n.useEffect(()=>{const u=i.current;if(i.current=a,!r.orgId||!a||u===null||u===a||r.orgId===a)return;const m=c.find(w=>w.id===u)?.name??"your previous workspace",k=d?.name??"this workspace";$e(`Switched to ${k}`,{description:`That lesson stays in ${m}.`,action:{label:"Switch back",onClick:()=>o.mutate(u)}}),t({to:"/library",search:{scope:"owned",sort:"recent",q:"",page:1}})},[a,r.orgId,c,d,t,o])}function mr({isError:r,error:t}){const s=Ce(),o=n.useRef(!1);n.useEffect(()=>{o.current||!r||!t||!(t instanceof A1)||t.status!==404||(o.current=!0,s({to:"/library",search:{scope:"owned",sort:"recent",q:"",page:1}}))},[r,t,s])}const br=/^slide-([0-9a-f-]+)(?:__h-(.+))?$/;function gr(){const[r,t]=n.useState(()=>typeof window>"u"?!1:window.matchMedia("(max-width: 1024px)").matches);return n.useEffect(()=>{const s=window.matchMedia("(max-width: 1024px)"),o=()=>t(s.matches);return s.addEventListener("change",o),()=>s.removeEventListener("change",o)},[]),r}function vr(){const{lessonId:r}=P1({from:"/lessons/$lessonId/v1"}),{data:t}=T1.useSession(),{data:s,isPending:o,isError:i,error:c}=xt(r),d=Fe();fr({orgId:s?.orgId??null}),mr({isError:i,error:c}),n.useEffect(()=>{s?.id&&d.invalidateQueries({queryKey:I1})},[s?.id,d]);const{setVizStyle:a}=a1();n.useEffect(()=>(a(s?.vizStyle),()=>a(void 0)),[s?.vizStyle,a]);const u=s?.slides??[],m=s?.withAudio??!1,k=!!(s?.userId&&t?.user.id&&s.userId===t.user.id),w=!!t?.user,b=!!s?.isPublic,L=!!s?.staffView,O=xr(s),A=w||b,[P,_]=W1(),F=gr()||P,[S,q]=n.useState(!1),[T,J]=n.useState(null),K=n.useRef(null),G=n.useRef(null),W=n.useRef(null),[v,U]=n.useState(null),[y,Z]=n.useState(null),[j,R]=n.useState(null),[I,E]=n.useState({}),C=n.useRef(new Map),x=n.useRef(new Map),M=n.useRef(null),[g,$]=n.useState(null),z=n.useCallback(()=>{if(typeof window>"u")return;const p=window.innerHeight*.3;let l=null,h=-1/0;for(const[f,N]of C.current.entries()){const V=N.getBoundingClientRect().top;V<=p&&V>h&&(h=V,l=f)}if(!l){let f=1/0;for(const[N,V]of C.current.entries()){const X=V.getBoundingClientRect().top;X<f&&(f=X,l=N)}}l&&U(f=>f===l?f:l)},[]);n.useEffect(()=>{if(typeof IntersectionObserver>"u")return;let p=0;const l=()=>{p||(p=requestAnimationFrame(()=>{p=0,z()}))},h=new IntersectionObserver(l,{rootMargin:"-25% 0px -65% 0px",threshold:[0,1]});M.current=h;for(const f of C.current.values())h.observe(f);return typeof window<"u"&&window.addEventListener("resize",l),z(),()=>{h.disconnect(),M.current=null,typeof window<"u"&&window.removeEventListener("resize",l),p&&cancelAnimationFrame(p)}},[z]),n.useEffect(()=>{if(!v){Z(null);return}const p=I[v]??[];if(p.length===0){Z(null);return}if(typeof IntersectionObserver>"u")return;const l=new Map,h=new IntersectionObserver(f=>{for(const X of f)l.set(X.target.id,X.intersectionRatio);let N=null,V=0;for(const[X,Ae]of l.entries())Ae>V&&(V=Ae,N=X);Z(N)},{rootMargin:"-15% 0px -65% 0px",threshold:[0,.5,1]});for(const f of p){const N=document.getElementById(ve(v,f.slug));N&&h.observe(N)}return()=>h.disconnect()},[v,I]);const D=n.useRef(!1);n.useEffect(()=>{if(D.current||!u.length||typeof window>"u")return;const p=window.location.hash.slice(1);if(!p){D.current=!0;return}if(!br.exec(p)){D.current=!0;return}const h=requestAnimationFrame(()=>{const f=document.getElementById(p);f&&(f.scrollIntoView({behavior:"auto",block:"start"}),D.current=!0)});return()=>cancelAnimationFrame(h)},[u.length]);const Ee=n.useCallback((p,l)=>{const h=C.current,f=M.current,N=h.get(p);N&&N!==l&&f?.unobserve(N),l?(h.set(p,l),f?.observe(l)):h.delete(p),z()},[z]),He=n.useCallback((p,l)=>{l?x.current.set(p,l):x.current.delete(p)},[]),ee=n.useCallback((p,l)=>{x.current.get(p)?.contentWindow?.postMessage(l,"*")},[]),se=n.useCallback((p,l)=>{E(h=>{const f=h[p];return f&&f.length===l.length&&f.every((N,V)=>N.slug===l[V].slug)?h:{...h,[p]:l}})},[]),te=n.useCallback(p=>{if(typeof window>"u")return;const l=document.getElementById(p);l&&(l.scrollIntoView({behavior:"smooth",block:"start"}),window.history.replaceState(null,"",`#${p}`))},[]),ce=n.useCallback(p=>
8{te(ye(p))},[te]),fe=n.useMemo(()=>u.map(p=>({slide:p,headers:I[p.id]??[]})),[u,I]),Y=n.useMemo(()=>u.length>0?u.find(p=>p.id===v)??u[0]:null,[u,v]);n.useEffect(()=>{!v&&u.length>0&&U(u[0].id)},[v,u]);const re=u.some(p=>p.status==="ready"),de="Available once your first slide is ready",ne=Y?`slide-chat-panel-${Y.id}`:"",ue=`${ne}-heading`,me=n.useCallback(()=>{q(!1),requestAnimationFrame(()=>{K.current?.focus()})},[]);n.useEffect(()=>{if(!S)return;const p=setTimeout(()=>{W.current?.focusInput()},0);return()=>clearTimeout(p)},[S]),n.useEffect(()=>{if(!S||!T)return;const p=setTimeout(()=>{W.current?.attachContext(T),J(null)},0);return()=>clearTimeout(p)},[S,T]);const Oe=n.useCallback(p=>{q(!0),J(p)},[]);return o?e.jsx("main",{className:"dl-slide-shell flex items-center justify-center px-4",children:e.jsx(ze,{className:"w-full max-w-md border-(--border-subtle) bg-(--surface-overlay) py-5",children:e.jsxs(_e,{className:"space-y-3 px-5",children:[e.jsx("p",{className:"text-sm text-(--text-secondary)",children:"Loading lesson…"}),e.jsx(ge,{className:"h-4 w-3/4 bg-(--surface-overlay-strong)"}),e.jsx(ge,{className:"h-4 w-full bg-(--surface-overlay-strong)"})]})})}):i?e.jsx("main",{className:"dl-slide-shell flex items-center justify-center px-4",children:e.jsx($2,{variant:"destructive",className:"max-w-md border-(--status-red)/40 bg-(--surface-overlay)",children:e.jsx(z2,{children:c.message})})}):u.length?e.jsx("main",{className:"dl-slide-shell",children:e.jsx(P2,{lessonId:r,canEdit:O,children:e.jsxs(U1,{isCollapsed:F,onCollapsedChange:_,getSidebarClassName:()=>"dl-app-sidebar",mainClassName:"dl-slide-main",renderSidebar:A?({isCollapsed:p,toggleSidebar:l,contentId:h})=>e.jsx(q1,{isCollapsed:p,onToggleSidebar:l,contentId:h,ariaLabel:"Main navigation"}):void 0,children:[e.jsx(lr,{title:s.title,targetEl:g}),e.jsxs("header",{className:"mb-6",children:[e.jsxs("div",{className:"mx-auto flex max-w-[56rem] items-center justify-between gap-2 pt-2 pb-1",children:[e.jsx(Be,{to:"/library",search:{scope:"owned",sort:"recent",q:"",page:1},className:"flex items-center gap-1 text-sm text-(--text-secondary) hover:text-(--text-primary)",children:"← Back to library"}),e.jsxs("div",{className:"flex items-center gap-2",children:[L&&e.jsx("span",{className:"inline-flex items-center rounded-full border border-(--border-subtle) px-2 py-0.5 text-[11px] font-medium text-(--text-secondary)",children:"Staff view"}),e.jsx(hr,{}),k?e.jsx(rr,{lessonId:r,lessonTitle:s.title,isPublic:!!s.isPublic}):w&&(b||L)&&e.jsx(tr,{lessonId:r})]})]}),e.jsxs("div",{className:"mx-auto max-w-[56rem] pt-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.14em] text-(--text-muted)",children:"Lesson"}),e.jsx("h1",{ref:$,className:"display-title mt-2 text-[28px] leading-[1.1] tracking-[-0.02em] text-(--text-primary) sm:text-[40px] sm:leading-[1.05]",children:s.title}),s.description?e.jsx("p",{className:"mt-3 text-[15px] leading-[1.6] text-(--text-secondary)",children:s.description}):null]}),e.jsx("div",{className:"mt-4",children:s.clonedFromLessonId||s.clonedFromDisplayName?e.jsx(nr,{clonedFromLessonId:s.clonedFromLessonId,clonedFromDisplayName:s.clonedFromDisplayName,clonedFromDisplaySlug:s.clonedFromDisplaySlug,clonedFromAvailable:s.clonedFromAvailable}):e.jsx(ar,{authorDisplayName:s.authorDisplayName??null,authorDisplaySlug:s.authorDisplaySlug??null,viewCount:b?s.viewCount:void 0,saveCount:b?s.saveCount:void 0,createdAt:s.createdAt})})]})]}),e.jsx(Cr,{}),e.jsx("section",{className:"dl-slide-chat-layout",children:e.jsx("div",{className:"dl-slide-chat-content",children:u.map(p=>e.jsx(G2,{lessonId:r,slide:p,lessonSlides:u,lessonWithAudio:m,isOwner:k,isActive:p.id===v,playingSlideId:j,setPlayingSlideId:R,registerSection:Ee,registerIframe:He,onHeadersChange:se,onScrollToSlide:ce,onAttachToChat:re&&!L?Oe:void 0},p.id))})}),S?null:e.jsx(J2,{outline:fe,activeSlideId:v,activeHeaderId:y,onJump:te}),!L&&e.jsx("div",{className:H("dl-fab dl-fab--morph dl-chat-morph",S&&"is-open"),children:S&&Y?e.jsx(ur,{ref:W,lessonId:r,slideId:Y.id,panelId:ne,headerId:ue,panelRef:G,onClose:me,onNavigateSlide:p=>{const l=u.find(h=>h.order===p);l&&ce(l.id)},onInteractAction:p=>{ee(Y.id,p)},className:"dl-slide-chat-in-morph"}):e.jsx(f1,{mode:"fill",ref:K,onClick:()=>q(!0),"aria-expanded":S,"aria-controls":ne,disabled:!re,title:re?"Ask your tutor":de,"aria-label":re?"Ask your tutor":`Ask your tutor — ${de}`,children:e.jsx(h1,{size:16,weight:"Outline",className:"dl-icon","aria-hidden":!0})})})]})})}):e.jsx("main",{className:"dl-slide-shell flex items-center justify-center px-4",children:e.jsx(ze,{className:"w-full max-w-md border-(--border-subtle) bg-(--surface-overlay) py-5",children:e.jsxs(_e,{className:"px-5",children:[e.jsx(Q,{asChild:!0,variant:"link",className:"mb-2 px-0 text-(--text-primary)",children:e.jsx(Be,{to:"/library",search:{scope:"owned",sort:"recent",q:"",page:1},children:"Back to lessons"})}),e.jsx("p",{className:"text-sm text-(--text-secondary)",children:"This lesson has no slides yet."})]})})})}const zr=vr;export{zr as component};

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.