@aiquants/directory-tree 6.1.2 → 6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1457 -1052
  3. package/package.json +3 -3
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),ce=require("@aiquants/virtualscroll"),s=require("react"),B=require("tailwind-merge"),ne=require("@phosphor-icons/react");function ar(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ae=ar(s);function lr({title:e,titleId:t,...n},r){return ae.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?ae.createElement("title",{id:t},e):null,ae.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))}const ir=ae.forwardRef(lr);function cr({title:e,titleId:t,...n},r){return ae.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?ae.createElement("title",{id:t},e):null,ae.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))}const dr=ae.forwardRef(cr);function ur({title:e,titleId:t,...n},r){return ae.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?ae.createElement("title",{id:t},e):null,ae.createElement("path",{d:"M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z"}))}const fr=ae.forwardRef(ur),kn={icon:{light:"#6a7282",dark:"#99a1af"},iconSelected:{light:"#1447e6",dark:"#51a2ff"},checkedRing:{light:"#155dfc",dark:"#51a2ff"}},hr={markdown:{light:"#0084d1",dark:"#00bcff"},pdf:{light:"#e7000b",dark:"#ff6467"},spreadsheet:{light:"#007a55",dark:"#00d492"},csv:{light:"#007a55",dark:"#00d492"},document:{light:"#155dfc",dark:"#51a2ff"},presentation:{light:"#ca3500",dark:"#ff8904"},image:{light:"#00786f",dark:"#00d5be"},audio:{light:"#e60076",dark:"#fb64b6"},video:{light:"#7f22fe",dark:"#a684ff"},archive:{light:"#bb4d00",dark:"#ffb900"},code:{light:"#9810fa",dark:"#c27aff"},text:kn.icon},Nn="#71829b",re={rowHover:"hover:bg-[color:light-dark(#f3f4f6,#1e2939)]",rowSelected:"bg-[color:light-dark(#eff6ff,#162456)]",checkedRing:"inset-ring-1 inset-ring-[color:light-dark(#155dfc,#51a2ff)]",name:"text-[color:light-dark(#364153,#e5e7eb)]",nameSelected:"text-[color:light-dark(#193cb8,#bedbff)]",gridEdge:"text-[color:light-dark(#4a5565,#d1d5dc)]",icon:"text-[color:light-dark(#6a7282,#99a1af)]",iconSelected:"text-[color:light-dark(#1447e6,#51a2ff)]"},se={markdown:"text-[color:light-dark(#0084d1,#00bcff)]",pdf:"text-[color:light-dark(#e7000b,#ff6467)]",spreadsheet:"text-[color:light-dark(#007a55,#00d492)]",csv:"text-[color:light-dark(#007a55,#00d492)]",document:"text-[color:light-dark(#155dfc,#51a2ff)]",presentation:"text-[color:light-dark(#ca3500,#ff8904)]",image:"text-[color:light-dark(#00786f,#00d5be)]",audio:"text-[color:light-dark(#e60076,#fb64b6)]",video:"text-[color:light-dark(#7f22fe,#a684ff)]",archive:"text-[color:light-dark(#bb4d00,#ffb900)]",code:"text-[color:light-dark(#9810fa,#c27aff)]",text:"text-[color:light-dark(#6a7282,#99a1af)]"},Ln="text-[length:var(--dt-font-size-body,0.8125rem)]",mr=`${Ln} leading-[max(var(--dt-line-height-body,1.25rem),1.5em)]`,Ct=44,pr=12,yr=8,oe=14,gr=14,Pn=e=>e===void 0?void 0:{fontSize:typeof e=="number"?`${e}px`:e},q=e=>({width:e,height:e}),P={container:"directory-tree-container relative h-full overflow-y-hidden pb-[3px] pr-[2px]",containerPending:"cursor-progress",entry:`directory-tree-entry flex items-center cursor-pointer relative select-none ${mr}`,entryHover:`directory-tree-entry--hover ${re.rowHover}`,entrySelected:`directory-tree-entry--selected ${re.rowSelected}`,entryItemSelected:`directory-tree-entry--item-selected ${re.rowSelected} ${re.checkedRing}`,expandIcon:`directory-tree-expand-icon flex-shrink-0 flex items-center justify-center ${re.icon}`,expandIconSelected:`directory-tree-expand-icon--selected ${re.iconSelected}`,typeIcon:`directory-tree-type-icon flex-shrink-0 flex items-center justify-center ${re.icon}`,typeIconSelected:`directory-tree-type-icon--selected ${re.iconSelected}`,name:`directory-tree-name overflow-hidden text-ellipsis whitespace-nowrap ml-1 ${Ln} font-normal ${re.name}`,nameDirectory:"directory-tree-name--directory font-medium",nameSelected:`directory-tree-name--selected font-semibold ${re.nameSelected}`},Mt=e=>{const t=e.slice(e.lastIndexOf("/")+1),n=t.lastIndexOf(".");return n<=0?"":t.slice(n+1).toLowerCase()},br=/^[a-z][a-z\d+.-]*:\/\//i,bn=e=>Mt(br.test(e)?e.split(/[?#]/,1)[0]:e),Tn=e=>Mt(e.name)||bn(e.relativePath)||bn(e.absolutePath),On=({isDirectory:e,isExpanded:t,showExpandIcons:n,useCanvasExpandIcons:r,expandIconSize:a})=>{const i=a?{width:a,height:a}:void 0,l=a?"":"h-4 w-4";return!(n&&e)||r?d.jsx("span",{className:l,style:i,"aria-hidden":"true"}):t?d.jsx(ir,{className:l,style:i}):d.jsx(dr,{className:l,style:i})},Nt=(e,t)=>{if(e==null||typeof e=="boolean")return null;if(typeof e=="function")return console.warn(`[DirectoryTree] Function returned by renderer for "${t}". Return a node.`),null;if(typeof e=="object"){if("then"in e)return console.warn(`[DirectoryTree] Promise returned for "${t}". Not supported.`),null;if(Array.isArray(e)){const r=e.map(a=>Nt(a,t)).filter(Boolean);return r.length?r:null}const n=e.type;if(n&&n.$$typeof===Symbol.for("react.lazy"))return console.warn(`[DirectoryTree] Lazy component for "${t}". Not supported.`),null}return e},Sr={markdown:e=>d.jsx(ne.FileMd,{className:se.markdown,style:q(e)}),pdf:e=>d.jsx(ne.FilePdf,{className:se.pdf,style:q(e)}),spreadsheet:e=>d.jsx(ne.FileXls,{className:se.spreadsheet,style:q(e)}),csv:e=>d.jsx(ne.FileCsv,{className:se.csv,style:q(e)}),document:e=>d.jsx(ne.FileDoc,{className:se.document,style:q(e)}),presentation:e=>d.jsx(ne.FilePpt,{className:se.presentation,style:q(e)}),image:e=>d.jsx(ne.FileImage,{className:se.image,style:q(e)}),audio:e=>d.jsx(ne.FileAudio,{className:se.audio,style:q(e)}),video:e=>d.jsx(ne.FileVideo,{className:se.video,style:q(e)}),archive:e=>d.jsx(ne.FileZip,{className:se.archive,style:q(e)}),code:e=>d.jsx(ne.FileCode,{className:se.code,style:q(e)}),text:e=>d.jsx(ne.FileText,{className:se.text,style:q(e)})},wr={markdown:["md","markdown","mdx"],pdf:["pdf"],spreadsheet:["xls","xlsx","xlsm","xlsb","ods"],csv:["csv","tsv"],document:["doc","docx","rtf","odt"],presentation:["ppt","pptx","odp"],image:["png","jpg","jpeg","gif","svg","webp","ico","bmp","tiff","avif"],audio:["mp3","wav","ogg","m4a","flac","aac","wma"],video:["mp4","webm","mov","avi","mkv","wmv","flv"],archive:["zip","tar","gz","7z","rar","tgz","bz2"],code:["js","mjs","cjs","ts","tsx","jsx","json","html","htm","css","scss","py","go","rs","c","cpp","h","hpp","sh","bash","yaml","yml","sql","xml","toml"],text:["txt","log"]},vr=new Map(Object.entries(wr).flatMap(([e,t])=>t.map(n=>[n,e]))),xr=new Set(["","application/octet-stream","binary/octet-stream","text/plain","application/x-empty"]),Er=e=>(e??"").split(";",1)[0].trim().toLowerCase(),Ir=e=>{if(e==="text/markdown"||e==="text/x-markdown")return"markdown";if(e==="application/pdf")return"pdf";if(e.includes("excel")||e.includes("spreadsheet"))return"spreadsheet";if(e==="text/csv"||e==="text/tab-separated-values")return"csv";if(e.includes("word")||e.includes("google-apps.document")||e==="application/rtf")return"document";if(e.includes("powerpoint")||e.includes("presentation"))return"presentation";if(e.startsWith("image/"))return"image";if(e.startsWith("audio/"))return"audio";if(e.startsWith("video/"))return"video";if(e.includes("zip")||e.includes("tar")||e.includes("compressed")||e.includes("archive"))return"archive";if(e==="application/json"||e.includes("javascript")||e.includes("typescript")||e.includes("xml")||e.startsWith("text/html")||e.startsWith("text/css")||e.includes("x-python")||e.includes("x-sh")||e.includes("x-go")||e.includes("x-rust"))return"code";if(e.startsWith("text/"))return"text"},Rr=(e,t,n,r)=>{const a=Er(e),i=Ir(a),l=vr.get((t||(n?Mt(n):"")).toLowerCase()),f=(xr.has(a)?[l,i]:[i,l]).find(g=>g!==void 0);return f===void 0?d.jsx(ne.FileIcon,{className:re.icon,style:q(r)}):Sr[f](r)},Mn=(e,t,n)=>{const{entry:r,isDirectory:a,isExpanded:i,extension:l,mimeType:u}=e;let f;const g=u||r.mimeType;return r.icon!==void 0?f=r.icon:a?f=i&&t?.directoryExpanded||t?.directory||d.jsx(fr,{style:q(n)}):l&&t?.fileByExtension?.[l]?f=t.fileByExtension[l]:f=t?.file||Rr(g,l,r.name,n),Nt(typeof f=="function"?f(e):f,r.absolutePath)},Cr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_n=e=>{if(!e)return;const t=Object.entries(e).filter(([,n])=>n!=null);if(t.length!==0)return Object.fromEntries(t.map(([n,r])=>[`data-${Cr(n)}`,String(r)]))},jn=["color","background","backgroundColor","backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundClip","backgroundOrigin","backgroundAttachment","backgroundBlendMode","opacity","boxShadow","filter","backdropFilter","mixBlendMode","borderColor","borderRadius","outline","outlineColor","outlineStyle","outlineWidth","outlineOffset","textShadow","accentColor","caretColor","cursor","fontFamily","fontSize","fontStyle","fontWeight","fontVariant","fontFeatureSettings","fontVariationSettings","fontKerning","letterSpacing","lineHeight","textDecoration","textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness","textUnderlineOffset","textTransform"],An=["color","opacity"],kr="the row's box belongs to the tree (height: visual.itemHeight, indent: visual.indentSize, icons: visual.typeIconSize, text size: visual.fontSize)",Nr=new Set(jn),Lr=new Set(An),Sn=(e,t)=>{const n=t===void 0?e.option:`${e.option}.${t}`;return e.absolutePath===void 0?n:`${n} of "${e.absolutePath}"`},Dn=(e,t,n,r)=>{if(e!==void 0){if(typeof e!="object"||e===null)throw new RangeError(`${Sn(n,void 0)} must be an object of CSS properties or undefined, got ${e===null?"null":typeof e}.`);for(const[a,i]of Object.entries(e))if(i!==void 0&&!t.has(a))throw new RangeError(`${Sn(n,a)} cannot be set: ${kr}, so ${r}.`)}},He=(e,t)=>Dn(e,Nr,t,"a row style accepts only paint and text properties (ROW_STYLE_PROPERTIES)"),Pr=(e,t)=>Dn(e,Lr,t,"the expand icon style accepts only the glyph's colour and opacity (EXPAND_ICON_STYLE_PROPERTIES), and the 14 px expand box is the tree's"),Tr=500,zn=({entry:e,isDirectory:t,isExpanded:n,isItemSelected:r,selectionMode:a,onSelectionChange:i,onEntryClick:l,toggleDirectory:u,onToggleDirectoryRecursive:f})=>{const g=s.useRef(null);return s.useEffect(()=>()=>{g.current&&window.clearTimeout(g.current)},[]),s.useCallback(R=>{R.stopPropagation(),a!=="none"&&!t&&i&&i(e,!r);let x=!1;l({entry:e,isDirectory:t,isExpanded:n,preventDefault:()=>{x=!0}}),!(!t||x)&&(g.current?(window.clearTimeout(g.current),g.current=null,f(e)):g.current=window.setTimeout(()=>{u(e.absolutePath),g.current=null},Tr))},[t,e,n,f,u,l,a,i,r])},Fn=e=>e==="right"?"dt-grid-cell--right":e==="center"?"dt-grid-cell--center":"",wn=(e,t)=>e.children!==void 0&&t(e.absolutePath),$n=(e,t)=>({width:e,gridTemplateColumns:t}),Bn=s.memo(({entry:e,indentLevel:t,positionInSet:n,setSize:r,rowIndex:a,flatIndex:i,onRowFocus:l,onRowBlur:u,isSelectedForAria:f,rowHeight:g,isDirOpen:R,columns:x,numericTemplate:C,numericTotal:m,nameWidth:p,rowClassName:h,selection:{onEntryClick:w,selectedPath:S,currentPath:j,mode:I="none",selectedItems:k,onSelectionChange:y},expansion:{toggleDirectory:T,onToggleDirectoryRecursive:O},visual:{iconOverrides:L,showExpandIcons:le=!0,showDirectoryIcons:X=!0,showFileIcons:D=!0,useCanvasExpandIcons:K=!1,expandIconSize:ge,typeIconSize:F,fontSize:de,indentSize:be,highlightStyles:U,expandIconClassName:J,expandIconStyle:Oe}})=>{He(e.style,{option:"entry.style",absolutePath:e.absolutePath});const[Ie,Re]=s.useState(!1),M=e.children!==void 0,Q=M&&R(e.absolutePath),z=e.absolutePath===S,We=e.absolutePath===j,E=!M&&!!k?.has(e.absolutePath),Me=M?void 0:Tn(e),Se=zn({entry:e,isDirectory:M,isExpanded:Q,isItemSelected:E,selectionMode:I,onSelectionChange:y,onEntryClick:w,toggleDirectory:T,onToggleDirectoryRecursive:O}),Ce=Ie?U?.hoverClassName!==void 0?U.hoverClassName:P.entryHover:"",_e=(()=>{if(M){if(z)return U?.directorySelectedClassName!==void 0?U.directorySelectedClassName:P.entrySelected}else if(z||E)return U?.itemSelectedClassName!==void 0?U.itemSelectedClassName:B.twMerge(z&&P.entrySelected,E&&P.entryItemSelected);return""})(),N=typeof h=="function"?h(e):h,ue=B.twMerge("dt-grid-row cursor-pointer select-none",Ce,_e,N,e.className),H=B.twMerge(P.expandIcon,J,(z||E)&&P.expandIconSelected),je=B.twMerge(P.typeIcon,(z||E)&&P.typeIconSelected),Z=B.twMerge("dt-grid-name-label ml-1",re.name,M&&P.nameDirectory,(z||E)&&P.nameSelected),Y=On({isDirectory:M,isExpanded:Q,showExpandIcons:le,useCanvasExpandIcons:K,expandIconSize:ge}),ee=(M?X:D)?Mn({entry:e,isDirectory:M,isExpanded:Q,isSelected:z,isItemSelected:E,extension:Me,mimeType:e.mimeType},L,F):null,we={indentLevel:t,isDirectory:M,isExpanded:Q},[he,...ke]=x,me=he?.render?he.render(e,we):e.label??e.name,Ke={...Ie?U?.hoverStyle:{},...M&&z?U?.directorySelectedStyle:{},...!M&&(z||E)?U?.itemSelectedStyle:{}};return d.jsxs("div",{className:ue,style:{...Ke,...e.style,height:g},role:"row","aria-expanded":M?Q:void 0,"aria-level":t+1,"aria-posinset":n,"aria-setsize":r,"aria-rowindex":a,"aria-selected":I==="none"?void 0:f,"aria-current":We?"page":void 0,..._n(e.data),"data-entry-type":M?"directory":"file","data-entry-expanded":M?String(Q):void 0,"data-entry-selected":z?"true":void 0,"data-entry-item-selected":E?"true":void 0,onClick:Se,onMouseEnter:()=>Re(!0),onMouseLeave:()=>Re(!1),onFocus:A=>l(i,e.absolutePath,A.currentTarget),onBlur:A=>u(e.absolutePath,A.currentTarget),onKeyDown:A=>{if(A.key==="Enter"){if(A.repeat){A.preventDefault();return}Se(A)}},tabIndex:0,children:[d.jsxs("div",{className:B.twMerge("dt-grid-name-cell",he?.className),role:"gridcell",style:{width:p,paddingLeft:Math.max(0,t*be)},children:[(le||K)&&d.jsx("span",{className:H,style:{...Oe,width:oe,height:oe},children:Y}),(M?X:D)&&d.jsx("span",{className:je,style:{width:F,height:F},children:ee}),d.jsx("span",{className:Z,style:Pn(de),children:me})]}),ke.length>0&&d.jsx("div",{className:"dt-grid-numeric-viewport",children:d.jsx("div",{className:"dt-grid-numeric-track",style:$n(m,C),children:ke.map(A=>d.jsx("div",{className:B.twMerge("dt-grid-cell",Fn(A.align),A.className),role:"gridcell",children:A.render?A.render(e,we):null},A.key))})})]})},(e,t)=>{if(e.entry!==t.entry)return!1;const n=wn(e.entry,e.isDirOpen),r=wn(t.entry,t.isDirOpen);return e.indentLevel===t.indentLevel&&e.positionInSet===t.positionInSet&&e.setSize===t.setSize&&e.rowIndex===t.rowIndex&&e.flatIndex===t.flatIndex&&e.isSelectedForAria===t.isSelectedForAria&&e.rowHeight===t.rowHeight&&n===r&&e.columns===t.columns&&e.numericTemplate===t.numericTemplate&&e.numericTotal===t.numericTotal&&e.nameWidth===t.nameWidth&&e.rowClassName===t.rowClassName&&e.selection.selectedPath===t.selection.selectedPath&&e.selection.currentPath===t.selection.currentPath&&e.selection.mode===t.selection.mode&&e.selection.selectedItems===t.selection.selectedItems&&e.visual===t.visual});Bn.displayName="DirectoryTreeGridRow";const Hn=({kind:e,columns:t,numericTemplate:n,numericTotal:r,nameWidth:a,scrollBarWidth:i,className:l,nameContent:u,renderCell:f})=>{const[,...g]=t,R=e==="header"?"dt-grid-name-header":"dt-grid-name-footer",x=e==="header"?"dt-grid-header":"dt-grid-footer",C=e==="header"?"columnheader":"gridcell";return d.jsxs("div",{className:B.twMerge(x,re.gridEdge,l),role:"row",children:[d.jsx("div",{className:B.twMerge(R,"px-1",t[0]?.className),role:C,style:{width:a},children:u}),g.length>0&&d.jsx("div",{className:"dt-grid-numeric-viewport",children:d.jsx("div",{className:"dt-grid-numeric-track",style:$n(r,n),children:g.map(m=>d.jsx("div",{className:B.twMerge("dt-grid-cell",Fn(m.align),m.className),role:C,children:f(m)},m.key))})}),d.jsx("div",{className:"dt-grid-scrollbar-spacer",style:{width:i},"aria-hidden":"true"})]})},Or=({columns:e,className:t,...n})=>d.jsx(Hn,{kind:"header",columns:e,className:t,nameContent:e[0]?.header??null,renderCell:r=>r.header??null,...n}),vn=(e,t)=>typeof e=="function"?e(t):e??null,Mr=({columns:e,allEntries:t,className:n,...r})=>d.jsx(Hn,{kind:"footer",columns:e,className:n,nameContent:vn(e[0]?.footer,t),renderCell:a=>vn(a.footer,t),...r}),_r=240,Wn=96,Kn=12,Lt=(e,t)=>{const n=e?.width;return typeof n=="number"&&Number.isFinite(n)&&n>0?n:t},jr=e=>e.slice(1).map(t=>`${Lt(t,Wn)}px`).join(" "),Ar=({measuredWidth:e,columns:t,scrollBarWidth:n=Kn})=>{const r=Lt(t[0],_r),a=t.slice(1).reduce((f,g)=>f+Lt(g,Wn),0),i=Number.isFinite(e)&&e>0?e:0,l=Math.max(0,i-r-Math.max(0,n)),u=Math.max(0,a-l);return{nameWidth:r,numericTotal:a,numericVisible:l,maxHScroll:u}},kt=(e,t)=>!Number.isFinite(e)||e<0?0:e>t?t:e,Dr=e=>{const t=[],n=r=>{for(const a of r)t.push(a),a.children&&a.children.length>0&&n(a.children)};return n(e),t},Yn=["entryKindDirectory","entryKindFile"],Pt=[...ce.VIRTUAL_SCROLL_LABEL_KEYS,...Yn],Tt=Object.freeze({en:Object.freeze({entryKindDirectory:"directory",entryKindFile:"file"}),ja:Object.freeze({entryKindDirectory:"ディレクトリ",entryKindFile:"ファイル"})}),Gn=Object.freeze({en:Object.freeze({...ce.VIRTUAL_SCROLL_LABEL_CATALOGS.en,...Tt.en}),ja:Object.freeze({...ce.VIRTUAL_SCROLL_LABEL_CATALOGS.ja,...Tt.ja})}),xn=e=>typeof e=="string"?JSON.stringify(e):e===null?"null":typeof e,zr=e=>{const t={};let n=!1;for(const r of ce.VIRTUAL_SCROLL_LABEL_KEYS){const a=Object.hasOwn(e,r)?e[r]:void 0;a!==void 0&&(t[r]=a,n=!0)}return n?t:void 0},Vn=(e,t)=>{const n=ce.resolveVirtualScrollLocale(e);if(t===void 0)return Gn[n];if(t===null||typeof t!="object")throw new RangeError(`[directory-tree] labels must be an object; got ${xn(t)}`);const r=Object.getPrototypeOf(t);if(r!==Object.prototype&&r!==null)throw new RangeError(`[directory-tree] labels must be a plain object (prototype Object.prototype or null); got ${Array.isArray(t)?"an array":"an object with a non-plain prototype"}`);for(const l of Object.keys(t))if(!Pt.includes(l))throw new RangeError(`[directory-tree] labels.${l} is not a known label key; expected one of ${Pt.join(", ")}`);const i={...ce.resolveVirtualScrollLabels(n,zr(t)),...Tt[n]};for(const l of Yn){const u=Object.hasOwn(t,l)?t[l]:void 0;if(u!==void 0){if(typeof u!="string"||u.trim()==="")throw new RangeError(`[directory-tree] labels.${l} must be a non-blank string; got ${xn(u)}`);i[l]=u}}return Object.freeze(i)},Fr=e=>{const t={};for(const n of ce.VIRTUAL_SCROLL_LABEL_KEYS)t[n]=e[n];return Object.freeze(t)},$r=()=>{let e=null;return{mark:t=>{const n=t.composedPath();e=n,setTimeout(()=>{e===n&&(e=null)},0)},landedOn:t=>e?.includes(t)===!0}},Je=e=>typeof e=="string"?JSON.stringify(e):String(e),Ot=(e,t)=>{if(typeof t!="number"||!Number.isFinite(t)||t<=0)throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${Je(t)}.`);return t},Br=e=>{if(typeof e=="string"&&e.trim()!==""||typeof e=="number"&&Number.isFinite(e)&&e>0)return e;throw new RangeError(`[directory-tree] visual.fontSize must be a finite number greater than 0 (px) or a CSS font size that is not blank; got ${Je(e)}.`)},Hr=({indentSize:e,typeIconSize:t,fontSize:n})=>({indentSize:e===void 0?pr:Ot("indentSize",e),typeIconSize:t===void 0?gr:Ot("typeIconSize",t),fontSize:n===void 0?void 0:Br(n)}),Wr=({indentSize:e,removeRootIndent:t,hasExpandBox:n})=>t?Math.max(0,e-(n?oe:0)):0,Kr=(e,t,n)=>{if(typeof e!="function")return Ot("itemHeight",e);const r=e(t,n);if(typeof r!="number"||!Number.isFinite(r)||r<=0)throw new RangeError(`[directory-tree] visual.itemHeight returned ${Je(r)} for ${JSON.stringify(t.absolutePath)} (row ${n}); it must return a finite number greater than 0 (px).`);return r},Yr=(e,t,n)=>{const r=t===void 0?yr:t;if(typeof r!="number"||!Number.isFinite(r)||r<=0||r>oe)throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${oe} (the expand box, px) while tree lines are drawn; got ${Je(r)}.`);const{indentSize:a,typeIconSize:i}=e,l=r/2,u=oe+i-r/2;if(a<l||a>u)throw new RangeError(`[directory-tree] visual.indentSize ${Je(a)} does not fit the tree lines: with typeIconSize ${i} and an expand glyph of ${r} px it must be from ${l} (half the glyph) to ${u} (the ${oe} px expand box + typeIconSize − half the glyph).`);return{indentSize:a,typeIconSize:i,glyphSize:r,originX:n}},Gr=({indentSize:e,typeIconSize:t,glyphSize:n})=>Math.min(Math.max(oe+t/2-e,n/2),oe-n/2),Vr=(e,t)=>{const n=e.length-1;if(n<=0)return 0;let r=0,a=n-1,i=0;for(;r<=a;){const l=r+a>>>1;e[l]<=t?(i=l,r=l+1):a=l-1}return i},Xr=(e,t,n)=>{if(n<=0||e.length===0||t.length!==e.length+1)return null;const r=Vr(t,n),a=e[r];return a?{path:a.entry.absolutePath,offsetInViewport:n-t[r]}:null},Ur=(e,t,n)=>{if(t.length===0||n.length!==t.length+1)return null;for(let r=0;r<t.length;r++)if(t[r].entry.absolutePath===e.path)return Math.max(0,n[r]+e.offsetInViewport);return null},Jr=(e,t,n)=>{const r=[];for(let a=t;a<n;a++){const i=e[a];if(!(!i||i.length===0))for(const l of i)r.push(l)}return r},Zr=(e,t,n)=>{const r=[];for(let a=t;a<n;a++){const i=e[a];if(!(!i||i.length===0))for(const l of i)r.push(l)}return r},qr=(e,t,n,r)=>{const a=Math.max(1,Math.floor(t*r)),i=Math.max(1,Math.floor(n*r));(e.width!==a||e.height!==i)&&(e.width=a,e.height=i);const l=e.style;l.width!==`${t}px`&&(l.width=`${t}px`),l.height!==`${n}px`&&(l.height=`${n}px`)},Qr=(e,t,n)=>{e.lineWidth=n,e.beginPath();for(const r of t)e.moveTo(r.x1,r.y1),e.lineTo(r.x2,r.y2);e.stroke()},eo=(e,t,n,r)=>{if(t.length===0)return;const a=e.strokeStyle,i=e.lineWidth,l=e.lineCap,u=e.lineJoin;e.strokeStyle=n,e.lineCap="round",e.lineJoin="round";for(const f of t){const g=r??f.size,R=Math.max(0,g/2),x=Math.max(1,Math.round(g*.08)),C=Math.max(1,Math.round(g*.14)),m=Math.max(0,R-x*.8),p=Math.max(0,m*.55);e.lineWidth=x,e.beginPath(),e.arc(f.centerX,f.centerY,Math.max(0,R-x*.3),0,Math.PI*2),e.stroke(),e.lineWidth=C,e.beginPath(),e.moveTo(f.centerX-p,f.centerY),e.lineTo(f.centerX+p,f.centerY),e.stroke(),f.isExpanded||(e.beginPath(),e.moveTo(f.centerX,f.centerY-p),e.lineTo(f.centerX,f.centerY+p),e.stroke())}e.strokeStyle=a,e.lineWidth=i,e.lineCap=l,e.lineJoin=u},Xn=s.memo(({segmentsByItem:e,glyphsByItem:t,itemHeight:n,width:r,viewportHeight:a,scrollPosition:i,color:l=Nn,strokeWidth:u=1,renderStartIndex:f,renderEndIndex:g,lookaheadEndIndex:R,devicePixelRatio:x,expandGlyphColor:C,expandGlyphSize:m})=>{const p=s.useRef(null),h=s.useRef(null),w=s.useRef({segmentsByItem:e,glyphsByItem:t,itemHeight:n,width:r,viewportHeight:a,scrollPosition:i,color:l,strokeWidth:u,renderStartIndex:f,renderEndIndex:g,lookaheadEndIndex:R,devicePixelRatio:x,expandGlyphColor:C,expandGlyphSize:m}),S=s.useCallback(()=>{h.current=null;const I=p.current;if(!I)return;const k=I.getContext("2d");if(!k)return;const y=w.current;if(y.width<=0||y.viewportHeight<=0){k.clearRect(0,0,I.width,I.height);return}const T=Number.isFinite(y.devicePixelRatio??NaN)?y.devicePixelRatio:typeof window<"u"&&window.devicePixelRatio||1;qr(I,y.width,y.viewportHeight,T);const O=y.segmentsByItem.length,L=typeof y.renderStartIndex=="number"&&Number.isFinite(y.renderStartIndex)?Math.max(0,Math.floor(y.renderStartIndex)):Math.max(0,Math.floor(y.scrollPosition/y.itemHeight)),le=Math.min(O,Math.ceil((y.scrollPosition+y.viewportHeight)/y.itemHeight)),X=(()=>{if(typeof y.renderEndIndex=="number"&&Number.isFinite(y.renderEndIndex)){const F=Math.floor(y.renderEndIndex);return Math.max(Math.min(O,F+1),L)}return Math.max(le,L)})(),D=(()=>{if(typeof y.lookaheadEndIndex=="number"&&Number.isFinite(y.lookaheadEndIndex)){const F=Math.floor(y.lookaheadEndIndex),de=Math.min(O,F+1);return Math.max(de,X)}return Math.max(le,X)})(),K=Jr(y.segmentsByItem,L,D),ge=Zr(y.glyphsByItem,L,D);k.save(),k.scale(T,T),k.clearRect(0,0,y.width,y.viewportHeight),k.translate(0,-y.scrollPosition),k.strokeStyle=y.color,Qr(k,K,y.strokeWidth),eo(k,ge,y.expandGlyphColor??y.color,y.expandGlyphSize),k.restore()},[]),j=s.useCallback(()=>{h.current===null&&(h.current=window.requestAnimationFrame(S))},[S]);return s.useEffect(()=>{w.current={segmentsByItem:e,glyphsByItem:t,itemHeight:n,width:r,viewportHeight:a,scrollPosition:i,color:l,strokeWidth:u,renderStartIndex:f,renderEndIndex:g,lookaheadEndIndex:R,devicePixelRatio:x,expandGlyphColor:C,expandGlyphSize:m},j()},[e,t,n,r,a,i,l,u,f,g,R,x,C,m,j]),s.useEffect(()=>()=>{h.current!==null&&(window.cancelAnimationFrame(h.current),h.current=null)},[]),d.jsx("canvas",{ref:p,className:"pointer-events-none absolute top-0 left-0 z-0"})});Xn.displayName="TreeLineCanvas";const to=e=>{const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].entry.absolutePath;t.has(r)||t.set(r,n)}return t},En=(e,t)=>e.selectedPath===t?e:{selectedPath:t,selectionGeneration:e.selectionGeneration+1,anchor:e.anchor},no=(e,t)=>({...e,anchor:{path:t,selectionGeneration:e.selectionGeneration,focused:!0}}),ro=(e,t)=>{const{anchor:n,selectionGeneration:r,selectedPath:a}=t;if(n!==null&&(n.focused||n.selectionGeneration===r)){const i=e.get(n.path);if(i!==void 0)return i}if(a!==null){const i=e.get(a);if(i!==void 0)return i}return 0},oo={msOverflowStyle:"none",scrollbarWidth:"none"},so=()=>{let e=document.getElementById("directory-tree-webkit-scrollbar-hide");e||(e=document.createElement("style"),e.id="directory-tree-webkit-scrollbar-hide",e.textContent=".directory-tree-container::-webkit-scrollbar { display: none; }",document.head.appendChild(e))},ao=()=>()=>{},lo=()=>!0,io=()=>!1,co=e=>{const t=s.useRef(null),n=t.current;return n!==null&&ce.VIRTUAL_SCROLL_LABEL_KEYS.every(r=>n[r]===e[r])?n:(t.current=e,e)},In=new Set(["top","bottom","center","nearest"]),Rn=e=>{const t=e?.align;if(t===void 0)return"top";if(!In.has(t))throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(t)}; expected one of ${[...In].join(", ")}.`);return t},uo={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap"},fo=(e,t,n,r,a)=>{const i=[],l=[];let u=0;const f=(g,R,x)=>{const C=a?[...g].sort(a):g;for(let m=0;m<C.length;m++){const p=C[m],h=m===C.length-1,w=[...x,h],S=p.children!==void 0,j=S&&t(p.absolutePath,p.relativePath);let I=R,k=x;r&&(I=R-1,k=x.slice(1)),i.push({entry:p,indentLevel:I,depth:R,positionInSet:m+1,setSize:C.length}),n&&(I>u&&(u=I),l.push({id:p.absolutePath,name:p.name,absolutePath:p.absolutePath,indentLevel:I,isLastChild:h,isDirectory:S,isExpanded:j,ancestorIsLast:[...k],hideLines:r&&R===0})),S&&j&&p.children&&f(p.children,R+1,w)}};return f(e,0,[]),{flatItems:i,lineItems:l,maxIndent:u}},Cn=(e,t)=>{const n=e.length-1;if(n<=0)return 0;let r=0,a=n-1,i=0;for(;r<=a;){const l=r+a>>>1;e[l]<=t?(i=l,r=l+1):a=l-1}return i},ho=(e,t,n,r,a,i)=>{const l=r?.renderStart??Math.max(0,Cn(i,a)),u=t>0?Cn(i,a+t)+n:l+n,f=e>0?Math.min(e-1,Math.max(l,u)):l,g=r?.renderEnd??f,R=e>0?Math.min(e-1,g+n):g;return{renderStart:l,renderEnd:g,lookaheadEnd:R}},mo=(e,t,n,r)=>{if(e.length===0)return{segmentsByItem:[],glyphsByItem:[]};const{indentSize:a,typeIconSize:i,glyphSize:l,originX:u}=r,f=Array.from({length:e.length},()=>[]),g=Array.from({length:e.length},()=>[]),R=u+Gr(r),x=m=>m*a+R,C=l/2+2;for(let m=0;m<e.length;m++){const p=e[m],h=t[m]??0,w=n[m]??0,S=w+h/2,j=e[m+1],I=S+i/2,k=w+h,y=j!==void 0&&j.indentLevel===p.indentLevel+1&&I<k?{key:`${p.id}-connector-children`,x1:x(j.indentLevel),y1:I,x2:x(j.indentLevel),y2:k,itemIndex:m}:null;if(p.hideLines){y!==null&&(f[m]=[y]);continue}const T=[];for(let L=0;L<p.indentLevel;L++){if(p.ancestorIsLast[L]??!1)continue;let X=!1;for(let D=m;D<e.length;D++){const K=e[D];if(K.indentLevel>L&&K.ancestorIsLast.length>L&&!K.ancestorIsLast[L]){X=!0;break}if(D>m&&K.indentLevel===L)break}if(X){const D=x(L);T.push({key:`${p.id}-ancestor-${L}`,x1:D,y1:w,x2:D,y2:w+h,itemIndex:m})}}const O=x(p.indentLevel);m>0&&T.push({key:`${p.id}-connector-top`,x1:O,y1:w,x2:O,y2:p.isDirectory?S-C:S,itemIndex:m}),!p.isDirectory&&p.isLastChild&&T.push({key:`${p.id}-connector-horizontal`,x1:O,y1:S,x2:u+p.indentLevel*a+oe,y2:S,itemIndex:m}),p.isLastChild||(p.isDirectory?T.push({key:`${p.id}-connector-bottom`,x1:O,y1:S+C,x2:O,y2:w+h,itemIndex:m}):T.push({key:`${p.id}-connector-bottom`,x1:O,y1:S,x2:O,y2:w+h,itemIndex:m})),y!==null&&T.push(y),f[m]=T,p.isDirectory&&(g[m]=[{key:`${p.id}-glyph`,itemIndex:m,centerX:O,centerY:S,size:l,isExpanded:p.isExpanded}])}return{segmentsByItem:f,glyphsByItem:g}},Un=s.memo(({entry:e,indentLevel:t,originX:n,depth:r,positionInSet:a,setSize:i,isSelectedForAria:l,flatIndex:u,isActive:f,registerRowRef:g,onNavigationKeyDown:R,onRowFocus:x,onRowBlur:C,rowHeight:m,entryKindDirectory:p,entryKindFile:h,isDirOpen:w,expansion:{toggleDirectory:S,onToggleDirectoryRecursive:j},selection:{onEntryClick:I,selectedPath:k,currentPath:y,mode:T="none",selectedItems:O,onSelectionChange:L},visual:{iconOverrides:le,showExpandIcons:X=!0,showDirectoryIcons:D=!0,showFileIcons:K=!0,useCanvasExpandIcons:ge=!1,expandIconSize:F,typeIconSize:de,fontSize:be,indentSize:U,highlightStyles:J,entryClassName:Oe,entryStyle:Ie,nameClassName:Re,nameStyle:M,directoryNameClassName:Q,directoryNameStyle:z,fileNameClassName:We,fileNameStyle:E,expandIconClassName:Me,expandIconStyle:Se}})=>{He(e.style,{option:"entry.style",absolutePath:e.absolutePath});const[Ce,_e]=s.useState(!1),N=e.children!==void 0,ue=N&&w(e.absolutePath),H=e.absolutePath===k,je=e.absolutePath===y,Z=!N&&O?.has(e.absolutePath),Y=s.useCallback(G=>g(u,G),[g,u]),ee=N?void 0:Tn(e),we=zn({entry:e,isDirectory:N,isExpanded:ue,isItemSelected:!!Z,selectionMode:T,onSelectionChange:L,onEntryClick:I,toggleDirectory:S,onToggleDirectoryRecursive:j}),he=Ce?J?.hoverClassName!==void 0?J.hoverClassName:P.entryHover:"",ke=(()=>{if(N){if(H)return J?.directorySelectedClassName!==void 0?J.directorySelectedClassName:P.entrySelected}else if(H||Z)return J?.itemSelectedClassName!==void 0?J.itemSelectedClassName:B.twMerge(H&&P.entrySelected,Z&&P.entryItemSelected);return""})(),me=B.twMerge(P.entry,he,ke,Oe,e.className),Ke=B.twMerge(P.expandIcon,Me,(H||Z)&&P.expandIconSelected),A=B.twMerge(P.typeIcon,(H||Z)&&P.typeIconSelected),Ze=B.twMerge(P.name,Re,N&&P.nameDirectory,N&&Q,!N&&We,(H||Z)&&P.nameSelected),ct=On({isDirectory:N,isExpanded:ue,showExpandIcons:X&&t>=0,useCanvasExpandIcons:ge,expandIconSize:F}),Ye=(N?D:K)?Mn({entry:e,isDirectory:N,isExpanded:ue,isSelected:H,isItemSelected:!!Z,extension:ee,mimeType:e.mimeType},le,de):null,Ge={...Ce?J?.hoverStyle:{},...N&&H?J?.directorySelectedStyle:{},...!N&&(H||Z)?J?.itemSelectedStyle:{}},qe=_n(e.data),dt={width:de,height:de},Ne=Pn(be),ve=n+t*U;return d.jsxs("div",{className:me,style:{...Ne,...Ge,...Ie,...e.style,paddingLeft:`${Math.max(0,ve)}px`,transform:ve<0?`translateX(${ve}px)`:void 0,width:ve<0?`calc(100% + ${-ve}px)`:void 0,height:`${m}px`},...qe,"data-entry-type":N?"directory":"file","data-entry-expanded":N?String(ue):void 0,"data-entry-selected":H?"true":void 0,"data-entry-item-selected":Z?"true":void 0,onClick:we,onMouseEnter:()=>_e(!0),onMouseLeave:()=>_e(!1),onFocus:G=>x(u,e.absolutePath,G.currentTarget),onBlur:G=>C(e.absolutePath,G.currentTarget),ref:Y,onKeyDown:G=>{if(G.key==="Enter"||G.key===" "){G.preventDefault(),G.repeat||we(G);return}R(G,u)},tabIndex:f?0:-1,role:"treeitem","aria-expanded":N?ue:void 0,"aria-level":r+1,"aria-posinset":a,"aria-setsize":i,"aria-selected":T==="none"?void 0:l,"aria-current":je?"page":void 0,"aria-label":`${e.name} (${N?p:h})`,children:[(X||ge)&&d.jsx("span",{className:Ke,style:{...Se,width:oe,height:oe},children:ct}),(N?D:K)&&d.jsx("span",{className:A,style:dt,children:Ye}),d.jsx("span",{className:Ze,style:{...Ne,...M,...N?z:E},"data-entry-type":N?"directory":"file","data-entry-role":"name",children:e.label??e.name})]})},(e,t)=>{if(e.entry!==t.entry)return!1;const n=e.entry.children!==void 0,r=t.entry.children!==void 0,a=n&&e.isDirOpen(e.entry.absolutePath),i=r&&t.isDirOpen(t.entry.absolutePath);return e.indentLevel===t.indentLevel&&e.originX===t.originX&&e.depth===t.depth&&e.positionInSet===t.positionInSet&&e.setSize===t.setSize&&e.isSelectedForAria===t.isSelectedForAria&&e.flatIndex===t.flatIndex&&e.isActive===t.isActive&&e.rowHeight===t.rowHeight&&e.entryKindDirectory===t.entryKindDirectory&&e.entryKindFile===t.entryKindFile&&a===i&&e.selection.selectedPath===t.selection.selectedPath&&e.selection.currentPath===t.selection.currentPath&&e.selection.mode===t.selection.mode&&e.selection.selectedItems===t.selection.selectedItems&&e.visual.iconOverrides===t.visual.iconOverrides&&e.visual.showExpandIcons===t.visual.showExpandIcons&&e.visual.showDirectoryIcons===t.visual.showDirectoryIcons&&e.visual.showFileIcons===t.visual.showFileIcons&&e.visual.useCanvasExpandIcons===t.visual.useCanvasExpandIcons&&e.visual.expandIconSize===t.visual.expandIconSize&&e.visual.typeIconSize===t.visual.typeIconSize&&e.visual.fontSize===t.visual.fontSize&&e.visual.indentSize===t.visual.indentSize&&e.visual.highlightStyles===t.visual.highlightStyles&&e.visual.entryClassName===t.visual.entryClassName&&e.visual.entryStyle===t.visual.entryStyle&&e.visual.nameClassName===t.visual.nameClassName&&e.visual.nameStyle===t.visual.nameStyle&&e.visual.directoryNameClassName===t.visual.directoryNameClassName&&e.visual.directoryNameStyle===t.visual.directoryNameStyle&&e.visual.fileNameClassName===t.visual.fileNameClassName&&e.visual.fileNameStyle===t.visual.fileNameStyle&&e.visual.expandIconClassName===t.visual.expandIconClassName&&e.visual.expandIconStyle===t.visual.expandIconStyle});Un.displayName="DirectoryEntryItem";const Jn=e=>{const t=[];if(e.children)for(const n of e.children)n.type==="directory"&&(t.push(n.absolutePath),t.push(...Jn(n)));return t},po=({entries:e,expansion:{toggle:t,isExpanded:n,expandMultiple:r,collapseMultiple:a,isPending:i,alwaysExpanded:l=!1,doubleClickAction:u="recursive"},selection:{onEntryClick:f,selectedPath:g,currentPath:R,mode:x="none",selectedItems:C,onSelectionChange:m},visual:{className:p,style:h,ariaLabel:w,ariaLabelledBy:S,lineColor:j=Nn,showTreeLines:I=!0,showExpandIcons:k=!0,showDirectoryIcons:y=!0,showFileIcons:T=!0,iconOverrides:O,expandIconSize:L,typeIconSize:le,fontSize:X,indentSize:D,itemHeight:K=Ct,removeRootIndent:ge=!1,highlightStyles:F,entryClassName:de,entryStyle:be,nameClassName:U,nameStyle:J,directoryNameClassName:Oe,directoryNameStyle:Ie,fileNameClassName:Re,fileNameStyle:M,expandIconClassName:Q,expandIconStyle:z}={},virtualScroll:We,grid:E,sort:Me,locale:Se,labels:Ce,ref:_e})=>{const N=ce.resolveVirtualScrollLocale(Se),ue=s.useMemo(()=>Vn(Se,Ce),[Se,Ce]),H=co(Fr(ue)),{entryKindDirectory:je,entryKindFile:Z}=ue,Y=s.useMemo(()=>Hr({indentSize:D,typeIconSize:le,fontSize:X}),[D,le,X]);s.useMemo(()=>{He(be,{option:"visual.entryStyle"}),He(F?.hoverStyle,{option:"visual.highlightStyles.hoverStyle"}),He(F?.directorySelectedStyle,{option:"visual.highlightStyles.directorySelectedStyle"}),He(F?.itemSelectedStyle,{option:"visual.highlightStyles.itemSelectedStyle"}),Pr(z,{option:"visual.expandIconStyle"})},[be,F,z]);const ee=E!==void 0,we=s.useSyncExternalStore(ao,lo,io),he=s.useRef(null),ke=s.useRef(null),me=s.useRef(null),[Ke,A]=s.useState(0),[Ze,ct]=s.useState(0),[Ye,Ge]=s.useState(0),[qe,dt]=s.useState(null),{overscanCount:Ne=15,className:ve,background:G,onScroll:_t,onRangeChange:jt,onScrollAdjust:At,liveRegion:Dt,initialScrollIndex:zt,initialScrollOffset:Ae,initialScrollAnchor:Ft,callbackThrottleMs:$t=5,contentInsets:Bt,onItemFocus:Ht,viewportHeightOverride:te,scrollBarOptions:ut,behaviorOptions:Wt,preserveScrollAnchor:Kt=!1,getItemKey:Zn,testId:Yt,contentProps:ft}=We??{},Gt=s.useMemo(()=>ee?{...ft,role:"rowgroup"}:{...ft,role:"tree","aria-label":S?void 0:w,"aria-labelledby":S,"aria-multiselectable":x==="multiple"?!0:void 0,"aria-busy":i?!0:void 0},[ee,ft,w,S,x,i]),Vt=s.useMemo(()=>({...Wt,enableKeyboardNavigation:!1}),[Wt]),[Qe,Xt]=s.useState(typeof Ae=="number"?Ae:0),ht=s.useRef(typeof Ae=="number"?Ae:0),Ut=s.useCallback((o,c)=>{ht.current=o,Xt(o),_t?.(o,c)},[_t]),Jt=s.useCallback(o=>{const{renderingStartIndex:c,renderingEndIndex:b}=o;dt(v=>v&&v.renderStart===c&&v.renderEnd===b?v:{renderStart:c,renderEnd:b}),jt?.(o)},[jt]);s.useEffect(()=>{so()},[]),s.useEffect(()=>{const o=he.current,c=ee?ke.current:o,b=()=>{if(o){const _=o.clientWidth;ct(W=>Math.abs(W-_)>1?_:W)}if(typeof te=="number")A(_=>Math.abs(_-te)>1?te:_);else if(c){const _=c.clientHeight;A(W=>Math.abs(W-_)>1?_:W)}};if(!(o||c))return A(0);b();const v=new ResizeObserver(b);return o&&v.observe(o),c&&c!==o&&v.observe(c),()=>v.disconnect()},[te,ee]);const De=typeof te=="number"?te:Ke,fe=s.useCallback(o=>l||(we?n(o):!1),[we,n,l]),Zt=B.twMerge(P.container,i&&P.containerPending,p),qt=s.useMemo(()=>({...oo,...h??{},...typeof te=="number"?{height:te,minHeight:te}:{}}),[h,te]),mt=s.useCallback((o,c)=>{const b=[o.absolutePath,...Jn(o)],v=c||u;if(b.every(ye=>fe(ye)))return a(b);if(b.every(ye=>!fe(ye))||v==="recursive")return r(b);if(v==="toggle")return a(b);console.warn(`[DirectoryTree] Unknown double click action: ${v}. No action taken.`)},[fe,r,a,u]),pt=ee?!1:ge,{flatItems:Le,lineItems:yt,maxIndent:Qt}=s.useMemo(()=>fo(e,fe,I,pt,Me),[e,fe,I,pt,Me]),et=Wr({indentSize:Y.indentSize,removeRootIndent:pt,hasExpandBox:k||I}),ie=s.useMemo(()=>I?Yr(Y,L,et):null,[I,Y,L,et]),$=s.useMemo(()=>Le.map((o,c)=>({...o,rowHeight:Kr(K,o.entry,c)})),[Le,K]),xe=s.useMemo(()=>$.map(o=>o.rowHeight),[$]),Pe=s.useMemo(()=>{const o=new Array(xe.length+1);o[0]=0;for(let c=0;c<xe.length;c++)o[c+1]=o[c]+xe[c];return o},[xe]),en=s.useCallback(o=>$[o]?.rowHeight??Ct,[$]),qn=s.useCallback(o=>$[o]?.entry.absolutePath??o,[$]),tn=Zn??qn,ze=g??null,gt=R??null,[nn,Ve]=s.useState(()=>({selectedPath:ze,selectionGeneration:0,anchor:null})),bt=En(nn,ze);bt!==nn&&Ve(o=>En(o,ze));const tt=s.useMemo(()=>to(Le),[Le]),Fe=s.useMemo(()=>ro(tt,bt),[tt,bt]),Xe=s.useRef(new Map),nt=s.useRef(null),[rt]=s.useState($r),Ue=s.useRef(null),[Qn,rn]=s.useState(!0),St=s.useRef(Le);St.current=Le;const on=s.useRef(fe);on.current=fe;const wt=s.useRef(t);wt.current=t;const sn=s.useRef(tt);sn.current=tt;const vt=s.useRef(Fe);vt.current=Fe;const an=s.useRef(Ht);an.current=Ht;const Te=s.useCallback(o=>{const c=me.current;return!c||c.getViewportSize()<=0?!1:(c.scrollToIndex(o,{align:"nearest"}),!0)},[]),pe=s.useCallback(o=>{const c=Xe.current.get(o);if(c===void 0){Ue.current=o,Te(o)||(Ue.current=null);return}Ue.current=null,Te(o),c.focus({preventScroll:!0})},[Te]),ln=s.useCallback((o,c)=>{if(c)Xe.current.set(o,c),Ue.current===o?(Ue.current=null,c.focus({preventScroll:!0})):c.contains(c.ownerDocument.activeElement)&&Ve(b=>b.anchor===null?b:{...b,anchor:{...b.anchor,focused:!0}});else{const b=Xe.current.get(o);Xe.current.delete(o),b?.contains(b.ownerDocument.activeElement)&&Ve(v=>v.anchor===null?v:{...v,anchor:{...v.anchor,focused:!1}})}o===vt.current&&rn(c!==null)},[]);s.useLayoutEffect(()=>{rn(Xe.current.has(Fe))},[Fe]);const xt=s.useCallback((o,c,b)=>{const v=nt.current===b;nt.current=null,v||(Ve(_=>no(_,c)),rt.landedOn(b)||Te(o)),an.current?.(o)},[Te,rt]),ot=s.useCallback(o=>rt.mark(o.nativeEvent),[rt]),Et=s.useCallback((o,c)=>{const{ownerDocument:b}=c;if(!b.hasFocus()&&c.contains(b.activeElement)){nt.current=c;return}nt.current=null,Ve(v=>v.anchor!==null&&v.anchor.path===o?{...v,anchor:{...v.anchor,focused:!1}}:v)},[]),er=s.useCallback(()=>pe(vt.current),[pe]),It=s.useCallback((o,c)=>{const b=Rn(c),v=St.current.length;if(!Number.isInteger(o)||o<0||o>=v)throw new RangeError(`[directory-tree] scrollToIndex: ${String(o)} is not a row index (${v===0?"the tree has no rows":`expected an integer in 0..${String(v-1)}`}).`);if(b==="nearest"){Te(o);return}me.current?.scrollToIndex(o,{align:b})},[Te]);s.useImperativeHandle(_e,()=>({scrollToIndex:It,scrollToPath:(o,c)=>{Rn(c);const b=sn.current.get(o);return b===void 0?!1:(It(b,c),!0)},getScrollAnchor:()=>me.current?.getScrollAnchor()??null}),[It]);const cn=s.useCallback((o,c)=>{if(o.altKey||o.ctrlKey||o.metaKey)return;const b=St.current,v=b.length-1;if(v<0)return;const _=b[c],W=_?.entry.children!==void 0,ye=W&&on.current(_.entry.absolutePath);switch(o.key){case"ArrowDown":o.preventDefault(),pe(Math.min(c+1,v));break;case"ArrowUp":o.preventDefault(),pe(Math.max(c-1,0));break;case"Home":o.preventDefault(),pe(0);break;case"End":o.preventDefault(),pe(v);break;case"ArrowRight":o.preventDefault(),W&&!ye?wt.current(_.entry.absolutePath):W&&c<v&&b[c+1].depth>_.depth&&pe(c+1);break;case"ArrowLeft":{if(o.preventDefault(),W&&ye){wt.current(_.entry.absolutePath);break}const sr=_?.depth??0;for(let it=c-1;it>=0;it--)if(b[it].depth<sr){pe(it);break}break}}},[pe]),st=s.useMemo(()=>ie===null||yt.length===0?{segmentsByItem:[],glyphsByItem:[]}:mo(yt,xe,Pe,ie),[yt,xe,Pe,ie]),at=s.useMemo(()=>ie===null||e.length===0?0:ie.originX+Qt*ie.indentSize+oe+ie.typeIconSize,[e.length,Qt,ie]),{renderStart:dn,renderEnd:un,lookaheadEnd:fn}=s.useMemo(()=>ho($.length,De,Ne,qe,Qe,Pe),[$.length,De,Ne,qe,Qe,Pe]),Rt=s.useMemo(()=>ie===null||at<=0||De<=0||st.segmentsByItem.length===0?null:d.jsx("div",{className:"pointer-events-none absolute inset-0 z-1","aria-hidden":"true",children:d.jsx("div",{className:"absolute top-0 left-0",style:{width:at,height:De},children:d.jsx(Xn,{segmentsByItem:st.segmentsByItem,glyphsByItem:st.glyphsByItem,itemHeight:xe[0]??Ct,width:at,viewportHeight:De,scrollPosition:Qe,color:j,expandGlyphColor:j,expandGlyphSize:ie.glyphSize,renderStartIndex:dn,renderEndIndex:un,lookaheadEndIndex:fn})})}),[at,De,dn,un,fn,Qe,st,j,ie,xe]),hn=s.useCallback(o=>$[o],[$]),mn=s.useRef(null);s.useLayoutEffect(()=>{const o=mn.current;if(mn.current={items:$,offsets:Pe},!Kt||!o||o.items===$)return;const c=me.current,b=c?.getScrollPosition(),v=typeof b=="number"&&b>=0?b:ht.current,_=Xr(o.items,o.offsets,v);if(!_)return;const W=Ur(_,$,Pe);if(W===null||Math.abs(W-v)<1)return;const ye=c?c.scrollTo(W):W;ht.current=ye,Xt(ye)},[$,Pe,Kt]);const Ee=E?.columns,$e=E?.scrollBarWidth??ut?.width??Kn,V=s.useMemo(()=>Ee?Ar({measuredWidth:Ze,columns:Ee,scrollBarWidth:$e}):null,[Ee,Ze,$e]),lt=s.useMemo(()=>Ee?jr(Ee):"",[Ee]),tr=s.useMemo(()=>E?.showFooter&&Ee?Dr(e):[],[E?.showFooter,Ee,e]),Be=V?.maxHScroll??0;s.useEffect(()=>{Ge(o=>kt(o,Be))},[Be]);const pn=s.useCallback(o=>Ge(c=>kt(c+o,Be)),[Be]),yn=s.useMemo(()=>({iconOverrides:O,showExpandIcons:k,showDirectoryIcons:y,showFileIcons:T,useCanvasExpandIcons:I,expandIconSize:L,typeIconSize:Y.typeIconSize,fontSize:Y.fontSize,indentSize:Y.indentSize,highlightStyles:F,expandIconClassName:Q,expandIconStyle:z}),[O,k,y,T,I,L,Y,F,Q,z]),gn=s.useMemo(()=>d.jsx(ce.VirtualScroll,{ref:me,itemCount:$.length,getItem:hn,getItemHeight:en,getItemKey:tn,testId:Yt,contentProps:Gt,locale:N,labels:H,viewportSize:typeof te=="number"?te:void 0,overscanCount:Ne,onScroll:Ut,onRangeChange:Jt,onScrollAdjust:At,liveRegion:Dt,className:ve,onWheelHorizontal:ee?pn:void 0,background:d.jsxs(d.Fragment,{children:[ee&&V?d.jsx("div",{className:"pointer-events-none absolute top-0 left-0 z-1 h-full overflow-hidden",style:{width:V.nameWidth},"aria-hidden":"true",children:Rt}):Rt,G]}),initialScrollIndex:zt,initialScrollOffset:Ae,initialScrollAnchor:Ft,callbackThrottleMs:$t,contentInsets:Bt,scrollBarOptions:ut,behaviorOptions:Vt,children:(o,c)=>o?ee&&E&&V?d.jsx(Bn,{entry:o.entry,indentLevel:o.indentLevel,positionInSet:o.positionInSet,setSize:o.setSize,rowIndex:c+(E.showHeader??!0?2:1),flatIndex:c,onRowFocus:xt,onRowBlur:Et,isSelectedForAria:!!C?.has(o.entry.absolutePath),rowHeight:o.rowHeight,isDirOpen:fe,columns:E.columns,numericTemplate:lt,numericTotal:V.numericTotal,nameWidth:V.nameWidth,rowClassName:E.rowClassName,selection:{onEntryClick:f,selectedPath:ze,currentPath:gt,mode:x,selectedItems:C,onSelectionChange:m},expansion:{toggleDirectory:t,onToggleDirectoryRecursive:mt},visual:yn},o.entry.absolutePath):d.jsx(Un,{entry:o.entry,indentLevel:o.indentLevel,originX:et,depth:o.depth,positionInSet:o.positionInSet,setSize:o.setSize,isSelectedForAria:!!C?.has(o.entry.absolutePath),flatIndex:c,isActive:c===Fe,registerRowRef:ln,onNavigationKeyDown:cn,onRowFocus:xt,onRowBlur:Et,rowHeight:o.rowHeight,entryKindDirectory:je,entryKindFile:Z,isDirOpen:fe,expansion:{toggleDirectory:t,onToggleDirectoryRecursive:mt},selection:{onEntryClick:f,selectedPath:ze,currentPath:gt,mode:x,selectedItems:C,onSelectionChange:m},visual:{iconOverrides:O,showExpandIcons:k,showDirectoryIcons:y,showFileIcons:T,useCanvasExpandIcons:I,expandIconSize:L,typeIconSize:Y.typeIconSize,fontSize:Y.fontSize,indentSize:Y.indentSize,highlightStyles:F,entryClassName:de,entryStyle:be,nameClassName:U,nameStyle:J,directoryNameClassName:Oe,directoryNameStyle:Ie,fileNameClassName:Re,fileNameStyle:M,expandIconClassName:Q,expandIconStyle:z}},o.entry.absolutePath):null}),[$.length,hn,en,tn,Yt,Gt,N,H,je,Z,Fe,ln,cn,xt,Et,te,Ne,Ut,Jt,At,Dt,ve,ee,pn,V,Rt,G,zt,Ae,Ft,$t,Bt,ut,Vt,E,lt,fe,f,ze,gt,x,C,m,t,mt,yn,O,k,y,T,I,L,Y,et,F,de,be,U,J,Oe,Ie,Re,M,Q,z]);if(!(E&&V))return d.jsxs("div",{ref:he,className:Zt,style:qt,onPointerDownCapture:ot,onMouseDownCapture:ot,children:[Le.length>0&&!Qn&&d.jsx("span",{tabIndex:0,"data-directory-tree-tab-stop":"",style:uo,onFocus:er}),gn]});const nr=E.showHeader??!0,rr=E.showFooter??!1,or={...qt,"--dt-hscroll":`${Ye}px`};return d.jsxs("div",{ref:he,className:B.twMerge(Zt,"dt-grid"),style:or,role:"treegrid","aria-label":S?void 0:w,"aria-labelledby":S,"aria-multiselectable":x==="multiple"?!0:void 0,"aria-busy":i?!0:void 0,"aria-rowcount":$.length+(E.showHeader??!0?1:0),onPointerDownCapture:ot,onMouseDownCapture:ot,children:[nr&&d.jsx("div",{role:"rowgroup",children:d.jsx(Or,{columns:E.columns,numericTemplate:lt,numericTotal:V.numericTotal,nameWidth:V.nameWidth,scrollBarWidth:$e,className:E.headerClassName})}),d.jsx("div",{ref:ke,className:"dt-grid-body",children:gn}),Be>0&&d.jsxs("div",{className:"dt-grid-hscrollbar-row",children:[d.jsx("div",{className:"dt-grid-scrollbar-spacer",style:{width:V.nameWidth},"aria-hidden":"true"}),d.jsx(ce.ScrollBar,{horizontal:!0,contentSize:V.numericTotal,viewportSize:V.numericVisible,scrollPosition:Ye,scrollBarWidth:$e,locale:N,labels:H,onScroll:o=>{const c=typeof o=="function"?o(Ye):o,b=kt(c,Be);return Ge(b),b}}),d.jsx("div",{className:"dt-grid-scrollbar-spacer",style:{width:$e},"aria-hidden":"true"})]}),rr&&d.jsx("div",{role:"rowgroup",children:d.jsx(Mr,{columns:E.columns,numericTemplate:lt,numericTotal:V.numericTotal,nameWidth:V.nameWidth,scrollBarWidth:$e,allEntries:tr,className:E.footerClassName})})]})},yo=({initialExpanded:e=new Set,storageKey:t}={})=>{const[n,r]=s.useTransition(),[a,i]=s.useState(()=>{if(typeof window<"u"&&t)try{const h=window.localStorage.getItem(t);if(h){const w=JSON.parse(h);return new Set(w)}}catch(h){console.error("[useDirectoryTreeState] Error reading from localStorage",h)}return e}),l=s.useCallback(h=>{r(()=>{i(w=>{const S=new Set(w);return h(S),S})})},[]),u=s.useCallback((h,w)=>{l(S=>{for(const j of h)w(S,j)})},[l]);s.useEffect(()=>{if(t&&typeof window<"u")try{window.localStorage.setItem(t,JSON.stringify(Array.from(a)))}catch(h){console.warn(`Error setting localStorage key "${t}":`,h)}},[a,t]);const f=s.useCallback(h=>{u([h],(w,S)=>{w.has(S)?w.delete(S):w.add(S)})},[u]),g=s.useCallback(h=>{u([h],(w,S)=>{w.add(S)})},[u]),R=s.useCallback(h=>{u([h],(w,S)=>{w.delete(S)})},[u]),x=s.useCallback(h=>{u(h,(w,S)=>{w.delete(S)})},[u]),C=s.useCallback(h=>{u(h,(w,S)=>{w.add(S)})},[u]),m=s.useCallback(()=>{l(h=>{h.clear()})},[l]),p=s.useCallback(h=>a.has(h),[a]);return{expanded:a,toggle:f,expand:g,collapse:R,collapseMultiple:x,expandMultiple:C,collapseAll:m,isExpanded:p,isPending:n}};exports.DIRECTORY_TREE_LABEL_CATALOGS=Gn;exports.DIRECTORY_TREE_LABEL_KEYS=Pt;exports.DirectoryTree=po;exports.EXPAND_ICON_STYLE_PROPERTIES=An;exports.FILE_ICON_PAIRS=hr;exports.MARK_PAIRS=kn;exports.ROW_STYLE_PROPERTIES=jn;exports.directoryTreeClasses=P;exports.resolveDirectoryTreeLabels=Vn;exports.useDirectoryTreeState=yo;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),i0=require("@aiquants/virtualscroll"),c=require("react"),D=require("tailwind-merge");function v2(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return a.default=e,Object.freeze(a)}const t=v2(c);function H2({title:e,titleId:a,...n},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},n),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",clipRule:"evenodd"}))}const V2=t.forwardRef(H2);function Z2({title:e,titleId:a,...n},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},n),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"}))}const M2=t.forwardRef(Z2);function y2({title:e,titleId:a,...n},r){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":a},n),e?t.createElement("title",{id:a},e):null,t.createElement("path",{d:"M19.5 21a3 3 0 0 0 3-3v-4.5a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3V18a3 3 0 0 0 3 3h15ZM1.5 10.146V6a3 3 0 0 1 3-3h5.379a2.25 2.25 0 0 1 1.59.659l2.122 2.121c.14.141.331.22.53.22H19.5a3 3 0 0 1 3 3v1.146A4.483 4.483 0 0 0 19.5 9h-15a4.483 4.483 0 0 0-3 1.146Z"}))}const E2=t.forwardRef(y2),b2=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),e0=t.forwardRef((e,a)=>{const{alt:n,color:r,size:o,weight:i,mirrored:s,children:u,weights:m,...g}=e,{color:E="currentColor",size:M,weight:b="regular",mirrored:f=!1,...p}=t.useContext(b2);return t.createElement("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:o??M,height:o??M,fill:r??E,viewBox:"0 0 256 256",transform:s||f?"scale(-1, 1)":void 0,...p,...g},!!n&&t.createElement("title",null,n),u,m.get(i??b))});e0.displayName="IconBase";const w2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"}))]]),we=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:w2}));we.displayName="FileIcon";const S2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M96.59,124.91a12,12,0,0,0-13.08,2.6L63,148H44a12,12,0,0,0-12,12v40a12,12,0,0,0,12,12H63l20.48,20.48A12,12,0,0,0,104,224V136A12,12,0,0,0,96.59,124.91ZM80,195l-3.51-3.52A12,12,0,0,0,68,188H56V172H68a12,12,0,0,0,8.49-3.51L80,165Zm80-15a44.55,44.55,0,0,1-21.95,38.36A12,12,0,1,1,126,197.64a20.51,20.51,0,0,0,0-35.28,12,12,0,1,1,12.1-20.72A44.55,44.55,0,0,1,160,180ZM216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v72a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212H180a12,12,0,0,0,0,24h20a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M72,160l24-24v88L72,200H48V160ZM152,32V88h56Z",opacity:"0.2"}),t.createElement("path",{d:"M99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM88,204.69,77.66,194.34A8,8,0,0,0,72,192H56V168H72a8,8,0,0,0,5.66-2.34L88,155.31ZM152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180Zm61.66-97.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180ZM99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM216,88V216a16,16,0,0,1-16,16H168a8,8,0,0,1,0-16h32V96H152a8,8,0,0,1-8-8V40H56v80a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M98.3,130.46a6,6,0,0,0-6.54,1.3L69.51,154H48a6,6,0,0,0-6,6v40a6,6,0,0,0,6,6H69.51l22.25,22.24A6,6,0,0,0,102,224V136A6,6,0,0,0,98.3,130.46Zm-8.3,79L76.24,195.76A6,6,0,0,0,72,194H54V166H72a6,6,0,0,0,4.24-1.76L90,150.49ZM150,180a38.53,38.53,0,0,1-19,33.18A6,6,0,0,1,125,202.82a26.5,26.5,0,0,0,0-45.64A6,6,0,0,1,131,146.82,38.53,38.53,0,0,1,150,180Zm62.24-96.24-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v80a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2H168a6,6,0,0,0,0,12h32a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M99.06,128.61a8,8,0,0,0-8.72,1.73L68.69,152H48a8,8,0,0,0-8,8v40a8,8,0,0,0,8,8H68.69l21.65,21.66A8,8,0,0,0,104,224V136A8,8,0,0,0,99.06,128.61ZM88,204.69,77.66,194.34A8,8,0,0,0,72,192H56V168H72a8,8,0,0,0,5.66-2.34L88,155.31ZM152,180a40.55,40.55,0,0,1-20,34.91A8,8,0,0,1,124,201.09a24.49,24.49,0,0,0,0-42.18A8,8,0,0,1,132,145.09,40.55,40.55,0,0,1,152,180Zm61.66-97.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v80a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216H168a8,8,0,0,0,0,16h32a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M97.53,132.3a4,4,0,0,0-4.36.87L70.34,156H48a4,4,0,0,0-4,4v40a4,4,0,0,0,4,4H70.34l22.83,22.83A4,4,0,0,0,100,224V136A4,4,0,0,0,97.53,132.3Zm-5.53,82L74.83,197.17A4,4,0,0,0,72,196H52V164H72a4,4,0,0,0,2.83-1.17L92,145.66ZM148,180a36.52,36.52,0,0,1-18,31.45,4,4,0,0,1-4-6.9,28.5,28.5,0,0,0,0-49.1,4,4,0,0,1,4-6.9A36.52,36.52,0,0,1,148,180Zm62.83-94.83-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v80a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4H168a4,4,0,0,0,0,8h32a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156Z"}))]]),Se=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:S2}));Se.displayName="FileAudioIcon";const L2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M180.49,143.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L155,152l-15.52-15.51a12,12,0,1,1,17-17Zm-64-24a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,0,0,17-17L101,152l15.52-15.51A12,12,0,0,0,116.49,119.51ZM220,88V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88ZM160,57V80h23Zm36,155V104H148a12,12,0,0,1-12-12V44H60V212Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-104,88a8,8,0,0,1-11.32,11.32l-24-24a8,8,0,0,1,0-11.32l24-24a8,8,0,0,1,11.32,11.32L91.31,152Zm72-12.68-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32l24,24A8,8,0,0,1,181.66,157.66ZM152,88V44l44,44Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M180.24,147.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L167.51,152l-19.75-19.76a6,6,0,1,1,8.48-8.48Zm-72-24a6,6,0,0,0-8.48,0l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,1,0,8.48-8.48L88.49,152l19.75-19.76A6,6,0,0,0,108.24,123.76ZM214,88V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-56-6h35.52L158,46.48Zm44,134V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200A2,2,0,0,0,202,216Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M178.83,149.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L170.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66Zm-72-24a4,4,0,0,0-5.66,0l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L85.66,152l21.17-21.17A4,4,0,0,0,106.83,125.17ZM212,88V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-56-4h42.34L156,41.65Zm48,132V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200A4,4,0,0,0,204,216Z"}))]]),Le=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:L2}));Le.displayName="FileCodeIcon";const x2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M48,180c0,8.67,5.49,16,12,16a10.27,10.27,0,0,0,7.33-3.43,12,12,0,1,1,17.34,16.6A34,34,0,0,1,60,220C40.15,220,24,202,24,180s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,1,1-17.34,16.6A10.27,10.27,0,0,0,60,164C53.49,164,48,171.31,48,180Zm97.51-5.71c-5.13-3.45-11.33-5.24-16.8-6.82a79.5,79.5,0,0,1-7.91-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,143,142a69.24,69.24,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.48,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2,2,0,0,1-.22.71c-1.36,1.55-9.57,1.79-16.39-.06a12,12,0,0,0-6.45,23.11A63.73,63.73,0,0,0,125.09,220c6.47,0,13.74-1.17,19.74-5.15a24.73,24.73,0,0,0,10.95-18C157,187.53,153.32,179.53,145.51,174.27ZM216,140.68A12,12,0,0,0,200.7,148L192,172.3,183.3,148A12,12,0,1,0,160.7,156l20,56a12,12,0,0,0,22.6,0l20-56A12,12,0,0,0,216,140.68ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.83-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44ZM48,180c0,11,7.18,20,16,20a14.18,14.18,0,0,0,10.06-4.5,8.21,8.21,0,0,1,10.9-.91,8,8,0,0,1,.82,11.81A30.06,30.06,0,0,1,64,216c-17.64,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.39,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.17,14.17,0,0,0,64,160C55.18,160,48,169,48,180Zm103.81,16.31a20.82,20.82,0,0,1-9.19,15.23C137.43,215,131,216,125.13,216A61.14,61.14,0,0,1,110,214a8,8,0,1,1,4.3-15.41c4.38,1.2,14.95,2.7,19.55-.36.88-.59,1.83-1.52,2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56,20.56,0,0,1,9-14.95c11.84-8,30.71-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54,4.54,0,0,0-2,3.67c-.12.9-.14,1.09,1.11,1.9,2.31,1.49,6.45,2.68,10.45,3.84C137.49,174.17,154.05,179,151.81,196.31ZM215.42,155l-19.89,55.68a8,8,0,0,1-15.06,0L160.58,155a8.21,8.21,0,0,1,4.5-10.45,8,8,0,0,1,10.45,4.76L188,184.21l12.47-34.9a8,8,0,0,1,10.45-4.76A8.23,8.23,0,0,1,215.42,155Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M46,180c0,12.13,8.07,22,18,22a16.24,16.24,0,0,0,11.67-5.28,6,6,0,0,1,8.66,8.3A28.06,28.06,0,0,1,64,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,64,158C54.07,158,46,167.86,46,180Zm81.05-6.77c-10.86-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.66-1.82,21.45-.84a6,6,0,0,0,3.06-11.6c-2-.53-20.1-5-31.21,2.48a18.61,18.61,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.78,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,110.48,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C151.84,180.39,136.92,176.08,127.05,173.22Zm83-26.88a6,6,0,0,0-7.67,3.63L188,190.15,173.65,150a6,6,0,1,0-11.3,4l20,56a6,6,0,0,0,11.3,0l20-56A6,6,0,0,0,210,146.34ZM214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88Zm-20.49-6L158,46.48V82Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M44,180c0,13.23,9,24,20,24a18.15,18.15,0,0,0,13.11-5.9,4,4,0,1,1,5.78,5.54A26.11,26.11,0,0,1,64,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,64,156C53,156,44,166.77,44,180Zm82.49-4.85c-10.53-3-15.08-4.91-14.42-10.08a8.51,8.51,0,0,1,3.75-6.49c6.25-4.23,18.77-2.24,23.06-1.11a4,4,0,0,0,2-7.74,61.11,61.11,0,0,0-10.47-1.61c-8.12-.54-14.54.75-19.1,3.82a16.66,16.66,0,0,0-7.22,12.13c-1.58,12.49,10.46,16,20.14,18.77,11.26,3.25,16.47,5.49,15.64,11.94a8.94,8.94,0,0,1-3.91,6.75c-6.27,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.89,57.89,0,0,0,125.19,212c5.18,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C149.64,181.84,136.26,178,126.49,175.15Zm82.85-26.92a4,4,0,0,0-5.11,2.42L188,196.11l-16.23-45.46a4,4,0,1,0-7.54,2.7l20,56a4,4,0,0,0,7.54,0l20-56A4,4,0,0,0,209.34,148.23ZM212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-13.66-4L156,41.65V84Z"}))]]),xe=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:x2}));xe.displayName="FileCsvIcon";const I2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M48,140H32a12,12,0,0,0-12,12v56a12,12,0,0,0,12,12H48a40,40,0,0,0,0-80Zm0,56H44V164h4a16,16,0,0,1,0,32Zm180.3-3.8a12,12,0,0,1,.37,17A34,34,0,0,1,204,220c-19.85,0-36-17.94-36-40s16.15-40,36-40a34,34,0,0,1,24.67,10.83,12,12,0,0,1-17.34,16.6A10.27,10.27,0,0,0,204,164c-6.5,0-12,7.33-12,16s5.5,16,12,16a10.27,10.27,0,0,0,7.33-3.43A12,12,0,0,1,228.3,192.2ZM128,140c-19.85,0-36,17.94-36,40s16.15,40,36,40,36-17.94,36-40S147.85,140,128,140Zm0,56c-6.5,0-12-7.33-12-16s5.5-16,12-16,12,7.33,12,16S134.5,196,128,196ZM48,120a12,12,0,0,0,12-12V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88a12,12,0,0,0-3.51-8.48l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68A12,12,0,0,0,48,120ZM160,57l23,23H160Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.18,14.18,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.64,0-32,16.15-32,36s14.36,36,32,36,32-16.15,32-36S145.64,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M44,120H212.07a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152.05,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120Zm108-76,44,44h-44ZM52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H51.33C71,216,87.55,200.52,88,180.87A36,36,0,0,0,52,144Zm-.49,56H44V160h8a20,20,0,0,1,20,20.77C71.59,191.59,62.35,200,51.52,200Zm170.67-4.28a8.26,8.26,0,0,1-.73,11.09,30,30,0,0,1-21.4,9.19c-17.65,0-32-16.15-32-36s14.36-36,32-36a30,30,0,0,1,21.4,9.19,8.26,8.26,0,0,1,.73,11.09,8,8,0,0,1-11.9.38A14.21,14.21,0,0,0,200.06,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.25,14.25,0,0,0,10.23-4.66A8,8,0,0,1,222.19,195.72ZM128,144c-17.65,0-32,16.15-32,36s14.37,36,32,36,32-16.15,32-36S145.69,144,128,144Zm0,56c-8.83,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.86,200,128,200Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M52,144H36a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8H52a36,36,0,0,0,0-72Zm0,56H44V160h8a20,20,0,0,1,0,40Zm169.53-4.91a8,8,0,0,1,.25,11.31A30.06,30.06,0,0,1,200,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,200,160c-8.82,0-16,9-16,20s7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,221.53,195.09ZM128,144c-17.65,0-32,16.15-32,36s14.35,36,32,36,32-16.15,32-36S145.65,144,128,144Zm0,56c-8.82,0-16-9-16-20s7.18-20,16-20,16,9,16,20S136.82,200,128,200ZM48,120a8,8,0,0,0,8-8V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72A8,8,0,0,0,48,120ZM160,51.31,188.69,80H160Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M52,148H36a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4H52a32,32,0,0,0,0-64Zm0,56H40V156H52a24,24,0,0,1,0,48Zm166.77-6a4,4,0,0,1,.12,5.66A26.11,26.11,0,0,1,200,212c-15.44,0-28-14.36-28-32s12.56-32,28-32a26.11,26.11,0,0,1,18.89,8.36,4,4,0,1,1-5.78,5.54A18.15,18.15,0,0,0,200,156c-11,0-20,10.77-20,24s9,24,20,24a18.15,18.15,0,0,0,13.11-5.9A4,4,0,0,1,218.77,198ZM128,148c-15.44,0-28,14.36-28,32s12.56,32,28,32,28-14.36,28-32S143.44,148,128,148Zm0,56c-11,0-20-10.77-20-24s9-24,20-24,20,10.77,20,24S139,204,128,204ZM48,116a4,4,0,0,0,4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88a4,4,0,0,0-1.17-2.83l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72A4,4,0,0,0,48,116ZM156,41.65,198.34,84H156Z"}))]]),Ie=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:I2}));Ie.displayName="FileDocIcon";const C2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M114,145.34a12,12,0,0,0-20,0L79,167.82,72.3,157.73a12,12,0,0,0-20.07.17L13.91,217.51A12,12,0,0,0,24,236H152a12,12,0,0,0,10-18.66ZM46,212,62.5,186.3l6.55,9.81a12,12,0,0,0,20,0l15-22.48L129.58,212ZM216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v84a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M104,152l48,72H24l36-56,16.36,25.45ZM152,32V88h56Z",opacity:"0.2"}),t.createElement("path",{d:"M110.66,147.56a8,8,0,0,0-13.32,0L76.49,178.85l-9.76-15.18a8,8,0,0,0-13.46,0l-36,56A8,8,0,0,0,24,232H152a8,8,0,0,0,6.66-12.44ZM38.65,216,60,182.79l9.63,15a8,8,0,0,0,13.39.11l21-31.47L137.05,216Zm175-133.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M158.66,219.56A8,8,0,0,1,152,232H24a8,8,0,0,1-6.73-12.33l36-56a8,8,0,0,1,13.46,0l9.76,15.18,20.85-31.29a8,8,0,0,1,13.32,0ZM216,88V216a16,16,0,0,1-16,16h-8a8,8,0,0,1,0-16h8V96H152a8,8,0,0,1-8-8V40H56v88a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M109,148.67a6,6,0,0,0-10,0L76.46,182.5,65.05,164.76a6,6,0,0,0-10.1,0l-36,56A6,6,0,0,0,24,230H152a6,6,0,0,0,5-9.33ZM35,218l25-38.9,11.32,17.6a6,6,0,0,0,10,.08l22.64-34L140.79,218ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v88a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M110.66,147.56a8,8,0,0,0-13.32,0L76.49,178.85l-9.76-15.18a8,8,0,0,0-13.46,0l-36,56A8,8,0,0,0,24,232H152a8,8,0,0,0,6.66-12.44ZM38.65,216,60,182.79l9.63,15a8,8,0,0,0,13.39.11l21-31.47L137.05,216Zm175-133.66-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v88a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M107.33,149.78a4,4,0,0,0-6.66,0L76.42,186.15,63.36,165.84a4,4,0,0,0-6.72,0l-36,56A4,4,0,0,0,24,228H152a4,4,0,0,0,3.33-6.22ZM31.33,220,60,175.4l13,20.22a4,4,0,0,0,3.33,1.83,3.93,3.93,0,0,0,3.36-1.78L104,159.21,144.53,220ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v88a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156Z"}))]]),Ce=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:C2}));Ce.displayName="FileImageIcon";const R2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M100,152v56a12,12,0,0,1-24,0V190.07l-6.17,8.81a12,12,0,0,1-19.66,0L44,190.07V208a12,12,0,0,1-24,0V152a12,12,0,0,1,21.83-6.88L60,171.07l18.17-25.95A12,12,0,0,1,100,152Zm84,28a40,40,0,0,1-40,40H128a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,184,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,160,180Zm60-92V224a12,12,0,0,1-24,0V104H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88Zm-60-8h23L160,57Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H196a4,4,0,0,1,4,4V224a8,8,0,0,0,9.19,7.91,8.15,8.15,0,0,0,6.81-8.16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Zm-8,56H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,144,144Zm-.49,56H136V160h8a20,20,0,0,1,20,20.77C163.58,191.59,154.34,200,143.51,200ZM104,152v55.73A8.17,8.17,0,0,1,96.53,216,8,8,0,0,1,88,208V177.38l-13.32,19a8.3,8.3,0,0,1-4.2,3.2,8,8,0,0,1-9-3L48,177.38v30.35A8.17,8.17,0,0,1,40.53,216,8,8,0,0,1,32,208V152.31a8.27,8.27,0,0,1,4.56-7.53,8,8,0,0,1,10,2.63L68,178.05l21.27-30.39a8.28,8.28,0,0,1,8.06-3.55A8,8,0,0,1,104,152Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V224a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM144,146H128a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6h16a34,34,0,0,0,0-68Zm0,56H134V158h10a22,22,0,0,1,0,44Zm-42-50v56a6,6,0,0,1-12,0V171L72.92,195.44a6,6,0,0,1-9.84,0L46,171v37a6,6,0,0,1-12,0V152a6,6,0,0,1,10.92-3.44l23.08,33,23.08-33A6,6,0,0,1,102,152Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V224a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM144,144H128a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h16a36,36,0,0,0,0-72Zm0,56h-8V160h8a20,20,0,0,1,0,40Zm-40-48v56a8,8,0,0,1-16,0V177.38L74.55,196.59a8,8,0,0,1-13.1,0L48,177.38V208a8,8,0,0,1-16,0V152a8,8,0,0,1,14.55-4.59L68,178.05l21.45-30.64A8,8,0,0,1,104,152Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V224a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM144,148H128a4,4,0,0,0-4,4v56a4,4,0,0,0,4,4h16a32,32,0,0,0,0-64Zm0,56H132V156h12a24,24,0,0,1,0,48Zm-44-52v56a4,4,0,0,1-8,0V164.69l-20.72,29.6a4,4,0,0,1-6.56,0L44,164.69V208a4,4,0,0,1-8,0V152a4,4,0,0,1,7.28-2.29L68,185l24.72-35.31A4,4,0,0,1,100,152Z"}))]]),Re=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:R2}));Re.displayName="FileMdIcon";const k2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"}))]]),ke=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:k2}));ke.displayName="FilePdfIcon";const N2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,152a12,12,0,0,1-12,12h-8v44a12,12,0,0,1-24,0V164h-8a12,12,0,0,1,0-24h40A12,12,0,0,1,232,152ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm96,0a32,32,0,0,1-32,32h-4v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h16A32,32,0,0,1,164,172Zm-24,0a8,8,0,0,0-8-8h-4v16h4A8,8,0,0,0,140,172ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,80h23L160,57Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,152.53a8.17,8.17,0,0,1-8.25,7.47H204v47.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V160H176.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h40A8,8,0,0,1,224,152.53ZM92,172.85C91.54,188.08,78.64,200,63.4,200H56v7.73A8.17,8.17,0,0,1,48.53,216,8,8,0,0,1,40,208V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172.85Zm-16-2A12.25,12.25,0,0,0,63.65,160H56v24h8A12,12,0,0,0,76,170.84Zm84,2C159.54,188.08,146.64,200,131.4,200H124v7.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172.85Zm-16-2A12.25,12.25,0,0,0,131.65,160H124v24h8A12,12,0,0,0,144,170.84ZM40,116V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v28a4,4,0,0,1-4,4H44A4,4,0,0,1,40,116ZM152,88h44L152,44Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M222,152a6,6,0,0,1-6,6H202v50a6,6,0,0,1-12,0V158H176a6,6,0,0,1,0-12h40A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm80,0a26,26,0,0,1-26,26H122v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h16A26,26,0,0,1,158,172Zm-12,0a14,14,0,0,0-14-14H122v28h10A14,14,0,0,0,146,172ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H204v48a8,8,0,0,1-16,0V160H176a8,8,0,0,1,0-16h40A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm84,0a28,28,0,0,1-28,28h-8v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h16A28,28,0,0,1,160,172Zm-16,0a12,12,0,0,0-12-12h-8v24h8A12,12,0,0,0,144,172ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M220,152a4,4,0,0,1-4,4H200v52a4,4,0,0,1-8,0V156H176a4,4,0,0,1,0-8h40A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm76,0a24,24,0,0,1-24,24H120v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h16A24,24,0,0,1,156,172Zm-8,0a16,16,0,0,0-16-16H120v32h12A16,16,0,0,0,148,172ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"}))]]),Ne=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:N2}));Ne.displayName="FilePptIcon";const F2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),Fe=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:F2}));Fe.displayName="FileTextIcon";const P2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216.49,79.51l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48V212a12,12,0,0,0,0,24h4a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.51ZM160,57l23,23H160Zm-1.91,84.69a12,12,0,0,0-11.92-.15L126.5,152.44A20,20,0,0,0,108,140H48a20,20,0,0,0-20,20v48a20,20,0,0,0,20,20h60a20,20,0,0,0,18.5-12.44l19.67,10.93A12,12,0,0,0,164,216V152A12,12,0,0,0,158.09,141.66ZM104,204H52V164h52Zm36-8.39-12-6.67v-9.88l12-6.67Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Zm-88,72a8,8,0,0,0-8-8H48a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V196l32,20V152l-32,20Z",opacity:"0.2"}),t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM144,201.57l-16-10V176.43l16-10Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216a2,2,0,0,1-2,2h-8a6,6,0,0,0,0,12h8a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158Zm-3.09,100.27a6,6,0,0,0-6.09.16L126,161.17V160a14,14,0,0,0-14-14H48a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h64a14,14,0,0,0,14-14v-1.17l22.82,14.26A6,6,0,0,0,158,216V152A6,6,0,0,0,154.91,146.75ZM114,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V160a2,2,0,0,1,2-2h64a2,2,0,0,1,2,2Zm32-2.83-20-12.5V175.33l20-12.5Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48V216h-8a8,8,0,0,0,0,16h8a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM155.88,145a8,8,0,0,0-8.12.22l-19.95,12.46A16,16,0,0,0,112,144H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h64a16,16,0,0,0,15.81-13.68l19.95,12.46A8,8,0,0,0,160,216V152A8,8,0,0,0,155.88,145ZM112,208H48V160h64v48Zm32-6.43-16-10V176.43l16-10Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216a4,4,0,0,1-4,4h-8a4,4,0,0,0,0,8h8a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM153.94,148.5a4,4,0,0,0-4.06.11L124,164.78V160a12,12,0,0,0-12-12H48a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12v-4.78l25.88,16.17A4,4,0,0,0,152,220a4.06,4.06,0,0,0,1.94-.5A4,4,0,0,0,156,216V152A4,4,0,0,0,153.94,148.5ZM116,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V160a4,4,0,0,1,4-4h64a4,4,0,0,1,4,4Zm32,.78-24-15V174.22l24-15Z"}))]]),Pe=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:P2}));Pe.displayName="FileVideoIcon";const T2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M160,208a12,12,0,0,1-12,12H120a12,12,0,0,1-12-12V152a12,12,0,0,1,24,0v44h16A12,12,0,0,1,160,208ZM91,142.22A12,12,0,0,0,74.24,145L64,159.34,53.77,145a12,12,0,1,0-19.53,14l15,21-15,21A12,12,0,1,0,53.77,215L64,200.62,74.24,215A12,12,0,0,0,93.77,201l-15-21,15-21A12,12,0,0,0,91,142.22Zm122.53,32.05c-5.12-3.45-11.32-5.24-16.79-6.82a79.69,79.69,0,0,1-7.92-2.59c2.45-1.18,9.71-1.3,16.07.33A12,12,0,0,0,211,142a69,69,0,0,0-12-1.86c-9.93-.66-18,1.08-24.1,5.17a24.45,24.45,0,0,0-10.69,17.76c-1.1,8.74,2.49,16.27,10.11,21.19,4.78,3.09,10.36,4.7,15.75,6.26,3,.89,7.94,2.3,9.88,3.53a2.48,2.48,0,0,1-.21.71c-1.37,1.55-9.58,1.79-16.39-.06a12,12,0,1,0-6.46,23.11A63.75,63.75,0,0,0,193.1,220c6.46,0,13.73-1.17,19.73-5.15a24.73,24.73,0,0,0,10.95-18C225,187.53,221.33,179.53,213.51,174.27ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.51l56,56A12,12,0,0,1,220,88v20a12,12,0,1,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,1,1-24,0ZM160,80h23L160,57Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.94c-2,15.89,13.65,20.42,23,23.12,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.56-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm4,164.53a8.18,8.18,0,0,1-8.25,7.47H120a8,8,0,0,1-8-8V152.27a8.18,8.18,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v48h20A8,8,0,0,1,156,208.53ZM94.51,156.65,77.83,180l16.68,23.35a8,8,0,0,1-13,9.3L68,193.76,54.51,212.65a8,8,0,1,1-13-9.3L58.17,180,41.49,156.65a8,8,0,0,1,2.3-11.46,8.19,8.19,0,0,1,10.88,2.38L68,166.24l13.49-18.89a8,8,0,0,1,13,9.3Zm121.28,39.66a20.81,20.81,0,0,1-9.18,15.23C201.42,215,194.94,216,189.12,216a60.63,60.63,0,0,1-15.19-2,8,8,0,0,1,4.31-15.41c4.38,1.21,14.94,2.71,19.54-.35.89-.6,1.84-1.52,2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58,20.58,0,0,1,8.95-14.94c11.84-8,30.72-3.31,32.83-2.76a8,8,0,0,1-4.07,15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54,4.54,0,0,0-2,3.67c-.11.9-.13,1.08,1.12,1.9,2.31,1.49,6.45,2.68,10.45,3.84C201.48,174.17,218,179,215.79,196.31Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M154,208a6,6,0,0,1-6,6H120a6,6,0,0,1-6-6V152a6,6,0,1,1,12,0v50h22A6,6,0,0,1,154,208ZM91.48,147.11a6,6,0,0,0-8.36,1.39L68,169.67,52.88,148.5a6,6,0,1,0-9.76,7L60.63,180,43.12,204.5a6,6,0,1,0,9.76,7L68,190.31l15.12,21.16A6,6,0,0,0,88,214a5.91,5.91,0,0,0,3.48-1.12,6,6,0,0,0,1.4-8.37L75.37,180l17.51-24.51A6,6,0,0,0,91.48,147.11ZM191,173.22c-10.85-3.13-13.41-4.69-13-7.91a6.59,6.59,0,0,1,2.88-5.08c5.6-3.79,17.65-1.83,21.44-.84a6,6,0,0,0,3.07-11.6c-2-.54-20.1-5-31.21,2.48a18.64,18.64,0,0,0-8.08,13.54c-1.8,14.19,12.26,18.25,21.57,20.94,12.12,3.5,14.77,5.33,14.2,9.76a6.85,6.85,0,0,1-3,5.34c-5.61,3.73-17.48,1.64-21.19.62A6,6,0,0,0,174.47,212a59.41,59.41,0,0,0,14.68,2c5.49,0,11.54-.95,16.36-4.14a18.89,18.89,0,0,0,8.31-13.81C215.83,180.39,200.91,176.08,191,173.22ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.24,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,1,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,1,1-12,0ZM158,82H193.5L158,46.48Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M156,208a8,8,0,0,1-8,8H120a8,8,0,0,1-8-8V152a8,8,0,0,1,16,0v48h20A8,8,0,0,1,156,208ZM92.65,145.49a8,8,0,0,0-11.16,1.86L68,166.24,54.51,147.35a8,8,0,1,0-13,9.3L58.17,180,41.49,203.35a8,8,0,0,0,13,9.3L68,193.76l13.49,18.89a8,8,0,0,0,13-9.3L77.83,180l16.68-23.35A8,8,0,0,0,92.65,145.49Zm98.94,25.82c-4-1.16-8.14-2.35-10.45-3.84-1.25-.82-1.23-1-1.12-1.9a4.54,4.54,0,0,1,2-3.67c4.6-3.12,15.34-1.72,19.82-.56a8,8,0,0,0,4.07-15.48c-2.11-.55-21-5.22-32.83,2.76a20.58,20.58,0,0,0-8.95,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.33-2.15,3.93-4.6,3.06-15.16,1.55-19.54.35A8,8,0,0,0,173.93,214a60.63,60.63,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.81,20.81,0,0,0,9.18-15.23C218,179,201.48,174.17,191.59,171.31ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,1,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.68L160,51.31Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M152,208a4,4,0,0,1-4,4H120a4,4,0,0,1-4-4V152a4,4,0,0,1,8,0v52h24A4,4,0,0,1,152,208ZM90.32,148.75a4,4,0,0,0-5.58.92L68,173.12,51.25,149.67a4,4,0,0,0-6.5,4.66L63.08,180,44.75,205.67a4,4,0,0,0,.93,5.58A3.91,3.91,0,0,0,48,212a4,4,0,0,0,3.25-1.67L68,186.88l16.74,23.45A4,4,0,0,0,88,212a3.91,3.91,0,0,0,2.32-.75,4,4,0,0,0,.93-5.58L72.91,180l18.34-25.67A4,4,0,0,0,90.32,148.75Zm100.17,26.4c-10.53-3-15.08-4.91-14.43-10.08a8.57,8.57,0,0,1,3.75-6.49c6.26-4.23,18.77-2.24,23.07-1.11a4,4,0,0,0,2-7.74,61.33,61.33,0,0,0-10.48-1.61c-8.11-.54-14.54.75-19.09,3.82a16.63,16.63,0,0,0-7.22,12.13c-1.59,12.49,10.46,16,20.14,18.77,11.25,3.25,16.46,5.49,15.63,11.94a8.93,8.93,0,0,1-3.9,6.75c-6.28,4.17-18.61,2.05-22.83.88a4,4,0,1,0-2.15,7.7A57.7,57.7,0,0,0,189.19,212c5.17,0,10.83-.86,15.22-3.77a17,17,0,0,0,7.43-12.41C213.63,181.84,200.26,178,190.49,175.15ZM204,92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0Zm-5.65-8L156,41.65V84Z"}))]]),Te=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:T2}));Te.displayName="FileXlsIcon";const O2=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M188,140H172a12,12,0,0,0-12,12v56a12,12,0,0,0,24,0v-4h4a32,32,0,0,0,0-64Zm0,40h-4V164h4a8,8,0,0,1,0,16Zm-48-28v56a12,12,0,0,1-24,0V152a12,12,0,0,1,24,0ZM96,208a12,12,0,0,1-12,12H52a12,12,0,0,1-10.42-17.95L63.32,164H52a12,12,0,0,1,0-24H84A12,12,0,0,1,94.42,158L72.68,196H84A12,12,0,0,1,96,208ZM216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40v68a12,12,0,0,0,24,0V44h76V92a12,12,0,0,0,12,12h48v4a12,12,0,0,0,24,0V88A12,12,0,0,0,216.49,79.52ZM160,80V57l23,23Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),t.createElement("path",{d:"M184,144H168a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm-48-32v56a8,8,0,0,1-16,0V152a8,8,0,0,1,16,0ZM96,208a8,8,0,0,1-8,8H56a8,8,0,0,1-7-12l25.16-44H56a8,8,0,0,1,0-16H88a8,8,0,0,1,7,12L69.79,200H88A8,8,0,0,1,96,208ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M184,144H168a8,8,0,0,0-8,8v55.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,184,144Zm-.35,40H176V160h8A12,12,0,0,1,196,173.16,12.25,12.25,0,0,1,183.65,184ZM136,152v55.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152.27a8.17,8.17,0,0,1,7.47-8.25A8,8,0,0,1,136,152ZM96,208.53A8.17,8.17,0,0,1,87.73,216H56.23a8.27,8.27,0,0,1-6-2.5A8,8,0,0,1,49.05,204l25.16-44H56.27A8.17,8.17,0,0,1,48,152.53,8,8,0,0,1,56,144H87.77a8.27,8.27,0,0,1,6,2.5A8,8,0,0,1,95,156L69.79,200H88A8,8,0,0,1,96,208.53ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76a4,4,0,0,0,4,4H212a4,4,0,0,0,4-4V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M184,146H168a6,6,0,0,0-6,6v56a6,6,0,0,0,12,0V198h10a26,26,0,0,0,0-52Zm0,40H174V158h10a14,14,0,0,1,0,28Zm-50-34v56a6,6,0,0,1-12,0V152a6,6,0,0,1,12,0ZM94,208a6,6,0,0,1-6,6H56a6,6,0,0,1-5.21-9l26.87-47H56a6,6,0,0,1,0-12H88a6,6,0,0,1,5.21,9L66.34,202H88A6,6,0,0,1,94,208ZM212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72a6,6,0,0,0,12,0V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88A6,6,0,0,0,212.24,83.76ZM158,82V46.48L193.52,82Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M184,144H168a8,8,0,0,0-8,8v56a8,8,0,0,0,16,0v-8h8a28,28,0,0,0,0-56Zm0,40h-8V160h8a12,12,0,0,1,0,24Zm-48-32v56a8,8,0,0,1-16,0V152a8,8,0,0,1,16,0ZM96,208a8,8,0,0,1-8,8H56a8,8,0,0,1-7-12l25.16-44H56a8,8,0,0,1,0-16H88a8,8,0,0,1,7,12L69.79,200H88A8,8,0,0,1,96,208ZM213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v72a8,8,0,0,0,16,0V40h88V88a8,8,0,0,0,8,8h48v16a8,8,0,0,0,16,0V88A8,8,0,0,0,213.66,82.34ZM160,80V51.31L188.69,80Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M184,148H168a4,4,0,0,0-4,4v56a4,4,0,0,0,8,0V196h12a24,24,0,0,0,0-48Zm0,40H172V156h12a16,16,0,0,1,0,32Zm-52-36v56a4,4,0,0,1-8,0V152a4,4,0,0,1,8,0Zm-40.53,2L62.89,204H88a4,4,0,0,1,0,8H56a4,4,0,0,1-3.47-6l28.58-50H56a4,4,0,0,1,0-8H88a4,4,0,0,1,3.47,6ZM210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40v72a4,4,0,0,0,8,0V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52v20a4,4,0,0,0,8,0V88A4,4,0,0,0,210.83,85.17ZM156,84V41.65L198.34,84Z"}))]]),Oe=t.forwardRef((e,a)=>t.createElement(e0,{ref:a,...e,weights:O2}));Oe.displayName="FileZipIcon";const _e={icon:{light:"#6a7282",dark:"#99a1af"},iconSelected:{light:"#1447e6",dark:"#51a2ff"},checkedRing:{light:"#155dfc",dark:"#51a2ff"}},_2={markdown:{light:"#0084d1",dark:"#00bcff"},pdf:{light:"#e7000b",dark:"#ff6467"},spreadsheet:{light:"#007a55",dark:"#00d492"},csv:{light:"#007a55",dark:"#00d492"},document:{light:"#155dfc",dark:"#51a2ff"},presentation:{light:"#ca3500",dark:"#ff8904"},image:{light:"#00786f",dark:"#00d5be"},audio:{light:"#e60076",dark:"#fb64b6"},video:{light:"#7f22fe",dark:"#a684ff"},archive:{light:"#bb4d00",dark:"#ffb900"},code:{light:"#9810fa",dark:"#c27aff"},text:_e.icon},je="#71829b",r0={rowHover:"hover:bg-[color:light-dark(#f3f4f6,#1e2939)]",rowSelected:"bg-[color:light-dark(#eff6ff,#162456)]",checkedRing:"inset-ring-1 inset-ring-[color:light-dark(#155dfc,#51a2ff)]",name:"text-[color:light-dark(#364153,#e5e7eb)]",nameSelected:"text-[color:light-dark(#193cb8,#bedbff)]",gridEdge:"text-[color:light-dark(#4a5565,#d1d5dc)]",icon:"text-[color:light-dark(#6a7282,#99a1af)]",iconSelected:"text-[color:light-dark(#1447e6,#51a2ff)]"},o0={markdown:"text-[color:light-dark(#0084d1,#00bcff)]",pdf:"text-[color:light-dark(#e7000b,#ff6467)]",spreadsheet:"text-[color:light-dark(#007a55,#00d492)]",csv:"text-[color:light-dark(#007a55,#00d492)]",document:"text-[color:light-dark(#155dfc,#51a2ff)]",presentation:"text-[color:light-dark(#ca3500,#ff8904)]",image:"text-[color:light-dark(#00786f,#00d5be)]",audio:"text-[color:light-dark(#e60076,#fb64b6)]",video:"text-[color:light-dark(#7f22fe,#a684ff)]",archive:"text-[color:light-dark(#bb4d00,#ffb900)]",code:"text-[color:light-dark(#9810fa,#c27aff)]",text:"text-[color:light-dark(#6a7282,#99a1af)]"},$e="text-[length:var(--dt-font-size-body,0.8125rem)]",j2=`${$e} leading-[max(var(--dt-line-height-body,1.25rem),1.5em)]`,w1=44,$2=12,D2=8,l0=14,z2=14,De=e=>e===void 0?void 0:{fontSize:typeof e=="number"?`${e}px`:e},Q=e=>({width:e,height:e}),C={container:"directory-tree-container relative h-full overflow-y-hidden pb-[3px] pr-[2px]",containerPending:"cursor-progress",entry:`directory-tree-entry flex items-center cursor-pointer relative select-none ${j2}`,entryHover:`directory-tree-entry--hover ${r0.rowHover}`,entrySelected:`directory-tree-entry--selected ${r0.rowSelected}`,entryItemSelected:`directory-tree-entry--item-selected ${r0.rowSelected} ${r0.checkedRing}`,expandIcon:`directory-tree-expand-icon flex-shrink-0 flex items-center justify-center ${r0.icon}`,expandIconSelected:`directory-tree-expand-icon--selected ${r0.iconSelected}`,typeIcon:`directory-tree-type-icon flex-shrink-0 flex items-center justify-center ${r0.icon}`,typeIconSelected:`directory-tree-type-icon--selected ${r0.iconSelected}`,name:`directory-tree-name overflow-hidden text-ellipsis whitespace-nowrap ml-1 ${$e} font-normal ${r0.name}`,nameDirectory:"directory-tree-name--directory font-medium",nameSelected:`directory-tree-name--selected font-semibold ${r0.nameSelected}`},k1=e=>{const a=e.slice(e.lastIndexOf("/")+1),n=a.lastIndexOf(".");return n<=0?"":a.slice(n+1).toLowerCase()},B2=/^[a-z][a-z\d+.-]*:\/\//i,ge=e=>k1(B2.test(e)?e.split(/[?#]/,1)[0]:e),ze=e=>k1(e.name)||ge(e.relativePath)||ge(e.absolutePath),Be=({isDirectory:e,isExpanded:a,showExpandIcons:n,useCanvasExpandIcons:r,expandIconSize:o})=>{const i=o?{width:o,height:o}:void 0,s=o?"":"h-4 w-4";return!(n&&e)||r?h.jsx("span",{className:s,style:i,"aria-hidden":"true"}):a?h.jsx(V2,{className:s,style:i}):h.jsx(M2,{className:s,style:i})},L1=(e,a)=>{if(e==null||typeof e=="boolean")return null;if(typeof e=="function")return console.warn(`[DirectoryTree] Function returned by renderer for "${a}". Return a node.`),null;if(typeof e=="object"){if("then"in e)return console.warn(`[DirectoryTree] Promise returned for "${a}". Not supported.`),null;if(Array.isArray(e)){const r=e.map(o=>L1(o,a)).filter(Boolean);return r.length?r:null}const n=e.type;if(n&&n.$$typeof===Symbol.for("react.lazy"))return console.warn(`[DirectoryTree] Lazy component for "${a}". Not supported.`),null}return e},W2={markdown:e=>h.jsx(Re,{className:o0.markdown,style:Q(e)}),pdf:e=>h.jsx(ke,{className:o0.pdf,style:Q(e)}),spreadsheet:e=>h.jsx(Te,{className:o0.spreadsheet,style:Q(e)}),csv:e=>h.jsx(xe,{className:o0.csv,style:Q(e)}),document:e=>h.jsx(Ie,{className:o0.document,style:Q(e)}),presentation:e=>h.jsx(Ne,{className:o0.presentation,style:Q(e)}),image:e=>h.jsx(Ce,{className:o0.image,style:Q(e)}),audio:e=>h.jsx(Se,{className:o0.audio,style:Q(e)}),video:e=>h.jsx(Pe,{className:o0.video,style:Q(e)}),archive:e=>h.jsx(Oe,{className:o0.archive,style:Q(e)}),code:e=>h.jsx(Le,{className:o0.code,style:Q(e)}),text:e=>h.jsx(Fe,{className:o0.text,style:Q(e)})},K2={markdown:["md","markdown","mdx"],pdf:["pdf"],spreadsheet:["xls","xlsx","xlsm","xlsb","ods"],csv:["csv","tsv"],document:["doc","docx","rtf","odt"],presentation:["ppt","pptx","odp"],image:["png","jpg","jpeg","gif","svg","webp","ico","bmp","tiff","avif"],audio:["mp3","wav","ogg","m4a","flac","aac","wma"],video:["mp4","webm","mov","avi","mkv","wmv","flv"],archive:["zip","tar","gz","7z","rar","tgz","bz2"],code:["js","mjs","cjs","ts","tsx","jsx","json","html","htm","css","scss","py","go","rs","c","cpp","h","hpp","sh","bash","yaml","yml","sql","xml","toml"],text:["txt","log"]},Y2=new Map(Object.entries(K2).flatMap(([e,a])=>a.map(n=>[n,e]))),G2=new Set(["","application/octet-stream","binary/octet-stream","text/plain","application/x-empty"]),X2=e=>(e??"").split(";",1)[0].trim().toLowerCase(),U2=e=>{if(e==="text/markdown"||e==="text/x-markdown")return"markdown";if(e==="application/pdf")return"pdf";if(e.includes("excel")||e.includes("spreadsheet"))return"spreadsheet";if(e==="text/csv"||e==="text/tab-separated-values")return"csv";if(e.includes("word")||e.includes("google-apps.document")||e==="application/rtf")return"document";if(e.includes("powerpoint")||e.includes("presentation"))return"presentation";if(e.startsWith("image/"))return"image";if(e.startsWith("audio/"))return"audio";if(e.startsWith("video/"))return"video";if(e.includes("zip")||e.includes("tar")||e.includes("compressed")||e.includes("archive"))return"archive";if(e==="application/json"||e.includes("javascript")||e.includes("typescript")||e.includes("xml")||e.startsWith("text/html")||e.startsWith("text/css")||e.includes("x-python")||e.includes("x-sh")||e.includes("x-go")||e.includes("x-rust"))return"code";if(e.startsWith("text/"))return"text"},J2=(e,a,n,r)=>{const o=X2(e),i=U2(o),s=Y2.get((a||(n?k1(n):"")).toLowerCase()),m=(G2.has(o)?[s,i]:[i,s]).find(g=>g!==void 0);return m===void 0?h.jsx(we,{className:r0.icon,style:Q(r)}):W2[m](r)},We=(e,a,n)=>{const{entry:r,isDirectory:o,isExpanded:i,extension:s,mimeType:u}=e;let m;const g=u||r.mimeType;return r.icon!==void 0?m=r.icon:o?m=i&&a?.directoryExpanded||a?.directory||h.jsx(E2,{style:Q(n)}):s&&a?.fileByExtension?.[s]?m=a.fileByExtension[s]:m=a?.file||J2(g,s,r.name,n),L1(typeof m=="function"?m(e):m,r.absolutePath)},q2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ke=e=>{if(!e)return;const a=Object.entries(e).filter(([,n])=>n!=null);if(a.length!==0)return Object.fromEntries(a.map(([n,r])=>[`data-${q2(n)}`,String(r)]))},Ye=["color","background","backgroundColor","backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundClip","backgroundOrigin","backgroundAttachment","backgroundBlendMode","opacity","boxShadow","filter","backdropFilter","mixBlendMode","borderColor","borderRadius","outline","outlineColor","outlineStyle","outlineWidth","outlineOffset","textShadow","accentColor","caretColor","cursor","fontFamily","fontSize","fontStyle","fontWeight","fontVariant","fontFeatureSettings","fontVariationSettings","fontKerning","letterSpacing","lineHeight","textDecoration","textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness","textUnderlineOffset","textTransform"],Ge=["color","opacity"],Q2="the row's box belongs to the tree (height: visual.itemHeight, indent: visual.indentSize, icons: visual.typeIconSize, text size: visual.fontSize)",et=new Set(Ye),tt=new Set(Ge),ve=(e,a)=>{const n=a===void 0?e.option:`${e.option}.${a}`;return e.absolutePath===void 0?n:`${n} of "${e.absolutePath}"`},Xe=(e,a,n,r)=>{if(e!==void 0){if(typeof e!="object"||e===null)throw new RangeError(`${ve(n,void 0)} must be an object of CSS properties or undefined, got ${e===null?"null":typeof e}.`);for(const[o,i]of Object.entries(e))if(i!==void 0&&!a.has(o))throw new RangeError(`${ve(n,o)} cannot be set: ${Q2}, so ${r}.`)}},D0=(e,a)=>Xe(e,et,a,"a row style accepts only paint and text properties (ROW_STYLE_PROPERTIES)"),at=(e,a)=>Xe(e,tt,a,"the expand icon style accepts only the glyph's colour and opacity (EXPAND_ICON_STYLE_PROPERTIES), and the 14 px expand box is the tree's"),nt=500,Ue=({entry:e,isDirectory:a,isExpanded:n,isItemSelected:r,selectionMode:o,onSelectionChange:i,onEntryClick:s,toggleDirectory:u,onToggleDirectoryRecursive:m})=>{const g=c.useRef(null);return c.useEffect(()=>()=>{g.current&&window.clearTimeout(g.current)},[]),c.useCallback(E=>{E.stopPropagation(),o!=="none"&&!a&&i&&i(e,!r);let M=!1;s({entry:e,isDirectory:a,isExpanded:n,preventDefault:()=>{M=!0}}),!(!a||M)&&(g.current?(window.clearTimeout(g.current),g.current=null,m(e)):g.current=window.setTimeout(()=>{u(e.absolutePath),g.current=null},nt))},[a,e,n,m,u,s,o,i,r])},Je=e=>e==="right"?"dt-grid-cell--right":e==="center"?"dt-grid-cell--center":"",He=(e,a)=>e.children!==void 0&&a(e.absolutePath),qe=(e,a)=>({width:e,gridTemplateColumns:a}),Qe=c.memo(({entry:e,indentLevel:a,positionInSet:n,setSize:r,rowIndex:o,flatIndex:i,onRowFocus:s,onRowBlur:u,isSelectedForAria:m,rowHeight:g,isDirOpen:E,columns:M,numericTemplate:b,numericTotal:f,nameWidth:p,rowClassName:A,selection:{onEntryClick:Z,selectedPath:V,currentPath:P,mode:S="none",selectedItems:L,onSelectionChange:v},expansion:{toggleDirectory:R,onToggleDirectoryRecursive:k},visual:{iconOverrides:I,showExpandIcons:c0=!0,showDirectoryIcons:X=!0,showFileIcons:O=!0,useCanvasExpandIcons:W=!1,expandIconSize:g0,typeIconSize:j,fontSize:d0,indentSize:v0,highlightStyles:U,expandIconClassName:J,expandIconStyle:R0}})=>{D0(e.style,{option:"entry.style",absolutePath:e.absolutePath});const[E0,b0]=c.useState(!1),N=e.children!==void 0,t0=N&&E(e.absolutePath),_=e.absolutePath===V,z0=e.absolutePath===P,w=!N&&!!L?.has(e.absolutePath),k0=N?void 0:ze(e),H0=Ue({entry:e,isDirectory:N,isExpanded:t0,isItemSelected:w,selectionMode:S,onSelectionChange:v,onEntryClick:Z,toggleDirectory:R,onToggleDirectoryRecursive:k}),w0=E0?U?.hoverClassName!==void 0?U.hoverClassName:C.entryHover:"",N0=(()=>{if(N){if(_)return U?.directorySelectedClassName!==void 0?U.directorySelectedClassName:C.entrySelected}else if(_||w)return U?.itemSelectedClassName!==void 0?U.itemSelectedClassName:D.twMerge(_&&C.entrySelected,w&&C.entryItemSelected);return""})(),x=typeof A=="function"?A(e):A,h0=D.twMerge("dt-grid-row cursor-pointer select-none",w0,N0,x,e.className),z=D.twMerge(C.expandIcon,J,(_||w)&&C.expandIconSelected),F0=D.twMerge(C.typeIcon,(_||w)&&C.typeIconSelected),q=D.twMerge("dt-grid-name-label ml-1",r0.name,N&&C.nameDirectory,(_||w)&&C.nameSelected),K=Be({isDirectory:N,isExpanded:t0,showExpandIcons:c0,useCanvasExpandIcons:W,expandIconSize:g0}),a0=(N?X:O)?We({entry:e,isDirectory:N,isExpanded:t0,isSelected:_,isItemSelected:w,extension:k0,mimeType:e.mimeType},I,j):null,V0={indentLevel:a,isDirectory:N,isExpanded:t0},[m0,...S0]=M,f0=m0?.render?m0.render(e,V0):e.label??e.name,B0={...E0?U?.hoverStyle:{},...N&&_?U?.directorySelectedStyle:{},...!N&&(_||w)?U?.itemSelectedStyle:{}};return h.jsxs("div",{className:h0,style:{...B0,...e.style,height:g},role:"row","aria-expanded":N?t0:void 0,"aria-level":a+1,"aria-posinset":n,"aria-setsize":r,"aria-rowindex":o,"aria-selected":S==="none"?void 0:m,"aria-current":z0?"page":void 0,...Ke(e.data),"data-entry-type":N?"directory":"file","data-entry-expanded":N?String(t0):void 0,"data-entry-selected":_?"true":void 0,"data-entry-item-selected":w?"true":void 0,onClick:H0,onMouseEnter:()=>b0(!0),onMouseLeave:()=>b0(!1),onFocus:T=>s(i,e.absolutePath,T.currentTarget),onBlur:T=>u(e.absolutePath,T.currentTarget),onKeyDown:T=>{if(T.key==="Enter"){if(T.repeat){T.preventDefault();return}H0(T)}},tabIndex:0,children:[h.jsxs("div",{className:D.twMerge("dt-grid-name-cell",m0?.className),role:"gridcell",style:{width:p,paddingLeft:Math.max(0,a*v0)},children:[(c0||W)&&h.jsx("span",{className:z,style:{...R0,width:l0,height:l0},children:K}),(N?X:O)&&h.jsx("span",{className:F0,style:{width:j,height:j},children:a0}),h.jsx("span",{className:q,style:De(d0),children:f0})]}),S0.length>0&&h.jsx("div",{className:"dt-grid-numeric-viewport",children:h.jsx("div",{className:"dt-grid-numeric-track",style:qe(f,b),children:S0.map(T=>h.jsx("div",{className:D.twMerge("dt-grid-cell",Je(T.align),T.className),role:"gridcell",children:T.render?T.render(e,V0):null},T.key))})})]})},(e,a)=>{if(e.entry!==a.entry)return!1;const n=He(e.entry,e.isDirOpen),r=He(a.entry,a.isDirOpen);return e.indentLevel===a.indentLevel&&e.positionInSet===a.positionInSet&&e.setSize===a.setSize&&e.rowIndex===a.rowIndex&&e.flatIndex===a.flatIndex&&e.isSelectedForAria===a.isSelectedForAria&&e.rowHeight===a.rowHeight&&n===r&&e.columns===a.columns&&e.numericTemplate===a.numericTemplate&&e.numericTotal===a.numericTotal&&e.nameWidth===a.nameWidth&&e.rowClassName===a.rowClassName&&e.selection.selectedPath===a.selection.selectedPath&&e.selection.currentPath===a.selection.currentPath&&e.selection.mode===a.selection.mode&&e.selection.selectedItems===a.selection.selectedItems&&e.visual===a.visual});Qe.displayName="DirectoryTreeGridRow";const e2=({kind:e,columns:a,numericTemplate:n,numericTotal:r,nameWidth:o,scrollBarWidth:i,className:s,nameContent:u,renderCell:m})=>{const[,...g]=a,E=e==="header"?"dt-grid-name-header":"dt-grid-name-footer",M=e==="header"?"dt-grid-header":"dt-grid-footer",b=e==="header"?"columnheader":"gridcell";return h.jsxs("div",{className:D.twMerge(M,r0.gridEdge,s),role:"row",children:[h.jsx("div",{className:D.twMerge(E,"px-1",a[0]?.className),role:b,style:{width:o},children:u}),g.length>0&&h.jsx("div",{className:"dt-grid-numeric-viewport",children:h.jsx("div",{className:"dt-grid-numeric-track",style:qe(r,n),children:g.map(f=>h.jsx("div",{className:D.twMerge("dt-grid-cell",Je(f.align),f.className),role:b,children:m(f)},f.key))})}),h.jsx("div",{className:"dt-grid-scrollbar-spacer",style:{width:i},"aria-hidden":"true"})]})},rt=({columns:e,className:a,...n})=>h.jsx(e2,{kind:"header",columns:e,className:a,nameContent:e[0]?.header??null,renderCell:r=>r.header??null,...n}),Ve=(e,a)=>typeof e=="function"?e(a):e??null,lt=({columns:e,allEntries:a,className:n,...r})=>h.jsx(e2,{kind:"footer",columns:e,className:n,nameContent:Ve(e[0]?.footer,a),renderCell:o=>Ve(o.footer,a),...r}),ot=240,t2=96,a2=12,x1=(e,a)=>{const n=e?.width;return typeof n=="number"&&Number.isFinite(n)&&n>0?n:a},ct=e=>e.slice(1).map(a=>`${x1(a,t2)}px`).join(" "),st=({measuredWidth:e,columns:a,scrollBarWidth:n=a2})=>{const r=x1(a[0],ot),o=a.slice(1).reduce((m,g)=>m+x1(g,t2),0),i=Number.isFinite(e)&&e>0?e:0,s=Math.max(0,i-r-Math.max(0,n)),u=Math.max(0,o-s);return{nameWidth:r,numericTotal:o,numericVisible:s,maxHScroll:u}},S1=(e,a)=>!Number.isFinite(e)||e<0?0:e>a?a:e,it=e=>{const a=[],n=r=>{for(const o of r)a.push(o),o.children&&o.children.length>0&&n(o.children)};return n(e),a},n2=["entryKindDirectory","entryKindFile"],I1=[...i0.VIRTUAL_SCROLL_LABEL_KEYS,...n2],C1=Object.freeze({en:Object.freeze({entryKindDirectory:"directory",entryKindFile:"file"}),ja:Object.freeze({entryKindDirectory:"ディレクトリ",entryKindFile:"ファイル"})}),r2=Object.freeze({en:Object.freeze({...i0.VIRTUAL_SCROLL_LABEL_CATALOGS.en,...C1.en}),ja:Object.freeze({...i0.VIRTUAL_SCROLL_LABEL_CATALOGS.ja,...C1.ja})}),Ze=e=>typeof e=="string"?JSON.stringify(e):e===null?"null":typeof e,dt=e=>{const a={};let n=!1;for(const r of i0.VIRTUAL_SCROLL_LABEL_KEYS){const o=Object.hasOwn(e,r)?e[r]:void 0;o!==void 0&&(a[r]=o,n=!0)}return n?a:void 0},l2=(e,a)=>{const n=i0.resolveVirtualScrollLocale(e);if(a===void 0)return r2[n];if(a===null||typeof a!="object")throw new RangeError(`[directory-tree] labels must be an object; got ${Ze(a)}`);const r=Object.getPrototypeOf(a);if(r!==Object.prototype&&r!==null)throw new RangeError(`[directory-tree] labels must be a plain object (prototype Object.prototype or null); got ${Array.isArray(a)?"an array":"an object with a non-plain prototype"}`);for(const s of Object.keys(a))if(!I1.includes(s))throw new RangeError(`[directory-tree] labels.${s} is not a known label key; expected one of ${I1.join(", ")}`);const i={...i0.resolveVirtualScrollLabels(n,dt(a)),...C1[n]};for(const s of n2){const u=Object.hasOwn(a,s)?a[s]:void 0;if(u!==void 0){if(typeof u!="string"||u.trim()==="")throw new RangeError(`[directory-tree] labels.${s} must be a non-blank string; got ${Ze(u)}`);i[s]=u}}return Object.freeze(i)},ht=e=>{const a={};for(const n of i0.VIRTUAL_SCROLL_LABEL_KEYS)a[n]=e[n];return Object.freeze(a)},ut=()=>{let e=null;return{mark:a=>{const n=a.composedPath();e=n,setTimeout(()=>{e===n&&(e=null)},0)},landedOn:a=>e?.includes(a)===!0}},U0=e=>typeof e=="string"?JSON.stringify(e):String(e),R1=(e,a)=>{if(typeof a!="number"||!Number.isFinite(a)||a<=0)throw new RangeError(`[directory-tree] visual.${e} must be a finite number greater than 0 (px); got ${U0(a)}.`);return a},mt=e=>{if(typeof e=="string"&&e.trim()!==""||typeof e=="number"&&Number.isFinite(e)&&e>0)return e;throw new RangeError(`[directory-tree] visual.fontSize must be a finite number greater than 0 (px) or a CSS font size that is not blank; got ${U0(e)}.`)},ft=({indentSize:e,typeIconSize:a,fontSize:n})=>({indentSize:e===void 0?$2:R1("indentSize",e),typeIconSize:a===void 0?z2:R1("typeIconSize",a),fontSize:n===void 0?void 0:mt(n)}),At=({indentSize:e,removeRootIndent:a,hasExpandBox:n})=>a?Math.max(0,e-(n?l0:0)):0,pt=(e,a,n)=>{if(typeof e!="function")return R1("itemHeight",e);const r=e(a,n);if(typeof r!="number"||!Number.isFinite(r)||r<=0)throw new RangeError(`[directory-tree] visual.itemHeight returned ${U0(r)} for ${JSON.stringify(a.absolutePath)} (row ${n}); it must return a finite number greater than 0 (px).`);return r},gt=(e,a,n)=>{const r=a===void 0?D2:a;if(typeof r!="number"||!Number.isFinite(r)||r<=0||r>l0)throw new RangeError(`[directory-tree] visual.expandIconSize must be a finite number greater than 0 and at most ${l0} (the expand box, px) while tree lines are drawn; got ${U0(r)}.`);const{indentSize:o,typeIconSize:i}=e,s=r/2,u=l0+i-r/2;if(o<s||o>u)throw new RangeError(`[directory-tree] visual.indentSize ${U0(o)} does not fit the tree lines: with typeIconSize ${i} and an expand glyph of ${r} px it must be from ${s} (half the glyph) to ${u} (the ${l0} px expand box + typeIconSize − half the glyph).`);return{indentSize:o,typeIconSize:i,glyphSize:r,originX:n}},vt=({indentSize:e,typeIconSize:a,glyphSize:n})=>Math.min(Math.max(l0+a/2-e,n/2),l0-n/2),Ht=(e,a)=>{const n=e.length-1;if(n<=0)return 0;let r=0,o=n-1,i=0;for(;r<=o;){const s=r+o>>>1;e[s]<=a?(i=s,r=s+1):o=s-1}return i},Vt=(e,a,n)=>{if(n<=0||e.length===0||a.length!==e.length+1)return null;const r=Ht(a,n),o=e[r];return o?{path:o.entry.absolutePath,offsetInViewport:n-a[r]}:null},Zt=(e,a,n)=>{if(a.length===0||n.length!==a.length+1)return null;for(let r=0;r<a.length;r++)if(a[r].entry.absolutePath===e.path)return Math.max(0,n[r]+e.offsetInViewport);return null},Mt=(e,a,n)=>{const r=[];for(let o=a;o<n;o++){const i=e[o];if(!(!i||i.length===0))for(const s of i)r.push(s)}return r},yt=(e,a,n)=>{const r=[];for(let o=a;o<n;o++){const i=e[o];if(!(!i||i.length===0))for(const s of i)r.push(s)}return r},Et=(e,a,n,r)=>{const o=Math.max(1,Math.floor(a*r)),i=Math.max(1,Math.floor(n*r));(e.width!==o||e.height!==i)&&(e.width=o,e.height=i);const s=e.style;s.width!==`${a}px`&&(s.width=`${a}px`),s.height!==`${n}px`&&(s.height=`${n}px`)},bt=(e,a,n)=>{e.lineWidth=n,e.beginPath();for(const r of a)e.moveTo(r.x1,r.y1),e.lineTo(r.x2,r.y2);e.stroke()},wt=(e,a,n,r)=>{if(a.length===0)return;const o=e.strokeStyle,i=e.lineWidth,s=e.lineCap,u=e.lineJoin;e.strokeStyle=n,e.lineCap="round",e.lineJoin="round";for(const m of a){const g=r??m.size,E=Math.max(0,g/2),M=Math.max(1,Math.round(g*.08)),b=Math.max(1,Math.round(g*.14)),f=Math.max(0,E-M*.8),p=Math.max(0,f*.55);e.lineWidth=M,e.beginPath(),e.arc(m.centerX,m.centerY,Math.max(0,E-M*.3),0,Math.PI*2),e.stroke(),e.lineWidth=b,e.beginPath(),e.moveTo(m.centerX-p,m.centerY),e.lineTo(m.centerX+p,m.centerY),e.stroke(),m.isExpanded||(e.beginPath(),e.moveTo(m.centerX,m.centerY-p),e.lineTo(m.centerX,m.centerY+p),e.stroke())}e.strokeStyle=o,e.lineWidth=i,e.lineCap=s,e.lineJoin=u},o2=c.memo(({segmentsByItem:e,glyphsByItem:a,itemHeight:n,width:r,viewportHeight:o,scrollPosition:i,color:s=je,strokeWidth:u=1,renderStartIndex:m,renderEndIndex:g,lookaheadEndIndex:E,devicePixelRatio:M,expandGlyphColor:b,expandGlyphSize:f})=>{const p=c.useRef(null),A=c.useRef(null),Z=c.useRef({segmentsByItem:e,glyphsByItem:a,itemHeight:n,width:r,viewportHeight:o,scrollPosition:i,color:s,strokeWidth:u,renderStartIndex:m,renderEndIndex:g,lookaheadEndIndex:E,devicePixelRatio:M,expandGlyphColor:b,expandGlyphSize:f}),V=c.useCallback(()=>{A.current=null;const S=p.current;if(!S)return;const L=S.getContext("2d");if(!L)return;const v=Z.current;if(v.width<=0||v.viewportHeight<=0){L.clearRect(0,0,S.width,S.height);return}const R=Number.isFinite(v.devicePixelRatio??NaN)?v.devicePixelRatio:typeof window<"u"&&window.devicePixelRatio||1;Et(S,v.width,v.viewportHeight,R);const k=v.segmentsByItem.length,I=typeof v.renderStartIndex=="number"&&Number.isFinite(v.renderStartIndex)?Math.max(0,Math.floor(v.renderStartIndex)):Math.max(0,Math.floor(v.scrollPosition/v.itemHeight)),c0=Math.min(k,Math.ceil((v.scrollPosition+v.viewportHeight)/v.itemHeight)),X=(()=>{if(typeof v.renderEndIndex=="number"&&Number.isFinite(v.renderEndIndex)){const j=Math.floor(v.renderEndIndex);return Math.max(Math.min(k,j+1),I)}return Math.max(c0,I)})(),O=(()=>{if(typeof v.lookaheadEndIndex=="number"&&Number.isFinite(v.lookaheadEndIndex)){const j=Math.floor(v.lookaheadEndIndex),d0=Math.min(k,j+1);return Math.max(d0,X)}return Math.max(c0,X)})(),W=Mt(v.segmentsByItem,I,O),g0=yt(v.glyphsByItem,I,O);L.save(),L.scale(R,R),L.clearRect(0,0,v.width,v.viewportHeight),L.translate(0,-v.scrollPosition),L.strokeStyle=v.color,bt(L,W,v.strokeWidth),wt(L,g0,v.expandGlyphColor??v.color,v.expandGlyphSize),L.restore()},[]),P=c.useCallback(()=>{A.current===null&&(A.current=window.requestAnimationFrame(V))},[V]);return c.useEffect(()=>{Z.current={segmentsByItem:e,glyphsByItem:a,itemHeight:n,width:r,viewportHeight:o,scrollPosition:i,color:s,strokeWidth:u,renderStartIndex:m,renderEndIndex:g,lookaheadEndIndex:E,devicePixelRatio:M,expandGlyphColor:b,expandGlyphSize:f},P()},[e,a,n,r,o,i,s,u,m,g,E,M,b,f,P]),c.useEffect(()=>()=>{A.current!==null&&(window.cancelAnimationFrame(A.current),A.current=null)},[]),h.jsx("canvas",{ref:p,className:"pointer-events-none absolute top-0 left-0 z-0"})});o2.displayName="TreeLineCanvas";const St=e=>{const a=new Map;for(let n=0;n<e.length;n++){const r=e[n].entry.absolutePath;a.has(r)||a.set(r,n)}return a},Me=(e,a)=>e.selectedPath===a?e:{selectedPath:a,selectionGeneration:e.selectionGeneration+1,anchor:e.anchor},Lt=(e,a)=>({...e,anchor:{path:a,selectionGeneration:e.selectionGeneration,focused:!0}}),xt=(e,a)=>{const{anchor:n,selectionGeneration:r,selectedPath:o}=a;if(n!==null&&(n.focused||n.selectionGeneration===r)){const i=e.get(n.path);if(i!==void 0)return i}if(o!==null){const i=e.get(o);if(i!==void 0)return i}return 0},It={msOverflowStyle:"none",scrollbarWidth:"none"},Ct=()=>{let e=document.getElementById("directory-tree-webkit-scrollbar-hide");e||(e=document.createElement("style"),e.id="directory-tree-webkit-scrollbar-hide",e.textContent=".directory-tree-container::-webkit-scrollbar { display: none; }",document.head.appendChild(e))},Rt=()=>()=>{},kt=()=>!0,Nt=()=>!1,Ft=e=>{const a=c.useRef(null),n=a.current;return n!==null&&i0.VIRTUAL_SCROLL_LABEL_KEYS.every(r=>n[r]===e[r])?n:(a.current=e,e)},ye=new Set(["top","bottom","center","nearest"]),Ee=e=>{const a=e?.align;if(a===void 0)return"top";if(!ye.has(a))throw new RangeError(`[directory-tree] Unsupported scroll alignment ${JSON.stringify(a)}; expected one of ${[...ye].join(", ")}.`);return a},Pt={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap"},Tt=(e,a,n,r,o)=>{const i=[],s=[];let u=0;const m=(g,E,M)=>{const b=o?[...g].sort(o):g;for(let f=0;f<b.length;f++){const p=b[f],A=f===b.length-1,Z=[...M,A],V=p.children!==void 0,P=V&&a(p.absolutePath,p.relativePath);let S=E,L=M;r&&(S=E-1,L=M.slice(1)),i.push({entry:p,indentLevel:S,depth:E,positionInSet:f+1,setSize:b.length}),n&&(S>u&&(u=S),s.push({id:p.absolutePath,name:p.name,absolutePath:p.absolutePath,indentLevel:S,isLastChild:A,isDirectory:V,isExpanded:P,ancestorIsLast:[...L],hideLines:r&&E===0})),V&&P&&p.children&&m(p.children,E+1,Z)}};return m(e,0,[]),{flatItems:i,lineItems:s,maxIndent:u}},be=(e,a)=>{const n=e.length-1;if(n<=0)return 0;let r=0,o=n-1,i=0;for(;r<=o;){const s=r+o>>>1;e[s]<=a?(i=s,r=s+1):o=s-1}return i},Ot=(e,a,n,r,o,i)=>{const s=r?.renderStart??Math.max(0,be(i,o)),u=a>0?be(i,o+a)+n:s+n,m=e>0?Math.min(e-1,Math.max(s,u)):s,g=r?.renderEnd??m,E=e>0?Math.min(e-1,g+n):g;return{renderStart:s,renderEnd:g,lookaheadEnd:E}},_t=(e,a,n,r)=>{if(e.length===0)return{segmentsByItem:[],glyphsByItem:[]};const{indentSize:o,typeIconSize:i,glyphSize:s,originX:u}=r,m=Array.from({length:e.length},()=>[]),g=Array.from({length:e.length},()=>[]),E=u+vt(r),M=f=>f*o+E,b=s/2+2;for(let f=0;f<e.length;f++){const p=e[f],A=a[f]??0,Z=n[f]??0,V=Z+A/2,P=e[f+1],S=V+i/2,L=Z+A,v=P!==void 0&&P.indentLevel===p.indentLevel+1&&S<L?{key:`${p.id}-connector-children`,x1:M(P.indentLevel),y1:S,x2:M(P.indentLevel),y2:L,itemIndex:f}:null;if(p.hideLines){v!==null&&(m[f]=[v]);continue}const R=[];for(let I=0;I<p.indentLevel;I++){if(p.ancestorIsLast[I]??!1)continue;let X=!1;for(let O=f;O<e.length;O++){const W=e[O];if(W.indentLevel>I&&W.ancestorIsLast.length>I&&!W.ancestorIsLast[I]){X=!0;break}if(O>f&&W.indentLevel===I)break}if(X){const O=M(I);R.push({key:`${p.id}-ancestor-${I}`,x1:O,y1:Z,x2:O,y2:Z+A,itemIndex:f})}}const k=M(p.indentLevel);f>0&&R.push({key:`${p.id}-connector-top`,x1:k,y1:Z,x2:k,y2:p.isDirectory?V-b:V,itemIndex:f}),!p.isDirectory&&p.isLastChild&&R.push({key:`${p.id}-connector-horizontal`,x1:k,y1:V,x2:u+p.indentLevel*o+l0,y2:V,itemIndex:f}),p.isLastChild||(p.isDirectory?R.push({key:`${p.id}-connector-bottom`,x1:k,y1:V+b,x2:k,y2:Z+A,itemIndex:f}):R.push({key:`${p.id}-connector-bottom`,x1:k,y1:V,x2:k,y2:Z+A,itemIndex:f})),v!==null&&R.push(v),m[f]=R,p.isDirectory&&(g[f]=[{key:`${p.id}-glyph`,itemIndex:f,centerX:k,centerY:V,size:s,isExpanded:p.isExpanded}])}return{segmentsByItem:m,glyphsByItem:g}},c2=c.memo(({entry:e,indentLevel:a,originX:n,depth:r,positionInSet:o,setSize:i,isSelectedForAria:s,flatIndex:u,isActive:m,registerRowRef:g,onNavigationKeyDown:E,onRowFocus:M,onRowBlur:b,rowHeight:f,entryKindDirectory:p,entryKindFile:A,isDirOpen:Z,expansion:{toggleDirectory:V,onToggleDirectoryRecursive:P},selection:{onEntryClick:S,selectedPath:L,currentPath:v,mode:R="none",selectedItems:k,onSelectionChange:I},visual:{iconOverrides:c0,showExpandIcons:X=!0,showDirectoryIcons:O=!0,showFileIcons:W=!0,useCanvasExpandIcons:g0=!1,expandIconSize:j,typeIconSize:d0,fontSize:v0,indentSize:U,highlightStyles:J,entryClassName:R0,entryStyle:E0,nameClassName:b0,nameStyle:N,directoryNameClassName:t0,directoryNameStyle:_,fileNameClassName:z0,fileNameStyle:w,expandIconClassName:k0,expandIconStyle:H0}})=>{D0(e.style,{option:"entry.style",absolutePath:e.absolutePath});const[w0,N0]=c.useState(!1),x=e.children!==void 0,h0=x&&Z(e.absolutePath),z=e.absolutePath===L,F0=e.absolutePath===v,q=!x&&k?.has(e.absolutePath),K=c.useCallback(Y=>g(u,Y),[g,u]),a0=x?void 0:ze(e),V0=Ue({entry:e,isDirectory:x,isExpanded:h0,isItemSelected:!!q,selectionMode:R,onSelectionChange:I,onEntryClick:S,toggleDirectory:V,onToggleDirectoryRecursive:P}),m0=w0?J?.hoverClassName!==void 0?J.hoverClassName:C.entryHover:"",S0=(()=>{if(x){if(z)return J?.directorySelectedClassName!==void 0?J.directorySelectedClassName:C.entrySelected}else if(z||q)return J?.itemSelectedClassName!==void 0?J.itemSelectedClassName:D.twMerge(z&&C.entrySelected,q&&C.entryItemSelected);return""})(),f0=D.twMerge(C.entry,m0,S0,R0,e.className),B0=D.twMerge(C.expandIcon,k0,(z||q)&&C.expandIconSelected),T=D.twMerge(C.typeIcon,(z||q)&&C.typeIconSelected),J0=D.twMerge(C.name,b0,x&&C.nameDirectory,x&&t0,!x&&z0,(z||q)&&C.nameSelected),i1=Be({isDirectory:x,isExpanded:h0,showExpandIcons:X&&a>=0,useCanvasExpandIcons:g0,expandIconSize:j}),W0=(x?O:W)?We({entry:e,isDirectory:x,isExpanded:h0,isSelected:z,isItemSelected:!!q,extension:a0,mimeType:e.mimeType},c0,d0):null,K0={...w0?J?.hoverStyle:{},...x&&z?J?.directorySelectedStyle:{},...!x&&(z||q)?J?.itemSelectedStyle:{}},q0=Ke(e.data),d1={width:d0,height:d0},L0=De(v0),Z0=n+a*U;return h.jsxs("div",{className:f0,style:{...L0,...K0,...E0,...e.style,paddingLeft:`${Math.max(0,Z0)}px`,transform:Z0<0?`translateX(${Z0}px)`:void 0,width:Z0<0?`calc(100% + ${-Z0}px)`:void 0,height:`${f}px`},...q0,"data-entry-type":x?"directory":"file","data-entry-expanded":x?String(h0):void 0,"data-entry-selected":z?"true":void 0,"data-entry-item-selected":q?"true":void 0,onClick:V0,onMouseEnter:()=>N0(!0),onMouseLeave:()=>N0(!1),onFocus:Y=>M(u,e.absolutePath,Y.currentTarget),onBlur:Y=>b(e.absolutePath,Y.currentTarget),ref:K,onKeyDown:Y=>{if(Y.key==="Enter"||Y.key===" "){Y.preventDefault(),Y.repeat||V0(Y);return}E(Y,u)},tabIndex:m?0:-1,role:"treeitem","aria-expanded":x?h0:void 0,"aria-level":r+1,"aria-posinset":o,"aria-setsize":i,"aria-selected":R==="none"?void 0:s,"aria-current":F0?"page":void 0,"aria-label":`${e.name} (${x?p:A})`,children:[(X||g0)&&h.jsx("span",{className:B0,style:{...H0,width:l0,height:l0},children:i1}),(x?O:W)&&h.jsx("span",{className:T,style:d1,children:W0}),h.jsx("span",{className:J0,style:{...L0,...N,...x?_:w},"data-entry-type":x?"directory":"file","data-entry-role":"name",children:e.label??e.name})]})},(e,a)=>{if(e.entry!==a.entry)return!1;const n=e.entry.children!==void 0,r=a.entry.children!==void 0,o=n&&e.isDirOpen(e.entry.absolutePath),i=r&&a.isDirOpen(a.entry.absolutePath);return e.indentLevel===a.indentLevel&&e.originX===a.originX&&e.depth===a.depth&&e.positionInSet===a.positionInSet&&e.setSize===a.setSize&&e.isSelectedForAria===a.isSelectedForAria&&e.flatIndex===a.flatIndex&&e.isActive===a.isActive&&e.rowHeight===a.rowHeight&&e.entryKindDirectory===a.entryKindDirectory&&e.entryKindFile===a.entryKindFile&&o===i&&e.selection.selectedPath===a.selection.selectedPath&&e.selection.currentPath===a.selection.currentPath&&e.selection.mode===a.selection.mode&&e.selection.selectedItems===a.selection.selectedItems&&e.visual.iconOverrides===a.visual.iconOverrides&&e.visual.showExpandIcons===a.visual.showExpandIcons&&e.visual.showDirectoryIcons===a.visual.showDirectoryIcons&&e.visual.showFileIcons===a.visual.showFileIcons&&e.visual.useCanvasExpandIcons===a.visual.useCanvasExpandIcons&&e.visual.expandIconSize===a.visual.expandIconSize&&e.visual.typeIconSize===a.visual.typeIconSize&&e.visual.fontSize===a.visual.fontSize&&e.visual.indentSize===a.visual.indentSize&&e.visual.highlightStyles===a.visual.highlightStyles&&e.visual.entryClassName===a.visual.entryClassName&&e.visual.entryStyle===a.visual.entryStyle&&e.visual.nameClassName===a.visual.nameClassName&&e.visual.nameStyle===a.visual.nameStyle&&e.visual.directoryNameClassName===a.visual.directoryNameClassName&&e.visual.directoryNameStyle===a.visual.directoryNameStyle&&e.visual.fileNameClassName===a.visual.fileNameClassName&&e.visual.fileNameStyle===a.visual.fileNameStyle&&e.visual.expandIconClassName===a.visual.expandIconClassName&&e.visual.expandIconStyle===a.visual.expandIconStyle});c2.displayName="DirectoryEntryItem";const s2=e=>{const a=[];if(e.children)for(const n of e.children)n.type==="directory"&&(a.push(n.absolutePath),a.push(...s2(n)));return a},jt=({entries:e,expansion:{toggle:a,isExpanded:n,expandMultiple:r,collapseMultiple:o,isPending:i,alwaysExpanded:s=!1,doubleClickAction:u="recursive"},selection:{onEntryClick:m,selectedPath:g,currentPath:E,mode:M="none",selectedItems:b,onSelectionChange:f},visual:{className:p,style:A,ariaLabel:Z,ariaLabelledBy:V,lineColor:P=je,showTreeLines:S=!0,showExpandIcons:L=!0,showDirectoryIcons:v=!0,showFileIcons:R=!0,iconOverrides:k,expandIconSize:I,typeIconSize:c0,fontSize:X,indentSize:O,itemHeight:W=w1,removeRootIndent:g0=!1,highlightStyles:j,entryClassName:d0,entryStyle:v0,nameClassName:U,nameStyle:J,directoryNameClassName:R0,directoryNameStyle:E0,fileNameClassName:b0,fileNameStyle:N,expandIconClassName:t0,expandIconStyle:_}={},virtualScroll:z0,grid:w,sort:k0,locale:H0,labels:w0,ref:N0})=>{const x=i0.resolveVirtualScrollLocale(H0),h0=c.useMemo(()=>l2(H0,w0),[H0,w0]),z=Ft(ht(h0)),{entryKindDirectory:F0,entryKindFile:q}=h0,K=c.useMemo(()=>ft({indentSize:O,typeIconSize:c0,fontSize:X}),[O,c0,X]);c.useMemo(()=>{D0(v0,{option:"visual.entryStyle"}),D0(j?.hoverStyle,{option:"visual.highlightStyles.hoverStyle"}),D0(j?.directorySelectedStyle,{option:"visual.highlightStyles.directorySelectedStyle"}),D0(j?.itemSelectedStyle,{option:"visual.highlightStyles.itemSelectedStyle"}),at(_,{option:"visual.expandIconStyle"})},[v0,j,_]);const a0=w!==void 0,V0=c.useSyncExternalStore(Rt,kt,Nt),m0=c.useRef(null),S0=c.useRef(null),f0=c.useRef(null),[B0,T]=c.useState(0),[J0,i1]=c.useState(0),[W0,K0]=c.useState(0),[q0,d1]=c.useState(null),{overscanCount:L0=15,className:Z0,background:Y,onScroll:N1,onRangeChange:F1,onScrollAdjust:P1,liveRegion:T1,initialScrollIndex:O1,initialScrollOffset:P0,initialScrollAnchor:_1,callbackThrottleMs:j1=5,contentInsets:$1,onItemFocus:D1,viewportHeightOverride:n0,scrollBarOptions:h1,behaviorOptions:z1,preserveScrollAnchor:B1=!1,getItemKey:i2,testId:W1,contentProps:u1}=z0??{},K1=c.useMemo(()=>a0?{...u1,role:"rowgroup"}:{...u1,role:"tree","aria-label":V?void 0:Z,"aria-labelledby":V,"aria-multiselectable":M==="multiple"?!0:void 0,"aria-busy":i?!0:void 0},[a0,u1,Z,V,M,i]),Y1=c.useMemo(()=>({...z1,enableKeyboardNavigation:!1}),[z1]),[Q0,G1]=c.useState(typeof P0=="number"?P0:0),m1=c.useRef(typeof P0=="number"?P0:0),X1=c.useCallback((l,d)=>{m1.current=l,G1(l),N1?.(l,d)},[N1]),U1=c.useCallback(l=>{const{renderingStartIndex:d,renderingEndIndex:H}=l;d1(y=>y&&y.renderStart===d&&y.renderEnd===H?y:{renderStart:d,renderEnd:H}),F1?.(l)},[F1]);c.useEffect(()=>{Ct()},[]),c.useEffect(()=>{const l=m0.current,d=a0?S0.current:l,H=()=>{if(l){const F=l.clientWidth;i1(B=>Math.abs(B-F)>1?F:B)}if(typeof n0=="number")T(F=>Math.abs(F-n0)>1?n0:F);else if(d){const F=d.clientHeight;T(B=>Math.abs(B-F)>1?F:B)}};if(!(l||d))return T(0);H();const y=new ResizeObserver(H);return l&&y.observe(l),d&&d!==l&&y.observe(d),()=>y.disconnect()},[n0,a0]);const T0=typeof n0=="number"?n0:B0,u0=c.useCallback(l=>s||(V0?n(l):!1),[V0,n,s]),J1=D.twMerge(C.container,i&&C.containerPending,p),q1=c.useMemo(()=>({...It,...A??{},...typeof n0=="number"?{height:n0,minHeight:n0}:{}}),[A,n0]),f1=c.useCallback((l,d)=>{const H=[l.absolutePath,...s2(l)],y=d||u;if(H.every(p0=>u0(p0)))return o(H);if(H.every(p0=>!u0(p0))||y==="recursive")return r(H);if(y==="toggle")return o(H);console.warn(`[DirectoryTree] Unknown double click action: ${y}. No action taken.`)},[u0,r,o,u]),A1=a0?!1:g0,{flatItems:x0,lineItems:p1,maxIndent:Q1}=c.useMemo(()=>Tt(e,u0,S,A1,k0),[e,u0,S,A1,k0]),e1=At({indentSize:K.indentSize,removeRootIndent:A1,hasExpandBox:L||S}),s0=c.useMemo(()=>S?gt(K,I,e1):null,[S,K,I,e1]),$=c.useMemo(()=>x0.map((l,d)=>({...l,rowHeight:pt(W,l.entry,d)})),[x0,W]),M0=c.useMemo(()=>$.map(l=>l.rowHeight),[$]),I0=c.useMemo(()=>{const l=new Array(M0.length+1);l[0]=0;for(let d=0;d<M0.length;d++)l[d+1]=l[d]+M0[d];return l},[M0]),ee=c.useCallback(l=>$[l]?.rowHeight??w1,[$]),d2=c.useCallback(l=>$[l]?.entry.absolutePath??l,[$]),te=i2??d2,O0=g??null,g1=E??null,[ae,Y0]=c.useState(()=>({selectedPath:O0,selectionGeneration:0,anchor:null})),v1=Me(ae,O0);v1!==ae&&Y0(l=>Me(l,O0));const t1=c.useMemo(()=>St(x0),[x0]),_0=c.useMemo(()=>xt(t1,v1),[t1,v1]),G0=c.useRef(new Map),a1=c.useRef(null),[n1]=c.useState(ut),X0=c.useRef(null),[h2,ne]=c.useState(!0),H1=c.useRef(x0);H1.current=x0;const re=c.useRef(u0);re.current=u0;const V1=c.useRef(a);V1.current=a;const le=c.useRef(t1);le.current=t1;const Z1=c.useRef(_0);Z1.current=_0;const oe=c.useRef(D1);oe.current=D1;const C0=c.useCallback(l=>{const d=f0.current;return!d||d.getViewportSize()<=0?!1:(d.scrollToIndex(l,{align:"nearest"}),!0)},[]),A0=c.useCallback(l=>{const d=G0.current.get(l);if(d===void 0){X0.current=l,C0(l)||(X0.current=null);return}X0.current=null,C0(l),d.focus({preventScroll:!0})},[C0]),ce=c.useCallback((l,d)=>{if(d)G0.current.set(l,d),X0.current===l?(X0.current=null,d.focus({preventScroll:!0})):d.contains(d.ownerDocument.activeElement)&&Y0(H=>H.anchor===null?H:{...H,anchor:{...H.anchor,focused:!0}});else{const H=G0.current.get(l);G0.current.delete(l),H?.contains(H.ownerDocument.activeElement)&&Y0(y=>y.anchor===null?y:{...y,anchor:{...y.anchor,focused:!1}})}l===Z1.current&&ne(d!==null)},[]);c.useLayoutEffect(()=>{ne(G0.current.has(_0))},[_0]);const M1=c.useCallback((l,d,H)=>{const y=a1.current===H;a1.current=null,y||(Y0(F=>Lt(F,d)),n1.landedOn(H)||C0(l)),oe.current?.(l)},[C0,n1]),r1=c.useCallback(l=>n1.mark(l.nativeEvent),[n1]),y1=c.useCallback((l,d)=>{const{ownerDocument:H}=d;if(!H.hasFocus()&&d.contains(H.activeElement)){a1.current=d;return}a1.current=null,Y0(y=>y.anchor!==null&&y.anchor.path===l?{...y,anchor:{...y.anchor,focused:!1}}:y)},[]),u2=c.useCallback(()=>A0(Z1.current),[A0]),E1=c.useCallback((l,d)=>{const H=Ee(d),y=H1.current.length;if(!Number.isInteger(l)||l<0||l>=y)throw new RangeError(`[directory-tree] scrollToIndex: ${String(l)} is not a row index (${y===0?"the tree has no rows":`expected an integer in 0..${String(y-1)}`}).`);if(H==="nearest"){C0(l);return}f0.current?.scrollToIndex(l,{align:H})},[C0]);c.useImperativeHandle(N0,()=>({scrollToIndex:E1,scrollToPath:(l,d)=>{Ee(d);const H=le.current.get(l);return H===void 0?!1:(E1(H,d),!0)},getScrollAnchor:()=>f0.current?.getScrollAnchor()??null}),[E1]);const se=c.useCallback((l,d)=>{if(l.altKey||l.ctrlKey||l.metaKey)return;const H=H1.current,y=H.length-1;if(y<0)return;const F=H[d],B=F?.entry.children!==void 0,p0=B&&re.current(F.entry.absolutePath);switch(l.key){case"ArrowDown":l.preventDefault(),A0(Math.min(d+1,y));break;case"ArrowUp":l.preventDefault(),A0(Math.max(d-1,0));break;case"Home":l.preventDefault(),A0(0);break;case"End":l.preventDefault(),A0(y);break;case"ArrowRight":l.preventDefault(),B&&!p0?V1.current(F.entry.absolutePath):B&&d<y&&H[d+1].depth>F.depth&&A0(d+1);break;case"ArrowLeft":{if(l.preventDefault(),B&&p0){V1.current(F.entry.absolutePath);break}const g2=F?.depth??0;for(let s1=d-1;s1>=0;s1--)if(H[s1].depth<g2){A0(s1);break}break}}},[A0]),l1=c.useMemo(()=>s0===null||p1.length===0?{segmentsByItem:[],glyphsByItem:[]}:_t(p1,M0,I0,s0),[p1,M0,I0,s0]),o1=c.useMemo(()=>s0===null||e.length===0?0:s0.originX+Q1*s0.indentSize+l0+s0.typeIconSize,[e.length,Q1,s0]),{renderStart:ie,renderEnd:de,lookaheadEnd:he}=c.useMemo(()=>Ot($.length,T0,L0,q0,Q0,I0),[$.length,T0,L0,q0,Q0,I0]),b1=c.useMemo(()=>s0===null||o1<=0||T0<=0||l1.segmentsByItem.length===0?null:h.jsx("div",{className:"pointer-events-none absolute inset-0 z-1","aria-hidden":"true",children:h.jsx("div",{className:"absolute top-0 left-0",style:{width:o1,height:T0},children:h.jsx(o2,{segmentsByItem:l1.segmentsByItem,glyphsByItem:l1.glyphsByItem,itemHeight:M0[0]??w1,width:o1,viewportHeight:T0,scrollPosition:Q0,color:P,expandGlyphColor:P,expandGlyphSize:s0.glyphSize,renderStartIndex:ie,renderEndIndex:de,lookaheadEndIndex:he})})}),[o1,T0,ie,de,he,Q0,l1,P,s0,M0]),ue=c.useCallback(l=>$[l],[$]),me=c.useRef(null);c.useLayoutEffect(()=>{const l=me.current;if(me.current={items:$,offsets:I0},!B1||!l||l.items===$)return;const d=f0.current,H=d?.getScrollPosition(),y=typeof H=="number"&&H>=0?H:m1.current,F=Vt(l.items,l.offsets,y);if(!F)return;const B=Zt(F,$,I0);if(B===null||Math.abs(B-y)<1)return;const p0=d?d.scrollTo(B):B;m1.current=p0,G1(p0)},[$,I0,B1]);const y0=w?.columns,j0=w?.scrollBarWidth??h1?.width??a2,G=c.useMemo(()=>y0?st({measuredWidth:J0,columns:y0,scrollBarWidth:j0}):null,[y0,J0,j0]),c1=c.useMemo(()=>y0?ct(y0):"",[y0]),m2=c.useMemo(()=>w?.showFooter&&y0?it(e):[],[w?.showFooter,y0,e]),$0=G?.maxHScroll??0;c.useEffect(()=>{K0(l=>S1(l,$0))},[$0]);const fe=c.useCallback(l=>K0(d=>S1(d+l,$0)),[$0]),Ae=c.useMemo(()=>({iconOverrides:k,showExpandIcons:L,showDirectoryIcons:v,showFileIcons:R,useCanvasExpandIcons:S,expandIconSize:I,typeIconSize:K.typeIconSize,fontSize:K.fontSize,indentSize:K.indentSize,highlightStyles:j,expandIconClassName:t0,expandIconStyle:_}),[k,L,v,R,S,I,K,j,t0,_]),pe=c.useMemo(()=>h.jsx(i0.VirtualScroll,{ref:f0,itemCount:$.length,getItem:ue,getItemHeight:ee,getItemKey:te,testId:W1,contentProps:K1,locale:x,labels:z,viewportSize:typeof n0=="number"?n0:void 0,overscanCount:L0,onScroll:X1,onRangeChange:U1,onScrollAdjust:P1,liveRegion:T1,className:Z0,onWheelHorizontal:a0?fe:void 0,background:h.jsxs(h.Fragment,{children:[a0&&G?h.jsx("div",{className:"pointer-events-none absolute top-0 left-0 z-1 h-full overflow-hidden",style:{width:G.nameWidth},"aria-hidden":"true",children:b1}):b1,Y]}),initialScrollIndex:O1,initialScrollOffset:P0,initialScrollAnchor:_1,callbackThrottleMs:j1,contentInsets:$1,scrollBarOptions:h1,behaviorOptions:Y1,children:(l,d)=>l?a0&&w&&G?h.jsx(Qe,{entry:l.entry,indentLevel:l.indentLevel,positionInSet:l.positionInSet,setSize:l.setSize,rowIndex:d+(w.showHeader??!0?2:1),flatIndex:d,onRowFocus:M1,onRowBlur:y1,isSelectedForAria:!!b?.has(l.entry.absolutePath),rowHeight:l.rowHeight,isDirOpen:u0,columns:w.columns,numericTemplate:c1,numericTotal:G.numericTotal,nameWidth:G.nameWidth,rowClassName:w.rowClassName,selection:{onEntryClick:m,selectedPath:O0,currentPath:g1,mode:M,selectedItems:b,onSelectionChange:f},expansion:{toggleDirectory:a,onToggleDirectoryRecursive:f1},visual:Ae},l.entry.absolutePath):h.jsx(c2,{entry:l.entry,indentLevel:l.indentLevel,originX:e1,depth:l.depth,positionInSet:l.positionInSet,setSize:l.setSize,isSelectedForAria:!!b?.has(l.entry.absolutePath),flatIndex:d,isActive:d===_0,registerRowRef:ce,onNavigationKeyDown:se,onRowFocus:M1,onRowBlur:y1,rowHeight:l.rowHeight,entryKindDirectory:F0,entryKindFile:q,isDirOpen:u0,expansion:{toggleDirectory:a,onToggleDirectoryRecursive:f1},selection:{onEntryClick:m,selectedPath:O0,currentPath:g1,mode:M,selectedItems:b,onSelectionChange:f},visual:{iconOverrides:k,showExpandIcons:L,showDirectoryIcons:v,showFileIcons:R,useCanvasExpandIcons:S,expandIconSize:I,typeIconSize:K.typeIconSize,fontSize:K.fontSize,indentSize:K.indentSize,highlightStyles:j,entryClassName:d0,entryStyle:v0,nameClassName:U,nameStyle:J,directoryNameClassName:R0,directoryNameStyle:E0,fileNameClassName:b0,fileNameStyle:N,expandIconClassName:t0,expandIconStyle:_}},l.entry.absolutePath):null}),[$.length,ue,ee,te,W1,K1,x,z,F0,q,_0,ce,se,M1,y1,n0,L0,X1,U1,P1,T1,Z0,a0,fe,G,b1,Y,O1,P0,_1,j1,$1,h1,Y1,w,c1,u0,m,O0,g1,M,b,f,a,f1,Ae,k,L,v,R,S,I,K,e1,j,d0,v0,U,J,R0,E0,b0,N,t0,_]);if(!(w&&G))return h.jsxs("div",{ref:m0,className:J1,style:q1,onPointerDownCapture:r1,onMouseDownCapture:r1,children:[x0.length>0&&!h2&&h.jsx("span",{tabIndex:0,"data-directory-tree-tab-stop":"",style:Pt,onFocus:u2}),pe]});const f2=w.showHeader??!0,A2=w.showFooter??!1,p2={...q1,"--dt-hscroll":`${W0}px`};return h.jsxs("div",{ref:m0,className:D.twMerge(J1,"dt-grid"),style:p2,role:"treegrid","aria-label":V?void 0:Z,"aria-labelledby":V,"aria-multiselectable":M==="multiple"?!0:void 0,"aria-busy":i?!0:void 0,"aria-rowcount":$.length+(w.showHeader??!0?1:0),onPointerDownCapture:r1,onMouseDownCapture:r1,children:[f2&&h.jsx("div",{role:"rowgroup",children:h.jsx(rt,{columns:w.columns,numericTemplate:c1,numericTotal:G.numericTotal,nameWidth:G.nameWidth,scrollBarWidth:j0,className:w.headerClassName})}),h.jsx("div",{ref:S0,className:"dt-grid-body",children:pe}),$0>0&&h.jsxs("div",{className:"dt-grid-hscrollbar-row",children:[h.jsx("div",{className:"dt-grid-scrollbar-spacer",style:{width:G.nameWidth},"aria-hidden":"true"}),h.jsx(i0.ScrollBar,{horizontal:!0,contentSize:G.numericTotal,viewportSize:G.numericVisible,scrollPosition:W0,scrollBarWidth:j0,locale:x,labels:z,onScroll:l=>{const d=typeof l=="function"?l(W0):l,H=S1(d,$0);return K0(H),H}}),h.jsx("div",{className:"dt-grid-scrollbar-spacer",style:{width:j0},"aria-hidden":"true"})]}),A2&&h.jsx("div",{role:"rowgroup",children:h.jsx(lt,{columns:w.columns,numericTemplate:c1,numericTotal:G.numericTotal,nameWidth:G.nameWidth,scrollBarWidth:j0,allEntries:m2,className:w.footerClassName})})]})},$t=({initialExpanded:e=new Set,storageKey:a}={})=>{const[n,r]=c.useTransition(),[o,i]=c.useState(()=>{if(typeof window<"u"&&a)try{const A=window.localStorage.getItem(a);if(A){const Z=JSON.parse(A);return new Set(Z)}}catch(A){console.error("[useDirectoryTreeState] Error reading from localStorage",A)}return e}),s=c.useCallback(A=>{r(()=>{i(Z=>{const V=new Set(Z);return A(V),V})})},[]),u=c.useCallback((A,Z)=>{s(V=>{for(const P of A)Z(V,P)})},[s]);c.useEffect(()=>{if(a&&typeof window<"u")try{window.localStorage.setItem(a,JSON.stringify(Array.from(o)))}catch(A){console.warn(`Error setting localStorage key "${a}":`,A)}},[o,a]);const m=c.useCallback(A=>{u([A],(Z,V)=>{Z.has(V)?Z.delete(V):Z.add(V)})},[u]),g=c.useCallback(A=>{u([A],(Z,V)=>{Z.add(V)})},[u]),E=c.useCallback(A=>{u([A],(Z,V)=>{Z.delete(V)})},[u]),M=c.useCallback(A=>{u(A,(Z,V)=>{Z.delete(V)})},[u]),b=c.useCallback(A=>{u(A,(Z,V)=>{Z.add(V)})},[u]),f=c.useCallback(()=>{s(A=>{A.clear()})},[s]),p=c.useCallback(A=>o.has(A),[o]);return{expanded:o,toggle:m,expand:g,collapse:E,collapseMultiple:M,expandMultiple:b,collapseAll:f,isExpanded:p,isPending:n}};exports.DIRECTORY_TREE_LABEL_CATALOGS=r2;exports.DIRECTORY_TREE_LABEL_KEYS=I1;exports.DirectoryTree=jt;exports.EXPAND_ICON_STYLE_PROPERTIES=Ge;exports.FILE_ICON_PAIRS=_2;exports.MARK_PAIRS=_e;exports.ROW_STYLE_PROPERTIES=Ye;exports.directoryTreeClasses=C;exports.resolveDirectoryTreeLabels=l2;exports.useDirectoryTreeState=$t;